diff --git a/autogen.sh b/autogen.sh index f25b0a3c..c5e1bf34 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,6 +1,15 @@ #!/bin/sh + +test -n "${srcdir}" || srcdir=`dirname "$0"` +test -n "${srcdir}" || srcdir="$(pwd)" + +olddir="$(pwd)" +cd "$srcdir" + export ACLOCAL="aclocal -I m4" intltoolize autoreconf -i -./configure --enable-maintainer-mode "$@" + +cd "$olddir" +"$srcdir/configure" --enable-maintainer-mode "$@"