summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2019-06-18 08:12:44 +0200
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-06-18 08:12:53 +0200
commit4f8e15c16c4f68b6fae8708b177ce672daefc59c (patch)
tree8c1bf8d808e0939bbd83291855961512ee42e70c /autogen.sh
parente8c69667b01e2795c1e4ead0536652f935ffa674 (diff)
Revert "autotools: REMOVAL!"
This reverts commit e8c69667b01e2795c1e4ead0536652f935ffa674. git push on a wrong branch, sorry. This will land today, but not now.
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh39
1 files changed, 39 insertions, 0 deletions
diff --git a/autogen.sh b/autogen.sh
new file mode 100755
index 0000000..0481d71
--- /dev/null
+++ b/autogen.sh
@@ -0,0 +1,39 @@
1#!/bin/sh
2
3test -n "$srcdir" || srcdir=`dirname "$0"`
4test -n "$srcdir" || srcdir=.
5(
6 cd "$srcdir" &&
7 (
8 rm -rf autom4te.cache
9 rm -f aclocal.m4 ltmain.sh
10
11 autoreconf -vif
12 )
13
14 W=0
15
16 rm -f config.cache-env.tmp
17 echo "OLD_PARM=\"$@\"" >> config.cache-env.tmp
18 echo "OLD_CFLAGS=\"$CFLAGS\"" >> config.cache-env.tmp
19 echo "OLD_PATH=\"$PATH\"" >> config.cache-env.tmp
20 echo "OLD_PKG_CONFIG_PATH=\"$PKG_CONFIG_PATH\"" >> config.cache-env.tmp
21 echo "OLD_LDFLAGS=\"$LDFLAGS\"" >> config.cache-env.tmp
22
23 cmp config.cache-env.tmp config.cache-env >> /dev/null
24 if [ $? -ne 0 ]; then
25 W=1;
26 fi
27
28 if [ $W -ne 0 ]; then
29 echo "Cleaning configure cache...";
30 rm -f config.cache config.cache-env
31 mv config.cache-env.tmp config.cache-env
32 else
33 rm -f config.cache-env.tmp
34 fi
35)
36
37if [ -z "$NOCONFIGURE" ]; then
38 exec $srcdir/configure -C "$@"
39fi