[evolution-ews] Introduce --enable-strict configure option
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-ews] Introduce --enable-strict configure option
- Date: Tue, 6 Nov 2012 16:48:59 +0000 (UTC)
commit 6ff4df21841ee6ae43cf73a593d49bfb01961005
Author: Milan Crha <mcrha redhat com>
Date: Tue Nov 6 17:48:11 2012 +0100
Introduce --enable-strict configure option
This is currently used to add extra CFLAGS to disable
deprecated symbols from other libraries.
configure.ac | 24 ++++++++++++++++++++++++
1 files changed, 24 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index f705544..7c4a84b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -90,6 +90,29 @@ dnl -Wredundant-decls
CFLAGS="$CFLAGS $WARNING_FLAGS"
+dnl *******************************
+dnl Check for --enable-strict
+dnl *******************************
+AC_ARG_ENABLE([strict],
+ [AS_HELP_STRING([--enable-strict],
+ [enable strict building, like without deprecated symbols (default=auto); auto enables strict building only if .git subdirectory exists])],
+ [enable_strict=$enableval], [enable_strict=auto])
+
+AC_MSG_CHECKING([if strict building is enabled])
+if test "x$enable_strict" = xauto; then
+ dnl Be strict when compiling with .git subdirectory
+ if test -d .git ; then
+ enable_strict=yes
+ else
+ enable_strict=no
+ fi
+fi
+AC_MSG_RESULT([$enable_strict])
+
+if test "x$enable_strict" = xyes; then
+ CFLAGS="$CFLAGS -DG_DISABLE_DEPRECATED -DE_BOOK_DISABLE_DEPRECATED -DE_CAL_DISABLE_DEPRECATED"
+fi
+
dnl ************
dnl i18n stuff
dnl ************
@@ -266,5 +289,6 @@ AC_OUTPUT
AC_MSG_NOTICE([
Kerberos 5 : $msg_krb5
+ Strict building : $enable_strict
])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]