diff options
author | rizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-10-10 06:48:50 +0000 |
---|---|---|
committer | rizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-10-10 06:48:50 +0000 |
commit | 5a859995e0473177e8dd4fef1c812dde2efe5430 (patch) | |
tree | 21195dc1c82681faa37561291782049ff7ac37ab /bootstrap.sh | |
parent | 842f3a47ee57ed9bc01a9fa2665affc084f75b24 (diff) |
Adapt the autotools names to different versions of FreeBSD
(and open the way to better adaptation for other platforms as well).
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@85197 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'bootstrap.sh')
-rwxr-xr-x | bootstrap.sh | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/bootstrap.sh b/bootstrap.sh index 8fd87efd0..b7eb4d83d 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= |