]> granicus.if.org Git - re2c/commitdiff
configure.ac: check for 'rst2man' as well as 'rst2man.py'.
authorUlya Trofimovich <skvadrik@gmail.com>
Wed, 6 Jan 2016 09:21:57 +0000 (09:21 +0000)
committerUlya Trofimovich <skvadrik@gmail.com>
Wed, 6 Jan 2016 09:21:57 +0000 (09:21 +0000)
Fixes bug #133 "rst2man.py depreciated in RHEL7".

re2c/configure.ac

index e77467e5da935904335952dd3135d6d36c518bd1..2bef2bb791b8264f16f87bbc65a0f83a2cbab18d 100644 (file)
@@ -18,7 +18,7 @@ AC_SUBST(PACKAGE_RELEASE, ${PACKAGE_RELEASE:-1})
 AC_ARG_ENABLE([docs], [AS_HELP_STRING([--enable-docs], [regenerate manpage])])
 AM_CONDITIONAL([REBUILD_DOCS], [test "x$enable_docs" = "xyes"])
 AM_COND_IF([REBUILD_DOCS], [
-    AC_CHECK_PROG(RST2MAN, rst2man.py, yes, no)
+    AC_CHECK_PROGS(RST2MAN, [rst2man rst2man.py], no)
     AS_IF([test "x$RST2MAN" = "xno"], [
         AC_MSG_ERROR([need rst2man.py for --enable-docs])
     ])