Diff for /parser3/configure.ac between versions 1.51 and 1.63

version 1.51, 2021/01/20 15:35:26 version 1.63, 2024/12/21 13:57:55
Line 1 Line 1
 dnl Autoconf initialization  dnl Autoconf initialization
 AC_PREREQ(2.59)  AC_PREREQ(2.59)
 AC_INIT(parser, 3.4.6)  AC_INIT(parser, 3.5.0rc)
 AC_CONFIG_SRCDIR(README)  AC_CONFIG_SRCDIR(README)
   
   
Line 181  dnl PCRE argument Line 181  dnl PCRE argument
 AC_ARG_WITH(pcre,[  --with-pcre=DIR         DIR is the directory where  AC_ARG_WITH(pcre,[  --with-pcre=DIR         DIR is the directory where
                           PCRE library is installed],[                            PCRE library is installed],[
         PCRE=$withval          PCRE=$withval
         PCRE_INCLUDES="-I$PCRE/include"  
         PCRE_LIBS="$PCRE/lib/libpcre.la"  
   
         if test -f $PCRE/include/pcre.h -a -f $PCRE_LIBS; then  
                 PCRE_OK="yes"  
         else  
                 PCRE_LIBS="-L$PCRE/lib -lpcre"  
         fi  
   
         if test "$PCRE" = "yes"; then          if test "$PCRE" = "yes"; then
                 PCRE=""                  PCRE=""
                 PCRE_LIBS="-lpcre"  
                 PCRE_INCLUDES=""  
                 AC_MSG_WARN([--with-pcre value was not specified, hoping linker would find it])                  AC_MSG_WARN([--with-pcre value was not specified, hoping linker would find it])
           else
                   PCRE_INCLUDES="-I$PCRE/include"
   
                   if test -f $PCRE/include/pcre.h -a -f $PCRE/lib/libpcre.la; then
                           PCRE_OK="yes"
                           PCRE_LIBS="$PCRE/lib/libpcre.la"
                   else
                           if test -f $PCRE/include/pcre2.h -a -f $PCRE/lib/libpcre2-8.la; then
                                   PCRE_OK="yes"
                                   PCRE_LIBS="$PCRE/lib/libpcre2-8.la"
                                   AC_DEFINE(HAVE_PCRE2,,PCRE2 is available)
                           else
                                   PCRE_LIBS="-L$PCRE/lib"
                           fi
                   fi
         fi          fi
 ],[  ],[
         PCRE_LIBS="-lpcre"  
         PCRE_INCLUDES=""  
         AC_MSG_WARN([--with-pcre was not specified, hoping linker would find it])          AC_MSG_WARN([--with-pcre was not specified, hoping linker would find it])
 ])  ])
   
 if test -z "$PCRE_OK"; then  if test -z "$PCRE_OK"; then
         AC_MSG_CHECKING(for prce)          AC_MSG_CHECKING(for pcre2)
           SAVE_LIBS=$LIBS
           LIBS="$LIBS $PCRE_LIBS $PCRE_INCLUDES -lpcre2-8"
           AC_TRY_LINK([ #define PCRE2_CODE_UNIT_WIDTH 8
   #include <pcre2.h> ],[ void *v=pcre2_general_context_create(0,0,0); ],
                   AC_MSG_RESULT(yes)
                   PCRE_LIBS="$PCRE_LIBS -lpcre2-8"
                   AC_DEFINE(HAVE_PCRE2,,PCRE2 is available)
                   PCRE_OK="yes"
           ,
                   AC_MSG_RESULT(no)
           )
           LIBS=$SAVE_LIBS
   fi
   
   if test -z "$PCRE_OK"; then
           AC_MSG_CHECKING(for pcre)
           PCRE_LIBS="$PCRE_LIBS -lpcre"
         SAVE_LIBS=$LIBS          SAVE_LIBS=$LIBS
         LIBS="$LIBS $PCRE_LIBS $PCRE_INCLUDES"          LIBS="$LIBS $PCRE_LIBS $PCRE_INCLUDES"
         AC_TRY_LINK([ #include <pcre.h> ],[ const char *v=pcre_version(); ],          AC_TRY_LINK([ #include <pcre.h> ],[ const char *v=pcre_version(); ],
Line 425  AC_CHECK_LIB(crypt, crypt) Line 445  AC_CHECK_LIB(crypt, crypt)
   
   
 dnl Checks for functions  dnl Checks for functions
 AC_CHECK_FUNCS(flock _locking fcntl lockf ftruncate fchmod)  AC_CHECK_FUNCS(flock fcntl lockf ftruncate fchmod)
 AC_CHECK_FUNCS(getrusage gettimeofday crypt sigsetjmp siglongjmp unsetenv)  AC_CHECK_FUNCS(getrusage gettimeofday crypt sigsetjmp siglongjmp unsetenv)
   
   

Removed from v.1.51  
changed lines
  Added in v.1.63


E-mail: