apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject cvs commit: apr/build apr_common.m4
Date Mon, 26 Feb 2001 19:50:20 GMT
jim         01/02/26 11:50:20

  Modified:    build    apr_common.m4
  Log:
  Add complementary function. Note name change
  since we still accept multiple headers and funcs
  
  Revision  Changes    Path
  1.4       +14 -1     apr/build/apr_common.m4
  
  Index: apr_common.m4
  ===================================================================
  RCS file: /home/cvs/apr/build/apr_common.m4,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- apr_common.m4	2001/02/26 19:28:57	1.3
  +++ apr_common.m4	2001/02/26 19:50:15	1.4
  @@ -332,7 +332,7 @@
   AC_MSG_RESULT([$msg])
   ])dnl
   
  -dnl APR_CHECK_HEADER(HEADER-FILE , FLAG-TO-SET)
  +dnl APR_CHECK_HEADERS(HEADER-FILE ... , FLAG-TO-SET)
   dnl  we set FLAG-TO-SET to 1 if we find HEADER-FILE, otherwise we set to 0
   AC_DEFUN(APR_CHECK_HEADER,[
   if test "x$2" != "x"; then
  @@ -343,6 +343,19 @@
       s0=""
   fi
   AC_CHECK_HEADERS($1, eval $s1, eval $s0)
  +])
  +
  +dnl APR_CHECK_FUNCS(FUNC ... , FLAG-TO-SET)
  +dnl  we set FLAG-TO-SET to 1 if we find FUNC, otherwise we set to 0
  +AC_DEFUN(APR_CHECK_FUNC,[
  +if test "x$2" != "x"; then
  +    s1="$2=\"1\""
  +    s0="$2=\"0\""
  +else
  +    s1=""
  +    s0=""
  +fi
  +AC_CHECK_FUNCS($1, eval $s1, eval $s0)
   ])
   
   
  
  
  

Mime
View raw message