summaryrefslogtreecommitdiffstats
path: root/bootstrap.sh
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2008-08-05 19:42:05 +0200
committerLennart Poettering <lennart@poettering.net>2008-08-05 19:42:05 +0200
commit0ed4f324326f63e5672367bc63609a3ee65faef6 (patch)
tree5b073fbb368ec6a2fed3a45467aec227fca3fb68 /bootstrap.sh
parenta32b21a4174cf372cd141cfc6c4e88ef96beb831 (diff)
update bootstrap.sh a bit
Diffstat (limited to 'bootstrap.sh')
-rwxr-xr-xbootstrap.sh25
1 files changed, 13 insertions, 12 deletions
diff --git a/bootstrap.sh b/bootstrap.sh
index 94ac0ee..2758474 100755
--- a/bootstrap.sh
+++ b/bootstrap.sh
@@ -23,15 +23,15 @@ run_versioned() {
local V
V=$(echo "$2" | sed -e 's,\.,,g')
-
- if [ -e "`which $1$V`" ] ; then
- P="$1$V"
+
+ if [ -e "`which $1$V 2> /dev/null`" ] ; then
+ P="$1$V"
else
- if [ -e "`which $1-$2`" ] ; then
- P="$1-$2"
- else
- P="$1"
- fi
+ if [ -e "`which $1-$2 2> /dev/null`" ] ; then
+ P="$1-$2"
+ else
+ P="$1"
+ fi
fi
shift 2
@@ -43,7 +43,7 @@ set -ex
if [ "x$1" = "xam" ] ; then
run_versioned automake "$VERSION" -a -c --foreign
./config.status
-else
+else
rm -rf autom4te.cache
rm -f config.cache
@@ -52,7 +52,8 @@ else
run_versioned autoheader 2.59
run_versioned automake "$VERSION" -a -c --foreign
- CFLAGS="-g -O0" ./configure --sysconfdir=/etc "$@"
-
- make clean
+ if test "x$NOCONFIGURE" = "x"; then
+ CFLAGS="-g -O0" ./configure --sysconfdir=/etc --localstatedir=/var "$@"
+ make clean
+ fi
fi