]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Properly recognize IBM xlC
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 26 Sep 2007 03:38:37 +0000 (03:38 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 26 Sep 2007 03:38:37 +0000 (03:38 +0000)
git-svn-id: https://svn.dealii.org/trunk@15242 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/aclocal.m4
deal.II/configure

index 58379b719ef56c79f65339f5a838f3f91ab53a63..9a2f9c32808d3e96994615195dcdb21d4755b22d 100644 (file)
@@ -185,7 +185,7 @@ AC_DEFUN(DEAL_II_DETERMINE_CXX_BRAND, dnl
     dnl variables, moon position, and other reasons unknown to me, the
     dnl compiler displays different names in the first line of output, so
     dnl check various possibilities
-    is_ibm_xlc="`($CXX 2>&1) | egrep 'VisualAge C++|C Set ++|C for AIX Compiler'`"
+    is_ibm_xlc="`($CXX -qversion 2>&1) | grep IBM`"
     if test "x$is_ibm_xlc" != "x"  ; then
       dnl Ah, this is IBM's C++ compiler. Unfortunately, we don't presently
       dnl know how to check the version number, so assume that is sufficiently
index 93c3c6e1c83b0fbc1665acecd1d888f45b9ae4b3..8055a6edbb1a1508dfb144e9413b4d7a0b1e11bd 100755 (executable)
@@ -1,5 +1,5 @@
 #! /bin/sh
-# From configure.in Revision: 15116 .
+# From configure.in Revision: 15146 .
 # Guess values for system-dependent variables and create Makefiles.
 # Generated by GNU Autoconf 2.60 for deal.II 6.1.pre.
 #
@@ -3677,7 +3677,7 @@ echo "${ECHO_T}C++ compiler is $GXX_VERSION (subversion $GXX_VERSION_DETAILED)"
 
   else
 
-                    is_ibm_xlc="`($CXX 2>&1) | egrep 'VisualAge C++|C Set ++|C for AIX Compiler'`"
+                    is_ibm_xlc="`($CXX -qversion 2>&1) | grep IBM`"
     if test "x$is_ibm_xlc" != "x"  ; then
                         { echo "$as_me:$LINENO: result: C++ compiler is IBM xlC" >&5
 echo "${ECHO_T}C++ compiler is IBM xlC" >&6; }

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.