[grilo/0.1.x] build: Disable debug and tests by default
- From: Juan A. Suarez Romero <jasuarez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo/0.1.x] build: Disable debug and tests by default
- Date: Fri, 1 Jul 2011 16:37:42 +0000 (UTC)
commit c921c782bd558e00058f4494fdd5f8f3cdf6df31
Author: Juan A. Suarez Romero <jasuarez igalia com>
Date: Fri Jul 1 12:29:38 2011 +0000
build: Disable debug and tests by default
If user says nothing, do not build tests nor with debug options.
Signed-off-by: Juan A. Suarez Romero <jasuarez igalia com>
configure.ac | 17 ++++++++++-------
1 files changed, 10 insertions(+), 7 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index e63e609..7e34264 100644
--- a/configure.ac
+++ b/configure.ac
@@ -148,10 +148,12 @@ AM_CONDITIONAL(BUILD_GRILO_NET_WITH_CACHE, test "x$HAVE_CACHED_LIBSOUP" = "xyes"
# ----------------------------------------------------------
AC_ARG_ENABLE(debug,
- [ --enable-debug include debug symbols],,
- enable_debug=yes)
+ AC_HELP_STRING([--enable-debug],
+ [include debug symbols (default: no)]),,
+ [enable_debug=no])
+
if test "x$enable_debug" = "xyes"; then
- AC_MSG_WARN("Configuring with debugging options enabled!")
+ AC_MSG_WARN("Configuring with debugging options enabled!")
CFLAGS="$CFLAGS -g3 -O0"
fi
@@ -159,11 +161,12 @@ fi
# TESTS SUPPORT
# ----------------------------------------------------------
-AC_ARG_ENABLE([tests],
- AS_HELP_STRING([--enable-tests],[build unit tests]),
- enable_tests=yes)
+AC_ARG_ENABLE(tests,
+ AC_HELP_STRING([--enable-tests],
+ [build unit tests (default: no)]),,
+ [enable_tests=no])
-AM_CONDITIONAL(ENABLE_TESTS, test "enable_tests" = "xyes")
+AM_CONDITIONAL(ENABLE_TESTS, test "x$enable_tests" = "xyes")
# ----------------------------------------------------------
# VALA BINDINGS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]