~ubuntu-branches/ubuntu/edgy/libapache2-mod-perl2/edgy-updates

« back to all changes in this revision

Viewing changes to lib/Apache2.pm

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2004-08-19 06:23:48 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040819062348-jxl4koqbtvgm8v2t
Tags: 1.99.14-4
Remove the LFS CFLAGS, and build-dep against apache2-*-dev (>= 2.0.50-10)
as we're backing out of the apache2/apr ABI transition.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
2
# /*
 
3
#  * *********** WARNING **************
 
4
#  * This file generated by Apache::Build/0.01
 
5
#  * Any changes made here will be lost
 
6
#  * ***********************************
 
7
#  * 01: lib/ModPerl/Code.pm:699
 
8
#  * 02: lib/Apache/Build.pm:752
 
9
#  * 03: lib/Apache/Build.pm:1766
 
10
#  * 04: Makefile.PL:150
 
11
#  * 05: Makefile.PL:49
 
12
#  */
 
13
 
14
 
 
15
 
 
16
package Apache2;
 
17
 
 
18
BEGIN {
 
19
    my @dirs = ();
 
20
 
 
21
    for my $path (@INC) {
 
22
        my $dir = "$path/Apache2";
 
23
        next unless -d $dir;
 
24
        push @dirs, $dir;
 
25
    }
 
26
 
 
27
    if (@dirs) {
 
28
        unshift @INC, @dirs;
 
29
    }
 
30
 
 
31
    # now re-org the libs to have first devel libs, then blib libs,
 
32
    # and only then perl core libs
 
33
    use File::Basename qw(dirname);
 
34
    my $project_root = $blib ? dirname(dirname($blib)) : '';
 
35
    if ($project_root) {
 
36
        my (@a, @b, @c);
 
37
        for (@INC) {
 
38
            if (m|^\Q$project_root\E|) {
 
39
                m|blib| ? push @b, $_ : push @a, $_;
 
40
            }
 
41
            else {
 
42
                push @c, $_;
 
43
            }
 
44
        }
 
45
        @INC = (@a, @b, @c);
 
46
    }
 
47
 
 
48
}
 
49
 
 
50
 
 
51
1;
 
 
b'\\ No newline at end of file'