summaryrefslogtreecommitdiffstats
path: root/server/external/libcares.m4
diff options
context:
space:
mode:
Diffstat (limited to 'server/external/libcares.m4')
-rw-r--r--server/external/libcares.m49
1 files changed, 9 insertions, 0 deletions
diff --git a/server/external/libcares.m4 b/server/external/libcares.m4
new file mode 100644
index 000000000..09451b3f7
--- /dev/null
+++ b/server/external/libcares.m4
@@ -0,0 +1,9 @@
+AC_SUBST(CARES_OBJ)
+AC_SUBST(CARES_LIBS)
+AC_SUBST(CARES_CFLAGS)
+
+AC_CHECK_HEADERS(ares.h,
+ [AC_CHECK_LIB([cares], [ares_init], [ CARES_LIBS="-lcares" ], [AC_MSG_ERROR([No usable c-ares library found])])],
+ [AC_MSG_ERROR([c-ares header files are not installed])]
+)
+