summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@samsung.com>2014-02-13 10:13:46 +0900
committerCedric BAIL <cedric.bail@samsung.com>2014-02-13 10:14:55 +0900
commit6e9bde2d84f0b783581262fa1f22c42f2b35881e (patch)
tree50c8453ad25f109cd06ffa1a5cca92f9c59705bb /autogen.sh
parentb16b5bb958d9d837f6495d7862e9c09b0511bbd7 (diff)
autotools: it is useless to destroy the cache everytime and request to use it.
This patch reenable configure cache and should make configure faster after a few run.
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh24
1 files changed, 23 insertions, 1 deletions
diff --git a/autogen.sh b/autogen.sh
index d265ba52df..d8535886a1 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,10 +1,32 @@
1#!/bin/sh 1#!/bin/sh
2 2
3rm -rf autom4te.cache 3rm -rf autom4te.cache
4rm -f aclocal.m4 ltmain.sh config.cache 4rm -f aclocal.m4 ltmain.sh
5 5
6autoreconf -vif 6autoreconf -vif
7 7
8W=0
9
10rm -f config.cache-env.tmp
11echo "OLD_PARM=\"$@\"" >> config.cache-env.tmp
12echo "OLD_CFLAGS=\"$CFLAGS\"" >> config.cache-env.tmp
13echo "OLD_PATH=\"$PATH\"" >> config.cache-env.tmp
14echo "OLD_PKG_CONFIG_PATH=\"$PKG_CONFIG_PATH\"" >> config.cache-env.tmp
15echo "OLD_LDFLAGS=\"$LDFLAGS\"" >> config.cache-env.tmp
16
17cmp config.cache-env.tmp config.cache-env >> /dev/null
18if [ $? -ne 0 ]; then
19 W=1;
20fi
21
22if [ $W -ne 0 ]; then
23 echo "Cleaning configure cache...";
24 rm -f config.cache config.cache-env
25 mv config.cache-env.tmp config.cache-env
26else
27 rm -f config.cache-env.tmp
28fi
29
8if [ -z "$NOCONFIGURE" ]; then 30if [ -z "$NOCONFIGURE" ]; then
9 exec ./configure -C "$@" 31 exec ./configure -C "$@"
10fi 32fi