use ExtUtils::MakeMaker qw(prompt WriteMakefile); use Config; print "\n\nNet::LDAPapi Perl5 Module - by Quanah Gibson-Mount \n\n"; print "OpenLDAP support by Symas Corporation -- http://www.symas.com\n"; print "Updated by Quanah Gibson-Mount to match modern products and vendors.\n"; print "Updated by Dmitri Priimak to use the v3 OpenLDAP API.\n"; print "\nOriginally by Clayton Donley \n\n"; $pl_path = $Config{'perlpath'}; unless (@ARGV) { warn < \$sdk, "lib_path=s" => \$lib_ldap, "include_path=s" => \$include_ldap, "sasl_include_path=s" => \$include_sasl, ); unless ($result) { print STDERR <constant.h "; } WriteMakefile( 'NAME' => 'Net::LDAPapi', 'VERSION_FROM' => 'LDAPapi.pm', 'PREREQ_PM' => { 'Convert::ASN1' => '0.19'}, ($include_sasl ne "" ? ( 'INC' => "-I$include_ldap -I$include_sasl -I/usr/include", ) : ( 'INC' => "-I$include_ldap -I/usr/include", )), ($version eq "MOZILLA" ? ( 'LIBS' => ["-L$lib_ldap -l$ldap_lib"], 'DEFINE' => '-DMOZILLA_LDAP', ) : ( 'LIBS' => ["-L$lib_ldap $ldap_lib"], 'DEFINE' => '-DOPENLDAP', )), 'depend' => { 'LDAPapi.c' => 'constant.h' }, 'clean' => { 'FILES' => 'constant.h' }, );