]> git.draconx.ca Git - cdecl99.git/commit
Don't run configure tests for threading if disabled.
authorNick Bowler <nbowler@draconx.ca>
Fri, 19 Jan 2024 05:14:02 +0000 (00:14 -0500)
committerNick Bowler <nbowler@draconx.ca>
Fri, 19 Jan 2024 05:20:16 +0000 (00:20 -0500)
commit0c3d696d84c1d76482d83e76e4c2b4218b028f1f
tree5ef60312fb70222d42b822968726e2dca66cb8b1
parentc5a45174d224bf1fe6510316aef835563b9db94f
Don't run configure tests for threading if disabled.

If the user passes --disable-threads, we shouldn't run all the
configure tests to probe threading system characteristics.

Like with the conditional NLS bits, we create a local "dx-threadlib"
module which uses conditional dependencies to pull in the actual
threading modules.

We additionally have to monkey patch gl_MBRTOWC which hoists the
threading library probes out of the conditional, not so great
(we have disabled the multithread support in gnulib's mbrtowc
replacement anyway) -- this can be done in the new module too.
lib/local/modules/dx-threadlib [new file with mode: 0644]
m4/gnulib-cache.m4