From: wolf Date: Mon, 6 May 2002 15:02:00 +0000 (+0000) Subject: Detect hp aCC, and set some flags. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=475bd06fbd1c0e9dfd9daa6842c315167b90b9e4;p=dealii-svn.git Detect hp aCC, and set some flags. git-svn-id: https://svn.dealii.org/trunk@5827 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/aclocal.m4 b/deal.II/aclocal.m4 index 3b480676f0..e1f3b86e94 100644 --- a/deal.II/aclocal.m4 +++ b/deal.II/aclocal.m4 @@ -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