]>
Commit | Line | Data |
---|---|---|
da3e4a09 JB |
1 | --- httpd-2.0.50/support/apxs.in.orig 2004-07-25 21:25:37.955097000 +0000 |
2 | +++ httpd-2.0.50/support/apxs.in 2004-07-25 22:25:01.093725664 +0000 | |
3 | @@ -198,11 +198,10 @@ | |
4 | ($httpd = $0) =~ s:support/apxs$::; | |
1fa08c1b | 5 | } |
6 | ||
da3e4a09 JB |
7 | -unless (-x "$httpd") { |
8 | - error("$httpd not found or not executable"); | |
9 | - exit 1; | |
10 | +if (not -x "$httpd") { | |
11 | + print STDERR "Note: $httpd not found or not executable.\n"; | |
12 | } | |
13 | - | |
14 | +else { | |
15 | unless (grep /mod_so/, `. $envvars && $httpd -l`) { | |
16 | error("Sorry, no shared object support for Apache"); | |
17 | error("available under your platform. Make sure"); | |
18 | @@ -210,7 +209,7 @@ | |
19 | error("your server binary `$httpd'."); | |
20 | exit 1; | |
21 | } | |
22 | - | |
23 | +} | |
24 | sub get_config_vars{ | |
25 | my ($file, $rh_config) = @_; | |
1fa08c1b | 26 | |
85f276f0 ER |
27 | --- httpd-2.2.0/support/apxs.in 2005-12-27 00:22:41.000000000 +0200 |
28 | +++ /usr/sbin/apxs 2005-12-28 16:06:45.000000000 +0200 | |
29 | @@ -44,6 +44,7 @@ | |
30 | my $CFG_CC = get_vars("CC"); | |
31 | my $libexecdir = get_vars("libexecdir"); | |
32 | my $CFG_LIBEXECDIR = eval qq("$libexecdir"); | |
33 | +my $DESTDIR = $ENV{'DESTDIR'}; | |
34 | my $sbindir = get_vars("sbindir"); | |
35 | my $CFG_SBINDIR = eval qq("$sbindir"); | |
36 | my $ltflags = $ENV{'LTFLAGS'}; | |
37 | @@ -478,8 +479,8 @@ | |
38 | $t =~ s|\.[^./\\]+$|\.so|; | |
39 | if ($opt_i) { | |
40 | push(@cmds, "$installbuilddir/instdso.sh SH_LIBTOOL='" . | |
41 | - "$libtool' $f $CFG_LIBEXECDIR"); | |
42 | - push(@cmds, "chmod 755 $CFG_LIBEXECDIR/$t"); | |
43 | + "$libtool' $f $DESTDIR$CFG_LIBEXECDIR"); | |
44 | + push(@cmds, "chmod 755 $DESTDIR$CFG_LIBEXECDIR/$t"); | |
45 | } | |
46 | ||
47 | # determine module symbolname and filename |