• R/O
  • SSH

GM: Commit

Main GraphicsMagick source repository


Commit MetaInfo

Révision8c2e5a3c27023c2644df083f13a06498679ee347 (tree)
l'heure2022-07-30 17:06:02
AuteurSam James <sam@gent...>
CommiterSam James

Message de Log

configure: fix bashism

configure scripts need to be runnable with a POSIX-compliant /bin/sh.

On many (but not all!) systems, /bin/sh is provided by Bash, so errors
like this aren't spotted. Notably Debian defaults to /bin/sh provided
by dash which doesn't tolerate such bashisms as '=='.

This retains compatibility with bash.

Fixes configure warnings/errors like:

checking for gs... /usr/sbin/gs
./configure: 31719: test: #: unexpected operator
checking for Windows fonts directory (location of arial.ttf)... /usr/share/fonts/corefonts/

Change Summary

Modification

diff -r 0a06f497d588 -r 8c2e5a3c2702 ChangeLog
--- a/ChangeLog Wed Jul 27 18:26:42 2022 -0500
+++ b/ChangeLog Sat Jul 30 09:06:02 2022 +0100
@@ -1,3 +1,7 @@
1+2022-07-30 Sam James <sam@gentoo.org>
2+
3+ * configure.ac: Fix Bashism in maintainer-mode check.
4+
15 2022-07-27 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
26
37 * coders/miff.c (ImportRLEPixels): Add missing type cast for
diff -r 0a06f497d588 -r 8c2e5a3c2702 configure.ac
--- a/configure.ac Wed Jul 27 18:26:42 2022 -0500
+++ b/configure.ac Sat Jul 30 09:06:02 2022 +0100
@@ -3148,7 +3148,7 @@
31483148 AM_CONDITIONAL([HasPSDelegate],[test "$have_gs" = 'yes'])
31493149
31503150 # Tests for programs only used while in maintainer mode
3151-if test "$MAINT" == '' ; then
3151+if test "$MAINT" = '' ; then
31523152 # Test for optional rst2html.py utility and define automake conditional HasRST2HTML if found.
31533153 AC_CHECK_PROGS([RST2HTML],[rst2html.py rst2html])
31543154
Afficher sur ancien navigateur de dépôt.