From 74aa0bc6779af38018a03fd2cf4419fe85917904 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 07:31:45 +0200 Subject: Adding upstream version 2.9.4. Signed-off-by: Daniel Baumann --- src/external/libcares.m4 | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/external/libcares.m4 (limited to 'src/external/libcares.m4') diff --git a/src/external/libcares.m4 b/src/external/libcares.m4 new file mode 100644 index 0000000..0a764d3 --- /dev/null +++ b/src/external/libcares.m4 @@ -0,0 +1,15 @@ +AC_SUBST(CARES_LIBS) +AC_SUBST(CARES_CFLAGS) + +PKG_CHECK_MODULES([CARES], [libcares], [found_libcares=yes], [found_libcares=no]) + +SSS_AC_EXPAND_LIB_DIR() +AS_IF([test x"$found_libcares" != xyes], + [AC_CHECK_HEADERS([ares.h], + [AC_CHECK_LIB([cares], + [ares_init], + [CARES_LIBS="-L$sss_extra_libdir -lcares"], + [AC_MSG_ERROR([No usable c-ares library found])], + [-L$sss_extra_libdir])], + [AC_MSG_ERROR([c-ares header files are not installed])])] +) -- cgit v1.2.3