]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Detect hp aCC, and set some flags.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 6 May 2002 15:02:00 +0000 (15:02 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 6 May 2002 15:02:00 +0000 (15:02 +0000)
git-svn-id: https://svn.dealii.org/trunk@5827 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/aclocal.m4

index 3b480676f05ab08a0cba52f1d519d80361b52905..e1f3b86e943387d478bdf938100d28e823dbc14c 100644 (file)
@@ -132,9 +132,17 @@ AC_DEFUN(DEAL_II_DETERMINE_CXX_BRAND, dnl
                  GXX_VERSION=portland_group
                else
   
-                    dnl  Aw, nothing suitable found...
-                    AC_MSG_ERROR(Unrecognized compiler, sorry)
-                    exit 1
+                 dnl HP aCC?
+                 is_aCC="`($CXX -V 2>&1) | grep 'aCC'`"
+                 if test "x$is_aCC" != "x" ; then
+                   AC_MSG_RESULT(C++ compiler is HP aCC)
+                   GXX_VERSION=hp_aCC
+                 else
+  
+                      dnl  Aw, nothing suitable found...
+                      AC_MSG_ERROR(Unrecognized compiler, sorry)
+                      exit 1
+                    fi
                   fi
                 fi
               fi
@@ -334,6 +342,13 @@ AC_DEFUN(DEAL_II_SET_CXX_FLAGS, dnl
           CXXFLAGSO="$CXXFLAGS -A -Xa"
           CXXFLAGSPIC="-Kpic"
           ;;
+
+      hp_aCC)
+          CXXFLAGSG="$CXXFLAGS -g1 +p +w -z -Aa -AA"
+          CXXFLAGSO="$CXXFLAGS -A -Xa -z +O2 -Aa -AA"
+          CXXFLAGSPIC="+Z"
+         # for linking shared libs, -b is also necessary...
+          ;;
   
       *)
           AC_MSG_ERROR(No compiler options for this C++ compiler

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.