]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Haxk: fix autoconf 2.64 builds
authorAmos Jeffries <squid3@treenet.co.nz>
Tue, 11 Aug 2009 03:14:59 +0000 (15:14 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Tue, 11 Aug 2009 03:14:59 +0000 (15:14 +1200)
2.64 requires that the first use of AC_RUN_IFELSE is not wrapped inside
any other macros. Otherwise it will define the setup macros at the wrong
scope level and configure will break during the default type checks.

configure.in

index 0faa96491714d137d9463609484645f3e406802b..78ef4e4498c135f00f36a217fcf03a3d3da03c79 100644 (file)
@@ -344,6 +344,10 @@ AC_ARG_ENABLE(debug-cbdata,
   fi
 ])
 
+dnl Nasty hack to get autoconf 2.64 on Linux to run.
+dnl all other uses of RUN_IFELSE are wrapped inside CACHE_CHECK which breaks on 2.64
+AC_RUN_IFELSE([AC_LANG_SOURCE([[ int main(int argc, char **argv) { return 0; } ]])],[],[],[])
+
 dnl This is a developer only option.. developers know how to set defines
 dnl
 dnl AC_ARG_ENABLE(xmalloc-debug,