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.0.3~156 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3c1731217dd12274bc7b1aea32da62f201b07214;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 cba5c7344e..64fbd64eb4 100644 --- a/bacula/autoconf/configure.in +++ b/bacula/autoconf/configure.in @@ -1751,8 +1751,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])) @@ -1802,6 +1806,9 @@ else uncomment_dbi="#" fi +dnl revert after postgresql checks +LIBS="${saved_LIBS}" + AC_SUBST(uncomment_dbi) if test $support_batch_insert = yes ; then