dnl We use a path for perl so the #! line in autoscan will work. AC_DEFUN([AX_PROG_PERL],[ AC_PATH_PROG([PERL], perl, no) AC_SUBST([PERL])dnl if test "$PERL" = no; then AC_MSG_ERROR([perl is not found]) fi AC_MSG_CHECKING(for perl version >= $1) if `$PERL -e 'require $1;' >> /dev/null 2>&1` ; then AC_MSG_RESULT(yes) else AC_MSG_ERROR([Perl $1 or better is required]) fi AC_PROVIDE([$0]) ]) dnl should be called after AX_PROG_PERL AC_DEFUN([AX_PERL_MOD_LOG4PERL],[ if ! `$PERL -MLog::Log4perl -e 1 > /dev/null 2>&1` ; then AC_MSG_ERROR([Could not import perl Log::Log4perl module. Make sure it is installed in a directory that is on your default or PERL5LIB path]) fi if ! `$PERL -MLog::Dispatch -e 1 > /dev/null 2>&1` ; then AC_MSG_ERROR([Could not import perl Log::Dispatch module. Make sure it is installed in a directory that is on your default or PERL5LIB path]) fi AC_PROVIDE([$0]) ]) dnl should be called after AX_PROG_PERL AC_DEFUN([AX_PERL_MOD_EXCEPTION_CLASS],[ if ! `$PERL -MException::Class -e 1 > /dev/null 2>&1` ; then AC_MSG_ERROR([Could not import perl Exception::Class module. Make sure it is installed in a directory that is on your default or PERL5LIB path]) fi AC_PROVIDE([$0]) ]) dnl should be called after AX_PROG_PERL AC_DEFUN([AX_PERL_MOD_MATH_RANDOM],[ if ! `$PERL -MMath::Random -e 1 > /dev/null 2>&1` ; then AC_MSG_ERROR([Could not import perl Math::Random module. Make sure it is installed in a directory that is on your default or PERL5LIB path]) fi AC_PROVIDE([$0]) ]) dnl should be called after AX_PROG_PERL AC_DEFUN([AX_PERL_MOD_SVG],[ if ! `$PERL -MSVG -e 1 > /dev/null 2>&1` ; then AC_MSG_ERROR([Could not import perl SVG module. Make sure it is installed in a directory that is on your default or PERL5LIB path]) fi AC_PROVIDE([$0]) ])