Node:Pretty Help Strings, Next:Site Details, Previous:Package Options, Up:Site Configuration
Properly formatting the help strings which are used in
AC_ARG_WITH (see External Software) and AC_ARG_ENABLE
(see Package Options) can be challenging.  Specifically, you want
your own help strings to line up in the appropriate columns of
configure --help just like the standard Autoconf help
strings do.  This is the purpose of the AC_HELP_STRING macro.
| AC_HELP_STRING (left-hand-side, right-hand-side) | Macro | 
| Expands into an help string that looks pretty when the user executes
 AC_DEFUN(TEST_MACRO,
[AC_ARG_WITH(foo,
             AC_HELP_STRING([--with-foo],
                            [use foo (default is NO)]),
             ac_cv_use_foo=$withval, ac_cv_use_foo=no),
AC_CACHE_CHECK(whether to use foo,
               ac_cv_use_foo, ac_cv_use_foo=no)])
Please note that the call to  --enable and --with options recognized: --with-foo use foo (default is NO) The  AC_DEFUN(MY_ARG_WITH,
[AC_ARG_WITH([$1],
             AC_HELP_STRING([--with-$1], [use $1 (default is $2)]),
             ac_cv_use_$1=$withval, ac_cv_use_$1=no),
AC_CACHE_CHECK(whether to use $1, ac_cv_use_$1, ac_cv_use_$1=$2)])
 |