2002-10-12 07:28:01 +08:00
|
|
|
dnl
|
|
|
|
dnl $Id$
|
|
|
|
dnl
|
|
|
|
|
|
|
|
AC_MSG_CHECKING(for embedded SAPI library support)
|
|
|
|
|
|
|
|
AC_ARG_ENABLE(embed,
|
2002-10-12 09:18:04 +08:00
|
|
|
[ --enable-embed[=TYPE] Enable building of embedded SAPI library
|
|
|
|
TYPE is either 'shared' or 'static'. [TYPE=shared]],
|
2002-10-12 07:28:01 +08:00
|
|
|
[
|
|
|
|
case $enableval in
|
2002-10-12 08:54:53 +08:00
|
|
|
yes|shared)
|
2002-10-12 07:28:01 +08:00
|
|
|
PHP_EMBED_TYPE=shared
|
2002-10-15 06:18:35 +08:00
|
|
|
INSTALL_IT="\$(mkinstalldirs) \$(INSTALL_ROOT)\$(prefix)/lib; \$(INSTALL) -m 0755 $SAPI_SHARED \$(INSTALL_ROOT)\$(prefix)/lib"
|
2002-10-12 07:28:01 +08:00
|
|
|
;;
|
2002-10-12 08:54:53 +08:00
|
|
|
static)
|
|
|
|
PHP_EMBED_TYPE=static
|
2002-10-15 06:18:35 +08:00
|
|
|
INSTALL_IT="\$(mkinstalldirs) \$(INSTALL_ROOT)\$(prefix)/lib; \$(INSTALL) -m 0644 $SAPI_STATIC \$(INSTALL_ROOT)\$(prefix)/lib"
|
2002-10-12 08:54:53 +08:00
|
|
|
;;
|
2002-10-12 07:28:01 +08:00
|
|
|
*)
|
|
|
|
PHP_EMBED_TYPE=no
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
],[
|
2002-10-12 10:50:16 +08:00
|
|
|
PHP_EMBED_TYPE=no
|
2002-10-12 07:28:01 +08:00
|
|
|
])
|
|
|
|
|
|
|
|
AC_MSG_RESULT($PHP_EMBED_TYPE)
|
|
|
|
|
|
|
|
if test "$PHP_EMBED_TYPE" != "no"; then
|
|
|
|
PHP_SELECT_SAPI(embed, $PHP_EMBED_TYPE, php_embed.c)
|
2002-09-30 00:22:49 +08:00
|
|
|
fi
|