summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2007-08-01 17:47:05 +0000
committerJoshua Colp <jcolp@digium.com>2007-08-01 17:47:05 +0000
commit021c0ca0d667821141e2265bb9de0a818552474f (patch)
treec15ed41245330601d5c5df69ba8291140760210a /configure.ac
parentd51079b70aa2b166db035a1c93ddcb7f9d21719f (diff)
Merged revisions 77865 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r77865 | file | 2007-08-01 14:42:52 -0300 (Wed, 01 Aug 2007) | 2 lines And for my last trick... make sure that if gethostbyname_r is exported by a library that it is used. ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@77866 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac2
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 66e1cf76b..dd2e95d86 100644
--- a/configure.ac
+++ b/configure.ac
@@ -284,6 +284,8 @@ AC_CHECK_FUNCS([asprintf atexit bzero dup2 endpwent floor ftruncate getcwd getho
AC_CHECK_FUNCS([funopen fopencookie])
# some systems already have gethostbyname_r so we don't need to build ours in main/utils.c
+AC_SEARCH_LIBS(gethostbyname_r, [socket nsl])
+
AC_MSG_CHECKING(for gethostbyname_r with 6 arguments)
AC_LINK_IFELSE(
AC_LANG_PROGRAM([#include <netdb.h>],