aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/config.m4.template
diff options
context:
space:
mode:
authorGravatar Stanley Cheung <stanleycheung@google.com>2017-04-14 15:07:28 -0700
committerGravatar Stanley Cheung <stanleycheung@google.com>2017-04-14 15:07:28 -0700
commit5ec52ae01a08f6060cc90125f916dd056b899174 (patch)
tree5ef7b9249f642328178fe1fe19bf5e7dab7f680f /templates/config.m4.template
parentbb75f3ea820b8c2d0f0ac1dc66a62f7ded9e6f22 (diff)
PHP: add ares as deps
Diffstat (limited to 'templates/config.m4.template')
-rw-r--r--templates/config.m4.template7
1 files changed, 6 insertions, 1 deletions
diff --git a/templates/config.m4.template b/templates/config.m4.template
index f5f1d23088..13ff7389e6 100644
--- a/templates/config.m4.template
+++ b/templates/config.m4.template
@@ -10,6 +10,8 @@
PHP_ADD_INCLUDE(PHP_EXT_SRCDIR()/include)
PHP_ADD_INCLUDE(PHP_EXT_SRCDIR()/src/php/ext/grpc)
PHP_ADD_INCLUDE(PHP_EXT_SRCDIR()/third_party/boringssl/include)
+ PHP_ADD_INCLUDE(PHP_EXT_SRCDIR()/third_party/cares)
+ PHP_ADD_INCLUDE(PHP_EXT_SRCDIR()/third_party/cares/cares)
LIBS="-lpthread $LIBS"
@@ -20,8 +22,11 @@
PHP_ADD_LIBRARY(dl)
case $host in
- *darwin*) ;;
+ *darwin*)
+ PHP_ADD_INCLUDE(PHP_EXT_SRCDIR()/third_party/cares/config_darwin)
+ ;;
*)
+ PHP_ADD_INCLUDE(PHP_EXT_SRCDIR()/third_party/cares/config_linux)
PHP_ADD_LIBRARY(rt,,GRPC_SHARED_LIBADD)
PHP_ADD_LIBRARY(rt)
;;