Steve Singer ssinger at ca.afilias.info
Tue May 28 07:55:40 PDT 2013
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--


More information about the Slony1-bugs mailing list