4707
LIBDRM_REQUIRED=2.4.24
4708
LIBDRM_RADEON_REQUIRED=2.4.42
4709
LIBDRM_INTEL_REQUIRED=2.4.38
4710
LIBDRM_NVVIEUX_REQUIRED=2.4.33
4711
LIBDRM_NOUVEAU_REQUIRED="2.4.33 libdrm >= 2.4.41"
4712
DRI2PROTO_REQUIRED=2.6
4713
GLPROTO_REQUIRED=1.4.14
4714
LIBDRM_XORG_REQUIRED=2.4.24
4715
LIBKMS_XORG_REQUIRED=1.0.0
4718
ac_cpp='$CPP $CPPFLAGS'
4719
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4720
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4721
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4722
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4723
$as_echo_n "checking how to run the C preprocessor... " >&6; }
4724
# On Suns, sometimes $CPP names a directory.
4725
if test -n "$CPP" && test -d "$CPP"; then
4728
if test -z "$CPP"; then
4729
if ${ac_cv_prog_CPP+:} false; then :
4730
$as_echo_n "(cached) " >&6
4732
# Double quotes because CPP needs to be expanded
4733
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4736
for ac_c_preproc_warn_flag in '' yes
4738
# Use a header file that comes with gcc, so configuring glibc
4739
# with a fresh cross-compiler works.
4740
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4741
# <limits.h> exists even on freestanding compilers.
4742
# On the NeXT, cc -E runs the code through the compiler's parser,
4743
# not just through cpp. "Syntax error" is here to catch this case.
4744
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4745
/* end confdefs.h. */
4747
# include <limits.h>
4749
# include <assert.h>
4753
if ac_fn_c_try_cpp "$LINENO"; then :
4756
# Broken: fails on valid input.
4759
rm -f conftest.err conftest.i conftest.$ac_ext
4761
# OK, works on sane cases. Now check whether nonexistent headers
4762
# can be detected and how.
4763
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4764
/* end confdefs.h. */
4765
#include <ac_nonexistent.h>
4767
if ac_fn_c_try_cpp "$LINENO"; then :
4768
# Broken: success on invalid input.
4771
# Passes both tests.
4775
rm -f conftest.err conftest.i conftest.$ac_ext
4778
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4779
rm -f conftest.i conftest.err conftest.$ac_ext
4780
if $ac_preproc_ok; then :
4792
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4793
$as_echo "$CPP" >&6; }
4795
for ac_c_preproc_warn_flag in '' yes
4797
# Use a header file that comes with gcc, so configuring glibc
4798
# with a fresh cross-compiler works.
4799
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4800
# <limits.h> exists even on freestanding compilers.
4801
# On the NeXT, cc -E runs the code through the compiler's parser,
4802
# not just through cpp. "Syntax error" is here to catch this case.
4803
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4804
/* end confdefs.h. */
4806
# include <limits.h>
4808
# include <assert.h>
4812
if ac_fn_c_try_cpp "$LINENO"; then :
4815
# Broken: fails on valid input.
4818
rm -f conftest.err conftest.i conftest.$ac_ext
4820
# OK, works on sane cases. Now check whether nonexistent headers
4821
# can be detected and how.
4822
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4823
/* end confdefs.h. */
4824
#include <ac_nonexistent.h>
4826
if ac_fn_c_try_cpp "$LINENO"; then :
4827
# Broken: success on invalid input.
4830
# Passes both tests.
4834
rm -f conftest.err conftest.i conftest.$ac_ext
4837
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4838
rm -f conftest.i conftest.err conftest.$ac_ext
4839
if $ac_preproc_ok; then :
4842
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4843
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4844
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4845
See \`config.log' for more details" "$LINENO" 5; }
4849
ac_cpp='$CPP $CPPFLAGS'
4850
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4851
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4852
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4855
ac_cpp='$CPP $CPPFLAGS'
4856
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4857
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4858
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4859
if test -n "$ac_tool_prefix"; then
4860
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4861
set dummy ${ac_tool_prefix}gcc; ac_word=$2
4862
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4863
$as_echo_n "checking for $ac_word... " >&6; }
4864
if ${ac_cv_prog_CC+:} false; then :
4865
$as_echo_n "(cached) " >&6
4867
if test -n "$CC"; then
4868
ac_cv_prog_CC="$CC" # Let the user override the test.
4870
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4874
test -z "$as_dir" && as_dir=.
4875
for ac_exec_ext in '' $ac_executable_extensions; do
4876
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4877
ac_cv_prog_CC="${ac_tool_prefix}gcc"
4878
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4888
if test -n "$CC"; then
4889
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4890
$as_echo "$CC" >&6; }
4892
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4893
$as_echo "no" >&6; }
4898
if test -z "$ac_cv_prog_CC"; then
4900
# Extract the first word of "gcc", so it can be a program name with args.
4901
set dummy gcc; ac_word=$2
4902
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4903
$as_echo_n "checking for $ac_word... " >&6; }
4904
if ${ac_cv_prog_ac_ct_CC+:} false; then :
4905
$as_echo_n "(cached) " >&6
4907
if test -n "$ac_ct_CC"; then
4908
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4910
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4914
test -z "$as_dir" && as_dir=.
4915
for ac_exec_ext in '' $ac_executable_extensions; do
4916
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4917
ac_cv_prog_ac_ct_CC="gcc"
4918
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4927
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4928
if test -n "$ac_ct_CC"; then
4929
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4930
$as_echo "$ac_ct_CC" >&6; }
4932
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4933
$as_echo "no" >&6; }
4936
if test "x$ac_ct_CC" = x; then
4939
case $cross_compiling:$ac_tool_warned in
4941
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4942
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4943
ac_tool_warned=yes ;;
4951
if test -z "$CC"; then
4952
if test -n "$ac_tool_prefix"; then
4953
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4954
set dummy ${ac_tool_prefix}cc; ac_word=$2
4955
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4956
$as_echo_n "checking for $ac_word... " >&6; }
4957
if ${ac_cv_prog_CC+:} false; then :
4958
$as_echo_n "(cached) " >&6
4960
if test -n "$CC"; then
4961
ac_cv_prog_CC="$CC" # Let the user override the test.
4963
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4967
test -z "$as_dir" && as_dir=.
4968
for ac_exec_ext in '' $ac_executable_extensions; do
4969
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4970
ac_cv_prog_CC="${ac_tool_prefix}cc"
4971
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4981
if test -n "$CC"; then
4982
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4983
$as_echo "$CC" >&6; }
4985
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4986
$as_echo "no" >&6; }
4992
if test -z "$CC"; then
4993
# Extract the first word of "cc", so it can be a program name with args.
4994
set dummy cc; ac_word=$2
4995
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4996
$as_echo_n "checking for $ac_word... " >&6; }
4997
if ${ac_cv_prog_CC+:} false; then :
4998
$as_echo_n "(cached) " >&6
5000
if test -n "$CC"; then
5001
ac_cv_prog_CC="$CC" # Let the user override the test.
5004
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5008
test -z "$as_dir" && as_dir=.
5009
for ac_exec_ext in '' $ac_executable_extensions; do
5010
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5011
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5012
ac_prog_rejected=yes
5016
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5023
if test $ac_prog_rejected = yes; then
5024
# We found a bogon in the path, so make sure we never use it.
5025
set dummy $ac_cv_prog_CC
5027
if test $# != 0; then
5028
# We chose a different compiler from the bogus one.
5029
# However, it has the same basename, so the bogon will be chosen
5030
# first if we set CC to just the basename; use the full file name.
5032
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5038
if test -n "$CC"; then
5039
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5040
$as_echo "$CC" >&6; }
5042
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5043
$as_echo "no" >&6; }
5048
if test -z "$CC"; then
5049
if test -n "$ac_tool_prefix"; then
5050
for ac_prog in cl.exe
5052
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5053
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5054
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5055
$as_echo_n "checking for $ac_word... " >&6; }
5056
if ${ac_cv_prog_CC+:} false; then :
5057
$as_echo_n "(cached) " >&6
5059
if test -n "$CC"; then
5060
ac_cv_prog_CC="$CC" # Let the user override the test.
5062
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5066
test -z "$as_dir" && as_dir=.
5067
for ac_exec_ext in '' $ac_executable_extensions; do
5068
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5069
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5070
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5080
if test -n "$CC"; then
5081
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5082
$as_echo "$CC" >&6; }
5084
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5085
$as_echo "no" >&6; }
5089
test -n "$CC" && break
5092
if test -z "$CC"; then
5094
for ac_prog in cl.exe
5096
# Extract the first word of "$ac_prog", so it can be a program name with args.
5097
set dummy $ac_prog; ac_word=$2
5098
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5099
$as_echo_n "checking for $ac_word... " >&6; }
5100
if ${ac_cv_prog_ac_ct_CC+:} false; then :
5101
$as_echo_n "(cached) " >&6
5103
if test -n "$ac_ct_CC"; then
5104
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5106
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5110
test -z "$as_dir" && as_dir=.
5111
for ac_exec_ext in '' $ac_executable_extensions; do
5112
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5113
ac_cv_prog_ac_ct_CC="$ac_prog"
5114
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5123
ac_ct_CC=$ac_cv_prog_ac_ct_CC
5124
if test -n "$ac_ct_CC"; then
5125
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5126
$as_echo "$ac_ct_CC" >&6; }
5128
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5129
$as_echo "no" >&6; }
5133
test -n "$ac_ct_CC" && break
5136
if test "x$ac_ct_CC" = x; then
5139
case $cross_compiling:$ac_tool_warned in
5141
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5142
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5143
ac_tool_warned=yes ;;
5152
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5153
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5154
as_fn_error $? "no acceptable C compiler found in \$PATH
5155
See \`config.log' for more details" "$LINENO" 5; }
5157
# Provide some information about the compiler.
5158
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5161
for ac_option in --version -v -V -qversion; do
5162
{ { ac_try="$ac_compiler $ac_option >&5"
5164
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5165
*) ac_try_echo=$ac_try;;
5167
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5168
$as_echo "$ac_try_echo"; } >&5
5169
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
5171
if test -s conftest.err; then
5173
... rest of stderr output deleted ...
5174
10q' conftest.err >conftest.er1
5175
cat conftest.er1 >&5
5177
rm -f conftest.er1 conftest.err
5178
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5179
test $ac_status = 0; }
5182
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5183
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5184
if ${ac_cv_c_compiler_gnu+:} false; then :
5185
$as_echo_n "(cached) " >&6
5187
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5188
/* end confdefs.h. */
5201
if ac_fn_c_try_compile "$LINENO"; then :
5206
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5207
ac_cv_c_compiler_gnu=$ac_compiler_gnu
5210
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5211
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5212
if test $ac_compiler_gnu = yes; then
5217
ac_test_CFLAGS=${CFLAGS+set}
5218
ac_save_CFLAGS=$CFLAGS
5219
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5220
$as_echo_n "checking whether $CC accepts -g... " >&6; }
5221
if ${ac_cv_prog_cc_g+:} false; then :
5222
$as_echo_n "(cached) " >&6
5224
ac_save_c_werror_flag=$ac_c_werror_flag
5225
ac_c_werror_flag=yes
5228
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5229
/* end confdefs.h. */
5239
if ac_fn_c_try_compile "$LINENO"; then :
5243
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5244
/* end confdefs.h. */
5254
if ac_fn_c_try_compile "$LINENO"; then :
5257
ac_c_werror_flag=$ac_save_c_werror_flag
5259
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5260
/* end confdefs.h. */
5270
if ac_fn_c_try_compile "$LINENO"; then :
5273
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5275
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5277
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5278
ac_c_werror_flag=$ac_save_c_werror_flag
5280
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5281
$as_echo "$ac_cv_prog_cc_g" >&6; }
5282
if test "$ac_test_CFLAGS" = set; then
5283
CFLAGS=$ac_save_CFLAGS
5284
elif test $ac_cv_prog_cc_g = yes; then
5285
if test "$GCC" = yes; then
5291
if test "$GCC" = yes; then
5297
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5298
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5299
if ${ac_cv_prog_cc_c89+:} false; then :
5300
$as_echo_n "(cached) " >&6
5302
ac_cv_prog_cc_c89=no
5304
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5305
/* end confdefs.h. */
5309
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5310
struct buf { int x; };
5311
FILE * (*rcsopen) (struct buf *, struct stat *, int);
5312
static char *e (p, i)
5318
static char *f (char * (*g) (char **, int), char **p, ...)
5323
s = g (p, va_arg (v,int));
5328
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5329
function prototypes and stuff, but not '\xHH' hex character constants.
5330
These don't provoke an error unfortunately, instead are silently treated
5331
as 'x'. The following induces an error, until -std is added to get
5332
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5333
array size at least. It's necessary to write '\x00'==0 to get something
5334
that's true only with -std. */
5335
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5337
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5338
inside strings and character constants. */
5340
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5342
int test (int i, double x);
5343
struct s1 {int (*f) (int a);};
5344
struct s2 {int (*f) (double a);};
5345
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5351
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5356
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5357
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5359
CC="$ac_save_CC $ac_arg"
5360
if ac_fn_c_try_compile "$LINENO"; then :
5361
ac_cv_prog_cc_c89=$ac_arg
5363
rm -f core conftest.err conftest.$ac_objext
5364
test "x$ac_cv_prog_cc_c89" != "xno" && break
5366
rm -f conftest.$ac_ext
5371
case "x$ac_cv_prog_cc_c89" in
5373
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5374
$as_echo "none needed" >&6; } ;;
5376
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5377
$as_echo "unsupported" >&6; } ;;
5379
CC="$CC $ac_cv_prog_cc_c89"
5380
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5381
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5383
if test "x$ac_cv_prog_cc_c89" != xno; then :
5388
ac_cpp='$CPP $CPPFLAGS'
5389
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5390
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5391
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5393
depcc="$CC" am_compiler_list=
5395
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5396
$as_echo_n "checking dependency style of $depcc... " >&6; }
5397
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5398
$as_echo_n "(cached) " >&6
5400
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5401
# We make a subdir and do the tests there. Otherwise we can end up
5402
# making bogus files that we don't know about and never remove. For
5403
# instance it was reported that on HP-UX the gcc test will end up
5404
# making a dummy file named 'D' -- because '-MD' means "put the output
5408
# Copy depcomp to subdir because otherwise we won't find it if we're
5409
# using a relative directory.
5410
cp "$am_depcomp" conftest.dir
5412
# We will build objects and dependencies in a subdirectory because
5413
# it helps to detect inapplicable dependency modes. For instance
5414
# both Tru64's cc and ICC support -MD to output dependencies as a
5415
# side effect of compilation, but ICC will put the dependencies in
5416
# the current directory while Tru64 will put them in the object
5420
am_cv_CC_dependencies_compiler_type=none
5421
if test "$am_compiler_list" = ""; then
5422
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5425
case " $depcc " in #(
5426
*\ -arch\ *\ -arch\ *) am__universal=true ;;
5429
for depmode in $am_compiler_list; do
5430
# Setup a source with many dependencies, because some compilers
5431
# like to wrap large dependency lists on column 80 (with \), and
5432
# we should not choose a depcomp mode which is confused by this.
5434
# We need to recreate these files for each test, as the compiler may
5435
# overwrite some of them when testing with obscure command lines.
5436
# This happens at least with the AIX C compiler.
5438
for i in 1 2 3 4 5 6; do
5439
echo '#include "conftst'$i'.h"' >> sub/conftest.c
5440
# Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5441
# Solaris 10 /bin/sh.
5442
echo '/* dummy */' > sub/conftst$i.h
5444
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5446
# We check with '-c' and '-o' for the sake of the "dashmstdout"
5447
# mode. It turns out that the SunPro C++ compiler does not properly
5448
# handle '-M -o', and we need to detect this. Also, some Intel
5449
# versions had trouble with output in subdirs.
5450
am__obj=sub/conftest.${OBJEXT-o}
5451
am__minus_obj="-o $am__obj"
5454
# This depmode causes a compiler race in universal mode.
5455
test "$am__universal" = false || continue
5458
# After this tag, mechanisms are not by side-effect, so they'll
5459
# only be used when explicitly requested.
5460
if test "x$enable_dependency_tracking" = xyes; then
5466
msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5467
# This compiler won't grok '-c -o', but also, the minuso test has
5468
# not run yet. These depmodes are late enough in the game, and
5469
# so weak that their functioning should not be impacted.
5470
am__obj=conftest.${OBJEXT-o}
5475
if depmode=$depmode \
5476
source=sub/conftest.c object=$am__obj \
5477
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5478
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5479
>/dev/null 2>conftest.err &&
5480
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5481
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5482
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5483
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5484
# icc doesn't choke on unknown options, it will just issue warnings
5485
# or remarks (even with -Werror). So we grep stderr for any message
5486
# that says an option was ignored or not supported.
5487
# When given -MP, icc 7.0 and 7.1 complain thusly:
5488
# icc: Command line warning: ignoring option '-M'; no argument required
5489
# The diagnosis changed in icc 8.0:
5490
# icc: Command line remark: option '-MP' not supported
5491
if (grep 'ignoring option' conftest.err ||
5492
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5493
am_cv_CC_dependencies_compiler_type=$depmode
5502
am_cv_CC_dependencies_compiler_type=none
5506
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5507
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5508
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5511
test "x$enable_dependency_tracking" != xno \
5512
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5514
am__fastdepCC_FALSE='#'
5516
am__fastdepCC_TRUE='#'
5517
am__fastdepCC_FALSE=
5524
save_cross_compiling=$cross_compiling
5525
save_ac_tool_prefix=$ac_tool_prefix
5530
ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5531
ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5532
ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
5533
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5534
if test -n "$ac_tool_prefix"; then
5535
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5536
set dummy ${ac_tool_prefix}gcc; ac_word=$2
5537
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5538
$as_echo_n "checking for $ac_word... " >&6; }
5539
if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
5540
$as_echo_n "(cached) " >&6
5542
if test -n "$CC_FOR_BUILD"; then
5543
ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5545
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5549
test -z "$as_dir" && as_dir=.
5550
for ac_exec_ext in '' $ac_executable_extensions; do
5551
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5552
ac_cv_prog_CC_FOR_BUILD="${ac_tool_prefix}gcc"
5553
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5562
CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5563
if test -n "$CC_FOR_BUILD"; then
5564
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
5565
$as_echo "$CC_FOR_BUILD" >&6; }
5567
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5568
$as_echo "no" >&6; }
5573
if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
5574
ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
5575
# Extract the first word of "gcc", so it can be a program name with args.
5576
set dummy gcc; ac_word=$2
5577
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5578
$as_echo_n "checking for $ac_word... " >&6; }
5579
if ${ac_cv_prog_ac_ct_CC_FOR_BUILD+:} false; then :
5580
$as_echo_n "(cached) " >&6
5582
if test -n "$ac_ct_CC_FOR_BUILD"; then
5583
ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
5585
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5589
test -z "$as_dir" && as_dir=.
5590
for ac_exec_ext in '' $ac_executable_extensions; do
5591
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5592
ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc"
5593
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5602
ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
5603
if test -n "$ac_ct_CC_FOR_BUILD"; then
5604
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
5605
$as_echo "$ac_ct_CC_FOR_BUILD" >&6; }
5607
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5608
$as_echo "no" >&6; }
5611
if test "x$ac_ct_CC_FOR_BUILD" = x; then
5614
case $cross_compiling:$ac_tool_warned in
5616
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
5617
$as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
5618
ac_tool_warned=yes ;;
5620
CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
5623
CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
5626
if test -z "$CC_FOR_BUILD"; then
5627
if test -n "$ac_tool_prefix"; then
5628
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5629
set dummy ${ac_tool_prefix}cc; ac_word=$2
5630
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5631
$as_echo_n "checking for $ac_word... " >&6; }
5632
if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
5633
$as_echo_n "(cached) " >&6
5635
if test -n "$CC_FOR_BUILD"; then
5636
ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5638
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5642
test -z "$as_dir" && as_dir=.
5643
for ac_exec_ext in '' $ac_executable_extensions; do
5644
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5645
ac_cv_prog_CC_FOR_BUILD="${ac_tool_prefix}cc"
5646
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5655
CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5656
if test -n "$CC_FOR_BUILD"; then
5657
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
5658
$as_echo "$CC_FOR_BUILD" >&6; }
5660
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5661
$as_echo "no" >&6; }
5667
if test -z "$CC_FOR_BUILD"; then
5668
# Extract the first word of "cc", so it can be a program name with args.
5669
set dummy cc; ac_word=$2
5670
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5671
$as_echo_n "checking for $ac_word... " >&6; }
5672
if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
5673
$as_echo_n "(cached) " >&6
5675
if test -n "$CC_FOR_BUILD"; then
5676
ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5679
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5683
test -z "$as_dir" && as_dir=.
5684
for ac_exec_ext in '' $ac_executable_extensions; do
5685
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5686
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5687
ac_prog_rejected=yes
5690
ac_cv_prog_CC_FOR_BUILD="cc"
5691
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5698
if test $ac_prog_rejected = yes; then
5699
# We found a bogon in the path, so make sure we never use it.
5700
set dummy $ac_cv_prog_CC_FOR_BUILD
5702
if test $# != 0; then
5703
# We chose a different compiler from the bogus one.
5704
# However, it has the same basename, so the bogon will be chosen
5705
# first if we set CC_FOR_BUILD to just the basename; use the full file name.
5707
ac_cv_prog_CC_FOR_BUILD="$as_dir/$ac_word${1+' '}$@"
5712
CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5713
if test -n "$CC_FOR_BUILD"; then
5714
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
5715
$as_echo "$CC_FOR_BUILD" >&6; }
5717
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5718
$as_echo "no" >&6; }
5723
if test -z "$CC_FOR_BUILD"; then
5724
if test -n "$ac_tool_prefix"; then
5725
for ac_prog in cl.exe
5727
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5728
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5729
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5730
$as_echo_n "checking for $ac_word... " >&6; }
5731
if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
5732
$as_echo_n "(cached) " >&6
5734
if test -n "$CC_FOR_BUILD"; then
5735
ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5737
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5741
test -z "$as_dir" && as_dir=.
5742
for ac_exec_ext in '' $ac_executable_extensions; do
5743
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5744
ac_cv_prog_CC_FOR_BUILD="$ac_tool_prefix$ac_prog"
5745
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5754
CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5755
if test -n "$CC_FOR_BUILD"; then
5756
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
5757
$as_echo "$CC_FOR_BUILD" >&6; }
5759
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5760
$as_echo "no" >&6; }
5764
test -n "$CC_FOR_BUILD" && break
5767
if test -z "$CC_FOR_BUILD"; then
5768
ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
5769
for ac_prog in cl.exe
5771
# Extract the first word of "$ac_prog", so it can be a program name with args.
5772
set dummy $ac_prog; ac_word=$2
5773
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5774
$as_echo_n "checking for $ac_word... " >&6; }
5775
if ${ac_cv_prog_ac_ct_CC_FOR_BUILD+:} false; then :
5776
$as_echo_n "(cached) " >&6
5778
if test -n "$ac_ct_CC_FOR_BUILD"; then
5779
ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
5781
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5785
test -z "$as_dir" && as_dir=.
5786
for ac_exec_ext in '' $ac_executable_extensions; do
5787
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5788
ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog"
5789
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5798
ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
5799
if test -n "$ac_ct_CC_FOR_BUILD"; then
5800
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
5801
$as_echo "$ac_ct_CC_FOR_BUILD" >&6; }
5803
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5804
$as_echo "no" >&6; }
5808
test -n "$ac_ct_CC_FOR_BUILD" && break
5811
if test "x$ac_ct_CC_FOR_BUILD" = x; then
5814
case $cross_compiling:$ac_tool_warned in
5816
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
5817
$as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
5818
ac_tool_warned=yes ;;
5820
CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
5827
test -z "$CC_FOR_BUILD" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5828
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5829
as_fn_error $? "no acceptable C compiler found in \$PATH
5830
See \`config.log' for more details" "$LINENO" 5; }
5832
# Provide some information about the compiler.
5833
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5834
set X $ac_build_compile
5836
for ac_option in --version -v -V -qversion; do
5837
{ { ac_try="$ac_compiler $ac_option >&5"
5839
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5840
*) ac_try_echo=$ac_try;;
5842
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5843
$as_echo "$ac_try_echo"; } >&5
5844
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
5846
if test -s conftest.err; then
5848
... rest of stderr output deleted ...
5849
10q' conftest.err >conftest.er1
5850
cat conftest.er1 >&5
5852
rm -f conftest.er1 conftest.err
5853
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5854
test $ac_status = 0; }
5857
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5858
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5859
if ${ac_cv_c_compiler_gnu+:} false; then :
5860
$as_echo_n "(cached) " >&6
5862
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5863
/* end confdefs.h. */
5876
if ac_fn_c_try_compile "$LINENO"; then :
5881
rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5882
ac_cv_c_compiler_gnu=$ac_compiler_gnu
5885
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5886
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5887
if test $ac_compiler_gnu = yes; then
5892
ac_test_CFLAGS=${CFLAGS_FOR_BUILD+set}
5893
ac_save_CFLAGS=$CFLAGS_FOR_BUILD
5894
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD accepts -g" >&5
5895
$as_echo_n "checking whether $CC_FOR_BUILD accepts -g... " >&6; }
5896
if ${ac_cv_build_prog_cc_g+:} false; then :
5897
$as_echo_n "(cached) " >&6
5899
ac_save_c_werror_flag=$ac_c_werror_flag
5900
ac_c_werror_flag=yes
5901
ac_cv_build_prog_cc_g=no
5902
CFLAGS_FOR_BUILD="-g"
5903
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5904
/* end confdefs.h. */
5914
if ac_fn_c_try_compile "$LINENO"; then :
5915
ac_cv_build_prog_cc_g=yes
5918
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5919
/* end confdefs.h. */
5929
if ac_fn_c_try_compile "$LINENO"; then :
5932
ac_c_werror_flag=$ac_save_c_werror_flag
5933
CFLAGS_FOR_BUILD="-g"
5934
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5935
/* end confdefs.h. */
5945
if ac_fn_c_try_compile "$LINENO"; then :
5946
ac_cv_build_prog_cc_g=yes
5948
rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5950
rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5952
rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5953
ac_c_werror_flag=$ac_save_c_werror_flag
5955
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_g" >&5
5956
$as_echo "$ac_cv_build_prog_cc_g" >&6; }
5957
if test "$ac_test_CFLAGS" = set; then
5958
CFLAGS_FOR_BUILD=$ac_save_CFLAGS
5959
elif test $ac_cv_build_prog_cc_g = yes; then
5960
if test "$GCC" = yes; then
5961
CFLAGS_FOR_BUILD="-g -O2"
5963
CFLAGS_FOR_BUILD="-g"
5966
if test "$GCC" = yes; then
5967
CFLAGS_FOR_BUILD="-O2"
5972
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
5973
$as_echo_n "checking for $CC_FOR_BUILD option to accept ISO C89... " >&6; }
5974
if ${ac_cv_prog_cc_c89+:} false; then :
5975
$as_echo_n "(cached) " >&6
5977
ac_cv_prog_cc_c89=no
5978
ac_save_CC=$CC_FOR_BUILD
5979
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5980
/* end confdefs.h. */
5984
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5985
struct buf { int x; };
5986
FILE * (*rcsopen) (struct buf *, struct stat *, int);
5987
static char *e (p, i)
5993
static char *f (char * (*g) (char **, int), char **p, ...)
5998
s = g (p, va_arg (v,int));
6003
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6004
function prototypes and stuff, but not '\xHH' hex character constants.
6005
These don't provoke an error unfortunately, instead are silently treated
6006
as 'x'. The following induces an error, until -std is added to get
6007
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6008
array size at least. It's necessary to write '\x00'==0 to get something
6009
that's true only with -std. */
6010
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6012
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6013
inside strings and character constants. */
6015
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6017
int test (int i, double x);
6018
struct s1 {int (*f) (int a);};
6019
struct s2 {int (*f) (double a);};
6020
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6026
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6031
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6032
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6034
CC_FOR_BUILD="$ac_save_CC $ac_arg"
6035
if ac_fn_c_try_compile "$LINENO"; then :
6036
ac_cv_prog_cc_c89=$ac_arg
6038
rm -f core conftest.err conftest.$ac_build_objext
6039
test "x$ac_cv_prog_cc_c89" != "xno" && break
6041
rm -f conftest.$ac_ext
6042
CC_FOR_BUILD=$ac_save_CC
6046
case "x$ac_cv_prog_cc_c89" in
6048
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6049
$as_echo "none needed" >&6; } ;;
6051
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6052
$as_echo "unsupported" >&6; } ;;
6054
CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_prog_cc_c89"
6055
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6056
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6058
if test "x$ac_cv_prog_cc_c89" != xno; then :
6063
ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6064
ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6065
ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
6066
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6068
depcc="$CC_FOR_BUILD" am_compiler_list=
6070
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6071
$as_echo_n "checking dependency style of $depcc... " >&6; }
6072
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6073
$as_echo_n "(cached) " >&6
6075
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6076
# We make a subdir and do the tests there. Otherwise we can end up
6077
# making bogus files that we don't know about and never remove. For
6078
# instance it was reported that on HP-UX the gcc test will end up
6079
# making a dummy file named 'D' -- because '-MD' means "put the output
6083
# Copy depcomp to subdir because otherwise we won't find it if we're
6084
# using a relative directory.
6085
cp "$am_depcomp" conftest.dir
6087
# We will build objects and dependencies in a subdirectory because
6088
# it helps to detect inapplicable dependency modes. For instance
6089
# both Tru64's cc and ICC support -MD to output dependencies as a
6090
# side effect of compilation, but ICC will put the dependencies in
6091
# the current directory while Tru64 will put them in the object
6095
am_cv_CC_dependencies_compiler_type=none
6096
if test "$am_compiler_list" = ""; then
6097
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6100
case " $depcc " in #(
6101
*\ -arch\ *\ -arch\ *) am__universal=true ;;
6104
for depmode in $am_compiler_list; do
6105
# Setup a source with many dependencies, because some compilers
6106
# like to wrap large dependency lists on column 80 (with \), and
6107
# we should not choose a depcomp mode which is confused by this.
6109
# We need to recreate these files for each test, as the compiler may
6110
# overwrite some of them when testing with obscure command lines.
6111
# This happens at least with the AIX C compiler.
6113
for i in 1 2 3 4 5 6; do
6114
echo '#include "conftst'$i'.h"' >> sub/conftest.c
6115
# Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6116
# Solaris 10 /bin/sh.
6117
echo '/* dummy */' > sub/conftst$i.h
6119
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6121
# We check with '-c' and '-o' for the sake of the "dashmstdout"
6122
# mode. It turns out that the SunPro C++ compiler does not properly
6123
# handle '-M -o', and we need to detect this. Also, some Intel
6124
# versions had trouble with output in subdirs.
6125
am__obj=sub/conftest.${OBJEXT-o}
6126
am__minus_obj="-o $am__obj"
6129
# This depmode causes a compiler race in universal mode.
6130
test "$am__universal" = false || continue
6133
# After this tag, mechanisms are not by side-effect, so they'll
6134
# only be used when explicitly requested.
6135
if test "x$enable_dependency_tracking" = xyes; then
6141
msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6142
# This compiler won't grok '-c -o', but also, the minuso test has
6143
# not run yet. These depmodes are late enough in the game, and
6144
# so weak that their functioning should not be impacted.
6145
am__obj=conftest.${OBJEXT-o}
6150
if depmode=$depmode \
6151
source=sub/conftest.c object=$am__obj \
6152
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6153
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6154
>/dev/null 2>conftest.err &&
6155
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6156
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6157
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6158
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6159
# icc doesn't choke on unknown options, it will just issue warnings
6160
# or remarks (even with -Werror). So we grep stderr for any message
6161
# that says an option was ignored or not supported.
6162
# When given -MP, icc 7.0 and 7.1 complain thusly:
6163
# icc: Command line warning: ignoring option '-M'; no argument required
6164
# The diagnosis changed in icc 8.0:
6165
# icc: Command line remark: option '-MP' not supported
6166
if (grep 'ignoring option' conftest.err ||
6167
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6168
am_cv_CC_dependencies_compiler_type=$depmode
6177
am_cv_CC_dependencies_compiler_type=none
6181
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6182
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6183
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6186
test "x$enable_dependency_tracking" != xno \
6187
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6189
am__fastdepCC_FALSE='#'
6191
am__fastdepCC_TRUE='#'
6192
am__fastdepCC_FALSE=
6197
ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6198
ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6199
ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
6200
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6201
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6202
$as_echo_n "checking how to run the C preprocessor... " >&6; }
6203
# On Suns, sometimes $CPP names a directory.
6204
if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then
6207
if test -z "$CPP_FOR_BUILD"; then
6208
if ${ac_cv_build_prog_CPP+:} false; then :
6209
$as_echo_n "(cached) " >&6
6211
# Double quotes because CPP needs to be expanded
6212
for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"
6215
for ac_c_preproc_warn_flag in '' yes
6217
# Use a header file that comes with gcc, so configuring glibc
6218
# with a fresh cross-compiler works.
6219
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6220
# <limits.h> exists even on freestanding compilers.
6221
# On the NeXT, cc -E runs the code through the compiler's parser,
6222
# not just through cpp. "Syntax error" is here to catch this case.
6223
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6224
/* end confdefs.h. */
6226
# include <limits.h>
6228
# include <assert.h>
6232
if ac_fn_c_try_cpp "$LINENO"; then :
6235
# Broken: fails on valid input.
6238
rm -f conftest.err conftest.i conftest.$ac_ext
6240
# OK, works on sane cases. Now check whether nonexistent headers
6241
# can be detected and how.
6242
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6243
/* end confdefs.h. */
6244
#include <ac_nonexistent.h>
6246
if ac_fn_c_try_cpp "$LINENO"; then :
6247
# Broken: success on invalid input.
6250
# Passes both tests.
6254
rm -f conftest.err conftest.i conftest.$ac_ext
6257
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6258
rm -f conftest.i conftest.err conftest.$ac_ext
6259
if $ac_preproc_ok; then :
6264
ac_cv_build_prog_CPP=$CPP_FOR_BUILD
6267
CPP_FOR_BUILD=$ac_cv_build_prog_CPP
6269
ac_cv_build_prog_CPP=$CPP_FOR_BUILD
6271
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP_FOR_BUILD" >&5
6272
$as_echo "$CPP_FOR_BUILD" >&6; }
6274
for ac_c_preproc_warn_flag in '' yes
6276
# Use a header file that comes with gcc, so configuring glibc
6277
# with a fresh cross-compiler works.
6278
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6279
# <limits.h> exists even on freestanding compilers.
6280
# On the NeXT, cc -E runs the code through the compiler's parser,
6281
# not just through cpp. "Syntax error" is here to catch this case.
6282
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6283
/* end confdefs.h. */
6285
# include <limits.h>
6287
# include <assert.h>
6291
if ac_fn_c_try_cpp "$LINENO"; then :
6294
# Broken: fails on valid input.
6297
rm -f conftest.err conftest.i conftest.$ac_ext
6299
# OK, works on sane cases. Now check whether nonexistent headers
6300
# can be detected and how.
6301
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6302
/* end confdefs.h. */
6303
#include <ac_nonexistent.h>
6305
if ac_fn_c_try_cpp "$LINENO"; then :
6306
# Broken: success on invalid input.
6309
# Passes both tests.
6313
rm -f conftest.err conftest.i conftest.$ac_ext
6316
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6317
rm -f conftest.i conftest.err conftest.$ac_ext
6318
if $ac_preproc_ok; then :
6321
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6322
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6323
as_fn_error $? "C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
6324
See \`config.log' for more details" "$LINENO" 5; }
6328
ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6329
ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6330
ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
6331
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6335
ac_tool_prefix=$save_ac_tool_prefix
6336
cross_compiling=$save_cross_compiling
6339
BUILD_EXEEXT=$ac_build_exeext
6340
BUILD_OBJEXT=$ac_build_objext
6343
ac_cpp='$CXXCPP $CPPFLAGS'
6344
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6345
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6346
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6347
if test -z "$CXX"; then
6348
if test -n "$CCC"; then
6351
if test -n "$ac_tool_prefix"; then
6352
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6354
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6355
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6356
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6357
$as_echo_n "checking for $ac_word... " >&6; }
6358
if ${ac_cv_prog_CXX+:} false; then :
6359
$as_echo_n "(cached) " >&6
6361
if test -n "$CXX"; then
6362
ac_cv_prog_CXX="$CXX" # Let the user override the test.
6364
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6368
test -z "$as_dir" && as_dir=.
6369
for ac_exec_ext in '' $ac_executable_extensions; do
6370
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6371
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6372
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6382
if test -n "$CXX"; then
6383
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6384
$as_echo "$CXX" >&6; }
6386
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6387
$as_echo "no" >&6; }
6391
test -n "$CXX" && break
6394
if test -z "$CXX"; then
6396
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6398
# Extract the first word of "$ac_prog", so it can be a program name with args.
6399
set dummy $ac_prog; ac_word=$2
6400
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6401
$as_echo_n "checking for $ac_word... " >&6; }
6402
if ${ac_cv_prog_ac_ct_CXX+:} false; then :
6403
$as_echo_n "(cached) " >&6
6405
if test -n "$ac_ct_CXX"; then
6406
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6408
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6412
test -z "$as_dir" && as_dir=.
6413
for ac_exec_ext in '' $ac_executable_extensions; do
6414
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6415
ac_cv_prog_ac_ct_CXX="$ac_prog"
6416
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6425
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6426
if test -n "$ac_ct_CXX"; then
6427
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6428
$as_echo "$ac_ct_CXX" >&6; }
6430
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6431
$as_echo "no" >&6; }
6435
test -n "$ac_ct_CXX" && break
6438
if test "x$ac_ct_CXX" = x; then
6441
case $cross_compiling:$ac_tool_warned in
6443
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6444
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6445
ac_tool_warned=yes ;;
6453
# Provide some information about the compiler.
6454
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6457
for ac_option in --version -v -V -qversion; do
6458
{ { ac_try="$ac_compiler $ac_option >&5"
6460
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6461
*) ac_try_echo=$ac_try;;
6463
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6464
$as_echo "$ac_try_echo"; } >&5
6465
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
6467
if test -s conftest.err; then
6469
... rest of stderr output deleted ...
6470
10q' conftest.err >conftest.er1
6471
cat conftest.er1 >&5
6473
rm -f conftest.er1 conftest.err
6474
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6475
test $ac_status = 0; }
6478
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6479
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6480
if ${ac_cv_cxx_compiler_gnu+:} false; then :
6481
$as_echo_n "(cached) " >&6
6483
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6484
/* end confdefs.h. */
6497
if ac_fn_cxx_try_compile "$LINENO"; then :
6502
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6503
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6506
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6507
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6508
if test $ac_compiler_gnu = yes; then
6513
ac_test_CXXFLAGS=${CXXFLAGS+set}
6514
ac_save_CXXFLAGS=$CXXFLAGS
6515
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6516
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
6517
if ${ac_cv_prog_cxx_g+:} false; then :
6518
$as_echo_n "(cached) " >&6
6520
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6521
ac_cxx_werror_flag=yes
6524
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6525
/* end confdefs.h. */
6535
if ac_fn_cxx_try_compile "$LINENO"; then :
6536
ac_cv_prog_cxx_g=yes
6539
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6540
/* end confdefs.h. */
6550
if ac_fn_cxx_try_compile "$LINENO"; then :
6553
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6555
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6556
/* end confdefs.h. */
6566
if ac_fn_cxx_try_compile "$LINENO"; then :
6567
ac_cv_prog_cxx_g=yes
6569
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6571
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6573
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6574
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6576
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6577
$as_echo "$ac_cv_prog_cxx_g" >&6; }
6578
if test "$ac_test_CXXFLAGS" = set; then
6579
CXXFLAGS=$ac_save_CXXFLAGS
6580
elif test $ac_cv_prog_cxx_g = yes; then
6581
if test "$GXX" = yes; then
6587
if test "$GXX" = yes; then
6594
ac_cpp='$CPP $CPPFLAGS'
6595
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6596
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6597
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6599
depcc="$CXX" am_compiler_list=
6601
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6602
$as_echo_n "checking dependency style of $depcc... " >&6; }
6603
if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
6604
$as_echo_n "(cached) " >&6
6606
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6607
# We make a subdir and do the tests there. Otherwise we can end up
6608
# making bogus files that we don't know about and never remove. For
6609
# instance it was reported that on HP-UX the gcc test will end up
6610
# making a dummy file named 'D' -- because '-MD' means "put the output
6614
# Copy depcomp to subdir because otherwise we won't find it if we're
6615
# using a relative directory.
6616
cp "$am_depcomp" conftest.dir
6618
# We will build objects and dependencies in a subdirectory because
6619
# it helps to detect inapplicable dependency modes. For instance
6620
# both Tru64's cc and ICC support -MD to output dependencies as a
6621
# side effect of compilation, but ICC will put the dependencies in
6622
# the current directory while Tru64 will put them in the object
6626
am_cv_CXX_dependencies_compiler_type=none
6627
if test "$am_compiler_list" = ""; then
6628
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6631
case " $depcc " in #(
6632
*\ -arch\ *\ -arch\ *) am__universal=true ;;
6635
for depmode in $am_compiler_list; do
6636
# Setup a source with many dependencies, because some compilers
6637
# like to wrap large dependency lists on column 80 (with \), and
6638
# we should not choose a depcomp mode which is confused by this.
6640
# We need to recreate these files for each test, as the compiler may
6641
# overwrite some of them when testing with obscure command lines.
6642
# This happens at least with the AIX C compiler.
6644
for i in 1 2 3 4 5 6; do
6645
echo '#include "conftst'$i'.h"' >> sub/conftest.c
6646
# Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6647
# Solaris 10 /bin/sh.
6648
echo '/* dummy */' > sub/conftst$i.h
6650
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6652
# We check with '-c' and '-o' for the sake of the "dashmstdout"
6653
# mode. It turns out that the SunPro C++ compiler does not properly
6654
# handle '-M -o', and we need to detect this. Also, some Intel
6655
# versions had trouble with output in subdirs.
6656
am__obj=sub/conftest.${OBJEXT-o}
6657
am__minus_obj="-o $am__obj"
6660
# This depmode causes a compiler race in universal mode.
6661
test "$am__universal" = false || continue
6664
# After this tag, mechanisms are not by side-effect, so they'll
6665
# only be used when explicitly requested.
6666
if test "x$enable_dependency_tracking" = xyes; then
6672
msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6673
# This compiler won't grok '-c -o', but also, the minuso test has
6674
# not run yet. These depmodes are late enough in the game, and
6675
# so weak that their functioning should not be impacted.
6676
am__obj=conftest.${OBJEXT-o}
6681
if depmode=$depmode \
6682
source=sub/conftest.c object=$am__obj \
6683
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6684
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6685
>/dev/null 2>conftest.err &&
6686
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6687
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6688
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6689
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6690
# icc doesn't choke on unknown options, it will just issue warnings
6691
# or remarks (even with -Werror). So we grep stderr for any message
6692
# that says an option was ignored or not supported.
6693
# When given -MP, icc 7.0 and 7.1 complain thusly:
6694
# icc: Command line warning: ignoring option '-M'; no argument required
6695
# The diagnosis changed in icc 8.0:
6696
# icc: Command line remark: option '-MP' not supported
6697
if (grep 'ignoring option' conftest.err ||
6698
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6699
am_cv_CXX_dependencies_compiler_type=$depmode
6708
am_cv_CXX_dependencies_compiler_type=none
6712
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6713
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6714
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6717
test "x$enable_dependency_tracking" != xno \
6718
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6719
am__fastdepCXX_TRUE=
6720
am__fastdepCXX_FALSE='#'
6722
am__fastdepCXX_TRUE='#'
6723
am__fastdepCXX_FALSE=
6728
ac_cpp='$CXXCPP $CPPFLAGS'
6729
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6730
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6731
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6732
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
6733
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
6734
if test -z "$CXXCPP"; then
6735
if ${ac_cv_prog_CXXCPP+:} false; then :
6736
$as_echo_n "(cached) " >&6
6738
# Double quotes because CXXCPP needs to be expanded
6739
for CXXCPP in "$CXX -E" "/lib/cpp"
6742
for ac_cxx_preproc_warn_flag in '' yes
6744
# Use a header file that comes with gcc, so configuring glibc
6745
# with a fresh cross-compiler works.
6746
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6747
# <limits.h> exists even on freestanding compilers.
6748
# On the NeXT, cc -E runs the code through the compiler's parser,
6749
# not just through cpp. "Syntax error" is here to catch this case.
6750
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6751
/* end confdefs.h. */
6753
# include <limits.h>
6755
# include <assert.h>
6759
if ac_fn_cxx_try_cpp "$LINENO"; then :
6762
# Broken: fails on valid input.
6765
rm -f conftest.err conftest.i conftest.$ac_ext
6767
# OK, works on sane cases. Now check whether nonexistent headers
6768
# can be detected and how.
6769
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6770
/* end confdefs.h. */
6771
#include <ac_nonexistent.h>
6773
if ac_fn_cxx_try_cpp "$LINENO"; then :
6774
# Broken: success on invalid input.
6777
# Passes both tests.
6781
rm -f conftest.err conftest.i conftest.$ac_ext
6784
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6785
rm -f conftest.i conftest.err conftest.$ac_ext
6786
if $ac_preproc_ok; then :
6791
ac_cv_prog_CXXCPP=$CXXCPP
6794
CXXCPP=$ac_cv_prog_CXXCPP
6796
ac_cv_prog_CXXCPP=$CXXCPP
6798
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
6799
$as_echo "$CXXCPP" >&6; }
6801
for ac_cxx_preproc_warn_flag in '' yes
6803
# Use a header file that comes with gcc, so configuring glibc
6804
# with a fresh cross-compiler works.
6805
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6806
# <limits.h> exists even on freestanding compilers.
6807
# On the NeXT, cc -E runs the code through the compiler's parser,
6808
# not just through cpp. "Syntax error" is here to catch this case.
6809
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6810
/* end confdefs.h. */
6812
# include <limits.h>
6814
# include <assert.h>
6818
if ac_fn_cxx_try_cpp "$LINENO"; then :
6821
# Broken: fails on valid input.
6824
rm -f conftest.err conftest.i conftest.$ac_ext
6826
# OK, works on sane cases. Now check whether nonexistent headers
6827
# can be detected and how.
6828
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6829
/* end confdefs.h. */
6830
#include <ac_nonexistent.h>
6832
if ac_fn_cxx_try_cpp "$LINENO"; then :
6833
# Broken: success on invalid input.
6836
# Passes both tests.
6840
rm -f conftest.err conftest.i conftest.$ac_ext
6843
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6844
rm -f conftest.i conftest.err conftest.$ac_ext
6845
if $ac_preproc_ok; then :
6848
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6849
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6850
as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
6851
See \`config.log' for more details" "$LINENO" 5; }
6855
ac_cpp='$CPP $CPPFLAGS'
6856
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6857
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6858
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6862
save_cross_compiling=$cross_compiling
6863
save_ac_tool_prefix=$ac_tool_prefix
6868
ac_cpp='$CXXCPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6869
ac_build_compile='$CXX_FOR_BUILD -c $CXXFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6870
ac_build_link='$CXX_FOR_BUILD -o conftest$ac_exeext $CXXFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
6871
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6872
if test -z "$CXX_FOR_BUILD"; then
6873
if test -n "$CCC"; then
6876
if test -n "$ac_tool_prefix"; then
6877
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6879
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6880
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6881
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6882
$as_echo_n "checking for $ac_word... " >&6; }
6883
if ${ac_cv_prog_CXX_FOR_BUILD+:} false; then :
6884
$as_echo_n "(cached) " >&6
6886
if test -n "$CXX_FOR_BUILD"; then
6887
ac_cv_prog_CXX_FOR_BUILD="$CXX_FOR_BUILD" # Let the user override the test.
6889
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6893
test -z "$as_dir" && as_dir=.
6894
for ac_exec_ext in '' $ac_executable_extensions; do
6895
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6896
ac_cv_prog_CXX_FOR_BUILD="$ac_tool_prefix$ac_prog"
6897
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6906
CXX_FOR_BUILD=$ac_cv_prog_CXX_FOR_BUILD
6907
if test -n "$CXX_FOR_BUILD"; then
6908
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_BUILD" >&5
6909
$as_echo "$CXX_FOR_BUILD" >&6; }
6911
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6912
$as_echo "no" >&6; }
6916
test -n "$CXX_FOR_BUILD" && break
6919
if test -z "$CXX_FOR_BUILD"; then
6920
ac_ct_CXX_FOR_BUILD=$CXX_FOR_BUILD
6921
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6923
# Extract the first word of "$ac_prog", so it can be a program name with args.
6924
set dummy $ac_prog; ac_word=$2
6925
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6926
$as_echo_n "checking for $ac_word... " >&6; }
6927
if ${ac_cv_prog_ac_ct_CXX_FOR_BUILD+:} false; then :
6928
$as_echo_n "(cached) " >&6
6930
if test -n "$ac_ct_CXX_FOR_BUILD"; then
6931
ac_cv_prog_ac_ct_CXX_FOR_BUILD="$ac_ct_CXX_FOR_BUILD" # Let the user override the test.
6933
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6937
test -z "$as_dir" && as_dir=.
6938
for ac_exec_ext in '' $ac_executable_extensions; do
6939
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6940
ac_cv_prog_ac_ct_CXX_FOR_BUILD="$ac_prog"
6941
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6950
ac_ct_CXX_FOR_BUILD=$ac_cv_prog_ac_ct_CXX_FOR_BUILD
6951
if test -n "$ac_ct_CXX_FOR_BUILD"; then
6952
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX_FOR_BUILD" >&5
6953
$as_echo "$ac_ct_CXX_FOR_BUILD" >&6; }
6955
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6956
$as_echo "no" >&6; }
6960
test -n "$ac_ct_CXX_FOR_BUILD" && break
6963
if test "x$ac_ct_CXX_FOR_BUILD" = x; then
6966
case $cross_compiling:$ac_tool_warned in
6968
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
6969
$as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
6970
ac_tool_warned=yes ;;
6972
CXX_FOR_BUILD=$ac_ct_CXX_FOR_BUILD
6978
# Provide some information about the compiler.
6979
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6980
set X $ac_build_compile
6982
for ac_option in --version -v -V -qversion; do
6983
{ { ac_try="$ac_compiler $ac_option >&5"
6985
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6986
*) ac_try_echo=$ac_try;;
6988
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6989
$as_echo "$ac_try_echo"; } >&5
6990
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
6992
if test -s conftest.err; then
6994
... rest of stderr output deleted ...
6995
10q' conftest.err >conftest.er1
6996
cat conftest.er1 >&5
6998
rm -f conftest.er1 conftest.err
6999
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7000
test $ac_status = 0; }
7003
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7004
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7005
if ${ac_cv_cxx_compiler_gnu+:} false; then :
7006
$as_echo_n "(cached) " >&6
7008
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7009
/* end confdefs.h. */
7022
if ac_fn_cxx_try_compile "$LINENO"; then :
7027
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7028
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7031
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7032
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7033
if test $ac_compiler_gnu = yes; then
7038
ac_test_CXXFLAGS=${CXXFLAGS_FOR_BUILD+set}
7039
ac_save_CXXFLAGS=$CXXFLAGS_FOR_BUILD
7040
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX_FOR_BUILD accepts -g" >&5
7041
$as_echo_n "checking whether $CXX_FOR_BUILD accepts -g... " >&6; }
7042
if ${ac_cv_build_prog_cxx_g+:} false; then :
7043
$as_echo_n "(cached) " >&6
7045
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7046
ac_cxx_werror_flag=yes
7047
ac_cv_build_prog_cxx_g=no
7048
CXXFLAGS_FOR_BUILD="-g"
7049
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7050
/* end confdefs.h. */
7060
if ac_fn_cxx_try_compile "$LINENO"; then :
7061
ac_cv_build_prog_cxx_g=yes
7063
CXXFLAGS_FOR_BUILD=""
7064
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7065
/* end confdefs.h. */
7075
if ac_fn_cxx_try_compile "$LINENO"; then :
7078
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7079
CXXFLAGS_FOR_BUILD="-g"
7080
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7081
/* end confdefs.h. */
7091
if ac_fn_cxx_try_compile "$LINENO"; then :
7092
ac_cv_build_prog_cxx_g=yes
7094
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7096
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7098
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7099
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7101
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cxx_g" >&5
7102
$as_echo "$ac_cv_build_prog_cxx_g" >&6; }
7103
if test "$ac_test_CXXFLAGS" = set; then
7104
CXXFLAGS_FOR_BUILD=$ac_save_CXXFLAGS
7105
elif test $ac_cv_build_prog_cxx_g = yes; then
7106
if test "$GXX" = yes; then
7107
CXXFLAGS_FOR_BUILD="-g -O2"
7109
CXXFLAGS_FOR_BUILD="-g"
7112
if test "$GXX" = yes; then
7113
CXXFLAGS_FOR_BUILD="-O2"
7119
ac_cpp='$CPP $CPPFLAGS_FOR_BUILD'
7120
ac_build_compile='$CC -c $CFLAGS $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
7121
ac_build_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
7122
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7124
depcc="$CXX_FOR_BUILD" am_compiler_list=
7126
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7127
$as_echo_n "checking dependency style of $depcc... " >&6; }
7128
if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
7129
$as_echo_n "(cached) " >&6
7131
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7132
# We make a subdir and do the tests there. Otherwise we can end up
7133
# making bogus files that we don't know about and never remove. For
7134
# instance it was reported that on HP-UX the gcc test will end up
7135
# making a dummy file named 'D' -- because '-MD' means "put the output
7139
# Copy depcomp to subdir because otherwise we won't find it if we're
7140
# using a relative directory.
7141
cp "$am_depcomp" conftest.dir
7143
# We will build objects and dependencies in a subdirectory because
7144
# it helps to detect inapplicable dependency modes. For instance
7145
# both Tru64's cc and ICC support -MD to output dependencies as a
7146
# side effect of compilation, but ICC will put the dependencies in
7147
# the current directory while Tru64 will put them in the object
7151
am_cv_CXX_dependencies_compiler_type=none
7152
if test "$am_compiler_list" = ""; then
7153
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7156
case " $depcc " in #(
7157
*\ -arch\ *\ -arch\ *) am__universal=true ;;
7160
for depmode in $am_compiler_list; do
7161
# Setup a source with many dependencies, because some compilers
7162
# like to wrap large dependency lists on column 80 (with \), and
7163
# we should not choose a depcomp mode which is confused by this.
7165
# We need to recreate these files for each test, as the compiler may
7166
# overwrite some of them when testing with obscure command lines.
7167
# This happens at least with the AIX C compiler.
7169
for i in 1 2 3 4 5 6; do
7170
echo '#include "conftst'$i'.h"' >> sub/conftest.c
7171
# Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7172
# Solaris 10 /bin/sh.
7173
echo '/* dummy */' > sub/conftst$i.h
7175
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7177
# We check with '-c' and '-o' for the sake of the "dashmstdout"
7178
# mode. It turns out that the SunPro C++ compiler does not properly
7179
# handle '-M -o', and we need to detect this. Also, some Intel
7180
# versions had trouble with output in subdirs.
7181
am__obj=sub/conftest.${OBJEXT-o}
7182
am__minus_obj="-o $am__obj"
7185
# This depmode causes a compiler race in universal mode.
7186
test "$am__universal" = false || continue
7189
# After this tag, mechanisms are not by side-effect, so they'll
7190
# only be used when explicitly requested.
7191
if test "x$enable_dependency_tracking" = xyes; then
7197
msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7198
# This compiler won't grok '-c -o', but also, the minuso test has
7199
# not run yet. These depmodes are late enough in the game, and
7200
# so weak that their functioning should not be impacted.
7201
am__obj=conftest.${OBJEXT-o}
7206
if depmode=$depmode \
7207
source=sub/conftest.c object=$am__obj \
7208
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7209
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7210
>/dev/null 2>conftest.err &&
7211
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7212
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7213
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7214
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7215
# icc doesn't choke on unknown options, it will just issue warnings
7216
# or remarks (even with -Werror). So we grep stderr for any message
7217
# that says an option was ignored or not supported.
7218
# When given -MP, icc 7.0 and 7.1 complain thusly:
7219
# icc: Command line warning: ignoring option '-M'; no argument required
7220
# The diagnosis changed in icc 8.0:
7221
# icc: Command line remark: option '-MP' not supported
7222
if (grep 'ignoring option' conftest.err ||
7223
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7224
am_cv_CXX_dependencies_compiler_type=$depmode
7233
am_cv_CXX_dependencies_compiler_type=none
7237
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7238
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7239
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7242
test "x$enable_dependency_tracking" != xno \
7243
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7244
am__fastdepCXX_TRUE=
7245
am__fastdepCXX_FALSE='#'
7247
am__fastdepCXX_TRUE='#'
7248
am__fastdepCXX_FALSE=
7253
ac_cpp='$CXXCPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
7254
ac_build_compile='$CXX_FOR_BUILD -c $CXXFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
7255
ac_build_link='$CXX_FOR_BUILD -o conftest$ac_exeext $CXXFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
7256
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7257
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
7258
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
7259
if test -z "$CXXCPP_FOR_BUILD"; then
7260
if ${ac_cv_build_prog_CXXCPP+:} false; then :
7261
$as_echo_n "(cached) " >&6
7263
# Double quotes because CXXCPP needs to be expanded
7264
for CXXCPP_FOR_BUILD in "$CXX_FOR_BUILD -E" "/lib/cpp"
7267
for ac_cxx_preproc_warn_flag in '' yes
7269
# Use a header file that comes with gcc, so configuring glibc
7270
# with a fresh cross-compiler works.
7271
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7272
# <limits.h> exists even on freestanding compilers.
7273
# On the NeXT, cc -E runs the code through the compiler's parser,
7274
# not just through cpp. "Syntax error" is here to catch this case.
7275
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7276
/* end confdefs.h. */
7278
# include <limits.h>
7280
# include <assert.h>
7284
if ac_fn_cxx_try_cpp "$LINENO"; then :
7287
# Broken: fails on valid input.
7290
rm -f conftest.err conftest.i conftest.$ac_ext
7292
# OK, works on sane cases. Now check whether nonexistent headers
7293
# can be detected and how.
7294
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7295
/* end confdefs.h. */
7296
#include <ac_nonexistent.h>
7298
if ac_fn_cxx_try_cpp "$LINENO"; then :
7299
# Broken: success on invalid input.
7302
# Passes both tests.
7306
rm -f conftest.err conftest.i conftest.$ac_ext
7309
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7310
rm -f conftest.i conftest.err conftest.$ac_ext
7311
if $ac_preproc_ok; then :
7316
ac_cv_build_prog_CXXCPP=$CXXCPP_FOR_BUILD
7319
CXXCPP_FOR_BUILD=$ac_cv_build_prog_CXXCPP
7321
ac_cv_build_prog_CXXCPP=$CXXCPP_FOR_BUILD
7323
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP_FOR_BUILD" >&5
7324
$as_echo "$CXXCPP_FOR_BUILD" >&6; }
7326
for ac_cxx_preproc_warn_flag in '' yes
7328
# Use a header file that comes with gcc, so configuring glibc
7329
# with a fresh cross-compiler works.
7330
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7331
# <limits.h> exists even on freestanding compilers.
7332
# On the NeXT, cc -E runs the code through the compiler's parser,
7333
# not just through cpp. "Syntax error" is here to catch this case.
7334
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7335
/* end confdefs.h. */
7337
# include <limits.h>
7339
# include <assert.h>
7343
if ac_fn_cxx_try_cpp "$LINENO"; then :
7346
# Broken: fails on valid input.
7349
rm -f conftest.err conftest.i conftest.$ac_ext
7351
# OK, works on sane cases. Now check whether nonexistent headers
7352
# can be detected and how.
7353
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7354
/* end confdefs.h. */
7355
#include <ac_nonexistent.h>
7357
if ac_fn_cxx_try_cpp "$LINENO"; then :
7358
# Broken: success on invalid input.
7361
# Passes both tests.
7365
rm -f conftest.err conftest.i conftest.$ac_ext
7368
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7369
rm -f conftest.i conftest.err conftest.$ac_ext
7370
if $ac_preproc_ok; then :
7373
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7374
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7375
as_fn_error $? "C++ preprocessor \"$CXXCPP_FOR_BUILD\" fails sanity check
7376
See \`config.log' for more details" "$LINENO" 5; }
7380
ac_cpp='$CPP $CPPFLAGS_FOR_BUILD'
7381
ac_build_compile='$CC -c $CFLAGS $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
7382
ac_build_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
7383
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7386
ac_tool_prefix=$save_ac_tool_prefix
7387
cross_compiling=$save_cross_compiling
7391
if test "x$CC" != xcc; then
7392
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7393
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7395
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7396
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7398
set dummy $CC; ac_cc=`$as_echo "$2" |
7399
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7400
if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
7401
$as_echo_n "(cached) " >&6
7403
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7404
/* end confdefs.h. */
7414
# Make sure it works both with $CC and with simple cc.
7415
# We do the test twice because some compilers refuse to overwrite an
7416
# existing .o file with -o, though they will create one.
7417
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7419
if { { case "(($ac_try" in
7420
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7421
*) ac_try_echo=$ac_try;;
7423
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7424
$as_echo "$ac_try_echo"; } >&5
7425
(eval "$ac_try") 2>&5
7427
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7428
test $ac_status = 0; } &&
7429
test -f conftest2.$ac_objext && { { case "(($ac_try" in
7430
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7431
*) ac_try_echo=$ac_try;;
7433
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7434
$as_echo "$ac_try_echo"; } >&5
7435
(eval "$ac_try") 2>&5
7437
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7438
test $ac_status = 0; };
7440
eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7441
if test "x$CC" != xcc; then
7442
# Test first that cc exists at all.
7443
if { ac_try='cc -c conftest.$ac_ext >&5'
7444
{ { case "(($ac_try" in
7445
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7446
*) ac_try_echo=$ac_try;;
7448
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7449
$as_echo "$ac_try_echo"; } >&5
7450
(eval "$ac_try") 2>&5
7452
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7453
test $ac_status = 0; }; }; then
7454
ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7456
if { { case "(($ac_try" in
7457
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7458
*) ac_try_echo=$ac_try;;
7460
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7461
$as_echo "$ac_try_echo"; } >&5
7462
(eval "$ac_try") 2>&5
7464
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7465
test $ac_status = 0; } &&
7466
test -f conftest2.$ac_objext && { { case "(($ac_try" in
7467
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7468
*) ac_try_echo=$ac_try;;
7470
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7471
$as_echo "$ac_try_echo"; } >&5
7472
(eval "$ac_try") 2>&5
7474
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7475
test $ac_status = 0; };
7480
# cc exists but doesn't like -o.
7481
eval ac_cv_prog_cc_${ac_cc}_c_o=no
7486
eval ac_cv_prog_cc_${ac_cc}_c_o=no
7488
rm -f core conftest*
7491
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7492
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7493
$as_echo "yes" >&6; }
7495
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7496
$as_echo "no" >&6; }
7498
$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7502
# FIXME: we rely on the cache variable name because
7503
# there is no other way.
7505
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7506
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7507
if test "$am_t" != yes; then
7508
# Losing compiler, so override with the script.
7509
# FIXME: It is wrong to rewrite CC.
7510
# But if we don't then we get into trouble of one sort or another.
7511
# A longer-term fix would be to have automake use am__CC in this case,
7512
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7513
CC="$am_aux_dir/compile $CC"
7517
# By default we simply use the C compiler to build assembly code.
7519
test "${CCAS+set}" = set || CCAS=$CC
7520
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
7524
depcc="$CCAS" am_compiler_list=
7526
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7527
$as_echo_n "checking dependency style of $depcc... " >&6; }
7528
if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
7529
$as_echo_n "(cached) " >&6
7531
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7532
# We make a subdir and do the tests there. Otherwise we can end up
7533
# making bogus files that we don't know about and never remove. For
7534
# instance it was reported that on HP-UX the gcc test will end up
7535
# making a dummy file named 'D' -- because '-MD' means "put the output
7539
# Copy depcomp to subdir because otherwise we won't find it if we're
7540
# using a relative directory.
7541
cp "$am_depcomp" conftest.dir
7543
# We will build objects and dependencies in a subdirectory because
7544
# it helps to detect inapplicable dependency modes. For instance
7545
# both Tru64's cc and ICC support -MD to output dependencies as a
7546
# side effect of compilation, but ICC will put the dependencies in
7547
# the current directory while Tru64 will put them in the object
7551
am_cv_CCAS_dependencies_compiler_type=none
7552
if test "$am_compiler_list" = ""; then
7553
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7558
for depmode in $am_compiler_list; do
7559
# Setup a source with many dependencies, because some compilers
7560
# like to wrap large dependency lists on column 80 (with \), and
7561
# we should not choose a depcomp mode which is confused by this.
7563
# We need to recreate these files for each test, as the compiler may
7564
# overwrite some of them when testing with obscure command lines.
7565
# This happens at least with the AIX C compiler.
7567
for i in 1 2 3 4 5 6; do
7568
echo '#include "conftst'$i'.h"' >> sub/conftest.c
7569
# Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7570
# Solaris 10 /bin/sh.
7571
echo '/* dummy */' > sub/conftst$i.h
7573
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7575
# We check with '-c' and '-o' for the sake of the "dashmstdout"
7576
# mode. It turns out that the SunPro C++ compiler does not properly
7577
# handle '-M -o', and we need to detect this. Also, some Intel
7578
# versions had trouble with output in subdirs.
7579
am__obj=sub/conftest.${OBJEXT-o}
7580
am__minus_obj="-o $am__obj"
7583
# This depmode causes a compiler race in universal mode.
7584
test "$am__universal" = false || continue
7587
# After this tag, mechanisms are not by side-effect, so they'll
7588
# only be used when explicitly requested.
7589
if test "x$enable_dependency_tracking" = xyes; then
7595
msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7596
# This compiler won't grok '-c -o', but also, the minuso test has
7597
# not run yet. These depmodes are late enough in the game, and
7598
# so weak that their functioning should not be impacted.
7599
am__obj=conftest.${OBJEXT-o}
7604
if depmode=$depmode \
7605
source=sub/conftest.c object=$am__obj \
7606
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7607
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7608
>/dev/null 2>conftest.err &&
7609
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7610
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7611
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7612
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7613
# icc doesn't choke on unknown options, it will just issue warnings
7614
# or remarks (even with -Werror). So we grep stderr for any message
7615
# that says an option was ignored or not supported.
7616
# When given -MP, icc 7.0 and 7.1 complain thusly:
7617
# icc: Command line warning: ignoring option '-M'; no argument required
7618
# The diagnosis changed in icc 8.0:
7619
# icc: Command line remark: option '-MP' not supported
7620
if (grep 'ignoring option' conftest.err ||
7621
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7622
am_cv_CCAS_dependencies_compiler_type=$depmode
7631
am_cv_CCAS_dependencies_compiler_type=none
7635
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
7636
$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
7637
CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
7640
test "x$enable_dependency_tracking" != xno \
7641
&& test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
7642
am__fastdepCCAS_TRUE=
7643
am__fastdepCCAS_FALSE='#'
7645
am__fastdepCCAS_TRUE='#'
7646
am__fastdepCCAS_FALSE=
7650
for ac_prog in gmake make
7652
# Extract the first word of "$ac_prog", so it can be a program name with args.
7653
set dummy $ac_prog; ac_word=$2
7654
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7655
$as_echo_n "checking for $ac_word... " >&6; }
7656
if ${ac_cv_prog_MAKE+:} false; then :
7657
$as_echo_n "(cached) " >&6
7659
if test -n "$MAKE"; then
7660
ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
7662
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7666
test -z "$as_dir" && as_dir=.
7667
for ac_exec_ext in '' $ac_executable_extensions; do
7668
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7669
ac_cv_prog_MAKE="$ac_prog"
7670
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7679
MAKE=$ac_cv_prog_MAKE
7680
if test -n "$MAKE"; then
7681
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
7682
$as_echo "$MAKE" >&6; }
7684
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7685
$as_echo "no" >&6; }
7689
test -n "$MAKE" && break
7692
for ac_prog in python2 python
7694
# Extract the first word of "$ac_prog", so it can be a program name with args.
7695
set dummy $ac_prog; ac_word=$2
7696
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7697
$as_echo_n "checking for $ac_word... " >&6; }
7698
if ${ac_cv_prog_PYTHON2+:} false; then :
7699
$as_echo_n "(cached) " >&6
7701
if test -n "$PYTHON2"; then
7702
ac_cv_prog_PYTHON2="$PYTHON2" # Let the user override the test.
7704
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7708
test -z "$as_dir" && as_dir=.
7709
for ac_exec_ext in '' $ac_executable_extensions; do
7710
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7711
ac_cv_prog_PYTHON2="$ac_prog"
7712
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7721
PYTHON2=$ac_cv_prog_PYTHON2
7722
if test -n "$PYTHON2"; then
7723
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON2" >&5
7724
$as_echo "$PYTHON2" >&6; }
7726
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7727
$as_echo "no" >&6; }
7731
test -n "$PYTHON2" && break
7735
if test -z $PYTHON2;
7739
PYTHON_NAME=`basename $PYTHON2`
7740
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $PYTHON_NAME module: libxml2" >&5
7741
$as_echo_n "checking $PYTHON_NAME module: libxml2... " >&6; }
7742
$PYTHON2 -c "import libxml2" 2>/dev/null
7745
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7746
$as_echo "yes" >&6; }
7747
eval HAVE_PYMOD_LIBXML2=yes
7749
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7750
$as_echo "no" >&6; }
7751
eval HAVE_PYMOD_LIBXML2=no
7755
as_fn_error $? "failed to find required module libxml2" "$LINENO" 5
7760
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7761
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
7762
if ${ac_cv_path_SED+:} false; then :
7763
$as_echo_n "(cached) " >&6
7765
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7766
for ac_i in 1 2 3 4 5 6 7; do
7767
ac_script="$ac_script$as_nl$ac_script"
7769
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7770
{ ac_script=; unset ac_script;}
7771
if test -z "$SED"; then
7772
ac_path_SED_found=false
7773
# Loop through the user's path and test for each of PROGNAME-LIST
7774
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7778
test -z "$as_dir" && as_dir=.
7779
for ac_prog in sed gsed; do
7780
for ac_exec_ext in '' $ac_executable_extensions; do
7781
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7782
as_fn_executable_p "$ac_path_SED" || continue
7783
# Check for GNU ac_path_SED and select it if it is found.
7784
# Check for GNU $ac_path_SED
7785
case `"$ac_path_SED" --version 2>&1` in
7787
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7790
$as_echo_n 0123456789 >"conftest.in"
7793
cat "conftest.in" "conftest.in" >"conftest.tmp"
7794
mv "conftest.tmp" "conftest.in"
7795
cp "conftest.in" "conftest.nl"
7796
$as_echo '' >> "conftest.nl"
7797
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7798
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7799
as_fn_arith $ac_count + 1 && ac_count=$as_val
7800
if test $ac_count -gt ${ac_path_SED_max-0}; then
7801
# Best one so far, save it but keep looking for a better one
7802
ac_cv_path_SED="$ac_path_SED"
7803
ac_path_SED_max=$ac_count
7805
# 10*(2^10) chars as input seems more than enough
7806
test $ac_count -gt 10 && break
7808
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7811
$ac_path_SED_found && break 3
7816
if test -z "$ac_cv_path_SED"; then
7817
as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7824
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7825
$as_echo "$ac_cv_path_SED" >&6; }
7826
SED="$ac_cv_path_SED"
12103
15195
CC="$lt_save_CC"
12119
ac_config_commands="$ac_config_commands libtool"
12124
# Only expand once:
12131
LIBDRM_REQUIRED=2.4.24
12132
LIBDRM_RADEON_REQUIRED=2.4.39
12133
LIBDRM_INTEL_REQUIRED=2.4.38
12134
LIBDRM_NVVIEUX_REQUIRED=2.4.33
12135
LIBDRM_NOUVEAU_REQUIRED=2.4.33
12136
DRI2PROTO_REQUIRED=2.6
12137
GLPROTO_REQUIRED=1.4.14
12138
LIBDRM_XORG_REQUIRED=2.4.24
12139
LIBKMS_XORG_REQUIRED=1.0.0
12142
ac_cpp='$CPP $CPPFLAGS'
12143
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12144
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12145
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12146
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
12147
$as_echo_n "checking how to run the C preprocessor... " >&6; }
12148
# On Suns, sometimes $CPP names a directory.
12149
if test -n "$CPP" && test -d "$CPP"; then
12152
if test -z "$CPP"; then
12153
if ${ac_cv_prog_CPP+:} false; then :
12154
$as_echo_n "(cached) " >&6
12156
# Double quotes because CPP needs to be expanded
12157
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12159
ac_preproc_ok=false
12160
for ac_c_preproc_warn_flag in '' yes
12162
# Use a header file that comes with gcc, so configuring glibc
12163
# with a fresh cross-compiler works.
12164
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12165
# <limits.h> exists even on freestanding compilers.
12166
# On the NeXT, cc -E runs the code through the compiler's parser,
12167
# not just through cpp. "Syntax error" is here to catch this case.
12168
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12169
/* end confdefs.h. */
12171
# include <limits.h>
12173
# include <assert.h>
12177
if ac_fn_c_try_cpp "$LINENO"; then :
12180
# Broken: fails on valid input.
12183
rm -f conftest.err conftest.i conftest.$ac_ext
12185
# OK, works on sane cases. Now check whether nonexistent headers
12186
# can be detected and how.
12187
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12188
/* end confdefs.h. */
12189
#include <ac_nonexistent.h>
12191
if ac_fn_c_try_cpp "$LINENO"; then :
12192
# Broken: success on invalid input.
12195
# Passes both tests.
12199
rm -f conftest.err conftest.i conftest.$ac_ext
12202
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12203
rm -f conftest.i conftest.err conftest.$ac_ext
12204
if $ac_preproc_ok; then :
12209
ac_cv_prog_CPP=$CPP
12212
CPP=$ac_cv_prog_CPP
12214
ac_cv_prog_CPP=$CPP
12216
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
12217
$as_echo "$CPP" >&6; }
12218
ac_preproc_ok=false
12219
for ac_c_preproc_warn_flag in '' yes
12221
# Use a header file that comes with gcc, so configuring glibc
12222
# with a fresh cross-compiler works.
12223
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12224
# <limits.h> exists even on freestanding compilers.
12225
# On the NeXT, cc -E runs the code through the compiler's parser,
12226
# not just through cpp. "Syntax error" is here to catch this case.
12227
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12228
/* end confdefs.h. */
12230
# include <limits.h>
12232
# include <assert.h>
12236
if ac_fn_c_try_cpp "$LINENO"; then :
12239
# Broken: fails on valid input.
12242
rm -f conftest.err conftest.i conftest.$ac_ext
12244
# OK, works on sane cases. Now check whether nonexistent headers
12245
# can be detected and how.
12246
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12247
/* end confdefs.h. */
12248
#include <ac_nonexistent.h>
12250
if ac_fn_c_try_cpp "$LINENO"; then :
12251
# Broken: success on invalid input.
12254
# Passes both tests.
12258
rm -f conftest.err conftest.i conftest.$ac_ext
12261
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12262
rm -f conftest.i conftest.err conftest.$ac_ext
12263
if $ac_preproc_ok; then :
12266
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12267
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12268
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
12269
See \`config.log' for more details" "$LINENO" 5; }
12273
ac_cpp='$CPP $CPPFLAGS'
12274
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12275
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12276
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12279
ac_cpp='$CPP $CPPFLAGS'
12280
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12281
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12282
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12283
if test -n "$ac_tool_prefix"; then
12284
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12285
set dummy ${ac_tool_prefix}gcc; ac_word=$2
12286
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12287
$as_echo_n "checking for $ac_word... " >&6; }
12288
if ${ac_cv_prog_CC+:} false; then :
12289
$as_echo_n "(cached) " >&6
12291
if test -n "$CC"; then
12292
ac_cv_prog_CC="$CC" # Let the user override the test.
12294
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12295
for as_dir in $PATH
12298
test -z "$as_dir" && as_dir=.
12299
for ac_exec_ext in '' $ac_executable_extensions; do
12300
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12301
ac_cv_prog_CC="${ac_tool_prefix}gcc"
12302
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12312
if test -n "$CC"; then
12313
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12314
$as_echo "$CC" >&6; }
12316
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12317
$as_echo "no" >&6; }
12322
if test -z "$ac_cv_prog_CC"; then
12324
# Extract the first word of "gcc", so it can be a program name with args.
12325
set dummy gcc; ac_word=$2
12326
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12327
$as_echo_n "checking for $ac_word... " >&6; }
12328
if ${ac_cv_prog_ac_ct_CC+:} false; then :
12329
$as_echo_n "(cached) " >&6
12331
if test -n "$ac_ct_CC"; then
12332
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12334
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12335
for as_dir in $PATH
12338
test -z "$as_dir" && as_dir=.
12339
for ac_exec_ext in '' $ac_executable_extensions; do
12340
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12341
ac_cv_prog_ac_ct_CC="gcc"
12342
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12351
ac_ct_CC=$ac_cv_prog_ac_ct_CC
12352
if test -n "$ac_ct_CC"; then
12353
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12354
$as_echo "$ac_ct_CC" >&6; }
12356
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12357
$as_echo "no" >&6; }
12360
if test "x$ac_ct_CC" = x; then
12363
case $cross_compiling:$ac_tool_warned in
12365
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12366
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12367
ac_tool_warned=yes ;;
12372
CC="$ac_cv_prog_CC"
12375
if test -z "$CC"; then
12376
if test -n "$ac_tool_prefix"; then
12377
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12378
set dummy ${ac_tool_prefix}cc; ac_word=$2
12379
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12380
$as_echo_n "checking for $ac_word... " >&6; }
12381
if ${ac_cv_prog_CC+:} false; then :
12382
$as_echo_n "(cached) " >&6
12384
if test -n "$CC"; then
12385
ac_cv_prog_CC="$CC" # Let the user override the test.
12387
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12388
for as_dir in $PATH
12391
test -z "$as_dir" && as_dir=.
12392
for ac_exec_ext in '' $ac_executable_extensions; do
12393
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12394
ac_cv_prog_CC="${ac_tool_prefix}cc"
12395
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12405
if test -n "$CC"; then
12406
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12407
$as_echo "$CC" >&6; }
12409
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12410
$as_echo "no" >&6; }
12416
if test -z "$CC"; then
12417
# Extract the first word of "cc", so it can be a program name with args.
12418
set dummy cc; ac_word=$2
12419
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12420
$as_echo_n "checking for $ac_word... " >&6; }
12421
if ${ac_cv_prog_CC+:} false; then :
12422
$as_echo_n "(cached) " >&6
12424
if test -n "$CC"; then
12425
ac_cv_prog_CC="$CC" # Let the user override the test.
12427
ac_prog_rejected=no
12428
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12429
for as_dir in $PATH
12432
test -z "$as_dir" && as_dir=.
12433
for ac_exec_ext in '' $ac_executable_extensions; do
12434
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12435
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12436
ac_prog_rejected=yes
12440
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12447
if test $ac_prog_rejected = yes; then
12448
# We found a bogon in the path, so make sure we never use it.
12449
set dummy $ac_cv_prog_CC
12451
if test $# != 0; then
12452
# We chose a different compiler from the bogus one.
12453
# However, it has the same basename, so the bogon will be chosen
12454
# first if we set CC to just the basename; use the full file name.
12456
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12462
if test -n "$CC"; then
12463
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12464
$as_echo "$CC" >&6; }
12466
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12467
$as_echo "no" >&6; }
12472
if test -z "$CC"; then
12473
if test -n "$ac_tool_prefix"; then
12474
for ac_prog in cl.exe
12476
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12477
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12478
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12479
$as_echo_n "checking for $ac_word... " >&6; }
12480
if ${ac_cv_prog_CC+:} false; then :
12481
$as_echo_n "(cached) " >&6
12483
if test -n "$CC"; then
12484
ac_cv_prog_CC="$CC" # Let the user override the test.
12486
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12487
for as_dir in $PATH
12490
test -z "$as_dir" && as_dir=.
12491
for ac_exec_ext in '' $ac_executable_extensions; do
12492
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12493
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12494
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12504
if test -n "$CC"; then
12505
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12506
$as_echo "$CC" >&6; }
12508
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12509
$as_echo "no" >&6; }
12513
test -n "$CC" && break
12516
if test -z "$CC"; then
12518
for ac_prog in cl.exe
12520
# Extract the first word of "$ac_prog", so it can be a program name with args.
12521
set dummy $ac_prog; ac_word=$2
12522
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12523
$as_echo_n "checking for $ac_word... " >&6; }
12524
if ${ac_cv_prog_ac_ct_CC+:} false; then :
12525
$as_echo_n "(cached) " >&6
12527
if test -n "$ac_ct_CC"; then
12528
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12530
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12531
for as_dir in $PATH
12534
test -z "$as_dir" && as_dir=.
12535
for ac_exec_ext in '' $ac_executable_extensions; do
12536
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12537
ac_cv_prog_ac_ct_CC="$ac_prog"
12538
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12547
ac_ct_CC=$ac_cv_prog_ac_ct_CC
12548
if test -n "$ac_ct_CC"; then
12549
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12550
$as_echo "$ac_ct_CC" >&6; }
12552
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12553
$as_echo "no" >&6; }
12557
test -n "$ac_ct_CC" && break
12560
if test "x$ac_ct_CC" = x; then
12563
case $cross_compiling:$ac_tool_warned in
12565
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12566
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12567
ac_tool_warned=yes ;;
12576
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12577
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12578
as_fn_error $? "no acceptable C compiler found in \$PATH
12579
See \`config.log' for more details" "$LINENO" 5; }
12581
# Provide some information about the compiler.
12582
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12585
for ac_option in --version -v -V -qversion; do
12586
{ { ac_try="$ac_compiler $ac_option >&5"
12587
case "(($ac_try" in
12588
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12589
*) ac_try_echo=$ac_try;;
12591
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12592
$as_echo "$ac_try_echo"; } >&5
12593
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
12595
if test -s conftest.err; then
12597
... rest of stderr output deleted ...
12598
10q' conftest.err >conftest.er1
12599
cat conftest.er1 >&5
12601
rm -f conftest.er1 conftest.err
12602
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12603
test $ac_status = 0; }
12606
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12607
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12608
if ${ac_cv_c_compiler_gnu+:} false; then :
12609
$as_echo_n "(cached) " >&6
12611
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12612
/* end confdefs.h. */
12625
if ac_fn_c_try_compile "$LINENO"; then :
12626
ac_compiler_gnu=yes
12630
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12631
ac_cv_c_compiler_gnu=$ac_compiler_gnu
12634
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12635
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
12636
if test $ac_compiler_gnu = yes; then
12641
ac_test_CFLAGS=${CFLAGS+set}
12642
ac_save_CFLAGS=$CFLAGS
12643
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12644
$as_echo_n "checking whether $CC accepts -g... " >&6; }
12645
if ${ac_cv_prog_cc_g+:} false; then :
12646
$as_echo_n "(cached) " >&6
12648
ac_save_c_werror_flag=$ac_c_werror_flag
12649
ac_c_werror_flag=yes
12652
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12653
/* end confdefs.h. */
12663
if ac_fn_c_try_compile "$LINENO"; then :
12664
ac_cv_prog_cc_g=yes
12667
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12668
/* end confdefs.h. */
12678
if ac_fn_c_try_compile "$LINENO"; then :
12681
ac_c_werror_flag=$ac_save_c_werror_flag
12683
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12684
/* end confdefs.h. */
12694
if ac_fn_c_try_compile "$LINENO"; then :
12695
ac_cv_prog_cc_g=yes
12697
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12699
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12701
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12702
ac_c_werror_flag=$ac_save_c_werror_flag
12704
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12705
$as_echo "$ac_cv_prog_cc_g" >&6; }
12706
if test "$ac_test_CFLAGS" = set; then
12707
CFLAGS=$ac_save_CFLAGS
12708
elif test $ac_cv_prog_cc_g = yes; then
12709
if test "$GCC" = yes; then
12715
if test "$GCC" = yes; then
12721
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12722
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12723
if ${ac_cv_prog_cc_c89+:} false; then :
12724
$as_echo_n "(cached) " >&6
12726
ac_cv_prog_cc_c89=no
12728
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12729
/* end confdefs.h. */
12730
#include <stdarg.h>
12733
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12734
struct buf { int x; };
12735
FILE * (*rcsopen) (struct buf *, struct stat *, int);
12736
static char *e (p, i)
12742
static char *f (char * (*g) (char **, int), char **p, ...)
12747
s = g (p, va_arg (v,int));
12752
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12753
function prototypes and stuff, but not '\xHH' hex character constants.
12754
These don't provoke an error unfortunately, instead are silently treated
12755
as 'x'. The following induces an error, until -std is added to get
12756
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12757
array size at least. It's necessary to write '\x00'==0 to get something
12758
that's true only with -std. */
12759
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12761
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12762
inside strings and character constants. */
12764
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12766
int test (int i, double x);
12767
struct s1 {int (*f) (int a);};
12768
struct s2 {int (*f) (double a);};
12769
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12775
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12780
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12781
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12783
CC="$ac_save_CC $ac_arg"
12784
if ac_fn_c_try_compile "$LINENO"; then :
12785
ac_cv_prog_cc_c89=$ac_arg
12787
rm -f core conftest.err conftest.$ac_objext
12788
test "x$ac_cv_prog_cc_c89" != "xno" && break
12790
rm -f conftest.$ac_ext
12795
case "x$ac_cv_prog_cc_c89" in
12797
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12798
$as_echo "none needed" >&6; } ;;
12800
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12801
$as_echo "unsupported" >&6; } ;;
12803
CC="$CC $ac_cv_prog_cc_c89"
12804
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12805
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12807
if test "x$ac_cv_prog_cc_c89" != xno; then :
12812
ac_cpp='$CPP $CPPFLAGS'
12813
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12814
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12815
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12817
depcc="$CC" am_compiler_list=
12819
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12820
$as_echo_n "checking dependency style of $depcc... " >&6; }
12821
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12822
$as_echo_n "(cached) " >&6
12824
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12825
# We make a subdir and do the tests there. Otherwise we can end up
12826
# making bogus files that we don't know about and never remove. For
12827
# instance it was reported that on HP-UX the gcc test will end up
12828
# making a dummy file named `D' -- because `-MD' means `put the output
12830
rm -rf conftest.dir
12832
# Copy depcomp to subdir because otherwise we won't find it if we're
12833
# using a relative directory.
12834
cp "$am_depcomp" conftest.dir
12836
# We will build objects and dependencies in a subdirectory because
12837
# it helps to detect inapplicable dependency modes. For instance
12838
# both Tru64's cc and ICC support -MD to output dependencies as a
12839
# side effect of compilation, but ICC will put the dependencies in
12840
# the current directory while Tru64 will put them in the object
12844
am_cv_CC_dependencies_compiler_type=none
12845
if test "$am_compiler_list" = ""; then
12846
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12848
am__universal=false
12849
case " $depcc " in #(
12850
*\ -arch\ *\ -arch\ *) am__universal=true ;;
12853
for depmode in $am_compiler_list; do
12854
# Setup a source with many dependencies, because some compilers
12855
# like to wrap large dependency lists on column 80 (with \), and
12856
# we should not choose a depcomp mode which is confused by this.
12858
# We need to recreate these files for each test, as the compiler may
12859
# overwrite some of them when testing with obscure command lines.
12860
# This happens at least with the AIX C compiler.
12862
for i in 1 2 3 4 5 6; do
12863
echo '#include "conftst'$i'.h"' >> sub/conftest.c
12864
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12865
# Solaris 8's {/usr,}/bin/sh.
12866
touch sub/conftst$i.h
12868
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12870
# We check with `-c' and `-o' for the sake of the "dashmstdout"
12871
# mode. It turns out that the SunPro C++ compiler does not properly
12872
# handle `-M -o', and we need to detect this. Also, some Intel
12873
# versions had trouble with output in subdirs
12874
am__obj=sub/conftest.${OBJEXT-o}
12875
am__minus_obj="-o $am__obj"
12878
# This depmode causes a compiler race in universal mode.
12879
test "$am__universal" = false || continue
12882
# after this tag, mechanisms are not by side-effect, so they'll
12883
# only be used when explicitly requested
12884
if test "x$enable_dependency_tracking" = xyes; then
12890
msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12891
# This compiler won't grok `-c -o', but also, the minuso test has
12892
# not run yet. These depmodes are late enough in the game, and
12893
# so weak that their functioning should not be impacted.
12894
am__obj=conftest.${OBJEXT-o}
12899
if depmode=$depmode \
12900
source=sub/conftest.c object=$am__obj \
12901
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12902
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12903
>/dev/null 2>conftest.err &&
12904
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12905
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12906
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12907
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12908
# icc doesn't choke on unknown options, it will just issue warnings
12909
# or remarks (even with -Werror). So we grep stderr for any message
12910
# that says an option was ignored or not supported.
12911
# When given -MP, icc 7.0 and 7.1 complain thusly:
12912
# icc: Command line warning: ignoring option '-M'; no argument required
12913
# The diagnosis changed in icc 8.0:
12914
# icc: Command line remark: option '-MP' not supported
12915
if (grep 'ignoring option' conftest.err ||
12916
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12917
am_cv_CC_dependencies_compiler_type=$depmode
12924
rm -rf conftest.dir
12926
am_cv_CC_dependencies_compiler_type=none
12930
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12931
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12932
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12935
test "x$enable_dependency_tracking" != xno \
12936
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12937
am__fastdepCC_TRUE=
12938
am__fastdepCC_FALSE='#'
12940
am__fastdepCC_TRUE='#'
12941
am__fastdepCC_FALSE=
12946
ac_cpp='$CXXCPP $CPPFLAGS'
12947
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12948
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12949
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12950
if test -z "$CXX"; then
12951
if test -n "$CCC"; then
12954
if test -n "$ac_tool_prefix"; then
12955
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12957
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12958
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12959
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12960
$as_echo_n "checking for $ac_word... " >&6; }
12961
if ${ac_cv_prog_CXX+:} false; then :
12962
$as_echo_n "(cached) " >&6
12964
if test -n "$CXX"; then
12965
ac_cv_prog_CXX="$CXX" # Let the user override the test.
12967
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12968
for as_dir in $PATH
12971
test -z "$as_dir" && as_dir=.
12972
for ac_exec_ext in '' $ac_executable_extensions; do
12973
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12974
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12975
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12984
CXX=$ac_cv_prog_CXX
12985
if test -n "$CXX"; then
12986
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12987
$as_echo "$CXX" >&6; }
12989
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12990
$as_echo "no" >&6; }
12994
test -n "$CXX" && break
12997
if test -z "$CXX"; then
12999
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13001
# Extract the first word of "$ac_prog", so it can be a program name with args.
13002
set dummy $ac_prog; ac_word=$2
13003
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13004
$as_echo_n "checking for $ac_word... " >&6; }
13005
if ${ac_cv_prog_ac_ct_CXX+:} false; then :
13006
$as_echo_n "(cached) " >&6
13008
if test -n "$ac_ct_CXX"; then
13009
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13011
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13012
for as_dir in $PATH
13015
test -z "$as_dir" && as_dir=.
13016
for ac_exec_ext in '' $ac_executable_extensions; do
13017
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13018
ac_cv_prog_ac_ct_CXX="$ac_prog"
13019
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13028
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13029
if test -n "$ac_ct_CXX"; then
13030
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
13031
$as_echo "$ac_ct_CXX" >&6; }
13033
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13034
$as_echo "no" >&6; }
13038
test -n "$ac_ct_CXX" && break
13041
if test "x$ac_ct_CXX" = x; then
13044
case $cross_compiling:$ac_tool_warned in
13046
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13047
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13048
ac_tool_warned=yes ;;
13056
# Provide some information about the compiler.
13057
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
13060
for ac_option in --version -v -V -qversion; do
13061
{ { ac_try="$ac_compiler $ac_option >&5"
13062
case "(($ac_try" in
13063
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13064
*) ac_try_echo=$ac_try;;
13066
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13067
$as_echo "$ac_try_echo"; } >&5
13068
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
13070
if test -s conftest.err; then
13072
... rest of stderr output deleted ...
13073
10q' conftest.err >conftest.er1
13074
cat conftest.er1 >&5
13076
rm -f conftest.er1 conftest.err
13077
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13078
test $ac_status = 0; }
13081
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
13082
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
13083
if ${ac_cv_cxx_compiler_gnu+:} false; then :
13084
$as_echo_n "(cached) " >&6
13086
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13087
/* end confdefs.h. */
13100
if ac_fn_cxx_try_compile "$LINENO"; then :
13101
ac_compiler_gnu=yes
13105
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13106
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13109
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
13110
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
13111
if test $ac_compiler_gnu = yes; then
13116
ac_test_CXXFLAGS=${CXXFLAGS+set}
13117
ac_save_CXXFLAGS=$CXXFLAGS
13118
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
13119
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
13120
if ${ac_cv_prog_cxx_g+:} false; then :
13121
$as_echo_n "(cached) " >&6
13123
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
13124
ac_cxx_werror_flag=yes
13125
ac_cv_prog_cxx_g=no
13127
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13128
/* end confdefs.h. */
13138
if ac_fn_cxx_try_compile "$LINENO"; then :
13139
ac_cv_prog_cxx_g=yes
13142
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13143
/* end confdefs.h. */
13153
if ac_fn_cxx_try_compile "$LINENO"; then :
13156
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13158
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13159
/* end confdefs.h. */
13169
if ac_fn_cxx_try_compile "$LINENO"; then :
13170
ac_cv_prog_cxx_g=yes
13172
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13174
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13176
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13177
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13179
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
13180
$as_echo "$ac_cv_prog_cxx_g" >&6; }
13181
if test "$ac_test_CXXFLAGS" = set; then
13182
CXXFLAGS=$ac_save_CXXFLAGS
13183
elif test $ac_cv_prog_cxx_g = yes; then
13184
if test "$GXX" = yes; then
13190
if test "$GXX" = yes; then
13197
ac_cpp='$CPP $CPPFLAGS'
13198
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13199
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13200
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13202
depcc="$CXX" am_compiler_list=
13204
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13205
$as_echo_n "checking dependency style of $depcc... " >&6; }
13206
if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
13207
$as_echo_n "(cached) " >&6
13209
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13210
# We make a subdir and do the tests there. Otherwise we can end up
13211
# making bogus files that we don't know about and never remove. For
13212
# instance it was reported that on HP-UX the gcc test will end up
13213
# making a dummy file named `D' -- because `-MD' means `put the output
13215
rm -rf conftest.dir
13217
# Copy depcomp to subdir because otherwise we won't find it if we're
13218
# using a relative directory.
13219
cp "$am_depcomp" conftest.dir
13221
# We will build objects and dependencies in a subdirectory because
13222
# it helps to detect inapplicable dependency modes. For instance
13223
# both Tru64's cc and ICC support -MD to output dependencies as a
13224
# side effect of compilation, but ICC will put the dependencies in
13225
# the current directory while Tru64 will put them in the object
13229
am_cv_CXX_dependencies_compiler_type=none
13230
if test "$am_compiler_list" = ""; then
13231
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13233
am__universal=false
13234
case " $depcc " in #(
13235
*\ -arch\ *\ -arch\ *) am__universal=true ;;
13238
for depmode in $am_compiler_list; do
13239
# Setup a source with many dependencies, because some compilers
13240
# like to wrap large dependency lists on column 80 (with \), and
13241
# we should not choose a depcomp mode which is confused by this.
13243
# We need to recreate these files for each test, as the compiler may
13244
# overwrite some of them when testing with obscure command lines.
13245
# This happens at least with the AIX C compiler.
13247
for i in 1 2 3 4 5 6; do
13248
echo '#include "conftst'$i'.h"' >> sub/conftest.c
13249
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13250
# Solaris 8's {/usr,}/bin/sh.
13251
touch sub/conftst$i.h
13253
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13255
# We check with `-c' and `-o' for the sake of the "dashmstdout"
13256
# mode. It turns out that the SunPro C++ compiler does not properly
13257
# handle `-M -o', and we need to detect this. Also, some Intel
13258
# versions had trouble with output in subdirs
13259
am__obj=sub/conftest.${OBJEXT-o}
13260
am__minus_obj="-o $am__obj"
13263
# This depmode causes a compiler race in universal mode.
13264
test "$am__universal" = false || continue
13267
# after this tag, mechanisms are not by side-effect, so they'll
13268
# only be used when explicitly requested
13269
if test "x$enable_dependency_tracking" = xyes; then
13275
msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13276
# This compiler won't grok `-c -o', but also, the minuso test has
13277
# not run yet. These depmodes are late enough in the game, and
13278
# so weak that their functioning should not be impacted.
13279
am__obj=conftest.${OBJEXT-o}
13284
if depmode=$depmode \
13285
source=sub/conftest.c object=$am__obj \
13286
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13287
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13288
>/dev/null 2>conftest.err &&
13289
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13290
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13291
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13292
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13293
# icc doesn't choke on unknown options, it will just issue warnings
13294
# or remarks (even with -Werror). So we grep stderr for any message
13295
# that says an option was ignored or not supported.
13296
# When given -MP, icc 7.0 and 7.1 complain thusly:
13297
# icc: Command line warning: ignoring option '-M'; no argument required
13298
# The diagnosis changed in icc 8.0:
13299
# icc: Command line remark: option '-MP' not supported
13300
if (grep 'ignoring option' conftest.err ||
13301
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13302
am_cv_CXX_dependencies_compiler_type=$depmode
13309
rm -rf conftest.dir
13311
am_cv_CXX_dependencies_compiler_type=none
13315
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
13316
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
13317
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
13320
test "x$enable_dependency_tracking" != xno \
13321
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
13322
am__fastdepCXX_TRUE=
13323
am__fastdepCXX_FALSE='#'
13325
am__fastdepCXX_TRUE='#'
13326
am__fastdepCXX_FALSE=
13332
func_stripname_cnf ()
13335
.*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13336
*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13338
} # func_stripname_cnf
13340
15197
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13341
15198
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13342
15199
(test "X$CXX" != "Xg++"))) ; then