Amos Jeffries wrote:
Henrik Nordström wrote:
How I have done it in the past is to use a configure cache presetting
the runtime test appropriately for the target.
But this requires that all AC_TRY_RUN checks are made cacheable.
The ./configure raw code shows that the autoconf people use [:] in their
own run-time test macros. Our ones with just [] expand into that error
message. But changing ours to [:], or in some cases a nice local message
seems to remove the auto-warnings.
I *think* this will remove the need for such pre-seeding.
The cf_gen remains a problem though. I really think we should go back to
having that as a perl script. All its doing is text-manipulation or
arrays during build and the code needed to switch build-hosts underneath
automake so it can run is not trivial.
Amos
Here is the patch that makes those ./configure changes.
kromonos:
This is a patch -p1 on top of either the 3.1.6 or 3.1.7 bundle.
Amos
--
Please be using
Current Stable Squid 2.7.STABLE9 or 3.1.7
Beta testers wanted for 3.2.0.1
--- squid-3.1.6/configure 2010-08-01 08:03:14.000000000 -0600
+++ squid-3.1/configure 2010-08-29 01:22:43.000000000 -0600
@@ -19451,11 +19451,7 @@
if test "$cross_compiling" = yes; then
- { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
-See \`config.log' for more details." >&5
-$as_echo "$as_me: error: cannot run test program while cross compiling
-See \`config.log' for more details." >&2;}
- { (exit 1); exit 1; }; }
+ :
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
@@ -22760,11 +22756,7 @@
$as_echo_n "(cached) " >&6
else
if test "$cross_compiling" = yes; then
- { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
-See \`config.log' for more details." >&5
-$as_echo "$as_me: error: cannot run test program while cross compiling
-See \`config.log' for more details." >&2;}
- { (exit 1); exit 1; }; }
+ :
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
@@ -46229,11 +46221,7 @@
$as_echo_n "(cached) " >&6
else
if test "$cross_compiling" = yes; then
- { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
-See \`config.log' for more details." >&5
-$as_echo "$as_me: error: cannot run test program while cross compiling
-See \`config.log' for more details." >&2;}
- { (exit 1); exit 1; }; }
+ :
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
@@ -46306,11 +46294,7 @@
$as_echo_n "(cached) " >&6
else
if test "$cross_compiling" = yes; then
- { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
-See \`config.log' for more details." >&5
-$as_echo "$as_me: error: cannot run test program while cross compiling
-See \`config.log' for more details." >&2;}
- { (exit 1); exit 1; }; }
+ :
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
@@ -46394,11 +46378,7 @@
$as_echo_n "(cached) " >&6
else
if test "$cross_compiling" = yes; then
- { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
-See \`config.log' for more details." >&5
-$as_echo "$as_me: error: cannot run test program while cross compiling
-See \`config.log' for more details." >&2;}
- { (exit 1); exit 1; }; }
+ :
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
@@ -46475,11 +46455,7 @@
$as_echo_n "(cached) " >&6
else
if test "$cross_compiling" = yes; then
- { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
-See \`config.log' for more details." >&5
-$as_echo "$as_me: error: cannot run test program while cross compiling
-See \`config.log' for more details." >&2;}
- { (exit 1); exit 1; }; }
+ :
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
--- squid-3.1.6/helpers/negotiate_auth/squid_kerb_auth/configure 2010-08-01 08:03:13.000000000 -0600
+++ squid-3.1/helpers/negotiate_auth/squid_kerb_auth/configure 2010-08-29 01:22:43.000000000 -0600
@@ -6920,11 +6920,7 @@
else
if test "$cross_compiling" = yes; then
- { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
-See \`config.log' for more details." >&5
-$as_echo "$as_me: error: cannot run test program while cross compiling
-See \`config.log' for more details." >&2;}
- { (exit 1); exit 1; }; }
+ ac_cv_have_squid=yes
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */