summaryrefslogtreecommitdiffstats
path: root/m4/ax_library_net.m4
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@ubuntu.com>2019-04-07 00:14:13 -0400
committerLibravatarUnit 193 <unit193@ubuntu.com>2019-04-07 00:14:13 -0400
commit5140318f8f758141b4e350871db1fe869eb858dc (patch)
tree3cf26f4845b2c4674af81f108fbdbf47a996dcff /m4/ax_library_net.m4
Import Upstream version 1.1.5upstream/1.1.5
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])])
+])