[geany/geany] ea79be: autotools: Remove useless code

Colomban Wendling git-noreply at xxxxx
Fri Feb 20 21:28:26 UTC 2015


Branch:      refs/heads/master
Author:      Colomban Wendling <ban at herbesfolles.org>
Committer:   Colomban Wendling <ban at herbesfolles.org>
Date:        Fri, 20 Feb 2015 21:28:26 UTC
Commit:      ea79be32f23c1d6a9687da2da15746f8f8e08784
             https://github.com/geany/geany/commit/ea79be32f23c1d6a9687da2da15746f8f8e08784

Log Message:
-----------
autotools: Remove useless code

AC_PATH_PROG supports overrides of its variable, so there is no need
for manual handling.


Modified Paths:
--------------
    m4/geany-docutils.m4
    m4/geany-doxygen.m4

Modified: m4/geany-docutils.m4
6 lines changed, 2 insertions(+), 4 deletions(-)
===================================================================
@@ -33,8 +33,7 @@ AC_DEFUN([GEANY_CHECK_DOCUTILS_HTML],
 	AS_IF([test "x$geany_enable_html_docs" != "xno"],
 	[
 dnl TODO: try rst2html.py first
-		AS_IF([test -z "$RST2HTML"], [RST2HTML="rst2html"])
-		AC_PATH_PROG([RST2HTML], [$RST2HTML], [no])
+		AC_PATH_PROG([RST2HTML], [rst2html], [no])
 		AS_IF([test "x$RST2HTML" != "xno"],
 			[geany_enable_html_docs="yes"],
 			[test "x$geany_enable_html_docs" = "xyes"],
@@ -62,8 +61,7 @@ AC_DEFUN([GEANY_CHECK_DOCUTILS_PDF],
 	AC_ARG_VAR([RST2PDF], [Path to Docutils rst2pdf executable])
 	AS_IF([test "x$geany_enable_pdf_docs" != "xno"],
 	[
-		AS_IF([test -z "$RST2PDF"], [RST2PDF="rst2pdf"])
-		AC_PATH_PROG([RST2PDF], [$RST2PDF], [no])
+		AC_PATH_PROG([RST2PDF], [rst2pdf], [no])
 		AS_IF([test "x$RST2PDF" != "xno"],
 			[geany_enable_pdf_docs="yes"],
 			[test "x$geany_enable_pdf_docs" = "xyes"],


Modified: m4/geany-doxygen.m4
4 lines changed, 1 insertions(+), 3 deletions(-)
===================================================================
@@ -13,9 +13,7 @@ AC_DEFUN([GEANY_CHECK_DOXYGEN],
 
 	AS_IF([test "x$geany_with_doxygen" != "xno"],
 	[
-		AS_IF([test "x$DOXYGEN" != "x"],
-			[geany_doxygen_path="$DOXYGEN"], [geany_doxygen_path="doxygen"])
-		AC_PATH_PROG([DOXYGEN], [$geany_doxygen_path], [no])
+		AC_PATH_PROG([DOXYGEN], [doxygen], [no])
 		AS_IF([test "x$DOXYGEN" != "xno"],
 			  [geany_with_doxygen=yes],
 			  [test "x$geany_with_doxygen" = xyes],



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Commits mailing list