From f0291410ce950913593d5ae6c9fd4fabd5eaaa3f Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Tue, 31 Jul 2007 18:04:16 +0100 Subject: Complete the .m4 renaming --- m4/dbus-py-add-rst2htmlflag.m4 | 23 +++++++++++++++++++++++ m4/dbuspy-add-rst2htmlflag.m4 | 23 ----------------------- 2 files changed, 23 insertions(+), 23 deletions(-) create mode 100644 m4/dbus-py-add-rst2htmlflag.m4 delete mode 100644 m4/dbuspy-add-rst2htmlflag.m4 diff --git a/m4/dbus-py-add-rst2htmlflag.m4 b/m4/dbus-py-add-rst2htmlflag.m4 new file mode 100644 index 0000000..88b4de0 --- /dev/null +++ b/m4/dbus-py-add-rst2htmlflag.m4 @@ -0,0 +1,23 @@ +dnl DBUS_PY_ADD_RST2HTMLFLAG(FLAG) +dnl checks whether rst2html supports the given flag, and if so, adds +dnl it to $RST2HTMLFLAGS. Same as JH_ADD_CFLAG, really. +AC_DEFUN([DBUS_PY_ADD_RST2HTMLFLAG], +[ +case " $RST2HTMLFLAGS " in +*@<:@\ \ @:>@$1@<:@\ \ @:>@*) + ;; +*) + save_RST2HTMLFLAGS="$RST2HTMLFLAGS" + RST2HTMLFLAGS="$RST2HTMLFLAGS $1" + AC_MSG_CHECKING([whether [$]RST2HTML understands $1]) + if $RST2HTML --strict $RST2HTMLFLAGS /dev/null > /dev/null 2>/dev/null; then + dbuspy_has_option=yes + else + dbuspy_has_option=no + fi + AC_MSG_RESULT($dbuspy_has_option) + if test $dbuspy_has_option = no; then + RST2HTMLFLAGS="$save_RST2HTMLFLAGS" + fi + ;; +esac]) diff --git a/m4/dbuspy-add-rst2htmlflag.m4 b/m4/dbuspy-add-rst2htmlflag.m4 deleted file mode 100644 index 88b4de0..0000000 --- a/m4/dbuspy-add-rst2htmlflag.m4 +++ /dev/null @@ -1,23 +0,0 @@ -dnl DBUS_PY_ADD_RST2HTMLFLAG(FLAG) -dnl checks whether rst2html supports the given flag, and if so, adds -dnl it to $RST2HTMLFLAGS. Same as JH_ADD_CFLAG, really. -AC_DEFUN([DBUS_PY_ADD_RST2HTMLFLAG], -[ -case " $RST2HTMLFLAGS " in -*@<:@\ \ @:>@$1@<:@\ \ @:>@*) - ;; -*) - save_RST2HTMLFLAGS="$RST2HTMLFLAGS" - RST2HTMLFLAGS="$RST2HTMLFLAGS $1" - AC_MSG_CHECKING([whether [$]RST2HTML understands $1]) - if $RST2HTML --strict $RST2HTMLFLAGS /dev/null > /dev/null 2>/dev/null; then - dbuspy_has_option=yes - else - dbuspy_has_option=no - fi - AC_MSG_RESULT($dbuspy_has_option) - if test $dbuspy_has_option = no; then - RST2HTMLFLAGS="$save_RST2HTMLFLAGS" - fi - ;; -esac]) -- cgit v1.2.1