diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 55a442f31..e794273ca 100644 --- a/configure.ac +++ b/configure.ac @@ -375,6 +375,21 @@ fi if test "$HAVE_GETHOSTBYNAME" != "1" then + dnl This is for eCos with a stubbed DNS implementation + AC_MSG_CHECKING([for gethostbyname for eCos]) + AC_TRY_LINK([ +#include <stdio.h> +#include <netdb.h>], + [gethostbyname("www.dummysite.com");], + [ dnl worked! + AC_MSG_RESULT([yes]) + HAVE_GETHOSTBYNAME="1"], + AC_MSG_RESULT(no) + ) +fi + +if test "$HAVE_GETHOSTBYNAME" != "1" +then dnl gethostbyname in the net lib - for BeOS AC_CHECK_LIB(net, gethostbyname, [HAVE_GETHOSTBYNAME="1" |