1999-08-09 21:34:52 +00:00
|
|
|
dnl $Id$
|
|
|
|
|
|
|
|
AC_MSG_CHECKING(for ICAP support)
|
|
|
|
AC_ARG_WITH(icap,
|
1999-09-13 17:17:51 +00:00
|
|
|
[ --with-icap[=DIR] Include ICAP support.],
|
1999-08-09 21:34:52 +00:00
|
|
|
[
|
1999-08-09 22:02:42 +00:00
|
|
|
if test "$withval" != "no"; then
|
|
|
|
if test "$withval" = "yes"; then
|
|
|
|
ICAP_DIR=/usr/local
|
|
|
|
else
|
|
|
|
ICAP_DIR=$withval
|
|
|
|
fi
|
|
|
|
|
1999-08-17 14:31:39 +00:00
|
|
|
AC_ADD_INCLUDE($ICAP_DIR)
|
|
|
|
AC_ADD_LIBRARY_WITH_PATH(icap, $ICAP_DIR)
|
1999-12-30 04:52:19 +00:00
|
|
|
AC_DEFINE(HAVE_ICAP,1,[ ])
|
1999-08-17 14:31:39 +00:00
|
|
|
PHP_EXTENSION(icap)
|
1999-08-09 22:02:42 +00:00
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
else
|
|
|
|
AC_MSG_ERROR(no)
|
|
|
|
fi
|
1999-08-09 21:34:52 +00:00
|
|
|
],[
|
1999-08-09 22:02:42 +00:00
|
|
|
AC_MSG_RESULT(no)
|
1999-08-09 21:34:52 +00:00
|
|
|
])
|
|
|
|
|