summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 341127c1b..f5cb7685f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -915,9 +915,12 @@ AC_FUNC_FSEEKO
AC_REPLACE_FUNCS([asprintf basename gettimeofday setenv strcasestr strndup strpbrk strsep strtok_r timegm unsetenv memmem])
AC_LIBSOURCE([hstrerror.c])
+saveLIBS="${LIBS}"
+LIBS="${LIBS} ${NET_LIBS}"
AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <netdb.h>]], [[hstrerror(0)]])],
[AC_DEFINE([HAVE_HSTRERROR], 1, [Define to 1 if you have 'hstrerror' in <netdb.h>])],
[AC_LIBOBJ([hstrerror])])
+LIBS="${saveLIBS}"
AC_LIBSOURCE([dirent_msvc.c])
AC_CHECK_FUNC([opendir],