From ad1abee441f8330aab833cec3121b1346fb8e28f Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 22 Mar 2001 08:51:24 +0000 Subject: [PATCH] =?UTF-8?q?Andr=E9s=20Garc=EDa's=20problems=20on=20the=20m?= =?UTF-8?q?ailing=20list=20made=20me=20realize=20that=20we=20can't=20allow?= =?UTF-8?q?=20this=20script=20to=20simply=20detect=20a=20gethostbyname=5Fr?= =?UTF-8?q?()=20if=20it=20can't=20figure=20out=20how=20to=20use=20it.=20Fr?= =?UTF-8?q?om=20now=20on,=20this=20script=20will=20fail=20when=20that=20ha?= =?UTF-8?q?ppens.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- configure.in | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/configure.in b/configure.in index 6fe9953bd..84637b236 100644 --- a/configure.in +++ b/configure.in @@ -295,6 +295,14 @@ exit (rc != 0 ? 1 : 0); }],[ [ac_cv_gethostbyname_args=0])], [ac_cv_gethostbyname_args=0])]) +if test "$ac_cv_func_gethostbyname_r" = "yes"; then + if test "$ac_cv_gethostbyname_args" = "0"; then + dnl there's a gethostbyname_r() function, but we don't know how + dnl many arguments it wants! + AC_MSG_ERROR([couldn't figure out how to use gethostbyname_r()]) + fi +fi + ]) dnl **********************************************************************