summaryrefslogtreecommitdiffstats
path: root/src/external/libunistring.m4
blob: 18ea3e62a727032a86d248318b5a2a19011ee8ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
AC_CHECK_HEADERS(unistr.h,
    [AC_CHECK_LIB([unistring], [u8_strlen], [ UNISTRING_LIBS="-lunistring" ], [AC_MSG_ERROR([No usable libunistring library found])])],
    [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])])],
    [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])])],
    [AC_MSG_ERROR([libunistring header files are not installed])]
)