xref: /PHP-7.3/ext/readline/config.w32 (revision 1c850bfc)
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	} else {
12		WARNING("readline not enabled; libraries and headers not found");
13	}
14}
15