Skip to content

Commit 2acd4c2

Browse files
authored
Autotools: Sync HAVE_ERASE_EMPTY_LINE help text (#14857)
HAVE_ERASE_EMPTY_LINE always gets the last AC_DEFINE help text, so it is simpler to have the same help message for both definitions (readline and editline). First text never got into header via autoheader anyway.
1 parent 1db75d4 commit 2acd4c2

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

ext/readline/config.m4

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ else
1414
php_with_readline=no
1515
fi
1616

17+
AH_TEMPLATE([HAVE_ERASE_EMPTY_LINE],
18+
[Define to 1 if edit/readline library has 'rl_erase_empty_line' variable.])
19+
1720
if test "$PHP_READLINE" && test "$PHP_READLINE" != "no"; then
1821
for i in $PHP_READLINE /usr/local /usr; do
1922
test -f $i/include/readline/readline.h && READLINE_DIR=$i && break
@@ -76,8 +79,7 @@ if test "$PHP_READLINE" && test "$PHP_READLINE" != "no"; then
7679
])
7780

7881
AC_CHECK_DECL([rl_erase_empty_line],
79-
[AC_DEFINE([HAVE_ERASE_EMPTY_LINE], [1],
80-
[Define to 1 if readline library has rl_erase_empty_line variable.])],,
82+
[AC_DEFINE([HAVE_ERASE_EMPTY_LINE], [1])],,
8183
[#include <readline/readline.h>])
8284

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

141143
AC_CHECK_DECL([rl_erase_empty_line],
142-
[AC_DEFINE([HAVE_ERASE_EMPTY_LINE], [1],
143-
[Define to 1 if edit library has rl_erase_empty_line variable.])],,
144+
[AC_DEFINE([HAVE_ERASE_EMPTY_LINE], [1])],,
144145
[#include <editline/readline.h>])
145146

146147
AC_DEFINE(HAVE_LIBEDIT, 1, [ ])

0 commit comments

Comments
 (0)