xref: /PHP-7.4/scripts/php-config.in (revision ee5fd96e)
1f2f8d38eSSascha Schumann#! /bin/sh
2f2f8d38eSSascha Schumann
3574eaa8eSHartmut Holzgraefeprefix="@prefix@"
4*ee5fd96eSfoobarexec_prefix="@exec_prefix@"
51d475375Sfoobarversion="@PHP_VERSION@"
6574eaa8eSHartmut Holzgraefeincludedir="@includedir@/php"
75d190e6bSfoobarincludes="-I$includedir -I$includedir/main -I$includedir/TSRM -I$includedir/Zend"
820c43285Sfoobarldflags="@PHP_LDFLAGS@"
904bb45cfSStig Bakkenlibs="@EXTRA_LIBS@"
10cae3b7dfSSascha Schumannextension_dir='@EXTENSION_DIR@'
11*ee5fd96eSfoobarprogram_prefix="@program_prefix@"
12*ee5fd96eSfoobarprogram_suffix="@program_suffix@"
13*ee5fd96eSfoobarexe_extension="@EXEEXT@"
14*ee5fd96eSfoobarphp_binary="@bindir@/${program_prefix}php${program_suffix}${exe_extension}"
15f2f8d38eSSascha Schumann
16f2f8d38eSSascha Schumanncase "$1" in
17f2f8d38eSSascha Schumann--prefix)
18f2f8d38eSSascha Schumann	echo $prefix;;
19f2f8d38eSSascha Schumann--includes)
20f2f8d38eSSascha Schumann	echo $includes;;
2120c43285Sfoobar--ldflags)
2220c43285Sfoobar	echo $ldflags;;
2304bb45cfSStig Bakken--libs)
2404bb45cfSStig Bakken	echo $libs;;
25cae3b7dfSSascha Schumann--extension-dir)
26cae3b7dfSSascha Schumann	echo $extension_dir;;
27*ee5fd96eSfoobar--php-binary)
28*ee5fd96eSfoobar	echo $php_binary;;
29ecb2b081SStig Bakken--version)
30ecb2b081SStig Bakken	echo $version;;
31f2f8d38eSSascha Schumann*)
32*ee5fd96eSfoobar	echo "Usage: $0 [--prefix|--includes|--ldflags|--libs|--extension-dir|--php-binary|--version]"
33f2f8d38eSSascha Schumann	exit 1;;
34f2f8d38eSSascha Schumannesac
35f2f8d38eSSascha Schumann
36f2f8d38eSSascha Schumannexit 0
37