Fossil SCM
Fossil now needs at least SQLite 3.22, so check for that
Commit
37cbd97cab783a37d6a6b948ab6933fae3c2c1d7dd659ee2fac2e6e745442457
Parent
1a95af721e467a6…
1 file changed
+4
-4
M
auto.def
+4
-4
| --- auto.def | ||
| +++ auto.def | ||
| @@ -89,17 +89,17 @@ | ||
| 89 | 89 | # the code below will append -ldl to LIBS. |
| 90 | 90 | # |
| 91 | 91 | foreach extralibs {{} {-ldl}} { |
| 92 | 92 | |
| 93 | 93 | # Locate the system SQLite by searching for sqlite3_open(). Then check |
| 94 | - # if sqlite3_prepare_v3() can be found as well. If we can find open() but | |
| 95 | - # not prepare_v3(), then the system SQLite is too old to link against | |
| 94 | + # if sqlite3_vtab_collation() can be found as well. If we can find open() but | |
| 95 | + # not vtab_collation(), then the system SQLite is too old to link against | |
| 96 | 96 | # fossil. |
| 97 | 97 | # |
| 98 | 98 | if {[check-function-in-lib sqlite3_open sqlite3 $extralibs]} { |
| 99 | - if {![check-function-in-lib sqlite3_prepare_v3 sqlite3 $extralibs]} { | |
| 100 | - user-error "system sqlite3 too old (require >= 3.20.0)" | |
| 99 | + if {![check-function-in-lib sqlite3_vtab_collation sqlite3 $extralibs]} { | |
| 100 | + user-error "system sqlite3 too old (require >= 3.22.0)" | |
| 101 | 101 | } |
| 102 | 102 | |
| 103 | 103 | # Success. Update symbols and return. |
| 104 | 104 | # |
| 105 | 105 | define USE_SYSTEM_SQLITE 1 |
| 106 | 106 |
| --- auto.def | |
| +++ auto.def | |
| @@ -89,17 +89,17 @@ | |
| 89 | # the code below will append -ldl to LIBS. |
| 90 | # |
| 91 | foreach extralibs {{} {-ldl}} { |
| 92 | |
| 93 | # Locate the system SQLite by searching for sqlite3_open(). Then check |
| 94 | # if sqlite3_prepare_v3() can be found as well. If we can find open() but |
| 95 | # not prepare_v3(), then the system SQLite is too old to link against |
| 96 | # fossil. |
| 97 | # |
| 98 | if {[check-function-in-lib sqlite3_open sqlite3 $extralibs]} { |
| 99 | if {![check-function-in-lib sqlite3_prepare_v3 sqlite3 $extralibs]} { |
| 100 | user-error "system sqlite3 too old (require >= 3.20.0)" |
| 101 | } |
| 102 | |
| 103 | # Success. Update symbols and return. |
| 104 | # |
| 105 | define USE_SYSTEM_SQLITE 1 |
| 106 |
| --- auto.def | |
| +++ auto.def | |
| @@ -89,17 +89,17 @@ | |
| 89 | # the code below will append -ldl to LIBS. |
| 90 | # |
| 91 | foreach extralibs {{} {-ldl}} { |
| 92 | |
| 93 | # Locate the system SQLite by searching for sqlite3_open(). Then check |
| 94 | # if sqlite3_vtab_collation() can be found as well. If we can find open() but |
| 95 | # not vtab_collation(), then the system SQLite is too old to link against |
| 96 | # fossil. |
| 97 | # |
| 98 | if {[check-function-in-lib sqlite3_open sqlite3 $extralibs]} { |
| 99 | if {![check-function-in-lib sqlite3_vtab_collation sqlite3 $extralibs]} { |
| 100 | user-error "system sqlite3 too old (require >= 3.22.0)" |
| 101 | } |
| 102 | |
| 103 | # Success. Update symbols and return. |
| 104 | # |
| 105 | define USE_SYSTEM_SQLITE 1 |
| 106 |