diff --git a/bin/install b/bin/install index c40be12..7537d42 100755 --- a/bin/install +++ b/bin/install @@ -342,6 +342,9 @@ os_based_configure_options() { else local jpeg_path=$(locate libjpeg.so | awk '{ print length(), $0 | "sort -n" }' | cut -d" " -f2- | head -n 1) local libpng_path=$(locate libpng.so | awk '{ print length(), $0 | "sort -n" }' | cut -d" " -f2- | head -n 1) + local libgmp_path=$(locate libgmp.so | awk '{ print length(), $0 | "sort -n" }' | cut -d" " -f2- | head -n 1) + local libsodium_path=$(locate libsodium.so | awk '{ print length(), $0 | "sort -n" }' | cut -d" " -f2- | head -n 1) + configure_options="--with-openssl --with-curl --with-zlib --with-readline --with-gettext" if [ "$jpeg_path" = "" ]; then @@ -355,6 +358,18 @@ os_based_configure_options() { else configure_options="$configure_options --with-png-dir=$libpng_path --with-png" fi + + if [ "$libgmp_path" = "" ]; then + export ASDF_PKG_MISSING="$ASDF_PKG_MISSING libgmp" + else + configure_options="$configure_options --with-gmp-dir=$libgmp_path --with-gmp" + fi + + if [ "$libsodium_path" = "" ]; then + export ASDF_PKG_MISSING="$ASDF_PKG_MISSING libsodium" + else + configure_options="$configure_options --with-sodium-dir=$libsodium_path --with-sodium" + fi fi echo $configure_options