From 1fe40cee4c92394a400f122e779d7d883a09f3fa Mon Sep 17 00:00:00 2001 From: Kevin Ryde Date: Mon, 24 Jul 2006 01:09:41 +0000 Subject: [PATCH] (AC_CHECK_DECLS): Add sethostname for Solaris 10. (AC_CHECK_FUNCS): Remove dirfd, it's a macro. Reported by Claes Wallin. --- configure.in | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/configure.in b/configure.in index c8f54317c..efe48039d 100644 --- a/configure.in +++ b/configure.in @@ -605,9 +605,12 @@ AC_CHECK_FUNCS([DINFINITY DQNAN ctermid fesetround ftime fchown getcwd geteuid g # Reasons for testing: # netdb.h - not in mingw # sys/param.h - not in mingw +# sethostname - the function itself check because it's not in mingw, +# the DECL is checked because Solaris 10 doens't have in any header # AC_CHECK_HEADERS(crypt.h netdb.h sys/param.h sys/resource.h sys/file.h) AC_CHECK_FUNCS(chroot flock getlogin cuserid getpriority setpriority getpass sethostname gethostname) +AC_CHECK_DECLS([sethostname]) # crypt() may or may not be available, for instance in some countries there # are restrictions on cryptography. @@ -877,10 +880,9 @@ AC_CHECK_HEADERS(floatingpoint.h ieeefp.h nan.h) # Reasons for testing: # asinh, acosh, atanh, trunc - C99 standard, generally not available on # older systems -# dirfd - mainly BSD derived, not in older systems # sincos - GLIBC extension # -AC_CHECK_FUNCS(asinh acosh atanh copysign dirfd finite sincos trunc) +AC_CHECK_FUNCS(asinh acosh atanh copysign finite sincos trunc) # C99 specifies isinf and isnan as macros. # HP-UX provides only macros, no functions.