* configure.ac (SCRIBO_CXXFLAGS, SCRIBO_TESTS_CXXFLAGS):
New configure variables.
---
ChangeLog | 7 +++++++
configure.ac | 9 +++++++++
2 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 499818f..57df1c6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2010-04-23 Roland Levillain <roland(a)lrde.epita.fr>
+
+ Add variables for C++ compiler flags for Scribo.
+
+ * configure.ac (SCRIBO_CXXFLAGS, SCRIBO_TESTS_CXXFLAGS):
+ New configure variables.
+
2010-06-04 Roland Levillain <roland(a)lrde.epita.fr>
Set decent compiler flags when the Intel C++ compiler is used.
diff --git a/configure.ac b/configure.ac
index a4b5cb5..20efb20 100644
--- a/configure.ac
+++ b/configure.ac
@@ -309,6 +309,15 @@ AC_CONFIG_FILES([
scribo/tests/text/Makefile
scribo/tests/unit_test/Makefile
])
+
+# Flags for Scribo
+AC_ARG_VAR([SCRIBO_CXXFLAGS], [C++ compiler flags for Scribo binaries])
+AC_ARG_VAR([SCRIBO_TESTS_CXXFLAGS], [C++ compiler flags for Scribo tests])
+if test "$GXX" = yes || test "$ICPC" = yes; then
+ test -z "$SCRIBO_CXXFLAGS" && SCRIBO_CXXFLAGS="-DNDEBUG
-O2"
+ # FIXME: We might want to use -ggdb when g++ is used.
+ test -z "$SCRIBO_TESTS_CXXFLAGS" && SCRIBO_TESTS_CXXFLAGS="-g
-O0"
+fi
dnl>>
## --------------- ##
--
1.5.6.5
Show replies by date