From 309709dbafb27f1fd294e9e8365de44e1c916d52 Mon Sep 17 00:00:00 2001 From: dtucker Date: Mon, 7 Jul 2003 09:44:01 +0000 Subject: [PATCH] - (dtucker) [configure.ac] Bug #600: Check that getrusage is declared before searching libraries for it. Fixes build errors on NCR MP-RAS. --- ChangeLog | 4 ++++ configure.ac | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index bb630ca6..5fdf7e67 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +20030707 + - (dtucker) [configure.ac] Bug #600: Check that getrusage is declared before + searching libraries for it. Fixes build errors on NCR MP-RAS. + 20030706 - (dtucker) [ssh-rand-helper.c loginrec.c] Apply atomicio typing change to these too. diff --git a/configure.ac b/configure.ac index b71bab88..d7af0341 100644 --- a/configure.ac +++ b/configure.ac @@ -674,7 +674,7 @@ AC_CHECK_FUNCS(\ arc4random __b64_ntop b64_ntop __b64_pton b64_pton basename \ bcopy bindresvport_sa clock fchmod fchown freeaddrinfo futimes \ gai_strerror getaddrinfo getcwd getgrouplist getnameinfo getopt \ - getpeereid _getpty getrlimit getrusage getttyent glob inet_aton \ + getpeereid _getpty getrlimit getttyent glob inet_aton \ inet_ntoa inet_ntop innetgr login_getcapbool md5_crypt memmove \ mkdtemp mmap ngetaddrinfo nsleep ogetaddrinfo openlog_r openpty \ pstat readpassphrase realpath recvmsg rresvport_af sendmsg \ @@ -688,8 +688,9 @@ AC_CHECK_FUNCS(\ AC_SEARCH_LIBS(nanosleep, rt posix4, AC_DEFINE(HAVE_NANOSLEEP)) AC_SEARCH_LIBS(basename, gen, AC_DEFINE(HAVE_BASENAME)) -dnl Make sure strsep prototype is defined before defining HAVE_STRSEP +dnl Make sure prototypes are defined for these before using them. AC_CHECK_DECL(strsep, [AC_CHECK_FUNCS(strsep)]) +AC_CHECK_DECL(getrusage, [AC_CHECK_FUNCS(getrusage)]) dnl IRIX and Solaris 2.5.1 have dirname() in libgen AC_CHECK_FUNCS(dirname, [AC_CHECK_HEADERS(libgen.h)] ,[ -- 2.45.2