Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Don't pollute pyconfig.h with unneeded HAVE_SQLITE_H
  • Loading branch information
Erlend E. Aasland committed Nov 9, 2021
commit 9bc5d7b5353a753f5e6fd9fb125fb4b1b5b6cc6d
8 changes: 1 addition & 7 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -10762,13 +10762,8 @@ fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_decimal_contextvar" >&5
$as_echo "$with_decimal_contextvar" >&6; }

for ac_header in sqlite3.h
do :
ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
if test "x$ac_cv_header_sqlite3_h" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_SQLITE3_H 1
_ACEOF

save_LIBS=$LIBS
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open_v2 in -lsqlite3" >&5
Expand Down Expand Up @@ -10882,7 +10877,6 @@ fi

fi

done


# Check for support for loadable sqlite extensions
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -3069,7 +3069,7 @@ fi
AC_MSG_RESULT($with_decimal_contextvar)

dnl Check for SQLite library
AC_CHECK_HEADERS([sqlite3.h], [
AC_CHECK_HEADER([sqlite3.h], [
AS_VAR_COPY([save_LIBS], [LIBS])
AC_CHECK_LIB([sqlite3], [sqlite3_open_v2], [
AC_COMPILE_IFELSE([
Expand Down
3 changes: 0 additions & 3 deletions pyconfig.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -1031,9 +1031,6 @@
/* Define to 1 if you have the `splice' function. */
#undef HAVE_SPLICE

/* Define to 1 if you have the <sqlite3.h> header file. */
#undef HAVE_SQLITE3_H

/* Define if your compiler provides ssize_t */
#undef HAVE_SSIZE_T

Expand Down