mirror of
https://github.com/void-linux/void-packages.git
synced 2025-10-11 21:15:12 +02:00
25 lines
972 B
Diff
25 lines
972 B
Diff
--- a/autosetup/sqlite-config.tcl
|
|
+++ b/autosetup/sqlite-config.tcl
|
|
@@ -1076,6 +1076,10 @@ proc sqlite-check-line-editing {} {
|
|
# set the -I to one dir up from that because our sources
|
|
# #include <readline/readline.h> or <editline/readline.h>.
|
|
set v [file dirname $v]
|
|
+ } elseif {[string match */editline $v]} {
|
|
+ # ditto, but set to EDITLINE
|
|
+ set v [file dirname $v]
|
|
+ set editLibDef HAVE_EDITLINE
|
|
}
|
|
proj-opt-set with-readline-cflags "-I$v"
|
|
}
|
|
@@ -1111,6 +1115,11 @@ proc sqlite-check-line-editing {} {
|
|
}
|
|
} elseif {"" ne $rlInc && ![string match *-I* $rlInc]} {
|
|
proj-fatal "Argument to --with-readline-cflags is intended to be CFLAGS and contain -I..."
|
|
+ } else {
|
|
+ set v [string range $rlInc 2 end]
|
|
+ if {[file exists [file join $v "editline/readline.h"]]} {
|
|
+ set editLibDef HAVE_EDITLINE
|
|
+ }
|
|
}
|
|
|
|
# If readline.h was found/specified, look for lib(readline|edit)...
|