add -fno-exceptions to CXXFLAGS if compiler supports it

master
Andrzej Rybczak 17 years ago
parent 70910b77ed
commit 0a1d2e37ae
  1. 15
      configure.in

@ -28,6 +28,21 @@ if test "$clock" = "yes"; then
AC_DEFINE([ENABLE_CLOCK], [1], [enables clock screen])
fi
dnl =====================================
dnl = checking for -fno-exceptions flag =
dnl =====================================
AC_MSG_CHECKING([whether compiler supports -fno-exceptions])
old_CXXFLAGS="$CXXFLAGS"
CXXFLAGS="-fno-exceptions"
AC_COMPILE_IFELSE(AC_LANG_PROGRAM([[ ]]),
AC_MSG_RESULT([yes])
no_exceptions="-fno-exceptions"
,
AC_MSG_RESULT([no])
)
CXXFLAGS="$old_CXXFLAGS $no_exceptions"
dnl ====================================
dnl = checking for win32 related stuff =
dnl ====================================

Loading…
Cancel
Save