diff options
author | ewewukek <ewewukek@gmail.com> | 2024-02-24 19:35:47 +0300 |
---|---|---|
committer | ewewukek <ewewukek@gmail.com> | 2024-02-24 19:35:47 +0300 |
commit | 4cb6078e879e13ba91933123a99c9edf553e1249 (patch) | |
tree | 5aee5c88415d25d7a0e5a6a6204957f1ebd069dd | |
parent | bc2dc90e6e07f29beb28938f6c80cd82738b1aba (diff) | |
download | mplint-4cb6078e879e13ba91933123a99c9edf553e1249.tar.gz mplint-4cb6078e879e13ba91933123a99c9edf553e1249.tar.bz2 mplint-4cb6078e879e13ba91933123a99c9edf553e1249.tar.xz mplint-4cb6078e879e13ba91933123a99c9edf553e1249.zip |
Add checks for pcre2 to configure.ac
-rwxr-xr-x | configure.ac | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index dd52d17..dc68738 100755 --- a/configure.ac +++ b/configure.ac @@ -25,6 +25,13 @@ AC_CHECK_FUNCS([atexit floor getcwd gethostbyname memset mkdir select socket]) AC_HEADER_STDC AC_CHECK_HEADERS([arpa/inet.h fcntl.h malloc.h netdb.h netinet/in.h stdlib.h string.h sys/socket.h unistd.h]) +# Check if PCRE2 is installed. +AC_CHECK_LIB([pcre2-8], [pcre2_compile_8], , +AC_MSG_ERROR([ *** Unable to find PCRE2 library])) +AC_CHECK_HEADERS([pcre2.h], , +AC_MSG_ERROR([ *** PCRE2 library found but cannot find headers]), +[#define PCRE2_CODE_UNIT_WIDTH 8]) + LIBS="$LIBS -lpcre2-8" AC_CONFIG_FILES([ |