Code

* configure.ac: Don't pass CXXFLAGS to the CXX command that is used to
authormjwybrow <mjwybrow@users.sourceforge.net>
Sat, 3 Feb 2007 02:30:18 +0000 (02:30 +0000)
committermjwybrow <mjwybrow@users.sourceforge.net>
Sat, 3 Feb 2007 02:30:18 +0000 (02:30 +0000)
    determine the compiler version.  This is required since some options
    cannot be specified along with '-v' such as those needed for building
    universal binaries under OS X.

configure.ac

index b05fe8eb2a5c76594f06a181c54cdb7a164a36ed..3709c6ae99dc2df01da1b87ac0800de899d2e3b6 100644 (file)
@@ -54,7 +54,9 @@ dnl Verify our GCC version
 if test "x$GXX" = "xyes"; then
        AC_MSG_CHECKING([GNU compiler version])
 
-       cc_version=["`$CXX $CXXFLAGS -v 2>&1 </dev/null |grep 'gcc version' |\
+       # Don't pass CXXFLAGS to the following CXX command as some 
+       # of them can't be specified along with '-v'.
+       cc_version=["`$CXX -v 2>&1 </dev/null |grep 'gcc version' |\
                sed 's/.*gcc version \([-a-z0-9\.]*\).*/\1/'`"]
 
        AC_MSG_RESULT([$cc_version])