mirror of
https://github.com/jlengrand/asdf-php.git
synced 2026-03-10 08:01:22 +00:00
Merge pull request #4 from j-dexx/add_jpeg_png_for_linux
Add jpeg and png for linux
This commit is contained in:
14
bin/install
14
bin/install
@@ -146,7 +146,21 @@ os_based_configure_options() {
|
||||
configure_options="$configure_options --with-readline=$readline_path"
|
||||
fi
|
||||
else
|
||||
local jpeg_path=$(locate libjpeg.so | head -n 1)
|
||||
local libpng_path=$(locate libpng.so | head -n 1)
|
||||
configure_options="--with-openssl --with-curl --with-zlib --with-readline --with-gettext"
|
||||
|
||||
if [ "$jpeg_path" = "" ]; then
|
||||
export ASDF_PKG_MISSING="$ASDF_PKG_MISSING jpeg"
|
||||
else
|
||||
configure_options="$configure_options --with-jpeg-dir=$jpeg_path"
|
||||
fi
|
||||
|
||||
if [ "$libpng_path" = "" ]; then
|
||||
export ASDF_PKG_MISSING="$ASDF_PKG_MISSING libpng"
|
||||
else
|
||||
configure_options="$configure_options --with-png-dir=$libpng_path"
|
||||
fi
|
||||
fi
|
||||
|
||||
echo $configure_options
|
||||
|
||||
Reference in New Issue
Block a user