1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00
samba-mirror/m4/check_perl.m4

33 lines
680 B
Plaintext
Raw Normal View History

dnl SMB Build Environment Perl Checks
dnl -------------------------------------------------------
dnl Copyright (C) Stefan (metze) Metzmacher 2004
dnl Released under the GNU GPL
dnl -------------------------------------------------------
dnl
2008-10-15 00:27:07 +04:00
AC_DEFUN([AC_SAMBA_PERL],
[
case "$host_os" in
*irix*)
# On IRIX, we prefer Freeware or Nekoware Perl, because the
# system perl is so ancient.
AC_PATH_PROG(PERL, perl, "", "/usr/freeware/bin:/usr/nekoware/bin:$PATH")
;;
*)
AC_PATH_PROG(PERL, perl)
;;
esac
if test x"$PERL" = x""; then
AC_MSG_WARN([No version of perl was found!])
2008-10-15 00:27:07 +04:00
$2
else
if test x"$debug" = x"yes";then
PERL="$PERL -W"
fi
export PERL
$1
fi
2008-10-15 00:27:07 +04:00
])