]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
BEE Backport bacula/autoconf/bacula-macros/db.m4
authorEric Bollengier <eric@baculasystems.com>
Tue, 12 May 2020 19:42:10 +0000 (21:42 +0200)
committerEric Bollengier <eric@baculasystems.com>
Thu, 29 Apr 2021 08:44:18 +0000 (10:44 +0200)
This commit is the result of the squash of the following main commits:

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Wed Jul 3 18:40:06 2019 +0200

    Fix SQLite3 batch mode detection

bacula/autoconf/bacula-macros/db.m4

index 988c737a8b998cfc184df73e8f8c8a354a6180af..4e0661dfc02bd8f126c373ee8ea75873fc7c52f3 100644 (file)
@@ -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