diff options
Diffstat (limited to 'autogen.sh')
-rwxr-xr-x | autogen.sh | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -4,11 +4,15 @@ srcdir=`dirname $0` test -z "$srcdir" && srcdir=. +olddir=`pwd` + (test -f $srcdir/configure.ac) || { echo "**Error**: Directory "\`$srcdir\'" does not look like the top-level project directory" exit 1 } +cd "$srcdir" + PKG_NAME=`autoconf --trace "AC_INIT:$1" "$srcdir/configure.ac"` if [ "$#" = 0 -a "x$NOCONFIGURE" = "x" ]; then @@ -32,6 +36,8 @@ gtkdocize --copy || exit 1 intltoolize --force --copy --automake || exit 1 autoreconf --verbose --force --install -Wno-portability || exit 1 +cd "$olddir" + if [ "$NOCONFIGURE" = "" ]; then $srcdir/configure "$@" || exit 1 |