Define the debug mode tokes instead.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8763 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Lars Gullik Bjønnes 2004-05-18 13:20:31 +00:00
parent 10759f2112
commit 9e982df7a0
2 changed files with 11 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2004-05-18 Lars Gullik Bjonnes <larsbj@lyx.org>
* lyxinclude.m4 (lyx_warning): change debug mode setup to use AC_DEFINE
2004-05-18 Lars Gullik Bjonnes <larsbj@gullik.net>
* lyxinclude.m4 (enable-debug): Use the libstdc++ debugging mode

View File

@ -24,7 +24,7 @@ fi
changequote([, ]) dnl
AC_SUBST(lyx_devel_version)
if test $lyx_devel_version = yes ; then
AC_DEFINE(DEVEL_VERSION, 1, Define if you are building a development version of LyX)
AC_DEFINE(DEVEL_VERSION, 1, [Define if you are building a development version of LyX])
fi])
@ -217,7 +217,10 @@ if test x$GXX = xyes; then
esac
if test x$enable_debug = xyes ; then
case $gxx_version in
3.4*) CXXFLAGS="-g -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC $CXXFLAGS";;
3.4*) CXXFLAGS="-g $CXXFLAGS"
AC_DEFINE(_GLIBCXX_DEBUG, 1, [libstdc++ debug mode])
AC_DEFINE(_GLIBCXX_DEBUG_PEDANTIC, 1, [libstdc++ pedantic debug mode])
;;
*) CXXFLAGS="-g $CXXFLAGS";;
esac
fi
@ -227,6 +230,7 @@ if test x$GXX = xyes; then
2.95.*) CXXFLAGS="$CXXFLAGS -W -Wall";;
2.96*) CXXFLAGS="$CXXFLAGS -W -Wall";;
3.1*) CXXFLAGS="$CXXFLAGS -W -Wall";;
3.4*) CXXFLAGS="$CXXFLAGS -Wextra -Wall";;
*) CXXFLAGS="$CXXFLAGS -W -Wall";;
esac
fi