From: Kern Sibbald Date: Thu, 12 Aug 2010 10:28:30 +0000 (+0200) Subject: Tweak another try at detecting batch insert on SLES for postgres X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=43b64f506beb89a4cfc4590c594e2e2f46463e9e;p=bacula%2Fbacula Tweak another try at detecting batch insert on SLES for postgres --- diff --git a/bacula/autoconf/configure.in b/bacula/autoconf/configure.in index a79d9013fa..7db5167456 100644 --- a/bacula/autoconf/configure.in +++ b/bacula/autoconf/configure.in @@ -1755,6 +1755,7 @@ LIBS="${saved_LIBS} ${SQL_LFLAGS}" dnl Check if postgresql can support batch mode if test x$DB_TYPE = xpostgresql; then + support_batch_insert=yes 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])) test "x$ac_cv_lib_pq_PQputCopyData" = "xyes" @@ -1765,11 +1766,11 @@ if test x$DB_TYPE = xpostgresql; then [ if test x$enableval = xno; then support_batch_insert=no - else - support_batch_insert=yes fi ] ) + else + support_batch_insert=no fi fi