nothing wrong with letting make fail with missing php.h or -lphp5... MakeMaker uses ExtUtils::Liblist, so you could
#!/usr/bin/perl -- use strict; use warnings; use ExtUtils::Liblist; use Data::Dumper; local $Data::Dumper::Indent=1; my $potential_libs = join ' ', qw~ -lphp5 -lperl58 -lperl56 -LD:\openssl\lib\vc\static -llibeay32MD -lssleay32MD ~; print Dumper( ExtUtils::Liblist->ext($potential_libs, 0, 0) ),"\n\n"; my( $EXTRALIBS, $BSLOADLIBS, $LDLOADLIBS, $LD_RUN_PATH, $filenames_if_need_names ) = ExtUtils::Liblist->ext($potential_libs, 0, 1); print Dumper( $EXTRALIBS, $BSLOADLIBS, $LDLOADLIBS, $LD_RUN_PATH, $filenames_if_need_names ); die "ERROR, ERROR, WE DON'T GOT NO YADAYADA " unless $LDLOADLIBS =~ /p +hp5/i; __END__ Note (probably harmless): No library found for -lphp5 Note (probably harmless): No library found for -lperl56 Note (probably harmless): No library found for oldnames.lib Note (probably harmless): No library found for kernel32.lib Note (probably harmless): No library found for user32.lib Note (probably harmless): No library found for gdi32.lib Note (probably harmless): No library found for winspool.lib Note (probably harmless): No library found for comdlg32.lib Note (probably harmless): No library found for advapi32.lib Note (probably harmless): No library found for shell32.lib Note (probably harmless): No library found for ole32.lib Note (probably harmless): No library found for oleaut32.lib Note (probably harmless): No library found for netapi32.lib Note (probably harmless): No library found for uuid.lib Note (probably harmless): No library found for ws2_32.lib Note (probably harmless): No library found for mpr.lib Note (probably harmless): No library found for winmm.lib Note (probably harmless): No library found for version.lib Note (probably harmless): No library found for odbc32.lib Note (probably harmless): No library found for odbccp32.lib Note (probably harmless): No library found for msvcrt.lib $VAR1 = 'C:\\Perl\\lib\\CORE\\perl58.lib C:\\openssl\\lib\\vc\\static\ +\libeay32MD.lib C:\\openssl\\lib\\vc\\static\\ssleay32MD.lib'; $VAR2 = ''; $VAR3 = 'C:\\Perl\\lib\\CORE\\perl58.lib C:\\openssl\\lib\\vc\\static\ +\libeay32MD.lib C:\\openssl\\lib\\vc\\static\\ssleay32MD.lib'; $VAR4 = ''; Note (probably harmless): No library found for -lphp5 Note (probably harmless): No library found for -lperl56 Note (probably harmless): No library found for oldnames.lib Note (probably harmless): No library found for kernel32.lib Note (probably harmless): No library found for user32.lib Note (probably harmless): No library found for gdi32.lib Note (probably harmless): No library found for winspool.lib Note (probably harmless): No library found for comdlg32.lib Note (probably harmless): No library found for advapi32.lib Note (probably harmless): No library found for shell32.lib Note (probably harmless): No library found for ole32.lib Note (probably harmless): No library found for oleaut32.lib Note (probably harmless): No library found for netapi32.lib Note (probably harmless): No library found for uuid.lib Note (probably harmless): No library found for ws2_32.lib Note (probably harmless): No library found for mpr.lib Note (probably harmless): No library found for winmm.lib Note (probably harmless): No library found for version.lib Note (probably harmless): No library found for odbc32.lib Note (probably harmless): No library found for odbccp32.lib Note (probably harmless): No library found for msvcrt.lib $VAR1 = 'C:\\Perl\\lib\\CORE\\perl58.lib C:\\openssl\\lib\\vc\\static\ +\libeay32MD.lib C:\\openssl\\lib\\vc\\static\\ssleay32MD.lib'; $VAR2 = ''; $VAR3 = 'C:\\Perl\\lib\\CORE\\perl58.lib C:\\openssl\\lib\\vc\\static\ +\libeay32MD.lib C:\\openssl\\lib\\vc\\static\\ssleay32MD.lib'; $VAR4 = ''; $VAR5 = [ 'C:\\Perl\\lib/CORE\\perl58.lib', 'C:/openssl/lib/vc/static\\libeay32MD.lib', 'C:/openssl/lib/vc/static\\ssleay32MD.lib' ]; ERROR, ERROR, WE DON'T GOT NO YADAYADA at makemaker.liblist.pl line 3 +9.

In reply to Re: Detect library in Makefile.PL by Anonymous Monk
in thread Detect library in Makefile.PL by andreas1234567

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.