Ignore:
Timestamp:
26/07/2007 23:05:56 (5 years ago)
Author:
chris
Message:

Work around the fact that we may have regex support without having
regex.h (e.g. from pcreposix.h/libpcreposix) and disabuse HAVE_REGEX_H,
define and use HAVE_REGEX_SUPPORT instead, thanks Gary!
(refs #3, merges [1677] [1678] [1679])

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/chris/merge/configure.ac

    r1545 r1771  
    113113if test "$have_regex_h" = "yes"; then 
    114114  AC_DEFINE([HAVE_REGEX_H], [1], [Define to 1 if regex.h is available]) 
    115   AC_SEARCH_LIBS([regcomp], ["pcreposix -lpcre"]) 
     115else 
     116  AC_CHECK_HEADER([pcreposix.h], [have_pcreposix_h=yes]) 
     117fi 
     118 
     119if test "$have_pcreposix_h" = "yes"; then 
     120  AC_SEARCH_LIBS([regcomp], ["pcreposix -lpcre"],,[have_pcreposix_h=no_regcomp]) 
     121fi 
     122 
     123if test "$have_pcreposix_h" = "yes"; then 
     124  AC_DEFINE([HAVE_PCREPOSIX_H], [1], [Define to 1 if pcreposix.h is available]) 
     125fi 
     126 
     127if test "$have_regex_h" = "yes" -o "$have_pcreposix_h" = "yes"; then 
     128  have_regex_support=yes 
     129  AC_DEFINE([HAVE_REGEX_SUPPORT], [1], [Define to 1 if regular expressions are supported]) 
     130else 
     131  have_regex_support=no 
    116132fi 
    117133 
     
    275291to the documentation for more information on each feature. 
    276292 
    277 Regular expressions: $have_regex_h 
     293Regular expressions: $have_regex_support 
    278294Large files:         $have_large_file_support 
    279295Berkeley DB:         $ax_path_bdb_ok 
Note: See TracChangeset for help on using the changeset viewer.