Then the correct thing to do in the non-threads case is to define it as NO, since there will only be one thread and it doesn't matter if accounting is per thread or not, right? Seems more sane than kludging in a lot of defined(PIKE_THREADS) all over the place.
/ Marcus Comstedt (ACROSS) (Hail Ilpalazzo!)
Previous text:
2003-02-10 18:42: Subject: CPU_TIME_IS_THREAD_LOCAL
If it defaults to NO in the unknown case and the accounting actually is thread local then there's a big risk that gethrvtime starts returning negative values.
The UNKNOWN case should never happen if the configure test works, but I wasn't sure enough of that. I made a fallback instead of an AC_MSG_ERROR since I thought it would be annoying if the builds fail utterly because of it.
/ Martin Stjernholm, Roxen IS