blob: 698c563148da6a42df839bf507798cf8670f88d7 (
plain) (
blame)
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
#
# Append options from CONFIGURE to OPTS
#
OPTS="$OPTS \
$PHP4_SAFE \
$PHP4_CALENDAR \
$PHP4_PCRE \
$PHP4_PCNTL \
$PHP4_FTP \
$PHP4_FCGI \
" &&
#
# Setup SSL IMAP if wanted
#
if echo $OPTS | grep -q -- --with-imap; then
if spell_ok openssl; then
OPTS="$OPTS --with-imap-ssl"
fi
fi &&
case "$PHP4_APACHE" in
handler)
if httpd -v | grep -q "Apache/2\."; then
message "${MESSAGE_COLOR}Configuring for Apache 2.x${DEFAULT_COLOR}" &&
OPTS="$OPTS --with-apxs2"
else
message "${MESSAGE_COLOR}Configuring for Apache 1.x${DEFAULT_COLOR}" &&
OPTS="$OPTS --with-apxs"
fi
;;
filter)
OPTS="$OPTS --with-apxs2filter"
;;
esac &&
#Check for xorg or xserver and pass location of xpm
if [ "$PHP5_X11LIBS" == "y" ]; then
OPTS="$OPTS --with-xpm-dir=/usr"
fi &&
#check to see if internal GD requested
if [ "$PHP5_GD" == "internal" ]; then
OPTS="--with-gd --enable-gd-native-ttf $OPTS"
fi &&
./configure --prefix=${INSTALL_ROOT}/usr \
--sysconfdir=${INSTALL_ROOT}/etc \
--mandir=${INSTALL_ROOT}/usr/share/man \
--with-exec-dir=${INSTALL_ROOT}/usr/bin \
--with-config-file-path=${INSTALL_ROOT}/etc \
--enable-cli \
--disable-static \
--disable-debug \
--disable-rpath \
--enable-inline-optimization \
--enable-pic \
--enable-bcmath \
--enable-magic-quotes \
--enable-sysvsem \
--enable-sysvshm \
--enable-force-cgi-redirect \
--enable-wddx \
--enable-filepro \
--enable-dbase \
--enable-sockets \
--with-iconv \
--with-versioning \
--with-mod_charset \
--with-pear \
--enable-pdo \
--with-layout=GNU \
$OPTS &&
make &&
# safety precaution against earlier PHP installations removing httpd.conf
pushd "$INSTALL_LOGS" &>/dev/null
local each
for each in $SPELL-*; do
if test -f "$each"; then
sedit 's|.*/httpd\.conf.*||g' "$each"
fi
done
popd &>/dev/null
|