From: mmj Date: Thu, 24 Jun 2004 13:04:04 +0000 (+1000) Subject: Add checks for regexec and regcomp to configure X-Git-Tag: RELEASE_1_0_0~60 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd15bd6569d985c2b0091fc4ea30ddd9ea76c0e1;p=thirdparty%2Fmlmmj.git Add checks for regexec and regcomp to configure --- diff --git a/config.h.in b/config.h.in index 8dbafe70..951dac38 100644 --- a/config.h.in +++ b/config.h.in @@ -34,6 +34,12 @@ /* Define to 1 if you have the 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 diff --git a/configure.ac b/configure.ac index 0b58eceb..3611a5d8 100644 --- a/configure.ac +++ b/configure.ac @@ -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]) diff --git a/src/do_all_the_voodo_here.c b/src/do_all_the_voodo_here.c index 2679f0d0..da426c1a 100644 --- a/src/do_all_the_voodo_here.c +++ b/src/do_all_the_voodo_here.c @@ -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,