summaryrefslogtreecommitdiff
path: root/src/external/libunistring.m4
blob: bbc92b332632e961bf38eb5d1ce5de214a8a709a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
SSS_AC_EXPAND_LIB_DIR()

AC_CHECK_HEADERS([unistr.h],
    [AC_CHECK_LIB([unistring],
                  [u8_strlen],
                  [UNISTRING_LIBS="-lunistring"],
                  [AC_MSG_ERROR([No usable libunistring library found])],
                  [-L$sss_extra_libdir])],
    [AC_MSG_ERROR([libunistring header files are not installed])]
)

AC_CHECK_HEADERS([unicase.h],
    [AC_CHECK_LIB([unistring],
                  [u8_casecmp],
                  [UNISTRING_LIBS="-lunistring"],
                  [AC_MSG_ERROR([No usable libunistring library found])],
                  [-L$sss_extra_libdir])],
    [AC_MSG_ERROR([libunistring header files are not installed])]
)

AC_CHECK_HEADERS([unistr.h],
    [AC_CHECK_LIB([unistring],
                  [u8_check],
                  [UNISTRING_LIBS="-lunistring"],
                  [AC_MSG_ERROR([No usable libunistring library found])],
                  [-L$sss_extra_libdir])],
    [AC_MSG_ERROR([libunistring header files are not installed])]
)


UNISTRING_LIBS="-L$sss_extra_libdir $UNISTRING_LIBS "