summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2010-08-11 14:08:18 +0200
committerYang Tse <yangsita@gmail.com>2010-08-11 14:08:18 +0200
commite43e69718f81f4ae01c419524a1d8448161e4d66 (patch)
tree38e10e0d082fcd10741f87166512612478288b09 /m4
parent5e7a4dc5d7b183c3675f95e5ec9c8601bc3d23a2 (diff)
downloadc-ares-e43e69718f81f4ae01c419524a1d8448161e4d66.tar.gz
c-ares-e43e69718f81f4ae01c419524a1d8448161e4d66.tar.bz2
c-ares-e43e69718f81f4ae01c419524a1d8448161e4d66.zip
configure: werror related adjustments
Diffstat (limited to 'm4')
-rw-r--r--m4/cares-confopts.m415
1 files changed, 8 insertions, 7 deletions
diff --git a/m4/cares-confopts.m4 b/m4/cares-confopts.m4
index fb665d4..f2ab45f 100644
--- a/m4/cares-confopts.m4
+++ b/m4/cares-confopts.m4
@@ -1,7 +1,7 @@
#***************************************************************************
# $Id$
#
-# Copyright (C) 2008 - 2009 by Daniel Stenberg et al
+# Copyright (C) 2008 - 2010 by Daniel Stenberg et al
#
# Permission to use, copy, modify, and distribute this software and its
# documentation for any purpose and without fee is hereby granted, provided
@@ -16,7 +16,7 @@
#***************************************************************************
# File version for 'aclocal' use. Keep it a single number.
-# serial 8
+# serial 9
dnl CARES_CHECK_OPTION_CURLDEBUG
@@ -228,6 +228,7 @@ dnl shell variable want_warnings as appropriate.
AC_DEFUN([CARES_CHECK_OPTION_WARNINGS], [
AC_REQUIRE([CARES_CHECK_OPTION_DEBUG])dnl
+ AC_BEFORE([$0],[CARES_CHECK_OPTION_WERROR])dnl
AC_BEFORE([$0],[CARES_CHECK_PROG_CC])dnl
AC_MSG_CHECKING([whether to enable strict compiler warnings])
OPT_COMPILER_WARNINGS="default"
@@ -260,11 +261,12 @@ dnl --enable-werror or --disable-werror, and set
dnl shell variable want_werror as appropriate.
AC_DEFUN([CARES_CHECK_OPTION_WERROR], [
- AC_MSG_CHECKING([whether to treat compile warnings as errors])
+ AC_BEFORE([$0],[CARES_CHECK_COMPILER])dnl
+ AC_MSG_CHECKING([whether to enable compiler warnings as errors])
OPT_COMPILER_WERROR="default"
AC_ARG_ENABLE(werror,
-AC_HELP_STRING([--enable-werror],[Treat compile warnings as errors])
-AC_HELP_STRING([--disable-warnings],[Don't treat compile warnings as werrors]),
+AC_HELP_STRING([--enable-werror],[Enable compiler warnings as errors])
+AC_HELP_STRING([--disable-werror],[Disable compiler warnings as errors]),
OPT_COMPILER_WERROR=$enableval)
case "$OPT_COMPILER_WERROR" in
no)
@@ -272,8 +274,7 @@ AC_HELP_STRING([--disable-warnings],[Don't treat compile warnings as werrors]),
want_werror="no"
;;
default)
- dnl configure option not specified, so
- dnl use same setting as --enable-debug
+ dnl configure option not specified
want_werror="no"
;;
*)