~ubuntu-branches/ubuntu/oneiric/imagemagick/oneiric-updates

« back to all changes in this revision

Viewing changes to m4/ac_prog_perl_version.m4

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2011-06-15 11:05:28 UTC
  • mfrom: (6.2.11 sid)
  • Revision ID: james.westby@ubuntu.com-20110615110528-08jgo07a4846xh8d
Tags: 8:6.6.0.4-3ubuntu1
* Resynchronise with Debian (LP: #797595).  Remaining changes:
  - Make ufraw-batch (universe) a suggestion instead of a recommendation.
  - Make debian/rules install target depend on check; they cannot reliably
    be run in parallel.
  - Don't set MAKEFLAGS in debian/rules; just pass it to the build.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
3
dnl
 
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)
 
8
fi
 
9
 
 
10
# Check if version of Perl is sufficient
 
11
ac_perl_version="$1"
 
12
 
 
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
 
19
    AC_MSG_RESULT(no);
 
20
    $3
 
21
  else
 
22
    AC_MSG_RESULT(ok);
 
23
    $2
 
24
  fi
 
25
else
 
26
  AC_MSG_WARN(could not find perl)
 
27
fi
 
28
])dnl # AC_PROG_PERL_VERSION