summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorBernd Warken <groff-bernd.warken-72@web.de>2013-04-14 23:11:10 +0000
committerBernd Warken <groff-bernd.warken-72@web.de>2013-04-14 23:11:10 +0000
commitf43bed3a1d21b7b32d7acfa1f03539e9674fe542 (patch)
tree2c454f49ae1995e3d0fe8694a085a4896d16408e /m4
parent89e5440aabef1b10dd423a3e3bc0d6da636f9cc2 (diff)
downloadgroff-git-f43bed3a1d21b7b32d7acfa1f03539e9674fe542.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 cf105b2f1..6f751ffd0 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],