texlive[46783] Build/source/texk/dvisvgm: ensure numeric values for

commits+karl at tug.org commits+karl at tug.org
Fri Mar 2 04:40:01 CET 2018


Revision: 46783
          http://tug.org/svn/texlive?view=revision&revision=46783
Author:   karl
Date:     2018-03-02 04:40:00 +0100 (Fri, 02 Mar 2018)
Log Message:
-----------
ensure numeric values for numeric tests

Modified Paths:
--------------
    trunk/Build/source/texk/dvisvgm/ChangeLog
    trunk/Build/source/texk/dvisvgm/configure
    trunk/Build/source/texk/dvisvgm/configure.ac

Modified: trunk/Build/source/texk/dvisvgm/ChangeLog
===================================================================
--- trunk/Build/source/texk/dvisvgm/ChangeLog	2018-03-02 01:23:00 UTC (rev 46782)
+++ trunk/Build/source/texk/dvisvgm/ChangeLog	2018-03-02 03:40:00 UTC (rev 46783)
@@ -1,3 +1,8 @@
+2018-03-01  Karl Berry  <karl at freefriends.org>
+
+	* configure.ac (HAVE_LIBGS, gsversion): don't assume numeric values.
+	Report from Mojca, tlbuild 1 Mar 2018 00:51:37.
+
 2018-02-21  Akira Kakuto  <kakuto at fuk.kindai.ac.jp>
 
 	* Import 2.3.3.

Modified: trunk/Build/source/texk/dvisvgm/configure
===================================================================
--- trunk/Build/source/texk/dvisvgm/configure	2018-03-02 01:23:00 UTC (rev 46782)
+++ trunk/Build/source/texk/dvisvgm/configure	2018-03-02 03:40:00 UTC (rev 46783)
@@ -21924,7 +21924,9 @@
 fi
 fi
 
-if test "$HAVE_LIBGS" -eq 0; then
+if test -z "$HAVE_LIBGS" || test "$HAVE_LIBGS" -eq 0; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: not linking to libgs, trying to arrange for dynamic loading" >&5
+$as_echo "$as_me: not linking to libgs, trying to arrange for dynamic loading" >&6;}
   # Windows (native or MinGW32) has neither <dlfcn.h> nor dlopen().
   if test "x$kpse_cv_have_win32" = xno; then
     # FreeBSD neither has nor requires libdl.
@@ -22043,7 +22045,7 @@
 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$gsversion\"" >&5
 $as_echo "\"$gsversion\"" >&6; }
 	rm -f gsversion
-	if test "$gsversion" -lt 831; then
+	if test -z "$gsversion" || "$gsversion" -lt 831; then
 		# current Ghostscript API was introduced in version 8.31
 		# older versions are not supported
 

Modified: trunk/Build/source/texk/dvisvgm/configure.ac
===================================================================
--- trunk/Build/source/texk/dvisvgm/configure.ac	2018-03-02 01:23:00 UTC (rev 46782)
+++ trunk/Build/source/texk/dvisvgm/configure.ac	2018-03-02 03:40:00 UTC (rev 46783)
@@ -70,7 +70,8 @@
 		[AC_MSG_WARN(PostScript support disabled)])])
 fi
 
-if test "$HAVE_LIBGS" -eq 0; then
+if test -z "$HAVE_LIBGS" || test "$HAVE_LIBGS" -eq 0; then
+  AC_MSG_NOTICE([not linking to libgs, trying to arrange for dynamic loading])
   # Windows (native or MinGW32) has neither <dlfcn.h> nor dlopen().
   if test "x$kpse_cv_have_win32" = xno; then
     # FreeBSD neither has nor requires libdl.
@@ -105,7 +106,7 @@
 		[gsversion=`cat gsversion`], [gsversion=], [gsversion=unknown])
 	AC_MSG_RESULT("$gsversion")
 	rm -f gsversion
-	if test "$gsversion" -lt 831; then
+	if test -z "$gsversion" || "$gsversion" -lt 831; then
 		# current Ghostscript API was introduced in version 8.31
 		# older versions are not supported
 		AC_DEFINE(DISABLE_GS, 1, [Set to 1 if PostScript support should be disabled])



More information about the tex-live-commits mailing list