You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.2 KiB

  1. --- a/Makefile.PL
  2. +++ b/Makefile.PL
  3. @@ -1,7 +1,6 @@
  4. # Do yourself a favour, and don't edit this file, see README for build instructions
  5. use ExtUtils::MakeMaker;
  6. -use Devel::CheckLib;
  7. my @inc_search = qw(/opt/local/include /usr/local/include);
  8. my @lib_search = qw(/opt/local/lib64 /usr/local/lib64 /opt/local/lib /usr/local/lib);
  9. @@ -13,28 +12,13 @@ unless (exists $args{INC} or exists $arg
  10. my @incpath = grep {-d} @inc_search;
  11. my @libpath = grep {-d} @lib_search;
  12. - my $have_sasl2 = eval {
  13. - assert_lib(
  14. - lib => "sasl2",
  15. - header => "sasl/sasl.h",
  16. - libpath => \@libpath,
  17. - incpath => \@incpath
  18. - );
  19. - 1;
  20. - };
  21. + my $have_sasl2 = 1;
  22. if ($have_sasl2) {
  23. $mmopt{DEFINE} = "-DSASL2" unless $use_sasl2;
  24. }
  25. else {
  26. exit(0) if $use_sasl2;
  27. - @incpath = grep {-d} map { ("$_/sasl", $_) } @inc_search;
  28. - check_lib_or_exit(
  29. - lib => "sasl",
  30. - header => "sasl.h",
  31. - libpath => \@libpath,
  32. - incpath => \@incpath
  33. - );
  34. }
  35. $mmopt{INC} = join " ", map {"-I$_"} @incpath;
  36. @@ -58,7 +42,6 @@ WriteMakefile(
  37. repository => 'http://github.com/gbarr/perl-authen-sasl-xs',
  38. },
  39. build_requires => {
  40. - 'Devel::CheckLib' => 0,
  41. },
  42. }
  43. )