Brian Gaeke | 4940c57 | 2004-02-08 07:44:48 +0000 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | die () { |
| 3 | echo "$@" 1>&2 |
| 4 | exit 1 |
| 5 | } |
| 6 | test -d autoconf && test -f autoconf/configure.ac && cd autoconf |
Reid Spencer | dcd3875 | 2004-09-07 16:00:48 +0000 | [diff] [blame] | 7 | test -f configure.ac || die "Can't find 'autoconf' dir; please cd into it first" |
Reid Spencer | b03adb8 | 2004-09-19 22:14:24 +0000 | [diff] [blame] | 8 | autoconf --version | egrep '2\.59' > /dev/null |
| 9 | if test $? -ne 0 ; then |
| 10 | die "Your autoconf was not detected as being 2.59" |
| 11 | fi |
| 12 | aclocal --version | egrep '1\.9\.1' > /dev/null |
| 13 | if test $? -ne 0 ; then |
| 14 | die "Your aclocal was not detected as being 1.9.1" |
| 15 | fi |
| 16 | autoheader --version | egrep '2\.59' > /dev/null |
| 17 | if test $? -ne 0 ; then |
| 18 | die "Your autoheader was not detected as being 2.59" |
| 19 | fi |
| 20 | libtool --version | grep '1.5.10' > /dev/null |
| 21 | if test $? -ne 0 ; then |
| 22 | die "Your libtool was not detected as being 1.5.10" |
Brian Gaeke | 4940c57 | 2004-02-08 07:44:48 +0000 | [diff] [blame] | 23 | fi |
Reid Spencer | 8eacb0c | 2004-09-19 22:30:53 +0000 | [diff] [blame] | 24 | echo "" |
| 25 | echo "### NOTE: ############################################################" |
Reid Spencer | 5d6c4a5 | 2004-09-21 17:13:23 +0000 | [diff] [blame^] | 26 | echo "### If you get *any* warnings from autoconf below you MUST fix the" |
| 27 | echo "### scripts in the m4 directory because there are future forward" |
Reid Spencer | 8eacb0c | 2004-09-19 22:30:53 +0000 | [diff] [blame] | 28 | echo "### compatibility or platform support issues at risk. Please do NOT" |
| 29 | echo "### commit any configure.ac or configure script that was generated " |
Reid Spencer | 5d6c4a5 | 2004-09-21 17:13:23 +0000 | [diff] [blame^] | 30 | echo "### with warnings present. You should get just three 'Regenerating..'" |
| 31 | echo "### lines." |
Reid Spencer | 8eacb0c | 2004-09-19 22:30:53 +0000 | [diff] [blame] | 32 | echo "######################################################################" |
| 33 | echo "" |
Reid Spencer | dcd3875 | 2004-09-07 16:00:48 +0000 | [diff] [blame] | 34 | echo "Regenerating aclocal.m4 with aclocal" |
| 35 | cwd=`pwd` |
Reid Spencer | b03adb8 | 2004-09-19 22:14:24 +0000 | [diff] [blame] | 36 | aclocal --force -I $cwd/m4 || die "aclocal failed" |
Brian Gaeke | 4940c57 | 2004-02-08 07:44:48 +0000 | [diff] [blame] | 37 | echo "Regenerating configure with autoconf 2.5x" |
Reid Spencer | b03adb8 | 2004-09-19 22:14:24 +0000 | [diff] [blame] | 38 | autoconf --force --warnings=all -o ../configure configure.ac || die "autoconf failed" |
Brian Gaeke | 4940c57 | 2004-02-08 07:44:48 +0000 | [diff] [blame] | 39 | cd .. |
| 40 | echo "Regenerating config.h.in with autoheader 2.5x" |
Reid Spencer | dcd3875 | 2004-09-07 16:00:48 +0000 | [diff] [blame] | 41 | autoheader -I autoconf -I autoconf/m4 autoconf/configure.ac || die "autoheader failed" |
Brian Gaeke | 4940c57 | 2004-02-08 07:44:48 +0000 | [diff] [blame] | 42 | exit 0 |