6   unshift @INC, "modules/override"; # Use our own versions of various modules (e.g. YAML).
 
   7   push    @INC, "modules/fallback"; # Only use our own versions of modules if there's no system version.
 
  10 use SL::InstallationCheck;
 
  14 check($_, 0) for @SL::InstallationCheck::required_modules;
 
  15 check($_, 1) for @SL::InstallationCheck::optional_modules;
 
  18   my ($module, $optional) = @_;
 
  20   print "Looking for $module->{fullname}...";
 
  21   my $res = SL::InstallationCheck::module_available($module->{"name"}, $module->{version});
 
  22   print $res ? '' : " NOT", " ok\n";
 
  26   my $needed_text = $optional
 
  27     ? 'It is OPTIONAL for Lx-Office but recommended for improved functionality.'
 
  28     : 'It is NEEDED by Lx-Office and must be installed.';
 
  30   my @source_texts = source_texts($module);
 
  33 +-----------------------------------------------------------------------------+
 
  34   $module->{fullname} could not be loaded.
 
  36   This module is either too old or not available on your system.
 
  39   Here are some ideas how to get it:
 
  42 +-----------------------------------------------------------------------------+
 
  50   - You can get it from CPAN:
 
  51       perl -MCPAN -e "install $module->{name}"
 
  53   push @texts, <<EOL if $module->{url};
 
  54   - You can download it from this URL and install it manually:
 
  57   push @texts, <<EOL if $module->{debian};
 
  58   - On Debian, Ubuntu and other distros you can install it with apt-get:
 
  59       sudo apt-get install $module->{debian}
 
  60     Note these may be out of date as well if you system is old.
 
  62  # TODO: SuSE and Fedora packaging. Windows packaging.