xref: /PHP-7.4/scripts/php-config.in (revision 20c43285)
1f2f8d38eSSascha Schumann#! /bin/sh
2f2f8d38eSSascha Schumann
3574eaa8eSHartmut Holzgraefeprefix="@prefix@"
41d475375Sfoobarversion="@PHP_VERSION@"
5574eaa8eSHartmut Holzgraefeincludedir="@includedir@/php"
6fbc947f4SStig Bakkenincludes="-I$includedir -I$includedir/main -I$includedir/Zend"
7*20c43285Sfoobarldflags="@PHP_LDFLAGS@"
804bb45cfSStig Bakkenlibs="@EXTRA_LIBS@"
9fbc947f4SStig Bakkenif test '@TSRM_DIR@' != ''; then
10fbc947f4SStig Bakken    includes="$includes -I$includedir/TSRM"
11fbc947f4SStig Bakkenfi
12cae3b7dfSSascha Schumannextension_dir='@EXTENSION_DIR@'
13f2f8d38eSSascha Schumann
14f2f8d38eSSascha Schumanncase "$1" in
15f2f8d38eSSascha Schumann--prefix)
16f2f8d38eSSascha Schumann	echo $prefix;;
17f2f8d38eSSascha Schumann--includes)
18f2f8d38eSSascha Schumann	echo $includes;;
19*20c43285Sfoobar--ldflags)
20*20c43285Sfoobar	echo $ldflags;;
2104bb45cfSStig Bakken--libs)
2204bb45cfSStig Bakken	echo $libs;;
23cae3b7dfSSascha Schumann--extension-dir)
24cae3b7dfSSascha Schumann	echo $extension_dir;;
25ecb2b081SStig Bakken--version)
26ecb2b081SStig Bakken	echo $version;;
27f2f8d38eSSascha Schumann*)
28*20c43285Sfoobar	echo "Usage: $0 [--prefix|--includes|--ldflags|--libs|--extension-dir|--version]"
29f2f8d38eSSascha Schumann	exit 1;;
30f2f8d38eSSascha Schumannesac
31f2f8d38eSSascha Schumann
32f2f8d38eSSascha Schumannexit 0
33