diff options
author | Ben Greear <greearb@candelatech.com> | 2010-07-19 18:07:09 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2010-07-21 21:29:47 +0200 |
commit | d6981cb508c050accdc879e6b4886193751ae72f (patch) | |
tree | 9caa1ee30cb246434ef4467725e6151447ab80a8 /configure.ac | |
parent | 40ecd6c9b8104019bc210d6cb39dfbf79389550c (diff) | |
download | curl-d6981cb508c050accdc879e6b4886193751ae72f.tar.gz |
build: Enable configure --enable-werror
This passes -Werror to gcc when building curl and libcurl,
allowing easy dection of compile warnings.
Signed-off-by: Ben Greear <greearb@candelatech.com>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index c0d25f3a6..b0530c496 100644 --- a/configure.ac +++ b/configure.ac @@ -40,6 +40,7 @@ AM_MAINTAINER_MODE CURL_CHECK_OPTION_DEBUG CURL_CHECK_OPTION_OPTIMIZE CURL_CHECK_OPTION_WARNINGS +CURL_CHECK_OPTION_WERROR CURL_CHECK_OPTION_CURLDEBUG CURL_CHECK_OPTION_ARES @@ -51,6 +52,12 @@ CURL_CHECK_PATH_SEPARATOR_REQUIRED CONFIGURE_OPTIONS="\"$ac_configure_args\"" AC_SUBST(CONFIGURE_OPTIONS) +CURL_CFLAG_EXTRAS="" +if test X"$want_werror" == Xyes; then + CURL_CFLAG_EXTRAS="-Werror" +fi +AC_SUBST(CURL_CFLAG_EXTRAS) + dnl SED is mandatory for configure process and libtool. dnl Set it now, allowing it to be changed later. if test -z "$SED"; then |