6 test -d autoconf && test -f autoconf/configure.ac && cd autoconf
7 test -f configure.ac || die "Can't find 'autoconf' dir; please cd into it first"
8 autoconf --version | egrep '2\.5[0-9]' > /dev/null
9 if test $? -ne 0 ; then
10 die "Your autoconf was not detected as being 2.5x"
13 if test -d ../../../autoconf/m4 ; then
14 cd ../../../autoconf/m4
17 elif test -d ../../llvm/autoconf/m4 ; then
18 cd ../../llvm/autoconf/m4
22 die "Can't find the LLVM autoconf/m4 directory. llvm-test should be checked out to projects directory"
24 echo "Regenerating aclocal.m4 with aclocal"
26 aclocal -I $cwd/m4 -I $llvm_m4 || die "aclocal failed"
27 echo "Regenerating configure with autoconf 2.5x"
28 autoconf --force --warnings=all -o ../configure configure.ac || die "autoconf failed"