Fossil SCM
Add configure option --print-minimum-sqlite-version
Commit
b9a6e1a9c9c52edc76ac458e37eda34d61e5646ab8068d6fccae5b143a39873f
Parent
07dbd17e41288c5…
1 file changed
+12
-2
M
auto.def
+12
-2
| --- auto.def | ||
| +++ auto.def | ||
| @@ -1,9 +1,7 @@ | ||
| 1 | 1 | # System autoconfiguration. Try: ./configure --help |
| 2 | 2 | |
| 3 | -use cc cc-lib | |
| 4 | - | |
| 5 | 3 | options { |
| 6 | 4 | with-openssl:path|auto|tree|none |
| 7 | 5 | => {Look for OpenSSL in the given path, automatically, in the source tree, or none} |
| 8 | 6 | with-miniz=0 => {Use miniz from the source tree} |
| 9 | 7 | with-zlib:path|auto|tree |
| @@ -17,17 +15,29 @@ | ||
| 17 | 15 | with-tcl-stubs=0 => {Enable Tcl integration via stubs library mechanism} |
| 18 | 16 | with-tcl-private-stubs=0 |
| 19 | 17 | => {Enable Tcl integration via private stubs mechanism} |
| 20 | 18 | with-mman=0 => {Enable use of POSIX memory APIs from "sys/mman.h"} |
| 21 | 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 | 22 | internal-sqlite=1 => {Don't use the internal SQLite, use the system one} |
| 23 | 23 | static=0 => {Link a static executable} |
| 24 | 24 | fusefs=1 => {Disable the Fuse Filesystem} |
| 25 | 25 | fossil-debug=0 => {Build with fossil debugging enabled} |
| 26 | 26 | no-opt=0 => {Build without optimization} |
| 27 | 27 | json=0 => {Build with fossil JSON API enabled} |
| 28 | 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 | |
| 29 | 39 | |
| 30 | 40 | # sqlite wants these types if possible |
| 31 | 41 | cc-with {-includes {stdint.h inttypes.h}} { |
| 32 | 42 | cc-check-types uint32_t uint16_t int16_t uint8_t |
| 33 | 43 | } |
| 34 | 44 |
| --- 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 |