From: Eric Bollengier Date: Tue, 12 May 2020 19:42:10 +0000 (+0200) Subject: BEE Backport bacula/autoconf/bacula-macros/db.m4 X-Git-Tag: Release-11.3.2~1604 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a8e7fcfa1d0fd7bd2b01d76eaa6a104863ff35e;p=thirdparty%2Fbacula.git BEE Backport bacula/autoconf/bacula-macros/db.m4 This commit is the result of the squash of the following main commits: Author: Eric Bollengier Date: Wed Jul 3 18:40:06 2019 +0200 Fix SQLite3 batch mode detection --- diff --git a/bacula/autoconf/bacula-macros/db.m4 b/bacula/autoconf/bacula-macros/db.m4 index 988c737a8b..4e0661dfc0 100644 --- a/bacula/autoconf/bacula-macros/db.m4 +++ b/bacula/autoconf/bacula-macros/db.m4 @@ -1,5 +1,5 @@ # -# Copyright (C) 2000-2016 Kern Sibbald +# Copyright (C) 2000-2020 Kern Sibbald # License: BSD 2-Clause; see file LICENSE-FOSS # AC_DEFUN([BA_CHECK_DBI_DB], @@ -830,7 +830,7 @@ AC_HELP_STRING([--with-sqlite3@<:@=DIR@:>@], [Include SQLite3 support. DIR is th if test "x$support_batch_insert" = "xyes"; then dnl For sqlite checking saved_LDFLAGS="${LDFLAGS}" - LDFLAGS="${saved_LDFLAGS} -lpthread -L$SQLITE_LIBDIR" + LDFLAGS="${saved_LDFLAGS} -lpthread -lm -L$SQLITE_LIBDIR" AC_CHECK_LIB(sqlite3, sqlite3_threadsafe, AC_DEFINE(HAVE_SQLITE3_THREADSAFE, 1, [Set if have sqlite3_threadsafe])) if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = "xyes"; then