2 # Run this to generate configure and initial GNUmakefiles
6 # Be paranoid: check for autoconf >= 2.50
7 # Some setups have both autoconf 2.13 and 2.50 available through
8 # a wrapper script: /usr/bin/autoconf.
9 # This wrapper may correctly autoselect autoconf 2.50, but it
10 # advertises itself as autoconf 2.13.
11 # If you have such a setup, invoke this script as:
12 # autoconf=autoconf ./autogen.sh
13 for i in in autoconf autoconf2.50 false; do
14 version=`$i --version 2>/dev/null | head -1 | awk '{print $NF}' | awk -F. '{print $1 * 100 + $2}'`
15 if test "0$version" -ge 250; then
21 if test -z "$autoconf"; then
22 echo "ERROR: Please install autoconf 2.50 or newer"
27 echo "WARNING: I am going to run \`configure' with no arguments."
28 echo "If you wish to pass any to it, please specify them on the"
29 echo \`$0\'" command line."
33 for coin in `find $srcdir -name configure.in -print`
39 echo "Running autoconf ..."
44 #conf_flags="--enable-maintainer-mode --enable-compile-warnings" #--enable-iso-c
45 if test -z "$NOCONFIGURE"; then
46 echo Running $srcdir/configure $conf_flags "$@" ...
47 $srcdir/configure $conf_flags "$@"
49 echo Skipping configure process.