summaryrefslogtreecommitdiffstats
path: root/contrib/groff/aclocal.m4
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2001-04-17 12:12:05 +0000
committerru <ru@FreeBSD.org>2001-04-17 12:12:05 +0000
commit0e0a0e6429c7113acf15c4c94bd5fe94c45f9e99 (patch)
treef3137c4283de8869ebcae1dd0fe43f590276c1dc /contrib/groff/aclocal.m4
parenta812d8b090bc4edc23150bff257717b24f282e41 (diff)
downloadFreeBSD-src-0e0a0e6429c7113acf15c4c94bd5fe94c45f9e99.zip
FreeBSD-src-0e0a0e6429c7113acf15c4c94bd5fe94c45f9e99.tar.gz
Virgin import of FSF groff v1.17
Diffstat (limited to 'contrib/groff/aclocal.m4')
-rw-r--r--contrib/groff/aclocal.m416
1 files changed, 10 insertions, 6 deletions
diff --git a/contrib/groff/aclocal.m4 b/contrib/groff/aclocal.m4
index 1cd92ce..34ee4f1 100644
--- a/contrib/groff/aclocal.m4
+++ b/contrib/groff/aclocal.m4
@@ -1,5 +1,5 @@
dnl Autoconf macros for groff.
-dnl Copyright (C) 1989, 1990, 1991, 1992, 1995 Free Software Foundation, Inc.
+dnl Copyright (C) 1989-1995, 2001 Free Software Foundation, Inc.
dnl
dnl This file is part of groff.
dnl
@@ -129,15 +129,12 @@ AC_LANG_RESTORE])dnl
dnl
dnl
AC_DEFUN(GROFF_SYS_ERRLIST,
-[AC_LANG_SAVE
-AC_LANG_CPLUSPLUS
-AC_MSG_CHECKING([for sys_errlist[] in <errno.h> or <stdio.h>])
+[AC_MSG_CHECKING([for sys_errlist[] in <errno.h> or <stdio.h>])
AC_TRY_COMPILE([#include <errno.h>
#include <stdio.h>],
[int k; k = (int)sys_errlist[0];],
AC_MSG_RESULT(yes);AC_DEFINE(HAVE_SYS_ERRLIST),
-AC_MSG_RESULT(no))
-AC_LANG_RESTORE])dnl
+AC_MSG_RESULT(no))])dnl
dnl
dnl
AC_DEFUN(GROFF_OSFCN_H,
@@ -238,6 +235,13 @@ if test -z "$PAGE"; then
descfile=$prefix/share/groff/font/devps/DESC
elif test -r $prefix/lib/groff/font/devps/DESC; then
descfile=$prefix/lib/groff/font/devps/DESC
+ else
+ for f in $prefix/share/groff/*/font/devps/DESC; do
+ if test -r $f; then
+ descfile=$f
+ break
+ fi
+ done
fi
if test -n "$descfile" \
&& grep "^paperlength 841890" $descfile >/dev/null 2>&1; then
OpenPOWER on IntegriCloud