[Python-checkins] gh-92547: Purge sqlite3_enable_shared_cache() detection from configure (#101873)
erlend-aasland
webhook-mailer at python.org
Mon Feb 13 07:37:11 EST 2023
https://github.com/python/cpython/commit/2db2c4b45501eebef5b3ff89118554bd5eb92ed4
commit: 2db2c4b45501eebef5b3ff89118554bd5eb92ed4
branch: main
author: Erlend E. Aasland <erlend.aasland at protonmail.com>
committer: erlend-aasland <erlend.aasland at protonmail.com>
date: 2023-02-13T13:36:42+01:00
summary:
gh-92547: Purge sqlite3_enable_shared_cache() detection from configure (#101873)
files:
M configure
M configure.ac
diff --git a/configure b/configure
index 97694c602d1c..35088f9e5caf 100755
--- a/configure
+++ b/configure
@@ -13689,57 +13689,6 @@ fi
- { $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 :
diff --git a/configure.ac b/configure.ac
index 09369b985b33..1ab48e0d1c16 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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])
More information about the Python-checkins
mailing list