1 | #! /bin/sh |
---|
2 | |
---|
3 | SED="/opt/local/bin/gsed" |
---|
4 | prefix="/opt/local" |
---|
5 | datarootdir="/opt/local/php" |
---|
6 | exec_prefix="${prefix}" |
---|
7 | version="8.2.8" |
---|
8 | vernum="80208" |
---|
9 | include_dir="/opt/local/include/php82/php" |
---|
10 | 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 -I/opt/local/include" |
---|
11 | ldflags=" -L/opt/local/lib" |
---|
12 | libs=" -lresolv -lncurses -lbz2 -lnetwork -lm -lxml2 -lpcre2-8 -lz -lxml2 -ledit -lxml2 -largon2 -lxml2 -lxml2 -lxml2 -lz " |
---|
13 | extension_dir='/opt/local/lib/php82/extensions/no-debug-non-zts-20220829' |
---|
14 | man_dir=`eval echo /opt/local/share/man` |
---|
15 | program_prefix="" |
---|
16 | program_suffix="82" |
---|
17 | exe_extension="" |
---|
18 | php_cli_binary=NONE |
---|
19 | php_cgi_binary=NONE |
---|
20 | configure_options=" '--prefix=/opt/local' '--mandir=/opt/local/share/man' '--infodir=/opt/local/share/info' '--program-suffix=82' '--includedir=/opt/local/include/php82' '--libdir=/opt/local/lib/php82' '--with-config-file-path=/opt/local/etc/php82' '--with-config-file-scan-dir=/opt/local/var/db/php82' '--disable-all' '--enable-bcmath' '--enable-ctype' '--enable-dom' '--enable-filter' '--enable-json' '--enable-pdo' '--enable-session' '--enable-simplexml' '--enable-tokenizer' '--enable-xml' '--enable-xmlreader' '--enable-xmlwriter' '--with-bz2=/opt/local' '--with-mhash=/opt/local' '--with-zlib=/opt/local' '--disable-cgi' '--enable-cli' '--with-libxml' '--with-external-pcre=/opt/local' '--enable-fileinfo' '--enable-phar' '--disable-fpm' '--with-password-argon2=/opt/local' '--without-valgrind' '--with-libedit' ' ' |
---|
21 | php_sapis=" cli phpdbg" |
---|
22 | ini_dir="/opt/local/var/db/php82" |
---|
23 | ini_path="/opt/local/etc/php82" |
---|
24 | |
---|
25 | # Set php_cli_binary and php_cgi_binary if available |
---|
26 | for sapi in $php_sapis; do |
---|
27 | case $sapi in |
---|
28 | cli) |
---|
29 | php_cli_binary="${exec_prefix}/bin/${program_prefix}php${program_suffix}${exe_extension}" |
---|
30 | ;; |
---|
31 | cgi) |
---|
32 | php_cgi_binary="${exec_prefix}/bin/${program_prefix}php-cgi${program_suffix}${exe_extension}" |
---|
33 | ;; |
---|
34 | esac |
---|
35 | done |
---|
36 | |
---|
37 | # Determine which (if any) php binary is available |
---|
38 | if test "$php_cli_binary" != "NONE"; then |
---|
39 | php_binary="$php_cli_binary" |
---|
40 | else |
---|
41 | php_binary="$php_cgi_binary" |
---|
42 | fi |
---|
43 | |
---|
44 | # Remove quotes |
---|
45 | configure_options=`echo $configure_options | $SED -e "s#'##g"` |
---|
46 | |
---|
47 | case "$1" in |
---|
48 | --prefix) |
---|
49 | echo $prefix;; |
---|
50 | --includes) |
---|
51 | echo $includes;; |
---|
52 | --ldflags) |
---|
53 | echo $ldflags;; |
---|
54 | --libs) |
---|
55 | echo $libs;; |
---|
56 | --extension-dir) |
---|
57 | echo $extension_dir;; |
---|
58 | --include-dir) |
---|
59 | echo $include_dir;; |
---|
60 | --php-binary) |
---|
61 | echo $php_binary;; |
---|
62 | --php-sapis) |
---|
63 | echo $php_sapis;; |
---|
64 | --configure-options) |
---|
65 | echo $configure_options;; |
---|
66 | --man-dir) |
---|
67 | echo $man_dir;; |
---|
68 | --ini-path) |
---|
69 | echo $ini_path;; |
---|
70 | --ini-dir) |
---|
71 | echo $ini_dir;; |
---|
72 | --version) |
---|
73 | echo $version;; |
---|
74 | --vernum) |
---|
75 | echo $vernum;; |
---|
76 | *) |
---|
77 | cat << EOF |
---|
78 | Usage: $0 [OPTION] |
---|
79 | Options: |
---|
80 | --prefix [$prefix] |
---|
81 | --includes [$includes] |
---|
82 | --ldflags [$ldflags] |
---|
83 | --libs [$libs] |
---|
84 | --extension-dir [$extension_dir] |
---|
85 | --include-dir [$include_dir] |
---|
86 | --man-dir [$man_dir] |
---|
87 | --php-binary [$php_binary] |
---|
88 | --php-sapis [$php_sapis] |
---|
89 | --ini-path [$ini_path] |
---|
90 | --ini-dir [$ini_dir] |
---|
91 | --configure-options [$configure_options] |
---|
92 | --version [$version] |
---|
93 | --vernum [$vernum] |
---|
94 | EOF |
---|
95 | exit 1;; |
---|
96 | esac |
---|
97 | |
---|
98 | exit 0 |
---|