php-src/scripts/php-config.in

42 lines
946 B
Bash

#! /bin/sh
prefix="@prefix@"
exec_prefix="@exec_prefix@"
version="@PHP_VERSION@"
version_id="@PHP_VERSION_ID@"
includedir="@includedir@/php"
includes="-I$includedir -I$includedir/main -I$includedir/TSRM -I$includedir/Zend -I$includedir/ext -I$includedir/ext/date/lib"
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)
echo $prefix;;
--includes)
echo $includes;;
--ldflags)
echo $ldflags;;
--libs)
echo $libs;;
--extension-dir)
echo $extension_dir;;
--include-dir)
echo $includedir;;
--php-binary)
echo $php_binary;;
--version)
echo $version;;
--vernum)
echo $version_id;;
*)
echo "Usage: $0 [--prefix|--includes|--ldflags|--libs|--extension-dir|--include-dir|--php-binary|--version|--vernum]"
exit 1;;
esac
exit 0