Author: niels
Date: Fri May 30 09:41:54 2014
New Revision: 9473

URL: http://svn.gna.org/viewcvs/service-tech?rev=9473&view=rev
Log:
* added a parameter `--enable-debug'


Modified:
    trunk/_build/build.xml
    trunk/lola2/Makefile.am
    trunk/lola2/configure.ac
    trunk/lola2/doc/lola.texi

Modified: trunk/_build/build.xml
URL: 
http://svn.gna.org/viewcvs/service-tech/trunk/_build/build.xml?rev=9473&r1=9472&r2=9473&view=diff
==============================================================================
--- trunk/_build/build.xml      (original)
+++ trunk/_build/build.xml      Fri May 30 09:41:54 2014
@@ -56,6 +56,8 @@
     <target name="configure">
         <exec executable="sh" failonerror="true">
             <arg value="configure" />
+            <arg value="--enable-assert" />
+            <arg value="--enable-debug" />
         </exec>
         <copy file="config.log" todir="artifacts" failonerror="false" />
     </target>

Modified: trunk/lola2/Makefile.am
URL: 
http://svn.gna.org/viewcvs/service-tech/trunk/lola2/Makefile.am?rev=9473&r1=9472&r2=9473&view=diff
==============================================================================
--- trunk/lola2/Makefile.am     (original)
+++ trunk/lola2/Makefile.am     Fri May 30 09:41:54 2014
@@ -10,7 +10,10 @@
        for DIR in $(DIST_SUBDIRS) .; do rm -f $$DIR/Makefile.in; done
 
 all:
+       @echo ""
        @echo "============================================================"
        @echo "  Successfully compiled `$(top_builddir)/src/lola --version`."
-       @echo "  Check out LoLA's help with \`src/lola --help\`."
+       @echo "  -> check out LoLA's help with \`src/lola --help'"
+       @echo "  -> install LoLA to @prefix@/bin with \`make install'"
        @echo "============================================================"
+       @echo ""

Modified: trunk/lola2/configure.ac
URL: 
http://svn.gna.org/viewcvs/service-tech/trunk/lola2/configure.ac?rev=9473&r1=9472&r2=9473&view=diff
==============================================================================
--- trunk/lola2/configure.ac    (original)
+++ trunk/lola2/configure.ac    Fri May 30 09:41:54 2014
@@ -17,10 +17,34 @@
 AM_INIT_AUTOMAKE([gnits subdir-objects])
 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
 
-AC_ARG_ENABLE([performance], [  --enable-performance    switch on 
performance-related options],
-  [AC_DEFINE(NDEBUG)
-   AC_DEFINE([USE_PERFORMANCE], 1, [whether to build LoLA with performance 
optimizations])
-  CFLAGS="-O4" CXXFLAGS="-O4"])
+AC_ARG_ENABLE(
+  [debug],
+  [AS_HELP_STRING(
+    [--enable-debug],
+    [switch off optimizations and enable assertions (warning: this makes LoLA 
runs 10-20 times slower)]
+  )],
+  [
+    AC_MSG_CHECKING([whether to compile in debug mode])
+    AC_MSG_RESULT([yes])
+    AC_DEFINE(
+      [USE_PERFORMANCE],
+      0,
+      [LoLA was built for debugging purposes (configured with 
`--enable-debug')]
+    )
+    CFLAGS="-p -g -ggdb" CXXFLAGS="-g -ggdb"
+  ],
+  [
+    AC_MSG_CHECKING([whether to compile in debug mode])
+    AC_MSG_RESULT([no])
+    AC_DEFINE(NDEBUG)
+    AC_DEFINE(
+      [USE_PERFORMANCE],
+      1,
+      [LoLA was built with optimization (configured with `--disable-debug')]
+    )
+    CFLAGS="-O4" CXXFLAGS="-O4"
+  ]
+)
 
 # check for standard programs needed to compile
 AC_PROG_AWK
@@ -132,3 +156,10 @@
   tests/Makefile tests/package.m4])
 AC_CONFIG_FILES([tests/cover.sh], [chmod +x tests/cover.sh])
 AC_OUTPUT
+
+echo ""
+echo "============================================================"
+echo "  Successfully configured $PACKAGE_STRING."
+echo "  -> compile LoLA with \`make'."
+echo "============================================================"
+echo ""

Modified: trunk/lola2/doc/lola.texi
URL: 
http://svn.gna.org/viewcvs/service-tech/trunk/lola2/doc/lola.texi?rev=9473&r1=9472&r2=9473&view=diff
==============================================================================
--- trunk/lola2/doc/lola.texi   (original)
+++ trunk/lola2/doc/lola.texi   Fri May 30 09:41:54 2014
@@ -407,13 +407,20 @@
 @cartouche
 @smallexample
 $ cd lola-@value{VERSION}
-$ ./configure --enable-optimized
-@end smallexample
-@end cartouche
-
-The @samp{--enable-optimized} parameter makes sure that all debugging functions
-are switched off and all optimizing compiler switches are enabled. Without this
-parameter, LoLA will run slower by orders of magnitudes. Finally, execute
+$ ./configure
+@end smallexample
+@end cartouche
+
+The configuration should finish with a message like
+
+@smallexample
+============================================================
+  Successfully configured @value{VERSION}.
+  -> compile LoLA with `make'.
+============================================================
+@end smallexample
+
+Then, execute
 
 @cartouche
 @smallexample
@@ -425,8 +432,9 @@
 
 @smallexample
 ============================================================
-  Successfully compiled LoLA @value{VERSION}.
-  Check out LoLA's help with `src/lola --help'.
+  Successfully compiled @value{VERSION}.
+  -> check out LoLA's help with `src/lola --help'
+  -> install LoLA to /usr/local/bin with `make install'
 ============================================================
 @end smallexample
 
@@ -444,6 +452,10 @@
 advantage that LoLA can be called from anywhere and that you will not need the
 @file{lola-@value{VERSION}} directory any more. In the following, we assume
 that LoLA has been installed and can be called by simply executing @samp{lola}.
+
+You can change the installation directory by calling @samp{./configure
+--prefix=@var{DIRECTORY}}. Then, the required files will be installed to
+@file{@var{DIRECTORY}/bin}.
 
 
 @section Troubleshooting


-- 
You received this e-mail, because you subscribed the mailing list 
"service-tech-commits" which will forward you any e-mail addressed to 
[email protected]. If you want to unsubscribe or make any changes to 
your subscription, please go to
https://mail.gna.org/listinfo/service-tech-commits.

Reply via email to