Skip to content

Commit 9bc5d7b

Browse files
author
Erlend E. Aasland
committed
Don't pollute pyconfig.h with unneeded HAVE_SQLITE_H
1 parent 8d55894 commit 9bc5d7b

File tree

3 files changed

+2
-11
lines changed

3 files changed

+2
-11
lines changed

configure

+1-7
Original file line numberDiff line numberDiff line change
@@ -10762,13 +10762,8 @@ fi
1076210762
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_decimal_contextvar" >&5
1076310763
$as_echo "$with_decimal_contextvar" >&6; }
1076410764

10765-
for ac_header in sqlite3.h
10766-
do :
10767-
ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
10765+
ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
1076810766
if test "x$ac_cv_header_sqlite3_h" = xyes; then :
10769-
cat >>confdefs.h <<_ACEOF
10770-
#define HAVE_SQLITE3_H 1
10771-
_ACEOF
1077210767

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

1088310878
fi
1088410879

10885-
done
1088610880

1088710881

1088810882
# Check for support for loadable sqlite extensions

configure.ac

+1-1
Original file line numberDiff line numberDiff line change
@@ -3069,7 +3069,7 @@ fi
30693069
AC_MSG_RESULT($with_decimal_contextvar)
30703070

30713071
dnl Check for SQLite library
3072-
AC_CHECK_HEADERS([sqlite3.h], [
3072+
AC_CHECK_HEADER([sqlite3.h], [
30733073
AS_VAR_COPY([save_LIBS], [LIBS])
30743074
AC_CHECK_LIB([sqlite3], [sqlite3_open_v2], [
30753075
AC_COMPILE_IFELSE([

pyconfig.h.in

-3
Original file line numberDiff line numberDiff line change
@@ -1031,9 +1031,6 @@
10311031
/* Define to 1 if you have the `splice' function. */
10321032
#undef HAVE_SPLICE
10331033

1034-
/* Define to 1 if you have the <sqlite3.h> header file. */
1035-
#undef HAVE_SQLITE3_H
1036-
10371034
/* Define if your compiler provides ssize_t */
10381035
#undef HAVE_SSIZE_T
10391036

0 commit comments

Comments
 (0)