Skip to content

Commit d955e1e

Browse files
authored
Merge pull request #15 from renatodarrigo/patch-1
Update install to include gmp + sodium when not using homebrew
2 parents 90b3521 + e7acd5f commit d955e1e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

bin/install

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,8 @@ os_based_configure_options() {
274274
else
275275
local jpeg_path=$(locate libjpeg.so | awk '{ print length(), $0 | "sort -n" }' | cut -d" " -f2- | head -n 1)
276276
local libpng_path=$(locate libpng.so | awk '{ print length(), $0 | "sort -n" }' | cut -d" " -f2- | head -n 1)
277+
local libgmp_path=$(locate libgmp.so | awk '{ print length(), $0 | "sort -n" }' | cut -d" " -f2- | head -n 1)
278+
local libsodium_path=$(locate libsodium.so | awk '{ print length(), $0 | "sort -n" }' | cut -d" " -f2- | head -n 1)
277279
configure_options="--with-openssl --with-curl --with-zlib --with-readline --with-gettext --with-xsl"
278280

279281
if [ -n "$jpeg_path" ]; then
@@ -283,6 +285,14 @@ os_based_configure_options() {
283285
if [ -n "$libpng_path" ]; then
284286
configure_options="$configure_options --with-png-dir=$libpng_path --with-png"
285287
fi
288+
289+
if [ -n "$libgmp_path" ]; then
290+
configure_options="$configure_options --with-gmp"
291+
fi
292+
293+
if [ -n "$libsodium_path" ]; then
294+
configure_options="$configure_options --with-sodium"
295+
fi
286296
fi
287297

288298
echo $configure_options

0 commit comments

Comments
 (0)