--- configure.orig 2021-02-19 02:35:17.000000000 +1000 +++ configure 2021-12-29 10:09:11.642380000 +1000 @@ -6342,6 +6342,14 @@ case $host_os in + bsdsunix*) + + # -kthread: BSDSUniX kernel threads (preferred to -pthread since SMP-able) + # lthread: LinuxThreads port on BSDSUniX (also preferred to -pthread) + + ax_pthread_flags="-kthread lthread $ax_pthread_flags" + ;; + freebsd*) # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)