From: Kern Sibbald Date: Thu, 12 Aug 2010 07:38:58 +0000 (+0200) Subject: Fix batch insert detection on SLES 11 X-Git-Tag: Release-5.2.1~1145 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=95bece7ca5c8fbf71e8aa68503f547656f98371e;p=bacula%2Fbacula Fix batch insert detection on SLES 11 --- diff --git a/bacula/autoconf/configure.in b/bacula/autoconf/configure.in index f0f8595739..28e31a9854 100644 --- a/bacula/autoconf/configure.in +++ b/bacula/autoconf/configure.in @@ -1757,9 +1757,19 @@ 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])) - if test "x$ac_cv_lib_pq_PQputCopyData" != "xyes" - then - support_batch_insert=no + test "x$ac_cv_lib_pq_PQputCopyData" != "xyes" + pkg=$? + if test $pkg = 0; then + AC_ARG_ENABLE(batch-insert, + AC_HELP_STRING([--enable-batch-insert], [enable the DB batch insert code @<:@default=no@:>@]), + [ + if test x$enableval = xno; then + support_batch_insert=no + else + support_batch_insert=yes + fi + ] + ) fi fi