[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AC_FUNC_GETMNTENT look in libc before -lsun
From: |
Paul Eggert |
Subject: |
Re: AC_FUNC_GETMNTENT look in libc before -lsun |
Date: |
Mon, 06 Dec 2004 13:49:28 -0800 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) |
Sorry, my previous patch wasn't correct since it didn't set the
cache vars people expect. I installed this instead:
2004-12-06 Paul Eggert <address@hidden>
* lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Check libc before
looking elsewhere for getmntent. Problem reported by Mark D. Baushke.
* doc/autoconf.texi (Particular Functions): Mention new behavior.
Index: functions.m4
===================================================================
RCS file: /cvsroot/autoconf/autoconf/lib/autoconf/functions.m4,v
retrieving revision 1.85
retrieving revision 1.88
diff -p -u -r1.85 -r1.88
--- functions.m4 2 Dec 2004 21:50:46 -0000 1.85
+++ functions.m4 6 Dec 2004 21:48:30 -0000 1.88
@@ -771,11 +771,9 @@ AU_ALIAS([AC_GETLOADAVG], [AC_FUNC_GETLO
# -----------------
AN_FUNCTION([getmntent], [AC_FUNC_GETMNTENT])
AC_DEFUN([AC_FUNC_GETMNTENT],
-[# getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
-AC_CHECK_LIB(sun, getmntent, LIBS="-lsun $LIBS",
- [AC_CHECK_LIB(seq, getmntent, LIBS="-lseq $LIBS",
- [AC_CHECK_LIB(gen, getmntent, LIBS="-lgen $LIBS")])])
-AC_CHECK_FUNCS(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, -lsun -lseq -lgen, [AC_CHECK_FUNCS(getmntent)])
])
- Re: AC_FUNC_GETMNTENT look in libc before -lsun, (continued)
- Re: AC_FUNC_GETMNTENT look in libc before -lsun, Noah Misch, 2004/12/06
- Re: AC_FUNC_GETMNTENT look in libc before -lsun, Stepan Kasal, 2004/12/06
- Re: AC_FUNC_GETMNTENT look in libc before -lsun, Mark D. Baushke, 2004/12/06
- Re: AC_FUNC_GETMNTENT look in libc before -lsun, Noah Misch, 2004/12/06
- Re: AC_FUNC_GETMNTENT look in libc before -lsun, Mark D. Baushke, 2004/12/06
- Re: AC_FUNC_GETMNTENT look in libc before -lsun, Stepan Kasal, 2004/12/06
- [PATCH] Document traps of AC_CHECK_LIB for standard functions, Noah Misch, 2004/12/06
- Re: [PATCH] Document traps of AC_CHECK_LIB for standard functions, Stepan Kasal, 2004/12/09
- Re: [PATCH] Document traps of AC_CHECK_LIB for standard functions, Paul Eggert, 2004/12/09
- traps of AC_CHECK_LIB for standard functions, Stepan Kasal, 2004/12/09
Re: AC_FUNC_GETMNTENT look in libc before -lsun,
Paul Eggert <=
Re: AC_FUNC_GETMNTENT look in libc before -lsun, Stepan Kasal, 2004/12/06