gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [gnurl] 20/205: configure: fix --with-zlib when a path is s


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 20/205: configure: fix --with-zlib when a path is specified
Date: Thu, 20 Apr 2017 16:19:20 +0200

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to annotated tag gnurl-7.54.0
in repository gnurl.

commit 6fc91f6d3af1d9976cdba8e6d757d56b1c8d3b54
Author: Greg Rowe <address@hidden>
AuthorDate: Sun Feb 26 17:39:12 2017 -0500

    configure: fix --with-zlib when a path is specified
    
    Prior to this change if you attempted to configure curl using
    --wtih-zlib and specified a path the path would be ignored if you also
    had pkg-config installed on your system.  This situation can easily
    arise when you are cross compiling.  This change moves the test for
    detecting zlib settings via pkg-config only if OPT_ZLIB is not set.
    
    Closes https://github.com/curl/curl/pull/1292
---
 configure.ac | 19 +++++++++----------
 1 file changed, 9 insertions(+), 10 deletions(-)

diff --git a/configure.ac b/configure.ac
index 5c77b0f4c..abd0def36 100644
--- a/configure.ac
+++ b/configure.ac
@@ -893,17 +893,16 @@ else
     OPT_ZLIB=""
   fi
 
-  CURL_CHECK_PKGCONFIG(zlib)
-
-  if test "$PKGCONFIG" != "no" ; then
-    LIBS="`$PKGCONFIG --libs-only-l zlib` $LIBS"
-    LDFLAGS="`$PKGCONFIG --libs-only-L zlib` $LDFLAGS"
-    CPPFLAGS="`$PKGCONFIG --cflags-only-I zlib` $CPPFLAGS"
-    OPT_ZLIB=""
-    HAVE_LIBZ="1"
-  fi
-
   if test -z "$OPT_ZLIB" ; then
+    CURL_CHECK_PKGCONFIG(zlib)
+
+    if test "$PKGCONFIG" != "no" ; then
+      LIBS="`$PKGCONFIG --libs-only-l zlib` $LIBS"
+      LDFLAGS="`$PKGCONFIG --libs-only-L zlib` $LDFLAGS"
+      CPPFLAGS="`$PKGCONFIG --cflags-only-I zlib` $CPPFLAGS"
+      OPT_ZLIB=""
+      HAVE_LIBZ="1"
+    fi
 
     if test -z "$HAVE_LIBZ"; then
 

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

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