summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4')
-rw-r--r--m4/groff.m43
1 files changed, 3 insertions, 0 deletions
diff --git a/m4/groff.m4 b/m4/groff.m4
index 13772dc1b..4f08cb98e 100644
--- a/m4/groff.m4
+++ b/m4/groff.m4
@@ -778,6 +778,9 @@ AC_DEFUN([GROFF_PAGE],
[AC_MSG_CHECKING([default paper size])
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