There is no reference to THREAD_SUPPORT outside configure, and it is never set, so remove it.
Attach a file by drag & drop or click to upload