[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gnulib] AC_FUNC_GETMNTENT problem on UNICOS
From: |
Mark D. Baushke |
Subject: |
Re: [bug-gnulib] AC_FUNC_GETMNTENT problem on UNICOS |
Date: |
Mon, 06 Dec 2004 12:42:44 -0800 |
Hi Stepan,
You are correct. Here is an updated patch (also available from
https://savannah.gnu.org/support/index.php?func=detailitem&item_id=103650)
-- Mark
Index: ls-mntd-fs.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/ls-mntd-fs.m4,v
retrieving revision 1.28
diff -u -p -u -p -r1.28 ls-mntd-fs.m4
--- ls-mntd-fs.m4 7 Aug 2004 00:09:39 -0000 1.28
+++ ls-mntd-fs.m4 6 Dec 2004 20:38:34 -0000
@@ -64,7 +64,11 @@ ac_list_mounted_fs=
# If the getmntent function is available but not in the standard library,
# make sure LIBS contains -lsun (on Irix4) or -lseq (on PTX).
-AC_FUNC_GETMNTENT
+# However, AC_FUNC_GETMNTENT will introduce a -lsun even if getmntent is
+# in the C library, for example on UNICOS which does not have a -lsun
+# library.
+AC_CHECK_FUNC(getmntent, [], [AC_FUNC_GETMNTENT])
+AC_CHECK_FUNCS(getmntent)
# This test must precede the ones for getmntent because Unicos-9 is
# reported to have the getmntent function, but its support is incompatible