summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMukund Sivaraman <muks@banu.com>2009-09-24 08:16:26 +0530
committerMukund Sivaraman <muks@banu.com>2009-09-27 08:09:23 +0530
commit1c72d8f0631401487ed9bd9340fe2269658ccfa9 (patch)
tree4570ab42bbed884b72afb6d6e7fc90e343e0ab81
parent38c20cd8676d8152b4437346925995f76fa62815 (diff)
downloadtinyproxy-1c72d8f0631401487ed9bd9340fe2269658ccfa9.tar.gz
tinyproxy-1c72d8f0631401487ed9bd9340fe2269658ccfa9.zip
build: Run configure in autogen.sh
-rwxr-xr-xautogen.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/autogen.sh b/autogen.sh
index d19915a..edde3be 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -6,8 +6,31 @@
# can now be used...
#
+srcdir=`dirname $0`
+test -z "$srcdir" && srcdir=.
+ORIGDIR=`pwd`
+
set -x
+
+cd $srcdir
+
aclocal -I m4macros \
&& autoheader \
&& automake --gnu --add-missing \
&& autoconf
+
+cd $ORIGDIR
+
+set -
+
+echo $srcdir/configure --enable-maintainer-mode "$@"
+$srcdir/configure --enable-maintainer-mode "$@"
+RC=$?
+if test $RC -ne 0; then
+ echo
+ echo "Configure failed or did not finish!"
+ exit $RC
+fi
+
+echo
+echo "Now type 'make' to compile Tinyproxy."