mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
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:
parent
637d5b7d42
commit
363e313ecb
@ -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>
|
||||
|
||||
* depcomp: new script to handle dependencies, from automake 1.5
|
||||
|
@ -177,6 +177,15 @@ if test x$enable_warnings = xyes ; then
|
||||
there by the developpers to get attention])
|
||||
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
|
||||
AC_ARG_ENABLE(optimization,
|
||||
[ --enable-optimization[=value] enable compiler optimisation],,
|
||||
@ -197,14 +206,17 @@ if test x$GXX = xyes; then
|
||||
CXXFLAGS="$ac_save_CXXFLAGS"
|
||||
else
|
||||
case $gxx_version in
|
||||
2.95.1) CXXFLAGS="-g $lyx_opt -fpermissive -fno-rtti -fno-exceptions";;
|
||||
2.95.2) CXXFLAGS="-g $lyx_opt -fno-rtti -fno-exceptions";;
|
||||
2.95.*) CXXFLAGS="-g $lyx_opt -fno-exceptions";;
|
||||
2.96*) CXXFLAGS="-g $lyx_opt -fno-exceptions";;
|
||||
3.0*) CXXFLAGS="-g $lyx_opt";;
|
||||
*2.91.*) CXXFLAGS="-g $lyx_opt -fno-rtti -fno-exceptions";;
|
||||
*) CXXFLAGS="-g $lyx_opt -fno-rtti -fno-exceptions";;
|
||||
2.95.1) CXXFLAGS="$lyx_opt -fpermissive -fno-rtti -fno-exceptions";;
|
||||
2.95.2) CXXFLAGS="$lyx_opt -fno-rtti -fno-exceptions";;
|
||||
2.95.*) CXXFLAGS="$lyx_opt -fno-exceptions";;
|
||||
2.96*) CXXFLAGS="$lyx_opt -fno-exceptions";;
|
||||
3.0*) CXXFLAGS="$lyx_opt";;
|
||||
*2.91.*) CXXFLAGS="$lyx_opt -fno-rtti -fno-exceptions";;
|
||||
*) CXXFLAGS="$lyx_opt -fno-rtti -fno-exceptions";;
|
||||
esac
|
||||
if test x$enable_debug = xyes ; then
|
||||
CXXFLAGS="-g $CXXFLAGS"
|
||||
fi
|
||||
fi
|
||||
if test x$enable_warnings = xyes ; then
|
||||
case $gxx_version in
|
||||
|
Loading…
Reference in New Issue
Block a user