CVS User Account cvsuser
Wed Aug 4 19:01:37 PDT 2004
Log Message:
-----------
Look for more version specific functions

Modified Files:
--------------
    slony1-engine/config:
        acx_libpq.m4 (r1.4 -> r1.5)

-------------- next part --------------
Index: acx_libpq.m4
===================================================================
RCS file: /usr/local/cvsroot/slony1/slony1-engine/config/acx_libpq.m4,v
retrieving revision 1.4
retrieving revision 1.5
diff -Lconfig/acx_libpq.m4 -Lconfig/acx_libpq.m4 -u -w -r1.4 -r1.5
--- config/acx_libpq.m4
+++ config/acx_libpq.m4
@@ -43,6 +43,10 @@
 	    a newer version.)
 	fi
     fi
+    if test "$PG_MAJOR_VERSION" = "8"; then
+      AC_MSG_RESULT($PG_VERSION)
+      AC_DEFINE(PG_VERSION_OK,1,[PostgreSQL 7.3 or later])
+    fi
 else
     dnl Specify the commandline options here.
     AC_MSG_ERROR(Cannot find pg_config. 
@@ -175,5 +179,23 @@
 	)
 fi
 
+have_pqputcopydata=no
+AC_CHECK_LIB(pq, [PQputCopyData], [have_pqputcopydata=yes])
+if test $have_pqputcopydata = yes ; then
+        AC_DEFINE(HAVE_PQPUTCOPYDATA,1,[Postgresql PQputCopyData()])
+fi
+
+have_pqsetnoticereceiver=no
+AC_CHECK_LIB(pq, [PQsetNoticeReceiver], [have_pqsetnoticereceiver=yes])
+if test $have_pqsetnoticereceiver = yes; then
+	 AC_DEFINE(HAVE_PQSETNOTICERECEIVER,1,[Postgresql PQsetNoticeReceiver()])
+fi
+
+have_pqfreemem=no
+AC_CHECK_LIB(pq, [PQfreemem], [have_pqfreemem=yes])
+if test $have_pqfreemem = yes; then
+	AC_DEFINE(HAVE_PQFREEMEM,1,[Postgresql PQfreemem()])
+fi
+
 AC_LANG_RESTORE
 ])dnl ACX_LIBPQ


More information about the Slony1-commit mailing list