>From 2191713f6d145ef1c7f889fe01f08ed2b55edec8 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Mon, 21 Dec 2020 11:31:37 +0100 Subject: [PATCH 4/6] Provide minor AC_FUNC_GETMNTENT improvements from Gnulib. * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Drop support for IRIX 4 and Dynix/ptx. --- lib/autoconf/functions.m4 | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/lib/autoconf/functions.m4 b/lib/autoconf/functions.m4 index a74c6c4..001a165 100644 --- a/lib/autoconf/functions.m4 +++ b/lib/autoconf/functions.m4 @@ -891,13 +891,11 @@ AU_ALIAS([AC_GETLOADAVG], [AC_FUNC_GETLOADAVG]) # ----------------- AN_FUNCTION([getmntent], [AC_FUNC_GETMNTENT]) AC_DEFUN([AC_FUNC_GETMNTENT], -[# getmntent is in the standard C library on UNICOS, in -lsun on Irix 4, -# -lseq on Dynix/PTX, -lgen on Unixware. -AC_SEARCH_LIBS(getmntent, [sun seq gen], - [ac_cv_func_getmntent=yes - AC_DEFINE([HAVE_GETMNTENT], 1, - [Define to 1 if you have the `getmntent' function.])], - [ac_cv_func_getmntent=no]) +[ + # getmntent is in the standard C library on most systems, but in -lgen on + # Unixware. + AC_SEARCH_LIBS([getmntent], [gen]) + AC_CHECK_FUNCS([getmntent]) ]) -- 2.7.4