From 8fa3a4d0c2c2cbb02b28ef5fde6ba9b3f7d47937 Mon Sep 17 00:00:00 2001 From: Tomasz Kojm Date: Wed, 21 Jul 2004 21:24:33 +0000 Subject: [PATCH] test for gethostbyname_r git-svn: trunk@684 --- clamav-devel/ChangeLog | 4 ++++ clamav-devel/clamav-config.h.in | 3 +++ clamav-devel/configure | 3 ++- clamav-devel/configure.in | 2 +- 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/clamav-devel/ChangeLog b/clamav-devel/ChangeLog index 7a94224a3..5fb2e4ca9 100644 --- a/clamav-devel/ChangeLog +++ b/clamav-devel/ChangeLog @@ -1,3 +1,7 @@ +Wed Jul 21 23:18:51 CEST 2004 (tk) +---------------------------------- + * configure: test for gethostbyname_r + Wed Jul 21 20:45:49 CEST 2004 (tk) ---------------------------------- * libclamav: pe: enhance UPX skew detection (aCaB) diff --git a/clamav-devel/clamav-config.h.in b/clamav-devel/clamav-config.h.in index 797884d46..e53f1efa7 100644 --- a/clamav-devel/clamav-config.h.in +++ b/clamav-devel/clamav-config.h.in @@ -84,6 +84,9 @@ /* Define to 1 if fseeko (and presumably ftello) exists and is declared. */ #undef HAVE_FSEEKO +/* Define to 1 if you have the `gethostbyname_r' function. */ +#undef HAVE_GETHOSTBYNAME_R + /* Define to 1 if you have the `getpagesize' function. */ #undef HAVE_GETPAGESIZE diff --git a/clamav-devel/configure b/clamav-devel/configure index 8d5eb5c90..ae1d29c00 100755 --- a/clamav-devel/configure +++ b/clamav-devel/configure @@ -8974,7 +8974,8 @@ _ACEOF -for ac_func in poll setsid memcpy snprintf vsnprintf strerror_r strlcpy strlcat inet_ntop setgroups initgroups + +for ac_func in poll setsid memcpy snprintf vsnprintf strerror_r strlcpy strlcat inet_ntop setgroups initgroups gethostbyname_r do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 diff --git a/clamav-devel/configure.in b/clamav-devel/configure.in index 2bfdc079b..a453061eb 100644 --- a/clamav-devel/configure.in +++ b/clamav-devel/configure.in @@ -42,7 +42,7 @@ AC_TYPE_OFF_T AC_COMPILE_CHECK_SIZEOF(short) AC_COMPILE_CHECK_SIZEOF(int) AC_COMPILE_CHECK_SIZEOF(long) -AC_CHECK_FUNCS(poll setsid memcpy snprintf vsnprintf strerror_r strlcpy strlcat inet_ntop setgroups initgroups) +AC_CHECK_FUNCS(poll setsid memcpy snprintf vsnprintf strerror_r strlcpy strlcat inet_ntop setgroups initgroups gethostbyname_r) AC_FUNC_MMAP AC_FUNC_FSEEKO