summaryrefslogtreecommitdiffstats
path: root/maildrop/configure.ac
diff options
context:
space:
mode:
authorSam Varshavchik2021-11-26 13:06:23 -0500
committerSam Varshavchik2021-11-26 13:06:23 -0500
commit00664cc3ece7c29843771561fe2890b635f2b74e (patch)
tree378d3df6de556c772cd0198f10ed8a7d7e384574 /maildrop/configure.ac
parent424cf6965d8144f5ecd0aecd9f45362bbb22a167 (diff)
downloadcourier-libs-00664cc3ece7c29843771561fe2890b635f2b74e.tar.bz2
Convert to pcre2.
Diffstat (limited to 'maildrop/configure.ac')
-rw-r--r--maildrop/configure.ac9
1 files changed, 8 insertions, 1 deletions
diff --git a/maildrop/configure.ac b/maildrop/configure.ac
index fca57fe..63acdfb 100644
--- a/maildrop/configure.ac
+++ b/maildrop/configure.ac
@@ -159,7 +159,7 @@ AC_HEADER_STDC
AC_HEADER_SYS_WAIT
AC_HEADER_TIME
AC_HEADER_DIRENT
-AC_CHECK_HEADERS(fcntl.h memory.h sys/file.h sys/time.h sys/stat.h unistd.h strings.h locale.h pcre.h pcre/pcre.h)
+AC_CHECK_HEADERS(fcntl.h memory.h sys/file.h sys/time.h sys/stat.h unistd.h strings.h locale.h)
dnl Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_MODE_T
@@ -301,6 +301,13 @@ else
AC_CHECK_PROG(QMAIL,qmail-inject,qmail-inject,)
fi
+AC_CHECK_PROG(PCRE2, pcre2-config, yes, no)
+
+if test "$PCRE2" = "no"
+then
+ AC_MSG_ERROR([pcre2 library not found])
+fi
+
dnl Try to find sendmail.
test "x$prefix" = xNONE && prefix=$ac_default_prefix