diff options
author | Christoph Reiter <creiter@src.gnome.org> | 2019-06-14 16:56:49 +0200 |
---|---|---|
committer | Christoph Reiter <reiter.christoph@gmail.com> | 2019-06-15 08:59:55 +0200 |
commit | 22bb5d19682f5aee5be183a0a9b0c66fefc5e510 (patch) | |
tree | 4e401d3171b6088cc0b07ac7713afabfecb23269 | |
parent | 8d86ddea7fb3aa9a27a4fdfec69b139acf8790da (diff) | |
download | gtk+-22bb5d19682f5aee5be183a0a9b0c66fefc5e510.tar.gz |
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.
-rw-r--r-- | configure.ac | 2 |
1 files changed, 1 insertions, 1 deletions
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}'` |