diff options
author | Andrei Pavel <andrei@isc.org> | 2024-03-04 10:49:45 +0100 |
---|---|---|
committer | Andrei Pavel <andrei@isc.org> | 2024-03-21 17:30:04 +0100 |
commit | 260ad292e87491476c7f34c111d76ef612f151e4 (patch) | |
tree | a340a68aa10a3509f1efbfb64cc2fa84a11f3e4a /configure.ac | |
parent | [#3210] refactor io utilities (diff) | |
download | kea-260ad292e87491476c7f34c111d76ef612f151e4.tar.xz kea-260ad292e87491476c7f34c111d76ef612f151e4.zip |
[#3210] refactor string utilities
- Rename util/strutil.h to util/str.h to escape redundancy.
- Simplify trim function.
- Remove unused functions.
- Get rid of the regex conditional compilation that helped Kea build
with ancient compilers. Lack of proper regex functionality now results
in failure in configure.ac.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index cf289880f4..453a33315d 100644 --- a/configure.ac +++ b/configure.ac @@ -667,8 +667,8 @@ int main() { # When cross-compiling we don't have any way to check if regex is # usable or not. # Let's be optimistic and assume it is by testing only the negative case. -if test "x$usable_regex" != "xno" ; then - AC_DEFINE(USE_REGEX, 1, [Define to 1 if C++11 regex is usable]) +if test "${usable_regex}" = 'no'; then + AC_MSG_ERROR([Need proper regex functionality.])] fi # Check for NETCONF support. If NETCONF was enabled in the build, and this check |