Double square brackets in configure

Torbjorn Granlund tg at
Tue Sep 27 12:00:46 CEST 2011

Linus Nordberg <linus at> writes:

  Is there a reason for having double square brackets in the
  help strings?

I think this might be a leftover from when the strings wheren't quoted,
making double quotes necessary for getting the correct output around the
default statements.

  AFAICT m4 doesn't need that kind of "escaping" -- that's
  the whole point with separate opening and closing quotation characters.

I am not following your reasoning here.  The problem with the code
you're patching is that we get output like e.g.,

  --enable-assert         enable ASSERT checking [[default=no]]

since double quotation in the input gives double quotation in the
output.  C.f. the C statement str = "\"\"\"default=no\"\"\"\"";

You're welcome to apply your patch to the relevant repositories.


More information about the gmp-bugs mailing list