sascha 99/12/29 15:52:29
Modified: src/regex config.m4
Log:
Define HS regex-specific macro, if memmove is not available.
Revision Changes Path
1.4 +5 -0 apache-2.0/src/regex/config.m4
Index: config.m4
===================================================================
RCS file: /home/cvs/apache-2.0/src/regex/config.m4,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -u -r1.3 -r1.4
--- config.m4 1999/12/20 03:09:51 1.3
+++ config.m4 1999/12/29 23:52:28 1.4
@@ -1,3 +1,5 @@
+AC_CHECK_FUNCS(memmove)
+
AC_MSG_CHECKING(whether to use the provided HS regex library)
AC_ARG_ENABLE(hsregex,
[ --enable-hsregex Use the HS regex library ],
@@ -5,6 +7,9 @@
[apache_cv_hsregex=yes])
if test $apache_cv_hsregex = yes; then
+ if test "$ac_cv_func_memmove" = "no"; then
+ CFLAGS="$CFLAGS -DUSEBCOPY"
+ fi
REGEX_LIB=regex/libregex.la
REGEX_DIR=regex
AC_DEFINE(USE_HSREGEX,, [Define this if HS regex will be used])