/[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 128 by ph10, Tue Mar 20 11:46:50 2007 UTC revision 155 by ph10, Tue Apr 24 13:36:11 2007 UTC
# Line 8  dnl empty. Line 8  dnl empty.
8    
9  m4_define(pcre_major, [7])  m4_define(pcre_major, [7])
10  m4_define(pcre_minor, [1])  m4_define(pcre_minor, [1])
11  m4_define(pcre_prerelease, [-RC2])  m4_define(pcre_prerelease, [])
12  m4_define(pcre_date, [2007-03-20])  m4_define(pcre_date, [2007-04-24])
13    
14  # Libtool shared library interface versions (current:revision:age)  # Libtool shared library interface versions (current:revision:age)
15  m4_define(libpcre_version, [0:1:0])  m4_define(libpcre_version, [0:1:0])
# Line 26  AC_PROG_CXX Line 26  AC_PROG_CXX
26  AC_PROG_INSTALL  AC_PROG_INSTALL
27  AC_LIBTOOL_WIN32_DLL  AC_LIBTOOL_WIN32_DLL
28  AC_PROG_LIBTOOL  AC_PROG_LIBTOOL
29    AC_PROG_LN_S
30    
31  PCRE_MAJOR="pcre_major"  PCRE_MAJOR="pcre_major"
32  PCRE_MINOR="pcre_minor"  PCRE_MINOR="pcre_minor"
# Line 70  AC_ARG_ENABLE(unicode-properties, Line 71  AC_ARG_ENABLE(unicode-properties,
71  # Handle --enable-newline=NL  # Handle --enable-newline=NL
72  dnl AC_ARG_ENABLE(newline,  dnl AC_ARG_ENABLE(newline,
73  dnl               AS_HELP_STRING([--enable-newline=NL],  dnl               AS_HELP_STRING([--enable-newline=NL],
74  dnl                              [use NL as newline (lf, cr, crlf, any; default=lf)]),  dnl                              [use NL as newline (lf, cr, crlf, anycrlf, any; default=lf)]),
75  dnl               , enable_newline=lf)  dnl               , enable_newline=lf)
76    
77  # Separate newline options  # Separate newline options
# Line 87  AC_ARG_ENABLE(newline-is-crlf, Line 88  AC_ARG_ENABLE(newline-is-crlf,
88                AS_HELP_STRING([--enable-newline-is-crlf],                AS_HELP_STRING([--enable-newline-is-crlf],
89                               [use CRLF as newline sequence]),                               [use CRLF as newline sequence]),
90                ac_pcre_newline=crlf)                ac_pcre_newline=crlf)
91    AC_ARG_ENABLE(newline-is-anycrlf,
92                  AS_HELP_STRING([--enable-newline-is-anycrlf],
93                                 [use CR, LF, or CRLF as newline sequence]),
94                  ac_pcre_newline=anycrlf)
95  AC_ARG_ENABLE(newline-is-any,  AC_ARG_ENABLE(newline-is-any,
96                AS_HELP_STRING([--enable-newline-is-any],                AS_HELP_STRING([--enable-newline-is-any],
97                               [use any valid Unicode newline sequence]),                               [use any valid Unicode newline sequence]),
# Line 155  fi Line 160  fi
160    
161  # 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.
162  #  #
163  if test "x$enable_ebcdie" = "xyes"  if test "x$enable_ebcdic" = "xyes"
164  then  then
165    enable_rebuild_chartables=yes    enable_rebuild_chartables=yes
166  fi  fi
167    
168  # Convert the newline identifier into the appropriate integer value.  # Convert the newline identifier into the appropriate integer value.
169  case "$enable_newline" in  case "$enable_newline" in
170    lf)   ac_pcre_newline_value=10   ;;    lf)      ac_pcre_newline_value=10   ;;
171    cr)   ac_pcre_newline_value=13   ;;    cr)      ac_pcre_newline_value=13   ;;
172    crlf) ac_pcre_newline_value=3338 ;;    crlf)    ac_pcre_newline_value=3338 ;;
173    any)  ac_pcre_newline_value=-1   ;;    anycrlf) ac_pcre_newline_value=-2   ;;
174      any)     ac_pcre_newline_value=-1   ;;
175    *)    *)
176    AC_MSG_ERROR([invalid argument \"$enable_newline\" to --enable-newline option])    AC_MSG_ERROR([invalid argument \"$enable_newline\" to --enable-newline option])
177    ;;    ;;
# Line 279  AC_DEFINE_UNQUOTED([NEWLINE], [$ac_pcre_ Line 285  AC_DEFINE_UNQUOTED([NEWLINE], [$ac_pcre_
285    The value of NEWLINE determines the newline character sequence. On    The value of NEWLINE determines the newline character sequence. On
286    Unix-like systems, "configure" can be used to override the default,    Unix-like systems, "configure" can be used to override the default,
287    which is 10. The possible values are 10 (LF), 13 (CR), 3338 (CRLF),    which is 10. The possible values are 10 (LF), 13 (CR), 3338 (CRLF),
288    or -1 (ANY).])    -1 (ANY), or -2 (ANYCRLF).])
289    
290  AC_DEFINE_UNQUOTED([LINK_SIZE], [$with_link_size], [  AC_DEFINE_UNQUOTED([LINK_SIZE], [$with_link_size], [
291    The value of LINK_SIZE determines the number of bytes used to store    The value of LINK_SIZE determines the number of bytes used to store
# Line 337  AC_DEFINE([MAX_DUPLENGTH], [30000], [ Line 343  AC_DEFINE([MAX_DUPLENGTH], [30000], [
343    change it. Care must be taken if it is increased, because it guards    change it. Care must be taken if it is increased, because it guards
344    against integer overflow caused by enormously large patterns.])    against integer overflow caused by enormously large patterns.])
345    
346  AH_VERBATIM([PCRE_DATA_SCOPE], [  AH_VERBATIM([PCRE_EXP_DEFN], [
347  /* 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
348     Win32, and it needs some magic to be inserted before the definition     Win32, and it needs some magic to be inserted before the definition
349     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
# Line 347  AH_VERBATIM([PCRE_DATA_SCOPE], [ Line 353  AH_VERBATIM([PCRE_DATA_SCOPE], [
353     every exported function that is part of the external API. It does     every exported function that is part of the external API. It does
354     not appear on functions that are "external" in the C sense, but     not appear on functions that are "external" in the C sense, but
355     which are internal to the library. */     which are internal to the library. */
356  #undef PCRE_DATA_SCOPE])  #undef PCRE_EXP_DEFN])
357    
358  if test "$enable_ebcdic" = "yes"; then  if test "$enable_ebcdic" = "yes"; then
359    AC_DEFINE_UNQUOTED([EBCDIC], [], [    AC_DEFINE_UNQUOTED([EBCDIC], [], [
# Line 388  AC_SUBST(DISTCHECK_CONFIGURE_FLAGS) Line 394  AC_SUBST(DISTCHECK_CONFIGURE_FLAGS)
394  # Produce these files, in addition to config.h.  # Produce these files, in addition to config.h.
395  AC_CONFIG_FILES(  AC_CONFIG_FILES(
396          Makefile          Makefile
         RunGrepTest  
         RunTest  
397          libpcre.pc          libpcre.pc
398          libpcrecpp.pc          libpcrecpp.pc
399          pcre-config          pcre-config
# Line 399  AC_CONFIG_FILES( Line 403  AC_CONFIG_FILES(
403  )  )
404    
405  # Make the generated script files executable.  # Make the generated script files executable.
406  AC_CONFIG_COMMANDS([script-chmod], [chmod a+x RunTest RunGrepTest pcre-config])  AC_CONFIG_COMMANDS([script-chmod], [chmod a+x pcre-config])
   
 AC_OUTPUT  
407    
408  # Make sure that pcre_chartables.c is removed in case the method for  # Make sure that pcre_chartables.c is removed in case the method for
409  # creating it was changed by reconfiguration.  # creating it was changed by reconfiguration.
410    AC_CONFIG_COMMANDS([delete-old-chartables], [rm -f pcre_chartables.c])
411    
412  rm -f pcre_chartables.c  AC_OUTPUT
413    
414  # Print out a nice little message after configure is run displaying your  # Print out a nice little message after configure is run displaying your
415  # chosen options.  # chosen options.

Legend:
Removed from v.128  
changed lines
  Added in v.155

  ViewVC Help
Powered by ViewVC 1.1.5