1
# Version 2.96 of gcc (shipped with RedHat Linux 7.[01] and Mandrake) had
3
AC_DEFUN(AC_GCC_CONFIG1, [
4
AC_CACHE_CHECK([whether we are using gcc version 2.96],
7
if test "$GCC" = "yes"; then
8
GCC_VERSION=`${MAKEFILE_CC} --version`
14
if test "$db_cv_gcc_2_96" = "yes"; then
15
CFLAGS=`echo "$CFLAGS" | sed 's/-O2/-O/'`
16
CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-O2/-O/'`
17
AC_MSG_WARN([INSTALLED GCC COMPILER HAS SERIOUS BUGS; PLEASE UPGRADE.])
18
AC_MSG_WARN([GCC OPTIMIZATION LEVEL SET TO -O.])
21
# Versions of g++ up to 2.8.0 required -fhandle-exceptions, but it is
22
# renamed as -fexceptions and is the default in versions 2.8.0 and after.
23
AC_DEFUN(AC_GCC_CONFIG2, [
24
AC_CACHE_CHECK([whether g++ requires -fhandle-exceptions],
27
if test "$GXX" = "yes"; then
28
GXX_VERSION=`${MAKEFILE_CXX} --version`
29
case ${GXX_VERSION} in
30
1.*|2.[[01234567]].*|*-1.*|*-2.[[01234567]].*)
31
db_cv_gxx_except=yes;;
34
if test "$db_cv_gxx_except" = "yes"; then
35
CXXFLAGS="$CXXFLAGS -fhandle-exceptions"