From 9299d14ab942546a693533cb6c14d0d3c18a4849 Mon Sep 17 00:00:00 2001 From: jgmdev Date: Mon, 24 Mar 2014 08:45:35 -0400 Subject: Call php-config to retreive php includes dir and binary on Makefile. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index c4823d8..6205b83 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,7 @@ # will find sub-directories named TSRM, Zend, ext and main. # -PHP_DIR = /usr/include/php5 +PHP_DIR = `php-config --include-dir` # @@ -27,7 +27,7 @@ PHP_DIR = /usr/include/php5 # You can see the command "whereis php" # -PHP_BIN = /usr/bin/php +PHP_BIN = `php-config --php-binary` # -- cgit v1.2.3