From b4814719ff73420988d982825afa8935c66b7172 Mon Sep 17 00:00:00 2001 From: Luigi Rizzo Date: Wed, 10 Oct 2007 06:48:50 +0000 Subject: [PATCH] Adapt the autotools names to different versions of FreeBSD (and open the way to better adaptation for other platforms as well). git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@85197 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- bootstrap.sh | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/bootstrap.sh b/bootstrap.sh index 8fd87efd0b..b7eb4d83d1 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -14,16 +14,16 @@ check_for_app() { uname -s | grep -q BSD if [ $? = 0 ] ; then # BSD case - uname -s | grep -q FreeBSD - if [ $? = 0 ] ; then # FreeBSD case - MY_AC_VER=259 - MY_AM_VER=19 - fi - uname -s | grep -q OpenBSD - if [ $? = 0 ] ; then # OpenBSD case - MY_AC_VER=-2.61 - MY_AM_VER=-1.9 - fi + case `uname -sr` in + 'FreeBSD 4'*) # FreeBSD 4.x has a different naming + MY_AC_VER=259 + MY_AM_VER=19 + ;; + *) + MY_AC_VER=-2.61 + MY_AM_VER=-1.9 + ;; + esac else # linux case MY_AC_VER= MY_AM_VER=