]> git.lyx.org Git - features.git/commitdiff
Allow disabling of debug information.
authorDekel Tsur <dekelts@tau.ac.il>
Mon, 7 Jan 2002 17:55:15 +0000 (17:55 +0000)
committerDekel Tsur <dekelts@tau.ac.il>
Mon, 7 Jan 2002 17:55:15 +0000 (17:55 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3306 a592a061-630c-0410-9148-cb99ea01b6c8

config/ChangeLog
config/lyxinclude.m4

index 39c615753d4881a3eaa22182bc4811a12aaf0a52..84d4abbed2aff561ac2dfc09190d3c7609d77e78 100644 (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>
 
        * depcomp: new script to handle dependencies, from automake 1.5
index f382703581a1d93e33a3ac0c085c436b004aa211..8053a27be3b69589527bc7b4dabfa3fd50560a27 100644 (file)
@@ -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