We're going to start checking for perl modules to avoid build bustage down the road. For now, disable jar packaging if we do not have the required modules.

This commit is contained in:
cls%seawood.org 2000-09-21 07:14:29 +00:00
parent d87117c770
commit c65990b115
2 changed files with 388 additions and 365 deletions

742
configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -303,6 +303,17 @@ if test "$_perl_res" != 0; then
AC_MSG_ERROR([Perl $PERL_VERSION or higher is required.])
fi
AC_MSG_CHECKING([for File::stat])
$PERL -e 'use File::stat;'
_perl_res=$?
if test $_perl_res != 0; then
AC_MSG_RESULT([no])
AC_MSG_WARN([Perl module File::stat not available. Make sure that you have a complete perl installation. Disabling jar packaging.])
MOZ_DISABLE_JAR_PACKAGING=1
else
AC_MSG_RESULT([yes])
fi
AC_PATH_PROG(WHOAMI, whoami, :)
AC_PATH_PROG(AUTOCONF, autoconf, :)
AC_PATH_PROG(UNZIP, unzip, :)