--- Makefile.am.orig 2016-10-25 03:16:54.000000000 -0700
+++ Makefile.am 2016-10-25 03:21:48.000000000 -0700
d=`sed -n 's,/,-,g;s,.*\$$[D]ate: \(..........\).*,\1,p' $<`; \
| sed 's/^\.TH .*/.TH INKSCAPE 1 "'"$$d"'" "Inkscape-$(VERSION)" "Inkscape"/' \
- | perl -pe 'if (/^\[\% .*INCLUDE.*AUTHORS.* \%\]/) { open(FOO, "$(srcdir)/AUTHORS");$$_ = join(",\n", map { chomp; $$_ } <FOO>) . "\n"; }' \
- | perl $(srcdir)/fix-roff-punct \
+ | @@MP_PERL@@ -pe 'if (/^\[\% .*INCLUDE.*AUTHORS.* \%\]/) { open(FOO, "$(srcdir)/AUTHORS");$$_ = join(",\n", map { chomp; $$_ } <FOO>) . "\n"; }' \
+ | @@MP_PERL@@ $(srcdir)/fix-roff-punct \
# ut8-to-roff removed (groff now supports utf8).
-# | perl -CI $(srcdir)/utf8-to-roff \
+# | @@MP_PERL@@ -CI $(srcdir)/utf8-to-roff \
# man 7 groff_char for further remarks on charset encoding for man pages.
noinst_DATA = warn_markup
- @if perl $(srcdir)/po/check-markup $(srcdir)/po/*.po; [ $$? = 1 ]; then \
+ @if @@MP_PERL@@ $(srcdir)/po/check-markup $(srcdir)/po/*.po; [ $$? = 1 ]; then \
echo "WARNING: Bad markup found in translations. Please consider fixing the above problems." >&2; \
check_DATA = check_markup
- perl $(srcdir)/po/check-markup $(srcdir)/po/*.po || [ $$? = 127 ]
+ @@MP_PERL@@ $(srcdir)/po/check-markup $(srcdir)/po/*.po || [ $$? = 127 ]
# # `make check' probably shouldn't require perl to be installed, hence ignoring 127.
- perl $(srcdir)/po/check-markup $(srcdir)/po/*.po
+ @@MP_PERL@@ $(srcdir)/po/check-markup $(srcdir)/po/*.po
- perl $(srcdir)/po/check-markup $(srcdir)/po/bad.po.test 2>&1 \
+ if @@MP_PERL@@ -e 42; then \
+ @@MP_PERL@@ $(srcdir)/po/check-markup $(srcdir)/po/bad.po.test 2>&1 \
| diff $(srcdir)/po/bad.po.test.exp -; \