daemon: use pkg-config to detect pcre

Change-Id: Ic46a78c1da87319b46d65cac5d50fe1bb196aa8e
Refs: #54009
This commit is contained in:
Tristan Matthews
2014-08-27 14:12:18 -04:00
parent 3285f3a6b4
commit aa14b6ff30
2 changed files with 1 additions and 93 deletions

View File

@ -366,9 +366,7 @@ AC_ARG_WITH([sdes],
[],
[with_sdes=yes])
AS_IF([test "x$with_sdes" = "xyes"], [
AX_PATH_LIB_PCRE
]);
PKG_CHECK_MODULES(PCRE, [libpcre],,AC_MSG_ERROR([libpcre not found]))]);
AC_DEFINE_UNQUOTED([HAVE_SDES], `if test "x$with_sdes" = "xyes"; then echo 1; else echo 0; fi`, [Define if you have sdes support])
AM_CONDITIONAL(BUILD_SDES, test "x$with_sdes" = "xyes" )