summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathew Mrosko <banu-bugzilla@matmrosko.com>2009-12-22 09:24:56 -0800
committerMichael Adam <obnox@samba.org>2010-01-02 00:10:17 +0100
commitdf08d801fe5a5cbd2a5401715f47b08089bebede (patch)
tree8fbd01b5131bc3e3aef7d8546f1557ae7866be25
parente0fabc61276ae0177559e796d921a719394a0212 (diff)
downloadtinyproxy-df08d801fe5a5cbd2a5401715f47b08089bebede.tar.gz
tinyproxy-df08d801fe5a5cbd2a5401715f47b08089bebede.zip
build: allow a forcing build with "broken" regex.
The configure would fail when cross compiling due to the regex check automatically failing for cross compilation. Since you can't run the regex binary check, assuming the regex library on the target platform is working would be the only way to get the build working, or adding a force for people to control based on their build environment. Signed-off-by: Michael Adam <obnox@samba.org>
-rw-r--r--configure.ac2
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index c3d61a8..6ac6c14 100644
--- a/configure.ac
+++ b/configure.ac
@@ -227,6 +227,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
AC_MSG_CHECKING([whether the system's regex library is broken])
AC_CACHE_VAL(tinyproxy_cv_regex_broken,
[AC_TRY_RUN([
@@ -264,6 +265,7 @@ int main(void)
if test x"$tinyproxy_cv_regex_broken" = x"yes" ; then
AC_MSG_ERROR([Your system's regexec() function is broken.])
fi
+ fi
fi
dnl