]> granicus.if.org Git - php/commitdiff
MFB51: fix build when --with-libedit is used
authorfoobar <sniper@php.net>
Fri, 18 Nov 2005 15:11:14 +0000 (15:11 +0000)
committerfoobar <sniper@php.net>
Fri, 18 Nov 2005 15:11:14 +0000 (15:11 +0000)
ext/readline/config.m4

index 818eb27722d4c9d3f0979a9bd35a2b8084eba91d..2ec104c3d498f47dab4ac45267e798a27b243ff4 100644 (file)
@@ -5,8 +5,10 @@ dnl
 PHP_ARG_WITH(libedit,for 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 (CLI/CGI only)])
+if test "$PHP_LIBEDIT" = "no"; then
+  PHP_ARG_WITH(readline,for readline support,
+  [  --with-readline[=DIR]   Include readline support (CLI/CGI only)])
+fi
 
 if test "$PHP_READLINE" != "no"; then
   for i in $PHP_READLINE /usr/local /usr; do