-set -x
-$aclocal -I m4
-if grep AC_CONFIG_HEADERS configure.ac >/dev/null; then
- $autoheader
-fi
-$libtoolize --automake --force
-$automake --add-missing
-$autoconf
-set -
-if [ -f config.cache ]; then
- rm config.cache
-fi
-
-enable_configure=false
-enable_help=true
-sh_flags=""
-conf_flags=""
-case $1 in
- -d)
- sh_cflags="-g -Wall -Wdeclaration-after-statement -Wstrict-prototypes"
- sh_cxxflags="-g -Wall"
- enable_configure=true
- enable_help=false
- shift
- ;;
- -c)
- sh_cflags=""
- sh_cxxflags=""
- enable_configure=true
- enable_help=false
- shift
- ;;
-esac
-
-if $enable_configure; then
- if [ -n "$sh_cflags" ]; then
- CFLAGS="$sh_cflags" CXXFLAGS="$sh_cxxflags" ./configure \
- --disable-shared --enable-static --with-pic $*
- else
- ./configure $*
- fi
-fi