From d9bfe26af1de625f8dfc3e5a009625c5becab1ef Mon Sep 17 00:00:00 2001 From: Ben Rexin Date: Tue, 29 Jan 2019 18:14:30 +0100 Subject: [PATCH] feat: detect iconv --- bin/install | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bin/install b/bin/install index 96511af..b5eac00 100755 --- a/bin/install +++ b/bin/install @@ -89,6 +89,7 @@ os_based_configure_options() { local libxml2_path=$(homebrew_package_path libxml2) local zlib_path=$(homebrew_package_path zlib) local readline_path=$(homebrew_package_path readline) + local iconv_path=$(homebrew_package_path libiconv) if [ "$freetype_path" = "" ]; then export ASDF_PKG_MISSING="freetype" @@ -145,6 +146,12 @@ os_based_configure_options() { if [ "$readline_path" != "" ]; then configure_options="$configure_options --with-readline=$readline_path" fi + + if [ "$iconv_path" != "" ]; then + configure_options="$configure_options --with-iconv=$iconv_path" + else + configure_options="$configure_options --without-iconv" + fi else local jpeg_path=$(locate libjpeg.so | head -n 1) local libpng_path=$(locate libpng.so | head -n 1)