1
dnl Available from the GNU Autoconf Macro Archive at:
2
dnl http://www.gnu.org/software/ac-archive/htmldoc/ac_prog_perl_version.html
4
AC_DEFUN([AC_PROG_PERL_VERSION],[dnl
5
# Make sure we have perl
6
if test -z "$PERL"; then
7
AC_CHECK_PROG(PERL,perl,perl)
10
# Check if version of Perl is sufficient
13
if test "x$PERL" != "x"; then
14
AC_MSG_CHECKING(for perl version greater than or equal to $ac_perl_version)
15
# NB: It would be nice to log the error if there is one, but we cannot rely
16
# on autoconf internals
17
$PERL -e "use $ac_perl_version;" > /dev/null 2>&1
18
if test $? -ne 0; then
26
AC_MSG_WARN(could not find perl)