GXX_VERSION=pathscale_cc
GXX_VERSION_DETAILED="$GXX_VERSION"
else
- dnl Aw, nothing suitable found...
- AC_MSG_RESULT(Unrecognized C++ compiler -- Try to go ahead and get help from dealii@dealii.org)
- GXX_BRAND=Unknown
- GXX_VERSION=unknown_cc
- GXX_VERSION_DETAILED="$GXX_VERSION"
+
+ is_clang="`($CXX --version 2>&1) | grep clang`"
+ if test "x$is_clang" != x ; then
+ AC_MSG_RESULT(C++ compiler is clang)
+ GXX_BRAND=clang
+ GXX_VERSION=clang
+ GXX_VERSION_DETAILED="$GXX_VERSION"
+ else
+
+ dnl Aw, nothing suitable found...
+ AC_MSG_RESULT(Unrecognized C++ compiler -- Try to go ahead and get help from dealii@dealii.org)
+ GXX_BRAND=Unknown
+ GXX_VERSION=unknown_cc
+ GXX_VERSION_DETAILED="$GXX_VERSION"
+ fi
fi
fi
fi
DEAL_II_ADD_EXTERNAL_LIBS_AT_TAIL(-lm)
;;
+ clang*)
+ dnl Like many other compilers, clang produces warnings for array
+ dnl accesses out of bounds, even if they are in code that's dead
+ dnl for this dimension. suppress this
+ CXXFLAGSG="$CXXFLAGS -DDEBUG -g -Wall -Wno-array-bounds -Wno-parentheses -Wno-delete-non-virtual-dtor -Wno-unneeded-internal-declaration -Wno-unused-function -Wno-unused-variable"
+ CXXFLAGSO="$CXXFLAGS -O2"
+ CXXFLAGSPIC="-fPIC"
+ LDFLAGSPIC="-fPIC"
+ ;;
+
intel_icc*)
dnl Earlier icc versions used -Kxxx for flags. Later versions use
dnl the gcc convention -fxxx. Also, at least since icc11, the
LDFLAGS="$LDFLAGS -lpthread"
;;
+ clang*)
+ LDFLAGS="$LDFLAGS -lpthread"
+ ;;
+
pgCC*)
LDFLAGS="$LDFLAGS -lpthread"
;;
#! /bin/sh
-# From configure.in Revision: 23754 .
+# From configure.in Revision: 24112 .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.68 for deal.II 7.1.pre.
#
GXX_VERSION=pathscale_cc
GXX_VERSION_DETAILED="$GXX_VERSION"
else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: Unrecognized C++ compiler -- Try to go ahead and get help from dealii@dealii.org" >&5
+
+ is_clang="`($CXX --version 2>&1) | grep clang`"
+ if test "x$is_clang" != x ; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: C++ compiler is clang" >&5
+$as_echo "C++ compiler is clang" >&6; }
+ GXX_BRAND=clang
+ GXX_VERSION=clang
+ GXX_VERSION_DETAILED="$GXX_VERSION"
+ else
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: Unrecognized C++ compiler -- Try to go ahead and get help from dealii@dealii.org" >&5
$as_echo "Unrecognized C++ compiler -- Try to go ahead and get help from dealii@dealii.org" >&6; }
- GXX_BRAND=Unknown
- GXX_VERSION=unknown_cc
- GXX_VERSION_DETAILED="$GXX_VERSION"
+ GXX_BRAND=Unknown
+ GXX_VERSION=unknown_cc
+ GXX_VERSION_DETAILED="$GXX_VERSION"
+ fi
fi
fi
fi
;;
+ clang*)
+ CXXFLAGSG="$CXXFLAGS -DDEBUG -g -Wall -Wno-array-bounds"
+ CXXFLAGSO="$CXXFLAGS -O2"
+ CXXFLAGSPIC="-fPIC"
+ LDFLAGSPIC="-fPIC"
+ ;;
+
intel_icc*)
case "$GXX_VERSION" in
intel_icc5 | intel_icc6 | intel_icc7 | intel_icc8 | intel_icc9)
LDFLAGS="$LDFLAGS -lpthread"
;;
+ clang*)
+ LDFLAGS="$LDFLAGS -lpthread"
+ ;;
+
pgCC*)
LDFLAGS="$LDFLAGS -lpthread"
;;