AC_ARG_ENABLE([bold-man-page-references],
[AS_HELP_STRING([--disable-bold-man-page-references],
- [When generating man pages, do not apply bold style around any
- references like name(1) etc.])],
+ [When generating man pages, or displaying --help, do not apply bold style
+ around any references like name(1) or --option references etc.])],
[gl_bold_manpages=yes ;
case $enableval in
no|yes) gl_bold_manpages=$enableval ;;
esac],
[gl_bold_manpages=yes]
)
+if test "$gl_bold_manpages" != no; then
+ AC_DEFINE([BOLD_MAN_REFS], [1], [Whether to markup references as bold])
+fi
AM_CONDITIONAL([BOLD_MAN_REFS], [test "$gl_bold_manpages" != no])
AC_ARG_ENABLE([gcc-warnings],
url_program, (int) anchor_len, option_text);
}
fputs ("\a", stdout);
+#ifdef BOLD_MAN_REFS
+ /* Note help2man strips this and will reinstate with --bold-refs. */
+ fputs ("\033[1m", stdout);
+#endif
fwrite (option_text, 1, desc_text - option_text, stdout);
+#ifdef BOLD_MAN_REFS
+ fputs ("\033[0m", stdout);
+#endif
fputs ("\033]8;;\a", stdout);
fputs (desc_text, stdout);