php-src/scripts/php-config.in

33 lines
600 B
Plaintext
Raw Normal View History

#! /bin/sh
2001-01-09 15:28:27 +08:00
prefix="@prefix@"
2002-05-09 20:06:44 +08:00
version="@PHP_VERSION@"
2001-01-09 15:28:27 +08:00
includedir="@includedir@/php"
includes="-I$includedir -I$includedir/main -I$includedir/Zend"
ldflags="@PHP_LDFLAGS@"
2002-09-29 05:58:19 +08:00
libs="@EXTRA_LIBS@"
if test '@TSRM_DIR@' != ''; then
includes="$includes -I$includedir/TSRM"
fi
extension_dir='@EXTENSION_DIR@'
case "$1" in
--prefix)
echo $prefix;;
--includes)
echo $includes;;
--ldflags)
echo $ldflags;;
2002-09-29 05:58:19 +08:00
--libs)
echo $libs;;
--extension-dir)
echo $extension_dir;;
--version)
echo $version;;
*)
echo "Usage: $0 [--prefix|--includes|--ldflags|--libs|--extension-dir|--version]"
exit 1;;
esac
exit 0