summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordominique.leuenberger <dominique.leuenberger@c587cffe-e639-0410-9787-d7902ae8ed56>2009-08-25 08:28:45 +0000
committerdominique.leuenberger <dominique.leuenberger@c587cffe-e639-0410-9787-d7902ae8ed56>2009-08-25 08:28:45 +0000
commitdbb34fa461c0da4f2c350e2af8048b8af00018ca (patch)
treef75d1f6b0d7f13c1f37c482864ff2b3dddc61a42
parent7552ac050ea8c0c0ab898e346684bc0c2d8f3734 (diff)
downloadlibproxy-dbb34fa461c0da4f2c350e2af8048b8af00018ca.tar.gz
For compatibility with jhbuild, autogen.sh should run configure. Fixes issue #64
git-svn-id: http://libproxy.googlecode.com/svn/trunk@422 c587cffe-e639-0410-9787-d7902ae8ed56
-rwxr-xr-xautogen.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/autogen.sh b/autogen.sh
index 5cf962b..04aba44 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,5 +1,10 @@
#!/bin/bash
+srcdir=`dirname $0`
+test -z "$srcdir" && srcdir=.
+topdir=`pwd`
+cd $srcdir
+
LIBTOOLIZE=`which glibtoolize 2>/dev/null`
[ $LIBTOOLIZE ] || LIBTOOLIZE=`which libtoolize`
$LIBTOOLIZE -c -f --automake
@@ -7,3 +12,9 @@ aclocal
#autoheader
automake --foreign -a -c -f
autoconf -f
+
+cd $topdir
+if test "x$NOCONFIGURE" = "x"; then
+ $srcdir/configure $@
+fi
+