summaryrefslogtreecommitdiff
path: root/scripts/php-config.in
blob: 44ebdce0e2a504108d6d3995cd502a2a054f83bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#! /bin/sh

prefix="@prefix@"
exec_prefix="@exec_prefix@"
version="@PHP_VERSION@"
includedir="@includedir@/php"
includes="-I$includedir -I$includedir/main -I$includedir/TSRM -I$includedir/Zend"
ldflags="@PHP_LDFLAGS@"
libs="@EXTRA_LIBS@"
extension_dir='@EXTENSION_DIR@'
program_prefix="@program_prefix@"
program_suffix="@program_suffix@"
exe_extension="@EXEEXT@"
php_binary="@bindir@/${program_prefix}php${program_suffix}${exe_extension}"

case "$1" in
--prefix)
	echo $prefix;;
--includes)
	echo $includes;;
--ldflags)
	echo $ldflags;;
--libs)
	echo $libs;;
--extension-dir)
	echo $extension_dir;;
--php-binary)
	echo $php_binary;;
--version)
	echo $version;;
*)
	echo "Usage: $0 [--prefix|--includes|--ldflags|--libs|--extension-dir|--php-binary|--version]"
	exit 1;;
esac

exit 0