summaryrefslogtreecommitdiffstats
path: root/src/external/libtevent.m4
blob: d3df1d062d4a7b7e742642f3b804d5099311234d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
AC_SUBST(TEVENT_CFLAGS)
AC_SUBST(TEVENT_LIBS)

PKG_CHECK_MODULES([TEVENT], [tevent], [found_tevent=yes], [found_tevent=no])

SSS_AC_EXPAND_LIB_DIR()
AS_IF([test x"$found_tevent" != xyes],
    [AC_CHECK_HEADER([tevent.h],
        [AC_CHECK_LIB([tevent],
                      [tevent_context_init],
                      [TEVENT_LIBS="-L$sss_extra_libdir -ltevent -ltalloc"],
                      [AC_MSG_ERROR([libtevent missing tevent_context_init])],
                      [-L$sss_extra_libdir -ltalloc])],
        [AC_MSG_ERROR([tevent header files are not installed])])]
)