aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2000-08-17 16:33:02 +0000
committerDaniel Stenberg <daniel@haxx.se>2000-08-17 16:33:02 +0000
commitf8e916db467b2208a7fa472864ec7aff36850293 (patch)
treecb4b4228a8a4e9bf675c813b7df810ffafe6b1c7
parente2a63bee59c8c9031873c73750d4c2fbd1598071 (diff)
removed the vprintf check, we have our own internal anyway
gethostbyname_r arg-number checks no longer made if there isn't any gethostbyname_r function! aborts the configure if socket() is absent
-rw-r--r--configure.in29
1 files changed, 19 insertions, 10 deletions
diff --git a/configure.in b/configure.in
index 0c9d86f64..135c36770 100644
--- a/configure.in
+++ b/configure.in
@@ -164,16 +164,18 @@ else
dnl check for a few thread-safe functions
-AC_CHECK_FUNCS( gethostbyname_r \
- gethostbyaddr_r \
- localtime_r \
- inet_ntoa_r
-)
+ AC_CHECK_FUNCS( gethostbyname_r \
+ gethostbyaddr_r \
+ localtime_r \
+ inet_ntoa_r
+ )
-dnl **********************************************************************
-dnl Time to make a check for gethostbyname_r
-dnl If it exists, it may use one of three different interfaces
-dnl **********************************************************************
+ if test "$ac_cv_func_gethostbyname_r" = "yes"; then
+
+ dnl **********************************************************************
+ dnl Time to make a check for gethostbyname_r
+ dnl If it exists, it may use one of three different interfaces
+ dnl **********************************************************************
AC_MSG_CHECKING(for gethostbyname_r)
if test -z "$ac_cv_gethostbyname_args"; then
@@ -312,8 +314,11 @@ dnl **********************************************************************
AC_MSG_RESULT([yes, and it takes $ac_cv_gethostbyaddr_args arguments])
fi
+ fi
+
fi
+
dnl **********************************************************************
dnl Back to "normal" configuring
dnl **********************************************************************
@@ -369,7 +374,7 @@ AC_DEFINE_UNQUOTED(OS, "${host}")
dnl Checks for library functions.
dnl AC_PROG_GCC_TRADITIONAL
AC_TYPE_SIGNAL
-AC_FUNC_VPRINTF
+dnl AC_FUNC_VPRINTF
AC_CHECK_FUNCS( socket \
select \
strdup \
@@ -395,6 +400,10 @@ AC_CHECK_FUNCS( socket \
RAND_screen
)
+if test "$ac_cv_func_select" != "yes"; then
+ AC_MSG_ERROR(Can't work without an existing socket() function)
+fi
+
AC_PATH_PROG( PERL, perl, ,
$PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin )
AC_SUBST(PERL)