pgpool2.git / summary / log / commit / refs
commit 8bce2d34e46ded3d86d74588eeb503ab7c367b99
Author: Tatsuo Ishii <ishii at sraoss.co.jp>
Date: Sun May 24 08:43:39 2009 +0000
Support pre 8.0 PostgreSQL which does not have
pg_config --pgxs option.
Patch provided by Enrico Pirozzi with slight modification by Tatsuo Ishii
sql/pgpool-recovery/Makefile | 17 ++++++++++++++++-
1 file changed, 16 insertions(+), 1 deletion(-)
diff --git a/sql/pgpool-recovery/Makefile b/sql/pgpool-recovery/Makefile
index 2900da597..9422666ae 100644
--- a/sql/pgpool-recovery/Makefile
+++ b/sql/pgpool-recovery/Makefile
@@ -1,5 +1,20 @@
MODULES = pgpool-recovery
DATA_built = pgpool-recovery.sql
-PGXS := $(shell pg_config --pgxs)
+# if you are using PostgreSQL 8.0 or later,
+# using pg_config is recommended.
+# if you are not, comment out following line and...
+USE_PGXS = true
+# set top_builddir to the PostgreSQL build source tree top.
+# (for example /usr/local/src/postgresql-8.4)
+top_builddir = ../..
+
+ifdef USE_PGXS
+PGXS = $(shell pg_config --pgxs)
include $(PGXS)
+else
+subdir = contrib/pgpool-recovery
+#top_builddir = ../..
+include $(top_builddir)/src/Makefile.global
+include $(top_srcdir)/contrib/contrib-global.mk
+endif
[parent: 05c74917201c]