3 # Run this to generate all the initial makefiles.
10 # If you are going to use the non-default name for automake becase your OS
11 # installaion has multiple versions, you need to call both aclocal and automake
12 # with that version number, as they come from the same package.
15 ACLOCAL=aclocal$AM_VERSION
17 AUTOMAKE=automake$AM_VERSION
20 # Check for python. There's no "--version" option!
21 python -c "print 'Checking for python.'"
25 You must have Python in order to compile $PROJECT.
26 Download the appropriate package for your distribution/OS,
27 or get the source tarball at http://www.python.org/
33 ACVER=`$AUTOCONF --version | grep '^autoconf' | sed 's/.*) *//'`
35 '' | 0.* | 1.* | 2.[0-4]* | \
36 2.5[0-1] | 2.5[0-1][a-z]* )
39 You must have autoconf 2.52 or later installed to compile $PROJECT.
40 Download the appropriate package for your distribution/OS,
41 or get the source tarball at ftp://ftp.gnu.org/pub/gnu/autoconf/
48 AMVER=`$AUTOMAKE --version | grep '^automake' | sed 's/.*) *//'`
50 1.[6-9]* | 1.[1][0-9]*)
57 You must have automake 1.6 or later installed to compile $PROJECT.
58 Download the appropriate package for your distribution/OS,
59 or get the source tarball at ftp://ftp.gnu.org/pub/gnu/automake/
67 # Apple's Developer Tools have a "libtool" that has nothing to do with
68 # the GNU libtool; they call the latter "glibtool". They also call
69 # libtoolize "glibtoolize".
71 # Check for "glibtool" first.
73 LTVER=`glibtool --version 2>/dev/null | grep ' libtool)' | \
74 sed 's/.*libtool) \([0-9][0-9.]*\)[^ ]* .*/\1/'`
77 LTVER=`libtool --version | grep ' libtool)' | \
78 sed 's/.*) \([0-9][0-9.]*\)[^ ]* .*/\1/' `
81 LIBTOOLIZE=glibtoolize
88 You must have libtool 1.4 or later installed to compile $PROJECT.
89 Download the appropriate package for your distribution/OS,
90 or get the source tarball at ftp://ftp.gnu.org/pub/gnu/libtool/
98 for dir in . wiretap ; do
102 if [ "$dir" = "." ] ; then
107 aclocal_flags=`$topdir/aclocal-flags`
108 aclocalinclude="$ACLOCAL_FLAGS $aclocal_flags";
109 echo $ACLOCAL $aclocalinclude
110 $ACLOCAL $aclocalinclude || exit 1
111 if [ "$dir" = "." ] ; then
113 # We do NOT want libtoolize overwriting our versions of config.guess and
114 # config.sub, so move them away and then move them back.
115 # We don't omit "--force", as we want libtoolize to install other files
118 mv config.guess config.guess.save-libtool
119 mv config.sub config.sub.save-libtool
120 LTARGS=" --copy --force"
121 echo $LIBTOOLIZE $LTARGS
122 $LIBTOOLIZE $LTARGS || exit 1
123 rm -f config.guess config.sub
124 mv config.guess.save-libtool config.guess
125 mv config.sub.save-libtool config.sub
128 $AUTOHEADER || exit 1
129 echo $AUTOMAKE --add-missing --gnu $am_opt
130 $AUTOMAKE --add-missing --gnu $am_opt || exit 1
136 #./configure "$@" || exit 1
139 echo "Now type \"./configure [options]\" and \"make\" to compile $PROJECT."