summaryrefslogtreecommitdiffstats
path: root/src/external/libuuid.m4
blob: 323521c9224e443f40a15b417038d2dcea9b66f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
AC_SUBST(UUID_LIBS)
AC_SUBST(UUID_CFLAGS)

PKG_CHECK_MODULES([UUID], [uuid], [found_uuid=yes], [found_uuid=no])

SSS_AC_EXPAND_LIB_DIR()
AS_IF([test x"$found_uuid" != xyes],
    [AC_CHECK_HEADERS([uuid/uuid.h],
        [AC_CHECK_LIB([uuid],
                      [uuid_generate],
                      [UUID_LIBS="-L$sss_extra_libdir -luuid"],
                      [AC_MSG_ERROR([libuuid missing uuid_generate])],
                      [-L$sss_extra_libdir -luuid])],
        [AC_MSG_ERROR([
You must have the header file uuid.h installed to build sssd
with KCM responder. If you want to build sssd without KCM responder
then specify --without-kcm when running configure.])])])