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/libpopt.m4 | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/external/libpopt.m4 (limited to 'src/external/libpopt.m4') diff --git a/src/external/libpopt.m4 b/src/external/libpopt.m4 new file mode 100644 index 0000000..e6a3e71 --- /dev/null +++ b/src/external/libpopt.m4 @@ -0,0 +1,15 @@ +AC_SUBST(POPT_LIBS) +AC_SUBST(POPT_CFLAGS) + +PKG_CHECK_MODULES([POPT], [popt], [found_popt=yes], [found_popt=no]) + +SSS_AC_EXPAND_LIB_DIR() +AS_IF([test x"$found_popt" != xyes], + [AC_CHECK_HEADERS([popt.h], + [AC_CHECK_LIB([popt], + [poptGetContext], + [POPT_LIBS="-L$sss_extra_libdir -lpopt"], + [AC_MSG_ERROR([POPT library must support poptGetContext])], + [-L$sss_extra_libdir])], + [AC_MSG_ERROR([POPT header files are not installed])])] +) -- cgit v1.2.3