Skip to content

Autotools: Sync HAVE_ERASE_EMPTY_LINE help text #14857

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions ext/readline/config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ else
php_with_readline=no
fi

AH_TEMPLATE([HAVE_ERASE_EMPTY_LINE],
[Define to 1 if edit/readline library has 'rl_erase_empty_line' variable.])

if test "$PHP_READLINE" && test "$PHP_READLINE" != "no"; then
for i in $PHP_READLINE /usr/local /usr; do
test -f $i/include/readline/readline.h && READLINE_DIR=$i && break
Expand Down Expand Up @@ -76,8 +79,7 @@ if test "$PHP_READLINE" && test "$PHP_READLINE" != "no"; then
])

AC_CHECK_DECL([rl_erase_empty_line],
[AC_DEFINE([HAVE_ERASE_EMPTY_LINE], [1],
[Define to 1 if readline library has rl_erase_empty_line variable.])],,
[AC_DEFINE([HAVE_ERASE_EMPTY_LINE], [1])],,
[#include <readline/readline.h>])

AC_DEFINE(HAVE_HISTORY_LIST, 1, [ ])
Expand Down Expand Up @@ -139,8 +141,7 @@ elif test "$PHP_LIBEDIT" != "no"; then
])

AC_CHECK_DECL([rl_erase_empty_line],
[AC_DEFINE([HAVE_ERASE_EMPTY_LINE], [1],
[Define to 1 if edit library has rl_erase_empty_line variable.])],,
[AC_DEFINE([HAVE_ERASE_EMPTY_LINE], [1])],,
[#include <editline/readline.h>])

AC_DEFINE(HAVE_LIBEDIT, 1, [ ])
Expand Down
Loading