From a6a50fcf1a7160fe0d7394f00c04b8f21693595f Mon Sep 17 00:00:00 2001 From: Sebastien Estienne Date: Sun, 23 Oct 2005 16:10:31 +0000 Subject: * make run_versionned more /bin/sh friendly git-svn-id: file:///home/lennart/svn/public/libdaemon/trunk@92 153bfa13-eec0-0310-be40-b0cb6a0e1b4b --- autogen.sh | 10 ++++++---- bootstrap.sh | 4 +--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/autogen.sh b/autogen.sh index f541878..c1412c8 100755 --- a/autogen.sh +++ b/autogen.sh @@ -25,12 +25,14 @@ run_versioned() { V=$(echo "$2" | sed -e 's,\.,,g') - if type -p "$1$V" &> /dev/null ; then + if [ -e "`which $1$V`" ] ; then P="$1$V" - elif type -p "$1-$2" &> /dev/null ; then - P="$1-$2" else - P="$1" + if [ -e "`which $1-$2`" ] ; then + P="$1-$2" + else + P="$1" + fi fi shift 2 diff --git a/bootstrap.sh b/bootstrap.sh index c889c14..8077106 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -22,15 +22,13 @@ case `uname -s` in Darwin) export LIBTOOLIZE=/opt/local/bin/glibtoolize export PKG_CONFIG_PATH="/opt/local/lib/pkgconfig" - FLAGS="$FLAGS --prefix=/opt/local --disable-lynx" + FLAGS="$FLAGS --prefix=/opt/local" ;; FreeBSD) cp /usr/local/share/aclocal/libtool15.m4 common export LIBTOOLIZE=/usr/local/bin/libtoolize15 export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig" ;; - Linux) - ;; esac CFLAGS="$CFLAGS -g -O0" exec ./autogen.sh $FLAGS "$@" -- cgit