summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2008-07-27 18:56:58 +0200
committerLennart Poettering <lennart@poettering.net>2008-07-27 18:56:58 +0200
commit25e22659bf0fed89a30bedd0386c36fa147885c8 (patch)
treeb3280ed9318c3543fcdffa40cf30e79d486a759e
parentc82b09a7e65d11a5f47e614b0ba434b5d6695e84 (diff)
update autogen script a bit
-rwxr-xr-xautogen.sh24
1 files changed, 13 insertions, 11 deletions
diff --git a/autogen.sh b/autogen.sh
index 434b13d..61e7225 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -25,15 +25,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
@@ -45,21 +45,23 @@ 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
mkdir -p common
+ touch config.rpath
+
test "x$LIBTOOLIZE" = "x" && LIBTOOLIZE=libtoolize
- run_versioned "$LIBTOOLIZE" 1.5 -c --force
+ "$LIBTOOLIZE" -c --force
run_versioned aclocal "$VERSION" -I common
run_versioned autoconf 2.59 -Wall
run_versioned autoheader 2.59
run_versioned automake "$VERSION" -a -c --foreign
if test "x$NOCONFIGURE" = "x"; then
- ./configure "$@"
+ CFLAGS="-g -O0" ./configure --sysconfdir=/etc --localstatedir=/var "$@"
make clean
fi
fi