Fixed Mac compilation

This commit is contained in:
Shoghi Cervantes 2013-05-29 14:03:39 +02:00
parent f6ab39a526
commit 2271d45fd9

View File

@ -93,6 +93,9 @@ cd ..
rm -r -f ./zlib
echo " done!"
if [[ "$(uname -s)" == "Darwin" ]]; then
WITH_CURL="--with-curl=shared,/usr/local"
else
#curl
echo -n "[cURL] downloading $CURL_VERSION..."
wget https://github.com/bagder/curl/archive/$CURL_VERSION.tar.gz --no-check-certificate -q -O - | tar -zx >> "$DIR/install.log" 2>&1
@ -120,6 +123,8 @@ echo -n " cleaning..."
cd ..
rm -r -f ./curl
echo " done!"
WITH_CURL="--with-curl=\"$DIR/install_data/php/ext/curl\""
fi
#pthreads
echo -n "[PHP pthreads] downloading $PTHREADS_VERSION..."
@ -151,7 +156,7 @@ rm -f ./configure >> "$DIR/install.log" 2>&1
./buildconf --force >> "$DIR/install.log" 2>&1
./configure $OPTIMIZATION--prefix="$DIR/php5" \
--exec-prefix="$DIR/php5" \
--with-curl="$DIR/install_data/php/ext/curl" \
"$WITH_CURL" \
--with-zlib="$DIR/install_data/php/ext/zlib" \
"$HAVE_LIBEDIT" \
--disable-libxml \