summaryrefslogtreecommitdiff
path: root/sapi/embed
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2007-06-03 20:27:16 +0000
committerfoobar <sniper@php.net>2007-06-03 20:27:16 +0000
commit7bd41e0715c46bf63aae27a23d3fe3e7439a899a (patch)
tree733f9dbf1611de156c6b24a9bef15dff19e95fab /sapi/embed
parentfd2e66bd05022b023379de86577e3498fded0e96 (diff)
downloadphp-git-7bd41e0715c46bf63aae27a23d3fe3e7439a899a.tar.gz
MFH:- Fixed bug #41576 (misbehaviour when using --without-apxs)
Diffstat (limited to 'sapi/embed')
-rw-r--r--sapi/embed/config.m428
1 files changed, 16 insertions, 12 deletions
diff --git a/sapi/embed/config.m4 b/sapi/embed/config.m4
index 4461bc3383..fccae0198f 100644
--- a/sapi/embed/config.m4
+++ b/sapi/embed/config.m4
@@ -6,9 +6,14 @@ AC_MSG_CHECKING(for embedded SAPI library support)
AC_ARG_ENABLE(embed,
[ --enable-embed[=TYPE] EXPERIMENTAL: Enable building of embedded SAPI library
- TYPE is either 'shared' or 'static'. [TYPE=shared]],
-[
- case $enableval in
+ TYPE is either 'shared' or 'static'. [TYPE=shared]], [
+ PHP_EMBED=$enableval
+], [
+ PHP_EMBED=no
+])
+
+if test "$PHP_EMBED" != "no"; then
+ case "$PHP_EMBED" in
yes|shared)
PHP_EMBED_TYPE=shared
INSTALL_IT="\$(mkinstalldirs) \$(INSTALL_ROOT)\$(prefix)/lib; \$(INSTALL) -m 0755 $SAPI_SHARED \$(INSTALL_ROOT)\$(prefix)/lib"
@@ -21,13 +26,12 @@ AC_ARG_ENABLE(embed,
PHP_EMBED_TYPE=no
;;
esac
-],[
- PHP_EMBED_TYPE=no
-])
-
-AC_MSG_RESULT($PHP_EMBED_TYPE)
-
-if test "$PHP_EMBED_TYPE" != "no"; then
- PHP_SELECT_SAPI(embed, $PHP_EMBED_TYPE, php_embed.c)
- PHP_INSTALL_HEADERS([sapi/embed/php_embed.h])
+ if test "$PHP_EMBED_TYPE" != "no"; then
+ PHP_SELECT_SAPI(embed, $PHP_EMBED_TYPE, php_embed.c)
+ PHP_INSTALL_HEADERS([sapi/embed/php_embed.h])
+ fi
+ AC_MSG_RESULT($PHP_EMBED_TYPE)
+else
+ AC_MSG_RESULT(no)
fi
+