6 if test "$1" = --with-automake ; then
8 configfile=configure.am
10 elif test -z "$1" ; then
12 configfile=configure.ac
15 die "Invalid option: $1"
17 test -d autoconf && test -f autoconf/$configfile && cd autoconf
18 test -f $configfile || die "Can't find 'autoconf' dir; please cd into it first"
19 autoconf --version | egrep '2\.59' > /dev/null
20 if test $? -ne 0 ; then
21 die "Your autoconf was not detected as being 2.59"
23 aclocal --version | egrep '1\.9\.2' > /dev/null
24 if test $? -ne 0 ; then
25 die "Your aclocal was not detected as being 1.9.2"
27 autoheader --version | egrep '2\.59' > /dev/null
28 if test $? -ne 0 ; then
29 die "Your autoheader was not detected as being 2.59"
31 libtool --version | grep '1\.5\.10' > /dev/null
32 if test $? -ne 0 ; then
33 die "Your libtool was not detected as being 1.5.10"
36 echo "### NOTE: ############################################################"
37 echo "### If you get *any* warnings from autoconf below you MUST fix the"
38 echo "### scripts in the m4 directory because there are future forward"
39 echo "### compatibility or platform support issues at risk. Please do NOT"
40 echo "### commit any configure script that was generated with warnings"
41 echo "### present. You should get just three 'Regenerating..' lines."
42 echo "######################################################################"
44 echo "Regenerating aclocal.m4 with aclocal 1.9.2"
46 aclocal --force -I $cwd/m4 || die "aclocal failed"
47 echo "Regenerating configure with autoconf 2.59"
48 autoconf --force --warnings=all -o ../$outfile $configfile || die "autoconf failed"
50 echo "Regenerating config.h.in with autoheader 2.59"
51 autoheader --warnings=all -I autoconf -I autoconf/m4 autoconf/$configfile || die "autoheader failed"