Browse Source

- Fixed bug #50209 (Compiling with libedit cannot find readline.h)

(patch by tcallawa at redhat dot com)
experimental/first_unicode_implementation
Felipe Pena 17 years ago
parent
commit
97cfc51298
  1. 2
      ext/readline/config.m4
  2. 4
      ext/readline/readline.c
  3. 5
      sapi/cli/php_cli.c
  4. 4
      sapi/cli/php_cli_readline.c

2
ext/readline/config.m4

@ -65,7 +65,7 @@ if test "$PHP_READLINE" && test "$PHP_READLINE" != "no"; then
elif test "$PHP_LIBEDIT" != "no"; then
for i in $PHP_LIBEDIT /usr/local /usr; do
test -f $i/include/readline/readline.h && LIBEDIT_DIR=$i && break
test -f $i/include/editline/readline.h && LIBEDIT_DIR=$i && break
done
if test -z "$LIBEDIT_DIR"; then

4
ext/readline/readline.c

@ -33,8 +33,10 @@
#define rl_completion_matches completion_matches
#endif
#ifdef HAVE_LIBEDIT
#include <editline/readline.h>
#else
#include <readline/readline.h>
#ifndef HAVE_LIBEDIT
#include <readline/history.h>
#endif

5
sapi/cli/php_cli.c

@ -76,8 +76,11 @@
#endif
#if (HAVE_LIBREADLINE || HAVE_LIBEDIT) && !defined(COMPILE_DL_READLINE)
#if HAVE_LIBEDIT
#include <editline/readline.h>
#else
#include <readline/readline.h>
#if !HAVE_LIBEDIT
#include <readline/history.h>
#endif
#include "php_cli_readline.h"

4
sapi/cli/php_cli_readline.c

@ -49,8 +49,10 @@
#include <unixlib/local.h>
#endif
#if HAVE_LIBEDIT
#include <editline/readline.h>
#else
#include <readline/readline.h>
#if !HAVE_LIBEDIT
#include <readline/history.h>
#endif

Loading…
Cancel
Save