gnuastro-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnuastro-commits] master 4c9eb68: Zlib check added before libcurl for s


From: Mohammad Akhlaghi
Subject: [gnuastro-commits] master 4c9eb68: Zlib check added before libcurl for static builds
Date: Mon, 12 Nov 2018 14:56:39 -0500 (EST)

branch: master
commit 4c9eb685958f4180ed7481bf14d7b51bbc97429a
Author: Mohammad Akhlaghi <address@hidden>
Commit: Mohammad Akhlaghi <address@hidden>

    Zlib check added before libcurl for static builds
    
    When building statically, libcurl depends on linking with Zlib. To allow
    for such senarios, we thus need to add the `-lz' flag to the list of `LIBS'
    before we check for libcurl. This won't cause a problem in other scenarios,
    and Zlib isn't an optional or mandatory dependency of Gnuastro.
---
 configure.ac | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/configure.ac b/configure.ac
index f8e9530..b2ca04e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -274,6 +274,10 @@ AC_SEARCH_LIBS([gsl_integration_qng], [gsl], [],
 # doesn't exist on the system, then CFITSIO won't link with it and there is
 # no problem for Gnuastro either. So there is no need to stop the configure
 # script if libcurl isn't found.
+#
+# For static builds, libcurl depends on linking with zlib. So we'll need to
+# also search for that.
+AC_SEARCH_LIBS([deflateInit_], [z], [], [])
 AC_SEARCH_LIBS([curl_global_init], [curl], [], [])
 AC_SEARCH_LIBS([ffopen], [cfitsio], [],
                [missing_mandatory=yes; has_cfitsio=no])



reply via email to

[Prev in Thread] Current Thread [Next in Thread]