diff options
author | foobar <sniper@php.net> | 2002-10-11 23:28:01 +0000 |
---|---|---|
committer | foobar <sniper@php.net> | 2002-10-11 23:28:01 +0000 |
commit | 49488cfd0d42ea58a86164785b9bb2145d4a4c70 (patch) | |
tree | 12eb43d95428e2b5521ba02e7e6761decdf0f91a /sapi/embed | |
parent | 814373e8b7ac02ec33a364c4d82ce752764b63c5 (diff) | |
download | php-git-49488cfd0d42ea58a86164785b9bb2145d4a4c70.tar.gz |
- Removed the unnecessary extra configure option --enable-shared-embed
- Changed --enable-embed to accept parameters shared/static and default
to static build.
Diffstat (limited to 'sapi/embed')
-rw-r--r-- | sapi/embed/config.m4 | 42 |
1 files changed, 29 insertions, 13 deletions
diff --git a/sapi/embed/config.m4 b/sapi/embed/config.m4 index 5c8e66203d..e7a214798c 100644 --- a/sapi/embed/config.m4 +++ b/sapi/embed/config.m4 @@ -1,14 +1,30 @@ -PHP_ARG_ENABLE(embed,whether to enable the embedded SAPI module, -[ --enable-embed]) - -PHP_ARG_ENABLE(embed-shared,whether to build it as shared library, -[ --enable-embed-shared]) - -if test "$PHP_EMBED" = "yes"; then - if test "$PHP_EMBED_SHARED" = "yes"; then - ac_type=shared - else - ac_type=static - fi - PHP_SELECT_SAPI(embed, $ac_type, php_embed.c) +dnl +dnl $Id$ +dnl + +AC_MSG_CHECKING(for embedded SAPI library support) + +AC_ARG_ENABLE(embed, +[ --enable-embed[=TYPE] Enable building embedded SAPI library of PHP + TYPE is either 'shared' or 'static'. Defaults to 'static' library.], +[ + case $enableval in + yes|static) + PHP_EMBED_TYPE=static + ;; + shared) + PHP_EMBED_TYPE=shared + ;; + *) + PHP_EMBED_TYPE=no + ;; + esac +],[ + PHP_EMBED=no +]) + +AC_MSG_RESULT($PHP_EMBED_TYPE) + +if test "$PHP_EMBED_TYPE" != "no"; then + PHP_SELECT_SAPI(embed, $PHP_EMBED_TYPE, php_embed.c) fi |