You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by or...@apache.org on 2001/12/03 20:26:35 UTC

cvs commit: apr/build apr_hints.m4

orlikowski    01/12/03 11:26:35

  Modified:    build    apr_hints.m4
  Log:
  Add a proper check for xlc on AIX.
  
  Revision  Changes    Path
  1.31      +3 -3      apr/build/apr_hints.m4
  
  Index: apr_hints.m4
  ===================================================================
  RCS file: /home/cvs/apr/build/apr_hints.m4,v
  retrieving revision 1.30
  retrieving revision 1.31
  diff -u -r1.30 -r1.31
  --- apr_hints.m4	2001/11/29 02:08:11	1.30
  +++ apr_hints.m4	2001/12/03 19:26:35	1.31
  @@ -57,9 +57,9 @@
                   APR_ADDTO(CPPFLAGS, [-D_USE_IRS])
                   ;;
           esac
  -        dnl Must do a check for gcc or egcs here, to get the right options  
  -        dnl to the compiler.
  -        if test "$GCC" != "yes"; then
  +        dnl If using xlc, remember it, and give it the right options.
  +        if $CC 2>&1 | grep 'xlc' > /dev/null; then
  +          APR_SETIFNULL(AIX_XLC, [yes])
             APR_ADDTO(CFLAGS, [-qHALT=E])
           fi
   	APR_SETIFNULL(apr_iconv_inbuf_const, [1])