xref: /PHP-8.3/ext/readline/config.w32 (revision 2850e09c)
1// vim:ft=javascript
2
3ARG_WITH("readline", "Readline support", "yes");
4
5if (PHP_READLINE != "no") {
6	if (CHECK_LIB("edit_a.lib;edit.lib", "readline", PHP_READLINE) &&
7		CHECK_HEADER_ADD_INCLUDE("editline/readline.h", "CFLAGS_READLINE")) {
8		EXTENSION("readline", "readline.c readline_cli.c");
9		ADD_FLAG("CFLAGS_READLINE", "/D HAVE_LIBEDIT");
10		ADD_FLAG("CFLAGS_READLINE", "/D HAVE_RL_COMPLETION_MATCHES");
11		ADD_FLAG("CFLAGS_READLINE", "/D HAVE_HISTORY_LIST");
12	} else {
13		WARNING("readline not enabled; libraries and headers not found");
14	}
15}
16