Return-Path: Delivered-To: apmail-apr-cvs-archive@apr.apache.org Received: (qmail 79216 invoked by uid 500); 26 Feb 2001 19:50:25 -0000 Mailing-List: contact cvs-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: dev@apr.apache.org Delivered-To: mailing list cvs@apr.apache.org Received: (qmail 78909 invoked by uid 1078); 26 Feb 2001 19:50:20 -0000 Date: 26 Feb 2001 19:50:20 -0000 Message-ID: <20010226195020.78899.qmail@apache.org> From: jim@apache.org To: apr-cvs@apache.org Subject: cvs commit: apr/build apr_common.m4 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) ])