Update of bug #53271 (project groff):

                  Status:                    None => In Progress            
             Assigned to:                    None => gbranden               
                 Summary: m4/groff.m4: improve search for paper size on
machines without domain names => m4/groff.m4: improve search for paper size on
machines using /etc/papersize

    _______________________________________________________

Follow-up Comment #4:

Why not just do this?

If /etc/papersize exists, use it.


diff --git a/m4/groff.m4 b/m4/groff.m4
index 13772dc1..b9f2ef45 100644
--- a/m4/groff.m4
+++ b/m4/groff.m4
@@ -776,14 +776,18 @@ AC_DEFUN([GROFF_BROKEN_SPOOLER_FLAGS],
 
 AC_DEFUN([GROFF_PAGE],
   [AC_MSG_CHECKING([default paper size])
-   groff_prefix="$prefix"
+   groff_prefix=$prefix
    test "x$prefix" = "xNONE" && groff_prefix=$ac_default_prefix
+   if test -z "$PAGE" && test -r /etc/papersize; then
+     PAGE=`cat /etc/papersize`
+   fi
+
    if test -z "$PAGE"; then
      descfile=
      if test -r "$groff_prefix"/share/groff/font/devps/DESC; then
-       descfile="$groff_prefix"/share/groff/font/devps/DESC
+       descfile=$groff_prefix/share/groff/font/devps/DESC
      elif test -r "$groff_prefix"/lib/groff/font/devps/DESC; then
-       descfile="$groff_prefix"/lib/groff/font/devps/DESC
+       descfile=$groff_prefix/lib/groff/font/devps/DESC
      else
        for f in "$groff_prefix"/share/groff/*/font/devps/DESC; do
         if test -r "$f"; then


(I also reverted some variable quoting that wasn't needed; thanks to Colin
Watson for the helpful citations.)

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?53271>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/


_______________________________________________
bug-groff mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-groff

Reply via email to