2 # Run this to generate all the initial makefiles, etc.
5 test -z "$srcdir" && srcdir=.
15 if libtool --version < /dev/null > /dev/null 2>&1 ; then
16 libtool_version=`libtoolize --version | libtoolize --version | sed 's/^[^0-9]*\([0-9.][0-9.]*\).*/\1/'`
17 case $libtool_version in
24 if $have_libtool ; then : ; else
26 echo "You must have libtool 1.4 or newer 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 # Tell the Mandrake autoconf wrapper to prefer autoconf 2.5.
34 export WANT_AUTOCONF_2_5
35 for autoconf in autoconf autoconf-2.59 autoconf-2.58 autoconf-2.57 autoconf-2.56 autoconf-2.55 autoconf-2.54 autoconf-2.53 autoconf-2.52 autoconf-2.51 autoconf-2.50 autoconf-2.5 ; do
36 if "$autoconf" --version < /dev/null > /dev/null 2>&1 ; then
37 version=`"$autoconf" --version | head -n 1 | awk '{print $NF}'`
38 acmajor=`echo "$version" | cut -f1 -d.`
39 acminor=`echo "$version" | cut -f2 -d.`
40 if test "$acmajor" -ge 3 ; then
43 if test "$acmajor" -ge 2 ; then
44 if test "$acminor" -ge 50 ; then
50 autoheader=`echo "$autoconf" | sed -e s,autoconf,autoheader,g`
51 if ! "$autoconf" --version < /dev/null > /dev/null 2>&1 ; then
53 echo "You must have autoconf 2.52 installed to compile $PROJECT."
54 echo "Install the appropriate package for your distribution,"
55 echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
58 autoheader=`echo "$autoconf" | sed s,autoconf,autoheader,g`
60 (freetype-config --version) < /dev/null > /dev/null 2>&1 || {
62 echo "You must have freetype 2 installed to compile $PROJECT."
63 echo "Install the appropriate package for your distribution, or get the"
64 echo "source tarball at ftp://ftp.freetype.org/freetype/freetype2"
69 for automakev in 1.9 1.8 1.7 1.6 ; do
70 if automake-$automakev --version < /dev/null > /dev/null 2>&1 ; then
75 if $have_automake ; then : ; else
77 echo "You must have automake 1.6 installed to compile $PROJECT."
78 echo "Get ftp://ftp.gnu.org/pub/gnu/automake/automake-1.6.tar.gz"
79 echo "(or a newer version if it is available)"
83 if test "$DIE" -eq 1; then
87 if test -z "$AUTOGEN_SUBDIR_MODE"; then
89 echo "I am going to run ./configure with no arguments - if you wish "
90 echo "to pass any to it, please specify them on the $0 command line."
95 *xlc | *xlc\ * | *lcc | *lcc\ *) am_opt=--include-deps;;
100 aclocal-$automakev $ACLOCAL_FLAGS
102 automake-$automakev -a -c $am_opt
106 aclocal-$automakev $ACLOCAL_FLAGS
108 automake-$automakev -a -c $am_opt
113 if test -z "$AUTOGEN_SUBDIR_MODE"; then
114 $srcdir/configure --enable-maintainer-mode --enable-gtk-doc "$@"
115 chmod -Rf u+w $srcdir
117 echo "Now type 'make' to compile $PROJECT."