diff options
Diffstat (limited to 'configure-linemacros.patch')
-rw-r--r-- | configure-linemacros.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/configure-linemacros.patch b/configure-linemacros.patch new file mode 100644 index 000000000000..8c03082157a4 --- /dev/null +++ b/configure-linemacros.patch @@ -0,0 +1,27 @@ +--- sqlite-src-3370000/configure.ac.old 2021-12-05 23:28:16.292028632 +0300 ++++ sqlite-src-3370000/configure.ac 2021-12-05 23:28:20.398758808 +0300 +@@ -577,6 +577,24 @@ + AC_SUBST(USE_AMALGAMATION) + + ######### ++# By default, amalgamation sqlite3.c will have #line directives. ++# This is a build option not shown by ./configure --help ++# To control it, use configure option: amalgamation_line_macros=? ++# where ? is no to suppress #line directives or yes to create them. ++AMALGAMATION_LINE_MACROS=--linemacros=1 ++AC_ARG_VAR(amalgamation_line_macros,) ++AC_SUBST(AMALGAMATION_LINE_MACROS) ++if test "${amalgamation_line_macros+set}" = set; then : ++ enableval=$amalgamation_line_macros; ++fi ++if test "${amalgamation_line_macros}" = "yes" ; then ++ AMALGAMATION_LINE_MACROS=--linemacros=1 ++fi ++if test "${amalgamation_line_macros}" = "no" ; then ++ AMALGAMATION_LINE_MACROS=--linemacros=0 ++fi ++ ++######### + # Look for zlib. Only needed by extensions and by the sqlite3.exe shell + AC_CHECK_HEADERS(zlib.h) + AC_SEARCH_LIBS(deflate, z, [HAVE_ZLIB="-DSQLITE_HAVE_ZLIB=1"], [HAVE_ZLIB=""]) |