/[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 390 by ph10, Sun Mar 1 12:00:59 2009 UTC revision 391 by ph10, Tue Mar 17 21:16:01 2009 UTC
# Line 102  AC_ARG_ENABLE(rebuild-chartables, Line 102  AC_ARG_ENABLE(rebuild-chartables,
102  # Handle --enable-utf8 (disabled by default)  # Handle --enable-utf8 (disabled by default)
103  AC_ARG_ENABLE(utf8,  AC_ARG_ENABLE(utf8,
104                AS_HELP_STRING([--enable-utf8],                AS_HELP_STRING([--enable-utf8],
105                               [enable UTF-8 support]),                               [enable UTF-8 support (incompatible with --enable-ebcdic)]),
106                , enable_utf8=unset)                , enable_utf8=unset)
107    
108  # Handle --enable-unicode-properties  # Handle --enable-unicode-properties
# Line 150  AC_ARG_ENABLE(bsr-anycrlf, Line 150  AC_ARG_ENABLE(bsr-anycrlf,
150  # Handle --enable-ebcdic  # Handle --enable-ebcdic
151  AC_ARG_ENABLE(ebcdic,  AC_ARG_ENABLE(ebcdic,
152                AS_HELP_STRING([--enable-ebcdic],                AS_HELP_STRING([--enable-ebcdic],
153                               [assume EBCDIC coding rather than ASCII; use this only in (uncommon) EBCDIC environments; it implies --enable-rebuild-chartables]),                               [assume EBCDIC coding rather than ASCII; incompatible with --enable-utf8; use only in (uncommon) EBCDIC environments; it implies --enable-rebuild-chartables]),
154                , enable_ebcdic=no)                , enable_ebcdic=no)
155    
156  # Handle --disable-stack-for-recursion  # Handle --disable-stack-for-recursion
# Line 226  then Line 226  then
226  fi  fi
227    
228  # Make sure that if enable_ebcdic is set, rebuild_chartables is also enabled.  # Make sure that if enable_ebcdic is set, rebuild_chartables is also enabled.
229    # Also check that UTF-8 support is not requested, because PCRE cannot handle
230    # EBCDIC and UTF-8 in the same build. To do so it would need to use different
231    # character constants depending on the mode.
232  #  #
233  if test "x$enable_ebcdic" = "xyes"  if test "x$enable_ebcdic" = "xyes"
234  then  then
235    enable_rebuild_chartables=yes    enable_rebuild_chartables=yes
236      if test "x$enable_utf8" = "xyes"
237      then
238        AC_MSG_ERROR([support for EBCDIC and UTF-8 cannot be enabled at the same time])
239      fi
240  fi  fi
241    
242  # Convert the newline identifier into the appropriate integer value.  # Convert the newline identifier into the appropriate integer value.
# Line 381  fi Line 388  fi
388    
389  if test "$enable_utf8" = "yes"; then  if test "$enable_utf8" = "yes"; then
390    AC_DEFINE([SUPPORT_UTF8], [], [    AC_DEFINE([SUPPORT_UTF8], [], [
391      Define to enable support for the UTF-8 Unicode encoding.])      Define to enable support for the UTF-8 Unicode encoding. This will
392        work even in an EBCDIC environment, but it is incompatible with
393        the EBCDIC macro. That is, PCRE can support *either* EBCDIC code
394        *or* ASCII/UTF-8, but not both at once.])
395  fi  fi
396    
397  if test "$enable_unicode_properties" = "yes"; then  if test "$enable_unicode_properties" = "yes"; then
# Line 502  if test "$enable_ebcdic" = "yes"; then Line 512  if test "$enable_ebcdic" = "yes"; then
512    AC_DEFINE_UNQUOTED([EBCDIC], [], [    AC_DEFINE_UNQUOTED([EBCDIC], [], [
513      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
514      character codes, define this macro as 1. On systems that can use      character codes, define this macro as 1. On systems that can use
515      "configure", this can be done via --enable-ebcdic.])      "configure", this can be done via --enable-ebcdic. PCRE will then
516        assume that all input strings are in EBCDIC. If you do not define
517        this macro, PCRE will assume input strings are ASCII or UTF-8 Unicode.
518        It is not possible to build a version of PCRE that supports both
519        EBCDIC and UTF-8.])
520  fi  fi
521    
522  # Platform specific issues  # Platform specific issues

Legend:
Removed from v.390  
changed lines
  Added in v.391

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12