diff options
author | Daniel Stenberg <daniel@haxx.se> | 2001-03-22 08:51:24 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2001-03-22 08:51:24 +0000 |
commit | ad1abee441f8330aab833cec3121b1346fb8e28f (patch) | |
tree | bb6a7f0005c86560f9f73d7dc2f1df3baf601084 | |
parent | 669709f80e4b80d1e2745a84a5f038ddd07576ee (diff) |
Andrés García's problems on the mailing list made me realize that we can't
allow this script to simply detect a gethostbyname_r() if it can't figure
out how to use it. From now on, this script will fail when that happens.
-rw-r--r-- | configure.in | 8 |
1 files changed, 8 insertions, 0 deletions
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 ********************************************************************** |