]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
When checking for gcc, use variable ac_cv_prog_gcc instead of GCC.
authorJeff Trawick <trawick@apache.org>
Fri, 11 May 2001 15:33:06 +0000 (15:33 +0000)
committerJeff Trawick <trawick@apache.org>
Fri, 11 May 2001 15:33:06 +0000 (15:33 +0000)
This gets AP_DEBUG set properly for --enable-maintainer-mode builds.

(As libtool configuration is removed from other places -- e.g., pcre,
expat -- the same change will be needed of those configuration
scripts use GCC.)

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89084 13f79535-47bb-0310-9956-ffa450edef68

configure.in

index b5ac44a544d60c57aa20de71c686a936c3c8bf44..c1624f994ba393a152e4c6e4a59112d5042e8386 100644 (file)
@@ -203,14 +203,14 @@ AC_ARG_WITH(port,[  --with-port=PORT        Port on which to listen (default is
 
 AC_ARG_ENABLE(debug,[  --enable-debug            Turn on debugging and compile time warnings],
   [APR_ADDTO(CFLAGS,-g)
-   if test "$GCC" = "yes"; then
+   if test $ac_cv_prog_gcc = yes; then
      APR_ADDTO(CFLAGS,-Wall)
    fi
 ])dnl
 
 AC_ARG_ENABLE(maintainer-mode,[  --enable-maintainer-mode  Turn on debugging and compile time warnings],
   [APR_ADDTO(CFLAGS,-g)
-   if test "$GCC" = "yes"; then
+   if test $ac_cv_prog_gcc = yes; then
      APR_ADDTO(CFLAGS,[-Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -DAP_DEBUG])
    fi
 ])dnl