Skip to content

Commit 587220d

Browse files
committed
Move HAVE_LIBEDIT and HAVE_LIBREADLINE to proper places
1 parent 5e21156 commit 587220d

File tree

4 files changed

+14
-16
lines changed

4 files changed

+14
-16
lines changed
Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
1-
/* Define to 1 if edit/readline library has the 'history_list' function. */
1+
/* Define to 1 if edit library has the 'history_list' function. */
22
#cmakedefine HAVE_HISTORY_LIST 1
33

4-
/* Define to 1 if readline extension uses the 'libedit' library. */
4+
/* Define to 1 if PHP uses the 'libedit' library. */
55
#cmakedefine HAVE_LIBEDIT 1
66

7-
/* Define to 1 if readline extension uses the 'readline' library. */
7+
/* Define to 1 if PHP uses the 'readline' library. */
88
#cmakedefine HAVE_LIBREADLINE 1
99

10-
/* Define to 1 if edit/readline library has the 'rl_callback_read_char'
11-
function. */
10+
/* Define to 1 if edit library has the 'rl_callback_read_char' function. */
1211
#cmakedefine HAVE_RL_CALLBACK_READ_CHAR 1
1312

14-
/* Define to 1 if edit/readline library has the 'rl_completion_matches'
15-
function. */
13+
/* Define to 1 if edit library has the 'rl_completion_matches' function. */
1614
#cmakedefine HAVE_RL_COMPLETION_MATCHES 1
1715

18-
/* Define to 1 if edit/readline library has the 'rl_on_new_line' function. */
16+
/* Define to 1 if readline library has the 'rl_on_new_line' function. */
1917
#cmakedefine HAVE_RL_ON_NEW_LINE 1

cmake/main/php_config.cmake.h.in

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -259,12 +259,6 @@
259259
/* Define to 1 if you have the 'dl' library (-ldl). */
260260
#cmakedefine HAVE_LIBDL 1
261261

262-
/* Define to 1 if system has the 'libedit' library. */
263-
#cmakedefine HAVE_LIBEDIT 1
264-
265-
/* Define to 1 if system has the 'readline' library. */
266-
#cmakedefine HAVE_LIBREADLINE 1
267-
268262
/* Define to 1 if you have the <linux/sock_diag.h> header file. */
269263
#cmakedefine HAVE_LINUX_SOCK_DIAG_H 1
270264

cmake/sapi/phpdbg/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ if(SAPI_PHPDBG_READLINE OR EXT_READLINE)
133133

134134
target_link_libraries(php_phpdbg PRIVATE Readline::Readline)
135135

136-
set(HAVE_LIBREADLINE 1 CACHE INTERNAL "Whether the readline is available")
136+
set(HAVE_LIBREADLINE)
137137
else()
138138
find_package(Editline)
139139
set_package_properties(
@@ -145,7 +145,7 @@ if(SAPI_PHPDBG_READLINE OR EXT_READLINE)
145145

146146
target_link_libraries(php_phpdbg PRIVATE Editline::Editline)
147147

148-
set(HAVE_LIBEDIT 1 CACHE INTERNAL "Whether the libedit is available")
148+
set(HAVE_LIBEDIT 1)
149149
endif()
150150

151151
set(HAVE_PHPDBG_READLINE 1)

cmake/sapi/phpdbg/config.cmake.h.in

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
/* Define to 1 if 'TIOCGWINSZ' requires <sys/ioctl.h>. */
22
#cmakedefine GWINSZ_IN_SYS_IOCTL 1
33

4+
/* Define to 1 if PHP uses the 'libedit' library. */
5+
#cmakedefine HAVE_LIBEDIT 1
6+
7+
/* Define to 1 if PHP uses the 'readline' library. */
8+
#cmakedefine HAVE_LIBREADLINE 1
9+
410
/* Define to 1 if the phpdbg SAPI has libedit/readline integration. */
511
#cmakedefine HAVE_PHPDBG_READLINE 1
612

0 commit comments

Comments
 (0)