summaryrefslogtreecommitdiff
path: root/source4/build/m4/check_perl.m4
diff options
context:
space:
mode:
Diffstat (limited to 'source4/build/m4/check_perl.m4')
-rw-r--r--source4/build/m4/check_perl.m416
1 files changed, 10 insertions, 6 deletions
diff --git a/source4/build/m4/check_perl.m4 b/source4/build/m4/check_perl.m4
index 82ca242499..aaec9cf950 100644
--- a/source4/build/m4/check_perl.m4
+++ b/source4/build/m4/check_perl.m4
@@ -5,6 +5,8 @@ dnl Released under the GNU GPL
dnl -------------------------------------------------------
dnl
+AC_DEFUN([AC_SAMBA_PERL],
+[
case "$host_os" in
*irix*)
# On IRIX, we prefer Freeware or Nekoware Perl, because the
@@ -18,11 +20,13 @@ esac
if test x"$PERL" = x""; then
AC_MSG_WARN([No version of perl was found!])
- AC_MSG_ERROR([Please install perl from http://www.perl.com/])
+ $2
+else
+ if test x"$debug" = x"yes";then
+ PERL="$PERL -W"
+ fi
+ export PERL
+ $1
fi
-if test x"$debug" = x"yes";then
- PERL="$PERL -W"
-fi
-export PERL
+])
-AC_PATH_PROG(YAPP, yapp, false)