apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From i...@apache.org
Subject cvs commit: apr-util/build apu-conf.m4
Date Thu, 17 Jan 2002 18:55:13 GMT
ianh        02/01/17 10:55:13

  Modified:    build    apu-conf.m4
  Log:
  new option --with-gdbm=DIR
  to allow us to specify where gdbm lives
  
  Revision  Changes    Path
  1.25      +22 -1     apr-util/build/apu-conf.m4
  
  Index: apu-conf.m4
  ===================================================================
  RCS file: /home/cvs/apr-util/build/apu-conf.m4,v
  retrieving revision 1.24
  retrieving revision 1.25
  diff -u -r1.24 -r1.25
  --- apu-conf.m4	2 Jan 2002 23:59:26 -0000	1.24
  +++ apu-conf.m4	17 Jan 2002 18:55:13 -0000	1.25
  @@ -184,8 +184,29 @@
   ],[
     requested=default
   ])
  +AC_ARG_WITH([gdbm],
  +[ --with-gdbm=DIR          specify GDBM location], [
  +    apu_have_gdbm=0
  +    if test "$withval" = "yes"; then
  +      AC_CHECK_HEADER(gdbm.h, AC_CHECK_LIB(gdbm, gdbm_open, [apu_have_gdbm=1]))
  +    elif test "$withval" = "no"; then
  +      apu_have_gdbm=0
  +    else
  +        CPPFLAGS="-I$withval/include"
  +        LIBS="-L$withval/lib "
   
  -AC_CHECK_HEADER(gdbm.h, AC_CHECK_LIB(gdbm, gdbm_open, [apu_have_gdbm=1]))
  +        AC_MSG_CHECKING(checking for gdbm in $withval)
  +        AC_CHECK_HEADER(gdbm.h, AC_CHECK_LIB(gdbm, gdbm_open, [apu_have_gdbm=1]))
  +        if test "$apu_have_gdbm" != "0"; then
  +            APR_ADDTO(APRUTIL_EXPORT_LIBS, [-L$withval/lib])
  +            APR_ADDTO(APR_INCLUDES, [-I$withval/include])
  +        fi
  +    fi
  +],[
  +    apu_have_gdbm=0
  +    AC_CHECK_HEADER(gdbm.h, AC_CHECK_LIB(gdbm, gdbm_open, [apu_have_gdbm=1]))
  +])
  +        
   
   dnl We're going to try to find the highest version of Berkeley DB supported.
   APU_CHECK_DB4
  
  
  

Mime
View raw message