/[pcre]/code/trunk/configure.ac
ViewVC logotype

Diff of /code/trunk/configure.ac

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1000 by ph10, Wed Aug 8 09:38:49 2012 UTC revision 1006 by ph10, Fri Aug 17 16:37:50 2012 UTC
# Line 586  dnl AC_DEFINE([_GNU_SOURCE], [], [Enable Line 586  dnl AC_DEFINE([_GNU_SOURCE], [], [Enable
586  PCRE_STATIC_CFLAG=""  PCRE_STATIC_CFLAG=""
587  if test "x$enable_shared" = "xno" ; then  if test "x$enable_shared" = "xno" ; then
588    AC_DEFINE([PCRE_STATIC], [1], [    AC_DEFINE([PCRE_STATIC], [1], [
589      Define if linking statically (TODO: make nice with Libtool)])      Define to any value if linking statically (TODO: make nice with Libtool)])
590    PCRE_STATIC_CFLAG="-DPCRE_STATIC"    PCRE_STATIC_CFLAG="-DPCRE_STATIC"
591  fi  fi
592  AC_SUBST(PCRE_STATIC_CFLAG)  AC_SUBST(PCRE_STATIC_CFLAG)
# Line 595  AC_SUBST(PCRE_STATIC_CFLAG) Line 595  AC_SUBST(PCRE_STATIC_CFLAG)
595    
596  if test "$enable_pcre8" = "yes"; then  if test "$enable_pcre8" = "yes"; then
597    AC_DEFINE([SUPPORT_PCRE8], [], [    AC_DEFINE([SUPPORT_PCRE8], [], [
598      Define to enable the 8 bit PCRE library.])      Define to any value to enable the 8 bit PCRE library.])
599  fi  fi
600    
601  if test "$enable_pcre16" = "yes"; then  if test "$enable_pcre16" = "yes"; then
602    AC_DEFINE([SUPPORT_PCRE16], [], [    AC_DEFINE([SUPPORT_PCRE16], [], [
603      Define to enable the 16 bit PCRE library.])      Define to any value to enable the 16 bit PCRE library.])
604  fi  fi
605    
606  if test "$enable_jit" = "yes"; then  if test "$enable_jit" = "yes"; then
607    AC_DEFINE([SUPPORT_JIT], [], [    AC_DEFINE([SUPPORT_JIT], [], [
608      Define to enable support for Just-In-Time compiling.])      Define to any value to enable support for Just-In-Time compiling.])
609  else  else
610    enable_pcregrep_jit="no"    enable_pcregrep_jit="no"
611  fi  fi
612    
613  if test "$enable_pcregrep_jit" = "yes"; then  if test "$enable_pcregrep_jit" = "yes"; then
614    AC_DEFINE([SUPPORT_PCREGREP_JIT], [], [    AC_DEFINE([SUPPORT_PCREGREP_JIT], [], [
615      Define to enable JIT support in pcregrep.])      Define to any value to enable JIT support in pcregrep.])
616  fi  fi
617    
618  if test "$enable_utf" = "yes"; then  if test "$enable_utf" = "yes"; then
619    AC_DEFINE([SUPPORT_UTF], [], [    AC_DEFINE([SUPPORT_UTF], [], [
620      Define to enable support for the UTF-8/16 Unicode encoding. This      Define to any value to enable support for the UTF-8/16 Unicode encoding.
621      will work even in an EBCDIC environment, but it is incompatible      This will work even in an EBCDIC environment, but it is incompatible
622      with the EBCDIC macro. That is, PCRE can support *either* EBCDIC      with the EBCDIC macro. That is, PCRE can support *either* EBCDIC
623      code *or* ASCII/UTF-8/16, but not both at once.])      code *or* ASCII/UTF-8/16, but not both at once.])
624  fi  fi
625    
626  if test "$enable_unicode_properties" = "yes"; then  if test "$enable_unicode_properties" = "yes"; then
627    AC_DEFINE([SUPPORT_UCP], [], [    AC_DEFINE([SUPPORT_UCP], [], [
628      Define to enable support for Unicode properties.])      Define to any value to enable support for Unicode properties.])
629  fi  fi
630    
631  if test "$enable_stack_for_recursion" = "no"; then  if test "$enable_stack_for_recursion" = "no"; then
632    AC_DEFINE([NO_RECURSE], [], [    AC_DEFINE([NO_RECURSE], [], [
633      PCRE uses recursive function calls to handle backtracking while      PCRE uses recursive function calls to handle backtracking while
634      matching. This can sometimes be a problem on systems that have      matching. This can sometimes be a problem on systems that have
635      stacks of limited size. Define NO_RECURSE to get a version that      stacks of limited size. Define NO_RECURSE to any value to get a
636      doesn't use recursion in the match() function; instead it creates      version that doesn't use recursion in the match() function; instead
637      its own stack by steam using pcre_recurse_malloc() to obtain memory      it creates its own stack by steam using pcre_recurse_malloc() to obtain
638      from the heap. For more detail, see the comments and other stuff      memory from the heap. For more detail, see the comments and other stuff
639      just above the match() function. On systems that support it,      just above the match() function. On systems that support it, "configure"
640      "configure" can be used to set this in the Makefile      can be used to set this in the Makefile (use
641      (use --disable-stack-for-recursion).])      --disable-stack-for-recursion).])
642  fi  fi
643    
644  if test "$enable_pcregrep_libz" = "yes"; then  if test "$enable_pcregrep_libz" = "yes"; then
645    AC_DEFINE([SUPPORT_LIBZ], [], [    AC_DEFINE([SUPPORT_LIBZ], [], [
646      Define to allow pcregrep to be linked with libz, so that it is      Define to any value to allow pcregrep to be linked with libz, so that it is
647      able to handle .gz files.])      able to handle .gz files.])
648  fi  fi
649    
650  if test "$enable_pcregrep_libbz2" = "yes"; then  if test "$enable_pcregrep_libbz2" = "yes"; then
651    AC_DEFINE([SUPPORT_LIBBZ2], [], [    AC_DEFINE([SUPPORT_LIBBZ2], [], [
652      Define to allow pcregrep to be linked with libbz2, so that it is      Define to any value to allow pcregrep to be linked with libbz2, so that it
653      able to handle .bz2 files.])      is able to handle .bz2 files.])
654  fi  fi
655    
656  if test $with_pcregrep_bufsize -lt 8192 ; then  if test $with_pcregrep_bufsize -lt 8192 ; then
# Line 661  AC_DEFINE_UNQUOTED([PCREGREP_BUFSIZE], [ Line 661  AC_DEFINE_UNQUOTED([PCREGREP_BUFSIZE], [
661    The value of PCREGREP_BUFSIZE determines the size of buffer used by    The value of PCREGREP_BUFSIZE determines the size of buffer used by
662    pcregrep to hold parts of the file it is searching. On systems that    pcregrep to hold parts of the file it is searching. On systems that
663    support it, "configure" can be used to override the default, which is    support it, "configure" can be used to override the default, which is
664    8192. This is also the minimum value. The actual amount of memory used by    20K. This is also the minimum value. The actual amount of memory used by
665    pcregrep is three times this number, because it allows for the buffering of    pcregrep is three times this number, because it allows for the buffering of
666    "before" and "after" lines.])    "before" and "after" lines.])
667    
668  if test "$enable_pcretest_libedit" = "yes"; then  if test "$enable_pcretest_libedit" = "yes"; then
669    AC_DEFINE([SUPPORT_LIBEDIT], [], [    AC_DEFINE([SUPPORT_LIBEDIT], [], [
670      Define to allow pcretest to be linked with libedit.])      Define to any value to allow pcretest to be linked with libedit.])
671    LIBREADLINE="$LIBEDIT"    LIBREADLINE="$LIBEDIT"
672  elif test "$enable_pcretest_libreadline" = "yes"; then  elif test "$enable_pcretest_libreadline" = "yes"; then
673    AC_DEFINE([SUPPORT_LIBREADLINE], [], [    AC_DEFINE([SUPPORT_LIBREADLINE], [], [
674      Define to allow pcretest to be linked with libreadline.])      Define to any value to allow pcretest to be linked with libreadline.])
675  fi  fi
676    
677  AC_DEFINE_UNQUOTED([NEWLINE], [$ac_pcre_newline_value], [  AC_DEFINE_UNQUOTED([NEWLINE], [$ac_pcre_newline_value], [
# Line 683  AC_DEFINE_UNQUOTED([NEWLINE], [$ac_pcre_ Line 683  AC_DEFINE_UNQUOTED([NEWLINE], [$ac_pcre_
683  if test "$enable_bsr_anycrlf" = "yes"; then  if test "$enable_bsr_anycrlf" = "yes"; then
684    AC_DEFINE([BSR_ANYCRLF], [], [    AC_DEFINE([BSR_ANYCRLF], [], [
685      By default, the \R escape sequence matches any Unicode line ending      By default, the \R escape sequence matches any Unicode line ending
686      character or sequence of characters. If BSR_ANYCRLF is defined, this is      character or sequence of characters. If BSR_ANYCRLF is defined (to any
687      changed so that backslash-R matches only CR, LF, or CRLF. The build-      value), this is changed so that backslash-R matches only CR, LF, or CRLF.
688      time default can be overridden by the user of PCRE at runtime. On      The build-time default can be overridden by the user of PCRE at runtime.
689      systems that support it, "configure" can be used to override the      On systems that support it, "configure" can be used to override the
690      default.])      default.])
691  fi  fi
692    
# Line 745  AH_VERBATIM([PCRE_EXP_DEFN], [ Line 745  AH_VERBATIM([PCRE_EXP_DEFN], [
745  /* If you are compiling for a system other than a Unix-like system or  /* If you are compiling for a system other than a Unix-like system or
746     Win32, and it needs some magic to be inserted before the definition     Win32, and it needs some magic to be inserted before the definition
747     of a function that is exported by the library, define this macro to     of a function that is exported by the library, define this macro to
748     contain the relevant magic. If you do not define this macro, it     contain the relevant magic. If you do not define this macro, a suitable
749     defaults to "extern" for a C compiler and "extern C" for a C++      __declspec value is used for Windows systems; in other environments
750     compiler on non-Win32 systems. This macro apears at the start of     "extern" is used for a C compiler and "extern C" for a C++ compiler.
751     every exported function that is part of the external API. It does     This macro apears at the start of every exported function that is part
752     not appear on functions that are "external" in the C sense, but     of the external API. It does not appear on functions that are "external"
753     which are internal to the library. */     in the C sense, but which are internal to the library. */
754  #undef PCRE_EXP_DEFN])  #undef PCRE_EXP_DEFN])
755    
756  if test "$enable_ebcdic" = "yes"; then  if test "$enable_ebcdic" = "yes"; then
757    AC_DEFINE_UNQUOTED([EBCDIC], [], [    AC_DEFINE_UNQUOTED([EBCDIC], [], [
758      If you are compiling for a system that uses EBCDIC instead of ASCII      If you are compiling for a system that uses EBCDIC instead of ASCII
759      character codes, define this macro as 1. On systems that can use      character codes, define this macro to any value. On systems that can
760      "configure", this can be done via --enable-ebcdic. PCRE will then      use "configure", this can be done via --enable-ebcdic. PCRE will then
761      assume that all input strings are in EBCDIC. If you do not define      assume that all input strings are in EBCDIC. If you do not define
762      this macro, PCRE will assume input strings are ASCII or UTF-8/16      this macro, PCRE will assume input strings are ASCII or UTF-8/16
763      Unicode. It is not possible to build a version of PCRE that      Unicode. It is not possible to build a version of PCRE that

Legend:
Removed from v.1000  
changed lines
  Added in v.1006

  ViewVC Help
Powered by ViewVC 1.1.5