~yadi/squid/te-gzip

« back to all changes in this revision

Viewing changes to acinclude/lib-checks.m4

  • Committer: Amos Jeffries
  • Date: 2016-11-20 09:12:00 UTC
  • mfrom: (14178.1.18 regex)
  • Revision ID: squid3@treenet.co.nz-20161120091200-6igx73hewk83nydi
C++11: Remove GnuRegex and all -lregex related code

Squid is now exclusively using the STL std::regex API provided on all
operating systems in a portable manner.

We no longer have any need of detecting if the system is providing a
libregex, or user has configured one, or if it actually works, or how
to call it, or use the GnuRegex code as a backup when one of those
complex details goes wrong.

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
])
33
33
 
34
34
 
35
 
dnl check whether regex works by actually compiling one
36
 
dnl sets squid_cv_regex_works to either yes or no
37
 
 
38
 
AC_DEFUN([SQUID_CHECK_REGEX_WORKS],[
39
 
  AC_CACHE_CHECK([if the system-supplied regex lib actually works],squid_cv_regex_works,[
40
 
    AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
41
 
#if HAVE_SYS_TYPES_H
42
 
#include <sys/types.h>
43
 
#endif
44
 
#if HAVE_REGEX_H
45
 
#include <regex.h> 
46
 
#endif
47
 
]], [[
48
 
regex_t t; regcomp(&t,"",0);]])],
49
 
    [ squid_cv_regex_works=yes ],
50
 
    [ squid_cv_regex_works=no ])
51
 
  ])
52
 
])
53
 
 
54
 
 
55
35
AC_DEFUN([SQUID_CHECK_LIBIPHLPAPI],[
56
36
  AC_CACHE_CHECK([for libIpHlpApi],squid_cv_have_libiphlpapi,[
57
37
    SQUID_STATE_SAVE(iphlpapi)