X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=config%2Flyxinclude.m4;h=0e9b426061af5f7d8dc276f24ec8679117c08450;hb=f6921d9161a03c6905c21d71d53f7499a4e7b6e2;hp=b61ea59ac5c26d9331f68e50f3fa9beb465cf0d4;hpb=4aee447af1ab29d094e917b94ec3e3d4af36f1cd;p=features.git diff --git a/config/lyxinclude.m4 b/config/lyxinclude.m4 index b61ea59ac5..0e9b426061 100644 --- a/config/lyxinclude.m4 +++ b/config/lyxinclude.m4 @@ -422,14 +422,14 @@ if test x$GXX = xyes; then if test x$enable_stdlib_debug = xyes ; then dnl FIXME: for clang/libc++, one should define _LIBCPP_DEBUG2=0 dnl See http://clang-developers.42468.n3.nabble.com/libc-debug-mode-td3336742.html - case $gxx_version in - *) + if test x$lyx_cv_lib_stdcxx = xyes ; then lyx_flags="$lyx_flags stdlib-debug" AC_DEFINE(_GLIBCXX_DEBUG, 1, [libstdc++ debug mode]) AC_DEFINE(_GLIBCXX_DEBUG_PEDANTIC, 1, [libstdc++ pedantic debug mode]) AC_SUBST(STDLIB_DEBUG, "-D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC") - ;; - esac + else + enable_stdlib_debug=no + fi fi fi