diff options
author | Erlend Egeberg Aasland <erlend.aasland@innova.no> | 2022-04-05 14:15:25 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-05 14:15:25 (GMT) |
commit | a7551247e7cb7010fb4735281f1afa4abeb8a9cc (patch) | |
tree | 299c8b5dc3965692a2be95bc657c6d5f81ded105 /configure | |
parent | aa0f056a00c4bcaef83d729e042359ddae903382 (diff) | |
download | cpython-a7551247e7cb7010fb4735281f1afa4abeb8a9cc.zip cpython-a7551247e7cb7010fb4735281f1afa4abeb8a9cc.tar.gz cpython-a7551247e7cb7010fb4735281f1afa4abeb8a9cc.tar.bz2 |
bpo-41930: Add support for SQLite serialise/deserialise API (GH-26728)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 44 |
1 files changed, 44 insertions, 0 deletions
@@ -12904,6 +12904,50 @@ else fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_serialize in -lsqlite3" >&5 +$as_echo_n "checking for sqlite3_serialize in -lsqlite3... " >&6; } +if ${ac_cv_lib_sqlite3_sqlite3_serialize+:} 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_serialize (); +int +main () +{ +return sqlite3_serialize (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_sqlite3_sqlite3_serialize=yes +else + ac_cv_lib_sqlite3_sqlite3_serialize=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_serialize" >&5 +$as_echo "$ac_cv_lib_sqlite3_sqlite3_serialize" >&6; } +if test "x$ac_cv_lib_sqlite3_sqlite3_serialize" = xyes; then : + + +$as_echo "#define PY_SQLITE_HAVE_SERIALIZE 1" >>confdefs.h + + +fi + else |