4103
4299
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4104
4300
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4105
as_fn_error "no acceptable C compiler found in \$PATH
4106
See \`config.log' for more details." "$LINENO" 5; }
4108
# Provide some information about the compiler.
4109
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4112
for ac_option in --version -v -V -qversion; do
4113
{ { ac_try="$ac_compiler $ac_option >&5"
4115
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4116
*) ac_try_echo=$ac_try;;
4118
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4119
$as_echo "$ac_try_echo"; } >&5
4120
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
4122
if test -s conftest.err; then
4124
... rest of stderr output deleted ...
4125
10q' conftest.err >conftest.er1
4126
cat conftest.er1 >&5
4128
rm -f conftest.er1 conftest.err
4129
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4130
test $ac_status = 0; }
4133
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4134
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4135
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4136
$as_echo_n "(cached) " >&6
4138
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4139
/* end confdefs.h. */
4152
if ac_fn_c_try_compile "$LINENO"; then :
4157
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4158
ac_cv_c_compiler_gnu=$ac_compiler_gnu
4161
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4162
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4163
if test $ac_compiler_gnu = yes; then
4168
ac_test_CFLAGS=${CFLAGS+set}
4169
ac_save_CFLAGS=$CFLAGS
4170
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4171
$as_echo_n "checking whether $CC accepts -g... " >&6; }
4172
if test "${ac_cv_prog_cc_g+set}" = set; then :
4173
$as_echo_n "(cached) " >&6
4175
ac_save_c_werror_flag=$ac_c_werror_flag
4176
ac_c_werror_flag=yes
4179
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4180
/* end confdefs.h. */
4190
if ac_fn_c_try_compile "$LINENO"; then :
4194
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4195
/* end confdefs.h. */
4205
if ac_fn_c_try_compile "$LINENO"; then :
4208
ac_c_werror_flag=$ac_save_c_werror_flag
4210
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4211
/* end confdefs.h. */
4221
if ac_fn_c_try_compile "$LINENO"; then :
4224
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4226
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4228
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4229
ac_c_werror_flag=$ac_save_c_werror_flag
4231
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4232
$as_echo "$ac_cv_prog_cc_g" >&6; }
4233
if test "$ac_test_CFLAGS" = set; then
4234
CFLAGS=$ac_save_CFLAGS
4235
elif test $ac_cv_prog_cc_g = yes; then
4236
if test "$GCC" = yes; then
4242
if test "$GCC" = yes; then
4248
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4249
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4250
if test "${ac_cv_prog_cc_c89+set}" = set; then :
4251
$as_echo_n "(cached) " >&6
4253
ac_cv_prog_cc_c89=no
4255
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4256
/* end confdefs.h. */
4259
#include <sys/types.h>
4260
#include <sys/stat.h>
4261
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4262
struct buf { int x; };
4263
FILE * (*rcsopen) (struct buf *, struct stat *, int);
4264
static char *e (p, i)
4270
static char *f (char * (*g) (char **, int), char **p, ...)
4275
s = g (p, va_arg (v,int));
4280
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4281
function prototypes and stuff, but not '\xHH' hex character constants.
4282
These don't provoke an error unfortunately, instead are silently treated
4283
as 'x'. The following induces an error, until -std is added to get
4284
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4285
array size at least. It's necessary to write '\x00'==0 to get something
4286
that's true only with -std. */
4287
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4289
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4290
inside strings and character constants. */
4292
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4294
int test (int i, double x);
4295
struct s1 {int (*f) (int a);};
4296
struct s2 {int (*f) (double a);};
4297
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4303
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4308
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4309
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4311
CC="$ac_save_CC $ac_arg"
4312
if ac_fn_c_try_compile "$LINENO"; then :
4313
ac_cv_prog_cc_c89=$ac_arg
4315
rm -f core conftest.err conftest.$ac_objext
4316
test "x$ac_cv_prog_cc_c89" != "xno" && break
4318
rm -f conftest.$ac_ext
4323
case "x$ac_cv_prog_cc_c89" in
4325
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4326
$as_echo "none needed" >&6; } ;;
4328
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4329
$as_echo "unsupported" >&6; } ;;
4331
CC="$CC $ac_cv_prog_cc_c89"
4332
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4333
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4335
if test "x$ac_cv_prog_cc_c89" != xno; then :
4340
ac_cpp='$CPP $CPPFLAGS'
4341
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4342
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4343
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4345
depcc="$CC" am_compiler_list=
4347
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4348
$as_echo_n "checking dependency style of $depcc... " >&6; }
4349
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4350
$as_echo_n "(cached) " >&6
4352
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4353
# We make a subdir and do the tests there. Otherwise we can end up
4354
# making bogus files that we don't know about and never remove. For
4355
# instance it was reported that on HP-UX the gcc test will end up
4356
# making a dummy file named `D' -- because `-MD' means `put the output
4359
# Copy depcomp to subdir because otherwise we won't find it if we're
4360
# using a relative directory.
4361
cp "$am_depcomp" conftest.dir
4363
# We will build objects and dependencies in a subdirectory because
4364
# it helps to detect inapplicable dependency modes. For instance
4365
# both Tru64's cc and ICC support -MD to output dependencies as a
4366
# side effect of compilation, but ICC will put the dependencies in
4367
# the current directory while Tru64 will put them in the object
4371
am_cv_CC_dependencies_compiler_type=none
4372
if test "$am_compiler_list" = ""; then
4373
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4376
case " $depcc " in #(
4377
*\ -arch\ *\ -arch\ *) am__universal=true ;;
4380
for depmode in $am_compiler_list; do
4381
# Setup a source with many dependencies, because some compilers
4382
# like to wrap large dependency lists on column 80 (with \), and
4383
# we should not choose a depcomp mode which is confused by this.
4385
# We need to recreate these files for each test, as the compiler may
4386
# overwrite some of them when testing with obscure command lines.
4387
# This happens at least with the AIX C compiler.
4389
for i in 1 2 3 4 5 6; do
4390
echo '#include "conftst'$i'.h"' >> sub/conftest.c
4391
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4392
# Solaris 8's {/usr,}/bin/sh.
4393
touch sub/conftst$i.h
4395
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4397
# We check with `-c' and `-o' for the sake of the "dashmstdout"
4398
# mode. It turns out that the SunPro C++ compiler does not properly
4399
# handle `-M -o', and we need to detect this. Also, some Intel
4400
# versions had trouble with output in subdirs
4401
am__obj=sub/conftest.${OBJEXT-o}
4402
am__minus_obj="-o $am__obj"
4405
# This depmode causes a compiler race in universal mode.
4406
test "$am__universal" = false || continue
4409
# after this tag, mechanisms are not by side-effect, so they'll
4410
# only be used when explicitly requested
4411
if test "x$enable_dependency_tracking" = xyes; then
4417
msvisualcpp | msvcmsys)
4418
# This compiler won't grok `-c -o', but also, the minuso test has
4419
# not run yet. These depmodes are late enough in the game, and
4420
# so weak that their functioning should not be impacted.
4421
am__obj=conftest.${OBJEXT-o}
4426
if depmode=$depmode \
4427
source=sub/conftest.c object=$am__obj \
4428
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4429
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4430
>/dev/null 2>conftest.err &&
4431
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4432
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4433
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4434
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4435
# icc doesn't choke on unknown options, it will just issue warnings
4436
# or remarks (even with -Werror). So we grep stderr for any message
4437
# that says an option was ignored or not supported.
4438
# When given -MP, icc 7.0 and 7.1 complain thusly:
4439
# icc: Command line warning: ignoring option '-M'; no argument required
4440
# The diagnosis changed in icc 8.0:
4441
# icc: Command line remark: option '-MP' not supported
4442
if (grep 'ignoring option' conftest.err ||
4443
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4444
am_cv_CC_dependencies_compiler_type=$depmode
4453
am_cv_CC_dependencies_compiler_type=none
4457
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4458
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4459
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4462
test "x$enable_dependency_tracking" != xno \
4463
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4465
am__fastdepCC_FALSE='#'
4467
am__fastdepCC_TRUE='#'
4468
am__fastdepCC_FALSE=
4473
ac_cpp='$CPP $CPPFLAGS'
4474
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4475
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4476
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4477
if test -n "$ac_tool_prefix"; then
4478
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4479
set dummy ${ac_tool_prefix}gcc; ac_word=$2
4480
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4481
$as_echo_n "checking for $ac_word... " >&6; }
4482
if test "${ac_cv_prog_CC+set}" = set; then :
4483
$as_echo_n "(cached) " >&6
4485
if test -n "$CC"; then
4486
ac_cv_prog_CC="$CC" # Let the user override the test.
4488
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4492
test -z "$as_dir" && as_dir=.
4493
for ac_exec_ext in '' $ac_executable_extensions; do
4494
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4495
ac_cv_prog_CC="${ac_tool_prefix}gcc"
4496
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4506
if test -n "$CC"; then
4507
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4508
$as_echo "$CC" >&6; }
4510
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4511
$as_echo "no" >&6; }
4516
if test -z "$ac_cv_prog_CC"; then
4518
# Extract the first word of "gcc", so it can be a program name with args.
4519
set dummy gcc; ac_word=$2
4520
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4521
$as_echo_n "checking for $ac_word... " >&6; }
4522
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4523
$as_echo_n "(cached) " >&6
4525
if test -n "$ac_ct_CC"; then
4526
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4528
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4532
test -z "$as_dir" && as_dir=.
4533
for ac_exec_ext in '' $ac_executable_extensions; do
4534
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4535
ac_cv_prog_ac_ct_CC="gcc"
4536
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4545
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4546
if test -n "$ac_ct_CC"; then
4547
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4548
$as_echo "$ac_ct_CC" >&6; }
4550
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4551
$as_echo "no" >&6; }
4554
if test "x$ac_ct_CC" = x; then
4557
case $cross_compiling:$ac_tool_warned in
4559
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4560
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4561
ac_tool_warned=yes ;;
4569
if test -z "$CC"; then
4570
if test -n "$ac_tool_prefix"; then
4571
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4572
set dummy ${ac_tool_prefix}cc; ac_word=$2
4573
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4574
$as_echo_n "checking for $ac_word... " >&6; }
4575
if test "${ac_cv_prog_CC+set}" = set; then :
4576
$as_echo_n "(cached) " >&6
4578
if test -n "$CC"; then
4579
ac_cv_prog_CC="$CC" # Let the user override the test.
4581
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4585
test -z "$as_dir" && as_dir=.
4586
for ac_exec_ext in '' $ac_executable_extensions; do
4587
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4588
ac_cv_prog_CC="${ac_tool_prefix}cc"
4589
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4599
if test -n "$CC"; then
4600
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4601
$as_echo "$CC" >&6; }
4603
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4604
$as_echo "no" >&6; }
4610
if test -z "$CC"; then
4611
# Extract the first word of "cc", so it can be a program name with args.
4612
set dummy cc; ac_word=$2
4613
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4614
$as_echo_n "checking for $ac_word... " >&6; }
4615
if test "${ac_cv_prog_CC+set}" = set; then :
4616
$as_echo_n "(cached) " >&6
4618
if test -n "$CC"; then
4619
ac_cv_prog_CC="$CC" # Let the user override the test.
4622
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4626
test -z "$as_dir" && as_dir=.
4627
for ac_exec_ext in '' $ac_executable_extensions; do
4628
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4629
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4630
ac_prog_rejected=yes
4634
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4641
if test $ac_prog_rejected = yes; then
4642
# We found a bogon in the path, so make sure we never use it.
4643
set dummy $ac_cv_prog_CC
4645
if test $# != 0; then
4646
# We chose a different compiler from the bogus one.
4647
# However, it has the same basename, so the bogon will be chosen
4648
# first if we set CC to just the basename; use the full file name.
4650
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4656
if test -n "$CC"; then
4657
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4658
$as_echo "$CC" >&6; }
4660
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4661
$as_echo "no" >&6; }
4666
if test -z "$CC"; then
4667
if test -n "$ac_tool_prefix"; then
4668
for ac_prog in cl.exe
4670
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4671
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4672
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4673
$as_echo_n "checking for $ac_word... " >&6; }
4674
if test "${ac_cv_prog_CC+set}" = set; then :
4675
$as_echo_n "(cached) " >&6
4677
if test -n "$CC"; then
4678
ac_cv_prog_CC="$CC" # Let the user override the test.
4680
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4684
test -z "$as_dir" && as_dir=.
4685
for ac_exec_ext in '' $ac_executable_extensions; do
4686
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4687
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4688
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4698
if test -n "$CC"; then
4699
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4700
$as_echo "$CC" >&6; }
4702
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4703
$as_echo "no" >&6; }
4707
test -n "$CC" && break
4710
if test -z "$CC"; then
4712
for ac_prog in cl.exe
4714
# Extract the first word of "$ac_prog", so it can be a program name with args.
4715
set dummy $ac_prog; ac_word=$2
4716
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4717
$as_echo_n "checking for $ac_word... " >&6; }
4718
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4719
$as_echo_n "(cached) " >&6
4721
if test -n "$ac_ct_CC"; then
4722
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4724
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4728
test -z "$as_dir" && as_dir=.
4729
for ac_exec_ext in '' $ac_executable_extensions; do
4730
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4731
ac_cv_prog_ac_ct_CC="$ac_prog"
4732
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4741
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4742
if test -n "$ac_ct_CC"; then
4743
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4744
$as_echo "$ac_ct_CC" >&6; }
4746
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4747
$as_echo "no" >&6; }
4751
test -n "$ac_ct_CC" && break
4754
if test "x$ac_ct_CC" = x; then
4757
case $cross_compiling:$ac_tool_warned in
4759
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4760
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4761
ac_tool_warned=yes ;;
4770
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4771
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4772
as_fn_error "no acceptable C compiler found in \$PATH
4773
See \`config.log' for more details." "$LINENO" 5; }
4775
# Provide some information about the compiler.
4776
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4779
for ac_option in --version -v -V -qversion; do
4780
{ { ac_try="$ac_compiler $ac_option >&5"
4782
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4783
*) ac_try_echo=$ac_try;;
4785
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4786
$as_echo "$ac_try_echo"; } >&5
4787
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
4789
if test -s conftest.err; then
4791
... rest of stderr output deleted ...
4792
10q' conftest.err >conftest.er1
4793
cat conftest.er1 >&5
4795
rm -f conftest.er1 conftest.err
4796
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4797
test $ac_status = 0; }
4800
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4801
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4802
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4803
$as_echo_n "(cached) " >&6
4805
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4806
/* end confdefs.h. */
4819
if ac_fn_c_try_compile "$LINENO"; then :
4824
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4825
ac_cv_c_compiler_gnu=$ac_compiler_gnu
4828
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4829
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4830
if test $ac_compiler_gnu = yes; then
4835
ac_test_CFLAGS=${CFLAGS+set}
4836
ac_save_CFLAGS=$CFLAGS
4837
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4838
$as_echo_n "checking whether $CC accepts -g... " >&6; }
4839
if test "${ac_cv_prog_cc_g+set}" = set; then :
4840
$as_echo_n "(cached) " >&6
4842
ac_save_c_werror_flag=$ac_c_werror_flag
4843
ac_c_werror_flag=yes
4846
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4847
/* end confdefs.h. */
4857
if ac_fn_c_try_compile "$LINENO"; then :
4861
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4862
/* end confdefs.h. */
4872
if ac_fn_c_try_compile "$LINENO"; then :
4875
ac_c_werror_flag=$ac_save_c_werror_flag
4877
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4878
/* end confdefs.h. */
4888
if ac_fn_c_try_compile "$LINENO"; then :
4891
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4893
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4895
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4896
ac_c_werror_flag=$ac_save_c_werror_flag
4898
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4899
$as_echo "$ac_cv_prog_cc_g" >&6; }
4900
if test "$ac_test_CFLAGS" = set; then
4901
CFLAGS=$ac_save_CFLAGS
4902
elif test $ac_cv_prog_cc_g = yes; then
4903
if test "$GCC" = yes; then
4909
if test "$GCC" = yes; then
4915
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4916
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4917
if test "${ac_cv_prog_cc_c89+set}" = set; then :
4918
$as_echo_n "(cached) " >&6
4920
ac_cv_prog_cc_c89=no
4922
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4923
/* end confdefs.h. */
4926
#include <sys/types.h>
4927
#include <sys/stat.h>
4928
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4929
struct buf { int x; };
4930
FILE * (*rcsopen) (struct buf *, struct stat *, int);
4931
static char *e (p, i)
4937
static char *f (char * (*g) (char **, int), char **p, ...)
4942
s = g (p, va_arg (v,int));
4947
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4948
function prototypes and stuff, but not '\xHH' hex character constants.
4949
These don't provoke an error unfortunately, instead are silently treated
4950
as 'x'. The following induces an error, until -std is added to get
4951
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4952
array size at least. It's necessary to write '\x00'==0 to get something
4953
that's true only with -std. */
4954
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4956
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4957
inside strings and character constants. */
4959
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4961
int test (int i, double x);
4962
struct s1 {int (*f) (int a);};
4963
struct s2 {int (*f) (double a);};
4964
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4970
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4975
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4976
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4978
CC="$ac_save_CC $ac_arg"
4979
if ac_fn_c_try_compile "$LINENO"; then :
4980
ac_cv_prog_cc_c89=$ac_arg
4982
rm -f core conftest.err conftest.$ac_objext
4983
test "x$ac_cv_prog_cc_c89" != "xno" && break
4985
rm -f conftest.$ac_ext
4990
case "x$ac_cv_prog_cc_c89" in
4992
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4993
$as_echo "none needed" >&6; } ;;
4995
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4996
$as_echo "unsupported" >&6; } ;;
4998
CC="$CC $ac_cv_prog_cc_c89"
4999
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5000
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5002
if test "x$ac_cv_prog_cc_c89" != xno; then :
5007
ac_cpp='$CPP $CPPFLAGS'
5008
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5009
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5010
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5012
depcc="$CC" am_compiler_list=
5014
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5015
$as_echo_n "checking dependency style of $depcc... " >&6; }
5016
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5017
$as_echo_n "(cached) " >&6
5019
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5020
# We make a subdir and do the tests there. Otherwise we can end up
5021
# making bogus files that we don't know about and never remove. For
5022
# instance it was reported that on HP-UX the gcc test will end up
5023
# making a dummy file named `D' -- because `-MD' means `put the output
5026
# Copy depcomp to subdir because otherwise we won't find it if we're
5027
# using a relative directory.
5028
cp "$am_depcomp" conftest.dir
5030
# We will build objects and dependencies in a subdirectory because
5031
# it helps to detect inapplicable dependency modes. For instance
5032
# both Tru64's cc and ICC support -MD to output dependencies as a
5033
# side effect of compilation, but ICC will put the dependencies in
5034
# the current directory while Tru64 will put them in the object
5038
am_cv_CC_dependencies_compiler_type=none
5039
if test "$am_compiler_list" = ""; then
5040
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5043
case " $depcc " in #(
5044
*\ -arch\ *\ -arch\ *) am__universal=true ;;
5047
for depmode in $am_compiler_list; do
5048
# Setup a source with many dependencies, because some compilers
5049
# like to wrap large dependency lists on column 80 (with \), and
5050
# we should not choose a depcomp mode which is confused by this.
5052
# We need to recreate these files for each test, as the compiler may
5053
# overwrite some of them when testing with obscure command lines.
5054
# This happens at least with the AIX C compiler.
5056
for i in 1 2 3 4 5 6; do
5057
echo '#include "conftst'$i'.h"' >> sub/conftest.c
5058
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5059
# Solaris 8's {/usr,}/bin/sh.
5060
touch sub/conftst$i.h
5062
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5064
# We check with `-c' and `-o' for the sake of the "dashmstdout"
5065
# mode. It turns out that the SunPro C++ compiler does not properly
5066
# handle `-M -o', and we need to detect this. Also, some Intel
5067
# versions had trouble with output in subdirs
5068
am__obj=sub/conftest.${OBJEXT-o}
5069
am__minus_obj="-o $am__obj"
5072
# This depmode causes a compiler race in universal mode.
5073
test "$am__universal" = false || continue
5076
# after this tag, mechanisms are not by side-effect, so they'll
5077
# only be used when explicitly requested
5078
if test "x$enable_dependency_tracking" = xyes; then
5084
msvisualcpp | msvcmsys)
5085
# This compiler won't grok `-c -o', but also, the minuso test has
5086
# not run yet. These depmodes are late enough in the game, and
5087
# so weak that their functioning should not be impacted.
5088
am__obj=conftest.${OBJEXT-o}
5093
if depmode=$depmode \
5094
source=sub/conftest.c object=$am__obj \
5095
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5096
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5097
>/dev/null 2>conftest.err &&
5098
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5099
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5100
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5101
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5102
# icc doesn't choke on unknown options, it will just issue warnings
5103
# or remarks (even with -Werror). So we grep stderr for any message
5104
# that says an option was ignored or not supported.
5105
# When given -MP, icc 7.0 and 7.1 complain thusly:
5106
# icc: Command line warning: ignoring option '-M'; no argument required
5107
# The diagnosis changed in icc 8.0:
5108
# icc: Command line remark: option '-MP' not supported
5109
if (grep 'ignoring option' conftest.err ||
5110
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5111
am_cv_CC_dependencies_compiler_type=$depmode
5120
am_cv_CC_dependencies_compiler_type=none
5124
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5125
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5126
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5129
test "x$enable_dependency_tracking" != xno \
5130
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5132
am__fastdepCC_FALSE='#'
5134
am__fastdepCC_TRUE='#'
5135
am__fastdepCC_FALSE=
5140
am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
4301
as_fn_error $? "no acceptable C compiler found in \$PATH
4302
See \`config.log' for more details" "$LINENO" 5 ; }
4304
# Provide some information about the compiler.
4305
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4308
for ac_option in --version -v -V -qversion; do
4309
{ { ac_try="$ac_compiler $ac_option >&5"
4311
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4312
*) ac_try_echo=$ac_try;;
4314
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4315
$as_echo "$ac_try_echo"; } >&5
4316
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
4318
if test -s conftest.err; then
4320
... rest of stderr output deleted ...
4321
10q' conftest.err >conftest.er1
4322
cat conftest.er1 >&5
4324
rm -f conftest.er1 conftest.err
4325
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4326
test $ac_status = 0; }
4329
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4330
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4331
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4332
$as_echo_n "(cached) " >&6
4334
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4335
/* end confdefs.h. */
4348
if ac_fn_c_try_compile "$LINENO"; then :
4353
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4354
ac_cv_c_compiler_gnu=$ac_compiler_gnu
4357
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4358
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4359
if test $ac_compiler_gnu = yes; then
4364
ac_test_CFLAGS=${CFLAGS+set}
4365
ac_save_CFLAGS=$CFLAGS
4366
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4367
$as_echo_n "checking whether $CC accepts -g... " >&6; }
4368
if test "${ac_cv_prog_cc_g+set}" = set; then :
4369
$as_echo_n "(cached) " >&6
4371
ac_save_c_werror_flag=$ac_c_werror_flag
4372
ac_c_werror_flag=yes
4375
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4376
/* end confdefs.h. */
4386
if ac_fn_c_try_compile "$LINENO"; then :
4390
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4391
/* end confdefs.h. */
4401
if ac_fn_c_try_compile "$LINENO"; then :
4404
ac_c_werror_flag=$ac_save_c_werror_flag
4406
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4407
/* end confdefs.h. */
4417
if ac_fn_c_try_compile "$LINENO"; then :
4420
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4422
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4424
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4425
ac_c_werror_flag=$ac_save_c_werror_flag
4427
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4428
$as_echo "$ac_cv_prog_cc_g" >&6; }
4429
if test "$ac_test_CFLAGS" = set; then
4430
CFLAGS=$ac_save_CFLAGS
4431
elif test $ac_cv_prog_cc_g = yes; then
4432
if test "$GCC" = yes; then
4438
if test "$GCC" = yes; then
4444
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4445
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4446
if test "${ac_cv_prog_cc_c89+set}" = set; then :
4447
$as_echo_n "(cached) " >&6
4449
ac_cv_prog_cc_c89=no
4451
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4452
/* end confdefs.h. */
4455
#include <sys/types.h>
4456
#include <sys/stat.h>
4457
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4458
struct buf { int x; };
4459
FILE * (*rcsopen) (struct buf *, struct stat *, int);
4460
static char *e (p, i)
4466
static char *f (char * (*g) (char **, int), char **p, ...)
4471
s = g (p, va_arg (v,int));
4476
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4477
function prototypes and stuff, but not '\xHH' hex character constants.
4478
These don't provoke an error unfortunately, instead are silently treated
4479
as 'x'. The following induces an error, until -std is added to get
4480
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4481
array size at least. It's necessary to write '\x00'==0 to get something
4482
that's true only with -std. */
4483
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4485
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4486
inside strings and character constants. */
4488
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4490
int test (int i, double x);
4491
struct s1 {int (*f) (int a);};
4492
struct s2 {int (*f) (double a);};
4493
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4499
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4504
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4505
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4507
CC="$ac_save_CC $ac_arg"
4508
if ac_fn_c_try_compile "$LINENO"; then :
4509
ac_cv_prog_cc_c89=$ac_arg
4511
rm -f core conftest.err conftest.$ac_objext
4512
test "x$ac_cv_prog_cc_c89" != "xno" && break
4514
rm -f conftest.$ac_ext
4519
case "x$ac_cv_prog_cc_c89" in
4521
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4522
$as_echo "none needed" >&6; } ;;
4524
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4525
$as_echo "unsupported" >&6; } ;;
4527
CC="$CC $ac_cv_prog_cc_c89"
4528
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4529
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4531
if test "x$ac_cv_prog_cc_c89" != xno; then :
4536
ac_cpp='$CPP $CPPFLAGS'
4537
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4538
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4539
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4541
depcc="$CC" am_compiler_list=
4543
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4544
$as_echo_n "checking dependency style of $depcc... " >&6; }
4545
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4546
$as_echo_n "(cached) " >&6
4548
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4549
# We make a subdir and do the tests there. Otherwise we can end up
4550
# making bogus files that we don't know about and never remove. For
4551
# instance it was reported that on HP-UX the gcc test will end up
4552
# making a dummy file named `D' -- because `-MD' means `put the output
4555
# Copy depcomp to subdir because otherwise we won't find it if we're
4556
# using a relative directory.
4557
cp "$am_depcomp" conftest.dir
4559
# We will build objects and dependencies in a subdirectory because
4560
# it helps to detect inapplicable dependency modes. For instance
4561
# both Tru64's cc and ICC support -MD to output dependencies as a
4562
# side effect of compilation, but ICC will put the dependencies in
4563
# the current directory while Tru64 will put them in the object
4567
am_cv_CC_dependencies_compiler_type=none
4568
if test "$am_compiler_list" = ""; then
4569
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4572
case " $depcc " in #(
4573
*\ -arch\ *\ -arch\ *) am__universal=true ;;
4576
for depmode in $am_compiler_list; do
4577
# Setup a source with many dependencies, because some compilers
4578
# like to wrap large dependency lists on column 80 (with \), and
4579
# we should not choose a depcomp mode which is confused by this.
4581
# We need to recreate these files for each test, as the compiler may
4582
# overwrite some of them when testing with obscure command lines.
4583
# This happens at least with the AIX C compiler.
4585
for i in 1 2 3 4 5 6; do
4586
echo '#include "conftst'$i'.h"' >> sub/conftest.c
4587
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4588
# Solaris 8's {/usr,}/bin/sh.
4589
touch sub/conftst$i.h
4591
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4593
# We check with `-c' and `-o' for the sake of the "dashmstdout"
4594
# mode. It turns out that the SunPro C++ compiler does not properly
4595
# handle `-M -o', and we need to detect this. Also, some Intel
4596
# versions had trouble with output in subdirs
4597
am__obj=sub/conftest.${OBJEXT-o}
4598
am__minus_obj="-o $am__obj"
4601
# This depmode causes a compiler race in universal mode.
4602
test "$am__universal" = false || continue
4605
# after this tag, mechanisms are not by side-effect, so they'll
4606
# only be used when explicitly requested
4607
if test "x$enable_dependency_tracking" = xyes; then
4613
msvisualcpp | msvcmsys)
4614
# This compiler won't grok `-c -o', but also, the minuso test has
4615
# not run yet. These depmodes are late enough in the game, and
4616
# so weak that their functioning should not be impacted.
4617
am__obj=conftest.${OBJEXT-o}
4622
if depmode=$depmode \
4623
source=sub/conftest.c object=$am__obj \
4624
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4625
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4626
>/dev/null 2>conftest.err &&
4627
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4628
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4629
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4630
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4631
# icc doesn't choke on unknown options, it will just issue warnings
4632
# or remarks (even with -Werror). So we grep stderr for any message
4633
# that says an option was ignored or not supported.
4634
# When given -MP, icc 7.0 and 7.1 complain thusly:
4635
# icc: Command line warning: ignoring option '-M'; no argument required
4636
# The diagnosis changed in icc 8.0:
4637
# icc: Command line remark: option '-MP' not supported
4638
if (grep 'ignoring option' conftest.err ||
4639
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4640
am_cv_CC_dependencies_compiler_type=$depmode
4649
am_cv_CC_dependencies_compiler_type=none
4653
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4654
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4655
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4658
test "x$enable_dependency_tracking" != xno \
4659
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4661
am__fastdepCC_FALSE='#'
4663
am__fastdepCC_TRUE='#'
4664
am__fastdepCC_FALSE=
5143
4669
ac_cpp='$CPP $CPPFLAGS'
11877
11445
$as_echo "no" >&6; }
11878
11446
PKG_CONFIG=""
11452
if test "x$PKG_CONFIG" = x ; then
11457
min_glib_version=2.0.0
11458
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5
11459
$as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
11461
if test x$PKG_CONFIG != xno ; then
11462
## don't try to run the test against uninstalled libtool libs
11463
if $PKG_CONFIG --uninstalled $pkg_config_args; then
11464
echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
11468
if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
11475
if test x"$no_glib" = x ; then
11476
GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
11477
GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
11478
GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
11480
GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
11481
GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
11482
glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
11483
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
11484
glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
11485
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
11486
glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
11487
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
11488
if test "x$enable_glibtest" = "xyes" ; then
11489
ac_save_CFLAGS="$CFLAGS"
11490
ac_save_LIBS="$LIBS"
11491
CFLAGS="$CFLAGS $GLIB_CFLAGS"
11492
LIBS="$GLIB_LIBS $LIBS"
11493
rm -f conf.glibtest
11494
if test "$cross_compiling" = yes; then :
11495
echo $ac_n "cross compiling; assumed OK... $ac_c"
11497
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11498
/* end confdefs.h. */
11502
#include <stdlib.h>
11507
unsigned int major, minor, micro;
11510
fclose (fopen ("conf.glibtest", "w"));
11512
/* HP/UX 9 (%@#!) writes to sscanf strings */
11513
tmp_version = g_strdup("$min_glib_version");
11514
if (sscanf(tmp_version, "%u.%u.%u", &major, &minor, µ) != 3) {
11515
printf("%s, bad version string\n", "$min_glib_version");
11519
if ((glib_major_version != $glib_config_major_version) ||
11520
(glib_minor_version != $glib_config_minor_version) ||
11521
(glib_micro_version != $glib_config_micro_version))
11523
printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
11524
$glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
11525
glib_major_version, glib_minor_version, glib_micro_version);
11526
printf ("*** was found! If pkg-config was correct, then it is best\n");
11527
printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
11528
printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
11529
printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
11530
printf("*** required on your system.\n");
11531
printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
11532
printf("*** to point to the correct configuration files\n");
11534
else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
11535
(glib_minor_version != GLIB_MINOR_VERSION) ||
11536
(glib_micro_version != GLIB_MICRO_VERSION))
11538
printf("*** GLIB header files (version %d.%d.%d) do not match\n",
11539
GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
11540
printf("*** library (version %d.%d.%d)\n",
11541
glib_major_version, glib_minor_version, glib_micro_version);
11545
if ((glib_major_version > major) ||
11546
((glib_major_version == major) && (glib_minor_version > minor)) ||
11547
((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
11553
printf("\n*** An old version of GLIB (%u.%u.%u) was found.\n",
11554
glib_major_version, glib_minor_version, glib_micro_version);
11555
printf("*** You need a version of GLIB newer than %u.%u.%u. The latest version of\n",
11556
major, minor, micro);
11557
printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
11559
printf("*** If you have already installed a sufficiently new version, this error\n");
11560
printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
11561
printf("*** being found. The easiest way to fix this is to remove the old version\n");
11562
printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
11563
printf("*** correct copy of pkg-config. (In this case, you will have to\n");
11564
printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
11565
printf("*** so that the correct libraries are found at run-time))\n");
11572
if ac_fn_c_try_run "$LINENO"; then :
11577
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11578
conftest.$ac_objext conftest.beam conftest.$ac_ext
11581
CFLAGS="$ac_save_CFLAGS"
11582
LIBS="$ac_save_LIBS"
11585
if test "x$no_glib" = x ; then
11586
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
11587
$as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
11590
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11591
$as_echo "no" >&6; }
11592
if test "$PKG_CONFIG" = "no" ; then
11593
echo "*** A new enough version of pkg-config was not found."
11594
echo "*** See http://www.freedesktop.org/software/pkgconfig/"
11596
if test -f conf.glibtest ; then
11599
echo "*** Could not run GLIB test program, checking why..."
11600
ac_save_CFLAGS="$CFLAGS"
11601
ac_save_LIBS="$LIBS"
11602
CFLAGS="$CFLAGS $GLIB_CFLAGS"
11603
LIBS="$LIBS $GLIB_LIBS"
11604
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11605
/* end confdefs.h. */
11613
return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
11618
if ac_fn_c_try_link "$LINENO"; then :
11619
echo "*** The test program compiled, but did not run. This usually means"
11620
echo "*** that the run-time linker is not finding GLIB or finding the wrong"
11621
echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
11622
echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
11623
echo "*** to the installed location Also, make sure you have run ldconfig if that"
11624
echo "*** is required on your system"
11626
echo "*** If you have an old version installed, it is best to remove it, although"
11627
echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
11629
echo "*** The test program failed to compile or link. See the file config.log for the"
11630
echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
11632
rm -f core conftest.err conftest.$ac_objext \
11633
conftest$ac_exeext conftest.$ac_ext
11634
CFLAGS="$ac_save_CFLAGS"
11635
LIBS="$ac_save_LIBS"
11650
rm -f conf.glibtest
11652
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
11653
$as_echo_n "checking for X... " >&6; }
11656
# Check whether --with-x was given.
11657
if test "${with_x+set}" = set; then :
11661
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11662
if test "x$with_x" = xno; then
11663
# The user explicitly disabled X.
11666
case $x_includes,$x_libraries in #(
11667
*\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #(
11668
*,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
11669
$as_echo_n "(cached) " >&6
11671
# One or both of the vars are not set, and there is no cached value.
11672
ac_x_includes=no ac_x_libraries=no
11673
rm -f -r conftest.dir
11674
if mkdir conftest.dir; then
11676
cat >Imakefile <<'_ACEOF'
11678
@echo incroot='${INCROOT}'
11680
@echo usrlibdir='${USRLIBDIR}'
11682
@echo libdir='${LIBDIR}'
11684
if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
11685
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11686
for ac_var in incroot usrlibdir libdir; do
11687
eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
11689
# Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
11690
for ac_extension in a so sl dylib la dll; do
11691
if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
11692
test -f "$ac_im_libdir/libX11.$ac_extension"; then
11693
ac_im_usrlibdir=$ac_im_libdir; break
11696
# Screen out bogus values from the imake configuration. They are
11697
# bogus both because they are the default anyway, and because
11698
# using them would break gcc on systems where it needs fixed includes.
11699
case $ac_im_incroot in
11700
/usr/include) ac_x_includes= ;;
11701
*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
11703
case $ac_im_usrlibdir in
11704
/usr/lib | /usr/lib64 | /lib | /lib64) ;;
11705
*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
11709
rm -f -r conftest.dir
11712
# Standard set of common directories for X headers.
11713
# Check X11 before X11Rn because it is often a symlink to the current release.
11727
/usr/local/X11/include
11728
/usr/local/X11R7/include
11729
/usr/local/X11R6/include
11730
/usr/local/X11R5/include
11731
/usr/local/X11R4/include
11733
/usr/local/include/X11
11734
/usr/local/include/X11R7
11735
/usr/local/include/X11R6
11736
/usr/local/include/X11R5
11737
/usr/local/include/X11R4
11741
/usr/XFree86/include/X11
11745
/usr/unsupported/include
11746
/usr/athena/include
11747
/usr/local/x11r5/include
11748
/usr/lpp/Xamples/include
11750
/usr/openwin/include
11751
/usr/openwin/share/include'
11753
if test "$ac_x_includes" = no; then
11754
# Guess where to find include files, by looking for Xlib.h.
11755
# First, try using that file with no special directory specified.
11756
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11757
/* end confdefs.h. */
11758
#include <X11/Xlib.h>
11760
if ac_fn_c_try_cpp "$LINENO"; then :
11761
# We can compile using X headers with no special include directory.
11764
for ac_dir in $ac_x_header_dirs; do
11765
if test -r "$ac_dir/X11/Xlib.h"; then
11766
ac_x_includes=$ac_dir
11771
rm -f conftest.err conftest.i conftest.$ac_ext
11772
fi # $ac_x_includes = no
11774
if test "$ac_x_libraries" = no; then
11775
# Check for the libraries.
11776
# See if we find them without any special options.
11777
# Don't add to $LIBS permanently.
11780
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11781
/* end confdefs.h. */
11782
#include <X11/Xlib.h>
11791
if ac_fn_c_try_link "$LINENO"; then :
11793
# We can link X programs with no special library path.
11797
for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
11799
# Don't even attempt the hair of trying to link an X program!
11800
for ac_extension in a so sl dylib la dll; do
11801
if test -r "$ac_dir/libX11.$ac_extension"; then
11802
ac_x_libraries=$ac_dir
11808
rm -f core conftest.err conftest.$ac_objext \
11809
conftest$ac_exeext conftest.$ac_ext
11810
fi # $ac_x_libraries = no
11812
case $ac_x_includes,$ac_x_libraries in #(
11813
no,* | *,no | *\'*)
11814
# Didn't find X, or a directory has "'" in its name.
11815
ac_cv_have_x="have_x=no";; #(
11817
# Record where we found X for the cache.
11818
ac_cv_have_x="have_x=yes\
11819
ac_x_includes='$ac_x_includes'\
11820
ac_x_libraries='$ac_x_libraries'"
11826
eval "$ac_cv_have_x"
11829
if test "$have_x" != yes; then
11830
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
11831
$as_echo "$have_x" >&6; }
11834
# If each of the values was on the command line, it overrides each guess.
11835
test "x$x_includes" = xNONE && x_includes=$ac_x_includes
11836
test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
11837
# Update the cache value to reflect the command line values.
11838
ac_cv_have_x="have_x=yes\
11839
ac_x_includes='$x_includes'\
11840
ac_x_libraries='$x_libraries'"
11841
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
11842
$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
11845
if test "$no_x" = yes; then
11846
# Not all programs may use this symbol, but it does not hurt to define it.
11848
$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
11850
X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
11852
if test -n "$x_includes"; then
11853
X_CFLAGS="$X_CFLAGS -I$x_includes"
11856
# It would also be nice to do this for all -L options, not just this one.
11857
if test -n "$x_libraries"; then
11858
X_LIBS="$X_LIBS -L$x_libraries"
11859
# For Solaris; some versions of Sun CC require a space after -R and
11860
# others require no space. Words are not sufficient . . . .
11861
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
11862
$as_echo_n "checking whether -R must be followed by a space... " >&6; }
11863
ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
11864
ac_xsave_c_werror_flag=$ac_c_werror_flag
11865
ac_c_werror_flag=yes
11866
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11867
/* end confdefs.h. */
11877
if ac_fn_c_try_link "$LINENO"; then :
11878
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11879
$as_echo "no" >&6; }
11880
X_LIBS="$X_LIBS -R$x_libraries"
11882
LIBS="$ac_xsave_LIBS -R $x_libraries"
11883
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11884
/* end confdefs.h. */
11894
if ac_fn_c_try_link "$LINENO"; then :
11895
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11896
$as_echo "yes" >&6; }
11897
X_LIBS="$X_LIBS -R $x_libraries"
11899
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
11900
$as_echo "neither works" >&6; }
11902
rm -f core conftest.err conftest.$ac_objext \
11903
conftest$ac_exeext conftest.$ac_ext
11905
rm -f core conftest.err conftest.$ac_objext \
11906
conftest$ac_exeext conftest.$ac_ext
11907
ac_c_werror_flag=$ac_xsave_c_werror_flag
11908
LIBS=$ac_xsave_LIBS
11911
# Check for system-dependent libraries X programs must link with.
11912
# Do this before checking for the system-independent R6 libraries
11913
# (-lICE), since we may need -lsocket or whatever for X linking.
11915
if test "$ISC" = yes; then
11916
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
11918
# Martyn Johnson says this is needed for Ultrix, if the X
11919
# libraries were built with DECnet support. And Karl Berry says
11920
# the Alpha needs dnet_stub (dnet does not exist).
11921
ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
11922
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11923
/* end confdefs.h. */
11925
/* Override any GCC internal prototype to avoid an error.
11926
Use char because int might match the return type of a GCC
11927
builtin and then its argument prototype would still apply. */
11931
char XOpenDisplay ();
11935
return XOpenDisplay ();
11940
if ac_fn_c_try_link "$LINENO"; then :
11943
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
11944
$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
11945
if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
11946
$as_echo_n "(cached) " >&6
11948
ac_check_lib_save_LIBS=$LIBS
11949
LIBS="-ldnet $LIBS"
11950
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11951
/* end confdefs.h. */
11953
/* Override any GCC internal prototype to avoid an error.
11954
Use char because int might match the return type of a GCC
11955
builtin and then its argument prototype would still apply. */
11963
return dnet_ntoa ();
11968
if ac_fn_c_try_link "$LINENO"; then :
11969
ac_cv_lib_dnet_dnet_ntoa=yes
11971
ac_cv_lib_dnet_dnet_ntoa=no
11973
rm -f core conftest.err conftest.$ac_objext \
11974
conftest$ac_exeext conftest.$ac_ext
11975
LIBS=$ac_check_lib_save_LIBS
11977
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
11978
$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
11979
if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
11980
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
11983
if test $ac_cv_lib_dnet_dnet_ntoa = no; then
11984
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
11985
$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
11986
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
11987
$as_echo_n "(cached) " >&6
11989
ac_check_lib_save_LIBS=$LIBS
11990
LIBS="-ldnet_stub $LIBS"
11991
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11992
/* end confdefs.h. */
11994
/* Override any GCC internal prototype to avoid an error.
11995
Use char because int might match the return type of a GCC
11996
builtin and then its argument prototype would still apply. */
12004
return dnet_ntoa ();
12009
if ac_fn_c_try_link "$LINENO"; then :
12010
ac_cv_lib_dnet_stub_dnet_ntoa=yes
12012
ac_cv_lib_dnet_stub_dnet_ntoa=no
12014
rm -f core conftest.err conftest.$ac_objext \
12015
conftest$ac_exeext conftest.$ac_ext
12016
LIBS=$ac_check_lib_save_LIBS
12018
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
12019
$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
12020
if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
12021
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
12026
rm -f core conftest.err conftest.$ac_objext \
12027
conftest$ac_exeext conftest.$ac_ext
12028
LIBS="$ac_xsave_LIBS"
12030
# msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
12031
# to get the SysV transport functions.
12032
# Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
12034
# The nsl library prevents programs from opening the X display
12035
# on Irix 5.2, according to T.E. Dickey.
12036
# The functions gethostbyname, getservbyname, and inet_addr are
12037
# in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
12038
ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
12039
if test "x$ac_cv_func_gethostbyname" = x""yes; then :
12043
if test $ac_cv_func_gethostbyname = no; then
12044
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
12045
$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
12046
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
12047
$as_echo_n "(cached) " >&6
12049
ac_check_lib_save_LIBS=$LIBS
12051
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12052
/* end confdefs.h. */
12054
/* Override any GCC internal prototype to avoid an error.
12055
Use char because int might match the return type of a GCC
12056
builtin and then its argument prototype would still apply. */
12060
char gethostbyname ();
12064
return gethostbyname ();
12069
if ac_fn_c_try_link "$LINENO"; then :
12070
ac_cv_lib_nsl_gethostbyname=yes
12072
ac_cv_lib_nsl_gethostbyname=no
12074
rm -f core conftest.err conftest.$ac_objext \
12075
conftest$ac_exeext conftest.$ac_ext
12076
LIBS=$ac_check_lib_save_LIBS
12078
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
12079
$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
12080
if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
12081
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
12084
if test $ac_cv_lib_nsl_gethostbyname = no; then
12085
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
12086
$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
12087
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
12088
$as_echo_n "(cached) " >&6
12090
ac_check_lib_save_LIBS=$LIBS
12092
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12093
/* end confdefs.h. */
12095
/* Override any GCC internal prototype to avoid an error.
12096
Use char because int might match the return type of a GCC
12097
builtin and then its argument prototype would still apply. */
12101
char gethostbyname ();
12105
return gethostbyname ();
12110
if ac_fn_c_try_link "$LINENO"; then :
12111
ac_cv_lib_bsd_gethostbyname=yes
12113
ac_cv_lib_bsd_gethostbyname=no
12115
rm -f core conftest.err conftest.$ac_objext \
12116
conftest$ac_exeext conftest.$ac_ext
12117
LIBS=$ac_check_lib_save_LIBS
12119
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
12120
$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
12121
if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
12122
X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
12128
# lieder@skyler.mavd.honeywell.com says without -lsocket,
12129
# socket/setsockopt and other routines are undefined under SCO ODT
12130
# 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
12131
# on later versions), says Simon Leinen: it contains gethostby*
12132
# variants that don't use the name server (or something). -lsocket
12133
# must be given before -lnsl if both are needed. We assume that
12134
# if connect needs -lnsl, so does gethostbyname.
12135
ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
12136
if test "x$ac_cv_func_connect" = x""yes; then :
12140
if test $ac_cv_func_connect = no; then
12141
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
12142
$as_echo_n "checking for connect in -lsocket... " >&6; }
12143
if test "${ac_cv_lib_socket_connect+set}" = set; then :
12144
$as_echo_n "(cached) " >&6
12146
ac_check_lib_save_LIBS=$LIBS
12147
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
12148
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12149
/* end confdefs.h. */
12151
/* Override any GCC internal prototype to avoid an error.
12152
Use char because int might match the return type of a GCC
12153
builtin and then its argument prototype would still apply. */
12166
if ac_fn_c_try_link "$LINENO"; then :
12167
ac_cv_lib_socket_connect=yes
12169
ac_cv_lib_socket_connect=no
12171
rm -f core conftest.err conftest.$ac_objext \
12172
conftest$ac_exeext conftest.$ac_ext
12173
LIBS=$ac_check_lib_save_LIBS
12175
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
12176
$as_echo "$ac_cv_lib_socket_connect" >&6; }
12177
if test "x$ac_cv_lib_socket_connect" = x""yes; then :
12178
X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
12183
# Guillermo Gomez says -lposix is necessary on A/UX.
12184
ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
12185
if test "x$ac_cv_func_remove" = x""yes; then :
12189
if test $ac_cv_func_remove = no; then
12190
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
12191
$as_echo_n "checking for remove in -lposix... " >&6; }
12192
if test "${ac_cv_lib_posix_remove+set}" = set; then :
12193
$as_echo_n "(cached) " >&6
12195
ac_check_lib_save_LIBS=$LIBS
12196
LIBS="-lposix $LIBS"
12197
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12198
/* end confdefs.h. */
12200
/* Override any GCC internal prototype to avoid an error.
12201
Use char because int might match the return type of a GCC
12202
builtin and then its argument prototype would still apply. */
12215
if ac_fn_c_try_link "$LINENO"; then :
12216
ac_cv_lib_posix_remove=yes
12218
ac_cv_lib_posix_remove=no
12220
rm -f core conftest.err conftest.$ac_objext \
12221
conftest$ac_exeext conftest.$ac_ext
12222
LIBS=$ac_check_lib_save_LIBS
12224
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
12225
$as_echo "$ac_cv_lib_posix_remove" >&6; }
12226
if test "x$ac_cv_lib_posix_remove" = x""yes; then :
12227
X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
12232
# BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
12233
ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
12234
if test "x$ac_cv_func_shmat" = x""yes; then :
12238
if test $ac_cv_func_shmat = no; then
12239
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
12240
$as_echo_n "checking for shmat in -lipc... " >&6; }
12241
if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
12242
$as_echo_n "(cached) " >&6
12244
ac_check_lib_save_LIBS=$LIBS
12246
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12247
/* end confdefs.h. */
12249
/* Override any GCC internal prototype to avoid an error.
12250
Use char because int might match the return type of a GCC
12251
builtin and then its argument prototype would still apply. */
12264
if ac_fn_c_try_link "$LINENO"; then :
12265
ac_cv_lib_ipc_shmat=yes
12267
ac_cv_lib_ipc_shmat=no
12269
rm -f core conftest.err conftest.$ac_objext \
12270
conftest$ac_exeext conftest.$ac_ext
12271
LIBS=$ac_check_lib_save_LIBS
12273
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
12274
$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
12275
if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
12276
X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
12282
# Check for libraries that X11R6 Xt/Xaw programs need.
12283
ac_save_LDFLAGS=$LDFLAGS
12284
test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
12285
# SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
12286
# check for ICE first), but we must link in the order -lSM -lICE or
12287
# we get undefined symbols. So assume we have SM if we have ICE.
12288
# These have to be linked with before -lX11, unlike the other
12289
# libraries we check for below, so use a different variable.
12290
# John Interrante, Karl Berry
12291
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
12292
$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
12293
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
12294
$as_echo_n "(cached) " >&6
12296
ac_check_lib_save_LIBS=$LIBS
12297
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
12298
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12299
/* end confdefs.h. */
12301
/* Override any GCC internal prototype to avoid an error.
12302
Use char because int might match the return type of a GCC
12303
builtin and then its argument prototype would still apply. */
12307
char IceConnectionNumber ();
12311
return IceConnectionNumber ();
12316
if ac_fn_c_try_link "$LINENO"; then :
12317
ac_cv_lib_ICE_IceConnectionNumber=yes
12319
ac_cv_lib_ICE_IceConnectionNumber=no
12321
rm -f core conftest.err conftest.$ac_objext \
12322
conftest$ac_exeext conftest.$ac_ext
12323
LIBS=$ac_check_lib_save_LIBS
12325
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
12326
$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
12327
if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
12328
X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
12331
LDFLAGS=$ac_save_LDFLAGS
12336
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12337
$as_echo_n "checking whether NLS is requested... " >&6; }
12338
# Check whether --enable-nls was given.
12339
if test "${enable_nls+set}" = set; then :
12340
enableval=$enable_nls; USE_NLS=$enableval
12345
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12346
$as_echo "$USE_NLS" >&6; }
12351
case "$am__api_version" in
12353
as_fn_error $? "Automake 1.5 or newer is required to use intltool" "$LINENO" 5
12359
if test -n "0.35.0"; then
12360
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for intltool >= 0.35.0" >&5
12361
$as_echo_n "checking for intltool >= 0.35.0... " >&6; }
12363
INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.35.0 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
12364
INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
12365
INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
12367
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_APPLIED_VERSION found" >&5
12368
$as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; }
12369
test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
12370
as_fn_error $? "Your intltool is too old. You need intltool 0.35.0 or later." "$LINENO" 5
12373
# Extract the first word of "intltool-update", so it can be a program name with args.
12374
set dummy intltool-update; ac_word=$2
12375
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12376
$as_echo_n "checking for $ac_word... " >&6; }
12377
if test "${ac_cv_path_INTLTOOL_UPDATE+set}" = set; then :
12378
$as_echo_n "(cached) " >&6
12380
case $INTLTOOL_UPDATE in
12382
ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path.
12385
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12386
for as_dir in $PATH
12389
test -z "$as_dir" && as_dir=.
12390
for ac_exec_ext in '' $ac_executable_extensions; do
12391
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12392
ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext"
12393
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12403
INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE
12404
if test -n "$INTLTOOL_UPDATE"; then
12405
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_UPDATE" >&5
12406
$as_echo "$INTLTOOL_UPDATE" >&6; }
12408
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12409
$as_echo "no" >&6; }
12413
# Extract the first word of "intltool-merge", so it can be a program name with args.
12414
set dummy intltool-merge; ac_word=$2
12415
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12416
$as_echo_n "checking for $ac_word... " >&6; }
12417
if test "${ac_cv_path_INTLTOOL_MERGE+set}" = set; then :
12418
$as_echo_n "(cached) " >&6
12420
case $INTLTOOL_MERGE in
12422
ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path.
12425
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12426
for as_dir in $PATH
12429
test -z "$as_dir" && as_dir=.
12430
for ac_exec_ext in '' $ac_executable_extensions; do
12431
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12432
ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext"
12433
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12443
INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE
12444
if test -n "$INTLTOOL_MERGE"; then
12445
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_MERGE" >&5
12446
$as_echo "$INTLTOOL_MERGE" >&6; }
12448
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12449
$as_echo "no" >&6; }
12453
# Extract the first word of "intltool-extract", so it can be a program name with args.
12454
set dummy intltool-extract; ac_word=$2
12455
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12456
$as_echo_n "checking for $ac_word... " >&6; }
12457
if test "${ac_cv_path_INTLTOOL_EXTRACT+set}" = set; then :
12458
$as_echo_n "(cached) " >&6
12460
case $INTLTOOL_EXTRACT in
12462
ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path.
12465
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12466
for as_dir in $PATH
12469
test -z "$as_dir" && as_dir=.
12470
for ac_exec_ext in '' $ac_executable_extensions; do
12471
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12472
ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext"
12473
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12483
INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT
12484
if test -n "$INTLTOOL_EXTRACT"; then
12485
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_EXTRACT" >&5
12486
$as_echo "$INTLTOOL_EXTRACT" >&6; }
12488
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12489
$as_echo "no" >&6; }
12493
if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
12494
as_fn_error $? "The intltool scripts were not found. Please install intltool." "$LINENO" 5
12497
INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12498
INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12499
INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12500
INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12501
INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@'
12502
INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12503
INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12504
INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12505
INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12506
INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12507
INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12508
INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@'
12509
INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12510
INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12511
INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12512
INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12513
INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12514
INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12515
INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12613
# Check the gettext tools to make sure they are GNU
12614
# Extract the first word of "xgettext", so it can be a program name with args.
12615
set dummy xgettext; ac_word=$2
12616
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12617
$as_echo_n "checking for $ac_word... " >&6; }
12618
if test "${ac_cv_path_XGETTEXT+set}" = set; then :
12619
$as_echo_n "(cached) " >&6
12623
ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12626
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12627
for as_dir in $PATH
12630
test -z "$as_dir" && as_dir=.
12631
for ac_exec_ext in '' $ac_executable_extensions; do
12632
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12633
ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
12634
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12644
XGETTEXT=$ac_cv_path_XGETTEXT
12645
if test -n "$XGETTEXT"; then
12646
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12647
$as_echo "$XGETTEXT" >&6; }
12649
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12650
$as_echo "no" >&6; }
12654
# Extract the first word of "msgmerge", so it can be a program name with args.
12655
set dummy msgmerge; ac_word=$2
12656
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12657
$as_echo_n "checking for $ac_word... " >&6; }
12658
if test "${ac_cv_path_MSGMERGE+set}" = set; then :
12659
$as_echo_n "(cached) " >&6
12663
ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12666
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12667
for as_dir in $PATH
12670
test -z "$as_dir" && as_dir=.
12671
for ac_exec_ext in '' $ac_executable_extensions; do
12672
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12673
ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
12674
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12684
MSGMERGE=$ac_cv_path_MSGMERGE
12685
if test -n "$MSGMERGE"; then
12686
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12687
$as_echo "$MSGMERGE" >&6; }
12689
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12690
$as_echo "no" >&6; }
12694
# Extract the first word of "msgfmt", so it can be a program name with args.
12695
set dummy msgfmt; ac_word=$2
12696
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12697
$as_echo_n "checking for $ac_word... " >&6; }
12698
if test "${ac_cv_path_MSGFMT+set}" = set; then :
12699
$as_echo_n "(cached) " >&6
12703
ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12706
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12707
for as_dir in $PATH
12710
test -z "$as_dir" && as_dir=.
12711
for ac_exec_ext in '' $ac_executable_extensions; do
12712
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12713
ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
12714
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12724
MSGFMT=$ac_cv_path_MSGFMT
12725
if test -n "$MSGFMT"; then
12726
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12727
$as_echo "$MSGFMT" >&6; }
12729
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12730
$as_echo "no" >&6; }
12734
# Extract the first word of "gmsgfmt", so it can be a program name with args.
12735
set dummy gmsgfmt; ac_word=$2
12736
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12737
$as_echo_n "checking for $ac_word... " >&6; }
12738
if test "${ac_cv_path_GMSGFMT+set}" = set; then :
12739
$as_echo_n "(cached) " >&6
12743
ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12746
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12747
for as_dir in $PATH
12750
test -z "$as_dir" && as_dir=.
12751
for ac_exec_ext in '' $ac_executable_extensions; do
12752
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12753
ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12754
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12761
test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12765
GMSGFMT=$ac_cv_path_GMSGFMT
12766
if test -n "$GMSGFMT"; then
12767
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12768
$as_echo "$GMSGFMT" >&6; }
12770
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12771
$as_echo "no" >&6; }
12775
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
12776
as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5
12778
xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
12779
mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
12780
mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
12781
if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
12782
as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5
12785
# Extract the first word of "perl", so it can be a program name with args.
12786
set dummy perl; ac_word=$2
12787
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12788
$as_echo_n "checking for $ac_word... " >&6; }
12789
if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then :
12790
$as_echo_n "(cached) " >&6
12792
case $INTLTOOL_PERL in
12794
ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
12797
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12798
for as_dir in $PATH
12801
test -z "$as_dir" && as_dir=.
12802
for ac_exec_ext in '' $ac_executable_extensions; do
12803
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12804
ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
12805
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12815
INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
12816
if test -n "$INTLTOOL_PERL"; then
12817
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_PERL" >&5
12818
$as_echo "$INTLTOOL_PERL" >&6; }
12820
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12821
$as_echo "no" >&6; }
12825
if test -z "$INTLTOOL_PERL"; then
12826
as_fn_error $? "perl not found" "$LINENO" 5
12828
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl >= 5.8.1" >&5
12829
$as_echo_n "checking for perl >= 5.8.1... " >&6; }
12830
$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
12831
if test $? -ne 0; then
12832
as_fn_error $? "perl 5.8.1 is required for intltool" "$LINENO" 5
12834
IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
12835
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $IT_PERL_VERSION" >&5
12836
$as_echo "$IT_PERL_VERSION" >&6; }
12838
if test "x" != "xno-xml"; then
12839
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML::Parser" >&5
12840
$as_echo_n "checking for XML::Parser... " >&6; }
12841
if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
12842
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12843
$as_echo "ok" >&6; }
12845
as_fn_error $? "XML::Parser perl module is required for intltool" "$LINENO" 5
12849
# Substitute ALL_LINGUAS so we can use it in po/Makefile
12852
# Set DATADIRNAME correctly if it is not set yet
12853
# (copied from glib-gettext.m4)
12854
if test -z "$DATADIRNAME"; then
12855
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12856
/* end confdefs.h. */
12861
extern int _nl_msg_cat_cntr;
12862
return _nl_msg_cat_cntr
12867
if ac_fn_c_try_link "$LINENO"; then :
12872
ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
12873
if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then :
12885
rm -f core conftest.err conftest.$ac_objext \
12886
conftest$ac_exeext conftest.$ac_ext
12894
# -----------------------------------------------------------
11883
12897
pkg_failed=no
11884
12898
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSH_CONTACT" >&5
11885
12899
$as_echo_n "checking for SSH_CONTACT... " >&6; }
11887
if test -n "$PKG_CONFIG"; then
11888
if test -n "$SSH_CONTACT_CFLAGS"; then
11889
pkg_cv_SSH_CONTACT_CFLAGS="$SSH_CONTACT_CFLAGS"
11891
if test -n "$PKG_CONFIG" && \
12901
if test -n "$SSH_CONTACT_CFLAGS"; then
12902
pkg_cv_SSH_CONTACT_CFLAGS="$SSH_CONTACT_CFLAGS"
12903
elif test -n "$PKG_CONFIG"; then
12904
if test -n "$PKG_CONFIG" && \
11892
12905
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
11893
telepathy-glib >= 0.11.9
12906
telepathy-glib >= 0.13.9
11898
12910
($PKG_CONFIG --exists --print-errors "
11899
telepathy-glib >= 0.11.9
12911
telepathy-glib >= 0.13.9
11905
12916
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11906
12917
test $ac_status = 0; }; then
11907
12918
pkg_cv_SSH_CONTACT_CFLAGS=`$PKG_CONFIG --cflags "
11908
telepathy-glib >= 0.11.9
12919
telepathy-glib >= 0.13.9
11912
12922
" 2>/dev/null`
11914
12924
pkg_failed=yes
11920
if test -n "$PKG_CONFIG"; then
11921
if test -n "$SSH_CONTACT_LIBS"; then
11922
pkg_cv_SSH_CONTACT_LIBS="$SSH_CONTACT_LIBS"
11924
if test -n "$PKG_CONFIG" && \
12929
if test -n "$SSH_CONTACT_LIBS"; then
12930
pkg_cv_SSH_CONTACT_LIBS="$SSH_CONTACT_LIBS"
12931
elif test -n "$PKG_CONFIG"; then
12932
if test -n "$PKG_CONFIG" && \
11925
12933
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
11926
telepathy-glib >= 0.11.9
12934
telepathy-glib >= 0.13.9
11931
12938
($PKG_CONFIG --exists --print-errors "
11932
telepathy-glib >= 0.11.9
12939
telepathy-glib >= 0.13.9
11938
12944
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11939
12945
test $ac_status = 0; }; then
11940
12946
pkg_cv_SSH_CONTACT_LIBS=`$PKG_CONFIG --libs "
11941
telepathy-glib >= 0.11.9
12947
telepathy-glib >= 0.13.9
11945
12950
" 2>/dev/null`
11947
12952
pkg_failed=yes
11956
12960
if test $pkg_failed = yes; then
12961
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12962
$as_echo "no" >&6; }
11958
12964
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11959
12965
_pkg_short_errors_supported=yes
12006
13010
See the pkg-config man page for more details.
12008
13012
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12009
See \`config.log' for more details." "$LINENO" 5; }
13013
See \`config.log' for more details" "$LINENO" 5 ; }
12011
13015
SSH_CONTACT_CFLAGS=$pkg_cv_SSH_CONTACT_CFLAGS
12012
13016
SSH_CONTACT_LIBS=$pkg_cv_SSH_CONTACT_LIBS
12013
13017
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12014
13018
$as_echo "yes" >&6; }
12018
ac_config_files="$ac_config_files Makefile src/Makefile"
13022
# -----------------------------------------------------------
13024
# -----------------------------------------------------------
13026
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands -Wall" >&5
13027
$as_echo_n "checking to see if compiler understands -Wall... " >&6; }
13029
save_CFLAGS="$CFLAGS"
13030
CFLAGS="$CFLAGS -Wall"
13032
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13033
/* end confdefs.h. */
13043
if ac_fn_c_try_compile "$LINENO"; then :
13048
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13049
CFLAGS="$save_CFLAGS"
13051
if test "X$flag_ok" = Xyes ; then
13052
ERROR_CFLAGS="-Wall"
13058
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
13059
$as_echo "$flag_ok" >&6; }
13062
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands -Werror" >&5
13063
$as_echo_n "checking to see if compiler understands -Werror... " >&6; }
13065
save_CFLAGS="$CFLAGS"
13066
CFLAGS="$CFLAGS -Werror"
13068
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13069
/* end confdefs.h. */
13079
if ac_fn_c_try_compile "$LINENO"; then :
13084
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13085
CFLAGS="$save_CFLAGS"
13087
if test "X$flag_ok" = Xyes ; then
13094
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
13095
$as_echo "$flag_ok" >&6; }
13098
# Check whether --enable-Werror was given.
13099
if test "${enable_Werror+set}" = set; then :
13100
enableval=$enable_Werror; werror=$enableval
13107
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands -Wextra" >&5
13108
$as_echo_n "checking to see if compiler understands -Wextra... " >&6; }
13110
save_CFLAGS="$CFLAGS"
13111
CFLAGS="$CFLAGS -Wextra"
13113
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13114
/* end confdefs.h. */
13124
if ac_fn_c_try_compile "$LINENO"; then :
13129
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13130
CFLAGS="$save_CFLAGS"
13132
if test "X$flag_ok" = Xyes ; then
13139
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
13140
$as_echo "$flag_ok" >&6; }
13143
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands -Wno-missing-field-initializers" >&5
13144
$as_echo_n "checking to see if compiler understands -Wno-missing-field-initializers... " >&6; }
13146
save_CFLAGS="$CFLAGS"
13147
CFLAGS="$CFLAGS -Wno-missing-field-initializers"
13149
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13150
/* end confdefs.h. */
13160
if ac_fn_c_try_compile "$LINENO"; then :
13165
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13166
CFLAGS="$save_CFLAGS"
13168
if test "X$flag_ok" = Xyes ; then
13169
wno_missing_field_initializers=yes
13172
wno_missing_field_initializers=no
13175
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
13176
$as_echo "$flag_ok" >&6; }
13179
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands -Wno-unused-parameter" >&5
13180
$as_echo_n "checking to see if compiler understands -Wno-unused-parameter... " >&6; }
13182
save_CFLAGS="$CFLAGS"
13183
CFLAGS="$CFLAGS -Wno-unused-parameter"
13185
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13186
/* end confdefs.h. */
13196
if ac_fn_c_try_compile "$LINENO"; then :
13201
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13202
CFLAGS="$save_CFLAGS"
13204
if test "X$flag_ok" = Xyes ; then
13205
wno_unused_parameter=yes
13208
wno_unused_parameter=no
13211
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
13212
$as_echo "$flag_ok" >&6; }
13218
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands -Wdeclaration-after-statement" >&5
13219
$as_echo_n "checking to see if compiler understands -Wdeclaration-after-statement... " >&6; }
13221
save_CFLAGS="$CFLAGS"
13222
CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13224
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13225
/* end confdefs.h. */
13235
if ac_fn_c_try_compile "$LINENO"; then :
13240
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13241
CFLAGS="$save_CFLAGS"
13243
if test "X$flag_ok" = Xyes ; then
13244
ERROR_CFLAGS="$ERROR_CFLAGS -Wdeclaration-after-statement"
13250
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
13251
$as_echo "$flag_ok" >&6; }
13254
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands -Wshadow" >&5
13255
$as_echo_n "checking to see if compiler understands -Wshadow... " >&6; }
13257
save_CFLAGS="$CFLAGS"
13258
CFLAGS="$CFLAGS -Wshadow"
13260
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13261
/* end confdefs.h. */
13271
if ac_fn_c_try_compile "$LINENO"; then :
13276
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13277
CFLAGS="$save_CFLAGS"
13279
if test "X$flag_ok" = Xyes ; then
13280
ERROR_CFLAGS="$ERROR_CFLAGS -Wshadow"
13286
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
13287
$as_echo "$flag_ok" >&6; }
13290
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands -Wmissing-prototypes" >&5
13291
$as_echo_n "checking to see if compiler understands -Wmissing-prototypes... " >&6; }
13293
save_CFLAGS="$CFLAGS"
13294
CFLAGS="$CFLAGS -Wmissing-prototypes"
13296
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13297
/* end confdefs.h. */
13307
if ac_fn_c_try_compile "$LINENO"; then :
13312
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13313
CFLAGS="$save_CFLAGS"
13315
if test "X$flag_ok" = Xyes ; then
13316
ERROR_CFLAGS="$ERROR_CFLAGS -Wmissing-prototypes"
13322
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
13323
$as_echo "$flag_ok" >&6; }
13326
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands -Wmissing-declarations" >&5
13327
$as_echo_n "checking to see if compiler understands -Wmissing-declarations... " >&6; }
13329
save_CFLAGS="$CFLAGS"
13330
CFLAGS="$CFLAGS -Wmissing-declarations"
13332
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13333
/* end confdefs.h. */
13343
if ac_fn_c_try_compile "$LINENO"; then :
13348
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13349
CFLAGS="$save_CFLAGS"
13351
if test "X$flag_ok" = Xyes ; then
13352
ERROR_CFLAGS="$ERROR_CFLAGS -Wmissing-declarations"
13358
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
13359
$as_echo "$flag_ok" >&6; }
13361
# Disabled because some GTK+ headers (like gtkitemfactory.h) are bugged :(
13362
#AS_COMPILER_FLAG(-Wstrict-prototypes, ERROR_CFLAGS="$ERROR_CFLAGS -Wstrict-prototypes")
13366
# -----------------------------------------------------------
13368
# -----------------------------------------------------------
13370
GETTEXT_PACKAGE=ssh-contact
13373
cat >>confdefs.h <<_ACEOF
13374
#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
13379
for ac_header in locale.h
13381
ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
13382
if test "x$ac_cv_header_locale_h" = x""yes; then :
13383
cat >>confdefs.h <<_ACEOF
13384
#define HAVE_LOCALE_H 1
13391
if test $ac_cv_header_locale_h = yes; then
13392
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
13393
$as_echo_n "checking for LC_MESSAGES... " >&6; }
13394
if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
13395
$as_echo_n "(cached) " >&6
13397
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13398
/* end confdefs.h. */
13399
#include <locale.h>
13408
if ac_fn_c_try_link "$LINENO"; then :
13409
am_cv_val_LC_MESSAGES=yes
13411
am_cv_val_LC_MESSAGES=no
13413
rm -f core conftest.err conftest.$ac_objext \
13414
conftest$ac_exeext conftest.$ac_ext
13416
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
13417
$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
13418
if test $am_cv_val_LC_MESSAGES = yes; then
13420
$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
13427
gt_cv_have_gettext=no
13433
ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
13434
if test "x$ac_cv_header_libintl_h" = x""yes; then :
13435
gt_cv_func_dgettext_libintl="no"
13436
libintl_extra_libs=""
13439
# First check in libc
13441
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in libc" >&5
13442
$as_echo_n "checking for ngettext in libc... " >&6; }
13443
if test "${gt_cv_func_ngettext_libc+set}" = set; then :
13444
$as_echo_n "(cached) " >&6
13446
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13447
/* end confdefs.h. */
13449
#include <libintl.h>
13454
return !ngettext ("","", 1)
13459
if ac_fn_c_try_link "$LINENO"; then :
13460
gt_cv_func_ngettext_libc=yes
13462
gt_cv_func_ngettext_libc=no
13464
rm -f core conftest.err conftest.$ac_objext \
13465
conftest$ac_exeext conftest.$ac_ext
13468
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_ngettext_libc" >&5
13469
$as_echo "$gt_cv_func_ngettext_libc" >&6; }
13471
if test "$gt_cv_func_ngettext_libc" = "yes" ; then
13472
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in libc" >&5
13473
$as_echo_n "checking for dgettext in libc... " >&6; }
13474
if test "${gt_cv_func_dgettext_libc+set}" = set; then :
13475
$as_echo_n "(cached) " >&6
13477
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13478
/* end confdefs.h. */
13480
#include <libintl.h>
13485
return !dgettext ("","")
13490
if ac_fn_c_try_link "$LINENO"; then :
13491
gt_cv_func_dgettext_libc=yes
13493
gt_cv_func_dgettext_libc=no
13495
rm -f core conftest.err conftest.$ac_objext \
13496
conftest$ac_exeext conftest.$ac_ext
13499
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_dgettext_libc" >&5
13500
$as_echo "$gt_cv_func_dgettext_libc" >&6; }
13503
if test "$gt_cv_func_ngettext_libc" = "yes" ; then
13504
for ac_func in bind_textdomain_codeset
13506
ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
13507
if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then :
13508
cat >>confdefs.h <<_ACEOF
13509
#define HAVE_BIND_TEXTDOMAIN_CODESET 1
13518
# If we don't have everything we want, check in libintl
13520
if test "$gt_cv_func_dgettext_libc" != "yes" \
13521
|| test "$gt_cv_func_ngettext_libc" != "yes" \
13522
|| test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
13524
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5
13525
$as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
13526
if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then :
13527
$as_echo_n "(cached) " >&6
13529
ac_check_lib_save_LIBS=$LIBS
13530
LIBS="-lintl $LIBS"
13531
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13532
/* end confdefs.h. */
13534
/* Override any GCC internal prototype to avoid an error.
13535
Use char because int might match the return type of a GCC
13536
builtin and then its argument prototype would still apply. */
13540
char bindtextdomain ();
13544
return bindtextdomain ();
13549
if ac_fn_c_try_link "$LINENO"; then :
13550
ac_cv_lib_intl_bindtextdomain=yes
13552
ac_cv_lib_intl_bindtextdomain=no
13554
rm -f core conftest.err conftest.$ac_objext \
13555
conftest$ac_exeext conftest.$ac_ext
13556
LIBS=$ac_check_lib_save_LIBS
13558
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5
13559
$as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
13560
if test "x$ac_cv_lib_intl_bindtextdomain" = x""yes; then :
13561
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
13562
$as_echo_n "checking for ngettext in -lintl... " >&6; }
13563
if test "${ac_cv_lib_intl_ngettext+set}" = set; then :
13564
$as_echo_n "(cached) " >&6
13566
ac_check_lib_save_LIBS=$LIBS
13567
LIBS="-lintl $LIBS"
13568
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13569
/* end confdefs.h. */
13571
/* Override any GCC internal prototype to avoid an error.
13572
Use char because int might match the return type of a GCC
13573
builtin and then its argument prototype would still apply. */
13581
return ngettext ();
13586
if ac_fn_c_try_link "$LINENO"; then :
13587
ac_cv_lib_intl_ngettext=yes
13589
ac_cv_lib_intl_ngettext=no
13591
rm -f core conftest.err conftest.$ac_objext \
13592
conftest$ac_exeext conftest.$ac_ext
13593
LIBS=$ac_check_lib_save_LIBS
13595
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
13596
$as_echo "$ac_cv_lib_intl_ngettext" >&6; }
13597
if test "x$ac_cv_lib_intl_ngettext" = x""yes; then :
13598
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
13599
$as_echo_n "checking for dgettext in -lintl... " >&6; }
13600
if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
13601
$as_echo_n "(cached) " >&6
13603
ac_check_lib_save_LIBS=$LIBS
13604
LIBS="-lintl $LIBS"
13605
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13606
/* end confdefs.h. */
13608
/* Override any GCC internal prototype to avoid an error.
13609
Use char because int might match the return type of a GCC
13610
builtin and then its argument prototype would still apply. */
13618
return dgettext ();
13623
if ac_fn_c_try_link "$LINENO"; then :
13624
ac_cv_lib_intl_dgettext=yes
13626
ac_cv_lib_intl_dgettext=no
13628
rm -f core conftest.err conftest.$ac_objext \
13629
conftest$ac_exeext conftest.$ac_ext
13630
LIBS=$ac_check_lib_save_LIBS
13632
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
13633
$as_echo "$ac_cv_lib_intl_dgettext" >&6; }
13634
if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
13635
gt_cv_func_dgettext_libintl=yes
13643
if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
13644
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if -liconv is needed to use gettext" >&5
13645
$as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
13646
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
13648
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
13649
$as_echo_n "checking for ngettext in -lintl... " >&6; }
13650
if test "${ac_cv_lib_intl_ngettext+set}" = set; then :
13651
$as_echo_n "(cached) " >&6
13653
ac_check_lib_save_LIBS=$LIBS
13654
LIBS="-lintl -liconv $LIBS"
13655
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13656
/* end confdefs.h. */
13658
/* Override any GCC internal prototype to avoid an error.
13659
Use char because int might match the return type of a GCC
13660
builtin and then its argument prototype would still apply. */
13668
return ngettext ();
13673
if ac_fn_c_try_link "$LINENO"; then :
13674
ac_cv_lib_intl_ngettext=yes
13676
ac_cv_lib_intl_ngettext=no
13678
rm -f core conftest.err conftest.$ac_objext \
13679
conftest$ac_exeext conftest.$ac_ext
13680
LIBS=$ac_check_lib_save_LIBS
13682
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
13683
$as_echo "$ac_cv_lib_intl_ngettext" >&6; }
13684
if test "x$ac_cv_lib_intl_ngettext" = x""yes; then :
13685
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dcgettext in -lintl" >&5
13686
$as_echo_n "checking for dcgettext in -lintl... " >&6; }
13687
if test "${ac_cv_lib_intl_dcgettext+set}" = set; then :
13688
$as_echo_n "(cached) " >&6
13690
ac_check_lib_save_LIBS=$LIBS
13691
LIBS="-lintl -liconv $LIBS"
13692
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13693
/* end confdefs.h. */
13695
/* Override any GCC internal prototype to avoid an error.
13696
Use char because int might match the return type of a GCC
13697
builtin and then its argument prototype would still apply. */
13705
return dcgettext ();
13710
if ac_fn_c_try_link "$LINENO"; then :
13711
ac_cv_lib_intl_dcgettext=yes
13713
ac_cv_lib_intl_dcgettext=no
13715
rm -f core conftest.err conftest.$ac_objext \
13716
conftest$ac_exeext conftest.$ac_ext
13717
LIBS=$ac_check_lib_save_LIBS
13719
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dcgettext" >&5
13720
$as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
13721
if test "x$ac_cv_lib_intl_dcgettext" = x""yes; then :
13722
gt_cv_func_dgettext_libintl=yes
13723
libintl_extra_libs=-liconv
13735
# If we found libintl, then check in it for bind_textdomain_codeset();
13736
# we'll prefer libc if neither have bind_textdomain_codeset(),
13737
# and both have dgettext and ngettext
13739
if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
13740
glib_save_LIBS="$LIBS"
13741
LIBS="$LIBS -lintl $libintl_extra_libs"
13742
unset ac_cv_func_bind_textdomain_codeset
13743
for ac_func in bind_textdomain_codeset
13745
ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
13746
if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then :
13747
cat >>confdefs.h <<_ACEOF
13748
#define HAVE_BIND_TEXTDOMAIN_CODESET 1
13754
LIBS="$glib_save_LIBS"
13756
if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
13757
gt_cv_func_dgettext_libc=no
13759
if test "$gt_cv_func_dgettext_libc" = "yes" \
13760
&& test "$gt_cv_func_ngettext_libc" = "yes"; then
13761
gt_cv_func_dgettext_libintl=no
13767
if test "$gt_cv_func_dgettext_libc" = "yes" \
13768
|| test "$gt_cv_func_dgettext_libintl" = "yes"; then
13769
gt_cv_have_gettext=yes
13772
if test "$gt_cv_func_dgettext_libintl" = "yes"; then
13773
INTLLIBS="-lintl $libintl_extra_libs"
13776
if test "$gt_cv_have_gettext" = "yes"; then
13778
$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
13780
# Extract the first word of "msgfmt", so it can be a program name with args.
13781
set dummy msgfmt; ac_word=$2
13782
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13783
$as_echo_n "checking for $ac_word... " >&6; }
13784
if test "${ac_cv_path_MSGFMT+set}" = set; then :
13785
$as_echo_n "(cached) " >&6
13789
ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13792
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13793
for ac_dir in $PATH; do
13794
test -z "$ac_dir" && ac_dir=.
13795
if test -f $ac_dir/$ac_word; then
13796
if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
13797
ac_cv_path_MSGFMT="$ac_dir/$ac_word"
13803
test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
13807
MSGFMT="$ac_cv_path_MSGFMT"
13808
if test "$MSGFMT" != "no"; then
13809
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13810
$as_echo "$MSGFMT" >&6; }
13812
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13813
$as_echo "no" >&6; }
13815
if test "$MSGFMT" != "no"; then
13816
glib_save_LIBS="$LIBS"
13817
LIBS="$LIBS $INTLLIBS"
13818
for ac_func in dcgettext
13820
ac_fn_c_check_func "$LINENO" "dcgettext" "ac_cv_func_dcgettext"
13821
if test "x$ac_cv_func_dcgettext" = x""yes; then :
13822
cat >>confdefs.h <<_ACEOF
13823
#define HAVE_DCGETTEXT 1
13830
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if msgfmt accepts -c" >&5
13831
$as_echo_n "checking if msgfmt accepts -c... " >&6; }
13832
cat >conftest.foo <<_ACEOF
13836
"Content-Type: text/plain; charset=UTF-8\n"
13837
"Project-Id-Version: test 1.0\n"
13838
"PO-Revision-Date: 2007-02-15 12:01+0100\n"
13839
"Last-Translator: test <foo@bar.xx>\n"
13840
"Language-Team: C <LL@li.org>\n"
13841
"MIME-Version: 1.0\n"
13842
"Content-Transfer-Encoding: 8bit\n"
13845
if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$MSGFMT -c -o /dev/null conftest.foo"; } >&5
13846
($MSGFMT -c -o /dev/null conftest.foo) 2>&5
13848
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13849
test $ac_status = 0; }; then
13850
MSGFMT_OPTS=-c; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13851
$as_echo "yes" >&6; }
13852
else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13853
$as_echo "no" >&6; }
13854
echo "$as_me: failed input was:" >&5
13855
sed 's/^/| /' conftest.foo >&5
13858
# Extract the first word of "gmsgfmt", so it can be a program name with args.
13859
set dummy gmsgfmt; ac_word=$2
13860
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13861
$as_echo_n "checking for $ac_word... " >&6; }
13862
if test "${ac_cv_path_GMSGFMT+set}" = set; then :
13863
$as_echo_n "(cached) " >&6
13867
ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13870
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13871
for as_dir in $PATH
13874
test -z "$as_dir" && as_dir=.
13875
for ac_exec_ext in '' $ac_executable_extensions; do
13876
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13877
ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13878
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13885
test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13889
GMSGFMT=$ac_cv_path_GMSGFMT
13890
if test -n "$GMSGFMT"; then
13891
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13892
$as_echo "$GMSGFMT" >&6; }
13894
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13895
$as_echo "no" >&6; }
13899
# Extract the first word of "xgettext", so it can be a program name with args.
13900
set dummy xgettext; ac_word=$2
13901
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13902
$as_echo_n "checking for $ac_word... " >&6; }
13903
if test "${ac_cv_path_XGETTEXT+set}" = set; then :
13904
$as_echo_n "(cached) " >&6
13906
case "$XGETTEXT" in
13908
ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13911
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13912
for ac_dir in $PATH; do
13913
test -z "$ac_dir" && ac_dir=.
13914
if test -f $ac_dir/$ac_word; then
13915
if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
13916
ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
13922
test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13926
XGETTEXT="$ac_cv_path_XGETTEXT"
13927
if test "$XGETTEXT" != ":"; then
13928
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13929
$as_echo "$XGETTEXT" >&6; }
13931
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13932
$as_echo "no" >&6; }
13935
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13936
/* end confdefs.h. */
13941
extern int _nl_msg_cat_cntr;
13942
return _nl_msg_cat_cntr
13947
if ac_fn_c_try_link "$LINENO"; then :
13953
ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
13954
if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then :
13969
rm -f core conftest.err conftest.$ac_objext \
13970
conftest$ac_exeext conftest.$ac_ext
13971
LIBS="$glib_save_LIBS"
13974
gt_cv_have_gettext=no
13982
if test "$gt_cv_have_gettext" = "yes" ; then
13984
$as_echo "#define ENABLE_NLS 1" >>confdefs.h
13988
if test "$XGETTEXT" != ":"; then
13989
if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
13992
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
13993
$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
13998
# We need to process the po/ directory.
14001
ac_config_commands="$ac_config_commands default-1"
14004
for lang in $ALL_LINGUAS; do
14005
GMOFILES="$GMOFILES $lang.gmo"
14006
POFILES="$POFILES $lang.po"
14021
if test "$gt_cv_have_gettext" = "yes"; then
14022
if test "x$ALL_LINGUAS" = "x"; then
14025
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
14026
$as_echo_n "checking for catalogs to be installed... " >&6; }
14028
for presentlang in $ALL_LINGUAS; do
14030
if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
14031
desiredlanguages="$LINGUAS"
14033
desiredlanguages="$ALL_LINGUAS"
14035
for desiredlang in $desiredlanguages; do
14036
# Use the presentlang catalog if desiredlang is
14037
# a. equal to presentlang, or
14038
# b. a variant of presentlang (because in this case,
14039
# presentlang can be used as a fallback for messages
14040
# which are not translated in the desiredlang catalog).
14041
case "$desiredlang" in
14042
"$presentlang"*) useit=yes;;
14045
if test $useit = yes; then
14046
NEW_LINGUAS="$NEW_LINGUAS $presentlang"
14049
LINGUAS=$NEW_LINGUAS
14050
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
14051
$as_echo "$LINGUAS" >&6; }
14054
if test -n "$LINGUAS"; then
14055
for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
14060
if test -n "$ac_aux_dir"; then
14061
MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
14063
if test -z "$MKINSTALLDIRS"; then
14064
MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
14068
test -d po || mkdir po
14069
if test "x$srcdir" != "x."; then
14070
if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
14071
posrcprefix="$srcdir/"
14073
posrcprefix="../$srcdir/"
14079
sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
14080
< $srcdir/po/POTFILES.in > po/POTFILES
14083
# -----------------------------------------------------------
14085
# -----------------------------------------------------------
14086
# Check whether --enable-vinagre was given.
14087
if test "${enable_vinagre+set}" = set; then :
14088
enableval=$enable_vinagre;
14094
if test "x$enable_vinagre" != "xno"; then
14097
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for VINAGRE" >&5
14098
$as_echo_n "checking for VINAGRE... " >&6; }
14100
if test -n "$VINAGRE_CFLAGS"; then
14101
pkg_cv_VINAGRE_CFLAGS="$VINAGRE_CFLAGS"
14102
elif test -n "$PKG_CONFIG"; then
14103
if test -n "$PKG_CONFIG" && \
14104
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
14108
($PKG_CONFIG --exists --print-errors "
14113
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14114
test $ac_status = 0; }; then
14115
pkg_cv_VINAGRE_CFLAGS=`$PKG_CONFIG --cflags "
14125
if test -n "$VINAGRE_LIBS"; then
14126
pkg_cv_VINAGRE_LIBS="$VINAGRE_LIBS"
14127
elif test -n "$PKG_CONFIG"; then
14128
if test -n "$PKG_CONFIG" && \
14129
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
14133
($PKG_CONFIG --exists --print-errors "
14138
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14139
test $ac_status = 0; }; then
14140
pkg_cv_VINAGRE_LIBS=`$PKG_CONFIG --libs "
14153
if test $pkg_failed = yes; then
14154
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14155
$as_echo "no" >&6; }
14157
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14158
_pkg_short_errors_supported=yes
14160
_pkg_short_errors_supported=no
14162
if test $_pkg_short_errors_supported = yes; then
14163
VINAGRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "
14168
VINAGRE_PKG_ERRORS=`$PKG_CONFIG --print-errors "
14173
# Put the nasty error message in config.log where it belongs
14174
echo "$VINAGRE_PKG_ERRORS" >&5
14177
elif test $pkg_failed = untried; then
14178
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14179
$as_echo "no" >&6; }
14182
VINAGRE_CFLAGS=$pkg_cv_VINAGRE_CFLAGS
14183
VINAGRE_LIBS=$pkg_cv_VINAGRE_LIBS
14184
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14185
$as_echo "yes" >&6; }
14189
if test "x$have_vinagre" = "xyes"; then
14191
$as_echo "#define HAVE_VINAGRE 1" >>confdefs.h
14198
if test "x$enable_vinagre" = "xyes" -a "x$have_vinagre" != "xyes"; then
14199
as_fn_error $? "Could not find vinagre dependencies." "$LINENO" 5
14201
if test "x$have_vinagre" = "xyes"; then
14203
HAVE_VINAGRE_FALSE='#'
14205
HAVE_VINAGRE_TRUE='#'
14206
HAVE_VINAGRE_FALSE=
14210
# -----------------------------------------------------------
14213
$as_echo "#define TUBE_SERVICE \"x-ssh-contact\"" >>confdefs.h
14216
ac_config_files="$ac_config_files Makefile po/Makefile.in src/Makefile src/vinagre/Makefile"
12020
14218
cat >confcache <<\_ACEOF
12021
14219
# This file is a shell script that caches the results of configure