You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by "Victor J. Orlikowski" <vj...@raleigh.ibm.com> on 2000/06/26 22:54:35 UTC

[PATCH] Dump out on warnings from xlC on AIX

Compiling on AIX using xlC would cause some weird warnings, stemming from
the fact that some of the autoconf macros would succeed despite receiving
errors from the compiler. This tells the compiler to halt as soon as the
errors are received, and not try to link, thereby forcing the correct test
with xlC.

Index: src/lib/apr/configure.in
===================================================================
RCS file: /cvs/apache/apache-2.0/src/lib/apr/configure.in,v
retrieving revision 1.120
diff -u -r1.120 configure.in
--- configure.in 2000/06/26 17:19:18 1.120
+++ configure.in 2000/06/26 20:47:33
@@ -74,6 +74,12 @@
 dnl # this is the place to put specific options for platform/compiler
 dnl # combinations
 case "$OS:$CC" in
+    *-ibm-aix*:xl*)
+        CFLAGS="$CFLAGS -qHALT=E"
+        ;;
+    *-ibm-aix*:cc*)
+        CFLAGS="$CFLAGS -qHALT=E"
+        ;;
     *-hp-hpux*:cc )
  CFLAGS="$CFLAGS -Ae +DAportable"
  ;;