From 37b200852c3a57091c4b5424c422608a7ebd3e96 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 5 Nov 2003 21:25:39 +0000 Subject: bootstra update git-svn-id: file:///home/lennart/svn/public/ifplugd/trunk@65 2bf48fe7-cfc1-0310-909f-d9042e1e0fef --- bootstrap.sh | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/bootstrap.sh b/bootstrap.sh index 7697c97..6344bd3 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -17,20 +17,29 @@ # along with ifplugd; if not, write to the Free Software Foundation, # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. +run_versioned() { + local P + type -p "$1-$2" &> /dev/null && P="$1-$2" || local P="$1" + + shift 2 + "$P" "$@" +} + if [ "x$1" = "xam" ] ; then set -ex - automake -a -c + run_versioned automake 1.7 -a -c ./config.status else set -ex - rm -rf autom4te.cache rm -f config.cache - aclocal + run_versioned aclocal 1.7 autoheader - automake -a -c + run_versioned automake 1.7 -a -c autoconf -Wall ./configure --sysconfdir=/etc "$@" + + make clean fi -- cgit