1#!/bin/bash 2set -ex 3if [[ "$ENABLE_MAINTAINER_ZTS" == 1 ]]; then 4 TS="--enable-maintainer-zts"; 5else 6 TS=""; 7fi 8if [[ "$ENABLE_DEBUG" == 1 ]]; then 9 DEBUG="--enable-debug"; 10else 11 DEBUG=""; 12fi 13 14if [[ -z "$CONFIG_LOG_FILE" ]]; then 15 CONFIG_QUIET="--quiet" 16 CONFIG_LOG_FILE="/dev/stdout" 17else 18 CONFIG_QUIET="" 19fi 20if [[ -z "$MAKE_LOG_FILE" ]]; then 21 MAKE_QUIET="--quiet" 22 MAKE_LOG_FILE="/dev/stdout" 23else 24 MAKE_QUIET="" 25fi 26 27MAKE_JOBS=${MAKE_JOBS:-$(nproc)} 28 29./buildconf --force 30./configure \ 31--enable-option-checking=fatal \ 32--prefix="$HOME"/php-install \ 33$CONFIG_QUIET \ 34$DEBUG \ 35$TS \ 36--enable-phpdbg \ 37--enable-fpm \ 38--with-pdo-mysql=mysqlnd \ 39--with-mysqli=mysqlnd \ 40--with-pgsql \ 41--with-pdo-pgsql \ 42--with-pdo-sqlite \ 43--enable-intl \ 44--without-pear \ 45--enable-gd \ 46--with-jpeg \ 47--with-webp \ 48--with-freetype \ 49--with-xpm \ 50--enable-exif \ 51--with-zip \ 52--with-zlib \ 53--with-zlib-dir=/usr \ 54--enable-soap \ 55--enable-xmlreader \ 56--with-xsl \ 57--with-tidy \ 58--with-xmlrpc \ 59--enable-sysvsem \ 60--enable-sysvshm \ 61--enable-shmop \ 62--enable-pcntl \ 63--with-readline \ 64--enable-mbstring \ 65--with-curl \ 66--with-gettext \ 67--enable-sockets \ 68--with-bz2 \ 69--with-openssl \ 70--with-gmp \ 71--enable-bcmath \ 72--enable-calendar \ 73--enable-ftp \ 74--with-pspell=/usr \ 75--with-enchant=/usr \ 76--with-kerberos \ 77--enable-sysvmsg \ 78--with-ffi \ 79--with-sodium \ 80--enable-zend-test=shared \ 81--enable-werror \ 82--with-pear 83 84make "-j${MAKE_JOBS}" $MAKE_QUIET 85make install 86