diff options
author | ale <ale@FreeBSD.org> | 2006-01-17 22:39:31 +0800 |
---|---|---|
committer | ale <ale@FreeBSD.org> | 2006-01-17 22:39:31 +0800 |
commit | 0c06c9efcd8919290dcb3362268c9b95743ecc6d (patch) | |
tree | 085450167baea4592068956801e43749273a27cb /devel | |
parent | 0d0602313c7b038d03bb61433c63e5f604a13515 (diff) | |
download | freebsd-ports-gnome-0c06c9efcd8919290dcb3362268c9b95743ecc6d.tar.gz freebsd-ports-gnome-0c06c9efcd8919290dcb3362268c9b95743ecc6d.tar.zst freebsd-ports-gnome-0c06c9efcd8919290dcb3362268c9b95743ecc6d.zip |
Fix build.
Spotted by: Mike Harding <mvh@ix.netcom.com>
Diffstat (limited to 'devel')
-rw-r--r-- | devel/php5-readline/files/patch-config.m4 | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/devel/php5-readline/files/patch-config.m4 b/devel/php5-readline/files/patch-config.m4 new file mode 100644 index 000000000000..2fc99fceeb5b --- /dev/null +++ b/devel/php5-readline/files/patch-config.m4 @@ -0,0 +1,35 @@ +--- config.m4.orig Tue Jan 17 15:32:03 2006 ++++ config.m4 Tue Jan 17 15:33:12 2006 +@@ -5,10 +5,8 @@ + PHP_ARG_WITH(libedit,for libedit readline replacement, + [ --with-libedit[=DIR] Include libedit readline replacement (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" && test "$PHP_READLINE" != "no"; then + for i in $PHP_READLINE /usr/local /usr; do +@@ -50,6 +48,13 @@ + -L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS + ]) + ++ PHP_CHECK_LIBRARY(readline, rl_completion_matches, ++ [ ++ AC_DEFINE(HAVE_RL_COMPLETION_MATCHES, 1, [ ]) ++ ],[],[ ++ -L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS ++ ]) ++ + PHP_CHECK_LIBRARY(history, add_history, + [ + PHP_ADD_LIBRARY_WITH_PATH(history, $READLINE_DIR/$PHP_LIBDIR, READLINE_SHARED_LIBADD) +@@ -96,7 +101,6 @@ + fi + + if test "$PHP_READLINE" != "no" || test "$PHP_LIBEDIT" != "no"; then +- AC_CHECK_FUNCS([rl_completion_matches]) + PHP_NEW_EXTENSION(readline, readline.c, $ext_shared, cli) + PHP_SUBST(READLINE_SHARED_LIBADD) + fi |