]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-92547: Purge sqlite3_enable_shared_cache() detection from configure (#101873)
authorErlend E. Aasland <erlend.aasland@protonmail.com>
Mon, 13 Feb 2023 12:36:42 +0000 (13:36 +0100)
committerGitHub <noreply@github.com>
Mon, 13 Feb 2023 12:36:42 +0000 (13:36 +0100)
configure
configure.ac

index 97694c602d1cc8b5ac6ae4ad7f0eb7274681c984..35088f9e5cafd6fd0e809e10d848136a86e514a4 100755 (executable)
--- a/configure
+++ b/configure
 
 
 
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_enable_shared_cache in -lsqlite3" >&5
-$as_echo_n "checking for sqlite3_enable_shared_cache in -lsqlite3... " >&6; }
-if ${ac_cv_lib_sqlite3_sqlite3_enable_shared_cache+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  ac_check_lib_save_LIBS=$LIBS
-LIBS="-lsqlite3  $LIBS"
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-
-/* Override any GCC internal prototype to avoid an error.
-   Use char because int might match the return type of a GCC
-   builtin and then its argument prototype would still apply.  */
-#ifdef __cplusplus
-extern "C"
-#endif
-char sqlite3_enable_shared_cache ();
-int
-main ()
-{
-return sqlite3_enable_shared_cache ();
-  ;
-  return 0;
-}
-_ACEOF
-if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_sqlite3_sqlite3_enable_shared_cache=yes
-else
-  ac_cv_lib_sqlite3_sqlite3_enable_shared_cache=no
-fi
-rm -f core conftest.err conftest.$ac_objext \
-    conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_enable_shared_cache" >&5
-$as_echo "$ac_cv_lib_sqlite3_sqlite3_enable_shared_cache" >&6; }
-if test "x$ac_cv_lib_sqlite3_sqlite3_enable_shared_cache" = xyes; then :
-  cat >>confdefs.h <<_ACEOF
-#define HAVE_LIBSQLITE3 1
-_ACEOF
-
-  LIBS="-lsqlite3 $LIBS"
-
-else
-
-    have_supported_sqlite3=no
-
-fi
-
-
-
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_progress_handler in -lsqlite3" >&5
 $as_echo_n "checking for sqlite3_progress_handler in -lsqlite3... " >&6; }
 if ${ac_cv_lib_sqlite3_sqlite3_progress_handler+:} false; then :
index 09369b985b33f683bee3c01195e26c2bb7b7ca6d..1ab48e0d1c160a8928793605ec47d9b1bd955942 100644 (file)
@@ -3867,7 +3867,6 @@ dnl hence CPPFLAGS instead of CFLAGS.
       PY_CHECK_SQLITE_FUNC([sqlite3_column_decltype])
       PY_CHECK_SQLITE_FUNC([sqlite3_column_double])
       PY_CHECK_SQLITE_FUNC([sqlite3_complete])
-      PY_CHECK_SQLITE_FUNC([sqlite3_enable_shared_cache])
       PY_CHECK_SQLITE_FUNC([sqlite3_progress_handler])
       PY_CHECK_SQLITE_FUNC([sqlite3_result_double])
       PY_CHECK_SQLITE_FUNC([sqlite3_set_authorizer])