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.][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-1.4 --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"
68 if test -z "$AUTOGEN_SUBDIR_MODE"; then
70 echo "I am going to run ./configure with no arguments - if you wish "
71 echo "to pass any to it, please specify them on the $0 command line."
76 if test -z "$ACLOCAL_FLAGS"; then
78 acdir=`aclocal-1.4 --print-ac-dir`
79 m4list="glib-2.0.m4 glib-gettext.m4"
83 if [ ! -f "$acdir/$file" ]; then
84 echo "WARNING: aclocal's directory is $acdir, but..."
85 echo " no file $acdir/$file"
86 echo " You may see fatal macro warnings below."
87 echo " If these files are installed in /some/dir, set the ACLOCAL_FLAGS "
88 echo " environment variable to \"-I /some/dir\", or install"
95 aclocal-1.4 $ACLOCAL_FLAGS
97 # optionally feature autoheader
98 (autoheader --version) < /dev/null > /dev/null 2>&1 && autoheader
100 automake-1.4 -a $am_opt
104 if test -z "$AUTOGEN_SUBDIR_MODE"; then
105 $srcdir/configure --enable-maintainer-mode --enable-gtk-doc "$@"
108 echo "Now type 'make' to compile $PROJECT."