1 dnl DBUS_PY_ADD_RST2HTMLFLAG(FLAG)
2 dnl checks whether rst2html supports the given flag, and if so, adds
3 dnl it to $RST2HTMLFLAGS. Same as JH_ADD_CFLAG, really.
4 AC_DEFUN([DBUS_PY_ADD_RST2HTMLFLAG],
6 case " $RST2HTMLFLAGS " in
7 *@<:@\ \ @:>@$1@<:@\ \ @:>@*)
10 save_RST2HTMLFLAGS="$RST2HTMLFLAGS"
11 RST2HTMLFLAGS="$RST2HTMLFLAGS $1"
12 AC_MSG_CHECKING([whether [$]RST2HTML understands $1])
13 if $RST2HTML --strict $RST2HTMLFLAGS /dev/null > /dev/null 2>/dev/null; then
18 AC_MSG_RESULT($dbuspy_has_option)
19 if test $dbuspy_has_option = no; then
20 RST2HTMLFLAGS="$save_RST2HTMLFLAGS"