From e42d1cf9fd3183bf385c942b960a31a973ba9f52 Mon Sep 17 00:00:00 2001 From: Mukund Sivaraman Date: Sun, 3 Jan 2010 13:52:00 +0530 Subject: Use a configure arg to request regex checking Disabling the regex check seems to be required during cross-compiles, where it's not possible to test the target's regex library at compile time. --- configure.ac | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 0762bd3..efc52d8 100644 --- a/configure.ac +++ b/configure.ac @@ -131,6 +131,11 @@ if test x"$transparent_enabled" = x"yes"; then AC_DEFINE(TRANSPARENT_PROXY) fi +dnl Check for broken regex library +TP_ARG_ENABLE(regexcheck, + [Check for working regex library (default is YES)], + yes) + # This is required to build test programs below AC_PROG_CC @@ -227,7 +232,7 @@ dnl Handle the REGEX library if test x"$ac_cv_func_regexec" != x"yes"; then AC_MSG_ERROR([Could not locate the regexec() function]) else - if test x"$i_know_my_regex_works" != x"yes"; then + if test x"$regexcheck_enabled" = x"yes" ; then AC_MSG_CHECKING([whether the system's regex library is broken]) AC_CACHE_VAL(tinyproxy_cv_regex_broken, [AC_TRY_RUN([ -- cgit v1.2.3