Use canonical autogen.sh
authorDaniel Stone <daniel@fooishbar.org>
Thu, 24 May 2007 13:19:40 +0000 (16:19 +0300)
committerDaniel Stone <daniels@endtroducing.fooishbar.org>
Thu, 24 May 2007 13:19:40 +0000 (16:19 +0300)
Use the standard autogen.sh, which allows for srcdir != builddir.

autogen.sh

index dac4657..904cd67 100755 (executable)
@@ -1,5 +1,12 @@
-#!/bin/sh
-# Run this to generate all the initial makefiles, etc.
+#! /bin/sh
 
-autoreconf --force -i
-./configure $*
+srcdir=`dirname $0`
+test -z "$srcdir" && srcdir=.
+
+ORIGDIR=`pwd`
+cd $srcdir
+
+autoreconf -v --install || exit 1
+cd $ORIGDIR || exit $?
+
+$srcdir/configure --enable-maintainer-mode "$@"