-case $CC in
-xlc )
- am_opt=--include-deps;;
-esac
-
-for coin in `find $srcdir -name configure.ac -print `\
- `find $srcdir -name configure.in -print`
-do
- dr=`dirname $coin`
- if test -f $dr/NO-AUTO-GEN; then
- echo skipping $dr -- flagged as no auto-gen
- else
- echo "************"
- echo "* Processing directory $dr"
- echo "************"
-
- if [ -e $dr/configure.in ] ; then
- configfile="configure.in"
- else
- configfile="configure.ac"
- fi
- macrodirs=`sed -n -e 's,AM_ACLOCAL_INCLUDE(\(.*\)),\1,gp' < $coin`
- here=`pwd`
- cd $dr
- if grep "^AM_PROG_LIBTOOL" $configfile >/dev/null; then
- if test -z "$NO_LIBTOOLIZE" ; then
- echo "Running libtoolize --force --copy in "`pwd`"..."
- libtoolize --force --copy || exit 1
- fi
- fi
- echo "Running aclocal-1.7 $aclocalinclude..."
- aclocal-1.7 $aclocalinclude
- if grep "^AM_CONFIG_HEADER" $configfile >/dev/null; then
- echo "Running autoheader in "`pwd`"..."
- autoheader || exit 1
- fi
- if grep "^AM_INIT_AUTOMAKE" $configfile >/dev/null; then
- echo "Running automake-1.7 --gnu --add-missing $am_opt ..."
- automake-1.7 --gnu --add-missing $am_opt || exit 1
- fi
- echo "Running autoconf..."
- autoconf || exit 1
- cd $here
- fi
-done
-
-#conf_flags="--enable-compile-warnings"
-# \
-#--enable-compile-warnings=minimum"
-#--enable-iso-c
-
-#echo "rebuilding the api documentation... "
-#cd docs && ./refresh-api " "&& echo "Done with the rebuilding of the api documentation." && cd .. || exit 1
-
-
-if test x$NOCONFIGURE = x; then
- echo "************"
- echo "* Running ./configure $configure_args..."
- echo "************"
-
- ./configure $configure_args || exit 1
-
-else
- echo Skipping configure process.