configure: You are running OSX, assuming threadsafe gethostbyname version
checking how to run the C++ preprocessor... /usr/bin/g++-4.0 -E
checking for gethostbyname_r... no
checking lwres/netdb.h usability... yes
checking lwres/netdb.h presence... yes
checking for lwres/netdb.h... yes
checking for lwres_gethostbyname_r in -llwres... no
configure: error: required library function not found
I'm not a developer, but if I interpret the autoconf file correctly (see below), then it does not expect to find lwres/netdb.h on OS X, in which case it would just proceed. But having installed BIND, whose lwres library on darwin seems to lack a function (lwres_gethostbyname_r) found on other systems, it complains.
if test $DARWIN_OS -eq 1 ; then
AC_MSG_NOTICE([You are running OSX, assuming threadsafe gethostbyname version])
elif test $CYGWIN_OS -eq 1; then
AC_MSG_NOTICE([Your are building under Cygwin, assuming threadsafe gethostbyname implementation])
fi
AC_CHECK_FUNCS([gethostbyname_r],[],
[
AC_CHECK_HEADERS([lwres/netdb.h],
[
AC_CHECK_LIB(lwres, lwres_gethostbyname_r,
[
LWRES_LIBS="-llwres"
AC_DEFINE(HAVE_LIBLWRES, 1, [lwres library presence])
AC_SUBST(LWRES_LIBS)
],
[AC_MSG_ERROR(required library function not found)])
],
[
if ((test $DARWIN_OS -eq 0) && (test $CYGWIN_OS -eq 0) && (test $OPENBSD_OS -eq 0)) ; then
AC_MSG_ERROR([required header not found])
fi
])
])
Cc Me!