groff-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[groff] 25/115: [build]: Skip an Autoconf check if not necessary.


From: G. Branden Robinson
Subject: [groff] 25/115: [build]: Skip an Autoconf check if not necessary.
Date: Thu, 1 Jun 2023 10:46:03 -0400 (EDT)

gbranden pushed a commit to branch branden-2022-06-01
in repository groff.

commit 22941c7e813b1853fe65bf7fcd901b6d40116aa7
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Fri Apr 28 12:56:33 2023 -0500

    [build]: Skip an Autoconf check if not necessary.
    
    * m4/groff.m4 (GROFF_PNMTOPS_NOSETPAGE): Skip check if no "pnmtops"
      command was found.
    
    This commit omits an indentation update so as to clarify the change.
---
 ChangeLog   | 7 +++++++
 m4/groff.m4 | 5 +++++
 2 files changed, 12 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index c9cedd5a7..3198b900d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2023-04-28  G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       [build]: Skip an Autoconf check if not necessary.
+
+       * m4/groff.m4 (GROFF_PNMTOPS_NOSETPAGE): Skip check if no
+       "pnmtops" command was found.
+
 2023-04-06  G. Branden Robinson <g.branden.robinson@gmail.com>
 
        [doc]: Abstract document dependencies on the mom package.
diff --git a/m4/groff.m4 b/m4/groff.m4
index 3e8b38697..55f056d8d 100644
--- a/m4/groff.m4
+++ b/m4/groff.m4
@@ -479,6 +479,10 @@ AC_DEFUN([GROFF_PNMTOOLS_CAN_BE_QUIET], [
 AC_DEFUN([GROFF_PNMTOPS_NOSETPAGE], [
   AC_REQUIRE([GROFF_PNMTOOLS_CAN_BE_QUIET])
 
+  if test "$pnmtops" = missing
+  then
+    pnmtops_nosetpage=no
+  else
   pnmtops_nosetpage="pnmtops $pnmtools_quiet"
   AC_MSG_CHECKING([whether pnmtops accepts the '-nosetpage' option])
   if echo P2 2 2 255 0 1 2 0 | pnmtops -nosetpage > /dev/null 2>&1
@@ -488,6 +492,7 @@ AC_DEFUN([GROFF_PNMTOPS_NOSETPAGE], [
   else
     AC_MSG_RESULT([no])
   fi
+  fi
   AC_SUBST([pnmtops_nosetpage])
 ])
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]