From 8eba42d120d5afb7ea7e89a1053a3b9fb6d15b2e Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Fri, 18 Jun 2010 10:18:12 +0200 Subject: [PATCH] fix #1595 about batch mode detection problem for postgresql with non standard install dir --- bacula/autoconf/configure.in | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/bacula/autoconf/configure.in b/bacula/autoconf/configure.in index 3db0f85af2..0c3facb486 100644 --- a/bacula/autoconf/configure.in +++ b/bacula/autoconf/configure.in @@ -1746,8 +1746,12 @@ if test $pkg = 0; then ] ) fi + +dnl For postgresql checking +saved_LIBS="${LIBS}" +LIBS="${saved_LIBS} ${SQL_LFLAGS}" -dnl Check if postgresql can support batch mode +dnl Check if postgresql can support batch mode if test x$DB_TYPE = xpostgresql; then AC_CHECK_LIB(pq, PQisthreadsafe, AC_DEFINE(HAVE_PQISTHREADSAFE, 1, [Set if have PQisthreadsafe])) AC_CHECK_LIB(pq, PQputCopyData, AC_DEFINE(HAVE_PQ_COPY, 1, [Set if have PQputCopyData])) @@ -1797,6 +1801,9 @@ else uncomment_dbi="#" fi +dnl revert after postgresql checks +LIBS="${saved_LIBS}" + AC_SUBST(uncomment_dbi) dnl For Ingres always enable batch inserts. -- 2.39.5