]> granicus.if.org Git - graphviz/commitdiff
fix: pstopdf support in the Autotools build system
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 26 Sep 2020 01:51:44 +0000 (18:51 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 2 Oct 2020 14:01:50 +0000 (07:01 -0700)
pstopdf can now be used as a substitute for ps2pdf when using the Autotools
build system. This commit adapts a downstream packaging tweak from Homebrew [0]
commit f231dcfd69a290c8a289bccd8cfc9aa9b8dc5472, that now works correctly as of
the previous commit. Related to #1763.

  [0]: https://github.com/Homebrew/homebrew-core

configure.ac

index 5e99e2b6a6aad508c4a3597e6fcd27ae4f872072..cfd98f4c0a33019cdfa0dbbe1a610a2349190486 100644 (file)
@@ -284,8 +284,7 @@ AC_CHECK_PROGS(SORT,gsort sort,false)
 
 AC_CHECK_PROG(EGREP,egrep,egrep,false)
 AC_CHECK_PROG(GROFF,groff,groff,false)
-AC_CHECK_PROG(PS2PDF,ps2pdf,ps2pdf,false)
-AC_CHECK_PROG(PS2PDF,pstopdf,pstopdf,false)
+AC_CHECK_PROGS(PS2PDF,ps2pdf pstopdf,false)
 AM_CONDITIONAL(HAVE_PS2PDF,[test "x$PS2PDF" != xfalse])
 
 PKG_PROG_PKG_CONFIG