summaryrefslogtreecommitdiff
path: root/ext/readline
diff options
context:
space:
mode:
authorEdin Kadribasic <edink@php.net>2002-01-20 02:30:18 +0000
committerEdin Kadribasic <edink@php.net>2002-01-20 02:30:18 +0000
commitf5790b0a7c1af118db4009dbbf89660bf5a2f097 (patch)
treeaf7a89d064009001fbd39c90c4a06ecbeb397a05 /ext/readline
parent7de51385c26f434727c6da30dbae3d0abe58496e (diff)
downloadphp-git-f5790b0a7c1af118db4009dbbf89660bf5a2f097.tar.gz
Modified the build system to make certain extensions (pcntl, ncurses,
pcntl) only with cgi/cli sapi's. This was done by adding 3rd optional parameter to PHP_EXTENSION macro which should be set to "cli" if the extension only makes sense for that class of api's.
Diffstat (limited to 'ext/readline')
-rw-r--r--ext/readline/config.m412
1 files changed, 4 insertions, 8 deletions
diff --git a/ext/readline/config.m4 b/ext/readline/config.m4
index 3d7e2c70ea..d179f82ffd 100644
--- a/ext/readline/config.m4
+++ b/ext/readline/config.m4
@@ -3,14 +3,10 @@ dnl $Id$
dnl
PHP_ARG_WITH(libedit,for libedit readline replacement,
-[ --with-libedit[=DIR] Include libedit readline replacement.])
+[ --with-libedit[=DIR] Include libedit readline replacement (CLI/CGI only).])
PHP_ARG_WITH(readline,for readline support,
-[ --with-readline[=DIR] Include readline support.])
-
-if test "$PHP_READLINE" != "no" -o "$PHP_LIBEDIT" != "no"; then
- PHP_CHECK_INTERACTIVE(readline)
-fi
+[ --with-readline[=DIR] Include readline support (CLI/CGI only).])
if test "$PHP_READLINE" != "no"; then
for i in /usr/local /usr $PHP_READLINE; do
@@ -55,7 +51,7 @@ if test "$PHP_READLINE" != "no"; then
PHP_SUBST(READLINE_SHARED_LIBADD)
AC_DEFINE(HAVE_LIBREADLINE, 1, [ ])
- PHP_EXTENSION(readline, $ext_shared)
+ PHP_EXTENSION(readline, $ext_shared, cli)
fi
if test "$PHP_LIBEDIT" != "no"; then
@@ -92,5 +88,5 @@ if test "$PHP_LIBEDIT" != "no"; then
PHP_SUBST(READLINE_SHARED_LIBADD)
AC_DEFINE(HAVE_LIBEDIT, 1, [ ])
- PHP_EXTENSION(readline, $ext_shared)
+ PHP_EXTENSION(readline, $ext_shared, cli)
fi