]> git.ipfire.org Git - thirdparty/mlmmj.git/commitdiff
Add checks for regexec and regcomp to configure
authormmj <none@none>
Thu, 24 Jun 2004 13:04:04 +0000 (23:04 +1000)
committermmj <none@none>
Thu, 24 Jun 2004 13:04:04 +0000 (23:04 +1000)
config.h.in
configure.ac
src/do_all_the_voodo_here.c

index 8dbafe706658ec8d48ae1b881fbab1db9671ffc7..951dac387984e47e0a05fc946c7af1d83bb61619 100644 (file)
 /* Define to 1 if you have the <netinet/in.h> header file. */
 #undef HAVE_NETINET_IN_H
 
+/* Define to 1 if you have the `regcomp' function. */
+#undef HAVE_REGCOMP
+
+/* Define to 1 if you have the `regexec' function. */
+#undef HAVE_REGEXEC
+
 /* Define to 1 if you have the `snprintf' function. */
 #undef HAVE_SNPRINTF
 
index 0b58eceb7e8c0d11ecf70372ec1ee3816860b0e2..3611a5d8ef86b22193afb96c76911375754ca2a2 100644 (file)
@@ -26,7 +26,7 @@ AC_TYPE_SIZE_T
 # Checks for library functions.
 AC_FUNC_MALLOC
 AC_CHECK_FUNCS([ftruncate memset socket strerror strncasecmp snprintf fcntl])
-AC_CHECK_FUNCS([nanosleep time strftime syslog])
+AC_CHECK_FUNCS([nanosleep time strftime syslog regcomp regexec])
 
 AC_CONFIG_FILES([Makefile])
 AC_CONFIG_FILES([src/Makefile])
index 2679f0d019b53aec263fbbdc27dfd240a4369fcd..da426c1a0f31746d2816a7fd4e64a5052459686a 100644 (file)
@@ -115,6 +115,7 @@ int do_all_the_voodo_here(int infd, int outfd, int hdrfd, int footfd,
                if(prefix) {
                        if(strncmp(hdrline, "Subject: ", 9) == 0) {
                                unqp = cleanquotedp(hdrline + 9);
+                               log_error(LOG_ARGS, "unqp = [%s]", unqp);
                                if(strstr(hdrline + 9, prefix) == NULL &&
                                   strstr(unqp, prefix) == NULL) {
                                        subject = concatstr(4,