Lines 1-82
Link Here
|
1 |
--- subversion/bindings/swig/perl/Base.pm (revision 10173) |
1 |
--- configure.orig Thu Oct 9 09:10:22 2003 |
2 |
+++ subversion/bindings/swig/perl/Base.pm (revision 10174) |
2 |
+++ configure Thu Oct 9 09:10:30 2003 |
3 |
@@ -60,6 +60,7 @@ sub import { |
3 |
@@ -0,0 +0,0 @@ |
4 |
package SVN::_$pkg; |
|
|
5 |
require DynaLoader; |
6 |
bootstrap SVN::_$pkg; |
7 |
+sub dl_load_flags { 0x01 } |
8 |
1; |
9 |
' or die $@; |
10 |
}; |
11 |
--- subversion/bindings/swig/perl/Makefile.PL (revision 10173) |
12 |
+++ subversion/bindings/swig/perl/Makefile.PL (revision 10174) |
13 |
@@ -1,4 +1,5 @@ |
14 |
-#!/usr/bin/perl |
15 |
+#!/usr/bin/perl -w |
16 |
+use strict; |
17 |
use ExtUtils::MakeMaker; |
18 |
use Cwd 'abs_path'; |
19 |
use Config; |
20 |
@@ -8,6 +9,12 @@ if ($^O ne 'VMS') { |
21 |
$perl_path .= $Config{_exe} unless $perl_path =~ m/$Config{_exe}$/i; |
22 |
} |
23 |
|
24 |
+my $top_builddir = '../../../..'; |
25 |
+my $top_srcdir = '@top_srcdir@'; |
26 |
+my $svnlib_srcdir = "${top_srcdir}/subversion"; |
27 |
+my $swig_srcdir = "${svnlib_srcdir}/bindings/swig"; |
28 |
+ |
29 |
+ |
30 |
my $swig_version; |
31 |
open TOPMAKE, "<../../../../Makefile"; |
32 |
while (<TOPMAKE>) { |
33 |
@@ -50,8 +57,7 @@ my %config = ( |
34 |
OBJECT => q/$(O_FILES)/, |
35 |
LIBS => [join(' ', $apr_ldflags, |
36 |
(map {$_ = abs_path($_); "-L$_"} @ldpaths), |
37 |
- @ldmodules, '-lsvn_swig_perl-1', |
38 |
- `swig -perl -ldflags`)], |
39 |
+ @ldmodules)], |
40 |
); |
41 |
|
42 |
sub perlish { |
43 |
@@ -64,6 +70,7 @@ WriteMakefile(%config, NAME => 'SVN::_Co |
44 |
PM => {map { ("$_.pm" => "\$(INST_LIBDIR)/$_.pm") } |
45 |
map { perlish $_ } |
46 |
('base', 'core', @modules)}, |
47 |
+ LDFROM => '$(O_FILES) '."../.libs/libsvn_swig_perl-1.a", |
48 |
clean => { FILES => "*.hi *.c *.bs". |
49 |
join(' Makefile.','',@modules) } |
50 |
); |
51 |
@@ -84,15 +91,19 @@ sub MY::postamble { |
52 |
my $module_c_files = join (' ',map { "svn_$_.c"} @modules); |
53 |
my $module_make_commands = join ('',map {"\tmake -f Makefile.$_\n"} @modules); |
54 |
|
55 |
- my $flags; |
56 |
+ my ($flags, $flags_runtime); |
57 |
if ($swig_version >= 103020) { |
58 |
$flags = '-noruntime -noproxy'; |
59 |
+ $flags_runtime = '-runtime -noproxy'; |
60 |
} else { |
61 |
+ # XXX: prehaps deprecated |
62 |
$flags = '-c'; |
63 |
} |
64 |
|
65 |
- my $swig_command = "swig $flags -nopm -perl " . |
66 |
- "-I.. -I../../../include $apr_cflags"; |
67 |
+ my ($swig_command, $swig_command_runtime) = |
68 |
+ map {"swig $_ -nopm -perl " . |
69 |
+ "-I.. -I../../../include $apr_cflags" } |
70 |
+ ($flags, $flags_runtime); |
71 |
|
72 |
my $swig_modules_command = join ('', |
73 |
map {"\nsvn_$_.c : ../svn_$_.i ". |
74 |
@@ -127,7 +138,7 @@ modules :: $module_c_files |
75 |
$module_make_commands\t\$(NOECHO) \$(TOUCH) \$\@ |
76 |
|
77 |
core.c :: ../core.i |
78 |
-\t$swig_command -module SVN::_Core -o core.c ../core.i |
79 |
+\t$swig_command_runtime -module SVN::_Core -o core.c ../core.i |
80 |
|
81 |
$swig_modules_command |
82 |
|