gl_DISABLE_THREADS placement

2015-01-24 Thread Thien-Thi Nguyen
I understand that adding ‘gl_DISABLE_THREADS’ to configure.ac
causes module ‘threadlib’ (specifically file threadlib.m4) to
generate a configure script that runs as if ‘--disable-threads’
had been included on the command-line.  Is this correct?

My questions are:

- Where to add ‘gl_DISABLE_THREADS’?
  Some light experimentation w/

   gl_EARLY
   gl_DISABLE_THREADS
   gl_INIT

  seems to yield the desired result, but i wonder if
  i'm missing something (either now or latent).

- Is there any way to get "./configure --help" to output:

   --disable-threadsbuild without multithread safety (default)

  instead of the current:

   --disable-threadsbuild without multithread safety

  ?  This would be a (small) hint for the user, i think.

Background: GNU RCS is single-threaded, but until:

 http://lists.gnu.org/archive/html/bug-rcs/2015-01/msg0.html

there were no reported problems w/ the default-enabled state.

-- 
Thien-Thi Nguyen
   GPG key: 4C807502
   (if you're human and you know it)
  read my lisp: (responsep (questions 'technical)
   (not (via 'mailing-list)))
 => nil


signature.asc
Description: PGP signature


Re: gl_DISABLE_THREADS placement

2015-01-24 Thread Paul Eggert

Thien-Thi Nguyen wrote:

- Is there any way to get "./configure --help" to output:

--disable-threadsbuild without multithread safety (default)


Without having looked at it, I suspect you need to change Gnulib to do that.  It 
sounds like a worthwhile change.