diff options
author | Werner Koch <[email protected]> | 2017-10-27 11:56:15 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2017-10-27 11:56:15 +0000 |
commit | f6ab97fd9620bb8f512ffb471a66e5f96098a7cc (patch) | |
tree | 99db33d56ef4f0c05f1d6af6ec7ffaffd9547e1b /configure.ac | |
parent | agent: Clean up pinentry access locking. (diff) | |
parent | agent, tests: Support --disable-scdaemon build case. (diff) | |
download | gnupg-f6ab97fd9620bb8f512ffb471a66e5f96098a7cc.tar.gz gnupg-f6ab97fd9620bb8f512ffb471a66e5f96098a7cc.zip |
Merge branch 'STABLE-BRANCH-2-2' into master
--
Resolved Conflicts:
configure.ac - Adjust due to new log_clock otions
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/configure.ac b/configure.ac index 22f082ed9..ebd0c2f07 100644 --- a/configure.ac +++ b/configure.ac @@ -89,12 +89,6 @@ AB_INIT AC_GNU_SOURCE -# Before we do anything with the C compiler, we first save the user's -# CFLAGS (they are restored at the end of the configure script). This -# is because some configure checks don't work with -Werror, but we'd -# like to use -Werror with our build. -CFLAGS_orig=$CFLAGS -CFLAGS= # Some status variables. have_gpg_error=no @@ -1693,6 +1687,15 @@ if test "$enable_log_clock" = yes ; then AC_DEFINE(ENABLE_LOG_CLOCK,1,[Defined to use log_clock timestamps]) fi +# Add -Werror to CFLAGS. This hack can be used to avoid problems with +# misbehaving autoconf tests in case the user supplied -Werror. +# +AC_ARG_ENABLE(werror, + AC_HELP_STRING([--enable-werror], + [append -Werror to CFLAGS]), + [if test $enableval = yes ; then + CFLAGS="$CFLAGS -Werror" + fi]) # # Configure option --enable-all-tests @@ -1724,11 +1727,6 @@ if test x"$gnupg_builddir_envvar" = x"yes"; then fi # -# Add user CFLAGS. -# -CFLAGS="$CFLAGS $CFLAGS_orig" - -# # Decide what to build # |