Reviewed by Alp Toker.
http://bugs.webkit.org/show_bug.cgi?id=16736
Allow autogen.sh invocation from a separate build directory.
* autogen.sh:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@29196
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2008-01-05 Sylvain Pasche <sylvain.pasche@gmail.com>
+
+ Reviewed by Alp Toker.
+
+ http://bugs.webkit.org/show_bug.cgi?id=16736
+ Allow autogen.sh invocation from a separate build directory.
+
+ * autogen.sh:
+
2008-01-04 Alp Toker <alp@atoker.com>
Rubber-stamped by Mark Rowe.
#! /bin/sh
+# Allow invocation from a separate build directory; in that case, we change
+# to the source directory to run the auto*, then change back before running configure
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
+ORIGDIR=`pwd`
cd $srcdir
DIE=0
automake --foreign --add-missing || exit $?
autoconf || exit $?
-./configure $AUTOGEN_CONFIGURE_ARGS "$@" || exit $?
+cd $ORIGDIR || exit 1
+
+$srcdir/configure $AUTOGEN_CONFIGURE_ARGS "$@" || exit $?