com php-src: add WinEditLine support for CLI: sapi/cli/config.w32

From: Date: Fri, 15 Jan 2016 11:45:57 +0000
Subject: com php-src: add WinEditLine support for CLI: sapi/cli/config.w32
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-90659@lists.php.net to get a copy of this message
Commit: 91545ce3a2b097c9b1676344d8e60103c00a8c07 Author: Anatol Belski <ab@php.net> Fri, 15 Jan 2016 12:17:40 +0100 Parents: 3169d473e907448abd710fa635e239358acadfd1 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=91545ce3a2b097c9b1676344d8e60103c00a8c07 Log: add WinEditLine support for CLI Changed paths: M sapi/cli/config.w32 Diff: diff --git a/sapi/cli/config.w32 b/sapi/cli/config.w32 index 664394c..c6409b5 100644 --- a/sapi/cli/config.w32 +++ b/sapi/cli/config.w32 @@ -12,6 +12,11 @@ if (PHP_CLI == "yes") { ADD_FLAG("CFLAGS_CLI", "/D PHP_WIN32_DEBUG_HEAP"); } ADD_FLAG("LDFLAGS_CLI", "/stack:67108864"); + + if (CHECK_LIB("edit_a.lib;edit.lib", "cli", PHP_CLI) && + CHECK_HEADER_ADD_INCLUDE("editline/readline.h", "CFLAGS_CLI")) { + ADD_FLAG("CFLAGS_CLI", "/D HAVE_LIBEDIT"); + } } if (PHP_CLI_WIN32 == "yes") {

« previous php.cvs (#90659) next »