Ticket #67898: php-config82-broken

File php-config82-broken, 3.0 KB (added by thomashohn, 15 months ago)

Broken php-config82

Line 
1#! /bin/sh
2
3SED="/opt/local/bin/gsed"
4prefix="/opt/local"
5datarootdir="/opt/local/php"
6exec_prefix="${prefix}"
7version="8.2.8"
8vernum="80208"
9include_dir="/opt/local/include/php82/php"
10includes="-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"
11ldflags=" -L/opt/local/lib"
12libs=" -lresolv -lncurses -lbz2 -lnetwork -lm -lxml2 -lpcre2-8 -lz -lxml2 -ledit -lxml2 -largon2 -lxml2 -lxml2 -lxml2 -lz "
13extension_dir='/opt/local/lib/php82/extensions/no-debug-non-zts-20220829'
14man_dir=`eval echo /opt/local/share/man`
15program_prefix=""
16program_suffix="82"
17exe_extension=""
18php_cli_binary=NONE
19php_cgi_binary=NONE
20configure_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' ' '
21php_sapis=" cli phpdbg"
22ini_dir="/opt/local/var/db/php82"
23ini_path="/opt/local/etc/php82"
24
25# Set php_cli_binary and php_cgi_binary if available
26for 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
35done
36
37# Determine which (if any) php binary is available
38if test "$php_cli_binary" != "NONE"; then
39 php_binary="$php_cli_binary"
40else
41 php_binary="$php_cgi_binary"
42fi
43
44# Remove quotes
45configure_options=`echo $configure_options | $SED -e "s#'##g"`
46
47case "$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
78Usage: $0 [OPTION]
79Options:
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]
94EOF
95 exit 1;;
96esac
97
98exit 0