1999-12-30 10:59:53 +08:00
|
|
|
#! /bin/sh
|
|
|
|
|
2007-06-29 09:09:54 +08:00
|
|
|
SED="@SED@"
|
2001-01-09 15:28:27 +08:00
|
|
|
prefix="@prefix@"
|
2011-05-15 14:09:21 +08:00
|
|
|
datarootdir="@datarootdir@"
|
2005-08-09 00:06:49 +08:00
|
|
|
exec_prefix="@exec_prefix@"
|
2002-05-09 20:06:44 +08:00
|
|
|
version="@PHP_VERSION@"
|
2007-06-29 09:09:54 +08:00
|
|
|
vernum="@PHP_VERSION_ID@"
|
|
|
|
include_dir="@includedir@/php"
|
2007-06-29 19:35:35 +08:00
|
|
|
includes="-I$include_dir -I$include_dir/main -I$include_dir/TSRM -I$include_dir/Zend -I$include_dir/ext -I$include_dir/ext/date/lib"
|
2003-01-28 18:59:12 +08:00
|
|
|
ldflags="@PHP_LDFLAGS@"
|
2002-09-29 05:58:19 +08:00
|
|
|
libs="@EXTRA_LIBS@"
|
2000-05-03 04:56:03 +08:00
|
|
|
extension_dir='@EXTENSION_DIR@'
|
2011-04-18 19:13:37 +08:00
|
|
|
man_dir=`eval echo @mandir@`
|
2005-08-09 00:06:49 +08:00
|
|
|
program_prefix="@program_prefix@"
|
|
|
|
program_suffix="@program_suffix@"
|
|
|
|
exe_extension="@EXEEXT@"
|
2007-06-29 09:09:54 +08:00
|
|
|
php_cli_binary=NONE
|
|
|
|
php_cgi_binary=NONE
|
|
|
|
configure_options="@CONFIGURE_OPTIONS@"
|
|
|
|
php_sapis="@PHP_INSTALLED_SAPIS@"
|
|
|
|
|
|
|
|
# Set php_cli_binary and php_cgi_binary if available
|
|
|
|
for sapi in $php_sapis; do
|
|
|
|
case $sapi in
|
|
|
|
cli)
|
|
|
|
php_cli_binary="@bindir@/${program_prefix}php${program_suffix}${exe_extension}"
|
|
|
|
;;
|
|
|
|
cgi)
|
|
|
|
php_cgi_binary="@bindir@/${program_prefix}php-cgi${program_suffix}${exe_extension}"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
|
|
|
|
# Determine which (if any) php binary is available
|
|
|
|
if test "$php_cli_binary" != "NONE"; then
|
|
|
|
php_binary="$php_cli_binary"
|
|
|
|
else
|
|
|
|
php_binary="$php_cgi_binary"
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Remove quotes
|
2007-08-24 19:43:42 +08:00
|
|
|
configure_options=`echo $configure_options | $SED -e "s#'##g"`
|
1999-12-30 10:59:53 +08:00
|
|
|
|
|
|
|
case "$1" in
|
|
|
|
--prefix)
|
2007-06-29 09:09:54 +08:00
|
|
|
echo $prefix;;
|
1999-12-30 10:59:53 +08:00
|
|
|
--includes)
|
2007-06-29 09:09:54 +08:00
|
|
|
echo $includes;;
|
2003-01-28 18:59:12 +08:00
|
|
|
--ldflags)
|
2007-06-29 09:09:54 +08:00
|
|
|
echo $ldflags;;
|
2002-09-29 05:58:19 +08:00
|
|
|
--libs)
|
2007-06-29 09:09:54 +08:00
|
|
|
echo $libs;;
|
2000-05-03 04:56:03 +08:00
|
|
|
--extension-dir)
|
2007-06-29 09:09:54 +08:00
|
|
|
echo $extension_dir;;
|
2005-11-22 07:07:36 +08:00
|
|
|
--include-dir)
|
2007-06-29 09:09:54 +08:00
|
|
|
echo $include_dir;;
|
2005-08-09 00:06:49 +08:00
|
|
|
--php-binary)
|
2007-06-29 09:09:54 +08:00
|
|
|
echo $php_binary;;
|
|
|
|
--php-sapis)
|
|
|
|
echo $php_sapis;;
|
|
|
|
--configure-options)
|
|
|
|
echo $configure_options;;
|
2011-04-18 19:13:37 +08:00
|
|
|
--man-dir)
|
|
|
|
echo $man_dir;;
|
2001-08-13 15:58:29 +08:00
|
|
|
--version)
|
2007-06-29 09:09:54 +08:00
|
|
|
echo $version;;
|
2006-07-27 16:50:41 +08:00
|
|
|
--vernum)
|
2007-06-29 09:09:54 +08:00
|
|
|
echo $vernum;;
|
1999-12-30 10:59:53 +08:00
|
|
|
*)
|
2007-06-29 09:09:54 +08:00
|
|
|
cat << EOF
|
|
|
|
Usage: $0 [OPTION]
|
|
|
|
Options:
|
|
|
|
--prefix [$prefix]
|
|
|
|
--includes [$includes]
|
|
|
|
--ldflags [$ldflags]
|
|
|
|
--libs [$libs]
|
|
|
|
--extension-dir [$extension_dir]
|
|
|
|
--include-dir [$include_dir]
|
2011-04-18 19:13:37 +08:00
|
|
|
--man-dir [$man_dir]
|
2007-06-29 09:09:54 +08:00
|
|
|
--php-binary [$php_binary]
|
|
|
|
--php-sapis [$php_sapis]
|
|
|
|
--configure-options [$configure_options]
|
|
|
|
--version [$version]
|
|
|
|
--vernum [$vernum]
|
|
|
|
EOF
|
|
|
|
exit 1;;
|
1999-12-30 10:59:53 +08:00
|
|
|
esac
|
|
|
|
|
|
|
|
exit 0
|