jim 01/02/26 11:29:02
Modified: build apr_common.m4 Log: Cleaner re-implementation of what we actually use AC_CHECK_HEADERS for... For one, we never use the multi-header capability. So APR_CHECK_HEADER makes a bit more sense. We also set the flag always to 1 or 0. Revision Changes Path 1.3 +14 -0 apr/build/apr_common.m4 Index: apr_common.m4 =================================================================== RCS file: /home/cvs/apr/build/apr_common.m4,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- apr_common.m4 2001/02/20 01:53:47 1.2 +++ apr_common.m4 2001/02/26 19:28:57 1.3 @@ -332,3 +332,17 @@ AC_MSG_RESULT([$msg]) ])dnl +dnl APR_CHECK_HEADER(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 + s1="$2=\"1\"" + s0="$2=\"0\"" +else + s1="" + s0="" +fi +AC_CHECK_HEADERS($1, eval $s1, eval $s0) +]) + +
