summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e7c82d1)
raw | patch | inline | side by side (parent: e7c82d1)
author | mjwybrow <mjwybrow@users.sourceforge.net> | |
Sat, 3 Feb 2007 02:30:18 +0000 (02:30 +0000) | ||
committer | mjwybrow <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.
cannot be specified along with '-v' such as those needed for building
universal binaries under OS X.
configure.ac | patch | blob | history |
diff --git a/configure.ac b/configure.ac
index b05fe8eb2a5c76594f06a181c54cdb7a164a36ed..3709c6ae99dc2df01da1b87ac0800de899d2e3b6 100644 (file)
--- a/configure.ac
+++ b/configure.ac
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])