File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments