summaryrefslogtreecommitdiff
path: root/source4/build/smb_build/check_perl.m4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2004-06-01 15:13:27 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:56:24 -0500
commit9318fdbb3346da0374ab859055ea399dff86a861 (patch)
treeafd9d22a52e44edd2ab124e4831cff6d39dd0652 /source4/build/smb_build/check_perl.m4
parent63990406aef0118d459b27e89b92f4d31c7a12fd (diff)
downloadsamba-9318fdbb3346da0374ab859055ea399dff86a861.tar.gz
samba-9318fdbb3346da0374ab859055ea399dff86a861.tar.bz2
samba-9318fdbb3346da0374ab859055ea399dff86a861.zip
r967: move some configure checks to seperate files
metze (This used to be commit 2d109074e8be712a6eb0cfc76439176e3dcdee3a)
Diffstat (limited to 'source4/build/smb_build/check_perl.m4')
-rw-r--r--source4/build/smb_build/check_perl.m428
1 files changed, 28 insertions, 0 deletions
diff --git a/source4/build/smb_build/check_perl.m4 b/source4/build/smb_build/check_perl.m4
new file mode 100644
index 0000000000..ff43650b3e
--- /dev/null
+++ b/source4/build/smb_build/check_perl.m4
@@ -0,0 +1,28 @@
+dnl SMB Build Environment Perl Checks
+dnl -------------------------------------------------------
+dnl Copyright (C) Stefan (metze) Metzmacher 2004
+dnl Released under the GNU GPL
+dnl -------------------------------------------------------
+dnl
+dnl _SMB_BUILD_CHECK_PERL(
+dnl 1:dummy
+dnl )
+
+dnl #######################################################
+dnl ### And now the implementation ###
+dnl #######################################################
+
+dnl _SMB_BUILD_CHECK_PERL(
+dnl 1:dummy
+dnl )
+AC_DEFUN([_SMB_BUILD_CHECK_PERL],
+[
+ AC_PATH_PROG(PERL, perl)
+ if test x"$PERL" = x""; then
+ AC_MSG_WARN([No version of perl was not found!])
+ AC_MSG_ERROR([Please Install perl from http://www.perl.com/])
+ fi
+ if test x"$debug" = x"yes";then
+ PERL="$PERL -W"
+ fi
+])