Allow disabling of debug information.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3306 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Dekel Tsur 2002-01-07 17:55:15 +00:00
parent 637d5b7d42
commit 363e313ecb
2 changed files with 23 additions and 7 deletions

View File

@ -1,3 +1,7 @@
2002-01-07 Dekel Tsur <dekelts@tau.ac.il>
* lyxinclude.m4: Allow disabling of debug information.
2001-10-17 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr> 2001-10-17 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* depcomp: new script to handle dependencies, from automake 1.5 * depcomp: new script to handle dependencies, from automake 1.5

View File

@ -177,6 +177,15 @@ if test x$enable_warnings = xyes ; then
there by the developpers to get attention]) there by the developpers to get attention])
fi fi
### We might want to disable debug
AC_ARG_ENABLE(debug,
[ --enable-debug enable debug information],,
[ if test $lyx_devel_version = yes -o $lyx_prerelease = yes && test $ac_cv_prog_gxx = yes ; then
enable_debug=yes;
else
enable_debug=no;
fi;])
### set up optimization ### set up optimization
AC_ARG_ENABLE(optimization, AC_ARG_ENABLE(optimization,
[ --enable-optimization[=value] enable compiler optimisation],, [ --enable-optimization[=value] enable compiler optimisation],,
@ -197,14 +206,17 @@ if test x$GXX = xyes; then
CXXFLAGS="$ac_save_CXXFLAGS" CXXFLAGS="$ac_save_CXXFLAGS"
else else
case $gxx_version in case $gxx_version in
2.95.1) CXXFLAGS="-g $lyx_opt -fpermissive -fno-rtti -fno-exceptions";; 2.95.1) CXXFLAGS="$lyx_opt -fpermissive -fno-rtti -fno-exceptions";;
2.95.2) CXXFLAGS="-g $lyx_opt -fno-rtti -fno-exceptions";; 2.95.2) CXXFLAGS="$lyx_opt -fno-rtti -fno-exceptions";;
2.95.*) CXXFLAGS="-g $lyx_opt -fno-exceptions";; 2.95.*) CXXFLAGS="$lyx_opt -fno-exceptions";;
2.96*) CXXFLAGS="-g $lyx_opt -fno-exceptions";; 2.96*) CXXFLAGS="$lyx_opt -fno-exceptions";;
3.0*) CXXFLAGS="-g $lyx_opt";; 3.0*) CXXFLAGS="$lyx_opt";;
*2.91.*) CXXFLAGS="-g $lyx_opt -fno-rtti -fno-exceptions";; *2.91.*) CXXFLAGS="$lyx_opt -fno-rtti -fno-exceptions";;
*) CXXFLAGS="-g $lyx_opt -fno-rtti -fno-exceptions";; *) CXXFLAGS="$lyx_opt -fno-rtti -fno-exceptions";;
esac esac
if test x$enable_debug = xyes ; then
CXXFLAGS="-g $CXXFLAGS"
fi
fi fi
if test x$enable_warnings = xyes ; then if test x$enable_warnings = xyes ; then
case $gxx_version in case $gxx_version in