diff options
-rwxr-xr-x | autogen.sh | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/autogen.sh b/autogen.sh index b1376df5a..904cd6746 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,3 +1,12 @@ #! /bin/sh + +srcdir=`dirname $0` +test -z "$srcdir" && srcdir=. + +ORIGDIR=`pwd` +cd $srcdir + autoreconf -v --install || exit 1 -./configure --enable-maintainer-mode "$@" +cd $ORIGDIR || exit $? + +$srcdir/configure --enable-maintainer-mode "$@" |