File: //usr/local/bin/php-config
#! /bin/sh
SED="/bin/sed"
prefix="/usr/local"
datarootdir="/usr/local/php"
exec_prefix="${prefix}"
version="8.2.28"
vernum="80228"
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=" -Wl,-z,relro,-z,now -pie -L/usr/lib64/../lib64 -L/usr/local/lib64"
libs="-lcrypt -lc-client -ltidy -lncurses -laspell -lpspell -lrt -lldap -llber -lstdc++ -lcrypt -lpam -lgmp -lbz2 -lrt -lm -lsystemd -lxml2 -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto -lsqlite3 -lz -lcurl -lssl -lcrypto -lxml2 -lenchant -lgmodule-2.0 -lglib-2.0 -lffi -lssl -lcrypto -lz -lpng16 -lwebp -ljpeg -lXpm -lX11 -lfreetype -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto -licuio -licui18n -licuuc -licudata -lonig -lsqlite3 -ledit -lxml2 -lnetsnmp -lm -lm -lssl -lssl -lcrypto -lxml2 -lsodium -largon2 -lxml2 -lxml2 -lxml2 -lxslt -lxml2 -lexslt -lxslt -lxml2 -lzip -lz -lssl -lcrypto -lcrypt "
extension_dir='/usr/local/lib/php/extensions/no-debug-non-zts-20220829'
man_dir=`eval echo ${datarootdir}/man`
program_prefix=""
program_suffix=""
exe_extension=""
php_cli_binary=NONE
php_cgi_binary=NONE
configure_options=" '--enable-fpm' '--enable-opcache' '--enable-intl' '--enable-pcntl' '--with-mcrypt' '--with-snmp' '--enable-embed=shared' '--with-mhash' '--with-zlib' '--with-gettext' '--enable-exif' '--with-zip' '--with-libzip' '--with-bz2' '--enable-soap' '--enable-sockets' '--enable-sysvmsg' '--enable-sysvsem' '--enable-sysvshm' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--with-curl' '--enable-gd' '--with-xmlrpc' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--enable-gd-native-ttf' '--with-freetype' '--with-jpeg' '--with-png-dir=/usr' '--with-xpm' '--with-webp' '--with-t1lib=/usr' '--enable-shmop' '--with-pear' '--enable-mbstring' '--with-openssl' '--with-mysql=mysqlnd' '--with-libdir=lib64' '--with-mysqli=mysqlnd' '--enable-pdo' '--with-pdo-sqlite' '--with-pdo-mysql=mysqlnd' '--enable-inline-optimization' '--with-imap' '--with-imap-ssl' '--with-kerberos' '--with-readline' '--with-libedit' '--with-gmp' '--with-pspell' '--with-tidy' '--with-enchant' '--with-fpm-user=nginx' '--with-fpm-group=nginx' '--with-ldap' '--with-ldap-sasl' '--with-password-argon2' '--with-sodium=/usr/local' '--with-pic' '--with-config-file-scan-dir=/etc/centminmod/php.d' '--with-fpm-systemd' '--with-ffi' '--with-xsl' 'PKG_CONFIG_PATH=/usr/local/lib64/pkgconfig:' 'OPENSSL_CFLAGS=-I /usr/include' 'OPENSSL_LIBS=-L /usr/lib64 -lssl -lcrypto' 'PNG_CFLAGS=-I/usr/include' 'PNG_LIBS=-L/usr/lib64 -lpng16' 'ICU_CFLAGS=-fPIC' 'ICU_LIBS=-L/usr/lib64 -licuio -licui18n -licuuc -licudata' 'ONIG_CFLAGS=-I/usr/include' 'ONIG_LIBS=-L/usr/lib64 -lonig' 'LIBSODIUM_CFLAGS=-fPIC' 'LIBSODIUM_LIBS=-L/usr/local/lib64 -lsodium' 'ARGON2_CFLAGS=-I/usr/local/include' 'ARGON2_LIBS=-L/usr/local/lib64 -largon2' 'LIBZIP_CFLAGS=-fPIC' 'LIBZIP_LIBS=-L/usr/local/lib64 -lzip'"
php_sapis=" cli embed fpm phpdbg cgi"
ini_dir="/etc/centminmod/php.d"
ini_path="/usr/local/lib"
# 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