summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorJan Kneschke <jan@kneschke.de>2005-02-21 19:51:33 +0000
committerJan Kneschke <jan@kneschke.de>2005-02-21 19:51:33 +0000
commita6d5be451efbc16184fd46f6f155a29c68ab06af (patch)
tree8f3546e24cc61247c6ed34524510649bbbfea44b /autogen.sh
parent91066a8b6089d889f9b24f816adc583025a6a438 (diff)
downloadlighttpd1.4-a6d5be451efbc16184fd46f6f155a29c68ab06af.tar.gz
lighttpd1.4-a6d5be451efbc16184fd46f6f155a29c68ab06af.zip
added autogen.sh submitted by debugger@#lighttpd
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@36 152afb58-edef-0310-8abb-c4023f1b3aa9
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh34
1 files changed, 34 insertions, 0 deletions
diff --git a/autogen.sh b/autogen.sh
new file mode 100755
index 00000000..b4df1928
--- /dev/null
+++ b/autogen.sh
@@ -0,0 +1,34 @@
+#!/bin/sh
+# Run this to generate all the initial makefiles, etc.
+
+LIBTOOLIZE=${LIBTOOLIZE:-libtoolize}
+LIBTOOLIZE_FLAGS="--copy --force"
+ACLOCAL=${ACLOCAL:-aclocal}
+AUTOHEADER=${AUTOHEADER:-autoheader}
+AUTOMAKE=${AUTOMAKE:-automake}
+AUTOMAKE_FLAGS="--add-missing --copy"
+AUTOCONF=${AUTOCONF:-autoconf}
+
+ARGV0=$0
+
+set -e
+
+if [ -z "$*" ]; then
+ echo "$ARGV0: Note: \`./configure' will be run without arguments."
+ echo " If you wish to pass any to it, please specify them on the"
+ echo " \`$0' command line."
+ echo
+fi
+
+run() {
+ echo "$ARGV0: running \`$@'"
+ $@
+}
+
+run $LIBTOOLIZE $LIBTOOLIZE_FLAGS
+run $ACLOCAL $ACLOCAL_FLAGS
+run $AUTOHEADER
+run $AUTOMAKE $AUTOMAKE_FLAGS
+run $AUTOCONF
+run ./configure --enable-maintainer-mode "$@"
+echo "Now type \`make' to compile."