2012-04-26 11:48:49 +00:00
|
|
|
#!/bin/bash
|
2014-04-27 15:52:59 +00:00
|
|
|
if [[ "$ENABLE_MAINTAINER_ZTS" == 1 ]]; then
|
|
|
|
TS="--enable-maintainer-zts";
|
|
|
|
else
|
|
|
|
TS="";
|
|
|
|
fi
|
2014-04-28 06:31:02 +00:00
|
|
|
if [[ "$ENABLE_DEBUG" == 1 ]]; then
|
2017-07-13 18:28:44 +00:00
|
|
|
DEBUG="--enable-debug --without-pcre-valgrind";
|
2014-04-28 06:31:02 +00:00
|
|
|
else
|
|
|
|
DEBUG="";
|
|
|
|
fi
|
2017-04-18 18:27:19 +00:00
|
|
|
|
|
|
|
if [[ -z "$CONFIG_LOG_FILE" ]]; then
|
|
|
|
CONFIG_QUIET="--quiet"
|
|
|
|
CONFIG_LOG_FILE="/dev/stdout"
|
|
|
|
else
|
|
|
|
CONFIG_QUIET=""
|
|
|
|
fi
|
|
|
|
if [[ -z "$MAKE_LOG_FILE" ]]; then
|
|
|
|
MAKE_QUIET="--quiet"
|
|
|
|
MAKE_LOG_FILE="/dev/stdout"
|
|
|
|
else
|
|
|
|
MAKE_QUIET=""
|
|
|
|
fi
|
|
|
|
|
|
|
|
MAKE_JOBS=${MAKE_JOBS:-2}
|
|
|
|
|
2014-05-08 08:08:55 +00:00
|
|
|
./buildconf --force
|
2015-08-23 20:47:51 +00:00
|
|
|
./configure \
|
2017-04-18 18:27:19 +00:00
|
|
|
--prefix="$HOME"/php-install \
|
|
|
|
$CONFIG_QUIET \
|
2014-04-28 06:31:02 +00:00
|
|
|
$DEBUG \
|
2014-04-27 15:52:59 +00:00
|
|
|
$TS \
|
2014-10-24 17:32:35 +00:00
|
|
|
--enable-phpdbg \
|
2014-06-30 10:30:24 +00:00
|
|
|
--enable-fpm \
|
2013-08-11 08:36:59 +00:00
|
|
|
--with-pdo-mysql=mysqlnd \
|
|
|
|
--with-mysqli=mysqlnd \
|
2012-04-28 01:27:29 +00:00
|
|
|
--with-pgsql \
|
|
|
|
--with-pdo-pgsql \
|
|
|
|
--with-pdo-sqlite \
|
|
|
|
--enable-intl \
|
2015-12-05 21:48:29 +00:00
|
|
|
--without-pear \
|
2012-04-28 01:27:29 +00:00
|
|
|
--with-gd \
|
|
|
|
--with-jpeg-dir=/usr \
|
|
|
|
--with-png-dir=/usr \
|
|
|
|
--enable-exif \
|
|
|
|
--enable-zip \
|
2017-09-11 07:19:11 +00:00
|
|
|
--without-libzip \
|
2012-04-28 01:27:29 +00:00
|
|
|
--with-zlib \
|
|
|
|
--with-zlib-dir=/usr \
|
|
|
|
--enable-soap \
|
|
|
|
--enable-xmlreader \
|
|
|
|
--with-xsl \
|
|
|
|
--with-curl=/usr \
|
|
|
|
--with-tidy \
|
|
|
|
--with-xmlrpc \
|
|
|
|
--enable-sysvsem \
|
|
|
|
--enable-sysvshm \
|
|
|
|
--enable-shmop \
|
|
|
|
--enable-pcntl \
|
|
|
|
--with-readline \
|
|
|
|
--enable-mbstring \
|
|
|
|
--with-curl \
|
|
|
|
--with-gettext \
|
|
|
|
--enable-sockets \
|
|
|
|
--with-bz2 \
|
2013-08-13 07:17:21 +00:00
|
|
|
--with-openssl \
|
2014-04-28 07:55:51 +00:00
|
|
|
--with-gmp \
|
2014-06-09 13:30:09 +00:00
|
|
|
--enable-bcmath \
|
2014-07-06 01:09:26 +00:00
|
|
|
--enable-calendar \
|
|
|
|
--enable-ftp \
|
|
|
|
--with-pspell=/usr \
|
|
|
|
--with-enchant=/usr \
|
|
|
|
--enable-wddx \
|
2015-01-25 09:21:53 +00:00
|
|
|
--with-freetype-dir=/usr \
|
|
|
|
--with-xpm-dir=/usr \
|
|
|
|
--with-kerberos \
|
2017-03-10 23:33:32 +00:00
|
|
|
--enable-sysvmsg \
|
2017-04-18 18:27:19 +00:00
|
|
|
--enable-zend-test \
|
|
|
|
> "$CONFIG_LOG_FILE"
|
|
|
|
|
|
|
|
make "-j${MAKE_JOBS}" $MAKE_QUIET > "$MAKE_LOG_FILE"
|
|
|
|
make install >> "$MAKE_LOG_FILE"
|