Search
lxdream.org :: lxdream/acinclude.m4 :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename acinclude.m4
changeset 985:52e64faac752
prev977:8514fb4bc101
next1147:e04e4af64626
author nkeynes
date Sun Jun 14 21:46:05 2009 +0000 (14 years ago)
permissions -rw-r--r--
last change Add -framework Carbon to go with previous change (SetSystemUIMode is tucked away in
Carbon)
file annotate diff log raw
1.1 --- a/acinclude.m4 Mon Feb 02 01:40:13 2009 +0000
1.2 +++ b/acinclude.m4 Sun Jun 14 21:46:05 2009 +0000
1.3 @@ -56,15 +56,15 @@
1.4 # different optimization flags. Currently recognizes gcc and icc
1.5 # ---------------
1.6 AC_DEFUN([AC_CC_VERSION], [
1.7 -_GCC_VERSION=`$CC --version | $SED -ne '/(GCC)/p'`
1.8 +_GCC_VERSION=`$CC --version | $SED -ne '/gcc/p'`
1.9 _ICC_VERSION=`$CC --version | $SED -ne '/(ICC)/p'`
1.10 AC_MSG_CHECKING([CC version])
1.11 -if test -n "$_GCC_VERSION"; then
1.12 +if test -n "$_ICC_VERSION"; then
1.13 + AC_MSG_RESULT([ICC])
1.14 + [ $2 ]
1.15 +elif test -n "$_GCC_VERSION"; then
1.16 AC_MSG_RESULT([GCC])
1.17 - [ $1 ]
1.18 -elif test -n "$_ICC_VERSION"; then
1.19 - AC_MSG_RESULT([ICC])
1.20 - [ $2 ]
1.21 + [ $1 ]
1.22 else
1.23 AC_MSG_RESULT([Unknown])
1.24 [ $3 ]
.