Commit bf410884 authored by Alexander Barkov's avatar Alexander Barkov

MDEV-4424 Regexp enhancements

- Commenting out unused instructions in pcre/CMakeLists.txt
- Don't print PCRE configuration status by default.
parent 59311f3e
...@@ -127,11 +127,13 @@ SET(PCRE_NO_RECURSE ON CACHE BOOL ...@@ -127,11 +127,13 @@ SET(PCRE_NO_RECURSE ON CACHE BOOL
SET(PCRE_POSIX_MALLOC_THRESHOLD "10" CACHE STRING SET(PCRE_POSIX_MALLOC_THRESHOLD "10" CACHE STRING
"Threshold for malloc() usage. See POSIX_MALLOC_THRESHOLD in config.h.in for details.") "Threshold for malloc() usage. See POSIX_MALLOC_THRESHOLD in config.h.in for details.")
SET(PCRE_SUPPORT_JIT OFF CACHE BOOL #MARIADB
"Enable support for Just-in-time compiling.") #SET(PCRE_SUPPORT_JIT OFF CACHE BOOL
# "Enable support for Just-in-time compiling.")
SET(PCRE_SUPPORT_PCREGREP_JIT ON CACHE BOOL #MARIADB
"Enable use of Just-in-time compiling in pcregrep.") #SET(PCRE_SUPPORT_PCREGREP_JIT ON CACHE BOOL
# "Enable use of Just-in-time compiling in pcregrep.")
SET(PCRE_SUPPORT_UNICODE_PROPERTIES OFF CACHE BOOL SET(PCRE_SUPPORT_UNICODE_PROPERTIES OFF CACHE BOOL
"Enable support for Unicode properties (if set, UTF support will be enabled as well).") "Enable support for Unicode properties (if set, UTF support will be enabled as well).")
...@@ -139,7 +141,7 @@ SET(PCRE_SUPPORT_UNICODE_PROPERTIES OFF CACHE BOOL ...@@ -139,7 +141,7 @@ SET(PCRE_SUPPORT_UNICODE_PROPERTIES OFF CACHE BOOL
SET(PCRE_SUPPORT_BSR_ANYCRLF OFF CACHE BOOL SET(PCRE_SUPPORT_BSR_ANYCRLF OFF CACHE BOOL
"ON=Backslash-R matches only LF CR and CRLF, OFF=Backslash-R matches all Unicode Linebreaks") "ON=Backslash-R matches only LF CR and CRLF, OFF=Backslash-R matches all Unicode Linebreaks")
OPTION(PCRE_SHOW_REPORT "Show the final configuration report" ON) OPTION(PCRE_SHOW_REPORT "Show the final configuration report" OFF)
OPTION(PCRE_BUILD_PCREGREP "Build pcregrep" ON) OPTION(PCRE_BUILD_PCREGREP "Build pcregrep" ON)
OPTION(PCRE_BUILD_TESTS "Build the tests" ON) OPTION(PCRE_BUILD_TESTS "Build the tests" ON)
...@@ -191,13 +193,15 @@ IF(PCRE_SUPPORT_UNICODE_PROPERTIES) ...@@ -191,13 +193,15 @@ IF(PCRE_SUPPORT_UNICODE_PROPERTIES)
SET(SUPPORT_UCP 1) SET(SUPPORT_UCP 1)
ENDIF(PCRE_SUPPORT_UNICODE_PROPERTIES) ENDIF(PCRE_SUPPORT_UNICODE_PROPERTIES)
IF(PCRE_SUPPORT_JIT) #MARIADB
SET(SUPPORT_JIT 1) #IF(PCRE_SUPPORT_JIT)
ENDIF(PCRE_SUPPORT_JIT) # SET(SUPPORT_JIT 1)
#ENDIF(PCRE_SUPPORT_JIT)
IF(PCRE_SUPPORT_PCREGREP_JIT) #MARIADB
SET(SUPPORT_PCREGREP_JIT 1) #IF(PCRE_SUPPORT_PCREGREP_JIT)
ENDIF(PCRE_SUPPORT_PCREGREP_JIT) # SET(SUPPORT_PCREGREP_JIT 1)
#ENDIF(PCRE_SUPPORT_PCREGREP_JIT)
SET(NEWLINE "") SET(NEWLINE "")
...@@ -336,13 +340,14 @@ IF(PCRE_BUILD_TESTS) ...@@ -336,13 +340,14 @@ IF(PCRE_BUILD_TESTS)
LIST(APPEND PCRETEST_LIBS pcreposix pcre) LIST(APPEND PCRETEST_LIBS pcreposix pcre)
TARGET_LINK_LIBRARIES(pcretest ${PCRETEST_LIBS}) TARGET_LINK_LIBRARIES(pcretest ${PCRETEST_LIBS})
IF(PCRE_SUPPORT_JIT) #MARIADB
ADD_EXECUTABLE(pcre_jit_test pcre_jit_test.c) # IF(PCRE_SUPPORT_JIT)
SET(targets ${targets} pcre_jit_test) # ADD_EXECUTABLE(pcre_jit_test pcre_jit_test.c)
SET(PCRE_JIT_TEST_LIBS ) # SET(targets ${targets} pcre_jit_test)
LIST(APPEND PCRE_JIT_TEST_LIBS pcre) # SET(PCRE_JIT_TEST_LIBS )
TARGET_LINK_LIBRARIES(pcre_jit_test ${PCRE_JIT_TEST_LIBS}) # LIST(APPEND PCRE_JIT_TEST_LIBS pcre)
ENDIF(PCRE_SUPPORT_JIT) # TARGET_LINK_LIBRARIES(pcre_jit_test ${PCRE_JIT_TEST_LIBS})
# ENDIF(PCRE_SUPPORT_JIT)
# exes in Debug location tested by the RunTest shell script # exes in Debug location tested by the RunTest shell script
# via "make test" # via "make test"
...@@ -432,9 +437,10 @@ echo RunTest.bat tests successfully completed ...@@ -432,9 +437,10 @@ echo RunTest.bat tests successfully completed
# Changed to accommodate testing whichever location was just built # Changed to accommodate testing whichever location was just built
IF(PCRE_SUPPORT_JIT) #MARIADB
ADD_TEST(pcre_jit_test pcre_jit_test) # IF(PCRE_SUPPORT_JIT)
ENDIF(PCRE_SUPPORT_JIT) # ADD_TEST(pcre_jit_test pcre_jit_test)
# ENDIF(PCRE_SUPPORT_JIT)
ENDIF(PCRE_BUILD_TESTS) ENDIF(PCRE_BUILD_TESTS)
...@@ -452,7 +458,7 @@ IF(PCRE_SHOW_REPORT) ...@@ -452,7 +458,7 @@ IF(PCRE_SHOW_REPORT)
MESSAGE(STATUS "") MESSAGE(STATUS "")
MESSAGE(STATUS " C compiler ...................... : ${CMAKE_C_COMPILER}") MESSAGE(STATUS " C compiler ...................... : ${CMAKE_C_COMPILER}")
MESSAGE(STATUS " C compiler flags ................ : ${CMAKE_C_FLAGS}${cfsp}${CMAKE_C_FLAGS_${buildtype}}") MESSAGE(STATUS " C compiler flags ................ : ${CMAKE_C_FLAGS}${cfsp}${CMAKE_C_FLAGS_${buildtype}}")
MESSAGE(STATUS " Enable JIT compiling support .... : ${PCRE_SUPPORT_JIT}") # MESSAGE(STATUS " Enable JIT compiling support .... : ${PCRE_SUPPORT_JIT}")
MESSAGE(STATUS " Unicode properties .............. : ${PCRE_SUPPORT_UNICODE_PROPERTIES}") MESSAGE(STATUS " Unicode properties .............. : ${PCRE_SUPPORT_UNICODE_PROPERTIES}")
MESSAGE(STATUS " Newline char/sequence ........... : ${PCRE_NEWLINE}") MESSAGE(STATUS " Newline char/sequence ........... : ${PCRE_NEWLINE}")
MESSAGE(STATUS " \\R matches only ANYCRLF ......... : ${PCRE_SUPPORT_BSR_ANYCRLF}") MESSAGE(STATUS " \\R matches only ANYCRLF ......... : ${PCRE_SUPPORT_BSR_ANYCRLF}")
...@@ -462,7 +468,7 @@ IF(PCRE_SHOW_REPORT) ...@@ -462,7 +468,7 @@ IF(PCRE_SHOW_REPORT)
MESSAGE(STATUS " Match limit ..................... : ${PCRE_MATCH_LIMIT}") MESSAGE(STATUS " Match limit ..................... : ${PCRE_MATCH_LIMIT}")
MESSAGE(STATUS " Match limit recursion ........... : ${PCRE_MATCH_LIMIT_RECURSION}") MESSAGE(STATUS " Match limit recursion ........... : ${PCRE_MATCH_LIMIT_RECURSION}")
MESSAGE(STATUS " Build pcregrep .................. : ${PCRE_BUILD_PCREGREP}") MESSAGE(STATUS " Build pcregrep .................. : ${PCRE_BUILD_PCREGREP}")
MESSAGE(STATUS " Enable JIT in pcregrep .......... : ${PCRE_SUPPORT_PCREGREP_JIT}") # MESSAGE(STATUS " Enable JIT in pcregrep .......... : ${PCRE_SUPPORT_PCREGREP_JIT}")
MESSAGE(STATUS " Buffer size for pcregrep ........ : ${PCREGREP_BUFSIZE}") MESSAGE(STATUS " Buffer size for pcregrep ........ : ${PCREGREP_BUFSIZE}")
MESSAGE(STATUS " Build tests (implies pcretest .. : ${PCRE_BUILD_TESTS}") MESSAGE(STATUS " Build tests (implies pcretest .. : ${PCRE_BUILD_TESTS}")
MESSAGE(STATUS " and pcregrep)") MESSAGE(STATUS " and pcregrep)")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment