Tue May 28 07:55:40 PDT 2013
- Previous message: [Slony1-bugs] [Bug 287] UPDATE FUNCTIONS in 2.2 doesn't work
- Next message: [Slony1-bugs] [Bug 151] Let DDL for EXECUTE SCRIPT to be specified inline
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
PG 9.3 introduces a new library called libpgcommon we need to link
with this when we link with pgport.
---
config/acx_libpq.m4 | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/config/acx_libpq.m4 b/config/acx_libpq.m4
index 51cf8f5..473085d 100644
--- a/config/acx_libpq.m4
+++ b/config/acx_libpq.m4
@@ -504,8 +504,16 @@ AC_SUBST(NLSLIB)
if test "$with_pgport" = "yes"; then
AC_MSG_CHECKING(for pgport)
+ # check if we have pgcommon this is a lib in 9.3+ that
+ # is needed with PGPORT
+ OLD_LIBS=$LIBS
+ LIBS="$LIBS -lpgcommon"
+ AC_TRY_LINK_FUNC(pg_malloc,[EXTRALIBS=' -lpgcommon'
+ AC_MSG_RESULT(yes)],
+ EXTRALIBS='' )
+ LIBS=$OLD_LIBS
AC_DEFINE(HAVE_PGPORT)
- LIBS="$LIBS -lpgport"
+ LIBS="$LIBS -lpgport $EXTRALIBS"
AC_TRY_LINK_FUNC(find_my_exec,[HAVE_PGPORT=1
AC_MSG_RESULT(yes)],
AC_MSG_ERROR("pgport was not found. build without --with-pgport=yes to disable"))
--
1.7.10.4
--------------000704020309010903080505--
- Previous message: [Slony1-bugs] [Bug 287] UPDATE FUNCTIONS in 2.2 doesn't work
- Next message: [Slony1-bugs] [Bug 151] Let DDL for EXECUTE SCRIPT to be specified inline
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Slony1-bugs mailing list