summaryrefslogtreecommitdiffstats
path: root/gs-check.patch
diff options
context:
space:
mode:
Diffstat (limited to 'gs-check.patch')
-rw-r--r--gs-check.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/gs-check.patch b/gs-check.patch
new file mode 100644
index 0000000..4fb8ae8
--- /dev/null
+++ b/gs-check.patch
@@ -0,0 +1,36 @@
+From 2b491ae699870d3dcc047a529b1a69ad59792dd5 Mon Sep 17 00:00:00 2001
+From: Remi Collet <remi@remirepo.net>
+Date: Sat, 15 Mar 2025 07:58:43 +0100
+Subject: [PATCH] try pngalpha if png16malpha not available
+
+---
+ configure | 6 ++++--
+ configure.ac | 2 ++
+ 2 files changed, 6 insertions(+), 2 deletions(-)
+
+diff --git a/configure b/configure
+index e24752caa..ec13f0daf 100755
+--- a/configure
++++ b/configure
+@@ -38027,6 +38027,8 @@ printf "%s\n" "$GSColorDevice" >&6; }
+ printf %s "checking for gs alpha device... " >&6; }
+ if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
+ :
++ elif $PSDelegate -q -dBATCH -sDEVICE=pngalpha -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
++ GSAlphaDevice=pngalpha
+ else
+ GSAlphaDevice=$GSColorDevice
+ fi
+diff --git a/configure.ac b/configure.ac
+index 5f990f3f2..c37d12ab9 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -3644,6 +3644,8 @@ if test $have_gs = 'yes'; then
+ AC_MSG_CHECKING([for gs alpha device])
+ if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 1>&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD; then
+ :
++ elif $PSDelegate -q -dBATCH -sDEVICE=pngalpha -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
++ GSAlphaDevice=pngalpha
+ else
+ GSAlphaDevice=$GSColorDevice
+ fi