AC_MSG_NOTICE([Use MSVCRT for math functions.])
;;
*)
- dnl rint() and log() are only used in old C code for now.
+ dnl log() are only used in old C code for now.
AC_LANG_PUSH([C])
- AC_SEARCH_LIBS([rint],[m])
AC_SEARCH_LIBS([log],[m])
AC_LANG_POP([C])
;;
SQUID_CHECK_SS_LEN_IN_SOCKADDR_STORAGE
SQUID_CHECK_SIN_LEN_IN_SOCKADDR_IN
-
-dnl -lintl is needed on SCO version 3.2v4.2 for strftime()
-dnl Robert Side <rside@aiinc.bc.ca>
-dnl Mon, 18 Jan 1999 17:48:00 GMT
-case "$host" in
- *-pc-sco3.2*)
- AC_CHECK_LIB(intl, strftime)
- ;;
-esac
-
dnl System-specific library modifications
dnl
AH_TEMPLATE(GETTIMEOFDAY_NO_TZP,[If gettimeofday is known to take only one argument])
AC_MSG_NOTICE([disabling poll for $host...])
ac_cv_func_poll='no'
;;
- [*-pc-sco3.2*])
- # Robert Side <rside@aiinc.bc.ca>
- # Mon, 18 Jan 1999 17:48:00 GMT
- AC_MSG_NOTICE([disabling poll for $host...])
- ac_cv_func_poll='no'
- ;;
esac
fi
int
xpercentInt(double part, double whole)
{
-#if HAVE_RINT
return (int) rint(xpercent(part, whole));
-#else
- /* SCO 3.2v4.2 doesn't have rint() -- mauri@mbp.ee */
- return (int) floor(xpercent(part, whole) + 0.5);
-#endif
}
/* somewhat safer division */