Fossil SCM
Make readline/editline support actually work (HAVE_READLINE/HAVE_EDITLINE defines were missing)
Commit
23c54c0106761ab02ba80845320d1d9cc301ca9c
Parent
134f7fd1ce88721…
1 file changed
+2
M
auto.def
+2
| --- auto.def | ||
| +++ auto.def | ||
| @@ -257,13 +257,15 @@ | ||
| 257 | 257 | |
| 258 | 258 | if {[opt-bool lineedit]} { |
| 259 | 259 | # Need readline-compatible line editing |
| 260 | 260 | cc-with {-includes stdio.h} { |
| 261 | 261 | if {[cc-check-includes readline/readline.h] && [cc-check-function-in-lib readline readline]} { |
| 262 | + define-append EXTRA_CFLAGS -DHAVE_READLINE | |
| 262 | 263 | msg-result "Using readline for line editing" |
| 263 | 264 | } elseif {[cc-check-includes editline/readline.h] && [cc-check-function-in-lib readline edit]} { |
| 264 | 265 | define-feature editline |
| 266 | + define-append EXTRA_CFLAGS -DHAVE_EDITLINE | |
| 265 | 267 | msg-result "Using editline for line editing" |
| 266 | 268 | } |
| 267 | 269 | } |
| 268 | 270 | } |
| 269 | 271 | |
| 270 | 272 |
| --- auto.def | |
| +++ auto.def | |
| @@ -257,13 +257,15 @@ | |
| 257 | |
| 258 | if {[opt-bool lineedit]} { |
| 259 | # Need readline-compatible line editing |
| 260 | cc-with {-includes stdio.h} { |
| 261 | if {[cc-check-includes readline/readline.h] && [cc-check-function-in-lib readline readline]} { |
| 262 | msg-result "Using readline for line editing" |
| 263 | } elseif {[cc-check-includes editline/readline.h] && [cc-check-function-in-lib readline edit]} { |
| 264 | define-feature editline |
| 265 | msg-result "Using editline for line editing" |
| 266 | } |
| 267 | } |
| 268 | } |
| 269 | |
| 270 |
| --- auto.def | |
| +++ auto.def | |
| @@ -257,13 +257,15 @@ | |
| 257 | |
| 258 | if {[opt-bool lineedit]} { |
| 259 | # Need readline-compatible line editing |
| 260 | cc-with {-includes stdio.h} { |
| 261 | if {[cc-check-includes readline/readline.h] && [cc-check-function-in-lib readline readline]} { |
| 262 | define-append EXTRA_CFLAGS -DHAVE_READLINE |
| 263 | msg-result "Using readline for line editing" |
| 264 | } elseif {[cc-check-includes editline/readline.h] && [cc-check-function-in-lib readline edit]} { |
| 265 | define-feature editline |
| 266 | define-append EXTRA_CFLAGS -DHAVE_EDITLINE |
| 267 | msg-result "Using editline for line editing" |
| 268 | } |
| 269 | } |
| 270 | } |
| 271 | |
| 272 |