apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From grega...@apache.org
Subject cvs commit: apr configure.in
Date Sat, 23 Mar 2002 20:52:51 GMT
gregames    02/03/23 12:52:51

  Modified:    .        configure.in
  Log:
  OS/390: only remove -g if CFLAGS wasn't set on entry to configure.
  
  It turns out that AC_PROG_CC only sets -g (and -O2 for gcc) in CFLAGS
  by default.  Any CFLAGS explicitly set by the user are preserved.
  
  Revision  Changes    Path
  1.420     +5 -3      apr/configure.in
  
  Index: configure.in
  ===================================================================
  RCS file: /home/cvs/apr/configure.in,v
  retrieving revision 1.419
  retrieving revision 1.420
  diff -u -r1.419 -r1.420
  --- configure.in	22 Mar 2002 21:41:47 -0000	1.419
  +++ configure.in	23 Mar 2002 20:52:51 -0000	1.420
  @@ -170,14 +170,16 @@
   '
   echo $ac_n "${nl}Check for compiler flags...${nl}"
   
  -dnl AC_PROG_CC unconditionally sets -g in CFLAGS.
  -dnl On OS/390 (at least), this causes the compiler to insert extra debugger
  +dnl AC_PROG_CC sets -g in CFLAGS (and -O2 for gcc) by default.
  +dnl On OS/390 this causes the compiler to insert extra debugger
   dnl hook instructions.  That's fine for debug/maintainer builds, not fine
   dnl otherwise.
   
   case $host in
       *os390)
  -        APR_REMOVEFROM(CFLAGS,-g)
  +        if test "$ac_test_CFLAGS" != set; then
  +           APR_REMOVEFROM(CFLAGS,-g)
  +        fi
           ;;
   esac
   
  
  
  

Mime
View raw message