File tree 3 files changed +29
-7
lines changed
3 files changed +29
-7
lines changed Original file line number Diff line number Diff line change 1
1
# -*-makefile-*-
2
- # $Header: /cvsroot/pgsql/src/Makefile.global.in,v 1.133 2001/08/26 22:28:04 petere Exp $
2
+ # $Header: /cvsroot/pgsql/src/Makefile.global.in,v 1.134 2001/08/27 00:29:49 petere Exp $
3
3
4
4
# ------------------------------------------------------------------------------
5
5
# All PostgreSQL makefiles include this file and use the variables it sets,
@@ -128,6 +128,7 @@ python_includespec = @python_includespec@
128
128
python_moduledir = @python_moduledir@
129
129
python_moduleexecdir = @python_moduleexecdir@
130
130
python_libspec = @python_libspec@
131
+ python_configdir = @python_configdir@
131
132
132
133
krb_srvtab = @krb_srvtab@
133
134
Original file line number Diff line number Diff line change 4
4
#
5
5
# Copyright (c) 1994, Regents of the University of California
6
6
#
7
- # $Header: /cvsroot/pgsql/src/pl/Makefile,v 1.20 2001/05/12 01:30:30 petere Exp $
7
+ # $Header: /cvsroot/pgsql/src/pl/Makefile,v 1.21 2001/08/27 00:29:49 petere Exp $
8
8
#
9
9
# -------------------------------------------------------------------------
10
10
@@ -22,10 +22,9 @@ ifeq ($(with_perl), yes)
22
22
DIRS += plperl
23
23
endif
24
24
25
- # Doesn't build portably yet.
26
- # ifeq ($(with_python), yes)
27
- # DIRS += plpython
28
- # endif
25
+ ifeq ($(with_python ) , yes)
26
+ DIRS += plpython
27
+ endif
29
28
30
29
all install installdirs uninstall depend distprep :
31
30
@for dir in $(DIRS ) ; do $(MAKE ) -C $$ dir $@ || exit ; done
Original file line number Diff line number Diff line change 1
- # $Header: /cvsroot/pgsql/src/pl/plpython/Makefile,v 1.8 2001/07/10 16:33:02 petere Exp $
1
+ # $Header: /cvsroot/pgsql/src/pl/plpython/Makefile,v 1.9 2001/08/27 00:29:49 petere Exp $
2
2
3
3
subdir = src/pl/plpython
4
4
top_builddir = ../../..
5
5
include $(top_builddir ) /src/Makefile.global
6
6
7
7
8
+ # On some platforms we can only build PL/Python if libpython is a
9
+ # shared library. Since there is no official way to determine this,
10
+ # we see if there is a file that is named like a shared library.
11
+ ifneq (,$(wildcard $(python_configdir ) /libpython* $(DLSUFFIX ) * ) )
12
+ shared_libpython = yes
13
+ endif
14
+
15
+ # If we don't have a shared library and the platform doesn't allow it
16
+ # to work without, we have to skip it.
17
+ ifneq (,$(findstring yes, $(shared_libpython )$(allow_nonpic_in_shlib ) ) )
18
+
8
19
override CPPFLAGS := -I$(srcdir ) $(python_includespec ) $(CPPFLAGS )
9
20
10
21
override DLLLIBS := $(BE_DLLLIBS ) $(DLLLIBS )
@@ -36,3 +47,14 @@ clean distclean maintainer-clean: clean-lib
36
47
37
48
installcheck :
38
49
PATH=$(bindir ) :$$ PATH $(SHELL ) $(srcdir ) /test.sh
50
+
51
+ else # can't build
52
+
53
+ all :
54
+ @echo " " ; \
55
+ echo " *** Cannot build PL/Python because libpython is not a shared library." ; \
56
+ echo " *** You might have to rebuild your Python installation. Refer to" ; \
57
+ echo " *** the documentation for details." ; \
58
+ echo " "
59
+
60
+ endif # can't build
You can’t perform that action at this time.
0 commit comments