Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6e5944a

Browse files
committed
Autotools: Add 4th argument for PHP_SETUP_EDIT macro
1 parent 829187c commit 6e5944a

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

‎build/php.m4‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2004,14 +2004,16 @@ 2ドル],
20042004

20052005
dnl
20062006
dnl
2007-
dnl PHP_SETUP_EDIT([shared-add], [action-if-found], [action-if-not-found])
2007+
dnl PHP_SETUP_EDIT([shared-add], [action-if-found], [action-if-not-found], [not-extension])
20082008
dnl
2009-
dnl Common setup macro for linking libedit library.
2009+
dnl Common setup macro for linking libedit library. If "not-extension" argument
2010+
dnl is passed, the found library is appended to the "shared-add" variable
2011+
dnl unconditionally (for SAPIs).
20102012
dnl
20112013
AC_DEFUN([PHP_SETUP_EDIT], [
20122014
PKG_CHECK_MODULES([EDIT], [libedit], [
20132015
PHP_EVAL_INCLINE([$EDIT_CFLAGS])
2014-
PHP_EVAL_LIBLINE([$EDIT_LIBS], [1ドル])
2016+
PHP_EVAL_LIBLINE([$EDIT_LIBS], [1ドル], [4ドル])
20152017
AC_DEFINE([HAVE_LIBEDIT], [1],
20162018
[Define to 1 if 'libedit' library is available.])
20172019
2ドル

‎ext/readline/config.m4‎

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,28 +25,26 @@ if test "$PHP_READLINE" != "no"; then
2525

2626
PHP_CHECK_LIBRARY([edit], [rl_callback_read_char],
2727
[AC_DEFINE([HAVE_RL_CALLBACK_READ_CHAR], [1],
28-
[Define to 1 if edit/readline library has the 'rl_callback_read_char'
29-
function.])],
28+
[Define to 1 if edit library has the 'rl_callback_read_char' function.])],
3029
[],
3130
[$READLINE_SHARED_LIBADD])
3231

3332
PHP_CHECK_LIBRARY([edit], [rl_on_new_line],
3433
[AC_DEFINE([HAVE_RL_ON_NEW_LINE], [1],
35-
[Define to 1 if edit/readline library has the 'rl_on_new_line'
36-
function.])],
34+
[Define to 1 if edit library has the 'rl_on_new_line' function.])],
3735
[],
3836
[$READLINE_SHARED_LIBADD])
3937

4038
PHP_CHECK_LIBRARY([edit], [rl_completion_matches],
4139
[AC_DEFINE([HAVE_RL_COMPLETION_MATCHES], [1],
42-
[Define to 1 if edit/readline library has the 'rl_completion_matches'
40+
[Define to 1 if edit library has the 'rl_completion_matches'
4341
function.])],
4442
[],
4543
[$READLINE_SHARED_LIBADD])
4644

4745
PHP_CHECK_LIBRARY([edit], [history_list],
4846
[AC_DEFINE([HAVE_HISTORY_LIST], [1],
49-
[Define to 1 if edit/readline library has the 'history_list' function.])],
47+
[Define to 1 if edit library has the 'history_list' function.])],
5048
[],
5149
[$READLINE_SHARED_LIBADD])
5250

@@ -56,13 +54,13 @@ if test "$PHP_READLINE" != "no"; then
5654
LIBS="$LIBS $EDIT_LIBS"
5755
AC_CHECK_DECL([rl_erase_empty_line],
5856
[AC_DEFINE([HAVE_ERASE_EMPTY_LINE], [1],
59-
[Define to 1 if edit/readline library has the 'rl_erase_empty_line'
60-
global variable.])],,
57+
[Define to 1 if edit library has the 'rl_erase_empty_line' global
58+
variable.])],,
6159
[#include <editline/readline.h>])
6260
CFLAGS=$CFLAGS_SAVE
6361
LIBS=$LIBS_SAVE
6462

65-
dnl Add -Wno-strict-prototypes as depends on user libs
63+
dnl Add -Wno-strict-prototypes as depends on user libs
6664
PHP_NEW_EXTENSION([readline],
6765
[readline.c readline_cli.c],
6866
[$ext_shared],

‎sapi/phpdbg/config.m4‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ if test "$PHP_PHPDBG" != "no"; then
3030
AS_VAR_IF([PHP_PHPDBG_READLINE], [yes], [
3131
PHP_SETUP_EDIT([PHPDBG_EXTRA_LIBS],,, [yes])
3232
AC_DEFINE([HAVE_PHPDBG_READLINE], [1],
33-
[Define to 1 if the phpdbg SAPI has libedit/readline integration.])
33+
[Define to 1 if the phpdbg SAPI has libedit integration.])
3434
])
3535

3636
AH_TEMPLATE([HAVE_USERFAULTFD_WRITEFAULT],

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /