[gtk/gtk-3-24: 1/2] build: use --version instead of --api-version for cups-config



commit 22bb5d19682f5aee5be183a0a9b0c66fefc5e510
Author: Christoph Reiter <creiter src gnome org>
Date:   Fri Jun 14 16:56:49 2019 +0200

    build: use --version instead of --api-version for cups-config
    
    --api-version returns 1.6 with cups 2.1.0 which breaks the build on
    older macOS.
    
    Looking at the upstream git history the value is hardcoded and only randomly
    updated as part of cleanup commits, so it looks like it shouldn't be used.
    
    Just use --version instead which gives us the real cups version.

 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/configure.ac b/configure.ac
index 323ca92125..1f3600bb0c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1525,7 +1525,7 @@ else
     CUPS_CFLAGS=`$CUPS_CONFIG --cflags | sed 's/-O[0-9]*//' | sed 's/-m[^\t]*//g'`
     CUPS_LIBS=`$CUPS_CONFIG --libs`
 
-    CUPS_API_VERSION=`$CUPS_CONFIG --api-version`
+    CUPS_API_VERSION=`$CUPS_CONFIG --version`
     CUPS_API_MAJOR=`echo $ECHO_N $CUPS_API_VERSION | awk -F. '{print $1}'`
     CUPS_API_MINOR=`echo $ECHO_N $CUPS_API_VERSION | awk -F. '{print $2}'`
 


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