summaryrefslogtreecommitdiffstats
path: root/third_party/heimdal/cf/krb-prog-perl.m4
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-05 17:47:29 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-05 17:47:29 +0000
commit4f5791ebd03eaec1c7da0865a383175b05102712 (patch)
tree8ce7b00f7a76baa386372422adebbe64510812d4 /third_party/heimdal/cf/krb-prog-perl.m4
parentInitial commit. (diff)
downloadsamba-4f5791ebd03eaec1c7da0865a383175b05102712.tar.xz
samba-4f5791ebd03eaec1c7da0865a383175b05102712.zip
Adding upstream version 2:4.17.12+dfsg.upstream/2%4.17.12+dfsgupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--third_party/heimdal/cf/krb-prog-perl.m421
1 files changed, 21 insertions, 0 deletions
diff --git a/third_party/heimdal/cf/krb-prog-perl.m4 b/third_party/heimdal/cf/krb-prog-perl.m4
new file mode 100644
index 0000000..b359111
--- /dev/null
+++ b/third_party/heimdal/cf/krb-prog-perl.m4
@@ -0,0 +1,21 @@
+dnl
+dnl perl and some of its module are required to build some headers
+dnl
+
+AC_DEFUN([AC_KRB_PROG_PERL],
+[AC_CHECK_PROGS(PERL, perl, perl)
+if test "$PERL" = ""; then
+ AC_MSG_ERROR([perl not found - Cannot build Heimdal without perl])
+fi
+])
+
+AC_DEFUN([AC_KRB_PERL_MOD],
+[
+AC_MSG_CHECKING([for Perl5 module $1])
+if ! $PERL -M$1 -e 'exit(0);' >/dev/null 2>&1; then
+ AC_MSG_RESULT([no])
+ AC_MSG_ERROR([perl module $1 not found - Cannot build Heimdal without perl module $1])
+else
+ AC_MSG_RESULT([yes])
+fi
+])