Permalink
Browse files

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

  • Loading branch information...
1 parent ea93d1b commit cb188ab9d7afb737a459d4d8105ce15fa00fdf0d Matthias Hopf committed Apr 11, 2007
Showing with 10 additions and 1 deletion.
  1. +10 −1 autogen.sh
View
@@ -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 "$@"

0 comments on commit cb188ab

Please sign in to comment.