Changeset 588 for trunk/configure.ac


Ignore:
Timestamp:
Oct 26, 2025, 12:17:47 PM (16 hours ago)
Author:
katerina
Message:

Fix for ticket #476 (move logfile monitoring module from PCRE to PCRE2).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r583 r588  
    16791679        [
    16801680        if test "x${enable_logfile_monitor}" = xyes; then
    1681            AC_CHECK_HEADER(pcre.h,
     1681           cflags_store="$CFLAGS"
     1682           CFLAGS="$CFLAGS -DPCRE2_CODE_UNIT_WIDTH=8"
     1683           AC_CHECK_HEADER(pcre2.h,
    16821684                           [
    16831685                           AC_DEFINE([USE_LOGFILE_MONITOR], [1], [Define if you want the logfile monitor module.])
    1684                            LIBS="-lpcre $LIBS"
     1686                           LIBS="-lpcre2-8 $LIBS"
    16851687                           ],
    16861688                           [
    1687                                 AC_CHECK_HEADER(pcre/pcre.h,
     1689                                AC_CHECK_HEADER(pcre2/pcre2.h,
    16881690                                [
    16891691                                AC_DEFINE([USE_LOGFILE_MONITOR], [1], [Define if you want the logfile monitor module.])
    1690                                 AC_DEFINE([HAVE_PCRE_PCRE_H], [1], [Define if you have pcre/pcre.h.])
    1691                                 LIBS="-lpcre $LIBS"
     1692                                AC_DEFINE([HAVE_PCRE2_PCRE2_H], [1], [Define if you have pcre2/pcre2.h.])
     1693                                LIBS="-lpcre2-8 $LIBS"
    16921694                                ],
    16931695                                [AC_MSG_ERROR([The --enable-logfile-monitor option requires libpcre. For compiling the pcre development package is needed.])]
     
    16951697                          ]
    16961698           )
    1697            AC_CHECK_LIB(pcre, pcre_dfa_exec, [
    1698                               AC_DEFINE([HAVE_PCRE_DFA_EXEC], [1], [Define if you have pcre_dfa_exec])
    1699                               ], [
    1700                               AC_MSG_WARN([pcre_dfa_exec not available])
    1701                               ])
     1699          CFLAGS="$cflags_store"
    17021700        fi
    17031701        ]
Note: See TracChangeset for help on using the changeset viewer.