mirror of
https://github.com/php/php-src.git
synced 2025-01-21 11:13:38 +08:00
Make icap buildable as shared module
This commit is contained in:
parent
a4d401a67d
commit
095e13632c
@ -1,5 +1,7 @@
|
||||
|
||||
LTLIBRARY_NAME = libicap.la
|
||||
LTLIBRARY_SOURCES = php_icap.c
|
||||
LTLIBRARY_SHARED_NAME = icap.la
|
||||
LTLIBRARY_SHARED_LIBADD = $(ICAP_SHARED_LIBADD)
|
||||
|
||||
include $(top_srcdir)/build/dynlib.mk
|
||||
|
@ -1,25 +1,19 @@
|
||||
dnl $Id$
|
||||
|
||||
AC_MSG_CHECKING(for ICAP support)
|
||||
AC_ARG_WITH(icap,
|
||||
[ --with-icap[=DIR] Include ICAP support.],
|
||||
[
|
||||
if test "$withval" != "no"; then
|
||||
if test "$withval" = "yes"; then
|
||||
ICAP_DIR=/usr/local
|
||||
else
|
||||
ICAP_DIR=$withval
|
||||
fi
|
||||
|
||||
AC_ADD_INCLUDE($ICAP_DIR)
|
||||
AC_ADD_LIBRARY_WITH_PATH(icap, $ICAP_DIR)
|
||||
AC_DEFINE(HAVE_ICAP,1,[ ])
|
||||
PHP_EXTENSION(icap)
|
||||
AC_MSG_RESULT(yes)
|
||||
else
|
||||
AC_MSG_ERROR(no)
|
||||
fi
|
||||
],[
|
||||
AC_MSG_RESULT(no)
|
||||
])
|
||||
PHP_ARG_WITH(icap,for ICAP support,
|
||||
[ --with-icap[=DIR] Include ICAP support.])
|
||||
|
||||
if test "$PHP_ICAP" != "no"; then
|
||||
ICAP_DIR=$PHP_ICAP
|
||||
test "$ICAP_DIR" = "yes" && ICAP_DIR=/usr/local
|
||||
|
||||
AC_ADD_INCLUDE($ICAP_DIR)
|
||||
if test "$ext_shared" = "yes"; then
|
||||
ICAP_SHARED_LIBADD="-R$ICAP_DIR/lib -L$ICAP_DIR/lib -licap"
|
||||
PHP_SUBST(ICAP_SHARED_LIBADD)
|
||||
else
|
||||
AC_ADD_LIBRARY_WITH_PATH(icap, $ICAP_DIR)
|
||||
fi
|
||||
AC_DEFINE(HAVE_ICAP,1,[ ])
|
||||
PHP_EXTENSION(icap, $ext_shared)
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user