php-7.4.27-mk1-mac/bin/php-config

99 lines
4.0 KiB
Plaintext
Raw Permalink Normal View History

2023-04-27 18:29:57 +03:00
#! /bin/sh
SED="/usr/local/bin/gsed"
prefix="/Users/pachanga/.phpbrew/php/php-7.4.27"
datarootdir="/Users/pachanga/.phpbrew/php/php-7.4.27/php"
exec_prefix="${prefix}"
version="7.4.27"
vernum="70427"
include_dir="${prefix}/include/php"
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"
ldflags=" -L/usr/local/Cellar/libxml2/2.9.12/lib -L/usr/local/Cellar/openssl@1.1/1.1.0f/lib -L/usr/local/Cellar/zlib/1.2.8/lib -L/usr/local/Cellar/curl/7.54.0/lib -L/usr/local/Cellar/oniguruma/6.3.0/lib -L/usr/local/opt/readline/lib -L/usr/local/Cellar/libxslt/1.1.28_1/lib -L/usr/local/Cellar/libxml2/2.9.2/lib -L/usr/local/Cellar/libzip/0.11.2/lib"
libs=" -lresolv -lreadline -lncurses -lbz2 -lm -lpthread -lxml2 -lssl -lcrypto -lz -lcurl -lxml2 -lonig -lxml2 -lxml2 -lxml2 -lxml2 -lxslt -lxml2 -lz -lpthread -liconv -lm -lxml2 -lexslt -lxslt -lxml2 -lz -lpthread -liconv -lm -lxml2 -lzip -lz "
extension_dir='/Users/pachanga/.phpbrew/php/php-7.4.27/lib/php/extensions/no-debug-zts-20190902'
man_dir=`eval echo ${datarootdir}/man`
program_prefix=""
program_suffix=""
exe_extension=""
php_cli_binary=NONE
php_cgi_binary=NONE
configure_options=" '--cache-file=/Users/pachanga/.phpbrew/cache/config.cache' '--prefix=/Users/pachanga/.phpbrew/php/php-7.4.27' '--with-config-file-path=/Users/pachanga/.phpbrew/php/php-7.4.27/etc' '--with-config-file-scan-dir=/Users/pachanga/.phpbrew/php/php-7.4.27/var/db' '--disable-all' '--enable-phar' '--enable-session' '--enable-short-tags' '--enable-tokenizer' '--with-zlib=/usr/local/opt' '--enable-dom' '--with-libxml' '--enable-simplexml' '--enable-xml' '--enable-xmlreader' '--enable-xmlwriter' '--with-xsl' '--enable-opcache' '--enable-bcmath' '--with-bz2=/usr' '--enable-calendar' '--enable-cli' '--enable-ctype' '--enable-fileinfo' '--enable-filter' '--enable-shmop' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-json' '--enable-mbregex' '--enable-mbstring' '--with-mhash=/usr/local/opt' '--enable-pcntl' '--enable-pdo' '--with-pear=/Users/pachanga/.phpbrew/php/php-7.4.27/lib/php/pear' '--enable-posix' '--with-readline=/usr/local/opt/readline' '--enable-sockets' '--with-curl' '--with-openssl' '--with-zip' '--enable-maintainer-zts' 'PKG_CONFIG_PATH=/usr/local/opt/libxml2/lib/pkgconfig:/usr/local/opt/lib/pkgconfig:/usr/local/opt/curl/lib/pkgconfig'"
php_sapis=" cli phpdbg cgi"
ini_dir="/Users/pachanga/.phpbrew/php/php-7.4.27/var/db"
ini_path="/Users/pachanga/.phpbrew/php/php-7.4.27/etc"
# Set php_cli_binary and php_cgi_binary if available
for sapi in $php_sapis; do
case $sapi in
cli)
php_cli_binary="${exec_prefix}/bin/${program_prefix}php${program_suffix}${exe_extension}"
;;
cgi)
php_cgi_binary="${exec_prefix}/bin/${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
configure_options=`echo $configure_options | $SED -e "s#'##g"`
case "$1" in
--prefix)
echo $prefix;;
--includes)
echo $includes;;
--ldflags)
echo $ldflags;;
--libs)
echo $libs;;
--extension-dir)
echo $extension_dir;;
--include-dir)
echo $include_dir;;
--php-binary)
echo $php_binary;;
--php-sapis)
echo $php_sapis;;
--configure-options)
echo $configure_options;;
--man-dir)
echo $man_dir;;
--ini-path)
echo $ini_path;;
--ini-dir)
echo $ini_dir;;
--version)
echo $version;;
--vernum)
echo $vernum;;
*)
cat << EOF
Usage: $0 [OPTION]
Options:
--prefix [$prefix]
--includes [$includes]
--ldflags [$ldflags]
--libs [$libs]
--extension-dir [$extension_dir]
--include-dir [$include_dir]
--man-dir [$man_dir]
--php-binary [$php_binary]
--php-sapis [$php_sapis]
--ini-path [$ini_path]
--ini-dir [$ini_dir]
--configure-options [$configure_options]
--version [$version]
--vernum [$vernum]
EOF
exit 1;;
esac
exit 0