summaryrefslogtreecommitdiffstats
path: root/src/external/libhttp_parser.m4
blob: 504bdf0f66c95b3d224c677a205a46e6f8b44726 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
AC_SUBST(HTTP_PARSER_LIBS)
AC_SUBST(HTTP_PARSER_CFLAGS)

PKG_CHECK_MODULES([HTTP_PARSER], [http_parser], [found_http_parser=yes], [found_http_parser=no])

SSS_AC_EXPAND_LIB_DIR()
AS_IF([test x"$found_http_parser" != xyes],
    [AC_CHECK_HEADERS([http_parser.h],
        [AC_CHECK_LIB([http_parser_strict],
                      [http_parser_init],
                      [HTTP_PARSER_LIBS="-L$sss_extra_libdir -lhttp_parser_strict"],
                      [AC_CHECK_LIB([http_parser],
                                    [http_parser_init],
                                    [HTTP_PARSER_LIBS="-L$sss_extra_libdir -lhttp_parser"],
                                    [AC_MSG_ERROR([libhttp_parser missing http_parser_init])],
                                    [-L$sss_extra_libdir -lhttp_parser])
                      ],
                      [-L$sss_extra_libdir -lhttp_parser_strict])],
        [AC_MSG_ERROR([
You must have the header file http_parse.h installed to build sssd
with secrets responder. If you want to build sssd without secret responder
then specify --without-secrets when running configure.])])])