~ubuntu-branches/ubuntu/trusty/libgssapi-perl/trusty-proposed

« back to all changes in this revision

Viewing changes to Makefile.PL

  • Committer: Bazaar Package Importer
  • Author(s): Ansgar Burchardt, gregor herrmann, Nathan Handler, Ansgar Burchardt, Franck Joncourt
  • Date: 2010-04-25 12:04:30 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20100425120430-tz36ryh4t8yy5dxb
Tags: 0.27-1
[ gregor herrmann ]
* debian/control: Changed: Switched Vcs-Browser field to ViewSVN
  (source stanza).
* Remove Florian Ragwitz from Uploaders (closes: #523172).

[ Nathan Handler ]
* debian/watch: Update to ignore development releases.

[ Ansgar Burchardt ]
* New upstream release.
* Refresh rules for debhelper 7.
* No longer install README.
* Use source format 3.0 (quilt).
* Convert debian/copyright to proposed machine-readable format.
* debian/copyright: Add information about ppport.h.
* debian/control: Make build-dep on perl unversioned.
* Fix spelling error in the documentation.
  + new patch: spelling.patch
* Bump Standards-Version to 3.8.4.
* Add myself to Uploaders.

[ Franck Joncourt ]
* Set debhelper compatibility from 5 to 7.
* Added back OPTIMIZE and LD_RUN_PATH variables in d.rules through the
  override_dh_auto_build target. This also requires a dependency on
  debhelper (>= 7.0.50).
* Added /me to Uploaders (refreshed both d.control and d.copyright).

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
3
3
# the contents of the Makefile that is written.
4
4
use strict;
5
 
 
 
5
use 5.006;   # builds on 5.005, but Slaven Rezic got strange testresults
6
6
use Config;
7
7
 
8
8
use Getopt::Long;
9
9
my %options;
10
10
 
11
11
my @whichcand = qw(/bin/which /usr/bin/which);
 
12
 
 
13
my @KRB5_CONFIG_TRIES = (
 
14
 
 
15
    '/usr/kerberos/bin/krb5-config',   # for use with CentOS,  as suggested by Mark Hedges in https://rt.cpan.org/Ticket/Display.html?id=48732
 
16
    '/usr/bin/krb5-config',            # always worth a try ;-)
 
17
 
 
18
);
 
19
 
 
20
 
12
21
my $LINE = "\n\n----------------------------------------------------------\n";
13
22
&GetOptions(\%options , "gssapiimpl=s",  "help", "gssapi_libs=s", "gssapi_inc=s", "gssapi_lddlflags=s");
14
23
 
58
67
}
59
68
 
60
69
#-------------------------------------------------------------
61
 
print "\n Welcome to GSSAPI.pm setup! \n";
 
70
print "\n Welcome to GSSAPI.pm setup! \n\n ($0 Version 0.03) \n";
62
71
print qq{\n run "perl Makefile.PL --help" to see further installation options\n};
63
72
 
64
73
#---------------------------------------------------------------
96
105
              "\n The README file shipped with this module provides\n more information regarding prerequirements. \n\n";
97
106
        exit 0; # send no automated FAIL testreport
98
107
    } else {
99
 
      print "\n\n $krb5cmd";
 
108
      print "\n\n using krb5-config command '$krb5cmd'.";
100
109
    }
101
110
    #---------------------------------------------
102
111
    my $implementation = krb5_version( $krb5cmd  );
202
211
   unless ($expl_path) {
203
212
      #my $whichcmd =  find_which_command() || die 'cannot locate which command';
204
213
      $r = `which krb5-config 2>/dev/null`;
 
214
 
205
215
      chomp $r;
 
216
      unless ( $r ) {
 
217
          my $n = 1;
 
218
          print "\n krb5-config NOT found in \$PATH... now doing some guesswork: \n";
 
219
          foreach $r ( @KRB5_CONFIG_TRIES ) {
 
220
              print "\n $n. trying $r ...";
 
221
              if ( -e $r ) {
 
222
                  print 'found.';
 
223
                  return $r;
 
224
              }
 
225
              else {
 
226
                 print 'not found.';
 
227
              }
 
228
              $n++;
 
229
          }
 
230
      }
206
231
   } else {
207
232
      my $supposed = join '/', $expl_path, 'bin', 'krb5-config';
208
233
      if ( -e $supposed ) {
267
292
   my ( $confstringstring ) = @_;
268
293
   my (@libs, @others);
269
294
   foreach ( split ' ',  $confstringstring ) {
270
 
      if ( m/(-(Wl,-R|[LlR])[^ ]*)/) {
 
295
      #if ( m/(-(Wl,-R|[LlR])[^ ]*)/) {
 
296
      if ( m/(^-(Wl,-R|[LlR])[^ ]*)/) {
271
297
        push @libs, $1
272
298
      } else {
273
299
        push @others, $_;