3942
ac_cpp='$CPP $CPPFLAGS'
3943
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3944
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3945
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3946
if test -n "$ac_tool_prefix"; then
3947
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3948
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3949
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3950
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3951
if test "${ac_cv_prog_CC+set}" = set; then
3952
echo $ECHO_N "(cached) $ECHO_C" >&6
3954
if test -n "$CC"; then
3955
ac_cv_prog_CC="$CC" # Let the user override the test.
3957
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3961
test -z "$as_dir" && as_dir=.
3962
for ac_exec_ext in '' $ac_executable_extensions; do
3963
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3964
ac_cv_prog_CC="${ac_tool_prefix}gcc"
3965
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3975
if test -n "$CC"; then
3976
{ echo "$as_me:$LINENO: result: $CC" >&5
3977
echo "${ECHO_T}$CC" >&6; }
3979
{ echo "$as_me:$LINENO: result: no" >&5
3980
echo "${ECHO_T}no" >&6; }
3985
if test -z "$ac_cv_prog_CC"; then
3987
# Extract the first word of "gcc", so it can be a program name with args.
3988
set dummy gcc; ac_word=$2
3989
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3990
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3991
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3992
echo $ECHO_N "(cached) $ECHO_C" >&6
3994
if test -n "$ac_ct_CC"; then
3995
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3997
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4001
test -z "$as_dir" && as_dir=.
4002
for ac_exec_ext in '' $ac_executable_extensions; do
4003
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4004
ac_cv_prog_ac_ct_CC="gcc"
4005
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4014
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4015
if test -n "$ac_ct_CC"; then
4016
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4017
echo "${ECHO_T}$ac_ct_CC" >&6; }
4019
{ echo "$as_me:$LINENO: result: no" >&5
4020
echo "${ECHO_T}no" >&6; }
4023
if test "x$ac_ct_CC" = x; then
4026
case $cross_compiling:$ac_tool_warned in
4028
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4029
whose name does not start with the host triplet. If you think this
4030
configuration is useful to you, please write to autoconf@gnu.org." >&5
4031
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4032
whose name does not start with the host triplet. If you think this
4033
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4034
ac_tool_warned=yes ;;
4042
if test -z "$CC"; then
4043
if test -n "$ac_tool_prefix"; then
4044
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4045
set dummy ${ac_tool_prefix}cc; ac_word=$2
4046
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4047
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4048
if test "${ac_cv_prog_CC+set}" = set; then
4049
echo $ECHO_N "(cached) $ECHO_C" >&6
4051
if test -n "$CC"; then
4052
ac_cv_prog_CC="$CC" # Let the user override the test.
4054
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4058
test -z "$as_dir" && as_dir=.
4059
for ac_exec_ext in '' $ac_executable_extensions; do
4060
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4061
ac_cv_prog_CC="${ac_tool_prefix}cc"
4062
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4072
if test -n "$CC"; then
4073
{ echo "$as_me:$LINENO: result: $CC" >&5
4074
echo "${ECHO_T}$CC" >&6; }
4076
{ echo "$as_me:$LINENO: result: no" >&5
4077
echo "${ECHO_T}no" >&6; }
4083
if test -z "$CC"; then
4084
# Extract the first word of "cc", so it can be a program name with args.
4085
set dummy cc; ac_word=$2
4086
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4087
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4088
if test "${ac_cv_prog_CC+set}" = set; then
4089
echo $ECHO_N "(cached) $ECHO_C" >&6
4091
if test -n "$CC"; then
4092
ac_cv_prog_CC="$CC" # Let the user override the test.
4095
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4099
test -z "$as_dir" && as_dir=.
4100
for ac_exec_ext in '' $ac_executable_extensions; do
4101
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4102
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4103
ac_prog_rejected=yes
4107
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4114
if test $ac_prog_rejected = yes; then
4115
# We found a bogon in the path, so make sure we never use it.
4116
set dummy $ac_cv_prog_CC
4118
if test $# != 0; then
4119
# We chose a different compiler from the bogus one.
4120
# However, it has the same basename, so the bogon will be chosen
4121
# first if we set CC to just the basename; use the full file name.
4123
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4129
if test -n "$CC"; then
4130
{ echo "$as_me:$LINENO: result: $CC" >&5
4131
echo "${ECHO_T}$CC" >&6; }
4133
{ echo "$as_me:$LINENO: result: no" >&5
4134
echo "${ECHO_T}no" >&6; }
4139
if test -z "$CC"; then
4140
if test -n "$ac_tool_prefix"; then
4141
for ac_prog in cl.exe
4143
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4144
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4145
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4146
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4147
if test "${ac_cv_prog_CC+set}" = set; then
4148
echo $ECHO_N "(cached) $ECHO_C" >&6
4150
if test -n "$CC"; then
4151
ac_cv_prog_CC="$CC" # Let the user override the test.
4153
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4157
test -z "$as_dir" && as_dir=.
4158
for ac_exec_ext in '' $ac_executable_extensions; do
4159
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4160
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4161
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4171
if test -n "$CC"; then
4172
{ echo "$as_me:$LINENO: result: $CC" >&5
4173
echo "${ECHO_T}$CC" >&6; }
4175
{ echo "$as_me:$LINENO: result: no" >&5
4176
echo "${ECHO_T}no" >&6; }
4180
test -n "$CC" && break
4183
if test -z "$CC"; then
4185
for ac_prog in cl.exe
4187
# Extract the first word of "$ac_prog", so it can be a program name with args.
4188
set dummy $ac_prog; ac_word=$2
4189
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4190
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4191
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4192
echo $ECHO_N "(cached) $ECHO_C" >&6
4194
if test -n "$ac_ct_CC"; then
4195
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4197
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4201
test -z "$as_dir" && as_dir=.
4202
for ac_exec_ext in '' $ac_executable_extensions; do
4203
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4204
ac_cv_prog_ac_ct_CC="$ac_prog"
4205
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4214
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4215
if test -n "$ac_ct_CC"; then
4216
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4217
echo "${ECHO_T}$ac_ct_CC" >&6; }
4219
{ echo "$as_me:$LINENO: result: no" >&5
4220
echo "${ECHO_T}no" >&6; }
4224
test -n "$ac_ct_CC" && break
4227
if test "x$ac_ct_CC" = x; then
4230
case $cross_compiling:$ac_tool_warned in
4232
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4233
whose name does not start with the host triplet. If you think this
4234
configuration is useful to you, please write to autoconf@gnu.org." >&5
4235
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4236
whose name does not start with the host triplet. If you think this
4237
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4238
ac_tool_warned=yes ;;
4247
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4248
See \`config.log' for more details." >&5
4249
echo "$as_me: error: no acceptable C compiler found in \$PATH
4250
See \`config.log' for more details." >&2;}
4251
{ (exit 1); exit 1; }; }
4253
# Provide some information about the compiler.
4254
echo "$as_me:$LINENO: checking for C compiler version" >&5
4255
ac_compiler=`set X $ac_compile; echo $2`
4256
{ (ac_try="$ac_compiler --version >&5"
4258
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4259
*) ac_try_echo=$ac_try;;
4261
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4262
(eval "$ac_compiler --version >&5") 2>&5
4264
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265
(exit $ac_status); }
4266
{ (ac_try="$ac_compiler -v >&5"
4268
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4269
*) ac_try_echo=$ac_try;;
4271
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4272
(eval "$ac_compiler -v >&5") 2>&5
4274
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275
(exit $ac_status); }
4276
{ (ac_try="$ac_compiler -V >&5"
4278
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4279
*) ac_try_echo=$ac_try;;
4281
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4282
(eval "$ac_compiler -V >&5") 2>&5
4284
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285
(exit $ac_status); }
4287
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4288
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4289
if test "${ac_cv_c_compiler_gnu+set}" = set; then
4290
echo $ECHO_N "(cached) $ECHO_C" >&6
4292
cat >conftest.$ac_ext <<_ACEOF
4295
cat confdefs.h >>conftest.$ac_ext
4296
cat >>conftest.$ac_ext <<_ACEOF
4297
/* end confdefs.h. */
4310
rm -f conftest.$ac_objext
4311
if { (ac_try="$ac_compile"
4313
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4314
*) ac_try_echo=$ac_try;;
4316
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4317
(eval "$ac_compile") 2>conftest.er1
4319
grep -v '^ *+' conftest.er1 >conftest.err
4321
cat conftest.err >&5
4322
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323
(exit $ac_status); } && {
4324
test -z "$ac_c_werror_flag" ||
4325
test ! -s conftest.err
4326
} && test -s conftest.$ac_objext; then
4329
echo "$as_me: failed program was:" >&5
4330
sed 's/^/| /' conftest.$ac_ext >&5
4335
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4336
ac_cv_c_compiler_gnu=$ac_compiler_gnu
4339
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4340
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4341
GCC=`test $ac_compiler_gnu = yes && echo yes`
4342
ac_test_CFLAGS=${CFLAGS+set}
4343
ac_save_CFLAGS=$CFLAGS
4344
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4345
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4346
if test "${ac_cv_prog_cc_g+set}" = set; then
4347
echo $ECHO_N "(cached) $ECHO_C" >&6
4349
ac_save_c_werror_flag=$ac_c_werror_flag
4350
ac_c_werror_flag=yes
4353
cat >conftest.$ac_ext <<_ACEOF
4356
cat confdefs.h >>conftest.$ac_ext
4357
cat >>conftest.$ac_ext <<_ACEOF
4358
/* end confdefs.h. */
4368
rm -f conftest.$ac_objext
4369
if { (ac_try="$ac_compile"
4371
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4372
*) ac_try_echo=$ac_try;;
4374
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4375
(eval "$ac_compile") 2>conftest.er1
4377
grep -v '^ *+' conftest.er1 >conftest.err
4379
cat conftest.err >&5
4380
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381
(exit $ac_status); } && {
4382
test -z "$ac_c_werror_flag" ||
4383
test ! -s conftest.err
4384
} && test -s conftest.$ac_objext; then
4387
echo "$as_me: failed program was:" >&5
4388
sed 's/^/| /' conftest.$ac_ext >&5
4391
cat >conftest.$ac_ext <<_ACEOF
4394
cat confdefs.h >>conftest.$ac_ext
4395
cat >>conftest.$ac_ext <<_ACEOF
4396
/* end confdefs.h. */
4406
rm -f conftest.$ac_objext
4407
if { (ac_try="$ac_compile"
4409
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4410
*) ac_try_echo=$ac_try;;
4412
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4413
(eval "$ac_compile") 2>conftest.er1
4415
grep -v '^ *+' conftest.er1 >conftest.err
4417
cat conftest.err >&5
4418
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419
(exit $ac_status); } && {
4420
test -z "$ac_c_werror_flag" ||
4421
test ! -s conftest.err
4422
} && test -s conftest.$ac_objext; then
4425
echo "$as_me: failed program was:" >&5
4426
sed 's/^/| /' conftest.$ac_ext >&5
4428
ac_c_werror_flag=$ac_save_c_werror_flag
4430
cat >conftest.$ac_ext <<_ACEOF
4433
cat confdefs.h >>conftest.$ac_ext
4434
cat >>conftest.$ac_ext <<_ACEOF
4435
/* end confdefs.h. */
4445
rm -f conftest.$ac_objext
4446
if { (ac_try="$ac_compile"
4448
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4449
*) ac_try_echo=$ac_try;;
4451
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4452
(eval "$ac_compile") 2>conftest.er1
4454
grep -v '^ *+' conftest.er1 >conftest.err
4456
cat conftest.err >&5
4457
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458
(exit $ac_status); } && {
4459
test -z "$ac_c_werror_flag" ||
4460
test ! -s conftest.err
4461
} && test -s conftest.$ac_objext; then
4464
echo "$as_me: failed program was:" >&5
4465
sed 's/^/| /' conftest.$ac_ext >&5
4470
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4473
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4476
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4477
ac_c_werror_flag=$ac_save_c_werror_flag
4479
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4480
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4481
if test "$ac_test_CFLAGS" = set; then
4482
CFLAGS=$ac_save_CFLAGS
4483
elif test $ac_cv_prog_cc_g = yes; then
4484
if test "$GCC" = yes; then
4490
if test "$GCC" = yes; then
4496
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4497
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4498
if test "${ac_cv_prog_cc_c89+set}" = set; then
4499
echo $ECHO_N "(cached) $ECHO_C" >&6
4501
ac_cv_prog_cc_c89=no
4503
cat >conftest.$ac_ext <<_ACEOF
4506
cat confdefs.h >>conftest.$ac_ext
4507
cat >>conftest.$ac_ext <<_ACEOF
4508
/* end confdefs.h. */
4511
#include <sys/types.h>
4512
#include <sys/stat.h>
4513
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4514
struct buf { int x; };
4515
FILE * (*rcsopen) (struct buf *, struct stat *, int);
4516
static char *e (p, i)
4522
static char *f (char * (*g) (char **, int), char **p, ...)
4527
s = g (p, va_arg (v,int));
4532
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4533
function prototypes and stuff, but not '\xHH' hex character constants.
4534
These don't provoke an error unfortunately, instead are silently treated
4535
as 'x'. The following induces an error, until -std is added to get
4536
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4537
array size at least. It's necessary to write '\x00'==0 to get something
4538
that's true only with -std. */
4539
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4541
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4542
inside strings and character constants. */
4544
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4546
int test (int i, double x);
4547
struct s1 {int (*f) (int a);};
4548
struct s2 {int (*f) (double a);};
4549
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4555
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4560
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4561
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4563
CC="$ac_save_CC $ac_arg"
4564
rm -f conftest.$ac_objext
4565
if { (ac_try="$ac_compile"
4567
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4568
*) ac_try_echo=$ac_try;;
4570
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4571
(eval "$ac_compile") 2>conftest.er1
4573
grep -v '^ *+' conftest.er1 >conftest.err
4575
cat conftest.err >&5
4576
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577
(exit $ac_status); } && {
4578
test -z "$ac_c_werror_flag" ||
4579
test ! -s conftest.err
4580
} && test -s conftest.$ac_objext; then
4581
ac_cv_prog_cc_c89=$ac_arg
4583
echo "$as_me: failed program was:" >&5
4584
sed 's/^/| /' conftest.$ac_ext >&5
4589
rm -f core conftest.err conftest.$ac_objext
4590
test "x$ac_cv_prog_cc_c89" != "xno" && break
4592
rm -f conftest.$ac_ext
4597
case "x$ac_cv_prog_cc_c89" in
4599
{ echo "$as_me:$LINENO: result: none needed" >&5
4600
echo "${ECHO_T}none needed" >&6; } ;;
4602
{ echo "$as_me:$LINENO: result: unsupported" >&5
4603
echo "${ECHO_T}unsupported" >&6; } ;;
4605
CC="$CC $ac_cv_prog_cc_c89"
4606
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4607
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4612
ac_cpp='$CPP $CPPFLAGS'
4613
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4614
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4615
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4617
depcc="$CC" am_compiler_list=
4619
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4620
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4621
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4622
echo $ECHO_N "(cached) $ECHO_C" >&6
4624
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4625
# We make a subdir and do the tests there. Otherwise we can end up
4626
# making bogus files that we don't know about and never remove. For
4627
# instance it was reported that on HP-UX the gcc test will end up
4628
# making a dummy file named `D' -- because `-MD' means `put the output
4631
# Copy depcomp to subdir because otherwise we won't find it if we're
4632
# using a relative directory.
4633
cp "$am_depcomp" conftest.dir
4635
# We will build objects and dependencies in a subdirectory because
4636
# it helps to detect inapplicable dependency modes. For instance
4637
# both Tru64's cc and ICC support -MD to output dependencies as a
4638
# side effect of compilation, but ICC will put the dependencies in
4639
# the current directory while Tru64 will put them in the object
4643
am_cv_CC_dependencies_compiler_type=none
4644
if test "$am_compiler_list" = ""; then
4645
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4647
for depmode in $am_compiler_list; do
4648
# Setup a source with many dependencies, because some compilers
4649
# like to wrap large dependency lists on column 80 (with \), and
4650
# we should not choose a depcomp mode which is confused by this.
4652
# We need to recreate these files for each test, as the compiler may
4653
# overwrite some of them when testing with obscure command lines.
4654
# This happens at least with the AIX C compiler.
4656
for i in 1 2 3 4 5 6; do
4657
echo '#include "conftst'$i'.h"' >> sub/conftest.c
4660
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4664
# after this tag, mechanisms are not by side-effect, so they'll
4665
# only be used when explicitly requested
4666
if test "x$enable_dependency_tracking" = xyes; then
4674
# We check with `-c' and `-o' for the sake of the "dashmstdout"
4675
# mode. It turns out that the SunPro C++ compiler does not properly
4676
# handle `-M -o', and we need to detect this.
4677
if depmode=$depmode \
4678
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4679
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4680
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4681
>/dev/null 2>conftest.err &&
4682
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4683
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4684
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4685
# icc doesn't choke on unknown options, it will just issue warnings
4686
# (even with -Werror). So we grep stderr for any message
4687
# that says an option was ignored.
4688
if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
4689
am_cv_CC_dependencies_compiler_type=$depmode
4698
am_cv_CC_dependencies_compiler_type=none
4702
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4703
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4704
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4709
test "x$enable_dependency_tracking" != xno \
4710
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4712
am__fastdepCC_FALSE='#'
4714
am__fastdepCC_TRUE='#'
4715
am__fastdepCC_FALSE=
4719
if test "x$CC" != xcc; then
4720
{ echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
4721
echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
4723
{ echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
4724
echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
4726
set dummy $CC; ac_cc=`echo $2 |
4727
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4728
if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
4729
echo $ECHO_N "(cached) $ECHO_C" >&6
4731
cat >conftest.$ac_ext <<_ACEOF
4734
cat confdefs.h >>conftest.$ac_ext
4735
cat >>conftest.$ac_ext <<_ACEOF
4736
/* end confdefs.h. */
4746
# Make sure it works both with $CC and with simple cc.
4747
# We do the test twice because some compilers refuse to overwrite an
4748
# existing .o file with -o, though they will create one.
4749
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4751
if { (case "(($ac_try" in
4752
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4753
*) ac_try_echo=$ac_try;;
4755
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4756
(eval "$ac_try") 2>&5
4758
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759
(exit $ac_status); } &&
4760
test -f conftest2.$ac_objext && { (case "(($ac_try" in
4761
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4762
*) ac_try_echo=$ac_try;;
4764
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4765
(eval "$ac_try") 2>&5
4767
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768
(exit $ac_status); };
4770
eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4771
if test "x$CC" != xcc; then
4772
# Test first that cc exists at all.
4773
if { ac_try='cc -c conftest.$ac_ext >&5'
4774
{ (case "(($ac_try" in
4775
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4776
*) ac_try_echo=$ac_try;;
4778
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4779
(eval "$ac_try") 2>&5
4781
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782
(exit $ac_status); }; }; then
4783
ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4785
if { (case "(($ac_try" in
4786
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4787
*) ac_try_echo=$ac_try;;
4789
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4790
(eval "$ac_try") 2>&5
4792
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793
(exit $ac_status); } &&
4794
test -f conftest2.$ac_objext && { (case "(($ac_try" in
4795
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4796
*) ac_try_echo=$ac_try;;
4798
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4799
(eval "$ac_try") 2>&5
4801
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802
(exit $ac_status); };
4807
# cc exists but doesn't like -o.
4808
eval ac_cv_prog_cc_${ac_cc}_c_o=no
4813
eval ac_cv_prog_cc_${ac_cc}_c_o=no
4815
rm -f core conftest*
4818
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4819
{ echo "$as_me:$LINENO: result: yes" >&5
4820
echo "${ECHO_T}yes" >&6; }
4822
{ echo "$as_me:$LINENO: result: no" >&5
4823
echo "${ECHO_T}no" >&6; }
4825
cat >>confdefs.h <<\_ACEOF
4826
#define NO_MINUS_C_MINUS_O 1
4831
# FIXME: we rely on the cache variable name because
4832
# there is no other way.
4834
ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4835
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
4836
# Losing compiler, so override with the script.
4837
# FIXME: It is wrong to rewrite CC.
4838
# But if we don't then we get into trouble of one sort or another.
4839
# A longer-term fix would be to have automake use am__CC in this case,
4840
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4841
CC="$am_aux_dir/compile $CC"
4844
if test "$GCC" = "yes"; then
4845
# Enable some warnings from gcc.
4847
# -Wno-pointer-sign is probably new in gcc 4.0; certainly it isn't accepted
4849
ink_svd_CFLAGS="$CFLAGS"
4850
CFLAGS="-Wno-pointer-sign $CFLAGS"
4851
cat >conftest.$ac_ext <<_ACEOF
4855
rm -f conftest.$ac_objext
4856
if { (ac_try="$ac_compile"
4858
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4859
*) ac_try_echo=$ac_try;;
4861
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4862
(eval "$ac_compile") 2>conftest.er1
4864
grep -v '^ *+' conftest.er1 >conftest.err
4866
cat conftest.err >&5
4867
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868
(exit $ac_status); } && {
4869
test -z "$ac_c_werror_flag" ||
4870
test ! -s conftest.err
4871
} && test -s conftest.$ac_objext; then
4874
echo "$as_me: failed program was:" >&5
4875
sed 's/^/| /' conftest.$ac_ext >&5
4877
CFLAGS="$ink_svd_CFLAGS"
4880
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4881
CFLAGS="-Wall -Wformat-security -W $CFLAGS"
4885
4133
ac_cpp='$CXXCPP $CPPFLAGS'
4886
4134
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5909
{ echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
5910
echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6; }
5911
if test "${am_cv_prog_cc_stdc+set}" = set; then
5912
echo $ECHO_N "(cached) $ECHO_C" >&6
5914
am_cv_prog_cc_stdc=no
5916
# Don't try gcc -ansi; that turns off useful extensions and
5917
# breaks some systems' header files.
5918
# AIX -qlanglvl=ansi
5919
# Ultrix and OSF/1 -std1
5920
# HP-UX 10.20 and later -Ae
5921
# HP-UX older versions -Aa -D_HPUX_SOURCE
5922
# SVR4 -Xc -D__EXTENSIONS__
5923
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5925
CC="$ac_save_CC $ac_arg"
5167
ac_cpp='$CPP $CPPFLAGS'
5168
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5169
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5170
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5171
if test -n "$ac_tool_prefix"; then
5172
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5173
set dummy ${ac_tool_prefix}gcc; ac_word=$2
5174
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5175
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5176
if test "${ac_cv_prog_CC+set}" = set; then
5177
echo $ECHO_N "(cached) $ECHO_C" >&6
5179
if test -n "$CC"; then
5180
ac_cv_prog_CC="$CC" # Let the user override the test.
5182
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5186
test -z "$as_dir" && as_dir=.
5187
for ac_exec_ext in '' $ac_executable_extensions; do
5188
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5189
ac_cv_prog_CC="${ac_tool_prefix}gcc"
5190
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5200
if test -n "$CC"; then
5201
{ echo "$as_me:$LINENO: result: $CC" >&5
5202
echo "${ECHO_T}$CC" >&6; }
5204
{ echo "$as_me:$LINENO: result: no" >&5
5205
echo "${ECHO_T}no" >&6; }
5210
if test -z "$ac_cv_prog_CC"; then
5212
# Extract the first word of "gcc", so it can be a program name with args.
5213
set dummy gcc; ac_word=$2
5214
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5215
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5216
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5217
echo $ECHO_N "(cached) $ECHO_C" >&6
5219
if test -n "$ac_ct_CC"; then
5220
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5222
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5226
test -z "$as_dir" && as_dir=.
5227
for ac_exec_ext in '' $ac_executable_extensions; do
5228
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5229
ac_cv_prog_ac_ct_CC="gcc"
5230
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5239
ac_ct_CC=$ac_cv_prog_ac_ct_CC
5240
if test -n "$ac_ct_CC"; then
5241
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5242
echo "${ECHO_T}$ac_ct_CC" >&6; }
5244
{ echo "$as_me:$LINENO: result: no" >&5
5245
echo "${ECHO_T}no" >&6; }
5248
if test "x$ac_ct_CC" = x; then
5251
case $cross_compiling:$ac_tool_warned in
5253
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5254
whose name does not start with the host triplet. If you think this
5255
configuration is useful to you, please write to autoconf@gnu.org." >&5
5256
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5257
whose name does not start with the host triplet. If you think this
5258
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5259
ac_tool_warned=yes ;;
5267
if test -z "$CC"; then
5268
if test -n "$ac_tool_prefix"; then
5269
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5270
set dummy ${ac_tool_prefix}cc; ac_word=$2
5271
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5272
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5273
if test "${ac_cv_prog_CC+set}" = set; then
5274
echo $ECHO_N "(cached) $ECHO_C" >&6
5276
if test -n "$CC"; then
5277
ac_cv_prog_CC="$CC" # Let the user override the test.
5279
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5283
test -z "$as_dir" && as_dir=.
5284
for ac_exec_ext in '' $ac_executable_extensions; do
5285
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5286
ac_cv_prog_CC="${ac_tool_prefix}cc"
5287
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5297
if test -n "$CC"; then
5298
{ echo "$as_me:$LINENO: result: $CC" >&5
5299
echo "${ECHO_T}$CC" >&6; }
5301
{ echo "$as_me:$LINENO: result: no" >&5
5302
echo "${ECHO_T}no" >&6; }
5308
if test -z "$CC"; then
5309
# Extract the first word of "cc", so it can be a program name with args.
5310
set dummy cc; ac_word=$2
5311
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5312
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5313
if test "${ac_cv_prog_CC+set}" = set; then
5314
echo $ECHO_N "(cached) $ECHO_C" >&6
5316
if test -n "$CC"; then
5317
ac_cv_prog_CC="$CC" # Let the user override the test.
5320
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5324
test -z "$as_dir" && as_dir=.
5325
for ac_exec_ext in '' $ac_executable_extensions; do
5326
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5327
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5328
ac_prog_rejected=yes
5332
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5339
if test $ac_prog_rejected = yes; then
5340
# We found a bogon in the path, so make sure we never use it.
5341
set dummy $ac_cv_prog_CC
5343
if test $# != 0; then
5344
# We chose a different compiler from the bogus one.
5345
# However, it has the same basename, so the bogon will be chosen
5346
# first if we set CC to just the basename; use the full file name.
5348
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5354
if test -n "$CC"; then
5355
{ echo "$as_me:$LINENO: result: $CC" >&5
5356
echo "${ECHO_T}$CC" >&6; }
5358
{ echo "$as_me:$LINENO: result: no" >&5
5359
echo "${ECHO_T}no" >&6; }
5364
if test -z "$CC"; then
5365
if test -n "$ac_tool_prefix"; then
5366
for ac_prog in cl.exe
5368
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5369
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5370
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5371
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5372
if test "${ac_cv_prog_CC+set}" = set; then
5373
echo $ECHO_N "(cached) $ECHO_C" >&6
5375
if test -n "$CC"; then
5376
ac_cv_prog_CC="$CC" # Let the user override the test.
5378
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5382
test -z "$as_dir" && as_dir=.
5383
for ac_exec_ext in '' $ac_executable_extensions; do
5384
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5385
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5386
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5396
if test -n "$CC"; then
5397
{ echo "$as_me:$LINENO: result: $CC" >&5
5398
echo "${ECHO_T}$CC" >&6; }
5400
{ echo "$as_me:$LINENO: result: no" >&5
5401
echo "${ECHO_T}no" >&6; }
5405
test -n "$CC" && break
5408
if test -z "$CC"; then
5410
for ac_prog in cl.exe
5412
# Extract the first word of "$ac_prog", so it can be a program name with args.
5413
set dummy $ac_prog; ac_word=$2
5414
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5415
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5416
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5417
echo $ECHO_N "(cached) $ECHO_C" >&6
5419
if test -n "$ac_ct_CC"; then
5420
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5422
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5426
test -z "$as_dir" && as_dir=.
5427
for ac_exec_ext in '' $ac_executable_extensions; do
5428
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5429
ac_cv_prog_ac_ct_CC="$ac_prog"
5430
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5439
ac_ct_CC=$ac_cv_prog_ac_ct_CC
5440
if test -n "$ac_ct_CC"; then
5441
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5442
echo "${ECHO_T}$ac_ct_CC" >&6; }
5444
{ echo "$as_me:$LINENO: result: no" >&5
5445
echo "${ECHO_T}no" >&6; }
5449
test -n "$ac_ct_CC" && break
5452
if test "x$ac_ct_CC" = x; then
5455
case $cross_compiling:$ac_tool_warned in
5457
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5458
whose name does not start with the host triplet. If you think this
5459
configuration is useful to you, please write to autoconf@gnu.org." >&5
5460
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5461
whose name does not start with the host triplet. If you think this
5462
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5463
ac_tool_warned=yes ;;
5472
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5473
See \`config.log' for more details." >&5
5474
echo "$as_me: error: no acceptable C compiler found in \$PATH
5475
See \`config.log' for more details." >&2;}
5476
{ (exit 1); exit 1; }; }
5478
# Provide some information about the compiler.
5479
echo "$as_me:$LINENO: checking for C compiler version" >&5
5480
ac_compiler=`set X $ac_compile; echo $2`
5481
{ (ac_try="$ac_compiler --version >&5"
5483
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5484
*) ac_try_echo=$ac_try;;
5486
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5487
(eval "$ac_compiler --version >&5") 2>&5
5489
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490
(exit $ac_status); }
5491
{ (ac_try="$ac_compiler -v >&5"
5493
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5494
*) ac_try_echo=$ac_try;;
5496
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5497
(eval "$ac_compiler -v >&5") 2>&5
5499
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500
(exit $ac_status); }
5501
{ (ac_try="$ac_compiler -V >&5"
5503
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5504
*) ac_try_echo=$ac_try;;
5506
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5507
(eval "$ac_compiler -V >&5") 2>&5
5509
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510
(exit $ac_status); }
5512
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5513
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5514
if test "${ac_cv_c_compiler_gnu+set}" = set; then
5515
echo $ECHO_N "(cached) $ECHO_C" >&6
5926
5517
cat >conftest.$ac_ext <<_ACEOF
5927
5518
/* confdefs.h. */
5929
5520
cat confdefs.h >>conftest.$ac_ext
5930
5521
cat >>conftest.$ac_ext <<_ACEOF
5931
5522
/* end confdefs.h. */
5535
rm -f conftest.$ac_objext
5536
if { (ac_try="$ac_compile"
5538
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5539
*) ac_try_echo=$ac_try;;
5541
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5542
(eval "$ac_compile") 2>conftest.er1
5544
grep -v '^ *+' conftest.er1 >conftest.err
5546
cat conftest.err >&5
5547
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548
(exit $ac_status); } && {
5549
test -z "$ac_c_werror_flag" ||
5550
test ! -s conftest.err
5551
} && test -s conftest.$ac_objext; then
5554
echo "$as_me: failed program was:" >&5
5555
sed 's/^/| /' conftest.$ac_ext >&5
5560
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5561
ac_cv_c_compiler_gnu=$ac_compiler_gnu
5564
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5565
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5566
GCC=`test $ac_compiler_gnu = yes && echo yes`
5567
ac_test_CFLAGS=${CFLAGS+set}
5568
ac_save_CFLAGS=$CFLAGS
5569
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5570
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5571
if test "${ac_cv_prog_cc_g+set}" = set; then
5572
echo $ECHO_N "(cached) $ECHO_C" >&6
5574
ac_save_c_werror_flag=$ac_c_werror_flag
5575
ac_c_werror_flag=yes
5578
cat >conftest.$ac_ext <<_ACEOF
5581
cat confdefs.h >>conftest.$ac_ext
5582
cat >>conftest.$ac_ext <<_ACEOF
5583
/* end confdefs.h. */
5593
rm -f conftest.$ac_objext
5594
if { (ac_try="$ac_compile"
5596
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5597
*) ac_try_echo=$ac_try;;
5599
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5600
(eval "$ac_compile") 2>conftest.er1
5602
grep -v '^ *+' conftest.er1 >conftest.err
5604
cat conftest.err >&5
5605
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606
(exit $ac_status); } && {
5607
test -z "$ac_c_werror_flag" ||
5608
test ! -s conftest.err
5609
} && test -s conftest.$ac_objext; then
5612
echo "$as_me: failed program was:" >&5
5613
sed 's/^/| /' conftest.$ac_ext >&5
5616
cat >conftest.$ac_ext <<_ACEOF
5619
cat confdefs.h >>conftest.$ac_ext
5620
cat >>conftest.$ac_ext <<_ACEOF
5621
/* end confdefs.h. */
5631
rm -f conftest.$ac_objext
5632
if { (ac_try="$ac_compile"
5634
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5635
*) ac_try_echo=$ac_try;;
5637
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5638
(eval "$ac_compile") 2>conftest.er1
5640
grep -v '^ *+' conftest.er1 >conftest.err
5642
cat conftest.err >&5
5643
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644
(exit $ac_status); } && {
5645
test -z "$ac_c_werror_flag" ||
5646
test ! -s conftest.err
5647
} && test -s conftest.$ac_objext; then
5650
echo "$as_me: failed program was:" >&5
5651
sed 's/^/| /' conftest.$ac_ext >&5
5653
ac_c_werror_flag=$ac_save_c_werror_flag
5655
cat >conftest.$ac_ext <<_ACEOF
5658
cat confdefs.h >>conftest.$ac_ext
5659
cat >>conftest.$ac_ext <<_ACEOF
5660
/* end confdefs.h. */
5670
rm -f conftest.$ac_objext
5671
if { (ac_try="$ac_compile"
5673
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5674
*) ac_try_echo=$ac_try;;
5676
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5677
(eval "$ac_compile") 2>conftest.er1
5679
grep -v '^ *+' conftest.er1 >conftest.err
5681
cat conftest.err >&5
5682
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683
(exit $ac_status); } && {
5684
test -z "$ac_c_werror_flag" ||
5685
test ! -s conftest.err
5686
} && test -s conftest.$ac_objext; then
5689
echo "$as_me: failed program was:" >&5
5690
sed 's/^/| /' conftest.$ac_ext >&5
5695
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5698
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5701
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5702
ac_c_werror_flag=$ac_save_c_werror_flag
5704
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5705
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5706
if test "$ac_test_CFLAGS" = set; then
5707
CFLAGS=$ac_save_CFLAGS
5708
elif test $ac_cv_prog_cc_g = yes; then
5709
if test "$GCC" = yes; then
5715
if test "$GCC" = yes; then
5721
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5722
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5723
if test "${ac_cv_prog_cc_c89+set}" = set; then
5724
echo $ECHO_N "(cached) $ECHO_C" >&6
5726
ac_cv_prog_cc_c89=no
5728
cat >conftest.$ac_ext <<_ACEOF
5731
cat confdefs.h >>conftest.$ac_ext
5732
cat >>conftest.$ac_ext <<_ACEOF
5733
/* end confdefs.h. */
5932
5734
#include <stdarg.h>
5933
5735
#include <stdio.h>
5934
5736
#include <sys/types.h>
5996
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5814
rm -f core conftest.err conftest.$ac_objext
5815
test "x$ac_cv_prog_cc_c89" != "xno" && break
6002
if test -z "$am_cv_prog_cc_stdc"; then
6003
{ echo "$as_me:$LINENO: result: none needed" >&5
6004
echo "${ECHO_T}none needed" >&6; }
6006
{ echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
6007
echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6; }
6009
case "x$am_cv_prog_cc_stdc" in
6011
*) CC="$CC $am_cv_prog_cc_stdc" ;;
5817
rm -f conftest.$ac_ext
5822
case "x$ac_cv_prog_cc_c89" in
5824
{ echo "$as_me:$LINENO: result: none needed" >&5
5825
echo "${ECHO_T}none needed" >&6; } ;;
5827
{ echo "$as_me:$LINENO: result: unsupported" >&5
5828
echo "${ECHO_T}unsupported" >&6; } ;;
5830
CC="$CC $ac_cv_prog_cc_c89"
5831
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5832
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5837
ac_cpp='$CXXCPP $CPPFLAGS'
5838
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5839
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5840
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5842
depcc="$CC" am_compiler_list=
5844
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5845
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5846
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5847
echo $ECHO_N "(cached) $ECHO_C" >&6
5849
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5850
# We make a subdir and do the tests there. Otherwise we can end up
5851
# making bogus files that we don't know about and never remove. For
5852
# instance it was reported that on HP-UX the gcc test will end up
5853
# making a dummy file named `D' -- because `-MD' means `put the output
5856
# Copy depcomp to subdir because otherwise we won't find it if we're
5857
# using a relative directory.
5858
cp "$am_depcomp" conftest.dir
5860
# We will build objects and dependencies in a subdirectory because
5861
# it helps to detect inapplicable dependency modes. For instance
5862
# both Tru64's cc and ICC support -MD to output dependencies as a
5863
# side effect of compilation, but ICC will put the dependencies in
5864
# the current directory while Tru64 will put them in the object
5868
am_cv_CC_dependencies_compiler_type=none
5869
if test "$am_compiler_list" = ""; then
5870
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5872
for depmode in $am_compiler_list; do
5873
# Setup a source with many dependencies, because some compilers
5874
# like to wrap large dependency lists on column 80 (with \), and
5875
# we should not choose a depcomp mode which is confused by this.
5877
# We need to recreate these files for each test, as the compiler may
5878
# overwrite some of them when testing with obscure command lines.
5879
# This happens at least with the AIX C compiler.
5881
for i in 1 2 3 4 5 6; do
5882
echo '#include "conftst'$i'.h"' >> sub/conftest.c
5883
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5884
# Solaris 8's {/usr,}/bin/sh.
5885
touch sub/conftst$i.h
5887
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5891
# after this tag, mechanisms are not by side-effect, so they'll
5892
# only be used when explicitly requested
5893
if test "x$enable_dependency_tracking" = xyes; then
5901
# We check with `-c' and `-o' for the sake of the "dashmstdout"
5902
# mode. It turns out that the SunPro C++ compiler does not properly
5903
# handle `-M -o', and we need to detect this.
5904
if depmode=$depmode \
5905
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5906
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5907
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5908
>/dev/null 2>conftest.err &&
5909
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5910
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5911
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5912
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5913
# icc doesn't choke on unknown options, it will just issue warnings
5914
# or remarks (even with -Werror). So we grep stderr for any message
5915
# that says an option was ignored or not supported.
5916
# When given -MP, icc 7.0 and 7.1 complain thusly:
5917
# icc: Command line warning: ignoring option '-M'; no argument required
5918
# The diagnosis changed in icc 8.0:
5919
# icc: Command line remark: option '-MP' not supported
5920
if (grep 'ignoring option' conftest.err ||
5921
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5922
am_cv_CC_dependencies_compiler_type=$depmode
5931
am_cv_CC_dependencies_compiler_type=none
5935
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5936
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5937
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5940
test "x$enable_dependency_tracking" != xno \
5941
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5943
am__fastdepCC_FALSE='#'
5945
am__fastdepCC_TRUE='#'
5946
am__fastdepCC_FALSE=
5951
am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
6014
5953
# By default we simply use the C compiler to build assembly code.
6017
# Set ASFLAGS if not already set.
6018
: ${CCASFLAGS='$(CFLAGS)'}
5955
test "${CCAS+set}" = set || CCAS=$CC
5956
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
5960
depcc="$CCAS" am_compiler_list=
5962
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5963
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5964
if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
5965
echo $ECHO_N "(cached) $ECHO_C" >&6
5967
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5968
# We make a subdir and do the tests there. Otherwise we can end up
5969
# making bogus files that we don't know about and never remove. For
5970
# instance it was reported that on HP-UX the gcc test will end up
5971
# making a dummy file named `D' -- because `-MD' means `put the output
5974
# Copy depcomp to subdir because otherwise we won't find it if we're
5975
# using a relative directory.
5976
cp "$am_depcomp" conftest.dir
5978
# We will build objects and dependencies in a subdirectory because
5979
# it helps to detect inapplicable dependency modes. For instance
5980
# both Tru64's cc and ICC support -MD to output dependencies as a
5981
# side effect of compilation, but ICC will put the dependencies in
5982
# the current directory while Tru64 will put them in the object
5986
am_cv_CCAS_dependencies_compiler_type=none
5987
if test "$am_compiler_list" = ""; then
5988
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5990
for depmode in $am_compiler_list; do
5991
# Setup a source with many dependencies, because some compilers
5992
# like to wrap large dependency lists on column 80 (with \), and
5993
# we should not choose a depcomp mode which is confused by this.
5995
# We need to recreate these files for each test, as the compiler may
5996
# overwrite some of them when testing with obscure command lines.
5997
# This happens at least with the AIX C compiler.
5999
for i in 1 2 3 4 5 6; do
6000
echo '#include "conftst'$i'.h"' >> sub/conftest.c
6001
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6002
# Solaris 8's {/usr,}/bin/sh.
6003
touch sub/conftst$i.h
6005
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6009
# after this tag, mechanisms are not by side-effect, so they'll
6010
# only be used when explicitly requested
6011
if test "x$enable_dependency_tracking" = xyes; then
6019
# We check with `-c' and `-o' for the sake of the "dashmstdout"
6020
# mode. It turns out that the SunPro C++ compiler does not properly
6021
# handle `-M -o', and we need to detect this.
6022
if depmode=$depmode \
6023
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6024
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6025
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6026
>/dev/null 2>conftest.err &&
6027
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6028
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6029
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6030
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6031
# icc doesn't choke on unknown options, it will just issue warnings
6032
# or remarks (even with -Werror). So we grep stderr for any message
6033
# that says an option was ignored or not supported.
6034
# When given -MP, icc 7.0 and 7.1 complain thusly:
6035
# icc: Command line warning: ignoring option '-M'; no argument required
6036
# The diagnosis changed in icc 8.0:
6037
# icc: Command line remark: option '-MP' not supported
6038
if (grep 'ignoring option' conftest.err ||
6039
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6040
am_cv_CCAS_dependencies_compiler_type=$depmode
6049
am_cv_CCAS_dependencies_compiler_type=none
6053
{ echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
6054
echo "${ECHO_T}$am_cv_CCAS_dependencies_compiler_type" >&6; }
6055
CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
6058
test "x$enable_dependency_tracking" != xno \
6059
&& test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
6060
am__fastdepCCAS_TRUE=
6061
am__fastdepCCAS_FALSE='#'
6063
am__fastdepCCAS_TRUE='#'
6064
am__fastdepCCAS_FALSE=
6633
ac_cpp='$CPP $CPPFLAGS'
6634
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6635
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6636
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6637
if test -n "$ac_tool_prefix"; then
6638
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6639
set dummy ${ac_tool_prefix}gcc; ac_word=$2
6640
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6641
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6642
if test "${ac_cv_prog_CC+set}" = set; then
6643
echo $ECHO_N "(cached) $ECHO_C" >&6
6645
if test -n "$CC"; then
6646
ac_cv_prog_CC="$CC" # Let the user override the test.
6648
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6652
test -z "$as_dir" && as_dir=.
6653
for ac_exec_ext in '' $ac_executable_extensions; do
6654
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6655
ac_cv_prog_CC="${ac_tool_prefix}gcc"
6656
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6666
if test -n "$CC"; then
6667
{ echo "$as_me:$LINENO: result: $CC" >&5
6668
echo "${ECHO_T}$CC" >&6; }
6670
{ echo "$as_me:$LINENO: result: no" >&5
6671
echo "${ECHO_T}no" >&6; }
6676
if test -z "$ac_cv_prog_CC"; then
6678
# Extract the first word of "gcc", so it can be a program name with args.
6679
set dummy gcc; ac_word=$2
6680
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6681
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6682
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
6683
echo $ECHO_N "(cached) $ECHO_C" >&6
6685
if test -n "$ac_ct_CC"; then
6686
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6688
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6692
test -z "$as_dir" && as_dir=.
6693
for ac_exec_ext in '' $ac_executable_extensions; do
6694
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6695
ac_cv_prog_ac_ct_CC="gcc"
6696
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6705
ac_ct_CC=$ac_cv_prog_ac_ct_CC
6706
if test -n "$ac_ct_CC"; then
6707
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
6708
echo "${ECHO_T}$ac_ct_CC" >&6; }
6710
{ echo "$as_me:$LINENO: result: no" >&5
6711
echo "${ECHO_T}no" >&6; }
6714
if test "x$ac_ct_CC" = x; then
6717
case $cross_compiling:$ac_tool_warned in
6719
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6720
whose name does not start with the host triplet. If you think this
6721
configuration is useful to you, please write to autoconf@gnu.org." >&5
6722
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6723
whose name does not start with the host triplet. If you think this
6724
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6725
ac_tool_warned=yes ;;
6733
if test -z "$CC"; then
6734
if test -n "$ac_tool_prefix"; then
6735
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6736
set dummy ${ac_tool_prefix}cc; ac_word=$2
6737
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6738
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6739
if test "${ac_cv_prog_CC+set}" = set; then
6740
echo $ECHO_N "(cached) $ECHO_C" >&6
6742
if test -n "$CC"; then
6743
ac_cv_prog_CC="$CC" # Let the user override the test.
6745
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6749
test -z "$as_dir" && as_dir=.
6750
for ac_exec_ext in '' $ac_executable_extensions; do
6751
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6752
ac_cv_prog_CC="${ac_tool_prefix}cc"
6753
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6763
if test -n "$CC"; then
6764
{ echo "$as_me:$LINENO: result: $CC" >&5
6765
echo "${ECHO_T}$CC" >&6; }
6767
{ echo "$as_me:$LINENO: result: no" >&5
6768
echo "${ECHO_T}no" >&6; }
6774
if test -z "$CC"; then
6775
# Extract the first word of "cc", so it can be a program name with args.
6776
set dummy cc; ac_word=$2
6777
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6778
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6779
if test "${ac_cv_prog_CC+set}" = set; then
6780
echo $ECHO_N "(cached) $ECHO_C" >&6
6782
if test -n "$CC"; then
6783
ac_cv_prog_CC="$CC" # Let the user override the test.
6786
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6790
test -z "$as_dir" && as_dir=.
6791
for ac_exec_ext in '' $ac_executable_extensions; do
6792
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6793
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6794
ac_prog_rejected=yes
6798
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6805
if test $ac_prog_rejected = yes; then
6806
# We found a bogon in the path, so make sure we never use it.
6807
set dummy $ac_cv_prog_CC
6809
if test $# != 0; then
6810
# We chose a different compiler from the bogus one.
6811
# However, it has the same basename, so the bogon will be chosen
6812
# first if we set CC to just the basename; use the full file name.
6814
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6820
if test -n "$CC"; then
6821
{ echo "$as_me:$LINENO: result: $CC" >&5
6822
echo "${ECHO_T}$CC" >&6; }
6824
{ echo "$as_me:$LINENO: result: no" >&5
6825
echo "${ECHO_T}no" >&6; }
6830
if test -z "$CC"; then
6831
if test -n "$ac_tool_prefix"; then
6832
for ac_prog in cl.exe
6834
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6835
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6836
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6837
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6838
if test "${ac_cv_prog_CC+set}" = set; then
6839
echo $ECHO_N "(cached) $ECHO_C" >&6
6841
if test -n "$CC"; then
6842
ac_cv_prog_CC="$CC" # Let the user override the test.
6844
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6848
test -z "$as_dir" && as_dir=.
6849
for ac_exec_ext in '' $ac_executable_extensions; do
6850
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6851
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6852
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6862
if test -n "$CC"; then
6863
{ echo "$as_me:$LINENO: result: $CC" >&5
6864
echo "${ECHO_T}$CC" >&6; }
6866
{ echo "$as_me:$LINENO: result: no" >&5
6867
echo "${ECHO_T}no" >&6; }
6871
test -n "$CC" && break
6874
if test -z "$CC"; then
6876
for ac_prog in cl.exe
6878
# Extract the first word of "$ac_prog", so it can be a program name with args.
6879
set dummy $ac_prog; ac_word=$2
6880
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6881
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6882
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
6883
echo $ECHO_N "(cached) $ECHO_C" >&6
6885
if test -n "$ac_ct_CC"; then
6886
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6888
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6892
test -z "$as_dir" && as_dir=.
6893
for ac_exec_ext in '' $ac_executable_extensions; do
6894
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6895
ac_cv_prog_ac_ct_CC="$ac_prog"
6896
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6905
ac_ct_CC=$ac_cv_prog_ac_ct_CC
6906
if test -n "$ac_ct_CC"; then
6907
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
6908
echo "${ECHO_T}$ac_ct_CC" >&6; }
6910
{ echo "$as_me:$LINENO: result: no" >&5
6911
echo "${ECHO_T}no" >&6; }
6915
test -n "$ac_ct_CC" && break
6918
if test "x$ac_ct_CC" = x; then
6921
case $cross_compiling:$ac_tool_warned in
6923
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6924
whose name does not start with the host triplet. If you think this
6925
configuration is useful to you, please write to autoconf@gnu.org." >&5
6926
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6927
whose name does not start with the host triplet. If you think this
6928
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6929
ac_tool_warned=yes ;;
6938
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
6939
See \`config.log' for more details." >&5
6940
echo "$as_me: error: no acceptable C compiler found in \$PATH
6941
See \`config.log' for more details." >&2;}
6942
{ (exit 1); exit 1; }; }
6944
# Provide some information about the compiler.
6945
echo "$as_me:$LINENO: checking for C compiler version" >&5
6946
ac_compiler=`set X $ac_compile; echo $2`
6947
{ (ac_try="$ac_compiler --version >&5"
6949
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6950
*) ac_try_echo=$ac_try;;
6952
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6953
(eval "$ac_compiler --version >&5") 2>&5
6955
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956
(exit $ac_status); }
6957
{ (ac_try="$ac_compiler -v >&5"
6959
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6960
*) ac_try_echo=$ac_try;;
6962
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6963
(eval "$ac_compiler -v >&5") 2>&5
6965
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966
(exit $ac_status); }
6967
{ (ac_try="$ac_compiler -V >&5"
6969
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6970
*) ac_try_echo=$ac_try;;
6972
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6973
(eval "$ac_compiler -V >&5") 2>&5
6975
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6976
(exit $ac_status); }
6978
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
6979
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
6980
if test "${ac_cv_c_compiler_gnu+set}" = set; then
6981
echo $ECHO_N "(cached) $ECHO_C" >&6
6983
cat >conftest.$ac_ext <<_ACEOF
6986
cat confdefs.h >>conftest.$ac_ext
6987
cat >>conftest.$ac_ext <<_ACEOF
6988
/* end confdefs.h. */
7001
rm -f conftest.$ac_objext
7002
if { (ac_try="$ac_compile"
7004
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7005
*) ac_try_echo=$ac_try;;
7007
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7008
(eval "$ac_compile") 2>conftest.er1
7010
grep -v '^ *+' conftest.er1 >conftest.err
7012
cat conftest.err >&5
7013
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014
(exit $ac_status); } && {
7015
test -z "$ac_c_werror_flag" ||
7016
test ! -s conftest.err
7017
} && test -s conftest.$ac_objext; then
7020
echo "$as_me: failed program was:" >&5
7021
sed 's/^/| /' conftest.$ac_ext >&5
7026
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7027
ac_cv_c_compiler_gnu=$ac_compiler_gnu
7030
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
7031
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
7032
GCC=`test $ac_compiler_gnu = yes && echo yes`
7033
ac_test_CFLAGS=${CFLAGS+set}
7034
ac_save_CFLAGS=$CFLAGS
7035
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
7036
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
7037
if test "${ac_cv_prog_cc_g+set}" = set; then
7038
echo $ECHO_N "(cached) $ECHO_C" >&6
7040
ac_save_c_werror_flag=$ac_c_werror_flag
7041
ac_c_werror_flag=yes
7044
cat >conftest.$ac_ext <<_ACEOF
7047
cat confdefs.h >>conftest.$ac_ext
7048
cat >>conftest.$ac_ext <<_ACEOF
7049
/* end confdefs.h. */
7059
rm -f conftest.$ac_objext
7060
if { (ac_try="$ac_compile"
7062
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7063
*) ac_try_echo=$ac_try;;
7065
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7066
(eval "$ac_compile") 2>conftest.er1
7068
grep -v '^ *+' conftest.er1 >conftest.err
7070
cat conftest.err >&5
7071
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072
(exit $ac_status); } && {
7073
test -z "$ac_c_werror_flag" ||
7074
test ! -s conftest.err
7075
} && test -s conftest.$ac_objext; then
7078
echo "$as_me: failed program was:" >&5
7079
sed 's/^/| /' conftest.$ac_ext >&5
7082
cat >conftest.$ac_ext <<_ACEOF
7085
cat confdefs.h >>conftest.$ac_ext
7086
cat >>conftest.$ac_ext <<_ACEOF
7087
/* end confdefs.h. */
7097
rm -f conftest.$ac_objext
7098
if { (ac_try="$ac_compile"
7100
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7101
*) ac_try_echo=$ac_try;;
7103
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7104
(eval "$ac_compile") 2>conftest.er1
7106
grep -v '^ *+' conftest.er1 >conftest.err
7108
cat conftest.err >&5
7109
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7110
(exit $ac_status); } && {
7111
test -z "$ac_c_werror_flag" ||
7112
test ! -s conftest.err
7113
} && test -s conftest.$ac_objext; then
7116
echo "$as_me: failed program was:" >&5
7117
sed 's/^/| /' conftest.$ac_ext >&5
7119
ac_c_werror_flag=$ac_save_c_werror_flag
7121
cat >conftest.$ac_ext <<_ACEOF
7124
cat confdefs.h >>conftest.$ac_ext
7125
cat >>conftest.$ac_ext <<_ACEOF
7126
/* end confdefs.h. */
7136
rm -f conftest.$ac_objext
7137
if { (ac_try="$ac_compile"
7139
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7140
*) ac_try_echo=$ac_try;;
7142
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7143
(eval "$ac_compile") 2>conftest.er1
7145
grep -v '^ *+' conftest.er1 >conftest.err
7147
cat conftest.err >&5
7148
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149
(exit $ac_status); } && {
7150
test -z "$ac_c_werror_flag" ||
7151
test ! -s conftest.err
7152
} && test -s conftest.$ac_objext; then
7155
echo "$as_me: failed program was:" >&5
7156
sed 's/^/| /' conftest.$ac_ext >&5
7161
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7164
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7167
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7168
ac_c_werror_flag=$ac_save_c_werror_flag
7170
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
7171
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
7172
if test "$ac_test_CFLAGS" = set; then
7173
CFLAGS=$ac_save_CFLAGS
7174
elif test $ac_cv_prog_cc_g = yes; then
7175
if test "$GCC" = yes; then
7181
if test "$GCC" = yes; then
7187
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
7188
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
7189
if test "${ac_cv_prog_cc_c89+set}" = set; then
7190
echo $ECHO_N "(cached) $ECHO_C" >&6
7192
ac_cv_prog_cc_c89=no
7194
cat >conftest.$ac_ext <<_ACEOF
7197
cat confdefs.h >>conftest.$ac_ext
7198
cat >>conftest.$ac_ext <<_ACEOF
7199
/* end confdefs.h. */
7202
#include <sys/types.h>
7203
#include <sys/stat.h>
7204
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7205
struct buf { int x; };
7206
FILE * (*rcsopen) (struct buf *, struct stat *, int);
7207
static char *e (p, i)
7213
static char *f (char * (*g) (char **, int), char **p, ...)
7218
s = g (p, va_arg (v,int));
7223
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7224
function prototypes and stuff, but not '\xHH' hex character constants.
7225
These don't provoke an error unfortunately, instead are silently treated
7226
as 'x'. The following induces an error, until -std is added to get
7227
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7228
array size at least. It's necessary to write '\x00'==0 to get something
7229
that's true only with -std. */
7230
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7232
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7233
inside strings and character constants. */
7235
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7237
int test (int i, double x);
7238
struct s1 {int (*f) (int a);};
7239
struct s2 {int (*f) (double a);};
7240
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7246
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7251
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7252
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7254
CC="$ac_save_CC $ac_arg"
7255
rm -f conftest.$ac_objext
7256
if { (ac_try="$ac_compile"
7258
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7259
*) ac_try_echo=$ac_try;;
7261
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7262
(eval "$ac_compile") 2>conftest.er1
7264
grep -v '^ *+' conftest.er1 >conftest.err
7266
cat conftest.err >&5
7267
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7268
(exit $ac_status); } && {
7269
test -z "$ac_c_werror_flag" ||
7270
test ! -s conftest.err
7271
} && test -s conftest.$ac_objext; then
7272
ac_cv_prog_cc_c89=$ac_arg
7274
echo "$as_me: failed program was:" >&5
7275
sed 's/^/| /' conftest.$ac_ext >&5
7280
rm -f core conftest.err conftest.$ac_objext
7281
test "x$ac_cv_prog_cc_c89" != "xno" && break
7283
rm -f conftest.$ac_ext
7288
case "x$ac_cv_prog_cc_c89" in
7290
{ echo "$as_me:$LINENO: result: none needed" >&5
7291
echo "${ECHO_T}none needed" >&6; } ;;
7293
{ echo "$as_me:$LINENO: result: unsupported" >&5
7294
echo "${ECHO_T}unsupported" >&6; } ;;
7296
CC="$CC $ac_cv_prog_cc_c89"
7297
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
7298
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
7303
ac_cpp='$CXXCPP $CPPFLAGS'
7304
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7305
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7306
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7308
depcc="$CC" am_compiler_list=
7310
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7311
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
7312
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
7313
echo $ECHO_N "(cached) $ECHO_C" >&6
7315
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7316
# We make a subdir and do the tests there. Otherwise we can end up
7317
# making bogus files that we don't know about and never remove. For
7318
# instance it was reported that on HP-UX the gcc test will end up
7319
# making a dummy file named `D' -- because `-MD' means `put the output
7322
# Copy depcomp to subdir because otherwise we won't find it if we're
7323
# using a relative directory.
7324
cp "$am_depcomp" conftest.dir
7326
# We will build objects and dependencies in a subdirectory because
7327
# it helps to detect inapplicable dependency modes. For instance
7328
# both Tru64's cc and ICC support -MD to output dependencies as a
7329
# side effect of compilation, but ICC will put the dependencies in
7330
# the current directory while Tru64 will put them in the object
7334
am_cv_CC_dependencies_compiler_type=none
7335
if test "$am_compiler_list" = ""; then
7336
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7338
for depmode in $am_compiler_list; do
7339
# Setup a source with many dependencies, because some compilers
7340
# like to wrap large dependency lists on column 80 (with \), and
7341
# we should not choose a depcomp mode which is confused by this.
7343
# We need to recreate these files for each test, as the compiler may
7344
# overwrite some of them when testing with obscure command lines.
7345
# This happens at least with the AIX C compiler.
7347
for i in 1 2 3 4 5 6; do
7348
echo '#include "conftst'$i'.h"' >> sub/conftest.c
7349
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7350
# Solaris 8's {/usr,}/bin/sh.
7351
touch sub/conftst$i.h
7353
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7357
# after this tag, mechanisms are not by side-effect, so they'll
7358
# only be used when explicitly requested
7359
if test "x$enable_dependency_tracking" = xyes; then
7367
# We check with `-c' and `-o' for the sake of the "dashmstdout"
7368
# mode. It turns out that the SunPro C++ compiler does not properly
7369
# handle `-M -o', and we need to detect this.
7370
if depmode=$depmode \
7371
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7372
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7373
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7374
>/dev/null 2>conftest.err &&
7375
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7376
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7377
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7378
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7379
# icc doesn't choke on unknown options, it will just issue warnings
7380
# or remarks (even with -Werror). So we grep stderr for any message
7381
# that says an option was ignored or not supported.
7382
# When given -MP, icc 7.0 and 7.1 complain thusly:
7383
# icc: Command line warning: ignoring option '-M'; no argument required
7384
# The diagnosis changed in icc 8.0:
7385
# icc: Command line remark: option '-MP' not supported
7386
if (grep 'ignoring option' conftest.err ||
7387
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7388
am_cv_CC_dependencies_compiler_type=$depmode
7397
am_cv_CC_dependencies_compiler_type=none
7401
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
7402
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
7403
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7406
test "x$enable_dependency_tracking" != xno \
7407
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7409
am__fastdepCC_FALSE='#'
7411
am__fastdepCC_TRUE='#'
7412
am__fastdepCC_FALSE=
7416
if test "x$CC" != xcc; then
7417
{ echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
7418
echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
7420
{ echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
7421
echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
7423
set dummy $CC; ac_cc=`echo $2 |
7424
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7425
if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
7426
echo $ECHO_N "(cached) $ECHO_C" >&6
7428
cat >conftest.$ac_ext <<_ACEOF
7431
cat confdefs.h >>conftest.$ac_ext
7432
cat >>conftest.$ac_ext <<_ACEOF
7433
/* end confdefs.h. */
7443
# Make sure it works both with $CC and with simple cc.
7444
# We do the test twice because some compilers refuse to overwrite an
7445
# existing .o file with -o, though they will create one.
7446
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7448
if { (case "(($ac_try" in
7449
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7450
*) ac_try_echo=$ac_try;;
7452
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7453
(eval "$ac_try") 2>&5
7455
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456
(exit $ac_status); } &&
7457
test -f conftest2.$ac_objext && { (case "(($ac_try" in
7458
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7459
*) ac_try_echo=$ac_try;;
7461
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7462
(eval "$ac_try") 2>&5
7464
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7465
(exit $ac_status); };
7467
eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7468
if test "x$CC" != xcc; then
7469
# Test first that cc exists at all.
7470
if { ac_try='cc -c conftest.$ac_ext >&5'
7471
{ (case "(($ac_try" in
7472
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7473
*) ac_try_echo=$ac_try;;
7475
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7476
(eval "$ac_try") 2>&5
7478
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7479
(exit $ac_status); }; }; then
7480
ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7482
if { (case "(($ac_try" in
7483
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7484
*) ac_try_echo=$ac_try;;
7486
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7487
(eval "$ac_try") 2>&5
7489
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7490
(exit $ac_status); } &&
7491
test -f conftest2.$ac_objext && { (case "(($ac_try" in
7492
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7493
*) ac_try_echo=$ac_try;;
7495
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7496
(eval "$ac_try") 2>&5
7498
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7499
(exit $ac_status); };
7504
# cc exists but doesn't like -o.
7505
eval ac_cv_prog_cc_${ac_cc}_c_o=no
7510
eval ac_cv_prog_cc_${ac_cc}_c_o=no
7512
rm -f core conftest*
7515
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7516
{ echo "$as_me:$LINENO: result: yes" >&5
7517
echo "${ECHO_T}yes" >&6; }
7519
{ echo "$as_me:$LINENO: result: no" >&5
7520
echo "${ECHO_T}no" >&6; }
7522
cat >>confdefs.h <<\_ACEOF
7523
#define NO_MINUS_C_MINUS_O 1
7528
# FIXME: we rely on the cache variable name because
7529
# there is no other way.
7531
ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7532
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
7533
# Losing compiler, so override with the script.
7534
# FIXME: It is wrong to rewrite CC.
7535
# But if we don't then we get into trouble of one sort or another.
7536
# A longer-term fix would be to have automake use am__CC in this case,
7537
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7538
CC="$am_aux_dir/compile $CC"
7542
{ echo "$as_me:$LINENO: Testing -Wno-pointer-sign" >&5
7543
echo "$as_me: Testing -Wno-pointer-sign" >&6;}
7544
if test "$GCC" = "yes"; then
7545
# Enable some warnings from gcc.
7548
ac_cpp='$CPP $CPPFLAGS'
7549
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7550
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7551
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7553
# -Wno-pointer-sign is probably new in gcc 4.0; certainly it isn't accepted
7555
ink_svd_CFLAGS="$CFLAGS"
7556
CFLAGS="-Wno-pointer-sign $CFLAGS"
7557
cat >conftest.$ac_ext <<_ACEOF
7560
cat confdefs.h >>conftest.$ac_ext
7561
cat >>conftest.$ac_ext <<_ACEOF
7562
/* end confdefs.h. */
7572
rm -f conftest.$ac_objext
7573
if { (ac_try="$ac_compile"
7575
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7576
*) ac_try_echo=$ac_try;;
7578
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7579
(eval "$ac_compile") 2>conftest.er1
7581
grep -v '^ *+' conftest.er1 >conftest.err
7583
cat conftest.err >&5
7584
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585
(exit $ac_status); } && {
7586
test -z "$ac_c_werror_flag" ||
7587
test ! -s conftest.err
7588
} && test -s conftest.$ac_objext; then
7589
{ echo "$as_me:$LINENO: compiler supports -Wno-pointer-sign" >&5
7590
echo "$as_me: compiler supports -Wno-pointer-sign" >&6;}
7592
echo "$as_me: failed program was:" >&5
7593
sed 's/^/| /' conftest.$ac_ext >&5
7595
CFLAGS="$ink_svd_CFLAGS"
7598
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7599
CFLAGS="-Wall -Wformat-security -W -D_FORTIFY_SOURCE=2 $CFLAGS"
7601
ac_cpp='$CXXCPP $CPPFLAGS'
7602
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7603
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7604
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6585
7608
ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
6587
7610
if test -n "$ac_tool_prefix"; then
12967
# Check whether --enable-poppler-cairo was given.
12968
if test "${enable_poppler_cairo+set}" = set; then
12969
enableval=$enable_poppler_cairo; enable_poppler_cairo=$enableval
12971
enable_poppler_cairo=yes
12978
{ echo "$as_me:$LINENO: checking for POPPLER" >&5
12979
echo $ECHO_N "checking for POPPLER... $ECHO_C" >&6; }
12981
if test -n "$PKG_CONFIG"; then
12982
if test -n "$POPPLER_CFLAGS"; then
12983
pkg_cv_POPPLER_CFLAGS="$POPPLER_CFLAGS"
12985
if test -n "$PKG_CONFIG" && \
12986
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"poppler >= 0.5.9\"") >&5
12987
($PKG_CONFIG --exists --print-errors "poppler >= 0.5.9") 2>&5
12989
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990
(exit $ac_status); }; then
12991
pkg_cv_POPPLER_CFLAGS=`$PKG_CONFIG --cflags "poppler >= 0.5.9" 2>/dev/null`
12999
if test -n "$PKG_CONFIG"; then
13000
if test -n "$POPPLER_LIBS"; then
13001
pkg_cv_POPPLER_LIBS="$POPPLER_LIBS"
13003
if test -n "$PKG_CONFIG" && \
13004
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"poppler >= 0.5.9\"") >&5
13005
($PKG_CONFIG --exists --print-errors "poppler >= 0.5.9") 2>&5
13007
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008
(exit $ac_status); }; then
13009
pkg_cv_POPPLER_LIBS=`$PKG_CONFIG --libs "poppler >= 0.5.9" 2>/dev/null`
13020
if test $pkg_failed = yes; then
13022
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13023
_pkg_short_errors_supported=yes
13025
_pkg_short_errors_supported=no
13027
if test $_pkg_short_errors_supported = yes; then
13028
POPPLER_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "poppler >= 0.5.9"`
13030
POPPLER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "poppler >= 0.5.9"`
13032
# Put the nasty error message in config.log where it belongs
13033
echo "$POPPLER_PKG_ERRORS" >&5
13035
{ echo "$as_me:$LINENO: result: no" >&5
13036
echo "${ECHO_T}no" >&6; }
13038
elif test $pkg_failed = untried; then
13041
POPPLER_CFLAGS=$pkg_cv_POPPLER_CFLAGS
13042
POPPLER_LIBS=$pkg_cv_POPPLER_LIBS
13043
{ echo "$as_me:$LINENO: result: yes" >&5
13044
echo "${ECHO_T}yes" >&6; }
13048
if test "x$poppler" = "xyes"; then
13049
POPPLER_LIBS="-lpoppler "
13052
{ echo "$as_me:$LINENO: checking for POPPLER_GLIB" >&5
13053
echo $ECHO_N "checking for POPPLER_GLIB... $ECHO_C" >&6; }
13055
if test -n "$PKG_CONFIG"; then
13056
if test -n "$POPPLER_GLIB_CFLAGS"; then
13057
pkg_cv_POPPLER_GLIB_CFLAGS="$POPPLER_GLIB_CFLAGS"
13059
if test -n "$PKG_CONFIG" && \
13060
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"poppler-glib >= 0.5.9\"") >&5
13061
($PKG_CONFIG --exists --print-errors "poppler-glib >= 0.5.9") 2>&5
13063
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064
(exit $ac_status); }; then
13065
pkg_cv_POPPLER_GLIB_CFLAGS=`$PKG_CONFIG --cflags "poppler-glib >= 0.5.9" 2>/dev/null`
13073
if test -n "$PKG_CONFIG"; then
13074
if test -n "$POPPLER_GLIB_LIBS"; then
13075
pkg_cv_POPPLER_GLIB_LIBS="$POPPLER_GLIB_LIBS"
13077
if test -n "$PKG_CONFIG" && \
13078
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"poppler-glib >= 0.5.9\"") >&5
13079
($PKG_CONFIG --exists --print-errors "poppler-glib >= 0.5.9") 2>&5
13081
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13082
(exit $ac_status); }; then
13083
pkg_cv_POPPLER_GLIB_LIBS=`$PKG_CONFIG --libs "poppler-glib >= 0.5.9" 2>/dev/null`
13094
if test $pkg_failed = yes; then
13096
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13097
_pkg_short_errors_supported=yes
13099
_pkg_short_errors_supported=no
13101
if test $_pkg_short_errors_supported = yes; then
13102
POPPLER_GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "poppler-glib >= 0.5.9"`
13104
POPPLER_GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "poppler-glib >= 0.5.9"`
13106
# Put the nasty error message in config.log where it belongs
13107
echo "$POPPLER_GLIB_PKG_ERRORS" >&5
13109
{ echo "$as_me:$LINENO: result: no" >&5
13110
echo "${ECHO_T}no" >&6; }
13112
elif test $pkg_failed = untried; then
13115
POPPLER_GLIB_CFLAGS=$pkg_cv_POPPLER_GLIB_CFLAGS
13116
POPPLER_GLIB_LIBS=$pkg_cv_POPPLER_GLIB_LIBS
13117
{ echo "$as_me:$LINENO: result: yes" >&5
13118
echo "${ECHO_T}yes" >&6; }
13121
if test "x$poppler_glib" = "xyes"; then
13124
{ echo "$as_me:$LINENO: checking for CAIRO_SVG" >&5
13125
echo $ECHO_N "checking for CAIRO_SVG... $ECHO_C" >&6; }
13127
if test -n "$PKG_CONFIG"; then
13128
if test -n "$CAIRO_SVG_CFLAGS"; then
13129
pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
13131
if test -n "$PKG_CONFIG" && \
13132
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo-svg\"") >&5
13133
($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
13135
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13136
(exit $ac_status); }; then
13137
pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
13145
if test -n "$PKG_CONFIG"; then
13146
if test -n "$CAIRO_SVG_LIBS"; then
13147
pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
13149
if test -n "$PKG_CONFIG" && \
13150
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo-svg\"") >&5
13151
($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
13153
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154
(exit $ac_status); }; then
13155
pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
13166
if test $pkg_failed = yes; then
13168
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13169
_pkg_short_errors_supported=yes
13171
_pkg_short_errors_supported=no
13173
if test $_pkg_short_errors_supported = yes; then
13174
CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo-svg"`
13176
CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo-svg"`
13178
# Put the nasty error message in config.log where it belongs
13179
echo "$CAIRO_SVG_PKG_ERRORS" >&5
13181
{ echo "$as_me:$LINENO: result: no" >&5
13182
echo "${ECHO_T}no" >&6; }
13184
elif test $pkg_failed = untried; then
13187
CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
13188
CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
13189
{ echo "$as_me:$LINENO: result: yes" >&5
13190
echo "${ECHO_T}yes" >&6; }
13193
if test "x$cairo_svg" = "xyes"; then
13194
POPPLER_LIBS="$POPPLER_LIBS -lpoppler-glib "
13197
if test "x$enable_poppler_cairo" = "xyes"; then
13200
{ echo "$as_me:$LINENO: checking for POPPLER_CAIRO" >&5
13201
echo $ECHO_N "checking for POPPLER_CAIRO... $ECHO_C" >&6; }
13203
if test -n "$PKG_CONFIG"; then
13204
if test -n "$POPPLER_CAIRO_CFLAGS"; then
13205
pkg_cv_POPPLER_CAIRO_CFLAGS="$POPPLER_CAIRO_CFLAGS"
13207
if test -n "$PKG_CONFIG" && \
13208
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"poppler-cairo >= 0.5.9\"") >&5
13209
($PKG_CONFIG --exists --print-errors "poppler-cairo >= 0.5.9") 2>&5
13211
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212
(exit $ac_status); }; then
13213
pkg_cv_POPPLER_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "poppler-cairo >= 0.5.9" 2>/dev/null`
13221
if test -n "$PKG_CONFIG"; then
13222
if test -n "$POPPLER_CAIRO_LIBS"; then
13223
pkg_cv_POPPLER_CAIRO_LIBS="$POPPLER_CAIRO_LIBS"
13225
if test -n "$PKG_CONFIG" && \
13226
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"poppler-cairo >= 0.5.9\"") >&5
13227
($PKG_CONFIG --exists --print-errors "poppler-cairo >= 0.5.9") 2>&5
13229
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230
(exit $ac_status); }; then
13231
pkg_cv_POPPLER_CAIRO_LIBS=`$PKG_CONFIG --libs "poppler-cairo >= 0.5.9" 2>/dev/null`
13242
if test $pkg_failed = yes; then
13244
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13245
_pkg_short_errors_supported=yes
13247
_pkg_short_errors_supported=no
13249
if test $_pkg_short_errors_supported = yes; then
13250
POPPLER_CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "poppler-cairo >= 0.5.9"`
13252
POPPLER_CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "poppler-cairo >= 0.5.9"`
13254
# Put the nasty error message in config.log where it belongs
13255
echo "$POPPLER_CAIRO_PKG_ERRORS" >&5
13257
{ echo "$as_me:$LINENO: result: no" >&5
13258
echo "${ECHO_T}no" >&6; }
13260
elif test $pkg_failed = untried; then
13263
POPPLER_CAIRO_CFLAGS=$pkg_cv_POPPLER_CAIRO_CFLAGS
13264
POPPLER_CAIRO_LIBS=$pkg_cv_POPPLER_CAIRO_LIBS
13265
{ echo "$as_me:$LINENO: result: yes" >&5
13266
echo "${ECHO_T}yes" >&6; }
13269
if test "x$poppler_glib" = "xyes" -a "x$poppler_cairo" = "xyes" -a \
13270
"x$cairo_svg" = "xno"
13272
POPPLER_LIBS="$POPPLER_LIBS -lpoppler-glib "
13277
if test "x$poppler" = "xyes"; then
13278
LIBS="$LIBS $POPPLER_LIBS"
13280
cat >>confdefs.h <<\_ACEOF
13281
#define HAVE_POPPLER 1
13285
if test "x$poppler_cairo" = "xyes" -a "x$poppler_glib" = "xyes"; then
13287
cat >>confdefs.h <<\_ACEOF
13288
#define HAVE_POPPLER_CAIRO 1
13292
if test "x$poppler_glib" = "xyes" -a "x$cairo_svg" = "xyes"; then
13294
cat >>confdefs.h <<\_ACEOF
13295
#define HAVE_POPPLER_GLIB 1
11967
13303
with_inkboard="no"
11968
13304
with_inkboard_ssl="no"
13549
{ echo "$as_me:$LINENO: checking for LIBWPG" >&5
13550
echo $ECHO_N "checking for LIBWPG... $ECHO_C" >&6; }
13552
if test -n "$PKG_CONFIG"; then
13553
if test -n "$LIBWPG_CFLAGS"; then
13554
pkg_cv_LIBWPG_CFLAGS="$LIBWPG_CFLAGS"
13556
if test -n "$PKG_CONFIG" && \
13557
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libwpg-0.1 libwpg-stream-0.1\"") >&5
13558
($PKG_CONFIG --exists --print-errors "libwpg-0.1 libwpg-stream-0.1") 2>&5
13560
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13561
(exit $ac_status); }; then
13562
pkg_cv_LIBWPG_CFLAGS=`$PKG_CONFIG --cflags "libwpg-0.1 libwpg-stream-0.1" 2>/dev/null`
13570
if test -n "$PKG_CONFIG"; then
13571
if test -n "$LIBWPG_LIBS"; then
13572
pkg_cv_LIBWPG_LIBS="$LIBWPG_LIBS"
13574
if test -n "$PKG_CONFIG" && \
13575
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libwpg-0.1 libwpg-stream-0.1\"") >&5
13576
($PKG_CONFIG --exists --print-errors "libwpg-0.1 libwpg-stream-0.1") 2>&5
13578
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13579
(exit $ac_status); }; then
13580
pkg_cv_LIBWPG_LIBS=`$PKG_CONFIG --libs "libwpg-0.1 libwpg-stream-0.1" 2>/dev/null`
13591
if test $pkg_failed = yes; then
13593
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13594
_pkg_short_errors_supported=yes
13596
_pkg_short_errors_supported=no
13598
if test $_pkg_short_errors_supported = yes; then
13599
LIBWPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libwpg-0.1 libwpg-stream-0.1"`
13601
LIBWPG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libwpg-0.1 libwpg-stream-0.1"`
13603
# Put the nasty error message in config.log where it belongs
13604
echo "$LIBWPG_PKG_ERRORS" >&5
13606
{ echo "$as_me:$LINENO: result: no" >&5
13607
echo "${ECHO_T}no" >&6; }
13609
elif test $pkg_failed = untried; then
13612
LIBWPG_CFLAGS=$pkg_cv_LIBWPG_CFLAGS
13613
LIBWPG_LIBS=$pkg_cv_LIBWPG_LIBS
13614
{ echo "$as_me:$LINENO: result: yes" >&5
13615
echo "${ECHO_T}yes" >&6; }
13618
if test "x$with_libwpg" = "xyes"; then
13620
cat >>confdefs.h <<\_ACEOF
13621
#define WITH_LIBWPG 1
13625
if test "x$with_libwpg" = "xyes"; then
13627
WITH_LIBWPG_FALSE='#'
13629
WITH_LIBWPG_TRUE='#'
13638
{ echo "$as_me:$LINENO: checking for InitializeMagick in -lMagick++" >&5
13639
echo $ECHO_N "checking for InitializeMagick in -lMagick++... $ECHO_C" >&6; }
13640
if test "${ac_cv_lib_Magickpp_InitializeMagick+set}" = set; then
13641
echo $ECHO_N "(cached) $ECHO_C" >&6
13643
ac_check_lib_save_LIBS=$LIBS
13644
LIBS="-lMagick++ -llcms -lfreetype -ljpeg -lfontconfig -lXext -lSM -lICE -lX11 -lz -lpthread -lm -lpthread $LIBS"
13645
cat >conftest.$ac_ext <<_ACEOF
13648
cat confdefs.h >>conftest.$ac_ext
13649
cat >>conftest.$ac_ext <<_ACEOF
13650
/* end confdefs.h. */
13652
/* Override any GCC internal prototype to avoid an error.
13653
Use char because int might match the return type of a GCC
13654
builtin and then its argument prototype would still apply. */
13658
char InitializeMagick ();
13662
return InitializeMagick ();
13667
rm -f conftest.$ac_objext conftest$ac_exeext
13668
if { (ac_try="$ac_link"
13669
case "(($ac_try" in
13670
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13671
*) ac_try_echo=$ac_try;;
13673
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13674
(eval "$ac_link") 2>conftest.er1
13676
grep -v '^ *+' conftest.er1 >conftest.err
13678
cat conftest.err >&5
13679
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680
(exit $ac_status); } && {
13681
test -z "$ac_cxx_werror_flag" ||
13682
test ! -s conftest.err
13683
} && test -s conftest$ac_exeext &&
13684
$as_test_x conftest$ac_exeext; then
13685
ac_cv_lib_Magickpp_InitializeMagick=yes
13687
echo "$as_me: failed program was:" >&5
13688
sed 's/^/| /' conftest.$ac_ext >&5
13690
ac_cv_lib_Magickpp_InitializeMagick=no
13693
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13694
conftest$ac_exeext conftest.$ac_ext
13695
LIBS=$ac_check_lib_save_LIBS
13697
{ echo "$as_me:$LINENO: result: $ac_cv_lib_Magickpp_InitializeMagick" >&5
13698
echo "${ECHO_T}$ac_cv_lib_Magickpp_InitializeMagick" >&6; }
13699
if test $ac_cv_lib_Magickpp_InitializeMagick = yes; then
13700
if test "${ac_cv_header_Magickpp_h+set}" = set; then
13701
{ echo "$as_me:$LINENO: checking for Magick++.h" >&5
13702
echo $ECHO_N "checking for Magick++.h... $ECHO_C" >&6; }
13703
if test "${ac_cv_header_Magickpp_h+set}" = set; then
13704
echo $ECHO_N "(cached) $ECHO_C" >&6
13706
{ echo "$as_me:$LINENO: result: $ac_cv_header_Magickpp_h" >&5
13707
echo "${ECHO_T}$ac_cv_header_Magickpp_h" >&6; }
13709
# Is the header compilable?
13710
{ echo "$as_me:$LINENO: checking Magick++.h usability" >&5
13711
echo $ECHO_N "checking Magick++.h usability... $ECHO_C" >&6; }
13712
cat >conftest.$ac_ext <<_ACEOF
13715
cat confdefs.h >>conftest.$ac_ext
13716
cat >>conftest.$ac_ext <<_ACEOF
13717
/* end confdefs.h. */
13718
$ac_includes_default
13719
#include <Magick++.h>
13721
rm -f conftest.$ac_objext
13722
if { (ac_try="$ac_compile"
13723
case "(($ac_try" in
13724
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13725
*) ac_try_echo=$ac_try;;
13727
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13728
(eval "$ac_compile") 2>conftest.er1
13730
grep -v '^ *+' conftest.er1 >conftest.err
13732
cat conftest.err >&5
13733
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734
(exit $ac_status); } && {
13735
test -z "$ac_cxx_werror_flag" ||
13736
test ! -s conftest.err
13737
} && test -s conftest.$ac_objext; then
13738
ac_header_compiler=yes
13740
echo "$as_me: failed program was:" >&5
13741
sed 's/^/| /' conftest.$ac_ext >&5
13743
ac_header_compiler=no
13746
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13747
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13748
echo "${ECHO_T}$ac_header_compiler" >&6; }
13750
# Is the header present?
13751
{ echo "$as_me:$LINENO: checking Magick++.h presence" >&5
13752
echo $ECHO_N "checking Magick++.h presence... $ECHO_C" >&6; }
13753
cat >conftest.$ac_ext <<_ACEOF
13756
cat confdefs.h >>conftest.$ac_ext
13757
cat >>conftest.$ac_ext <<_ACEOF
13758
/* end confdefs.h. */
13759
#include <Magick++.h>
13761
if { (ac_try="$ac_cpp conftest.$ac_ext"
13762
case "(($ac_try" in
13763
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13764
*) ac_try_echo=$ac_try;;
13766
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13767
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13769
grep -v '^ *+' conftest.er1 >conftest.err
13771
cat conftest.err >&5
13772
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13773
(exit $ac_status); } >/dev/null && {
13774
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13775
test ! -s conftest.err
13777
ac_header_preproc=yes
13779
echo "$as_me: failed program was:" >&5
13780
sed 's/^/| /' conftest.$ac_ext >&5
13782
ac_header_preproc=no
13785
rm -f conftest.err conftest.$ac_ext
13786
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13787
echo "${ECHO_T}$ac_header_preproc" >&6; }
13789
# So? What about this header?
13790
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
13792
{ echo "$as_me:$LINENO: WARNING: Magick++.h: accepted by the compiler, rejected by the preprocessor!" >&5
13793
echo "$as_me: WARNING: Magick++.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13794
{ echo "$as_me:$LINENO: WARNING: Magick++.h: proceeding with the compiler's result" >&5
13795
echo "$as_me: WARNING: Magick++.h: proceeding with the compiler's result" >&2;}
13796
ac_header_preproc=yes
13799
{ echo "$as_me:$LINENO: WARNING: Magick++.h: present but cannot be compiled" >&5
13800
echo "$as_me: WARNING: Magick++.h: present but cannot be compiled" >&2;}
13801
{ echo "$as_me:$LINENO: WARNING: Magick++.h: check for missing prerequisite headers?" >&5
13802
echo "$as_me: WARNING: Magick++.h: check for missing prerequisite headers?" >&2;}
13803
{ echo "$as_me:$LINENO: WARNING: Magick++.h: see the Autoconf documentation" >&5
13804
echo "$as_me: WARNING: Magick++.h: see the Autoconf documentation" >&2;}
13805
{ echo "$as_me:$LINENO: WARNING: Magick++.h: section \"Present But Cannot Be Compiled\"" >&5
13806
echo "$as_me: WARNING: Magick++.h: section \"Present But Cannot Be Compiled\"" >&2;}
13807
{ echo "$as_me:$LINENO: WARNING: Magick++.h: proceeding with the preprocessor's result" >&5
13808
echo "$as_me: WARNING: Magick++.h: proceeding with the preprocessor's result" >&2;}
13809
{ echo "$as_me:$LINENO: WARNING: Magick++.h: in the future, the compiler will take precedence" >&5
13810
echo "$as_me: WARNING: Magick++.h: in the future, the compiler will take precedence" >&2;}
13814
{ echo "$as_me:$LINENO: checking for Magick++.h" >&5
13815
echo $ECHO_N "checking for Magick++.h... $ECHO_C" >&6; }
13816
if test "${ac_cv_header_Magickpp_h+set}" = set; then
13817
echo $ECHO_N "(cached) $ECHO_C" >&6
13819
ac_cv_header_Magickpp_h=$ac_header_preproc
13821
{ echo "$as_me:$LINENO: result: $ac_cv_header_Magickpp_h" >&5
13822
echo "${ECHO_T}$ac_cv_header_Magickpp_h" >&6; }
13825
if test $ac_cv_header_Magickpp_h = yes; then
13837
if test "x$magick_ok" = "xyes"; then
13838
# Extract the first word of "Magick++-config", so it can be a program name with args.
13839
set dummy Magick++-config; ac_word=$2
13840
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13841
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13842
if test "${ac_cv_prog_MAGICKPP_CONFIG+set}" = set; then
13843
echo $ECHO_N "(cached) $ECHO_C" >&6
13845
if test -n "$MAGICKPP_CONFIG"; then
13846
ac_cv_prog_MAGICKPP_CONFIG="$MAGICKPP_CONFIG" # Let the user override the test.
13848
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13849
for as_dir in $PATH
13852
test -z "$as_dir" && as_dir=.
13853
for ac_exec_ext in '' $ac_executable_extensions; do
13854
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13855
ac_cv_prog_MAGICKPP_CONFIG="yes"
13856
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13863
test -z "$ac_cv_prog_MAGICKPP_CONFIG" && ac_cv_prog_MAGICKPP_CONFIG="no"
13866
MAGICKPP_CONFIG=$ac_cv_prog_MAGICKPP_CONFIG
13867
if test -n "$MAGICKPP_CONFIG"; then
13868
{ echo "$as_me:$LINENO: result: $MAGICKPP_CONFIG" >&5
13869
echo "${ECHO_T}$MAGICKPP_CONFIG" >&6; }
13871
{ echo "$as_me:$LINENO: result: no" >&5
13872
echo "${ECHO_T}no" >&6; }
13876
if test "x$MAGICKPP_CONFIG" = "xyes"; then
13877
IMAGEMAGICK_LIBS=`Magick++-config --libs`
13880
cat >>confdefs.h <<\_ACEOF
13881
#define WITH_IMAGE_MAGICK 1
13887
if test "x$magick_ok" = "xyes"; then
13888
USE_IMAGE_MAGICK_TRUE=
13889
USE_IMAGE_MAGICK_FALSE='#'
13891
USE_IMAGE_MAGICK_TRUE='#'
13892
USE_IMAGE_MAGICK_FALSE=
12213
13897
if test $cc_vers_major -gt 3; then
12214
13898
min_sigc_version=2.0.12
14014
# Check for Apple Mac OS X Carbon framework
14016
{ echo "$as_me:$LINENO: checking for Mac OS X Carbon support" >&5
14017
echo $ECHO_N "checking for Mac OS X Carbon support... $ECHO_C" >&6; }
14018
cat >conftest.$ac_ext <<_ACEOF
14021
cat confdefs.h >>conftest.$ac_ext
14022
cat >>conftest.$ac_ext <<_ACEOF
14023
/* end confdefs.h. */
14025
#include <Carbon/Carbon.h>
14026
#include <CoreServices/CoreServices.h>
14029
if { (ac_try="$ac_cpp conftest.$ac_ext"
14030
case "(($ac_try" in
14031
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14032
*) ac_try_echo=$ac_try;;
14034
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14035
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14037
grep -v '^ *+' conftest.er1 >conftest.err
14039
cat conftest.err >&5
14040
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14041
(exit $ac_status); } >/dev/null && {
14042
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
14043
test ! -s conftest.err
14047
echo "$as_me: failed program was:" >&5
14048
sed 's/^/| /' conftest.$ac_ext >&5
14053
rm -f conftest.err conftest.$ac_ext
14054
{ echo "$as_me:$LINENO: result: $carbon_ok" >&5
14055
echo "${ECHO_T}$carbon_ok" >&6; }
14056
if test "x$carbon_ok" = "xyes"; then
14058
cat >>confdefs.h <<\_ACEOF
14059
#define HAVE_CARBON 1
14062
CARBON_LDFLAGS="-framework Carbon"
14065
if test "x$carbon_ok" = "xyes"; then
14067
HAVE_CARBON_FALSE='#'
14069
HAVE_CARBON_TRUE='#'
14074
# Check for some boost header files
14076
for ac_header in boost/concept_check.hpp
14078
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14079
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14080
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14081
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14082
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14083
echo $ECHO_N "(cached) $ECHO_C" >&6
14085
ac_res=`eval echo '${'$as_ac_Header'}'`
14086
{ echo "$as_me:$LINENO: result: $ac_res" >&5
14087
echo "${ECHO_T}$ac_res" >&6; }
14089
# Is the header compilable?
14090
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14091
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14092
cat >conftest.$ac_ext <<_ACEOF
14095
cat confdefs.h >>conftest.$ac_ext
14096
cat >>conftest.$ac_ext <<_ACEOF
14097
/* end confdefs.h. */
14098
$ac_includes_default
14099
#include <$ac_header>
14101
rm -f conftest.$ac_objext
14102
if { (ac_try="$ac_compile"
14103
case "(($ac_try" in
14104
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14105
*) ac_try_echo=$ac_try;;
14107
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14108
(eval "$ac_compile") 2>conftest.er1
14110
grep -v '^ *+' conftest.er1 >conftest.err
14112
cat conftest.err >&5
14113
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114
(exit $ac_status); } && {
14115
test -z "$ac_cxx_werror_flag" ||
14116
test ! -s conftest.err
14117
} && test -s conftest.$ac_objext; then
14118
ac_header_compiler=yes
14120
echo "$as_me: failed program was:" >&5
14121
sed 's/^/| /' conftest.$ac_ext >&5
14123
ac_header_compiler=no
14126
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14127
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14128
echo "${ECHO_T}$ac_header_compiler" >&6; }
14130
# Is the header present?
14131
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14132
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14133
cat >conftest.$ac_ext <<_ACEOF
14136
cat confdefs.h >>conftest.$ac_ext
14137
cat >>conftest.$ac_ext <<_ACEOF
14138
/* end confdefs.h. */
14139
#include <$ac_header>
14141
if { (ac_try="$ac_cpp conftest.$ac_ext"
14142
case "(($ac_try" in
14143
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14144
*) ac_try_echo=$ac_try;;
14146
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14147
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14149
grep -v '^ *+' conftest.er1 >conftest.err
14151
cat conftest.err >&5
14152
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14153
(exit $ac_status); } >/dev/null && {
14154
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
14155
test ! -s conftest.err
14157
ac_header_preproc=yes
14159
echo "$as_me: failed program was:" >&5
14160
sed 's/^/| /' conftest.$ac_ext >&5
14162
ac_header_preproc=no
14165
rm -f conftest.err conftest.$ac_ext
14166
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14167
echo "${ECHO_T}$ac_header_preproc" >&6; }
14169
# So? What about this header?
14170
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
14172
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14173
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14174
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14175
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14176
ac_header_preproc=yes
14179
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14180
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14181
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14182
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14183
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14184
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14185
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14186
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14187
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14188
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14189
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14190
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14194
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14195
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14196
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14197
echo $ECHO_N "(cached) $ECHO_C" >&6
14199
eval "$as_ac_Header=\$ac_header_preproc"
14201
ac_res=`eval echo '${'$as_ac_Header'}'`
14202
{ echo "$as_me:$LINENO: result: $ac_res" >&5
14203
echo "${ECHO_T}$ac_res" >&6; }
14206
if test `eval echo '${'$as_ac_Header'}'` = yes; then
14207
cat >>confdefs.h <<_ACEOF
14208
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14212
{ { echo "$as_me:$LINENO: error: You need the boost package (e.g. libboost-dev)" >&5
14213
echo "$as_me: error: You need the boost package (e.g. libboost-dev)" >&2;}
14214
{ (exit 1); exit 1; }; }
12331
14221
pkg_failed=no
12332
14222
{ echo "$as_me:$LINENO: checking for CAIRO_PDF" >&5