Kaydet (Commit) 39ca5338 authored tarafından Andre Fischer's avatar Andre Fischer

#i120589# Improved detection of missing perl modules.

üst 5f0f155f
......@@ -1958,12 +1958,27 @@ AC_SUBST(PERL)
dnl ===================================================================
dnl Testing for required Perl modules
dnl The list of required Perl modules is documented here:
dnl http://wiki.openoffice.org/wiki/Documentation/Building_Guide_AOO#General_Build_Requirements
dnl ===================================================================
AC_MSG_CHECKING([for required Perl modules])
if `$PERL -e 'use Archive::Zip; use LWP::UserAgent;'`; then
if `$PERL -e 'use Archive::Zip; use LWP::UserAgent; use XML::Parser;'>/dev/null 2>&1`; then
AC_MSG_RESULT([all modules found])
else
AC_MSG_ERROR([Failed to find some modules])
# Find out which modules are missing.
missing_perl_modules=
if ! `$PERL -e 'use Archive::Zip;'>/dev/null 2>&1`; then
missing_perl_modules=Archive::Zip
fi
if ! `$PERL -e 'use LWP::UserAgent;'>/dev/null 2>&1`; then
missing_perl_modules="$missing_perl_modules LWP::UserAgent"
fi
if ! `$PERL -e 'use XML::Parser;'>/dev/null 2>&1`; then
missing_perl_modules="$missing_perl_modules XML::Parser"
fi
AC_MSG_ERROR([
The missing Perl modules are: $missing_perl_modules
Install them as superuser/administrator with "cpan -i $missing_perl_modules"])
fi
dnl ===================================================================
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment