2 # Run this to generate all the initial makefiles, etc.
5 test -z "$srcdir" && srcdir=.
16 if libtool --version < /dev/null > /dev/null 2>&1 ; then
17 libtool_version=`libtoolize --version | libtoolize --version | sed 's/^[^0-9]*\([0-9.]\+\).*/\1/'`
18 case $libtool_version in
24 if $have_libtool ; then : ; else
26 echo "You must have libtool 1.4 installed to compile $PROJECT."
27 echo "Install the appropriate package for your distribution,"
28 echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
32 (autoconf --version) < /dev/null > /dev/null 2>&1 || {
34 echo "You must have autoconf installed to compile $PROJECT."
35 echo "libtool the appropriate package for your distribution,"
36 echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
41 if automake --version < /dev/null > /dev/null 2>&1 ; then
42 automake_version=`automake --version | grep 'automake (GNU automake)' | sed 's/^[^0-9]*\(.*\)/\1/'`
43 case $automake_version in
51 if $have_automake ; then : ; else
53 echo "You must have automake 1.4-p1 installed to compile $PROJECT."
54 echo "Get ftp://ftp.gnu.org/pub/gnu/automake/automake-1.4-p1.tar.gz"
55 echo "(or a newer version if it is available)"
59 if test "$DIE" -eq 1; then
63 test $TEST_TYPE $FILE || {
64 echo "You must run this script in the top-level $PROJECT directory"
69 echo "I am going to run ./configure with no arguments - if you wish "
70 echo "to pass any to it, please specify them on the $0 command line."
74 *xlc | *xlc\ * | *lcc | *lcc\ *) am_opt=--include-deps;;
77 if test -z "$ACLOCAL_FLAGS"; then
79 acdir=`aclocal --print-ac-dir`
80 m4list="glib-2.0.m4 gettext.m4"
84 if [ ! -f "$acdir/$file" ]; then
85 echo "WARNING: aclocal's directory is $acdir, but..."
86 echo " no file $acdir/$file"
87 echo " You may see fatal macro warnings below."
88 echo " If these files are installed in /some/dir, set the ACLOCAL_FLAGS "
89 echo " environment variable to \"-I /some/dir\", or install"
96 echo "Running gettextize... Ignore non-fatal messages."
97 # Hmm, we specify --force here, since otherwise things dont'
98 # get added reliably, but we don't want to overwrite intl
100 echo "no" | gettextize --copy --force
104 echo "Munging po/Makefile.in.in"
105 sed s%@PACKAGE@%@GETTEXT_PACKAGE@% < po/Makefile.in.in > po/Makefile.in.in.new
106 mv po/Makefile.in.in.new po/Makefile.in.in
108 aclocal $ACLOCAL_FLAGS
110 # optionally feature autoheader
111 (autoheader --version) < /dev/null > /dev/null 2>&1 && autoheader
117 $srcdir/configure --enable-maintainer-mode "$@"
120 echo "Now type 'make' to compile $PROJECT."