diff options
author | Wez Furlong <wez@php.net> | 2004-08-24 12:06:37 +0000 |
---|---|---|
committer | Wez Furlong <wez@php.net> | 2004-08-24 12:06:37 +0000 |
commit | 5ed8e635912c96cb20b4e135867dc231ce5d0403 (patch) | |
tree | adad9bf3af48c5f7f83f1031e8b0a230f6f0b288 /ext/readline | |
parent | ce65982ec153bbd0609def88fa7a3d3540b35c2a (diff) | |
download | php-git-5ed8e635912c96cb20b4e135867dc231ce5d0403.tar.gz |
use dependent libs while probing for functions
Diffstat (limited to 'ext/readline')
-rw-r--r-- | ext/readline/config.m4 | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ext/readline/config.m4 b/ext/readline/config.m4 index 7df38b247a..5aefec6729 100644 --- a/ext/readline/config.m4 +++ b/ext/readline/config.m4 @@ -19,13 +19,16 @@ if test "$PHP_READLINE" != "no"; then PHP_ADD_INCLUDE($READLINE_DIR/include) + PHP_READLINE_LIBS="" AC_CHECK_LIB(ncurses, tgetent, [ PHP_ADD_LIBRARY(ncurses,,READLINE_SHARED_LIBADD) + PHP_READLINE_LIBS="$PHP_READLINE_LIBS -lncurses" ],[ AC_CHECK_LIB(termcap, tgetent, [ PHP_ADD_LIBRARY(termcap,,READLINE_SHARED_LIBADD) + PHP_READLINE_LIBS="$PHP_READLINE_LIBS -ltermcap" ]) ]) @@ -35,7 +38,7 @@ if test "$PHP_READLINE" != "no"; then ], [ AC_MSG_ERROR(readline library not found) ], [ - -L$READLINE_DIR/lib + -L$READLINE_DIR/lib $PHP_READLINE_LIBS ]) PHP_CHECK_LIBRARY(history, add_history, @@ -44,7 +47,7 @@ if test "$PHP_READLINE" != "no"; then ], [ AC_MSG_ERROR(history library required by readline not found) ], [ - -L$READLINE_DIR/lib + -L$READLINE_DIR/lib $PHP_READLINE_LIBS ]) PHP_NEW_EXTENSION(readline, readline.c, $ext_shared, cli) |