NAME

ExtUtils::LibSeeker::Ask_gmake - Use GNU make to find installed binary libs


SYNOPSIS

  use ExtUtils::LibSeeker::Ask_gmake qw(make_fqpn inq_run);
  print "Your make program may be ", make_fqpn(), "\n";
  my $lib_found;
  my $lib_needed = 'tidy';
  if($lib_found = inq_run($lib_needed)) {
      printf "make finds needed library file at %s\n", $lib_found;
  }


USAGE XXX TODO finish this

The basic usage of the module is intended to parallel what is done if using the venerable (and weak, and problematical, in the author's hopefully humble opinion) piece of ExtUtils::MakeMaker named ExtUtils::Liblist, and might look like this:

  use ExtUtils::MakeMaker;
  use ExtUtils::LibSeeker::Ask_gmake;
  ...
  my $found_libfile = inq_run ('-lexif' , '-L/opt/lib');
  my $LIBS_Spec = $found_libfile if $found_libfile;
  ...
  WriteMakefile(
           ...
           macro => { PERL_ARCHIVE_AFTER => '$(PERL_ARCHIVE_AFTER) '.$LIBS_Spec ,},
           ...
           );
  # using PERL_ARCHIVE_AFTER this way is probably very hackish. But it saves
  # needing to provide an overridden method to produce the chunk of makefile
  # that actually invokes gcc to build the module extension (shared object lib).


BUGS


SUPPORT


AUTHOR

    Soren Andersen
    CPAN ID: SOMIAN
    somian@CPAN.org
    http://intrepid.perlmonk.org/software/somian-modules/


COPYRIGHT

This program is free software licensed under The Artistic License (with Aggregation clause).

The full text of the license can be found in the LICENSE file included with this module.


SEE ALSO