Add a few more safety catches to the mkrelease.sh script.
[jelmer/samba4-debian.git] / source / build / m4 / check_perl.m4
1 dnl SMB Build Environment Perl Checks
2 dnl -------------------------------------------------------
3 dnl  Copyright (C) Stefan (metze) Metzmacher 2004
4 dnl  Released under the GNU GPL
5 dnl -------------------------------------------------------
6 dnl
7
8 case "$host_os" in
9         *irix*)
10                 # On IRIX, we prefer Freeware or Nekoware Perl, because the
11                 # system perl is so ancient.
12                 AC_PATH_PROG(PERL, perl, "", "/usr/freeware/bin:/usr/nekoware/bin:$PATH")
13                 ;;
14         *)
15                 AC_PATH_PROG(PERL, perl)
16                 ;;
17 esac
18
19 if test x"$PERL" = x""; then
20         AC_MSG_WARN([No version of perl was found!])
21         AC_MSG_ERROR([Please install perl from http://www.perl.com/])
22 fi
23 if test x"$debug" = x"yes";then
24         PERL="$PERL -W"
25 fi
26 export PERL
27
28 AC_PATH_PROG(YAPP, yapp, false)