xref: /PHP-7.4/scripts/php-config.in (revision f0fe4e05)
1f2f8d38eSSascha Schumann#! /bin/sh
2f2f8d38eSSascha Schumann
3574eaa8eSHartmut Holzgraefeprefix="@prefix@"
4ee5fd96eSfoobarexec_prefix="@exec_prefix@"
51d475375Sfoobarversion="@PHP_VERSION@"
6*f0fe4e05Sfoobarversion_id="@PHP_VERSION_ID@"
7574eaa8eSHartmut Holzgraefeincludedir="@includedir@/php"
837d4fa7bSfoobarincludes="-I$includedir -I$includedir/main -I$includedir/TSRM -I$includedir/Zend -I$includedir/ext -I$includedir/ext/date/lib"
920c43285Sfoobarldflags="@PHP_LDFLAGS@"
1004bb45cfSStig Bakkenlibs="@EXTRA_LIBS@"
11cae3b7dfSSascha Schumannextension_dir='@EXTENSION_DIR@'
12ee5fd96eSfoobarprogram_prefix="@program_prefix@"
13ee5fd96eSfoobarprogram_suffix="@program_suffix@"
14ee5fd96eSfoobarexe_extension="@EXEEXT@"
15ee5fd96eSfoobarphp_binary="@bindir@/${program_prefix}php${program_suffix}${exe_extension}"
16f2f8d38eSSascha Schumann
17f2f8d38eSSascha Schumanncase "$1" in
18f2f8d38eSSascha Schumann--prefix)
19f2f8d38eSSascha Schumann	echo $prefix;;
20f2f8d38eSSascha Schumann--includes)
21f2f8d38eSSascha Schumann	echo $includes;;
2220c43285Sfoobar--ldflags)
2320c43285Sfoobar	echo $ldflags;;
2404bb45cfSStig Bakken--libs)
2504bb45cfSStig Bakken	echo $libs;;
26cae3b7dfSSascha Schumann--extension-dir)
27cae3b7dfSSascha Schumann	echo $extension_dir;;
28bcade7ceSfoobar--include-dir)
29bcade7ceSfoobar	echo $includedir;;
30ee5fd96eSfoobar--php-binary)
31ee5fd96eSfoobar	echo $php_binary;;
32ecb2b081SStig Bakken--version)
33ecb2b081SStig Bakken	echo $version;;
34*f0fe4e05Sfoobar--vernum)
35*f0fe4e05Sfoobar	echo $version_id;;
36f2f8d38eSSascha Schumann*)
37*f0fe4e05Sfoobar	echo "Usage: $0 [--prefix|--includes|--ldflags|--libs|--extension-dir|--include-dir|--php-binary|--version|--vernum]"
38f2f8d38eSSascha Schumann	exit 1;;
39f2f8d38eSSascha Schumannesac
40f2f8d38eSSascha Schumann
41f2f8d38eSSascha Schumannexit 0
42