You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ji...@apache.org on 2011/01/31 21:29:03 UTC
svn commit: r1065751 - /httpd/httpd/trunk/configure.in
Author: jim
Date: Mon Jan 31 20:29:03 2011
New Revision: 1065751
URL: http://svn.apache.org/viewvc?rev=1065751&view=rev
Log:
A new mode that is maintainer + O0 (for better gdb)
Modified:
httpd/httpd/trunk/configure.in
Modified: httpd/httpd/trunk/configure.in
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/configure.in?rev=1065751&r1=1065750&r2=1065751&view=diff
==============================================================================
--- httpd/httpd/trunk/configure.in (original)
+++ httpd/httpd/trunk/configure.in Mon Jan 31 20:29:03 2011
@@ -529,6 +529,26 @@ AC_ARG_ENABLE(maintainer-mode,APACHE_HEL
[
APR_ADDTO(CPPFLAGS, -DAP_DEBUG)
if test "$GCC" = "yes"; then
+ APR_ADDTO(CFLAGS,[-Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Wpointer-arith])
+ AC_CACHE_CHECK([whether gcc accepts -Wdeclaration-after-statement], [ap_cv_cc_Wdas], [
+ save_CFLAGS=$CFLAGS
+ CFLAGS="$CFLAGS -Wdeclaration-after-statement"
+ AC_COMPILE_IFELSE([int foo() { return 0; }],
+ [ap_cv_cc_Wdas=yes], [ap_cv_cc_Wdas=no])
+ CFLAGS=$save_CFLAGS
+ ])
+ if test "$ap_cv_cc_Wdas" = "yes"; then
+ APR_ADDTO(CFLAGS,[-Wdeclaration-after-statement])
+ fi
+ elif test "$AIX_XLC" = "yes"; then
+ APR_ADDTO(CFLAGS,-qfullpath -qinitauto=FE -qcheck=all -qinfo=pro)
+ fi
+])dnl
+
+AC_ARG_ENABLE(debugger-mode,APACHE_HELP_STRING(--enable-debugger-mode,Turn on debugging and compile time warnings and turn off optimization),
+[
+ APR_ADDTO(CPPFLAGS, -DAP_DEBUG)
+ if test "$GCC" = "yes"; then
APR_ADDTO(CFLAGS,[-Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Wpointer-arith -O0])
AC_CACHE_CHECK([whether gcc accepts -Wdeclaration-after-statement], [ap_cv_cc_Wdas], [
save_CFLAGS=$CFLAGS