Annotation of embedaddon/php/scripts/php-config.in, revision 1.1.1.1
1.1 misho 1: #! /bin/sh
2:
3: SED="@SED@"
4: prefix="@prefix@"
5: exec_prefix="@exec_prefix@"
6: version="@PHP_VERSION@"
7: vernum="@PHP_VERSION_ID@"
8: include_dir="@includedir@/php"
9: includes="-I$include_dir -I$include_dir/main -I$include_dir/TSRM -I$include_dir/Zend -I$include_dir/ext -I$include_dir/ext/date/lib"
10: ldflags="@PHP_LDFLAGS@"
11: libs="@EXTRA_LIBS@"
12: extension_dir='@EXTENSION_DIR@'
13: man_dir=`eval echo @mandir@`
14: program_prefix="@program_prefix@"
15: program_suffix="@program_suffix@"
16: exe_extension="@EXEEXT@"
17: php_cli_binary=NONE
18: php_cgi_binary=NONE
19: configure_options="@CONFIGURE_OPTIONS@"
20: php_sapis="@PHP_INSTALLED_SAPIS@"
21:
22: # Set php_cli_binary and php_cgi_binary if available
23: for sapi in $php_sapis; do
24: case $sapi in
25: cli)
26: php_cli_binary="@bindir@/${program_prefix}php${program_suffix}${exe_extension}"
27: ;;
28: cgi)
29: php_cgi_binary="@bindir@/${program_prefix}php-cgi${program_suffix}${exe_extension}"
30: ;;
31: esac
32: done
33:
34: # Determine which (if any) php binary is available
35: if test "$php_cli_binary" != "NONE"; then
36: php_binary="$php_cli_binary"
37: else
38: php_binary="$php_cgi_binary"
39: fi
40:
41: # Remove quotes
42: configure_options=`echo $configure_options | $SED -e "s#'##g"`
43:
44: case "$1" in
45: --prefix)
46: echo $prefix;;
47: --includes)
48: echo $includes;;
49: --ldflags)
50: echo $ldflags;;
51: --libs)
52: echo $libs;;
53: --extension-dir)
54: echo $extension_dir;;
55: --include-dir)
56: echo $include_dir;;
57: --php-binary)
58: echo $php_binary;;
59: --php-sapis)
60: echo $php_sapis;;
61: --configure-options)
62: echo $configure_options;;
63: --man-dir)
64: echo $man_dir;;
65: --version)
66: echo $version;;
67: --vernum)
68: echo $vernum;;
69: *)
70: cat << EOF
71: Usage: $0 [OPTION]
72: Options:
73: --prefix [$prefix]
74: --includes [$includes]
75: --ldflags [$ldflags]
76: --libs [$libs]
77: --extension-dir [$extension_dir]
78: --include-dir [$include_dir]
79: --man-dir [$man_dir]
80: --php-binary [$php_binary]
81: --php-sapis [$php_sapis]
82: --configure-options [$configure_options]
83: --version [$version]
84: --vernum [$vernum]
85: EOF
86: exit 1;;
87: esac
88:
89: exit 0
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>