Update autogen.sh to one that does objdir != srcdir.

This commit is contained in:
Daniel Stone
2005-08-18 09:03:38 +00:00
parent 88befc6f4b
commit 7d5839eb99

View File

@@ -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 "$@"