summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2021-01-03 10:32:16 +0100
committerRicardo Wurmus <rekado@elephly.net>2021-01-03 10:32:16 +0100
commita14995b78f7b49da0b9ab664920a4dc5aee24ab8 (patch)
tree9112372f50361bd951fbc1e7006e0051c2d4b74d
parentbf4600bd68af9ab3163253ccb6429fb681753cbc (diff)
Use rsvg-convert instead of ImageMagick's convert.
-rw-r--r--Makefile.am2
-rw-r--r--configure.ac3
2 files changed, 4 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 587c51c..4cad904 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -45,7 +45,7 @@ dist_infoimage_DATA = \
$(top_srcdir)/build-aux/generate-images.scm $(abs_top_srcdir)/$<
%.svg.scm.png: %.svg.scm.svg
- convert $< $@
+ $(RSVG_CONVERT) -o $@ $<
# We cannot add new dependencies to `%D%/picture-language.pdf' &
# co. (info "(automake) Extending"). Using the `-local' rules is
diff --git a/configure.ac b/configure.ac
index 6617114..7deede7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -31,6 +31,9 @@ if test "x$GUILD" = "x"; then
AC_MSG_ERROR(['guild' binary not found; please check your Guile installation.])
fi
+GUILE_MODULE_REQUIRED(rsvg)
+AC_PATH_PROG([RSVG_CONVERT], [rsvg-convert])
+
AC_CONFIG_FILES([Makefile])
AC_CONFIG_FILES([env], [chmod +x env])
AC_OUTPUT