summaryrefslogtreecommitdiffstats
path: root/m4/ax_library_net.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/ax_library_net.m4')
-rw-r--r--m4/ax_library_net.m45
1 files changed, 5 insertions, 0 deletions
diff --git a/m4/ax_library_net.m4 b/m4/ax_library_net.m4
new file mode 100644
index 0000000..e01ab8d
--- /dev/null
+++ b/m4/ax_library_net.m4
@@ -0,0 +1,5 @@
+AC_DEFUN([AX_LIBRARY_NET],[
+ AC_CHECK_FUNC(getaddrinfo, [], AC_SEARCH_LIBS(getaddrinfo, nsl))
+ AC_CHECK_FUNC(getnameinfo, [], AC_SEARCH_LIBS(getnameinfo, nsl))
+ AC_SEARCH_LIBS([socket],[socket],,[AC_MSG_ERROR([socket library not found])])
+])