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..8c3c952
--- /dev/null
+++ b/gs-check.patch
@@ -0,0 +1,36 @@
+From b98315e78285d04c7e6332319782042a9d3f1c53 Mon Sep 17 00:00:00 2001
+From: Remi Collet <remi@remirepo.net>
+Date: Sat, 15 Mar 2025 07:32:11 +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 226fac1eca4..5ade160a93a 100755
+--- a/configure
++++ b/configure
+@@ -38796,6 +38796,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 a748b11d150..d672943e1eb 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -3864,6 +3864,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>&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD; then
++ GSAlphaDevice=pngalpha
+ else
+ GSAlphaDevice=$GSColorDevice
+ fi