summaryrefslogtreecommitdiff
path: root/scripts/php-config.in
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2005-08-08 16:06:49 +0000
committerfoobar <sniper@php.net>2005-08-08 16:06:49 +0000
commitee5fd96e37a1396e87f8bcfd55ef22a5043a0794 (patch)
treec53f340d1ec4b9ead6b95534f79ec5bef2d48f7f /scripts/php-config.in
parent0f2986fe9d53903bfb1bb2b8988055545b5fdb83 (diff)
downloadphp-git-ee5fd96e37a1396e87f8bcfd55ef22a5043a0794.tar.gz
- Made it possible to do "make test" for phpized extensions
Diffstat (limited to 'scripts/php-config.in')
-rw-r--r--scripts/php-config.in9
1 files changed, 8 insertions, 1 deletions
diff --git a/scripts/php-config.in b/scripts/php-config.in
index a3105dff4d..44ebdce0e2 100644
--- a/scripts/php-config.in
+++ b/scripts/php-config.in
@@ -1,12 +1,17 @@
#! /bin/sh
prefix="@prefix@"
+exec_prefix="@exec_prefix@"
version="@PHP_VERSION@"
includedir="@includedir@/php"
includes="-I$includedir -I$includedir/main -I$includedir/TSRM -I$includedir/Zend"
ldflags="@PHP_LDFLAGS@"
libs="@EXTRA_LIBS@"
extension_dir='@EXTENSION_DIR@'
+program_prefix="@program_prefix@"
+program_suffix="@program_suffix@"
+exe_extension="@EXEEXT@"
+php_binary="@bindir@/${program_prefix}php${program_suffix}${exe_extension}"
case "$1" in
--prefix)
@@ -19,10 +24,12 @@ case "$1" in
echo $libs;;
--extension-dir)
echo $extension_dir;;
+--php-binary)
+ echo $php_binary;;
--version)
echo $version;;
*)
- echo "Usage: $0 [--prefix|--includes|--ldflags|--libs|--extension-dir|--version]"
+ echo "Usage: $0 [--prefix|--includes|--ldflags|--libs|--extension-dir|--php-binary|--version]"
exit 1;;
esac