]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-45774: Fix SQLite load extension autodetection (GH-29659)
authorErlend Egeberg Aasland <erlend.aasland@innova.no>
Sat, 20 Nov 2021 14:02:52 +0000 (15:02 +0100)
committerGitHub <noreply@github.com>
Sat, 20 Nov 2021 14:02:52 +0000 (15:02 +0100)
configure
configure.ac
pyconfig.h.in

index 9340cb072199c363373ff3d0303930b85a9e2b23..dec3aa0586b83585f54b9867b76162df7b2deae5 100755 (executable)
--- a/configure
+++ b/configure
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_load_extension" >&5
 $as_echo "$ac_cv_lib_sqlite3_sqlite3_load_extension" >&6; }
 if test "x$ac_cv_lib_sqlite3_sqlite3_load_extension" = xyes; then :
-  cat >>confdefs.h <<_ACEOF
-#define HAVE_LIBSQLITE3 1
-_ACEOF
-
-  LIBS="-lsqlite3 $LIBS"
-
+  have_sqlite3_load_extension=yes
+else
+  have_sqlite3_load_extension=no
 fi
 
 
index 924659713e47478952225826f0b3076d62526455..f4adab19d6138c6392d9cc32361dcf457751dd77 100644 (file)
@@ -3196,7 +3196,9 @@ AC_CHECK_HEADER([sqlite3.h], [
       ], [])
     ], [have_supported_sqlite3=yes], [have_supported_sqlite3=no])
   ], [have_sqlite3=no])
-  AC_CHECK_LIB([sqlite3], [sqlite3_load_extension])
+  AC_CHECK_LIB([sqlite3], [sqlite3_load_extension],
+               [have_sqlite3_load_extension=yes],
+               [have_sqlite3_load_extension=no])
 ])
 
 AS_VAR_COPY([CFLAGS], [save_CFLAGS])
index 0cc593fdfc569e7a34aae53dcb6fe7442eed4443..b8f63955e3139c555253ea8bad4a1cb22c72548d 100644 (file)
 /* Define to 1 if you have the `sendfile' library (-lsendfile). */
 #undef HAVE_LIBSENDFILE
 
-/* Define to 1 if you have the `sqlite3' library (-lsqlite3). */
-#undef HAVE_LIBSQLITE3
-
 /* Define to 1 if you have the <libutil.h> header file. */
 #undef HAVE_LIBUTIL_H