#!/bin/sh
-rm -rf autom4te.cache
-rm -f aclocal.m4
+test -n "$srcdir" || srcdir=`dirname "$0"`
+test -n "$srcdir" || srcdir=.
+(
+ cd "$srcdir" &&
+ (
+ rm -rf autom4te.cache
+ rm -f aclocal.m4 ltmain.sh config.cache
-echo "Running aclocal..."; aclocal $ACLOCAL_FLAGS -I m4 \
-&& echo "Running autoheader..."; autoheader \
-&& echo "Running autoconf..."; autoconf \
-&& echo "Running libtoolize..."; ( libtoolize --automake || glibtoolize --automake ) \
-&& echo "Running automake..."; automake --add-missing --copy --gnu
+ autoreconf --symlink --install || exit 1
+ )
+)
-### If you want this, uncomment it.
-./configure "$@"
+test -n "$NOCONFIGURE" || exec $srcdir/configure -C "$@"
+
+exit 0