diff options
author | Vincent Torri <vincent.torri@gmail.com> | 2009-08-20 08:45:20 +0000 |
---|---|---|
committer | Vincent Torri <vincent.torri@gmail.com> | 2009-08-20 08:45:20 +0000 |
commit | f29149beabc84c3e56b51b0ac42b92fe122903a0 (patch) | |
tree | de6902e98e1e8377d833f63563c8319944d8f388 /configure.ac | |
parent | a1b88ea91165f3ce8d8fb4a0ffbdf5ab66ee3add (diff) |
check if the compiler accepts -fno-rtti -fno-exceptions
SVN revision: 41882
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index cb7fed2..6fda04a 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -198,6 +198,23 @@ case "$host_os" in | |||
198 | esac | 198 | esac |
199 | AC_SUBST(WIN32_CFLAGS) | 199 | AC_SUBST(WIN32_CFLAGS) |
200 | 200 | ||
201 | EXPEDITE_CXXFLAGS="" | ||
202 | AC_LANG_PUSH([C++]) | ||
203 | CXXFLAGS_save="${CXXFLAGS}" | ||
204 | CXXFLAGS="${CXXFLAGS} -fno-rtti -fno-exceptions" | ||
205 | AC_COMPILE_IFELSE( | ||
206 | [AC_LANG_PROGRAM([[]])], | ||
207 | [have_cxx_flags="yes"], | ||
208 | [have_cxx_flags="no"]) | ||
209 | AC_MSG_CHECKING([whether the compiler supports -fno-rtti -fno-exceptions]) | ||
210 | AC_MSG_RESULT([${have_cxx_flags}]) | ||
211 | CXXFLAGS="${CXXFLAGS_save}" | ||
212 | if test "x${have_cxx_flags}" = "xyes" ; then | ||
213 | EXPEDITE_CXXFLAGS="-fno-rtti -fno-exceptions" | ||
214 | fi | ||
215 | AC_LANG_POP([C++]) | ||
216 | AC_SUBST(EXPEDITE_CXXFLAGS) | ||
217 | |||
201 | 218 | ||
202 | ### Checks for linker characteristics | 219 | ### Checks for linker characteristics |
203 | 220 | ||