Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac17
1 files changed, 17 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 53062b72710..37b2dff2ed0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2288,6 +2288,23 @@ if test x$host_win32 = xno; then
])
dnl **********************************
+ dnl *** Check for getprotobyname_r ***
+ dnl **********************************
+ AC_MSG_CHECKING(for getprotobyname_r)
+ AC_TRY_LINK([
+ #include <stdio.h>
+ #include <netdb.h>
+ ], [
+ getprotobyname_r(NULL, NULL, NULL, 0, NULL);
+ ], [
+ # Yes, we have it...
+ AC_MSG_RESULT(yes)
+ AC_DEFINE(HAVE_GETPROTOBYNAME_R, 1, [Have getprotobyname_r])
+ ], [
+ AC_MSG_RESULT(no)
+ ])
+
+ dnl **********************************
dnl *** Check for getnameinfo ***
dnl **********************************
AC_MSG_CHECKING(for getnameinfo)