1dnl 2dnl perl and some of its module are required to build some headers 3dnl 4 5AC_DEFUN([AC_KRB_PROG_PERL], 6[AC_CHECK_PROGS(PERL, perl, perl) 7if test "$PERL" = ""; then 8 AC_MSG_ERROR([perl not found - Cannot build Heimdal without perl]) 9fi 10]) 11 12AC_DEFUN([AC_KRB_PERL_MOD], 13[ 14AC_MSG_CHECKING([for Perl5 module $1]) 15if ! $PERL -M$1 -e 'exit(0);' >/dev/null 2>&1; then 16 AC_MSG_RESULT([no]) 17 AC_MSG_ERROR([perl module $1 not found - Cannot build Heimdal without perl module $1]) 18else 19 AC_MSG_RESULT([yes]) 20fi 21]) 22