3744
if test "x$CC" != xcc; then
3745
{ echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3746
echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3748
{ echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3749
echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3751
set dummy $CC; ac_cc=`echo $2 |
3752
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3753
if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3754
echo $ECHO_N "(cached) $ECHO_C" >&6
3756
cat >conftest.$ac_ext <<_ACEOF
3759
cat confdefs.h >>conftest.$ac_ext
3760
cat >>conftest.$ac_ext <<_ACEOF
3761
/* end confdefs.h. */
3771
# Make sure it works both with $CC and with simple cc.
3772
# We do the test twice because some compilers refuse to overwrite an
3773
# existing .o file with -o, though they will create one.
3774
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3776
if { (case "(($ac_try" in
3777
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3778
*) ac_try_echo=$ac_try;;
3780
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3781
(eval "$ac_try") 2>&5
3783
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784
(exit $ac_status); } &&
3785
test -f conftest2.$ac_objext && { (case "(($ac_try" in
3786
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3787
*) ac_try_echo=$ac_try;;
3789
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3790
(eval "$ac_try") 2>&5
3792
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793
(exit $ac_status); };
3795
eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3796
if test "x$CC" != xcc; then
3797
# Test first that cc exists at all.
3798
if { ac_try='cc -c conftest.$ac_ext >&5'
3799
{ (case "(($ac_try" in
3800
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3801
*) ac_try_echo=$ac_try;;
3803
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3804
(eval "$ac_try") 2>&5
3806
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807
(exit $ac_status); }; }; then
3808
ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3810
if { (case "(($ac_try" in
3811
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3812
*) ac_try_echo=$ac_try;;
3814
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3815
(eval "$ac_try") 2>&5
3817
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818
(exit $ac_status); } &&
3819
test -f conftest2.$ac_objext && { (case "(($ac_try" in
3820
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3821
*) ac_try_echo=$ac_try;;
3823
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3824
(eval "$ac_try") 2>&5
3826
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827
(exit $ac_status); };
3832
# cc exists but doesn't like -o.
3833
eval ac_cv_prog_cc_${ac_cc}_c_o=no
3838
eval ac_cv_prog_cc_${ac_cc}_c_o=no
3840
rm -f core conftest*
3843
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3844
{ echo "$as_me:$LINENO: result: yes" >&5
3845
echo "${ECHO_T}yes" >&6; }
3847
{ echo "$as_me:$LINENO: result: no" >&5
3848
echo "${ECHO_T}no" >&6; }
3850
cat >>confdefs.h <<\_ACEOF
3851
#define NO_MINUS_C_MINUS_O 1
3856
# FIXME: we rely on the cache variable name because
3857
# there is no other way.
3859
ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3860
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3861
# Losing compiler, so override with the script.
3862
# FIXME: It is wrong to rewrite CC.
3863
# But if we don't then we get into trouble of one sort or another.
3864
# A longer-term fix would be to have automake use am__CC in this case,
3865
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3866
CC="$am_aux_dir/compile $CC"
3744
3870
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3745
3871
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3746
3872
if test "${lt_cv_path_SED+set}" = set; then
7799
7925
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7800
7926
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7801
7927
-e 's:$: $lt_compiler_flag:'`
7802
(eval echo "\"\$as_me:7802: $lt_compile\"" >&5)
7928
(eval echo "\"\$as_me:7928: $lt_compile\"" >&5)
7803
7929
(eval "$lt_compile" 2>conftest.err)
7805
7931
cat conftest.err >&5
7806
echo "$as_me:7806: \$? = $ac_status" >&5
7932
echo "$as_me:7932: \$? = $ac_status" >&5
7807
7933
if (exit $ac_status) && test -s "$ac_outfile"; then
7808
7934
# The compiler can only warn and ignore the option if not recognized
7809
7935
# So say no if there are warnings other than the usual output.
8067
8193
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8068
8194
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8069
8195
-e 's:$: $lt_compiler_flag:'`
8070
(eval echo "\"\$as_me:8070: $lt_compile\"" >&5)
8196
(eval echo "\"\$as_me:8196: $lt_compile\"" >&5)
8071
8197
(eval "$lt_compile" 2>conftest.err)
8073
8199
cat conftest.err >&5
8074
echo "$as_me:8074: \$? = $ac_status" >&5
8200
echo "$as_me:8200: \$? = $ac_status" >&5
8075
8201
if (exit $ac_status) && test -s "$ac_outfile"; then
8076
8202
# The compiler can only warn and ignore the option if not recognized
8077
8203
# So say no if there are warnings other than the usual output.
8171
8297
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8172
8298
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8173
8299
-e 's:$: $lt_compiler_flag:'`
8174
(eval echo "\"\$as_me:8174: $lt_compile\"" >&5)
8300
(eval echo "\"\$as_me:8300: $lt_compile\"" >&5)
8175
8301
(eval "$lt_compile" 2>out/conftest.err)
8177
8303
cat out/conftest.err >&5
8178
echo "$as_me:8178: \$? = $ac_status" >&5
8304
echo "$as_me:8304: \$? = $ac_status" >&5
8179
8305
if (exit $ac_status) && test -s out/conftest2.$ac_objext
8181
8307
# The compiler can only warn and ignore the option if not recognized
12915
13041
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12916
13042
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12917
13043
-e 's:$: $lt_compiler_flag:'`
12918
(eval echo "\"\$as_me:12918: $lt_compile\"" >&5)
13044
(eval echo "\"\$as_me:13044: $lt_compile\"" >&5)
12919
13045
(eval "$lt_compile" 2>conftest.err)
12921
13047
cat conftest.err >&5
12922
echo "$as_me:12922: \$? = $ac_status" >&5
13048
echo "$as_me:13048: \$? = $ac_status" >&5
12923
13049
if (exit $ac_status) && test -s "$ac_outfile"; then
12924
13050
# The compiler can only warn and ignore the option if not recognized
12925
13051
# So say no if there are warnings other than the usual output.
13019
13145
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13020
13146
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13021
13147
-e 's:$: $lt_compiler_flag:'`
13022
(eval echo "\"\$as_me:13022: $lt_compile\"" >&5)
13148
(eval echo "\"\$as_me:13148: $lt_compile\"" >&5)
13023
13149
(eval "$lt_compile" 2>out/conftest.err)
13025
13151
cat out/conftest.err >&5
13026
echo "$as_me:13026: \$? = $ac_status" >&5
13152
echo "$as_me:13152: \$? = $ac_status" >&5
13027
13153
if (exit $ac_status) && test -s out/conftest2.$ac_objext
13029
13155
# The compiler can only warn and ignore the option if not recognized
14589
14715
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14590
14716
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14591
14717
-e 's:$: $lt_compiler_flag:'`
14592
(eval echo "\"\$as_me:14592: $lt_compile\"" >&5)
14718
(eval echo "\"\$as_me:14718: $lt_compile\"" >&5)
14593
14719
(eval "$lt_compile" 2>conftest.err)
14595
14721
cat conftest.err >&5
14596
echo "$as_me:14596: \$? = $ac_status" >&5
14722
echo "$as_me:14722: \$? = $ac_status" >&5
14597
14723
if (exit $ac_status) && test -s "$ac_outfile"; then
14598
14724
# The compiler can only warn and ignore the option if not recognized
14599
14725
# So say no if there are warnings other than the usual output.
14693
14819
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14694
14820
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14695
14821
-e 's:$: $lt_compiler_flag:'`
14696
(eval echo "\"\$as_me:14696: $lt_compile\"" >&5)
14822
(eval echo "\"\$as_me:14822: $lt_compile\"" >&5)
14697
14823
(eval "$lt_compile" 2>out/conftest.err)
14699
14825
cat out/conftest.err >&5
14700
echo "$as_me:14700: \$? = $ac_status" >&5
14826
echo "$as_me:14826: \$? = $ac_status" >&5
14701
14827
if (exit $ac_status) && test -s out/conftest2.$ac_objext
14703
14829
# The compiler can only warn and ignore the option if not recognized
16891
17017
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16892
17018
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16893
17019
-e 's:$: $lt_compiler_flag:'`
16894
(eval echo "\"\$as_me:16894: $lt_compile\"" >&5)
17020
(eval echo "\"\$as_me:17020: $lt_compile\"" >&5)
16895
17021
(eval "$lt_compile" 2>conftest.err)
16897
17023
cat conftest.err >&5
16898
echo "$as_me:16898: \$? = $ac_status" >&5
17024
echo "$as_me:17024: \$? = $ac_status" >&5
16899
17025
if (exit $ac_status) && test -s "$ac_outfile"; then
16900
17026
# The compiler can only warn and ignore the option if not recognized
16901
17027
# So say no if there are warnings other than the usual output.
17159
17285
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17160
17286
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17161
17287
-e 's:$: $lt_compiler_flag:'`
17162
(eval echo "\"\$as_me:17162: $lt_compile\"" >&5)
17288
(eval echo "\"\$as_me:17288: $lt_compile\"" >&5)
17163
17289
(eval "$lt_compile" 2>conftest.err)
17165
17291
cat conftest.err >&5
17166
echo "$as_me:17166: \$? = $ac_status" >&5
17292
echo "$as_me:17292: \$? = $ac_status" >&5
17167
17293
if (exit $ac_status) && test -s "$ac_outfile"; then
17168
17294
# The compiler can only warn and ignore the option if not recognized
17169
17295
# So say no if there are warnings other than the usual output.
17263
17389
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17264
17390
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17265
17391
-e 's:$: $lt_compiler_flag:'`
17266
(eval echo "\"\$as_me:17266: $lt_compile\"" >&5)
17392
(eval echo "\"\$as_me:17392: $lt_compile\"" >&5)
17267
17393
(eval "$lt_compile" 2>out/conftest.err)
17269
17395
cat out/conftest.err >&5
17270
echo "$as_me:17270: \$? = $ac_status" >&5
17396
echo "$as_me:17396: \$? = $ac_status" >&5
17271
17397
if (exit $ac_status) && test -s out/conftest2.$ac_objext
17273
17399
# The compiler can only warn and ignore the option if not recognized