Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 9f69aa0

Browse files
committed
add missing file for perl.
1 parent 7483856 commit 9f69aa0

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

src/interfaces/perl5/Makefile.PL.in

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
#-------------------------------------------------------
2+
#
3+
# $Id: Makefile.PL.in,v 1.1 1998/10/16 05:58:22 momjian Exp $
4+
#
5+
# Copyright (c) 1997, 1998 Edmund Mergl
6+
#
7+
#-------------------------------------------------------
8+
9+
use ExtUtils::MakeMaker;
10+
use Config;
11+
use strict;
12+
13+
my %opts;
14+
15+
if (! $ENV{POSTGRES_HOME}) {
16+
17+
my $cwd = `pwd`;
18+
chop $cwd;
19+
20+
%opts = (
21+
NAME => 'Pg',
22+
VERSION_FROM => 'Pg.pm',
23+
INC => "-I$cwd/../libpq -I$cwd/../../include",
24+
OBJECT => "Pg\$(OBJ_EXT)",
25+
LIBS => ["-L@prefix@/lib -L$cwd/../libpq -lpq"],
26+
);
27+
28+
} else {
29+
30+
%opts = (
31+
NAME => 'Pg',
32+
VERSION_FROM => 'Pg.pm',
33+
INC => "-I$ENV{POSTGRES_HOME}/include",
34+
OBJECT => "Pg\$(OBJ_EXT)",
35+
LIBS => ["-L$ENV{POSTGRES_HOME}/lib -lpq"],
36+
);
37+
}
38+
39+
40+
WriteMakefile(%opts);
41+
42+
exit(0);
43+
44+
# end of Makefile.PL

0 commit comments

Comments
 (0)