1
0
mirror of https://github.com/php/php-src.git synced 2026-04-28 18:53:33 +02:00

Also consider $i/include while searching for rfc822.h

This commit is contained in:
Sascha Schumann
2000-03-03 11:47:13 +00:00
parent 8afd1b1d97
commit 2139099781
+7 -10
View File
@@ -1,5 +1,7 @@
dnl $Id$
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 @@ AC_ARG_WITH(imap,
[
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)