apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jerenkra...@apache.org
Subject cvs commit: apr/build find_apr.m4
Date Tue, 11 Dec 2001 09:19:41 GMT
jerenkrantz    01/12/11 01:19:41

  Modified:    build    find_apr.m4
  Log:
  Okay, I've got flood building with this snippet and the about-to-be-posted
  apr-config patch.  Since not all installations may have it, apr-config
  will be optional (for now).
  
  Revision  Changes    Path
  1.2       +8 -0      apr/build/find_apr.m4
  
  Index: find_apr.m4
  ===================================================================
  RCS file: /home/cvs/apr/build/find_apr.m4,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- find_apr.m4	2001/12/10 23:53:47	1.1
  +++ find_apr.m4	2001/12/11 09:19:41	1.2
  @@ -55,6 +55,7 @@
   
     preserve_LIBS="$LIBS"
     preserve_LDFLAGS="$LDFLAGS"
  +  preserve_CFLAGS="$CFLAGS"
   
     AC_MSG_CHECKING(for APR)
     AC_ARG_WITH(apr,
  @@ -64,6 +65,11 @@
         AC_MSG_ERROR([--with-apr requires a directory to be provided])
       fi
   
  +    if test -x $withval/bin/apr-config; then
  +       CFLAGS="$CFLAGS `$withval/bin/apr-config --cflags`"
  +       LIBS="$LIBS `$withval/bin/apr-config --libs`"
  +       LDFLAGS="$LDFLAGS `$withval/bin/apr-config --ldflags`"
  +    fi
       LIBS="$LIBS -lapr"
       LDFLAGS="$preserve_LDFLAGS -L$withval/lib"
       AC_TRY_LINK_FUNC(apr_initialize, [
  @@ -119,6 +125,8 @@
       fi
     fi
   
  +  AC_MSG_RESULT($apr_found)
  +  CFLAGS="$preserve_CFLAGS"
     LIBS="$preserve_LIBS"
     LDFLAGS="$preserve_LDFLAGS"
   ])
  
  
  

Mime
View raw message