Skip to contentSkip to conversation

configure: Fix pkg_config --exists parameter

PATCH In review Liran Alon 3 participants 3 messages Mar 4, 2020

lore
Share & tools
lore

Liran Alon

author
#0 lore raw

PATCH 1/1 configure: Fix pkg_config --exists parameter

pkg_config parameter should be "--exists", not "--exist". This is probably a typo.

Fixes 3a67848134d0 ("configure: Enable test and libs for zstd")
---
 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
configure +1 -1
index 50c4d96e2a8c..280f3654f786 100755
@@ -2464,7 +2464,7 @@ fi
 # zstd check
 
 if test "$zstd" != "no" ; then
-    if $pkg_config --exist libzstd ; then
+    if $pkg_config --exists libzstd ; then
         zstd_cflags="$($pkg_config --cflags libzstd)"
         zstd_libs="$($pkg_config --libs libzstd)"
         LIBS="$zstd_libs $LIBS"
Signature · 1 line
2.20.1
#1 lore raw
Quoted 6 lines · * Liran Alon ([email protected]) wrote:

pkg_config parameter should be "--exists", not "--exist". This is probably a typo.

Fixes 3a67848134d0 ("configure: Enable test and libs for zstd")

That's the same as [email protected] from Denis yesterday.

Dave

Quoted 20 lines
---
 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
configure +1 -1
index 50c4d96e2a8c..280f3654f786 100755
@@ -2464,7 +2464,7 @@ fi
 # zstd check
 
 if test "$zstd" != "no" ; then
-    if $pkg_config --exist libzstd ; then
+    if $pkg_config --exists libzstd ; then
         zstd_cflags="$($pkg_config --cflags libzstd)"
         zstd_libs="$($pkg_config --libs libzstd)"
         LIBS="$zstd_libs $LIBS"
Signature · 1 line
2.20.1

--
Dr. David Alan Gilbert / [email protected] / Manchester, UK

#2 lore raw
Quoted 10 lines · Dr. David Alan Gilbert
Quoted 6 lines · * Liran Alon ([email protected]) wrote:

pkg_config parameter should be "--exists", not "--exist". This is probably a typo.

Fixes 3a67848134d0 ("configure: Enable test and libs for zstd")

That's the same as [email protected] from Denis yesterday.

And Alex 2 days ago:
https://www.mail-archive.com/[email protected]/msg684754.html

Quoted 27 lines

Dave

Quoted 20 lines
---
  configure | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
configure +1 -1
index 50c4d96e2a8c..280f3654f786 100755
@@ -2464,7 +2464,7 @@ fi
  # zstd check
 
  if test "$zstd" != "no" ; then
-    if $pkg_config --exist libzstd ; then
+    if $pkg_config --exists libzstd ; then
          zstd_cflags="$($pkg_config --cflags libzstd)"
          zstd_libs="$($pkg_config --libs libzstd)"
          LIBS="$zstd_libs $LIBS"
Signature · 1 line
2.20.1

--
Dr. David Alan Gilbert / [email protected] / Manchester, UK