Skip to content

Commit 5cf743e

Browse files
committed
phase 2
1 parent de634b8 commit 5cf743e

File tree

2 files changed

+5
-45
lines changed

2 files changed

+5
-45
lines changed

autogen.sh

Lines changed: 2 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -35,50 +35,11 @@ if expr "$confver" \> "$gettext_version" >/dev/null; then
3535
exit 1
3636
fi
3737

38-
# Force intl regenration to get last update from installed gettext templates
39-
rm -rf intl/*
40-
#if [ ! -d intl ]; then
41-
echo "Setting up internationalization files."
42-
autopoint --force
43-
if grep -q datarootdir po/Makefile.in.in; then
44-
echo autopoint honors dataroot variable, not patching.
45-
else
46-
echo autopoint does not honor dataroot variable, patching.
47-
sed -e '/^datadir *=/a\
48-
datarootdir = @datarootdir@' po/Makefile.in.in > po/Makefile.in.in.tmp && mv -f po/Makefile.in.in.tmp po/Makefile.in.in
49-
sed -e '/^datadir *=/a\
50-
datarootdir = @datarootdir@' intl/Makefile.in > intl/Makefile.in.tmp && mv -f intl/Makefile.in.tmp intl/Makefile.in
51-
fi
52-
UNAME=`uname`
53-
if [ x$UNAME = x"Darwin" ]; then
54-
echo Not patching po/Makefile.in.in - sed is too old.
55-
else
56-
sed -e '/^clean:/a\
57-
rm -f *.gmo' po/Makefile.in.in > po/Makefile.in.in.tmp && mv -f po/Makefile.in.in.tmp po/Makefile.in.in
58-
fi
59-
# if [ -f Makefile -a -x config.status ]; then
60-
# CONFIG_FILES=intl/Makefile CONFIG_HEADERS= /bin/sh ./config.status
61-
# fi
62-
# gettextize --intl -f --no-changelog
63-
# echo "restoring Makefile.am and configure.ac"
64-
# cp -f Makefile.am~ Makefile.am
65-
# cp -f configure.ac~ configure.ac
66-
#fi
67-
68-
echo "Running aclocal -I m4"
69-
aclocal -I m4
70-
71-
echo "Running autoheader"
72-
autoheader
73-
74-
echo "Running autoconf"
75-
autoconf
76-
7738
echo "Creating pixmaps Makefile.am"
7839
OLDPWD="`pwd`"
7940
cd src/pixmaps/flags_xpm
8041
./makeflags.sh
8142
cd "$OLDPWD"
8243

83-
echo "Running automake --foreign -a -c -f"
84-
automake --foreign -a -c -f
44+
echo "Running autoreconf --install"
45+
autoreconf --install

configure.ac

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@
2525
#
2626

2727
AC_INIT([aMule],[SVN],[[email protected]])
28-
AM_INIT_AUTOMAKE
2928
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES])
30-
3129
AC_PREREQ(2.59)
3230

3331
AC_CONFIG_SRCDIR([src/amule.cpp])
3432
AC_CONFIG_HEADERS([config.h])
3533
AC_CONFIG_MACRO_DIR([m4])
34+
AC_CONFIG_AUX_DIR([config])
35+
AM_INIT_AUTOMAKE([subdir-objects foreign])
3636
AM_MAINTAINER_MODE
3737

3838
dnl Check host system.
@@ -329,8 +329,7 @@ dnl Use the C compiler for the gettext library checks
329329
AC_LANG_POP([C++])
330330
# Checking Native Language Support
331331
dnl Sets gettext version.
332-
dnl AM_GNU_GETTEXT_VERSION *must not* be moved away from configure.ac!
333-
AM_GNU_GETTEXT_VERSION(0.11.5)
332+
AM_GNU_GETTEXT_VERSION(0.12.1)
334333
MULE_CHECK_NLS
335334
AC_LANG_PUSH([C++])
336335

0 commit comments

Comments
 (0)