NAME

Module::Install::CheckOptional - A Module::Install extension that checks to see if an optional dependency is satisfied

SYNOPSIS

In Makefile.PL:
  use inc::Module::Install;
  ...
  check_optional( Carp => 1.02,
    "This module will perform better error reporting with Carp installed.");

DESCRIPTION

This is a Module::Install extension that checks that a suitable version of a module is installed, printing a message if it is not.

METHODS

check_optional( <MODULE NAME> => <0|VERSION>, [MESSAGE] )

Checks whether a module is installed or not and that it has the correct version. Prints a note similar to the following if the module with a version greater than or equal to the specified version cannot be found:

*************************************************************************** 
NOTE: The optional module Carp (version 1.03) is not installed. 

In addition, the optional MESSAGE argument will be appended to the notice.

LICENSE

This code is distributed under the GNU General Public License (GPL) Version 2. See the file LICENSE in the distribution for details.

AUTHOR

David Coppit <david@coppit.org>

SEE ALSO

Module::Install