Also sprach Olaf Weber:
} Bill Wendling writes:
} 
} > Hi all,
} > I want to produce a help string like this:
} 
} >     --with-foo[=DIR]            Use the foo package
} 
} > (note the []s around the =DIR bit). When I use the option like this:
} 
} > AC_ARG_WITH([foo],
} >             [AC_HELP_STRING([--with-foo[=DIR]],
} >                             [Use the foo package])],,)
} 
} > It produces:
} 
} >     --with-foo=DIR            Use the foo package
} 
} > Is there a way to make it produce the []s that I want?
} 
} I think quadrigraphs should do it: [--with-foo@<:@=DIR@:>@]
} 
They place the []s in there, but it messes up the spacing :-(. So, I get
things like:

  --with-dmalloc[=DIR]
                          Use dmalloc memory debugging aid [default=no]
  --with-zlib[=DIR] Use GNU zlib compression [default=yes]
  --with-ssl[=LIB]  Use the SSL library [default=no]
  --with-gass[=DIR] Use the GASS library [default=no]
  --with-srb[=DIR]  Use the SRB Library [default=no]
  --with-pthread[=DIR]
                          Use the Pthreads library [default=no]


-- 
|| Bill Wendling            "Real Programmers have a Snoopy Calendar
|| [EMAIL PROTECTED]    of '69 hanging on their wall"
|| Coding Simian                       -- Toon Moene


Reply via email to