summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBertrand Jacquin <bjacquin@exosec.fr>2012-12-11 01:40:31 +0100
committerBertrand Jacquin <bjacquin@exosec.fr>2012-12-11 01:40:31 +0100
commit88f2629b570f043da5ba27c6182b1a35d0c9ea00 (patch)
tree6d16628a7daebd31ed7e52aaefe18d653bc31ea1
parent[CLEANUP] No need to declare HEADER, this is always one prefixed by SRC (diff)
downloadmod_virtualvalue-88f2629b570f043da5ba27c6182b1a35d0c9ea00.tar.gz
[CLEANUP] make apr-1-config and php-config variables to not only search
in PATH
-rw-r--r--Makefile12
1 files changed, 8 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 7b586e0..8b9892f 100644
--- a/Makefile
+++ b/Makefile
@@ -22,22 +22,26 @@ EXTRA_FILES = \
TODO \
Makefile
+APR = apr-1-config
+
APR_CFLAGS = \
- $(shell sh -c 'apr-1-config --cflags --includes')
+ $(shell sh -c '$(APR) --cflags --includes')
APR_LDFLAGS = \
- $(shell sh -c 'apr-1-config --ldflags')
+ $(shell sh -c '$(APR) --ldflags')
HTTPD_CFLAGS = \
-I/usr/include/apache2
ifdef HAVE_PHP
+PHP = php-config
+
PHP_CFLAGS = \
-DHAVE_PHP \
- $(shell sh -c 'php-config --includes')
+ $(shell sh -c '$(PHP) --includes')
PHP_LDFLAGS = \
- $(shell sh -c 'php-config --ldflags')
+ $(shell sh -c '$(PHP) --ldflags')
endif # HAVE_PHP
CFLAGS = \