Fossil SCM

Add configure option --print-minimum-sqlite-version

danshearer 2021-03-05 12:04 trunk
Commit b9a6e1a9c9c52edc76ac458e37eda34d61e5646ab8068d6fccae5b143a39873f
1 file changed +12 -2
+12 -2
--- auto.def
+++ auto.def
@@ -1,9 +1,7 @@
11
# System autoconfiguration. Try: ./configure --help
22
3
-use cc cc-lib
4
-
53
options {
64
with-openssl:path|auto|tree|none
75
=> {Look for OpenSSL in the given path, automatically, in the source tree, or none}
86
with-miniz=0 => {Use miniz from the source tree}
97
with-zlib:path|auto|tree
@@ -17,17 +15,29 @@
1715
with-tcl-stubs=0 => {Enable Tcl integration via stubs library mechanism}
1816
with-tcl-private-stubs=0
1917
=> {Enable Tcl integration via private stubs mechanism}
2018
with-mman=0 => {Enable use of POSIX memory APIs from "sys/mman.h"}
2119
with-see=0 => {Enable the SQLite Encryption Extension (SEE)}
20
+ print-minimum-sqlite-version=0
21
+ => {print the minimum SQLite version number required, and exit}
2222
internal-sqlite=1 => {Don't use the internal SQLite, use the system one}
2323
static=0 => {Link a static executable}
2424
fusefs=1 => {Disable the Fuse Filesystem}
2525
fossil-debug=0 => {Build with fossil debugging enabled}
2626
no-opt=0 => {Build without optimization}
2727
json=0 => {Build with fossil JSON API enabled}
2828
}
29
+
30
+# Update the minimum required SQLite version number here.
31
+define MINIMUM_SQLITE_VERSION "3.35.0"
32
+
33
+if {[opt-bool print-minimum-sqlite-version]} {
34
+ puts [get-define MINIMUM_SQLITE_VERSION]
35
+ exit 0
36
+}
37
+
38
+use cc cc-lib
2939
3040
# sqlite wants these types if possible
3141
cc-with {-includes {stdint.h inttypes.h}} {
3242
cc-check-types uint32_t uint16_t int16_t uint8_t
3343
}
3444
--- auto.def
+++ auto.def
@@ -1,9 +1,7 @@
1 # System autoconfiguration. Try: ./configure --help
2
3 use cc cc-lib
4
5 options {
6 with-openssl:path|auto|tree|none
7 => {Look for OpenSSL in the given path, automatically, in the source tree, or none}
8 with-miniz=0 => {Use miniz from the source tree}
9 with-zlib:path|auto|tree
@@ -17,17 +15,29 @@
17 with-tcl-stubs=0 => {Enable Tcl integration via stubs library mechanism}
18 with-tcl-private-stubs=0
19 => {Enable Tcl integration via private stubs mechanism}
20 with-mman=0 => {Enable use of POSIX memory APIs from "sys/mman.h"}
21 with-see=0 => {Enable the SQLite Encryption Extension (SEE)}
 
 
22 internal-sqlite=1 => {Don't use the internal SQLite, use the system one}
23 static=0 => {Link a static executable}
24 fusefs=1 => {Disable the Fuse Filesystem}
25 fossil-debug=0 => {Build with fossil debugging enabled}
26 no-opt=0 => {Build without optimization}
27 json=0 => {Build with fossil JSON API enabled}
28 }
 
 
 
 
 
 
 
 
 
 
29
30 # sqlite wants these types if possible
31 cc-with {-includes {stdint.h inttypes.h}} {
32 cc-check-types uint32_t uint16_t int16_t uint8_t
33 }
34
--- auto.def
+++ auto.def
@@ -1,9 +1,7 @@
1 # System autoconfiguration. Try: ./configure --help
2
 
 
3 options {
4 with-openssl:path|auto|tree|none
5 => {Look for OpenSSL in the given path, automatically, in the source tree, or none}
6 with-miniz=0 => {Use miniz from the source tree}
7 with-zlib:path|auto|tree
@@ -17,17 +15,29 @@
15 with-tcl-stubs=0 => {Enable Tcl integration via stubs library mechanism}
16 with-tcl-private-stubs=0
17 => {Enable Tcl integration via private stubs mechanism}
18 with-mman=0 => {Enable use of POSIX memory APIs from "sys/mman.h"}
19 with-see=0 => {Enable the SQLite Encryption Extension (SEE)}
20 print-minimum-sqlite-version=0
21 => {print the minimum SQLite version number required, and exit}
22 internal-sqlite=1 => {Don't use the internal SQLite, use the system one}
23 static=0 => {Link a static executable}
24 fusefs=1 => {Disable the Fuse Filesystem}
25 fossil-debug=0 => {Build with fossil debugging enabled}
26 no-opt=0 => {Build without optimization}
27 json=0 => {Build with fossil JSON API enabled}
28 }
29
30 # Update the minimum required SQLite version number here.
31 define MINIMUM_SQLITE_VERSION "3.35.0"
32
33 if {[opt-bool print-minimum-sqlite-version]} {
34 puts [get-define MINIMUM_SQLITE_VERSION]
35 exit 0
36 }
37
38 use cc cc-lib
39
40 # sqlite wants these types if possible
41 cc-with {-includes {stdint.h inttypes.h}} {
42 cc-check-types uint32_t uint16_t int16_t uint8_t
43 }
44

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button