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

This commit is contained in:
Matthias Hopf 2007-04-11 17:23:44 +02:00
parent ea93d1b25b
commit cb188ab9d7

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 "$@"
cd $ORIGDIR || exit $?
$srcdir/configure --enable-maintainer-mode "$@"