cvs: /php4/ext/imap config.m4

From: Date: Fri, 03 Mar 2000 11:47:43 +0000
Subject: cvs: /php4/ext/imap config.m4
Groups: php.version4 
Request: Send a blank email to php-version4+get-11445@lists.php.net to get a copy of this message
sas Fri Mar 3 03:47:43 2000 EDT Modified files: /php4/ext/imap config.m4 Log: Also consider $i/include while searching for rfc822.h Index: php4/ext/imap/config.m4 diff -u php4/ext/imap/config.m4:1.12 php4/ext/imap/config.m4:1.13 --- php4/ext/imap/config.m4:1.12 Tue Feb 29 05:21:51 2000 +++ php4/ext/imap/config.m4 Fri Mar 3 03:47:13 2000 @@ -1,5 +1,7 @@ -dnl $Id: config.m4,v 1.12 2000/02/29 13:21:51 sas Exp $ +dnl $Id: config.m4,v 1.13 2000/03/03 11:47:13 sas Exp $ +AC_DEFUN(IMAP_INC_CHK,[if test -r $i$1/rfc822.h; then IMAP_DIR=$i; IMAP_INC_DIR=$i$1]) + RESULT=no AC_MSG_CHECKING(for IMAP support) AC_ARG_WITH(imap, @@ -8,16 +10,11 @@ [ if test "$withval" != "no"; then for i in /usr/local /usr $withval; do - if test -f $i/rfc822.h; then - IMAP_DIR=$i - IMAP_INC_DIR=$i - elif test -f $i/imap/rfc822.h; then - IMAP_DIR=$i - IMAP_INC_DIR=$i/imap - elif test -f $i/c-client/rfc822.h; then - IMAP_DIR=$i - IMAP_INC_DIR=$i/c-client - fi + IMAP_INC_CHK() + el[]IMAP_INC_CHK(/include) + el[]IMAP_INC_CHK(/imap) + el[]IMAP_INC_CHK(/c-client) + fi done AC_EXPAND_PATH($IMAP_DIR, IMAP_DIR)

« previous php.version4 (#11445) next »