php-src/travis/compile.sh

79 lines
1.3 KiB
Bash
Raw Normal View History

2012-04-26 11:48:49 +00:00
#!/bin/bash
set -ex
if [[ "$ENABLE_ZTS" == 1 ]]; then
TS="--enable-zts";
else
TS="";
fi
if [[ "$ENABLE_DEBUG" == 1 ]]; then
DEBUG="--enable-debug";
else
DEBUG="";
fi
if [[ "$S390X" == 1 ]]; then
S390X_CONFIG="--without-pcre-jit";
else
S390X_CONFIG="";
fi
2014-05-08 08:08:55 +00:00
./buildconf --force
./configure \
--enable-option-checking=fatal \
--prefix="$HOME"/php-install \
$CONFIG_QUIET \
$DEBUG \
$TS \
$S390X_CONFIG \
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 \
--with-pgsql \
--with-pdo-pgsql \
--with-pdo-sqlite \
--enable-intl \
2015-12-05 21:48:29 +00:00
--without-pear \
--enable-gd \
--with-jpeg \
--with-webp \
--with-freetype \
--with-xpm \
--enable-exif \
--with-zip \
--with-zlib \
--with-zlib-dir=/usr \
--enable-soap \
--enable-xmlreader \
--with-xsl \
--with-tidy \
--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 \
--enable-bcmath \
2014-07-06 01:09:26 +00:00
--enable-calendar \
--enable-ftp \
--with-pspell=/usr \
--with-enchant=/usr \
2015-01-25 09:21:53 +00:00
--with-kerberos \
--enable-sysvmsg \
2019-05-07 12:32:06 +00:00
--with-ffi \
2020-02-24 10:00:58 +00:00
--with-sodium \
--enable-zend-test=shared \
--enable-werror \
--with-pear
if [[ -z "$CONFIG_ONLY" ]]; then
MAKE_JOBS=${MAKE_JOBS:-$(nproc)}
make "-j${MAKE_JOBS}" $MAKE_QUIET
make install
fi