Skip to content

Commit 85ed55d

Browse files
committed
More informative output for the pthread feature test.
1 parent 0b7d0b6 commit 85ed55d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

autosetup/sqlite-config.tcl

+4-1
Original file line numberDiff line numberDiff line change
@@ -690,6 +690,7 @@ proc sqlite-handle-threadsafe {} {
690690
define LDFLAGS_PTHREAD ""
691691
set enable 0
692692
proj-if-opt-truthy threadsafe {
693+
msg-result "Checking for libs..."
693694
if {[proj-check-function-in-lib pthread_create pthread]
694695
&& [proj-check-function-in-lib pthread_mutexattr_init pthread]} {
695696
set enable 1
@@ -698,11 +699,13 @@ proc sqlite-handle-threadsafe {} {
698699
undefine lib_pthread_mutexattr_init
699700
} elseif {[proj-opt-was-provided threadsafe]} {
700701
user-error "Missing required pthread libraries. Use --disable-threadsafe to disable this check."
702+
} else {
703+
msg-result "pthread support not detected"
701704
}
702705
# Recall that LDFLAGS_PTHREAD might be empty even if pthreads if
703706
# found because it's in -lc on some platforms.
704707
} {
705-
msg-result no
708+
msg-result "Disabled using --disable-threadsafe"
706709
}
707710
sqlite-add-feature-flag -DSQLITE_THREADSAFE=${enable}
708711
return $enable

0 commit comments

Comments
 (0)