Hi all,
The Squid 3 configure script under ksh is showing:
checking whether compiler accepts -fhuge-objects... yes
but that's not true for my g++.
Here's a test case to show what's happening:
$ cat test.sh
`exit 1`; echo $?
`. /dev/null; exit 1`; echo $?
`. /dev/null; exit 1` >/dev/null; echo $?
Results (reformatted):
bash: 1, 1, 1
ksh: 0, 1, 0
ksh93: 1, 1, 0
Weird huh. Suggested patch follows.
diff -urN ../squid-3.0-PRE3-20030920/acinclude.m4 ./acinclude.m4
--- ../squid-3.0-PRE3-20030920/acinclude.m4 2003-08-30 19:08:21.000000000
+1000
+++ ./acinclude.m4 2003-09-20 23:14:32.000000000 +1000
@@ -71,7 +71,7 @@
res=$?
rm -f conftest.*
echo yes
-exit $res` 2> /dev/null
+exit $res`
if [[ $? -ne 0 ]]
then ac_cv_test_checkforhugeobjects=no
else if [[ -z "$ac_cv_test_checkforhugeobjects" ]]
diff -urN ../squid-3.0-PRE3-20030920/lib/libTrie/acinclude.m4
./lib/libTrie/acinclude.m4
--- ../squid-3.0-PRE3-20030920/lib/libTrie/acinclude.m4 2003-08-19
10:15:02.000000000 +1000
+++ ./lib/libTrie/acinclude.m4 2003-09-20 23:14:33.000000000 +1000
@@ -13,7 +13,7 @@
res=$?
rm -f conftest.*
echo yes
-exit $res` 2> /dev/null
+exit $res`
if [[ $? -ne 0 ]]
then ac_cv_test_checkforhugeobjects=no
else if [[ -z "$ac_cv_test_checkforhugeobjects" ]]
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:20:41 MST