amver=`find_version automake ${amversions}`
acver=`find_version autoconf ${acversions}`
-# Bootstrap the autotool subsystems
-bootstrap aclocal$amver
-#workaround for Automake 1.5
-if grep m4_regex aclocal.m4 >/dev/null; then
- perl -i.bak -p -e 's/m4_patsubst/m4_bpatsubst/g; s/m4_regexp/m4_bregexp/g;' aclocal.m4
-fi
-bootstrap autoheader$acver
-bootstrap automake$amver --foreign --add-missing
-bootstrap autoconf$acver
+for dir in \
+ "" \
+ lib/libTrie
+do
+ if (
+ echo "Bootstrapping $dir"
+ cd ./$dir
+ # Bootstrap the autotool subsystems
+ bootstrap aclocal$amver
+ #workaround for Automake 1.5
+ if grep m4_regex aclocal.m4 >/dev/null; then
+ perl -i.bak -p -e 's/m4_patsubst/m4_bpatsubst/g; s/m4_regexp/m4_bregexp/g;' aclocal.m4
+ fi
+ bootstrap autoheader$acver
+ bootstrap automake$amver --foreign --add-missing
+ bootstrap autoconf$acver ); then
+ : # OK
+ else
+ exit 1
+ fi
+done
echo "Autotool bootstrapping complete."
-echo "bootstrapping sub projects."
-cd lib/libTrie && ./bootstrap.sh
+#echo "bootstrapping sub projects."
+#cd lib/libTrie && ./bootstrap.sh
+++ /dev/null
-#! /bin/sh
-# Used to setup the configure.in, autoheader and Makefile.in's if configure
-# has not been generated. This script is only needed for developers when
-# configure has not been run, or if a Makefile.am in a non-configured directory
-# has been updated
-
-
-bootstrap() {
- if "$@"; then
- true # Everything OK
- else
- echo "$1 failed"
- echo "Autotool bootstrapping failed. You will need to investigate and correct" ;
- echo "before you can develop on this source tree"
- exit 1
- fi
-}
-
-# Make sure cfgaux exists
-mkdir -p cfgaux
-
-echo "Bootstrapping libTrie."
-# Bootstrap the autotool subsystems
-bootstrap aclocal
-bootstrap autoheader
-#bootstrap libtoolize --automake
-bootstrap automake --add-missing
-bootstrap autoconf
-
-echo "Autotool bootstrapping complete."