summaryrefslogtreecommitdiff
path: root/server/external/libpcre.m4
blob: bda7a6b6e7e1f76093c86cfef04977b81d7cc7b1 (plain)
1
2
3
4
5
6
7
8
9
PCRE_OBJ=""
AC_SUBST(PCRE_OBJ)
AC_SUBST(PCRE_LIBS)
AC_SUBST(PCRE_CFLAGS)

PKG_CHECK_MODULES(PCRE, libpcre >= 7)

AC_CHECK_HEADERS(pcre.h)
AC_CHECK_LIB(pcre, pcre_compile, [ PCRE_LIBS="-lpcre" ], [AC_MSG_ERROR([PCRE is required])])