3 # Run this to generate all the initial makefiles.
5 # $Id: autogen.sh,v 1.13 2000/11/22 04:03:22 gram Exp $
11 # Check for python. There's no "--version" option!
12 python -c "print 'Checking for python.'"
16 You must have Python in order to compile $PROJECT.
17 Download the appropriate package for your distribution/OS,
18 or get the source tarball at http://www.python.org/
24 VER=`autoconf --version | grep '^autoconf' | sed 's/.*)//'`
26 0* | 1\.* | 2\.[0-9] | 2\.[0-9][a-z]* | \
27 2\.1[0-2] | 2\.1[0-2][a-z]* )
30 You must have autoconf 2.13 or later installed to compile $PROJECT.
31 Download the appropriate package for your distribution/OS,
32 or get the source tarball at ftp://ftp.gnu.org/pub/gnu/autoconf/
39 VER=`automake --version | grep '^automake' | sed 's/.*)//'`
41 0* | 1\.[0-3] | 1\.[0-3][a-z]* )
45 You must have automake 1.4 or later installed to compile $PROJECT.
46 Download the appropriate package for your distribution/OS,
47 or get the source tarball at ftp://ftp.gnu.org/pub/gnu/automake/
54 VER=`libtool --version | grep ' libtool)' | \
55 sed 's/.*) \([0-9][0-9.]*\) .*/\1/' `
57 0* | 1\.[0-2] | 1\.[0-2][a-z]* | \
58 1\.3\.[0-2] | 1\.3\.[0-2][a-z]* )
62 You must have libtool 1.3.3 or later installed to compile $PROJECT.
63 Download the appropriate package for your distribution/OS,
64 or get the source tarball at ftp://ftp.gnu.org/pub/gnu/libtool/
72 libtoolize --copy --force || exit 1
75 echo "Running ./configure with no arguments. If you wish to pass any,"
76 echo "please specify them on the $0 command line."
79 aclocal_flags="`./aclocal-flags`"
80 for dir in . epan wiretap ; do
84 aclocalinclude="$ACLOCAL_FLAGS $aclocal_flags"; \
85 echo aclocal $aclocalinclude
86 aclocal $aclocalinclude || exit 1
89 echo automake --add-missing --gnu $am_opt
90 automake --add-missing --gnu $am_opt || exit 1
96 ./configure "$@" || exit 1
99 echo "Now type 'make' to compile $PROJECT."