gcc detection fix for Mac OS X
PATCH 1/1 gcc detection fix for Mac OS X
Hello,
on Mac OS X the command 'which' always returns true - regardless of the result. This is a problem, when the configure script tries to detect the right gcc version. An alternative to 'which' could be to try to invoke the compiler directly.
Please have a look at the attached patch.
Thanks,
Jo.
Signature · 2 lines
Joachim Henke http://base91.sourceforge.net/j-o/
configure +1 -6
@@ -396,7 +396,2 @@ EOF - check_cc() { - which "$1" 2> /dev/null - return $? - } - if "$cc" -o $TMPE $TMPC 2> /dev/null ; then
@@ -407,3 +402,3 @@ for compat_cc in $gcc3_list ; do - if check_cc "$cross_prefix$compat_cc" ; then + if "$cross_prefix$compat_cc" --version > /dev/null 2>&1 ; then echo "Found \"$compat_cc\""