]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix cross-compilation (#464)
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Fri, 23 Aug 2019 20:22:19 +0000 (20:22 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Fri, 30 Aug 2019 20:11:27 +0000 (20:11 +0000)
Do not check check file descriptor maximum value through AC_RUN_IFELSE
when cross-compiling as this will raise an error

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
acinclude/os-deps.m4

index b50717517ce417314f52585ddd10e27cc4ca1b82..12cc6b028c110951b18af83558aefadb43f9de57 100644 (file)
@@ -231,7 +231,7 @@ int main(int argc, char **argv) {
        fprintf (fp, "%d\n", i & ~0x3F);
        return 0;
 }
-  ]])],[squid_filedescriptors_limit=`cat conftestval`],[],[])
+  ]])],[squid_filedescriptors_limit=`cat conftestval`],[],[:])
   dnl Microsoft MSVCRT.DLL supports 2048 maximum FDs
   AS_CASE(["$host_os"],[mingw|mingw32],[squid_filedescriptors_limit="2048"])
   AC_MSG_RESULT($squid_filedescriptors_limit)