From: Eric Bollengier Date: Fri, 18 Jun 2010 08:18:12 +0000 (+0200) Subject: fix #1595 about batch mode detection problem for postgresql with non standard install dir X-Git-Tag: Release-5.2.1~1286 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8eba42d120d5afb7ea7e89a1053a3b9fb6d15b2e;p=bacula%2Fbacula fix #1595 about batch mode detection problem for postgresql with non standard install dir --- 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.