xref: /PHP-7.4/scripts/php-config.in (revision 0e7e000d)
1#! /bin/sh
2
3prefix="@prefix@"
4exec_prefix="@exec_prefix@"
5version="@PHP_VERSION@"
6includedir="@includedir@/php"
7includes="-I$includedir -I$includedir/main -I$includedir/TSRM -I$includedir/Zend -I$includedir/ext -I$includedir/ext/date/lib"
8ldflags="@PHP_LDFLAGS@"
9libs="@EXTRA_LIBS@"
10extension_dir='@EXTENSION_DIR@'
11program_prefix="@program_prefix@"
12program_suffix="@program_suffix@"
13exe_extension="@EXEEXT@"
14php_binary="@bindir@/${program_prefix}php${program_suffix}${exe_extension}"
15
16case "$1" in
17--prefix)
18	echo $prefix;;
19--includes)
20	echo $includes;;
21--ldflags)
22	echo $ldflags;;
23--libs)
24	echo $libs;;
25--extension-dir)
26	echo $extension_dir;;
27--include-dir)
28	echo $includedir;;
29--php-binary)
30	echo $php_binary;;
31--version)
32	echo $version;;
33*)
34	echo "Usage: $0 [--prefix|--includes|--ldflags|--libs|--extension-dir|--include-dir|--php-binary|--version]"
35	exit 1;;
36esac
37
38exit 0
39