summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorbwarken <bwarken>2013-04-14 23:11:00 +0000
committerbwarken <bwarken>2013-04-14 23:11:00 +0000
commit198e557c5586aeb2e1ffe06e7db1c974950d470c (patch)
tree4adb416fbe8a8d2b3277bea348b159c283d94bf8 /m4
parent4d34b89d2b6d79e8e158e0b6315e6051f78cda69 (diff)
downloadgroff-198e557c5586aeb2e1ffe06e7db1c974950d470c.tar.gz
Add Perl test to the configuration.
Diffstat (limited to 'm4')
-rw-r--r--m4/groff.m415
1 files changed, 14 insertions, 1 deletions
diff --git a/m4/groff.m4 b/m4/groff.m4
index cf105b2f..6f751ffd 100644
--- a/m4/groff.m4
+++ b/m4/groff.m4
@@ -2,7 +2,7 @@
# Copyright (C) 1989-1995, 2001-2007, 2009, 2011, 2013
# Free Software Foundation, Inc.
#
-# Last update: 28 Mar 2013
+# Last update: 14 Apr 2013
#
# This file is part of groff.
#
@@ -58,6 +58,19 @@ AC_DEFUN([GROFF_PRINT],
AC_DEFUN([GROFF_PROG_YACC],
[AC_CHECK_PROGS([YACC], [byacc 'bison -y'], [yacc])])
+
+# We need Perl 5.6.1 or newer.
+
+AC_DEFUN([GROFF_PERL],
+ [PERLVERSION=v5.6.1
+ AC_PATH_PROG([PERL], [perl], [no])
+ if test "$PERL" = "no"; then
+ AC_MSG_ERROR([perl binary not found], 1)
+ fi
+ AX_PROG_PERL_VERSION([$PERLVERSION], PERLPATH=$PERL, \
+ AC_MSG_ERROR([perl version is too old], 1))])
+
+
# We need makeinfo 4.8 or newer.
AC_DEFUN([GROFF_MAKEINFO],