4552
4421
EGREP="$ac_cv_path_EGREP"
4555
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4556
$as_echo_n "checking for ANSI C header files... " >&6; }
4557
if test "${ac_cv_header_stdc+set}" = set; then
4558
$as_echo_n "(cached) " >&6
4560
cat >conftest.$ac_ext <<_ACEOF
4563
cat confdefs.h >>conftest.$ac_ext
4564
cat >>conftest.$ac_ext <<_ACEOF
4565
/* end confdefs.h. */
4579
rm -f conftest.$ac_objext
4580
if { (ac_try="$ac_compile"
4582
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4583
*) ac_try_echo=$ac_try;;
4585
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4586
$as_echo "$ac_try_echo") >&5
4587
(eval "$ac_compile") 2>conftest.er1
4589
grep -v '^ *+' conftest.er1 >conftest.err
4591
cat conftest.err >&5
4592
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593
(exit $ac_status); } && {
4594
test -z "$ac_c_werror_flag" ||
4595
test ! -s conftest.err
4596
} && test -s conftest.$ac_objext; then
4597
ac_cv_header_stdc=yes
4599
$as_echo "$as_me: failed program was:" >&5
4600
sed 's/^/| /' conftest.$ac_ext >&5
4602
ac_cv_header_stdc=no
4605
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4607
if test $ac_cv_header_stdc = yes; then
4608
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4609
cat >conftest.$ac_ext <<_ACEOF
4612
cat confdefs.h >>conftest.$ac_ext
4613
cat >>conftest.$ac_ext <<_ACEOF
4614
/* end confdefs.h. */
4618
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4619
$EGREP "memchr" >/dev/null 2>&1; then
4622
ac_cv_header_stdc=no
4628
if test $ac_cv_header_stdc = yes; then
4629
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4630
cat >conftest.$ac_ext <<_ACEOF
4633
cat confdefs.h >>conftest.$ac_ext
4634
cat >>conftest.$ac_ext <<_ACEOF
4635
/* end confdefs.h. */
4639
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4640
$EGREP "free" >/dev/null 2>&1; then
4643
ac_cv_header_stdc=no
4649
if test $ac_cv_header_stdc = yes; then
4650
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4651
if test "$cross_compiling" = yes; then
4654
cat >conftest.$ac_ext <<_ACEOF
4657
cat confdefs.h >>conftest.$ac_ext
4658
cat >>conftest.$ac_ext <<_ACEOF
4659
/* end confdefs.h. */
4662
#if ((' ' & 0x0FF) == 0x020)
4663
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4664
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4666
# define ISLOWER(c) \
4667
(('a' <= (c) && (c) <= 'i') \
4668
|| ('j' <= (c) && (c) <= 'r') \
4669
|| ('s' <= (c) && (c) <= 'z'))
4670
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4673
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4678
for (i = 0; i < 256; i++)
4679
if (XOR (islower (i), ISLOWER (i))
4680
|| toupper (i) != TOUPPER (i))
4685
rm -f conftest$ac_exeext
4686
if { (ac_try="$ac_link"
4688
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4689
*) ac_try_echo=$ac_try;;
4691
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4692
$as_echo "$ac_try_echo") >&5
4693
(eval "$ac_link") 2>&5
4695
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4697
{ (case "(($ac_try" in
4698
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4699
*) ac_try_echo=$ac_try;;
4701
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4702
$as_echo "$ac_try_echo") >&5
4703
(eval "$ac_try") 2>&5
4705
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706
(exit $ac_status); }; }; then
4709
$as_echo "$as_me: program exited with status $ac_status" >&5
4710
$as_echo "$as_me: failed program was:" >&5
4711
sed 's/^/| /' conftest.$ac_ext >&5
4714
ac_cv_header_stdc=no
4716
rm -rf conftest.dSYM
4717
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4723
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4724
$as_echo "$ac_cv_header_stdc" >&6; }
4725
if test $ac_cv_header_stdc = yes; then
4727
cat >>confdefs.h <<\_ACEOF
4728
#define STDC_HEADERS 1
4733
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4743
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4744
inttypes.h stdint.h unistd.h
4746
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4747
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4748
$as_echo_n "checking for $ac_header... " >&6; }
4749
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4750
$as_echo_n "(cached) " >&6
4752
cat >conftest.$ac_ext <<_ACEOF
4755
cat confdefs.h >>conftest.$ac_ext
4756
cat >>conftest.$ac_ext <<_ACEOF
4757
/* end confdefs.h. */
4758
$ac_includes_default
4760
#include <$ac_header>
4762
rm -f conftest.$ac_objext
4763
if { (ac_try="$ac_compile"
4765
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4766
*) ac_try_echo=$ac_try;;
4768
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4769
$as_echo "$ac_try_echo") >&5
4770
(eval "$ac_compile") 2>conftest.er1
4772
grep -v '^ *+' conftest.er1 >conftest.err
4774
cat conftest.err >&5
4775
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776
(exit $ac_status); } && {
4777
test -z "$ac_c_werror_flag" ||
4778
test ! -s conftest.err
4779
} && test -s conftest.$ac_objext; then
4780
eval "$as_ac_Header=yes"
4782
$as_echo "$as_me: failed program was:" >&5
4783
sed 's/^/| /' conftest.$ac_ext >&5
4785
eval "$as_ac_Header=no"
4788
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4790
ac_res=`eval 'as_val=${'$as_ac_Header'}
4791
$as_echo "$as_val"'`
4792
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4793
$as_echo "$ac_res" >&6; }
4794
as_val=`eval 'as_val=${'$as_ac_Header'}
4795
$as_echo "$as_val"'`
4796
if test "x$as_val" = x""yes; then
4797
cat >>confdefs.h <<_ACEOF
4798
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4807
if test "${ac_cv_header_minix_config_h+set}" = set; then
4808
{ $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4809
$as_echo_n "checking for minix/config.h... " >&6; }
4810
if test "${ac_cv_header_minix_config_h+set}" = set; then
4811
$as_echo_n "(cached) " >&6
4813
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4814
$as_echo "$ac_cv_header_minix_config_h" >&6; }
4816
# Is the header compilable?
4817
{ $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4818
$as_echo_n "checking minix/config.h usability... " >&6; }
4819
cat >conftest.$ac_ext <<_ACEOF
4822
cat confdefs.h >>conftest.$ac_ext
4823
cat >>conftest.$ac_ext <<_ACEOF
4824
/* end confdefs.h. */
4825
$ac_includes_default
4826
#include <minix/config.h>
4828
rm -f conftest.$ac_objext
4829
if { (ac_try="$ac_compile"
4831
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4832
*) ac_try_echo=$ac_try;;
4834
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4835
$as_echo "$ac_try_echo") >&5
4836
(eval "$ac_compile") 2>conftest.er1
4838
grep -v '^ *+' conftest.er1 >conftest.err
4840
cat conftest.err >&5
4841
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842
(exit $ac_status); } && {
4843
test -z "$ac_c_werror_flag" ||
4844
test ! -s conftest.err
4845
} && test -s conftest.$ac_objext; then
4846
ac_header_compiler=yes
4848
$as_echo "$as_me: failed program was:" >&5
4849
sed 's/^/| /' conftest.$ac_ext >&5
4851
ac_header_compiler=no
4854
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4855
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4856
$as_echo "$ac_header_compiler" >&6; }
4858
# Is the header present?
4859
{ $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4860
$as_echo_n "checking minix/config.h presence... " >&6; }
4861
cat >conftest.$ac_ext <<_ACEOF
4864
cat confdefs.h >>conftest.$ac_ext
4865
cat >>conftest.$ac_ext <<_ACEOF
4866
/* end confdefs.h. */
4867
#include <minix/config.h>
4869
if { (ac_try="$ac_cpp conftest.$ac_ext"
4871
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4872
*) ac_try_echo=$ac_try;;
4874
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4875
$as_echo "$ac_try_echo") >&5
4876
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4878
grep -v '^ *+' conftest.er1 >conftest.err
4880
cat conftest.err >&5
4881
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882
(exit $ac_status); } >/dev/null && {
4883
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4884
test ! -s conftest.err
4886
ac_header_preproc=yes
4888
$as_echo "$as_me: failed program was:" >&5
4889
sed 's/^/| /' conftest.$ac_ext >&5
4891
ac_header_preproc=no
4894
rm -f conftest.err conftest.$ac_ext
4895
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4896
$as_echo "$ac_header_preproc" >&6; }
4898
# So? What about this header?
4899
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4901
{ $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4902
$as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4903
{ $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4904
$as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4905
ac_header_preproc=yes
4908
{ $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4909
$as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4910
{ $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4911
$as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4912
{ $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4913
$as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4914
{ $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4915
$as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4916
{ $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4917
$as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4918
{ $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4919
$as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4923
{ $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4924
$as_echo_n "checking for minix/config.h... " >&6; }
4925
if test "${ac_cv_header_minix_config_h+set}" = set; then
4926
$as_echo_n "(cached) " >&6
4928
ac_cv_header_minix_config_h=$ac_header_preproc
4930
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4931
$as_echo "$ac_cv_header_minix_config_h" >&6; }
4934
if test "x$ac_cv_header_minix_config_h" = x""yes; then
4941
if test "$MINIX" = yes; then
4943
cat >>confdefs.h <<\_ACEOF
4944
#define _POSIX_SOURCE 1
4948
cat >>confdefs.h <<\_ACEOF
4949
#define _POSIX_1_SOURCE 2
4953
cat >>confdefs.h <<\_ACEOF
4961
{ $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4962
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4963
if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4964
$as_echo_n "(cached) " >&6
4966
cat >conftest.$ac_ext <<_ACEOF
4969
cat confdefs.h >>conftest.$ac_ext
4970
cat >>conftest.$ac_ext <<_ACEOF
4971
/* end confdefs.h. */
4973
# define __EXTENSIONS__ 1
4974
$ac_includes_default
4983
rm -f conftest.$ac_objext
4984
if { (ac_try="$ac_compile"
4986
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4987
*) ac_try_echo=$ac_try;;
4989
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4990
$as_echo "$ac_try_echo") >&5
4991
(eval "$ac_compile") 2>conftest.er1
4993
grep -v '^ *+' conftest.er1 >conftest.err
4995
cat conftest.err >&5
4996
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997
(exit $ac_status); } && {
4998
test -z "$ac_c_werror_flag" ||
4999
test ! -s conftest.err
5000
} && test -s conftest.$ac_objext; then
5001
ac_cv_safe_to_define___extensions__=yes
5003
$as_echo "$as_me: failed program was:" >&5
5004
sed 's/^/| /' conftest.$ac_ext >&5
5006
ac_cv_safe_to_define___extensions__=no
5009
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5011
{ $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
5012
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5013
test $ac_cv_safe_to_define___extensions__ = yes &&
5014
cat >>confdefs.h <<\_ACEOF
5015
#define __EXTENSIONS__ 1
5018
cat >>confdefs.h <<\_ACEOF
5019
#define _ALL_SOURCE 1
5022
cat >>confdefs.h <<\_ACEOF
5023
#define _GNU_SOURCE 1
5026
cat >>confdefs.h <<\_ACEOF
5027
#define _POSIX_PTHREAD_SEMANTICS 1
5030
cat >>confdefs.h <<\_ACEOF
5031
#define _TANDEM_SOURCE 1
5044
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5045
# for constant arguments. Useless!
5046
{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
5047
$as_echo_n "checking for working alloca.h... " >&6; }
5048
if test "${ac_cv_working_alloca_h+set}" = set; then
5049
$as_echo_n "(cached) " >&6
5051
cat >conftest.$ac_ext <<_ACEOF
5054
cat confdefs.h >>conftest.$ac_ext
5055
cat >>conftest.$ac_ext <<_ACEOF
5056
/* end confdefs.h. */
5061
char *p = (char *) alloca (2 * sizeof (int));
5067
rm -f conftest.$ac_objext conftest$ac_exeext
5068
if { (ac_try="$ac_link"
5070
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5071
*) ac_try_echo=$ac_try;;
5073
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5074
$as_echo "$ac_try_echo") >&5
5075
(eval "$ac_link") 2>conftest.er1
5077
grep -v '^ *+' conftest.er1 >conftest.err
5079
cat conftest.err >&5
5080
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081
(exit $ac_status); } && {
5082
test -z "$ac_c_werror_flag" ||
5083
test ! -s conftest.err
5084
} && test -s conftest$ac_exeext && {
5085
test "$cross_compiling" = yes ||
5086
$as_test_x conftest$ac_exeext
5088
ac_cv_working_alloca_h=yes
5090
$as_echo "$as_me: failed program was:" >&5
5091
sed 's/^/| /' conftest.$ac_ext >&5
5093
ac_cv_working_alloca_h=no
5096
rm -rf conftest.dSYM
5097
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5098
conftest$ac_exeext conftest.$ac_ext
5100
{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5101
$as_echo "$ac_cv_working_alloca_h" >&6; }
5102
if test $ac_cv_working_alloca_h = yes; then
5104
cat >>confdefs.h <<\_ACEOF
5105
#define HAVE_ALLOCA_H 1
5110
{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
5111
$as_echo_n "checking for alloca... " >&6; }
5112
if test "${ac_cv_func_alloca_works+set}" = set; then
5113
$as_echo_n "(cached) " >&6
5115
cat >conftest.$ac_ext <<_ACEOF
5118
cat confdefs.h >>conftest.$ac_ext
5119
cat >>conftest.$ac_ext <<_ACEOF
5120
/* end confdefs.h. */
5122
# define alloca __builtin_alloca
5125
# include <malloc.h>
5126
# define alloca _alloca
5128
# ifdef HAVE_ALLOCA_H
5129
# include <alloca.h>
5134
# ifndef alloca /* predefined by HP cc +Olibcalls */
5145
char *p = (char *) alloca (1);
5151
rm -f conftest.$ac_objext conftest$ac_exeext
5152
if { (ac_try="$ac_link"
5154
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5155
*) ac_try_echo=$ac_try;;
5157
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5158
$as_echo "$ac_try_echo") >&5
5159
(eval "$ac_link") 2>conftest.er1
5161
grep -v '^ *+' conftest.er1 >conftest.err
5163
cat conftest.err >&5
5164
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165
(exit $ac_status); } && {
5166
test -z "$ac_c_werror_flag" ||
5167
test ! -s conftest.err
5168
} && test -s conftest$ac_exeext && {
5169
test "$cross_compiling" = yes ||
5170
$as_test_x conftest$ac_exeext
5172
ac_cv_func_alloca_works=yes
5174
$as_echo "$as_me: failed program was:" >&5
5175
sed 's/^/| /' conftest.$ac_ext >&5
5177
ac_cv_func_alloca_works=no
5180
rm -rf conftest.dSYM
5181
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5182
conftest$ac_exeext conftest.$ac_ext
5184
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5185
$as_echo "$ac_cv_func_alloca_works" >&6; }
5187
if test $ac_cv_func_alloca_works = yes; then
5189
cat >>confdefs.h <<\_ACEOF
5190
#define HAVE_ALLOCA 1
5194
# The SVR3 libPW and SVR4 libucb both contain incompatible functions
5195
# that cause trouble. Some versions do not even contain alloca or
5196
# contain a buggy version. If you still want to use their alloca,
5197
# use ar to extract alloca.o from them instead of compiling alloca.c.
5203
ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5205
cat >>confdefs.h <<\_ACEOF
5210
{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5211
$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5212
if test "${ac_cv_os_cray+set}" = set; then
5213
$as_echo_n "(cached) " >&6
5215
cat >conftest.$ac_ext <<_ACEOF
5218
cat confdefs.h >>conftest.$ac_ext
5219
cat >>conftest.$ac_ext <<_ACEOF
5220
/* end confdefs.h. */
5221
#if defined CRAY && ! defined CRAY2
5228
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5229
$EGREP "webecray" >/dev/null 2>&1; then
5237
{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5238
$as_echo "$ac_cv_os_cray" >&6; }
5239
if test $ac_cv_os_cray = yes; then
5240
for ac_func in _getb67 GETB67 getb67; do
5241
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5242
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
5243
$as_echo_n "checking for $ac_func... " >&6; }
5244
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5245
$as_echo_n "(cached) " >&6
5247
cat >conftest.$ac_ext <<_ACEOF
5250
cat confdefs.h >>conftest.$ac_ext
5251
cat >>conftest.$ac_ext <<_ACEOF
5252
/* end confdefs.h. */
5253
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5254
For example, HP-UX 11i <limits.h> declares gettimeofday. */
5255
#define $ac_func innocuous_$ac_func
5257
/* System header to define __stub macros and hopefully few prototypes,
5258
which can conflict with char $ac_func (); below.
5259
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5260
<limits.h> exists even on freestanding compilers. */
5263
# include <limits.h>
5265
# include <assert.h>
5270
/* Override any GCC internal prototype to avoid an error.
5271
Use char because int might match the return type of a GCC
5272
builtin and then its argument prototype would still apply. */
5277
/* The GNU C library defines this for functions which it implements
5278
to always fail with ENOSYS. Some functions are actually named
5279
something starting with __ and the normal name is an alias. */
5280
#if defined __stub_$ac_func || defined __stub___$ac_func
5292
rm -f conftest.$ac_objext conftest$ac_exeext
5293
if { (ac_try="$ac_link"
5295
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5296
*) ac_try_echo=$ac_try;;
5298
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5299
$as_echo "$ac_try_echo") >&5
5300
(eval "$ac_link") 2>conftest.er1
5302
grep -v '^ *+' conftest.er1 >conftest.err
5304
cat conftest.err >&5
5305
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306
(exit $ac_status); } && {
5307
test -z "$ac_c_werror_flag" ||
5308
test ! -s conftest.err
5309
} && test -s conftest$ac_exeext && {
5310
test "$cross_compiling" = yes ||
5311
$as_test_x conftest$ac_exeext
5313
eval "$as_ac_var=yes"
5315
$as_echo "$as_me: failed program was:" >&5
5316
sed 's/^/| /' conftest.$ac_ext >&5
5318
eval "$as_ac_var=no"
5321
rm -rf conftest.dSYM
5322
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5323
conftest$ac_exeext conftest.$ac_ext
5325
ac_res=`eval 'as_val=${'$as_ac_var'}
5326
$as_echo "$as_val"'`
5327
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5328
$as_echo "$ac_res" >&6; }
5329
as_val=`eval 'as_val=${'$as_ac_var'}
5330
$as_echo "$as_val"'`
5331
if test "x$as_val" = x""yes; then
5333
cat >>confdefs.h <<_ACEOF
5334
#define CRAY_STACKSEG_END $ac_func
5343
{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5344
$as_echo_n "checking stack direction for C alloca... " >&6; }
5345
if test "${ac_cv_c_stack_direction+set}" = set; then
5346
$as_echo_n "(cached) " >&6
5348
if test "$cross_compiling" = yes; then
5349
ac_cv_c_stack_direction=0
5351
cat >conftest.$ac_ext <<_ACEOF
5354
cat confdefs.h >>conftest.$ac_ext
5355
cat >>conftest.$ac_ext <<_ACEOF
5356
/* end confdefs.h. */
5357
$ac_includes_default
5359
find_stack_direction ()
5361
static char *addr = 0;
5366
return find_stack_direction ();
5369
return (&dummy > addr) ? 1 : -1;
5375
return find_stack_direction () < 0;
5378
rm -f conftest$ac_exeext
5379
if { (ac_try="$ac_link"
5381
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5382
*) ac_try_echo=$ac_try;;
5384
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5385
$as_echo "$ac_try_echo") >&5
5386
(eval "$ac_link") 2>&5
5388
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5390
{ (case "(($ac_try" in
5391
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5392
*) ac_try_echo=$ac_try;;
5394
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5395
$as_echo "$ac_try_echo") >&5
5396
(eval "$ac_try") 2>&5
5398
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399
(exit $ac_status); }; }; then
5400
ac_cv_c_stack_direction=1
5402
$as_echo "$as_me: program exited with status $ac_status" >&5
5403
$as_echo "$as_me: failed program was:" >&5
5404
sed 's/^/| /' conftest.$ac_ext >&5
5407
ac_cv_c_stack_direction=-1
5409
rm -rf conftest.dSYM
5410
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5415
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5416
$as_echo "$ac_cv_c_stack_direction" >&6; }
5418
cat >>confdefs.h <<_ACEOF
5419
#define STACK_DIRECTION $ac_cv_c_stack_direction
5428
HAVE_DECL_INET_NTOP=1;
5429
HAVE_DECL_INET_PTON=1;
5437
for ac_header in $gl_header_list
5439
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5440
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5441
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5442
$as_echo_n "checking for $ac_header... " >&6; }
5443
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5444
$as_echo_n "(cached) " >&6
5446
ac_res=`eval 'as_val=${'$as_ac_Header'}
5447
$as_echo "$as_val"'`
5448
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5449
$as_echo "$ac_res" >&6; }
5451
# Is the header compilable?
5452
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5453
$as_echo_n "checking $ac_header usability... " >&6; }
5454
cat >conftest.$ac_ext <<_ACEOF
5457
cat confdefs.h >>conftest.$ac_ext
5458
cat >>conftest.$ac_ext <<_ACEOF
5459
/* end confdefs.h. */
5460
$ac_includes_default
5461
#include <$ac_header>
5463
rm -f conftest.$ac_objext
5464
if { (ac_try="$ac_compile"
5466
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5467
*) ac_try_echo=$ac_try;;
5469
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5470
$as_echo "$ac_try_echo") >&5
5471
(eval "$ac_compile") 2>conftest.er1
5473
grep -v '^ *+' conftest.er1 >conftest.err
5475
cat conftest.err >&5
5476
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477
(exit $ac_status); } && {
5478
test -z "$ac_c_werror_flag" ||
5479
test ! -s conftest.err
5480
} && test -s conftest.$ac_objext; then
5481
ac_header_compiler=yes
5483
$as_echo "$as_me: failed program was:" >&5
5484
sed 's/^/| /' conftest.$ac_ext >&5
5486
ac_header_compiler=no
5489
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5490
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5491
$as_echo "$ac_header_compiler" >&6; }
5493
# Is the header present?
5494
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5495
$as_echo_n "checking $ac_header presence... " >&6; }
5496
cat >conftest.$ac_ext <<_ACEOF
5499
cat confdefs.h >>conftest.$ac_ext
5500
cat >>conftest.$ac_ext <<_ACEOF
5501
/* end confdefs.h. */
5502
#include <$ac_header>
5504
if { (ac_try="$ac_cpp conftest.$ac_ext"
5506
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5507
*) ac_try_echo=$ac_try;;
5509
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5510
$as_echo "$ac_try_echo") >&5
5511
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5513
grep -v '^ *+' conftest.er1 >conftest.err
5515
cat conftest.err >&5
5516
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517
(exit $ac_status); } >/dev/null && {
5518
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5519
test ! -s conftest.err
5521
ac_header_preproc=yes
5523
$as_echo "$as_me: failed program was:" >&5
5524
sed 's/^/| /' conftest.$ac_ext >&5
5526
ac_header_preproc=no
5529
rm -f conftest.err conftest.$ac_ext
5530
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5531
$as_echo "$ac_header_preproc" >&6; }
5533
# So? What about this header?
5534
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5536
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5537
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5538
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5539
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5540
ac_header_preproc=yes
5543
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5544
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5545
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5546
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5547
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5548
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5549
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5550
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5551
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5552
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5553
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5554
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5558
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5559
$as_echo_n "checking for $ac_header... " >&6; }
5560
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5561
$as_echo_n "(cached) " >&6
5563
eval "$as_ac_Header=\$ac_header_preproc"
5565
ac_res=`eval 'as_val=${'$as_ac_Header'}
5566
$as_echo "$as_val"'`
5567
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5568
$as_echo "$ac_res" >&6; }
5571
as_val=`eval 'as_val=${'$as_ac_Header'}
5572
$as_echo "$as_val"'`
5573
if test "x$as_val" = x""yes; then
5574
cat >>confdefs.h <<_ACEOF
5575
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5589
{ $as_echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
5590
$as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
5591
if test "${gl_cv_have_include_next+set}" = set; then
5592
$as_echo_n "(cached) " >&6
5594
rm -rf conftestd1 conftestd2
5595
mkdir conftestd1 conftestd2
5596
cat <<EOF > conftestd1/conftest.h
5597
#define DEFINED_IN_CONFTESTD1
5599
#include_next <conftest.h>
5600
#ifdef DEFINED_IN_CONFTESTD2
5603
#error "include_next doesn't work"
5606
cat <<EOF > conftestd2/conftest.h
5607
#ifndef DEFINED_IN_CONFTESTD1
5608
#error "include_next test doesn't work"
5610
#define DEFINED_IN_CONFTESTD2
5612
save_CPPFLAGS="$CPPFLAGS"
5613
CPPFLAGS="$CPPFLAGS -Iconftestd1 -Iconftestd2"
5614
cat >conftest.$ac_ext <<_ACEOF
5615
#include <conftest.h>
5617
rm -f conftest.$ac_objext
5618
if { (ac_try="$ac_compile"
5620
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5621
*) ac_try_echo=$ac_try;;
5623
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5624
$as_echo "$ac_try_echo") >&5
5625
(eval "$ac_compile") 2>conftest.er1
5627
grep -v '^ *+' conftest.er1 >conftest.err
5629
cat conftest.err >&5
5630
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631
(exit $ac_status); } && {
5632
test -z "$ac_c_werror_flag" ||
5633
test ! -s conftest.err
5634
} && test -s conftest.$ac_objext; then
5635
gl_cv_have_include_next=yes
5637
$as_echo "$as_me: failed program was:" >&5
5638
sed 's/^/| /' conftest.$ac_ext >&5
5640
gl_cv_have_include_next=no
5643
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5644
CPPFLAGS="$save_CPPFLAGS"
5645
rm -rf conftestd1 conftestd2
5648
{ $as_echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
5649
$as_echo "$gl_cv_have_include_next" >&6; }
5650
PRAGMA_SYSTEM_HEADER=
5651
if test $gl_cv_have_include_next = yes; then
5652
INCLUDE_NEXT=include_next
5653
if test -n "$GCC"; then
5654
PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
5657
INCLUDE_NEXT=include
5667
GNULIB_GETPEERNAME=0;
5668
GNULIB_GETSOCKNAME=0;
5669
GNULIB_GETSOCKOPT=0;
5675
GNULIB_SETSOCKOPT=0;
5677
{ $as_echo "$as_me:$LINENO: checking for inline" >&5
5678
$as_echo_n "checking for inline... " >&6; }
5679
if test "${ac_cv_c_inline+set}" = set; then
5680
$as_echo_n "(cached) " >&6
5683
for ac_kw in inline __inline__ __inline; do
5684
cat >conftest.$ac_ext <<_ACEOF
5687
cat confdefs.h >>conftest.$ac_ext
5688
cat >>conftest.$ac_ext <<_ACEOF
5689
/* end confdefs.h. */
5692
static $ac_kw foo_t static_foo () {return 0; }
5693
$ac_kw foo_t foo () {return 0; }
5697
rm -f conftest.$ac_objext
5698
if { (ac_try="$ac_compile"
5700
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5701
*) ac_try_echo=$ac_try;;
5703
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5704
$as_echo "$ac_try_echo") >&5
5705
(eval "$ac_compile") 2>conftest.er1
5707
grep -v '^ *+' conftest.er1 >conftest.err
5709
cat conftest.err >&5
5710
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711
(exit $ac_status); } && {
5712
test -z "$ac_c_werror_flag" ||
5713
test ! -s conftest.err
5714
} && test -s conftest.$ac_objext; then
5715
ac_cv_c_inline=$ac_kw
5717
$as_echo "$as_me: failed program was:" >&5
5718
sed 's/^/| /' conftest.$ac_ext >&5
5723
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5724
test "$ac_cv_c_inline" != no && break
5728
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5729
$as_echo "$ac_cv_c_inline" >&6; }
5732
case $ac_cv_c_inline in
5735
case $ac_cv_c_inline in
5737
*) ac_val=$ac_cv_c_inline;;
5739
cat >>confdefs.h <<_ACEOF
5741
#define inline $ac_val
5757
{ $as_echo "$as_me:$LINENO: checking whether <sys/socket.h> is self-contained" >&5
5758
$as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
5759
if test "${gl_cv_header_sys_socket_h_selfcontained+set}" = set; then
5760
$as_echo_n "(cached) " >&6
5763
cat >conftest.$ac_ext <<_ACEOF
5766
cat confdefs.h >>conftest.$ac_ext
5767
cat >>conftest.$ac_ext <<_ACEOF
5768
/* end confdefs.h. */
5769
#include <sys/socket.h>
5778
rm -f conftest.$ac_objext
5779
if { (ac_try="$ac_compile"
5781
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5782
*) ac_try_echo=$ac_try;;
5784
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5785
$as_echo "$ac_try_echo") >&5
5786
(eval "$ac_compile") 2>conftest.er1
5788
grep -v '^ *+' conftest.er1 >conftest.err
5790
cat conftest.err >&5
5791
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792
(exit $ac_status); } && {
5793
test -z "$ac_c_werror_flag" ||
5794
test ! -s conftest.err
5795
} && test -s conftest.$ac_objext; then
5796
gl_cv_header_sys_socket_h_selfcontained=yes
5798
$as_echo "$as_me: failed program was:" >&5
5799
sed 's/^/| /' conftest.$ac_ext >&5
5801
gl_cv_header_sys_socket_h_selfcontained=no
5804
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5807
{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
5808
$as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
5809
if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
5812
for ac_func in shutdown
5814
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5815
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
5816
$as_echo_n "checking for $ac_func... " >&6; }
5817
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5818
$as_echo_n "(cached) " >&6
5820
cat >conftest.$ac_ext <<_ACEOF
5823
cat confdefs.h >>conftest.$ac_ext
5824
cat >>conftest.$ac_ext <<_ACEOF
5825
/* end confdefs.h. */
5826
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5827
For example, HP-UX 11i <limits.h> declares gettimeofday. */
5828
#define $ac_func innocuous_$ac_func
5830
/* System header to define __stub macros and hopefully few prototypes,
5831
which can conflict with char $ac_func (); below.
5832
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5833
<limits.h> exists even on freestanding compilers. */
5836
# include <limits.h>
5838
# include <assert.h>
5843
/* Override any GCC internal prototype to avoid an error.
5844
Use char because int might match the return type of a GCC
5845
builtin and then its argument prototype would still apply. */
5850
/* The GNU C library defines this for functions which it implements
5851
to always fail with ENOSYS. Some functions are actually named
5852
something starting with __ and the normal name is an alias. */
5853
#if defined __stub_$ac_func || defined __stub___$ac_func
5865
rm -f conftest.$ac_objext conftest$ac_exeext
5866
if { (ac_try="$ac_link"
5868
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5869
*) ac_try_echo=$ac_try;;
5871
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5872
$as_echo "$ac_try_echo") >&5
5873
(eval "$ac_link") 2>conftest.er1
5875
grep -v '^ *+' conftest.er1 >conftest.err
5877
cat conftest.err >&5
5878
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879
(exit $ac_status); } && {
5880
test -z "$ac_c_werror_flag" ||
5881
test ! -s conftest.err
5882
} && test -s conftest$ac_exeext && {
5883
test "$cross_compiling" = yes ||
5884
$as_test_x conftest$ac_exeext
5886
eval "$as_ac_var=yes"
5888
$as_echo "$as_me: failed program was:" >&5
5889
sed 's/^/| /' conftest.$ac_ext >&5
5891
eval "$as_ac_var=no"
5894
rm -rf conftest.dSYM
5895
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5896
conftest$ac_exeext conftest.$ac_ext
5898
ac_res=`eval 'as_val=${'$as_ac_var'}
5899
$as_echo "$as_val"'`
5900
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5901
$as_echo "$ac_res" >&6; }
5902
as_val=`eval 'as_val=${'$as_ac_var'}
5903
$as_echo "$as_val"'`
5904
if test "x$as_val" = x""yes; then
5905
cat >>confdefs.h <<_ACEOF
5906
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5912
if test $ac_cv_func_shutdown = yes; then
5913
{ $as_echo "$as_me:$LINENO: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
5914
$as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
5915
if test "${gl_cv_header_sys_socket_h_shut+set}" = set; then
5916
$as_echo_n "(cached) " >&6
5919
cat >conftest.$ac_ext <<_ACEOF
5922
cat confdefs.h >>conftest.$ac_ext
5923
cat >>conftest.$ac_ext <<_ACEOF
5924
/* end confdefs.h. */
5925
#include <sys/socket.h>
5929
int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
5934
rm -f conftest.$ac_objext
5935
if { (ac_try="$ac_compile"
5937
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5938
*) ac_try_echo=$ac_try;;
5940
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5941
$as_echo "$ac_try_echo") >&5
5942
(eval "$ac_compile") 2>conftest.er1
5944
grep -v '^ *+' conftest.er1 >conftest.err
5946
cat conftest.err >&5
5947
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948
(exit $ac_status); } && {
5949
test -z "$ac_c_werror_flag" ||
5950
test ! -s conftest.err
5951
} && test -s conftest.$ac_objext; then
5952
gl_cv_header_sys_socket_h_shut=yes
5954
$as_echo "$as_me: failed program was:" >&5
5955
sed 's/^/| /' conftest.$ac_ext >&5
5957
gl_cv_header_sys_socket_h_shut=no
5960
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5963
{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_sys_socket_h_shut" >&5
5964
$as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
5965
if test $gl_cv_header_sys_socket_h_shut = no; then
5966
SYS_SOCKET_H='sys/socket.h'
5970
SYS_SOCKET_H='sys/socket.h'
5972
if test -n "$SYS_SOCKET_H"; then
5984
if test $gl_cv_have_include_next = yes; then
5985
gl_cv_next_sys_socket_h='<'sys/socket.h'>'
5987
{ $as_echo "$as_me:$LINENO: checking absolute name of <sys/socket.h>" >&5
5988
$as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
5989
if test "${gl_cv_next_sys_socket_h+set}" = set; then
5990
$as_echo_n "(cached) " >&6
5993
if test $ac_cv_header_sys_socket_h = yes; then
5994
cat >conftest.$ac_ext <<_ACEOF
5997
cat confdefs.h >>conftest.$ac_ext
5998
cat >>conftest.$ac_ext <<_ACEOF
5999
/* end confdefs.h. */
6000
#include <sys/socket.h>
6003
gl_cv_next_sys_socket_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6004
sed -n '\#/sys/socket.h#{
6005
s#.*"\(.*/sys/socket.h\)".*#\1#
6011
gl_cv_next_sys_socket_h='<'sys/socket.h'>'
6015
{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_sys_socket_h" >&5
6016
$as_echo "$gl_cv_next_sys_socket_h" >&6; }
6018
NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h
6022
if test $ac_cv_header_sys_socket_h = yes; then
6028
for ac_header in ws2tcpip.h
6030
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6031
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6032
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6033
$as_echo_n "checking for $ac_header... " >&6; }
6034
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6035
$as_echo_n "(cached) " >&6
6037
ac_res=`eval 'as_val=${'$as_ac_Header'}
6038
$as_echo "$as_val"'`
6039
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6040
$as_echo "$ac_res" >&6; }
6042
# Is the header compilable?
6043
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6044
$as_echo_n "checking $ac_header usability... " >&6; }
6045
cat >conftest.$ac_ext <<_ACEOF
6048
cat confdefs.h >>conftest.$ac_ext
6049
cat >>conftest.$ac_ext <<_ACEOF
6050
/* end confdefs.h. */
6051
$ac_includes_default
6052
#include <$ac_header>
6054
rm -f conftest.$ac_objext
6055
if { (ac_try="$ac_compile"
6057
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6058
*) ac_try_echo=$ac_try;;
6060
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6061
$as_echo "$ac_try_echo") >&5
6062
(eval "$ac_compile") 2>conftest.er1
6064
grep -v '^ *+' conftest.er1 >conftest.err
6066
cat conftest.err >&5
6067
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068
(exit $ac_status); } && {
6069
test -z "$ac_c_werror_flag" ||
6070
test ! -s conftest.err
6071
} && test -s conftest.$ac_objext; then
6072
ac_header_compiler=yes
6074
$as_echo "$as_me: failed program was:" >&5
6075
sed 's/^/| /' conftest.$ac_ext >&5
6077
ac_header_compiler=no
6080
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6081
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6082
$as_echo "$ac_header_compiler" >&6; }
6084
# Is the header present?
6085
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6086
$as_echo_n "checking $ac_header presence... " >&6; }
6087
cat >conftest.$ac_ext <<_ACEOF
6090
cat confdefs.h >>conftest.$ac_ext
6091
cat >>conftest.$ac_ext <<_ACEOF
6092
/* end confdefs.h. */
6093
#include <$ac_header>
6095
if { (ac_try="$ac_cpp conftest.$ac_ext"
6097
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6098
*) ac_try_echo=$ac_try;;
6100
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6101
$as_echo "$ac_try_echo") >&5
6102
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6104
grep -v '^ *+' conftest.er1 >conftest.err
6106
cat conftest.err >&5
6107
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6108
(exit $ac_status); } >/dev/null && {
6109
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6110
test ! -s conftest.err
6112
ac_header_preproc=yes
6114
$as_echo "$as_me: failed program was:" >&5
6115
sed 's/^/| /' conftest.$ac_ext >&5
6117
ac_header_preproc=no
6120
rm -f conftest.err conftest.$ac_ext
6121
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6122
$as_echo "$ac_header_preproc" >&6; }
6124
# So? What about this header?
6125
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6127
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6128
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6129
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6130
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6131
ac_header_preproc=yes
6134
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6135
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6136
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6137
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6138
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6139
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6140
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6141
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6142
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6143
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6144
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6145
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6149
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6150
$as_echo_n "checking for $ac_header... " >&6; }
6151
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6152
$as_echo_n "(cached) " >&6
6154
eval "$as_ac_Header=\$ac_header_preproc"
6156
ac_res=`eval 'as_val=${'$as_ac_Header'}
6157
$as_echo "$as_val"'`
6158
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6159
$as_echo "$ac_res" >&6; }
6162
as_val=`eval 'as_val=${'$as_ac_Header'}
6163
$as_echo "$as_val"'`
6164
if test "x$as_val" = x""yes; then
6165
cat >>confdefs.h <<_ACEOF
6166
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6173
if test $ac_cv_header_ws2tcpip_h = yes; then
6187
if test $ac_cv_header_sys_socket_h != yes; then
6189
for ac_header in winsock2.h
6191
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6192
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6193
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6194
$as_echo_n "checking for $ac_header... " >&6; }
6195
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6196
$as_echo_n "(cached) " >&6
6198
ac_res=`eval 'as_val=${'$as_ac_Header'}
6199
$as_echo "$as_val"'`
6200
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6201
$as_echo "$ac_res" >&6; }
6203
# Is the header compilable?
6204
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6205
$as_echo_n "checking $ac_header usability... " >&6; }
6206
cat >conftest.$ac_ext <<_ACEOF
6209
cat confdefs.h >>conftest.$ac_ext
6210
cat >>conftest.$ac_ext <<_ACEOF
6211
/* end confdefs.h. */
6212
$ac_includes_default
6213
#include <$ac_header>
6215
rm -f conftest.$ac_objext
6216
if { (ac_try="$ac_compile"
6218
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6219
*) ac_try_echo=$ac_try;;
6221
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6222
$as_echo "$ac_try_echo") >&5
6223
(eval "$ac_compile") 2>conftest.er1
6225
grep -v '^ *+' conftest.er1 >conftest.err
6227
cat conftest.err >&5
6228
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229
(exit $ac_status); } && {
6230
test -z "$ac_c_werror_flag" ||
6231
test ! -s conftest.err
6232
} && test -s conftest.$ac_objext; then
6233
ac_header_compiler=yes
6235
$as_echo "$as_me: failed program was:" >&5
6236
sed 's/^/| /' conftest.$ac_ext >&5
6238
ac_header_compiler=no
6241
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6242
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6243
$as_echo "$ac_header_compiler" >&6; }
6245
# Is the header present?
6246
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6247
$as_echo_n "checking $ac_header presence... " >&6; }
6248
cat >conftest.$ac_ext <<_ACEOF
6251
cat confdefs.h >>conftest.$ac_ext
6252
cat >>conftest.$ac_ext <<_ACEOF
6253
/* end confdefs.h. */
6254
#include <$ac_header>
6256
if { (ac_try="$ac_cpp conftest.$ac_ext"
6258
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6259
*) ac_try_echo=$ac_try;;
6261
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6262
$as_echo "$ac_try_echo") >&5
6263
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6265
grep -v '^ *+' conftest.er1 >conftest.err
6267
cat conftest.err >&5
6268
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269
(exit $ac_status); } >/dev/null && {
6270
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6271
test ! -s conftest.err
6273
ac_header_preproc=yes
6275
$as_echo "$as_me: failed program was:" >&5
6276
sed 's/^/| /' conftest.$ac_ext >&5
6278
ac_header_preproc=no
6281
rm -f conftest.err conftest.$ac_ext
6282
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6283
$as_echo "$ac_header_preproc" >&6; }
6285
# So? What about this header?
6286
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6288
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6289
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6290
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6291
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6292
ac_header_preproc=yes
6295
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6296
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6297
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6298
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6299
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6300
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6301
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6302
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6303
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6304
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6305
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6306
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6310
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6311
$as_echo_n "checking for $ac_header... " >&6; }
6312
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6313
$as_echo_n "(cached) " >&6
6315
eval "$as_ac_Header=\$ac_header_preproc"
6317
ac_res=`eval 'as_val=${'$as_ac_Header'}
6318
$as_echo "$as_val"'`
6319
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6320
$as_echo "$ac_res" >&6; }
6323
as_val=`eval 'as_val=${'$as_ac_Header'}
6324
$as_echo "$as_val"'`
6325
if test "x$as_val" = x""yes; then
6326
cat >>confdefs.h <<_ACEOF
6327
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6335
if test "$ac_cv_header_winsock2_h" = yes; then
6355
{ $as_echo "$as_me:$LINENO: checking for complete errno.h" >&5
6356
$as_echo_n "checking for complete errno.h... " >&6; }
6357
if test "${gl_cv_header_errno_h_complete+set}" = set; then
6358
$as_echo_n "(cached) " >&6
6361
cat >conftest.$ac_ext <<_ACEOF
6364
cat confdefs.h >>conftest.$ac_ext
6365
cat >>conftest.$ac_ext <<_ACEOF
6366
/* end confdefs.h. */
6375
#if !defined ENOLINK
6381
#if !defined EMULTIHOP
6384
#if !defined EBADMSG
6387
#if !defined EOVERFLOW
6390
#if !defined ENOTSUP
6393
#if !defined ECANCELED
6398
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6399
$EGREP "booboo" >/dev/null 2>&1; then
6400
gl_cv_header_errno_h_complete=no
6402
gl_cv_header_errno_h_complete=yes
6408
{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_complete" >&5
6409
$as_echo "$gl_cv_header_errno_h_complete" >&6; }
6410
if test $gl_cv_header_errno_h_complete = yes; then
6424
if test $gl_cv_have_include_next = yes; then
6425
gl_cv_next_errno_h='<'errno.h'>'
6427
{ $as_echo "$as_me:$LINENO: checking absolute name of <errno.h>" >&5
6428
$as_echo_n "checking absolute name of <errno.h>... " >&6; }
6429
if test "${gl_cv_next_errno_h+set}" = set; then
6430
$as_echo_n "(cached) " >&6
6433
if test $ac_cv_header_errno_h = yes; then
6434
cat >conftest.$ac_ext <<_ACEOF
6437
cat confdefs.h >>conftest.$ac_ext
6438
cat >>conftest.$ac_ext <<_ACEOF
6439
/* end confdefs.h. */
6443
gl_cv_next_errno_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6444
sed -n '\#/errno.h#{
6445
s#.*"\(.*/errno.h\)".*#\1#
6451
gl_cv_next_errno_h='<'errno.h'>'
6455
{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_errno_h" >&5
6456
$as_echo "$gl_cv_next_errno_h" >&6; }
6458
NEXT_ERRNO_H=$gl_cv_next_errno_h
6466
if test -n "$ERRNO_H"; then
6467
{ $as_echo "$as_me:$LINENO: checking for EMULTIHOP value" >&5
6468
$as_echo_n "checking for EMULTIHOP value... " >&6; }
6469
if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then
6470
$as_echo_n "(cached) " >&6
6473
cat >conftest.$ac_ext <<_ACEOF
6476
cat confdefs.h >>conftest.$ac_ext
6477
cat >>conftest.$ac_ext <<_ACEOF
6478
/* end confdefs.h. */
6486
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6487
$EGREP "yes" >/dev/null 2>&1; then
6488
gl_cv_header_errno_h_EMULTIHOP=yes
6490
gl_cv_header_errno_h_EMULTIHOP=no
6494
if test $gl_cv_header_errno_h_EMULTIHOP = no; then
6495
cat >conftest.$ac_ext <<_ACEOF
6498
cat confdefs.h >>conftest.$ac_ext
6499
cat >>conftest.$ac_ext <<_ACEOF
6500
/* end confdefs.h. */
6502
#define _XOPEN_SOURCE_EXTENDED 1
6509
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6510
$EGREP "yes" >/dev/null 2>&1; then
6511
gl_cv_header_errno_h_EMULTIHOP=hidden
6515
if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
6516
if test "$cross_compiling" = yes; then
6517
# Depending upon the size, compute the lo and hi bounds.
6518
cat >conftest.$ac_ext <<_ACEOF
6521
cat confdefs.h >>conftest.$ac_ext
6522
cat >>conftest.$ac_ext <<_ACEOF
6523
/* end confdefs.h. */
6525
#define _XOPEN_SOURCE_EXTENDED 1
6527
/* The following two lines are a workaround against an autoconf-2.52 bug. */
6534
static int test_array [1 - 2 * !((EMULTIHOP) >= 0)];
6541
rm -f conftest.$ac_objext
6542
if { (ac_try="$ac_compile"
6544
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6545
*) ac_try_echo=$ac_try;;
6547
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6548
$as_echo "$ac_try_echo") >&5
6549
(eval "$ac_compile") 2>conftest.er1
6551
grep -v '^ *+' conftest.er1 >conftest.err
6553
cat conftest.err >&5
6554
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555
(exit $ac_status); } && {
6556
test -z "$ac_c_werror_flag" ||
6557
test ! -s conftest.err
6558
} && test -s conftest.$ac_objext; then
6561
cat >conftest.$ac_ext <<_ACEOF
6564
cat confdefs.h >>conftest.$ac_ext
6565
cat >>conftest.$ac_ext <<_ACEOF
6566
/* end confdefs.h. */
6568
#define _XOPEN_SOURCE_EXTENDED 1
6570
/* The following two lines are a workaround against an autoconf-2.52 bug. */
6577
static int test_array [1 - 2 * !((EMULTIHOP) <= $ac_mid)];
6584
rm -f conftest.$ac_objext
6585
if { (ac_try="$ac_compile"
6587
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6588
*) ac_try_echo=$ac_try;;
6590
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6591
$as_echo "$ac_try_echo") >&5
6592
(eval "$ac_compile") 2>conftest.er1
6594
grep -v '^ *+' conftest.er1 >conftest.err
6596
cat conftest.err >&5
6597
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598
(exit $ac_status); } && {
6599
test -z "$ac_c_werror_flag" ||
6600
test ! -s conftest.err
6601
} && test -s conftest.$ac_objext; then
6602
ac_hi=$ac_mid; break
6604
$as_echo "$as_me: failed program was:" >&5
6605
sed 's/^/| /' conftest.$ac_ext >&5
6607
ac_lo=`expr $ac_mid + 1`
6608
if test $ac_lo -le $ac_mid; then
6612
ac_mid=`expr 2 '*' $ac_mid + 1`
6615
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6618
$as_echo "$as_me: failed program was:" >&5
6619
sed 's/^/| /' conftest.$ac_ext >&5
6621
cat >conftest.$ac_ext <<_ACEOF
6624
cat confdefs.h >>conftest.$ac_ext
6625
cat >>conftest.$ac_ext <<_ACEOF
6626
/* end confdefs.h. */
6628
#define _XOPEN_SOURCE_EXTENDED 1
6630
/* The following two lines are a workaround against an autoconf-2.52 bug. */
6637
static int test_array [1 - 2 * !((EMULTIHOP) < 0)];
6644
rm -f conftest.$ac_objext
6645
if { (ac_try="$ac_compile"
6647
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6648
*) ac_try_echo=$ac_try;;
6650
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6651
$as_echo "$ac_try_echo") >&5
6652
(eval "$ac_compile") 2>conftest.er1
6654
grep -v '^ *+' conftest.er1 >conftest.err
6656
cat conftest.err >&5
6657
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658
(exit $ac_status); } && {
6659
test -z "$ac_c_werror_flag" ||
6660
test ! -s conftest.err
6661
} && test -s conftest.$ac_objext; then
6664
cat >conftest.$ac_ext <<_ACEOF
6667
cat confdefs.h >>conftest.$ac_ext
6668
cat >>conftest.$ac_ext <<_ACEOF
6669
/* end confdefs.h. */
6671
#define _XOPEN_SOURCE_EXTENDED 1
6673
/* The following two lines are a workaround against an autoconf-2.52 bug. */
6680
static int test_array [1 - 2 * !((EMULTIHOP) >= $ac_mid)];
6687
rm -f conftest.$ac_objext
6688
if { (ac_try="$ac_compile"
6690
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6691
*) ac_try_echo=$ac_try;;
6693
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6694
$as_echo "$ac_try_echo") >&5
6695
(eval "$ac_compile") 2>conftest.er1
6697
grep -v '^ *+' conftest.er1 >conftest.err
6699
cat conftest.err >&5
6700
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701
(exit $ac_status); } && {
6702
test -z "$ac_c_werror_flag" ||
6703
test ! -s conftest.err
6704
} && test -s conftest.$ac_objext; then
6705
ac_lo=$ac_mid; break
6707
$as_echo "$as_me: failed program was:" >&5
6708
sed 's/^/| /' conftest.$ac_ext >&5
6710
ac_hi=`expr '(' $ac_mid ')' - 1`
6711
if test $ac_mid -le $ac_hi; then
6715
ac_mid=`expr 2 '*' $ac_mid`
6718
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6721
$as_echo "$as_me: failed program was:" >&5
6722
sed 's/^/| /' conftest.$ac_ext >&5
6727
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6730
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6731
# Binary search between lo and hi bounds.
6732
while test "x$ac_lo" != "x$ac_hi"; do
6733
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6734
cat >conftest.$ac_ext <<_ACEOF
6737
cat confdefs.h >>conftest.$ac_ext
6738
cat >>conftest.$ac_ext <<_ACEOF
6739
/* end confdefs.h. */
6741
#define _XOPEN_SOURCE_EXTENDED 1
6743
/* The following two lines are a workaround against an autoconf-2.52 bug. */
6750
static int test_array [1 - 2 * !((EMULTIHOP) <= $ac_mid)];
6757
rm -f conftest.$ac_objext
6758
if { (ac_try="$ac_compile"
6760
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6761
*) ac_try_echo=$ac_try;;
6763
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6764
$as_echo "$ac_try_echo") >&5
6765
(eval "$ac_compile") 2>conftest.er1
6767
grep -v '^ *+' conftest.er1 >conftest.err
6769
cat conftest.err >&5
6770
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771
(exit $ac_status); } && {
6772
test -z "$ac_c_werror_flag" ||
6773
test ! -s conftest.err
6774
} && test -s conftest.$ac_objext; then
6777
$as_echo "$as_me: failed program was:" >&5
6778
sed 's/^/| /' conftest.$ac_ext >&5
6780
ac_lo=`expr '(' $ac_mid ')' + 1`
6783
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6786
?*) gl_cv_header_errno_h_EMULTIHOP=$ac_lo;;
6790
cat >conftest.$ac_ext <<_ACEOF
6793
cat confdefs.h >>conftest.$ac_ext
6794
cat >>conftest.$ac_ext <<_ACEOF
6795
/* end confdefs.h. */
6797
#define _XOPEN_SOURCE_EXTENDED 1
6799
/* The following two lines are a workaround against an autoconf-2.52 bug. */
6803
static long int longval () { return EMULTIHOP; }
6804
static unsigned long int ulongval () { return EMULTIHOP; }
6811
FILE *f = fopen ("conftest.val", "w");
6814
if ((EMULTIHOP) < 0)
6816
long int i = longval ();
6817
if (i != (EMULTIHOP))
6819
fprintf (f, "%ld", i);
6823
unsigned long int i = ulongval ();
6824
if (i != (EMULTIHOP))
6826
fprintf (f, "%lu", i);
6828
/* Do not output a trailing newline, as this causes \r\n confusion
6829
on some platforms. */
6830
return ferror (f) || fclose (f) != 0;
6836
rm -f conftest$ac_exeext
6837
if { (ac_try="$ac_link"
6839
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6840
*) ac_try_echo=$ac_try;;
6842
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6843
$as_echo "$ac_try_echo") >&5
6844
(eval "$ac_link") 2>&5
6846
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6847
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6848
{ (case "(($ac_try" in
6849
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6850
*) ac_try_echo=$ac_try;;
6852
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6853
$as_echo "$ac_try_echo") >&5
6854
(eval "$ac_try") 2>&5
6856
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857
(exit $ac_status); }; }; then
6858
gl_cv_header_errno_h_EMULTIHOP=`cat conftest.val`
6860
$as_echo "$as_me: program exited with status $ac_status" >&5
6861
$as_echo "$as_me: failed program was:" >&5
6862
sed 's/^/| /' conftest.$ac_ext >&5
6865
rm -rf conftest.dSYM
6866
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6873
{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
6874
$as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
6875
case $gl_cv_header_errno_h_EMULTIHOP in
6877
EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
6880
EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
6888
if test -n "$ERRNO_H"; then
6889
{ $as_echo "$as_me:$LINENO: checking for ENOLINK value" >&5
6890
$as_echo_n "checking for ENOLINK value... " >&6; }
6891
if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then
6892
$as_echo_n "(cached) " >&6
6895
cat >conftest.$ac_ext <<_ACEOF
6898
cat confdefs.h >>conftest.$ac_ext
6899
cat >>conftest.$ac_ext <<_ACEOF
6900
/* end confdefs.h. */
6908
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6909
$EGREP "yes" >/dev/null 2>&1; then
6910
gl_cv_header_errno_h_ENOLINK=yes
6912
gl_cv_header_errno_h_ENOLINK=no
6916
if test $gl_cv_header_errno_h_ENOLINK = no; then
6917
cat >conftest.$ac_ext <<_ACEOF
6920
cat confdefs.h >>conftest.$ac_ext
6921
cat >>conftest.$ac_ext <<_ACEOF
6922
/* end confdefs.h. */
6924
#define _XOPEN_SOURCE_EXTENDED 1
6931
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6932
$EGREP "yes" >/dev/null 2>&1; then
6933
gl_cv_header_errno_h_ENOLINK=hidden
6937
if test $gl_cv_header_errno_h_ENOLINK = hidden; then
6938
if test "$cross_compiling" = yes; then
6939
# Depending upon the size, compute the lo and hi bounds.
6940
cat >conftest.$ac_ext <<_ACEOF
6943
cat confdefs.h >>conftest.$ac_ext
6944
cat >>conftest.$ac_ext <<_ACEOF
6945
/* end confdefs.h. */
6947
#define _XOPEN_SOURCE_EXTENDED 1
6949
/* The following two lines are a workaround against an autoconf-2.52 bug. */
6956
static int test_array [1 - 2 * !((ENOLINK) >= 0)];
6963
rm -f conftest.$ac_objext
6964
if { (ac_try="$ac_compile"
6966
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6967
*) ac_try_echo=$ac_try;;
6969
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6970
$as_echo "$ac_try_echo") >&5
6971
(eval "$ac_compile") 2>conftest.er1
6973
grep -v '^ *+' conftest.er1 >conftest.err
6975
cat conftest.err >&5
6976
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977
(exit $ac_status); } && {
6978
test -z "$ac_c_werror_flag" ||
6979
test ! -s conftest.err
6980
} && test -s conftest.$ac_objext; then
6983
cat >conftest.$ac_ext <<_ACEOF
6986
cat confdefs.h >>conftest.$ac_ext
6987
cat >>conftest.$ac_ext <<_ACEOF
6988
/* end confdefs.h. */
6990
#define _XOPEN_SOURCE_EXTENDED 1
6992
/* The following two lines are a workaround against an autoconf-2.52 bug. */
6999
static int test_array [1 - 2 * !((ENOLINK) <= $ac_mid)];
7006
rm -f conftest.$ac_objext
7007
if { (ac_try="$ac_compile"
7009
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7010
*) ac_try_echo=$ac_try;;
7012
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7013
$as_echo "$ac_try_echo") >&5
7014
(eval "$ac_compile") 2>conftest.er1
7016
grep -v '^ *+' conftest.er1 >conftest.err
7018
cat conftest.err >&5
7019
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020
(exit $ac_status); } && {
7021
test -z "$ac_c_werror_flag" ||
7022
test ! -s conftest.err
7023
} && test -s conftest.$ac_objext; then
7024
ac_hi=$ac_mid; break
7026
$as_echo "$as_me: failed program was:" >&5
7027
sed 's/^/| /' conftest.$ac_ext >&5
7029
ac_lo=`expr $ac_mid + 1`
7030
if test $ac_lo -le $ac_mid; then
7034
ac_mid=`expr 2 '*' $ac_mid + 1`
7037
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7040
$as_echo "$as_me: failed program was:" >&5
7041
sed 's/^/| /' conftest.$ac_ext >&5
7043
cat >conftest.$ac_ext <<_ACEOF
7046
cat confdefs.h >>conftest.$ac_ext
7047
cat >>conftest.$ac_ext <<_ACEOF
7048
/* end confdefs.h. */
7050
#define _XOPEN_SOURCE_EXTENDED 1
7052
/* The following two lines are a workaround against an autoconf-2.52 bug. */
7059
static int test_array [1 - 2 * !((ENOLINK) < 0)];
7066
rm -f conftest.$ac_objext
7067
if { (ac_try="$ac_compile"
7069
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7070
*) ac_try_echo=$ac_try;;
7072
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7073
$as_echo "$ac_try_echo") >&5
7074
(eval "$ac_compile") 2>conftest.er1
7076
grep -v '^ *+' conftest.er1 >conftest.err
7078
cat conftest.err >&5
7079
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080
(exit $ac_status); } && {
7081
test -z "$ac_c_werror_flag" ||
7082
test ! -s conftest.err
7083
} && test -s conftest.$ac_objext; then
7086
cat >conftest.$ac_ext <<_ACEOF
7089
cat confdefs.h >>conftest.$ac_ext
7090
cat >>conftest.$ac_ext <<_ACEOF
7091
/* end confdefs.h. */
7093
#define _XOPEN_SOURCE_EXTENDED 1
7095
/* The following two lines are a workaround against an autoconf-2.52 bug. */
7102
static int test_array [1 - 2 * !((ENOLINK) >= $ac_mid)];
7109
rm -f conftest.$ac_objext
7110
if { (ac_try="$ac_compile"
7112
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7113
*) ac_try_echo=$ac_try;;
7115
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7116
$as_echo "$ac_try_echo") >&5
7117
(eval "$ac_compile") 2>conftest.er1
7119
grep -v '^ *+' conftest.er1 >conftest.err
7121
cat conftest.err >&5
7122
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7123
(exit $ac_status); } && {
7124
test -z "$ac_c_werror_flag" ||
7125
test ! -s conftest.err
7126
} && test -s conftest.$ac_objext; then
7127
ac_lo=$ac_mid; break
7129
$as_echo "$as_me: failed program was:" >&5
7130
sed 's/^/| /' conftest.$ac_ext >&5
7132
ac_hi=`expr '(' $ac_mid ')' - 1`
7133
if test $ac_mid -le $ac_hi; then
7137
ac_mid=`expr 2 '*' $ac_mid`
7140
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7143
$as_echo "$as_me: failed program was:" >&5
7144
sed 's/^/| /' conftest.$ac_ext >&5
7149
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7152
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7153
# Binary search between lo and hi bounds.
7154
while test "x$ac_lo" != "x$ac_hi"; do
7155
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7156
cat >conftest.$ac_ext <<_ACEOF
7159
cat confdefs.h >>conftest.$ac_ext
7160
cat >>conftest.$ac_ext <<_ACEOF
7161
/* end confdefs.h. */
7163
#define _XOPEN_SOURCE_EXTENDED 1
7165
/* The following two lines are a workaround against an autoconf-2.52 bug. */
7172
static int test_array [1 - 2 * !((ENOLINK) <= $ac_mid)];
7179
rm -f conftest.$ac_objext
7180
if { (ac_try="$ac_compile"
7182
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7183
*) ac_try_echo=$ac_try;;
7185
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7186
$as_echo "$ac_try_echo") >&5
7187
(eval "$ac_compile") 2>conftest.er1
7189
grep -v '^ *+' conftest.er1 >conftest.err
7191
cat conftest.err >&5
7192
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193
(exit $ac_status); } && {
7194
test -z "$ac_c_werror_flag" ||
7195
test ! -s conftest.err
7196
} && test -s conftest.$ac_objext; then
7199
$as_echo "$as_me: failed program was:" >&5
7200
sed 's/^/| /' conftest.$ac_ext >&5
7202
ac_lo=`expr '(' $ac_mid ')' + 1`
7205
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7208
?*) gl_cv_header_errno_h_ENOLINK=$ac_lo;;
7212
cat >conftest.$ac_ext <<_ACEOF
7215
cat confdefs.h >>conftest.$ac_ext
7216
cat >>conftest.$ac_ext <<_ACEOF
7217
/* end confdefs.h. */
7219
#define _XOPEN_SOURCE_EXTENDED 1
7221
/* The following two lines are a workaround against an autoconf-2.52 bug. */
7225
static long int longval () { return ENOLINK; }
7226
static unsigned long int ulongval () { return ENOLINK; }
7233
FILE *f = fopen ("conftest.val", "w");
7238
long int i = longval ();
7241
fprintf (f, "%ld", i);
7245
unsigned long int i = ulongval ();
7248
fprintf (f, "%lu", i);
7250
/* Do not output a trailing newline, as this causes \r\n confusion
7251
on some platforms. */
7252
return ferror (f) || fclose (f) != 0;
7258
rm -f conftest$ac_exeext
7259
if { (ac_try="$ac_link"
7261
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7262
*) ac_try_echo=$ac_try;;
7264
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7265
$as_echo "$ac_try_echo") >&5
7266
(eval "$ac_link") 2>&5
7268
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7270
{ (case "(($ac_try" in
7271
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7272
*) ac_try_echo=$ac_try;;
7274
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7275
$as_echo "$ac_try_echo") >&5
7276
(eval "$ac_try") 2>&5
7278
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279
(exit $ac_status); }; }; then
7280
gl_cv_header_errno_h_ENOLINK=`cat conftest.val`
7282
$as_echo "$as_me: program exited with status $ac_status" >&5
7283
$as_echo "$as_me: failed program was:" >&5
7284
sed 's/^/| /' conftest.$ac_ext >&5
7287
rm -rf conftest.dSYM
7288
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7295
{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_ENOLINK" >&5
7296
$as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
7297
case $gl_cv_header_errno_h_ENOLINK in
7299
ENOLINK_HIDDEN=0; ENOLINK_VALUE=
7302
ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
7310
if test -n "$ERRNO_H"; then
7311
{ $as_echo "$as_me:$LINENO: checking for EOVERFLOW value" >&5
7312
$as_echo_n "checking for EOVERFLOW value... " >&6; }
7313
if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then
7314
$as_echo_n "(cached) " >&6
7317
cat >conftest.$ac_ext <<_ACEOF
7320
cat confdefs.h >>conftest.$ac_ext
7321
cat >>conftest.$ac_ext <<_ACEOF
7322
/* end confdefs.h. */
7330
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7331
$EGREP "yes" >/dev/null 2>&1; then
7332
gl_cv_header_errno_h_EOVERFLOW=yes
7334
gl_cv_header_errno_h_EOVERFLOW=no
7338
if test $gl_cv_header_errno_h_EOVERFLOW = no; then
7339
cat >conftest.$ac_ext <<_ACEOF
7342
cat confdefs.h >>conftest.$ac_ext
7343
cat >>conftest.$ac_ext <<_ACEOF
7344
/* end confdefs.h. */
7346
#define _XOPEN_SOURCE_EXTENDED 1
7353
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7354
$EGREP "yes" >/dev/null 2>&1; then
7355
gl_cv_header_errno_h_EOVERFLOW=hidden
7359
if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
7360
if test "$cross_compiling" = yes; then
7361
# Depending upon the size, compute the lo and hi bounds.
7362
cat >conftest.$ac_ext <<_ACEOF
7365
cat confdefs.h >>conftest.$ac_ext
7366
cat >>conftest.$ac_ext <<_ACEOF
7367
/* end confdefs.h. */
7369
#define _XOPEN_SOURCE_EXTENDED 1
7371
/* The following two lines are a workaround against an autoconf-2.52 bug. */
7378
static int test_array [1 - 2 * !((EOVERFLOW) >= 0)];
7385
rm -f conftest.$ac_objext
7386
if { (ac_try="$ac_compile"
7388
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7389
*) ac_try_echo=$ac_try;;
7391
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7392
$as_echo "$ac_try_echo") >&5
7393
(eval "$ac_compile") 2>conftest.er1
7395
grep -v '^ *+' conftest.er1 >conftest.err
7397
cat conftest.err >&5
7398
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7399
(exit $ac_status); } && {
7400
test -z "$ac_c_werror_flag" ||
7401
test ! -s conftest.err
7402
} && test -s conftest.$ac_objext; then
7405
cat >conftest.$ac_ext <<_ACEOF
7408
cat confdefs.h >>conftest.$ac_ext
7409
cat >>conftest.$ac_ext <<_ACEOF
7410
/* end confdefs.h. */
7412
#define _XOPEN_SOURCE_EXTENDED 1
7414
/* The following two lines are a workaround against an autoconf-2.52 bug. */
7421
static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
7428
rm -f conftest.$ac_objext
7429
if { (ac_try="$ac_compile"
7431
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7432
*) ac_try_echo=$ac_try;;
7434
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7435
$as_echo "$ac_try_echo") >&5
7436
(eval "$ac_compile") 2>conftest.er1
7438
grep -v '^ *+' conftest.er1 >conftest.err
7440
cat conftest.err >&5
7441
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7442
(exit $ac_status); } && {
7443
test -z "$ac_c_werror_flag" ||
7444
test ! -s conftest.err
7445
} && test -s conftest.$ac_objext; then
7446
ac_hi=$ac_mid; break
7448
$as_echo "$as_me: failed program was:" >&5
7449
sed 's/^/| /' conftest.$ac_ext >&5
7451
ac_lo=`expr $ac_mid + 1`
7452
if test $ac_lo -le $ac_mid; then
7456
ac_mid=`expr 2 '*' $ac_mid + 1`
7459
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7462
$as_echo "$as_me: failed program was:" >&5
7463
sed 's/^/| /' conftest.$ac_ext >&5
7465
cat >conftest.$ac_ext <<_ACEOF
7468
cat confdefs.h >>conftest.$ac_ext
7469
cat >>conftest.$ac_ext <<_ACEOF
7470
/* end confdefs.h. */
7472
#define _XOPEN_SOURCE_EXTENDED 1
7474
/* The following two lines are a workaround against an autoconf-2.52 bug. */
7481
static int test_array [1 - 2 * !((EOVERFLOW) < 0)];
7488
rm -f conftest.$ac_objext
7489
if { (ac_try="$ac_compile"
7491
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7492
*) ac_try_echo=$ac_try;;
7494
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7495
$as_echo "$ac_try_echo") >&5
7496
(eval "$ac_compile") 2>conftest.er1
7498
grep -v '^ *+' conftest.er1 >conftest.err
7500
cat conftest.err >&5
7501
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7502
(exit $ac_status); } && {
7503
test -z "$ac_c_werror_flag" ||
7504
test ! -s conftest.err
7505
} && test -s conftest.$ac_objext; then
7508
cat >conftest.$ac_ext <<_ACEOF
7511
cat confdefs.h >>conftest.$ac_ext
7512
cat >>conftest.$ac_ext <<_ACEOF
7513
/* end confdefs.h. */
7515
#define _XOPEN_SOURCE_EXTENDED 1
7517
/* The following two lines are a workaround against an autoconf-2.52 bug. */
7524
static int test_array [1 - 2 * !((EOVERFLOW) >= $ac_mid)];
7531
rm -f conftest.$ac_objext
7532
if { (ac_try="$ac_compile"
7534
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7535
*) ac_try_echo=$ac_try;;
7537
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7538
$as_echo "$ac_try_echo") >&5
7539
(eval "$ac_compile") 2>conftest.er1
7541
grep -v '^ *+' conftest.er1 >conftest.err
7543
cat conftest.err >&5
7544
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545
(exit $ac_status); } && {
7546
test -z "$ac_c_werror_flag" ||
7547
test ! -s conftest.err
7548
} && test -s conftest.$ac_objext; then
7549
ac_lo=$ac_mid; break
7551
$as_echo "$as_me: failed program was:" >&5
7552
sed 's/^/| /' conftest.$ac_ext >&5
7554
ac_hi=`expr '(' $ac_mid ')' - 1`
7555
if test $ac_mid -le $ac_hi; then
7559
ac_mid=`expr 2 '*' $ac_mid`
7562
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7565
$as_echo "$as_me: failed program was:" >&5
7566
sed 's/^/| /' conftest.$ac_ext >&5
7571
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7574
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7575
# Binary search between lo and hi bounds.
7576
while test "x$ac_lo" != "x$ac_hi"; do
7577
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7578
cat >conftest.$ac_ext <<_ACEOF
7581
cat confdefs.h >>conftest.$ac_ext
7582
cat >>conftest.$ac_ext <<_ACEOF
7583
/* end confdefs.h. */
7585
#define _XOPEN_SOURCE_EXTENDED 1
7587
/* The following two lines are a workaround against an autoconf-2.52 bug. */
7594
static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
7601
rm -f conftest.$ac_objext
7602
if { (ac_try="$ac_compile"
7604
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7605
*) ac_try_echo=$ac_try;;
7607
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7608
$as_echo "$ac_try_echo") >&5
7609
(eval "$ac_compile") 2>conftest.er1
7611
grep -v '^ *+' conftest.er1 >conftest.err
7613
cat conftest.err >&5
7614
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7615
(exit $ac_status); } && {
7616
test -z "$ac_c_werror_flag" ||
7617
test ! -s conftest.err
7618
} && test -s conftest.$ac_objext; then
7621
$as_echo "$as_me: failed program was:" >&5
7622
sed 's/^/| /' conftest.$ac_ext >&5
7624
ac_lo=`expr '(' $ac_mid ')' + 1`
7627
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7630
?*) gl_cv_header_errno_h_EOVERFLOW=$ac_lo;;
7634
cat >conftest.$ac_ext <<_ACEOF
7637
cat confdefs.h >>conftest.$ac_ext
7638
cat >>conftest.$ac_ext <<_ACEOF
7639
/* end confdefs.h. */
7641
#define _XOPEN_SOURCE_EXTENDED 1
7643
/* The following two lines are a workaround against an autoconf-2.52 bug. */
7647
static long int longval () { return EOVERFLOW; }
7648
static unsigned long int ulongval () { return EOVERFLOW; }
7655
FILE *f = fopen ("conftest.val", "w");
7658
if ((EOVERFLOW) < 0)
7660
long int i = longval ();
7661
if (i != (EOVERFLOW))
7663
fprintf (f, "%ld", i);
7667
unsigned long int i = ulongval ();
7668
if (i != (EOVERFLOW))
7670
fprintf (f, "%lu", i);
7672
/* Do not output a trailing newline, as this causes \r\n confusion
7673
on some platforms. */
7674
return ferror (f) || fclose (f) != 0;
7680
rm -f conftest$ac_exeext
7681
if { (ac_try="$ac_link"
7683
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7684
*) ac_try_echo=$ac_try;;
7686
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7687
$as_echo "$ac_try_echo") >&5
7688
(eval "$ac_link") 2>&5
7690
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7691
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7692
{ (case "(($ac_try" in
7693
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7694
*) ac_try_echo=$ac_try;;
7696
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7697
$as_echo "$ac_try_echo") >&5
7698
(eval "$ac_try") 2>&5
7700
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701
(exit $ac_status); }; }; then
7702
gl_cv_header_errno_h_EOVERFLOW=`cat conftest.val`
7704
$as_echo "$as_me: program exited with status $ac_status" >&5
7705
$as_echo "$as_me: failed program was:" >&5
7706
sed 's/^/| /' conftest.$ac_ext >&5
7709
rm -rf conftest.dSYM
7710
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7717
{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
7718
$as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
7719
case $gl_cv_header_errno_h_EOVERFLOW in
7721
EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
7724
EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
7744
{ $as_echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
7745
$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
7746
if test "${ac_cv_c_restrict+set}" = set; then
7747
$as_echo_n "(cached) " >&6
7750
# The order here caters to the fact that C++ does not require restrict.
7751
for ac_kw in __restrict __restrict__ _Restrict restrict; do
7752
cat >conftest.$ac_ext <<_ACEOF
7755
cat confdefs.h >>conftest.$ac_ext
7756
cat >>conftest.$ac_ext <<_ACEOF
7757
/* end confdefs.h. */
7758
typedef int * int_ptr;
7759
int foo (int_ptr $ac_kw ip) {
7773
rm -f conftest.$ac_objext
7774
if { (ac_try="$ac_compile"
7776
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7777
*) ac_try_echo=$ac_try;;
7779
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7780
$as_echo "$ac_try_echo") >&5
7781
(eval "$ac_compile") 2>conftest.er1
7783
grep -v '^ *+' conftest.er1 >conftest.err
7785
cat conftest.err >&5
7786
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7787
(exit $ac_status); } && {
7788
test -z "$ac_c_werror_flag" ||
7789
test ! -s conftest.err
7790
} && test -s conftest.$ac_objext; then
7791
ac_cv_c_restrict=$ac_kw
7793
$as_echo "$as_me: failed program was:" >&5
7794
sed 's/^/| /' conftest.$ac_ext >&5
7799
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7800
test "$ac_cv_c_restrict" != no && break
7804
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
7805
$as_echo "$ac_cv_c_restrict" >&6; }
7808
case $ac_cv_c_restrict in
7810
no) cat >>confdefs.h <<\_ACEOF
7811
#define restrict /**/
7814
*) cat >>confdefs.h <<_ACEOF
7815
#define restrict $ac_cv_c_restrict
7836
{ $as_echo "$as_me:$LINENO: checking for IPv4 sockets" >&5
7837
$as_echo_n "checking for IPv4 sockets... " >&6; }
7838
if test "${gl_cv_socket_ipv4+set}" = set; then
7839
$as_echo_n "(cached) " >&6
7841
cat >conftest.$ac_ext <<_ACEOF
7844
cat confdefs.h >>conftest.$ac_ext
7845
cat >>conftest.$ac_ext <<_ACEOF
7846
/* end confdefs.h. */
7847
#include <sys/types.h>
7848
#ifdef HAVE_SYS_SOCKET_H
7849
#include <sys/socket.h>
7851
#ifdef HAVE_NETINET_IN_H
7852
#include <netinet/in.h>
7854
#ifdef HAVE_WINSOCK2_H
7855
#include <winsock2.h>
7860
int x = AF_INET; struct in_addr y; struct sockaddr_in z;
7861
if (&x && &y && &z) return 0;
7866
rm -f conftest.$ac_objext
7867
if { (ac_try="$ac_compile"
7869
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7870
*) ac_try_echo=$ac_try;;
7872
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7873
$as_echo "$ac_try_echo") >&5
7874
(eval "$ac_compile") 2>conftest.er1
7876
grep -v '^ *+' conftest.er1 >conftest.err
7878
cat conftest.err >&5
7879
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880
(exit $ac_status); } && {
7881
test -z "$ac_c_werror_flag" ||
7882
test ! -s conftest.err
7883
} && test -s conftest.$ac_objext; then
7884
gl_cv_socket_ipv4=yes
7886
$as_echo "$as_me: failed program was:" >&5
7887
sed 's/^/| /' conftest.$ac_ext >&5
7889
gl_cv_socket_ipv4=no
7892
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7895
{ $as_echo "$as_me:$LINENO: result: $gl_cv_socket_ipv4" >&5
7896
$as_echo "$gl_cv_socket_ipv4" >&6; }
7897
if test $gl_cv_socket_ipv4 = yes; then
7899
cat >>confdefs.h <<\_ACEOF
7905
{ $as_echo "$as_me:$LINENO: checking for IPv6 sockets" >&5
7906
$as_echo_n "checking for IPv6 sockets... " >&6; }
7907
if test "${gl_cv_socket_ipv6+set}" = set; then
7908
$as_echo_n "(cached) " >&6
7910
cat >conftest.$ac_ext <<_ACEOF
7913
cat confdefs.h >>conftest.$ac_ext
7914
cat >>conftest.$ac_ext <<_ACEOF
7915
/* end confdefs.h. */
7916
#include <sys/types.h>
7917
#ifdef HAVE_SYS_SOCKET_H
7918
#include <sys/socket.h>
7920
#ifdef HAVE_NETINET_IN_H
7921
#include <netinet/in.h>
7923
#ifdef HAVE_WINSOCK2_H
7924
#include <winsock2.h>
7929
int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;
7930
if (&x && &y && &z) return 0;
7935
rm -f conftest.$ac_objext
7936
if { (ac_try="$ac_compile"
7938
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7939
*) ac_try_echo=$ac_try;;
7941
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7942
$as_echo "$ac_try_echo") >&5
7943
(eval "$ac_compile") 2>conftest.er1
7945
grep -v '^ *+' conftest.er1 >conftest.err
7947
cat conftest.err >&5
7948
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949
(exit $ac_status); } && {
7950
test -z "$ac_c_werror_flag" ||
7951
test ! -s conftest.err
7952
} && test -s conftest.$ac_objext; then
7953
gl_cv_socket_ipv6=yes
7955
$as_echo "$as_me: failed program was:" >&5
7956
sed 's/^/| /' conftest.$ac_ext >&5
7958
gl_cv_socket_ipv6=no
7961
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7964
{ $as_echo "$as_me:$LINENO: result: $gl_cv_socket_ipv6" >&5
7965
$as_echo "$gl_cv_socket_ipv6" >&6; }
7966
if test $gl_cv_socket_ipv6 = yes; then
7968
cat >>confdefs.h <<\_ACEOF
7975
{ $as_echo "$as_me:$LINENO: checking whether malloc, realloc, calloc are POSIX compliant" >&5
7976
$as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
7977
if test "${gl_cv_func_malloc_posix+set}" = set; then
7978
$as_echo_n "(cached) " >&6
7981
cat >conftest.$ac_ext <<_ACEOF
7984
cat confdefs.h >>conftest.$ac_ext
7985
cat >>conftest.$ac_ext <<_ACEOF
7986
/* end confdefs.h. */
7991
#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
7999
rm -f conftest.$ac_objext
8000
if { (ac_try="$ac_compile"
8002
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8003
*) ac_try_echo=$ac_try;;
8005
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8006
$as_echo "$ac_try_echo") >&5
8007
(eval "$ac_compile") 2>conftest.er1
8009
grep -v '^ *+' conftest.er1 >conftest.err
8011
cat conftest.err >&5
8012
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013
(exit $ac_status); } && {
8014
test -z "$ac_c_werror_flag" ||
8015
test ! -s conftest.err
8016
} && test -s conftest.$ac_objext; then
8017
gl_cv_func_malloc_posix=yes
8019
$as_echo "$as_me: failed program was:" >&5
8020
sed 's/^/| /' conftest.$ac_ext >&5
8022
gl_cv_func_malloc_posix=no
8025
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8028
{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_malloc_posix" >&5
8029
$as_echo "$gl_cv_func_malloc_posix" >&6; }
8032
GNULIB_MALLOC_POSIX=0;
8033
GNULIB_REALLOC_POSIX=0;
8034
GNULIB_CALLOC_POSIX=0;
8043
HAVE_CALLOC_POSIX=1;
8045
HAVE_MALLOC_POSIX=1;
8047
HAVE_REALLOC_POSIX=1;
8059
GNULIB_FPRINTF_POSIX=0;
8061
GNULIB_PRINTF_POSIX=0;
8063
GNULIB_SPRINTF_POSIX=0;
8065
GNULIB_VFPRINTF_POSIX=0;
8067
GNULIB_VPRINTF_POSIX=0;
8069
GNULIB_VSPRINTF_POSIX=0;
8071
GNULIB_OBSTACK_PRINTF=0;
8072
GNULIB_OBSTACK_PRINTF_POSIX=0;
8089
GNULIB_STDIO_H_SIGPIPE=0;
8090
REPLACE_STDIO_WRITE_FUNCS=0;
8096
HAVE_DECL_SNPRINTF=1;
8097
REPLACE_VSNPRINTF=0;
8098
HAVE_DECL_VSNPRINTF=1;
8102
REPLACE_VASPRINTF=0;
8103
HAVE_DECL_OBSTACK_PRINTF=1;
8104
REPLACE_OBSTACK_PRINTF=0;
8114
HAVE_DECL_GETDELIM=1;
8115
HAVE_DECL_GETLINE=1;
8120
{ $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
8121
$as_echo_n "checking whether snprintf is declared... " >&6; }
8122
if test "${ac_cv_have_decl_snprintf+set}" = set; then
8123
$as_echo_n "(cached) " >&6
8125
cat >conftest.$ac_ext <<_ACEOF
8128
cat confdefs.h >>conftest.$ac_ext
8129
cat >>conftest.$ac_ext <<_ACEOF
8130
/* end confdefs.h. */
8131
$ac_includes_default
8143
rm -f conftest.$ac_objext
8144
if { (ac_try="$ac_compile"
8146
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8147
*) ac_try_echo=$ac_try;;
8149
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8150
$as_echo "$ac_try_echo") >&5
8151
(eval "$ac_compile") 2>conftest.er1
8153
grep -v '^ *+' conftest.er1 >conftest.err
8155
cat conftest.err >&5
8156
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157
(exit $ac_status); } && {
8158
test -z "$ac_c_werror_flag" ||
8159
test ! -s conftest.err
8160
} && test -s conftest.$ac_objext; then
8161
ac_cv_have_decl_snprintf=yes
8163
$as_echo "$as_me: failed program was:" >&5
8164
sed 's/^/| /' conftest.$ac_ext >&5
8166
ac_cv_have_decl_snprintf=no
8169
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8171
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
8172
$as_echo "$ac_cv_have_decl_snprintf" >&6; }
8173
if test "x$ac_cv_have_decl_snprintf" = x""yes; then
8175
cat >>confdefs.h <<_ACEOF
8176
#define HAVE_DECL_SNPRINTF 1
8181
cat >>confdefs.h <<_ACEOF
8182
#define HAVE_DECL_SNPRINTF 0
8190
{ $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
8191
$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
8192
if test "${ac_cv_header_stdbool_h+set}" = set; then
8193
$as_echo_n "(cached) " >&6
8195
cat >conftest.$ac_ext <<_ACEOF
8198
cat confdefs.h >>conftest.$ac_ext
8199
cat >>conftest.$ac_ext <<_ACEOF
8200
/* end confdefs.h. */
8202
#include <stdbool.h>
8204
"error: bool is not defined"
8207
"error: false is not defined"
8210
"error: false is not 0"
8213
"error: true is not defined"
8216
"error: true is not 1"
8218
#ifndef __bool_true_false_are_defined
8219
"error: __bool_true_false_are_defined is not defined"
8222
struct s { _Bool s: 1; _Bool t; } s;
8224
char a[true == 1 ? 1 : -1];
8225
char b[false == 0 ? 1 : -1];
8226
char c[__bool_true_false_are_defined == 1 ? 1 : -1];
8227
char d[(bool) 0.5 == true ? 1 : -1];
8229
char f[(_Bool) 0.0 == false ? 1 : -1];
8231
char h[sizeof (_Bool)];
8233
enum { j = false, k = true, l = false * true, m = true * 256 };
8235
char o[sizeof n == m * sizeof n[0] ? 1 : -1];
8236
char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
8237
#if defined __xlc__ || defined __GNUC__
8238
/* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
8239
reported by James Lemley on 2005-10-05; see
8240
http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
8241
This test is not quite right, since xlc is allowed to
8242
reject this program, as the initializer for xlcbug is
8243
not one of the forms that C requires support for.
8244
However, doing the test right would require a run-time
8245
test, and that would make cross-compilation harder.
8246
Let us hope that IBM fixes the xlc bug, and also adds
8247
support for this kind of constant expression. In the
8248
meantime, this test will reject xlc, which is OK, since
8249
our stdbool.h substitute should suffice. We also test
8250
this with GCC, where it should work, to detect more
8251
quickly whether someone messes up the test in the
8253
char digs[] = "0123456789";
8254
int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
8256
/* Catch a bug in an HP-UX C compiler. See
8257
http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
8258
http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
8269
/* Refer to every declared value, to avoid compiler optimizations. */
8270
return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
8271
+ !m + !n + !o + !p + !q + !pq);
8277
rm -f conftest.$ac_objext
8278
if { (ac_try="$ac_compile"
8280
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8281
*) ac_try_echo=$ac_try;;
8283
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8284
$as_echo "$ac_try_echo") >&5
8285
(eval "$ac_compile") 2>conftest.er1
8287
grep -v '^ *+' conftest.er1 >conftest.err
8289
cat conftest.err >&5
8290
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291
(exit $ac_status); } && {
8292
test -z "$ac_c_werror_flag" ||
8293
test ! -s conftest.err
8294
} && test -s conftest.$ac_objext; then
8295
ac_cv_header_stdbool_h=yes
8297
$as_echo "$as_me: failed program was:" >&5
8298
sed 's/^/| /' conftest.$ac_ext >&5
8300
ac_cv_header_stdbool_h=no
8303
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8305
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
8306
$as_echo "$ac_cv_header_stdbool_h" >&6; }
8307
{ $as_echo "$as_me:$LINENO: checking for _Bool" >&5
8308
$as_echo_n "checking for _Bool... " >&6; }
8309
if test "${ac_cv_type__Bool+set}" = set; then
8310
$as_echo_n "(cached) " >&6
8313
cat >conftest.$ac_ext <<_ACEOF
8316
cat confdefs.h >>conftest.$ac_ext
8317
cat >>conftest.$ac_ext <<_ACEOF
8318
/* end confdefs.h. */
8319
$ac_includes_default
8329
rm -f conftest.$ac_objext
8330
if { (ac_try="$ac_compile"
8332
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8333
*) ac_try_echo=$ac_try;;
8335
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8336
$as_echo "$ac_try_echo") >&5
8337
(eval "$ac_compile") 2>conftest.er1
8339
grep -v '^ *+' conftest.er1 >conftest.err
8341
cat conftest.err >&5
8342
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343
(exit $ac_status); } && {
8344
test -z "$ac_c_werror_flag" ||
8345
test ! -s conftest.err
8346
} && test -s conftest.$ac_objext; then
8347
cat >conftest.$ac_ext <<_ACEOF
8350
cat confdefs.h >>conftest.$ac_ext
8351
cat >>conftest.$ac_ext <<_ACEOF
8352
/* end confdefs.h. */
8353
$ac_includes_default
8357
if (sizeof ((_Bool)))
8363
rm -f conftest.$ac_objext
8364
if { (ac_try="$ac_compile"
8366
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8367
*) ac_try_echo=$ac_try;;
8369
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8370
$as_echo "$ac_try_echo") >&5
8371
(eval "$ac_compile") 2>conftest.er1
8373
grep -v '^ *+' conftest.er1 >conftest.err
8375
cat conftest.err >&5
8376
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377
(exit $ac_status); } && {
8378
test -z "$ac_c_werror_flag" ||
8379
test ! -s conftest.err
8380
} && test -s conftest.$ac_objext; then
8383
$as_echo "$as_me: failed program was:" >&5
8384
sed 's/^/| /' conftest.$ac_ext >&5
8386
ac_cv_type__Bool=yes
8389
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8391
$as_echo "$as_me: failed program was:" >&5
8392
sed 's/^/| /' conftest.$ac_ext >&5
8397
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8399
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
8400
$as_echo "$ac_cv_type__Bool" >&6; }
8401
if test "x$ac_cv_type__Bool" = x""yes; then
8403
cat >>confdefs.h <<_ACEOF
8404
#define HAVE__BOOL 1
8410
if test $ac_cv_header_stdbool_h = yes; then
8412
cat >>confdefs.h <<\_ACEOF
8413
#define HAVE_STDBOOL_H 1
8418
{ $as_echo "$as_me:$LINENO: checking for long long int" >&5
8419
$as_echo_n "checking for long long int... " >&6; }
8420
if test "${ac_cv_type_long_long_int+set}" = set; then
8421
$as_echo_n "(cached) " >&6
8423
cat >conftest.$ac_ext <<_ACEOF
8427
cat confdefs.h >>conftest.$ac_ext
8428
cat >>conftest.$ac_ext <<_ACEOF
8429
/* end confdefs.h. */
8430
/* For now, do not test the preprocessor; as of 2007 there are too many
8431
implementations with broken preprocessors. Perhaps this can
8432
be revisited in 2012. In the meantime, code should not expect
8433
#if to work with literals wider than 32 bits. */
8434
/* Test literals. */
8435
long long int ll = 9223372036854775807ll;
8436
long long int nll = -9223372036854775807LL;
8437
unsigned long long int ull = 18446744073709551615ULL;
8438
/* Test constant expressions. */
8439
typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
8441
typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
8447
/* Test availability of runtime routines for shift and division. */
8448
long long int llmax = 9223372036854775807ll;
8449
unsigned long long int ullmax = 18446744073709551615ull;
8450
return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
8451
| (llmax / ll) | (llmax % ll)
8452
| (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
8453
| (ullmax / ull) | (ullmax % ull));
8459
rm -f conftest.$ac_objext conftest$ac_exeext
8460
if { (ac_try="$ac_link"
8462
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8463
*) ac_try_echo=$ac_try;;
8465
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8466
$as_echo "$ac_try_echo") >&5
8467
(eval "$ac_link") 2>conftest.er1
8469
grep -v '^ *+' conftest.er1 >conftest.err
8471
cat conftest.err >&5
8472
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473
(exit $ac_status); } && {
8474
test -z "$ac_c_werror_flag" ||
8475
test ! -s conftest.err
8476
} && test -s conftest$ac_exeext && {
8477
test "$cross_compiling" = yes ||
8478
$as_test_x conftest$ac_exeext
8480
if test "$cross_compiling" = yes; then
8481
ac_cv_type_long_long_int=yes
8483
cat >conftest.$ac_ext <<_ACEOF
8486
cat confdefs.h >>conftest.$ac_ext
8487
cat >>conftest.$ac_ext <<_ACEOF
8488
/* end confdefs.h. */
8492
(1LL << (sizeof (long long int) * CHAR_BIT - 2))
8493
# define LLONG_MAX (HALF - 1 + HALF)
8498
long long int n = 1;
8502
long long int m = n << i;
8505
if (LLONG_MAX / 2 < m)
8513
rm -f conftest$ac_exeext
8514
if { (ac_try="$ac_link"
8516
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8517
*) ac_try_echo=$ac_try;;
8519
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8520
$as_echo "$ac_try_echo") >&5
8521
(eval "$ac_link") 2>&5
8523
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8525
{ (case "(($ac_try" in
8526
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8527
*) ac_try_echo=$ac_try;;
8529
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8530
$as_echo "$ac_try_echo") >&5
8531
(eval "$ac_try") 2>&5
8533
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534
(exit $ac_status); }; }; then
8535
ac_cv_type_long_long_int=yes
8537
$as_echo "$as_me: program exited with status $ac_status" >&5
8538
$as_echo "$as_me: failed program was:" >&5
8539
sed 's/^/| /' conftest.$ac_ext >&5
8542
ac_cv_type_long_long_int=no
8544
rm -rf conftest.dSYM
8545
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8550
$as_echo "$as_me: failed program was:" >&5
8551
sed 's/^/| /' conftest.$ac_ext >&5
8553
ac_cv_type_long_long_int=no
8556
rm -rf conftest.dSYM
8557
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8558
conftest$ac_exeext conftest.$ac_ext
8560
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
8561
$as_echo "$ac_cv_type_long_long_int" >&6; }
8562
if test $ac_cv_type_long_long_int = yes; then
8564
cat >>confdefs.h <<\_ACEOF
8565
#define HAVE_LONG_LONG_INT 1
8571
{ $as_echo "$as_me:$LINENO: checking for unsigned long long int" >&5
8572
$as_echo_n "checking for unsigned long long int... " >&6; }
8573
if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
8574
$as_echo_n "(cached) " >&6
8576
cat >conftest.$ac_ext <<_ACEOF
8580
cat confdefs.h >>conftest.$ac_ext
8581
cat >>conftest.$ac_ext <<_ACEOF
8582
/* end confdefs.h. */
8583
/* For now, do not test the preprocessor; as of 2007 there are too many
8584
implementations with broken preprocessors. Perhaps this can
8585
be revisited in 2012. In the meantime, code should not expect
8586
#if to work with literals wider than 32 bits. */
8587
/* Test literals. */
8588
long long int ll = 9223372036854775807ll;
8589
long long int nll = -9223372036854775807LL;
8590
unsigned long long int ull = 18446744073709551615ULL;
8591
/* Test constant expressions. */
8592
typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
8594
typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
8600
/* Test availability of runtime routines for shift and division. */
8601
long long int llmax = 9223372036854775807ll;
8602
unsigned long long int ullmax = 18446744073709551615ull;
8603
return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
8604
| (llmax / ll) | (llmax % ll)
8605
| (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
8606
| (ullmax / ull) | (ullmax % ull));
8612
rm -f conftest.$ac_objext conftest$ac_exeext
8613
if { (ac_try="$ac_link"
8615
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8616
*) ac_try_echo=$ac_try;;
8618
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8619
$as_echo "$ac_try_echo") >&5
8620
(eval "$ac_link") 2>conftest.er1
8622
grep -v '^ *+' conftest.er1 >conftest.err
8624
cat conftest.err >&5
8625
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626
(exit $ac_status); } && {
8627
test -z "$ac_c_werror_flag" ||
8628
test ! -s conftest.err
8629
} && test -s conftest$ac_exeext && {
8630
test "$cross_compiling" = yes ||
8631
$as_test_x conftest$ac_exeext
8633
ac_cv_type_unsigned_long_long_int=yes
8635
$as_echo "$as_me: failed program was:" >&5
8636
sed 's/^/| /' conftest.$ac_ext >&5
8638
ac_cv_type_unsigned_long_long_int=no
8641
rm -rf conftest.dSYM
8642
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8643
conftest$ac_exeext conftest.$ac_ext
8645
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
8646
$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
8647
if test $ac_cv_type_unsigned_long_long_int = yes; then
8649
cat >>confdefs.h <<\_ACEOF
8650
#define HAVE_UNSIGNED_LONG_LONG_INT 1
8687
GNULIB_GETDTABLESIZE=0;
8688
GNULIB_GETLOGIN_R=0;
8689
GNULIB_GETPAGESIZE=0;
8694
GNULIB_UNISTD_H_SIGPIPE=0;
8699
HAVE_GETDTABLESIZE=1;
8703
HAVE_DECL_ENVIRON=1;
8704
HAVE_DECL_GETLOGIN_R=1;
8710
REPLACE_GETPAGESIZE=0;
8726
for ac_func in $gl_func_list
8728
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8729
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8730
$as_echo_n "checking for $ac_func... " >&6; }
8731
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8732
$as_echo_n "(cached) " >&6
8734
cat >conftest.$ac_ext <<_ACEOF
8737
cat confdefs.h >>conftest.$ac_ext
8738
cat >>conftest.$ac_ext <<_ACEOF
8739
/* end confdefs.h. */
8740
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8741
For example, HP-UX 11i <limits.h> declares gettimeofday. */
8742
#define $ac_func innocuous_$ac_func
8744
/* System header to define __stub macros and hopefully few prototypes,
8745
which can conflict with char $ac_func (); below.
8746
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8747
<limits.h> exists even on freestanding compilers. */
8750
# include <limits.h>
8752
# include <assert.h>
8757
/* Override any GCC internal prototype to avoid an error.
8758
Use char because int might match the return type of a GCC
8759
builtin and then its argument prototype would still apply. */
8764
/* The GNU C library defines this for functions which it implements
8765
to always fail with ENOSYS. Some functions are actually named
8766
something starting with __ and the normal name is an alias. */
8767
#if defined __stub_$ac_func || defined __stub___$ac_func
8779
rm -f conftest.$ac_objext conftest$ac_exeext
8780
if { (ac_try="$ac_link"
8782
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8783
*) ac_try_echo=$ac_try;;
8785
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8786
$as_echo "$ac_try_echo") >&5
8787
(eval "$ac_link") 2>conftest.er1
8789
grep -v '^ *+' conftest.er1 >conftest.err
8791
cat conftest.err >&5
8792
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8793
(exit $ac_status); } && {
8794
test -z "$ac_c_werror_flag" ||
8795
test ! -s conftest.err
8796
} && test -s conftest$ac_exeext && {
8797
test "$cross_compiling" = yes ||
8798
$as_test_x conftest$ac_exeext
8800
eval "$as_ac_var=yes"
8802
$as_echo "$as_me: failed program was:" >&5
8803
sed 's/^/| /' conftest.$ac_ext >&5
8805
eval "$as_ac_var=no"
8808
rm -rf conftest.dSYM
8809
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8810
conftest$ac_exeext conftest.$ac_ext
8812
ac_res=`eval 'as_val=${'$as_ac_var'}
8813
$as_echo "$as_val"'`
8814
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8815
$as_echo "$ac_res" >&6; }
8816
as_val=`eval 'as_val=${'$as_ac_var'}
8817
$as_echo "$as_val"'`
8818
if test "x$as_val" = x""yes; then
8819
cat >>confdefs.h <<_ACEOF
8820
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8832
{ $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
8833
$as_echo_n "checking for wchar_t... " >&6; }
8834
if test "${gt_cv_c_wchar_t+set}" = set; then
8835
$as_echo_n "(cached) " >&6
8837
cat >conftest.$ac_ext <<_ACEOF
8840
cat confdefs.h >>conftest.$ac_ext
8841
cat >>conftest.$ac_ext <<_ACEOF
8842
/* end confdefs.h. */
8844
wchar_t foo = (wchar_t)'\0';
8853
rm -f conftest.$ac_objext
8854
if { (ac_try="$ac_compile"
8856
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8857
*) ac_try_echo=$ac_try;;
8859
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8860
$as_echo "$ac_try_echo") >&5
8861
(eval "$ac_compile") 2>conftest.er1
8863
grep -v '^ *+' conftest.er1 >conftest.err
8865
cat conftest.err >&5
8866
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867
(exit $ac_status); } && {
8868
test -z "$ac_c_werror_flag" ||
8869
test ! -s conftest.err
8870
} && test -s conftest.$ac_objext; then
8873
$as_echo "$as_me: failed program was:" >&5
8874
sed 's/^/| /' conftest.$ac_ext >&5
8879
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8881
{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
8882
$as_echo "$gt_cv_c_wchar_t" >&6; }
8883
if test $gt_cv_c_wchar_t = yes; then
8885
cat >>confdefs.h <<\_ACEOF
8886
#define HAVE_WCHAR_T 1
8892
{ $as_echo "$as_me:$LINENO: checking for wint_t" >&5
8893
$as_echo_n "checking for wint_t... " >&6; }
8894
if test "${gt_cv_c_wint_t+set}" = set; then
8895
$as_echo_n "(cached) " >&6
8897
cat >conftest.$ac_ext <<_ACEOF
8900
cat confdefs.h >>conftest.$ac_ext
8901
cat >>conftest.$ac_ext <<_ACEOF
8902
/* end confdefs.h. */
8904
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8906
BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
8907
before <wchar.h>. */
8912
wint_t foo = (wchar_t)'\0';
8921
rm -f conftest.$ac_objext
8922
if { (ac_try="$ac_compile"
8924
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8925
*) ac_try_echo=$ac_try;;
8927
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8928
$as_echo "$ac_try_echo") >&5
8929
(eval "$ac_compile") 2>conftest.er1
8931
grep -v '^ *+' conftest.er1 >conftest.err
8933
cat conftest.err >&5
8934
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935
(exit $ac_status); } && {
8936
test -z "$ac_c_werror_flag" ||
8937
test ! -s conftest.err
8938
} && test -s conftest.$ac_objext; then
8941
$as_echo "$as_me: failed program was:" >&5
8942
sed 's/^/| /' conftest.$ac_ext >&5
8947
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8949
{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
8950
$as_echo "$gt_cv_c_wint_t" >&6; }
8951
if test $gt_cv_c_wint_t = yes; then
8953
cat >>confdefs.h <<\_ACEOF
8954
#define HAVE_WINT_T 1
8959
{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
8960
$as_echo_n "checking for size_t... " >&6; }
8961
if test "${ac_cv_type_size_t+set}" = set; then
8962
$as_echo_n "(cached) " >&6
8964
ac_cv_type_size_t=no
8965
cat >conftest.$ac_ext <<_ACEOF
8968
cat confdefs.h >>conftest.$ac_ext
8969
cat >>conftest.$ac_ext <<_ACEOF
8970
/* end confdefs.h. */
8971
$ac_includes_default
8975
if (sizeof (size_t))
8981
rm -f conftest.$ac_objext
8982
if { (ac_try="$ac_compile"
8984
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8985
*) ac_try_echo=$ac_try;;
8987
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8988
$as_echo "$ac_try_echo") >&5
8989
(eval "$ac_compile") 2>conftest.er1
8991
grep -v '^ *+' conftest.er1 >conftest.err
8993
cat conftest.err >&5
8994
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995
(exit $ac_status); } && {
8996
test -z "$ac_c_werror_flag" ||
8997
test ! -s conftest.err
8998
} && test -s conftest.$ac_objext; then
8999
cat >conftest.$ac_ext <<_ACEOF
9002
cat confdefs.h >>conftest.$ac_ext
9003
cat >>conftest.$ac_ext <<_ACEOF
9004
/* end confdefs.h. */
9005
$ac_includes_default
9009
if (sizeof ((size_t)))
9015
rm -f conftest.$ac_objext
9016
if { (ac_try="$ac_compile"
9018
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9019
*) ac_try_echo=$ac_try;;
9021
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9022
$as_echo "$ac_try_echo") >&5
9023
(eval "$ac_compile") 2>conftest.er1
9025
grep -v '^ *+' conftest.er1 >conftest.err
9027
cat conftest.err >&5
9028
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029
(exit $ac_status); } && {
9030
test -z "$ac_c_werror_flag" ||
9031
test ! -s conftest.err
9032
} && test -s conftest.$ac_objext; then
9035
$as_echo "$as_me: failed program was:" >&5
9036
sed 's/^/| /' conftest.$ac_ext >&5
9038
ac_cv_type_size_t=yes
9041
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9043
$as_echo "$as_me: failed program was:" >&5
9044
sed 's/^/| /' conftest.$ac_ext >&5
9049
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9051
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9052
$as_echo "$ac_cv_type_size_t" >&6; }
9053
if test "x$ac_cv_type_size_t" = x""yes; then
9057
cat >>confdefs.h <<_ACEOF
9058
#define size_t unsigned int
9064
{ $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
9065
$as_echo_n "checking for inttypes.h... " >&6; }
9066
if test "${gl_cv_header_inttypes_h+set}" = set; then
9067
$as_echo_n "(cached) " >&6
9069
cat >conftest.$ac_ext <<_ACEOF
9072
cat confdefs.h >>conftest.$ac_ext
9073
cat >>conftest.$ac_ext <<_ACEOF
9074
/* end confdefs.h. */
9075
#include <sys/types.h>
9076
#include <inttypes.h>
9080
uintmax_t i = (uintmax_t) -1; return !i;
9085
rm -f conftest.$ac_objext
9086
if { (ac_try="$ac_compile"
9088
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9089
*) ac_try_echo=$ac_try;;
9091
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9092
$as_echo "$ac_try_echo") >&5
9093
(eval "$ac_compile") 2>conftest.er1
9095
grep -v '^ *+' conftest.er1 >conftest.err
9097
cat conftest.err >&5
9098
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099
(exit $ac_status); } && {
9100
test -z "$ac_c_werror_flag" ||
9101
test ! -s conftest.err
9102
} && test -s conftest.$ac_objext; then
9103
gl_cv_header_inttypes_h=yes
9105
$as_echo "$as_me: failed program was:" >&5
9106
sed 's/^/| /' conftest.$ac_ext >&5
9108
gl_cv_header_inttypes_h=no
9111
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9113
{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
9114
$as_echo "$gl_cv_header_inttypes_h" >&6; }
9115
if test $gl_cv_header_inttypes_h = yes; then
9117
cat >>confdefs.h <<_ACEOF
9118
#define HAVE_INTTYPES_H_WITH_UINTMAX 1
9124
{ $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
9125
$as_echo_n "checking for stdint.h... " >&6; }
9126
if test "${gl_cv_header_stdint_h+set}" = set; then
9127
$as_echo_n "(cached) " >&6
9129
cat >conftest.$ac_ext <<_ACEOF
9132
cat confdefs.h >>conftest.$ac_ext
9133
cat >>conftest.$ac_ext <<_ACEOF
9134
/* end confdefs.h. */
9135
#include <sys/types.h>
9140
uintmax_t i = (uintmax_t) -1; return !i;
9145
rm -f conftest.$ac_objext
9146
if { (ac_try="$ac_compile"
9148
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9149
*) ac_try_echo=$ac_try;;
9151
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9152
$as_echo "$ac_try_echo") >&5
9153
(eval "$ac_compile") 2>conftest.er1
9155
grep -v '^ *+' conftest.er1 >conftest.err
9157
cat conftest.err >&5
9158
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159
(exit $ac_status); } && {
9160
test -z "$ac_c_werror_flag" ||
9161
test ! -s conftest.err
9162
} && test -s conftest.$ac_objext; then
9163
gl_cv_header_stdint_h=yes
9165
$as_echo "$as_me: failed program was:" >&5
9166
sed 's/^/| /' conftest.$ac_ext >&5
9168
gl_cv_header_stdint_h=no
9171
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9173
{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
9174
$as_echo "$gl_cv_header_stdint_h" >&6; }
9175
if test $gl_cv_header_stdint_h = yes; then
9177
cat >>confdefs.h <<_ACEOF
9178
#define HAVE_STDINT_H_WITH_UINTMAX 1
9186
{ $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
9187
$as_echo_n "checking for intmax_t... " >&6; }
9188
if test "${gt_cv_c_intmax_t+set}" = set; then
9189
$as_echo_n "(cached) " >&6
9191
cat >conftest.$ac_ext <<_ACEOF
9194
cat confdefs.h >>conftest.$ac_ext
9195
cat >>conftest.$ac_ext <<_ACEOF
9196
/* end confdefs.h. */
9200
#if HAVE_STDINT_H_WITH_UINTMAX
9203
#if HAVE_INTTYPES_H_WITH_UINTMAX
9204
#include <inttypes.h>
9210
intmax_t x = -1; return !x;
9215
rm -f conftest.$ac_objext
9216
if { (ac_try="$ac_compile"
9218
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9219
*) ac_try_echo=$ac_try;;
9221
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9222
$as_echo "$ac_try_echo") >&5
9223
(eval "$ac_compile") 2>conftest.er1
9225
grep -v '^ *+' conftest.er1 >conftest.err
9227
cat conftest.err >&5
9228
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9229
(exit $ac_status); } && {
9230
test -z "$ac_c_werror_flag" ||
9231
test ! -s conftest.err
9232
} && test -s conftest.$ac_objext; then
9233
gt_cv_c_intmax_t=yes
9235
$as_echo "$as_me: failed program was:" >&5
9236
sed 's/^/| /' conftest.$ac_ext >&5
9241
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9243
{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
9244
$as_echo "$gt_cv_c_intmax_t" >&6; }
9245
if test $gt_cv_c_intmax_t = yes; then
9247
cat >>confdefs.h <<\_ACEOF
9248
#define HAVE_INTMAX_T 1
9253
test $ac_cv_type_long_long_int = yes \
9254
&& ac_type='long long' \
9257
cat >>confdefs.h <<_ACEOF
9258
#define intmax_t $ac_type
9265
HAVE_DECL_WCWIDTH=1;
9271
GL_COND_LIBTOOL_TRUE=
9272
GL_COND_LIBTOOL_FALSE='#'
9274
GL_COND_LIBTOOL_TRUE='#'
9275
GL_COND_LIBTOOL_FALSE=
9278
gl_cond_libtool=true
9287
gl_source_base='gnulib/lib'
9293
if test $ac_cv_func_alloca_works = no; then
9297
# Define an additional variable used in the Makefile substitution.
9298
if test $ac_cv_working_alloca_h = yes; then
9299
{ $as_echo "$as_me:$LINENO: checking for alloca as a compiler built-in" >&5
9300
$as_echo_n "checking for alloca as a compiler built-in... " >&6; }
9301
if test "${gl_cv_rpl_alloca+set}" = set; then
9302
$as_echo_n "(cached) " >&6
9305
cat >conftest.$ac_ext <<_ACEOF
9308
cat confdefs.h >>conftest.$ac_ext
9309
cat >>conftest.$ac_ext <<_ACEOF
9310
/* end confdefs.h. */
9312
#if defined __GNUC__ || defined _AIX || defined _MSC_VER
9317
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9318
$EGREP "Need own alloca" >/dev/null 2>&1; then
9319
gl_cv_rpl_alloca=yes
9327
{ $as_echo "$as_me:$LINENO: result: $gl_cv_rpl_alloca" >&5
9328
$as_echo "$gl_cv_rpl_alloca" >&6; }
9329
if test $gl_cv_rpl_alloca = yes; then
9331
cat >>confdefs.h <<\_ACEOF
9332
#define HAVE_ALLOCA 1
9354
if test $ac_cv_header_arpa_inet_h = yes; then
9357
ARPA_INET_H='arpa/inet.h'
9372
if test $gl_cv_have_include_next = yes; then
9373
gl_cv_next_arpa_inet_h='<'arpa/inet.h'>'
9375
{ $as_echo "$as_me:$LINENO: checking absolute name of <arpa/inet.h>" >&5
9376
$as_echo_n "checking absolute name of <arpa/inet.h>... " >&6; }
9377
if test "${gl_cv_next_arpa_inet_h+set}" = set; then
9378
$as_echo_n "(cached) " >&6
9381
if test $ac_cv_header_arpa_inet_h = yes; then
9382
cat >conftest.$ac_ext <<_ACEOF
9385
cat confdefs.h >>conftest.$ac_ext
9386
cat >>conftest.$ac_ext <<_ACEOF
9387
/* end confdefs.h. */
9388
#include <arpa/inet.h>
9391
gl_cv_next_arpa_inet_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9392
sed -n '\#/arpa/inet.h#{
9393
s#.*"\(.*/arpa/inet.h\)".*#\1#
9399
gl_cv_next_arpa_inet_h='<'arpa/inet.h'>'
9403
{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_arpa_inet_h" >&5
9404
$as_echo "$gl_cv_next_arpa_inet_h" >&6; }
9406
NEXT_ARPA_INET_H=$gl_cv_next_arpa_inet_h
9411
{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
9412
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
9413
if test -z "$MKDIR_P"; then
9414
if test "${ac_cv_path_mkdir+set}" = set; then
9415
$as_echo_n "(cached) " >&6
9417
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9418
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
9421
test -z "$as_dir" && as_dir=.
9422
for ac_prog in mkdir gmkdir; do
9423
for ac_exec_ext in '' $ac_executable_extensions; do
9424
{ test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
9425
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
9426
'mkdir (GNU coreutils) '* | \
9427
'mkdir (coreutils) '* | \
9428
'mkdir (fileutils) '4.1*)
9429
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
9439
if test "${ac_cv_path_mkdir+set}" = set; then
9440
MKDIR_P="$ac_cv_path_mkdir -p"
9442
# As a last resort, use the slow shell script. Don't cache a
9443
# value for MKDIR_P within a source directory, because that will
9444
# break other packages using the cache if that directory is
9445
# removed, or if the value is a relative name.
9446
test -d ./--version && rmdir ./--version
9447
MKDIR_P="$ac_install_sh -d"
9450
{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
9451
$as_echo "$MKDIR_P" >&6; }
9454
if test "$ac_cv_header_winsock2_h" = yes; then
9463
gl_LIBOBJS="$gl_LIBOBJS winsock.$ac_objext"
9471
cat >>confdefs.h <<\_ACEOF
9472
#define GNULIB_CONNECT 1
9498
if test $gl_cv_have_include_next = yes; then
9499
gl_cv_next_float_h='<'float.h'>'
9501
{ $as_echo "$as_me:$LINENO: checking absolute name of <float.h>" >&5
9502
$as_echo_n "checking absolute name of <float.h>... " >&6; }
9503
if test "${gl_cv_next_float_h+set}" = set; then
9504
$as_echo_n "(cached) " >&6
9507
if test $ac_cv_header_float_h = yes; then
9508
cat >conftest.$ac_ext <<_ACEOF
9511
cat confdefs.h >>conftest.$ac_ext
9512
cat >>conftest.$ac_ext <<_ACEOF
9513
/* end confdefs.h. */
9517
gl_cv_next_float_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9518
sed -n '\#/float.h#{
9519
s#.*"\(.*/float.h\)".*#\1#
9525
gl_cv_next_float_h='<'float.h'>'
9529
{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_float_h" >&5
9530
$as_echo "$gl_cv_next_float_h" >&6; }
9532
NEXT_FLOAT_H=$gl_cv_next_float_h
9541
{ $as_echo "$as_me:$LINENO: checking how to do getaddrinfo, freeaddrinfo and getnameinfo" >&5
9542
$as_echo "$as_me: checking how to do getaddrinfo, freeaddrinfo and getnameinfo" >&6;}
9552
{ $as_echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
9553
$as_echo_n "checking for library containing getaddrinfo... " >&6; }
9554
if test "${ac_cv_search_getaddrinfo+set}" = set; then
9555
$as_echo_n "(cached) " >&6
9557
ac_func_search_save_LIBS=$LIBS
9558
cat >conftest.$ac_ext <<_ACEOF
9561
cat confdefs.h >>conftest.$ac_ext
9562
cat >>conftest.$ac_ext <<_ACEOF
9563
/* end confdefs.h. */
9565
/* Override any GCC internal prototype to avoid an error.
9566
Use char because int might match the return type of a GCC
9567
builtin and then its argument prototype would still apply. */
9571
char getaddrinfo ();
9575
return getaddrinfo ();
9580
for ac_lib in '' nsl socket; do
9581
if test -z "$ac_lib"; then
9582
ac_res="none required"
9585
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9587
rm -f conftest.$ac_objext conftest$ac_exeext
9588
if { (ac_try="$ac_link"
9590
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9591
*) ac_try_echo=$ac_try;;
9593
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9594
$as_echo "$ac_try_echo") >&5
9595
(eval "$ac_link") 2>conftest.er1
9597
grep -v '^ *+' conftest.er1 >conftest.err
9599
cat conftest.err >&5
9600
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601
(exit $ac_status); } && {
9602
test -z "$ac_c_werror_flag" ||
9603
test ! -s conftest.err
9604
} && test -s conftest$ac_exeext && {
9605
test "$cross_compiling" = yes ||
9606
$as_test_x conftest$ac_exeext
9608
ac_cv_search_getaddrinfo=$ac_res
9610
$as_echo "$as_me: failed program was:" >&5
9611
sed 's/^/| /' conftest.$ac_ext >&5
9616
rm -rf conftest.dSYM
9617
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9619
if test "${ac_cv_search_getaddrinfo+set}" = set; then
9623
if test "${ac_cv_search_getaddrinfo+set}" = set; then
9626
ac_cv_search_getaddrinfo=no
9629
LIBS=$ac_func_search_save_LIBS
9631
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
9632
$as_echo "$ac_cv_search_getaddrinfo" >&6; }
9633
ac_res=$ac_cv_search_getaddrinfo
9634
if test "$ac_res" != no; then
9635
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9639
{ $as_echo "$as_me:$LINENO: checking for getaddrinfo" >&5
9640
$as_echo_n "checking for getaddrinfo... " >&6; }
9641
if test "${gl_cv_func_getaddrinfo+set}" = set; then
9642
$as_echo_n "(cached) " >&6
9645
cat >conftest.$ac_ext <<_ACEOF
9648
cat confdefs.h >>conftest.$ac_ext
9649
cat >>conftest.$ac_ext <<_ACEOF
9650
/* end confdefs.h. */
9652
#include <sys/types.h>
9653
#ifdef HAVE_SYS_SOCKET_H
9654
#include <sys/socket.h>
9664
getaddrinfo("", "", NULL, NULL);
9669
rm -f conftest.$ac_objext conftest$ac_exeext
9670
if { (ac_try="$ac_link"
9672
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9673
*) ac_try_echo=$ac_try;;
9675
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9676
$as_echo "$ac_try_echo") >&5
9677
(eval "$ac_link") 2>conftest.er1
9679
grep -v '^ *+' conftest.er1 >conftest.err
9681
cat conftest.err >&5
9682
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683
(exit $ac_status); } && {
9684
test -z "$ac_c_werror_flag" ||
9685
test ! -s conftest.err
9686
} && test -s conftest$ac_exeext && {
9687
test "$cross_compiling" = yes ||
9688
$as_test_x conftest$ac_exeext
9690
gl_cv_func_getaddrinfo=yes
9692
$as_echo "$as_me: failed program was:" >&5
9693
sed 's/^/| /' conftest.$ac_ext >&5
9695
gl_cv_func_getaddrinfo=no
9698
rm -rf conftest.dSYM
9699
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9700
conftest$ac_exeext conftest.$ac_ext
9702
{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_getaddrinfo" >&5
9703
$as_echo "$gl_cv_func_getaddrinfo" >&6; }
9704
if test $gl_cv_func_getaddrinfo = no; then
9705
{ $as_echo "$as_me:$LINENO: checking for getaddrinfo in ws2tcpip.h and -lws2_32" >&5
9706
$as_echo_n "checking for getaddrinfo in ws2tcpip.h and -lws2_32... " >&6; }
9707
if test "${gl_cv_w32_getaddrinfo+set}" = set; then
9708
$as_echo_n "(cached) " >&6
9711
gl_cv_w32_getaddrinfo=no
9712
am_save_LIBS="$LIBS"
9713
LIBS="$LIBS -lws2_32"
9714
cat >conftest.$ac_ext <<_ACEOF
9717
cat confdefs.h >>conftest.$ac_ext
9718
cat >>conftest.$ac_ext <<_ACEOF
9719
/* end confdefs.h. */
9721
#ifdef HAVE_WS2TCPIP_H
9722
#include <ws2tcpip.h>
9729
getaddrinfo(NULL, NULL, NULL, NULL);
9734
rm -f conftest.$ac_objext conftest$ac_exeext
9735
if { (ac_try="$ac_link"
9737
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9738
*) ac_try_echo=$ac_try;;
9740
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9741
$as_echo "$ac_try_echo") >&5
9742
(eval "$ac_link") 2>conftest.er1
9744
grep -v '^ *+' conftest.er1 >conftest.err
9746
cat conftest.err >&5
9747
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748
(exit $ac_status); } && {
9749
test -z "$ac_c_werror_flag" ||
9750
test ! -s conftest.err
9751
} && test -s conftest$ac_exeext && {
9752
test "$cross_compiling" = yes ||
9753
$as_test_x conftest$ac_exeext
9755
gl_cv_w32_getaddrinfo=yes
9757
$as_echo "$as_me: failed program was:" >&5
9758
sed 's/^/| /' conftest.$ac_ext >&5
9763
rm -rf conftest.dSYM
9764
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9765
conftest$ac_exeext conftest.$ac_ext
9766
LIBS="$am_save_LIBS"
9768
{ $as_echo "$as_me:$LINENO: result: $gl_cv_w32_getaddrinfo" >&5
9769
$as_echo "$gl_cv_w32_getaddrinfo" >&6; }
9770
if test "$gl_cv_w32_getaddrinfo" = "yes"; then
9771
LIBS="$LIBS -lws2_32"
9781
gl_LIBOBJS="$gl_LIBOBJS getaddrinfo.$ac_objext"
9786
# We can't use AC_REPLACE_FUNCS here because gai_strerror may be an
9787
# inline function declared in ws2tcpip.h, so we need to get that
9788
# header included somehow.
9789
{ $as_echo "$as_me:$LINENO: checking for gai_strerror (possibly via ws2tcpip.h)" >&5
9790
$as_echo_n "checking for gai_strerror (possibly via ws2tcpip.h)... " >&6; }
9791
if test "${gl_cv_func_gai_strerror+set}" = set; then
9792
$as_echo_n "(cached) " >&6
9795
cat >conftest.$ac_ext <<_ACEOF
9798
cat confdefs.h >>conftest.$ac_ext
9799
cat >>conftest.$ac_ext <<_ACEOF
9800
/* end confdefs.h. */
9802
#include <sys/types.h>
9803
#ifdef HAVE_SYS_SOCKET_H
9804
#include <sys/socket.h>
9809
#ifdef HAVE_WS2TCPIP_H
9810
#include <ws2tcpip.h>
9817
gai_strerror (NULL);
9822
rm -f conftest.$ac_objext conftest$ac_exeext
9823
if { (ac_try="$ac_link"
9825
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9826
*) ac_try_echo=$ac_try;;
9828
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9829
$as_echo "$ac_try_echo") >&5
9830
(eval "$ac_link") 2>conftest.er1
9832
grep -v '^ *+' conftest.er1 >conftest.err
9834
cat conftest.err >&5
9835
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836
(exit $ac_status); } && {
9837
test -z "$ac_c_werror_flag" ||
9838
test ! -s conftest.err
9839
} && test -s conftest$ac_exeext && {
9840
test "$cross_compiling" = yes ||
9841
$as_test_x conftest$ac_exeext
9843
gl_cv_func_gai_strerror=yes
9845
$as_echo "$as_me: failed program was:" >&5
9846
sed 's/^/| /' conftest.$ac_ext >&5
9848
gl_cv_func_gai_strerror=no
9851
rm -rf conftest.dSYM
9852
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9853
conftest$ac_exeext conftest.$ac_ext
9855
{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_gai_strerror" >&5
9856
$as_echo "$gl_cv_func_gai_strerror" >&6; }
9857
if test $gl_cv_func_gai_strerror = no; then
9866
gl_LIBOBJS="$gl_LIBOBJS gai_strerror.$ac_objext"
9871
{ $as_echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
9872
$as_echo_n "checking for library containing gethostbyname... " >&6; }
9873
if test "${ac_cv_search_gethostbyname+set}" = set; then
9874
$as_echo_n "(cached) " >&6
9876
ac_func_search_save_LIBS=$LIBS
9877
cat >conftest.$ac_ext <<_ACEOF
9880
cat confdefs.h >>conftest.$ac_ext
9881
cat >>conftest.$ac_ext <<_ACEOF
9882
/* end confdefs.h. */
9884
/* Override any GCC internal prototype to avoid an error.
9885
Use char because int might match the return type of a GCC
9886
builtin and then its argument prototype would still apply. */
9890
char gethostbyname ();
9894
return gethostbyname ();
9899
for ac_lib in '' inet nsl; do
9900
if test -z "$ac_lib"; then
9901
ac_res="none required"
9904
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9906
rm -f conftest.$ac_objext conftest$ac_exeext
9907
if { (ac_try="$ac_link"
9909
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9910
*) ac_try_echo=$ac_try;;
9912
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9913
$as_echo "$ac_try_echo") >&5
9914
(eval "$ac_link") 2>conftest.er1
9916
grep -v '^ *+' conftest.er1 >conftest.err
9918
cat conftest.err >&5
9919
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920
(exit $ac_status); } && {
9921
test -z "$ac_c_werror_flag" ||
9922
test ! -s conftest.err
9923
} && test -s conftest$ac_exeext && {
9924
test "$cross_compiling" = yes ||
9925
$as_test_x conftest$ac_exeext
9927
ac_cv_search_gethostbyname=$ac_res
9929
$as_echo "$as_me: failed program was:" >&5
9930
sed 's/^/| /' conftest.$ac_ext >&5
9935
rm -rf conftest.dSYM
9936
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9938
if test "${ac_cv_search_gethostbyname+set}" = set; then
9942
if test "${ac_cv_search_gethostbyname+set}" = set; then
9945
ac_cv_search_gethostbyname=no
9948
LIBS=$ac_func_search_save_LIBS
9950
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
9951
$as_echo "$ac_cv_search_gethostbyname" >&6; }
9952
ac_res=$ac_cv_search_gethostbyname
9953
if test "$ac_res" != no; then
9954
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9958
{ $as_echo "$as_me:$LINENO: checking for library containing getservbyname" >&5
9959
$as_echo_n "checking for library containing getservbyname... " >&6; }
9960
if test "${ac_cv_search_getservbyname+set}" = set; then
9961
$as_echo_n "(cached) " >&6
9963
ac_func_search_save_LIBS=$LIBS
9964
cat >conftest.$ac_ext <<_ACEOF
9967
cat confdefs.h >>conftest.$ac_ext
9968
cat >>conftest.$ac_ext <<_ACEOF
9969
/* end confdefs.h. */
9971
/* Override any GCC internal prototype to avoid an error.
9972
Use char because int might match the return type of a GCC
9973
builtin and then its argument prototype would still apply. */
9977
char getservbyname ();
9981
return getservbyname ();
9986
for ac_lib in '' inet nsl socket xnet; do
9987
if test -z "$ac_lib"; then
9988
ac_res="none required"
9991
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9993
rm -f conftest.$ac_objext conftest$ac_exeext
9994
if { (ac_try="$ac_link"
9996
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9997
*) ac_try_echo=$ac_try;;
9999
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10000
$as_echo "$ac_try_echo") >&5
10001
(eval "$ac_link") 2>conftest.er1
10003
grep -v '^ *+' conftest.er1 >conftest.err
10005
cat conftest.err >&5
10006
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007
(exit $ac_status); } && {
10008
test -z "$ac_c_werror_flag" ||
10009
test ! -s conftest.err
10010
} && test -s conftest$ac_exeext && {
10011
test "$cross_compiling" = yes ||
10012
$as_test_x conftest$ac_exeext
10014
ac_cv_search_getservbyname=$ac_res
10016
$as_echo "$as_me: failed program was:" >&5
10017
sed 's/^/| /' conftest.$ac_ext >&5
10022
rm -rf conftest.dSYM
10023
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10025
if test "${ac_cv_search_getservbyname+set}" = set; then
10029
if test "${ac_cv_search_getservbyname+set}" = set; then
10032
ac_cv_search_getservbyname=no
10034
rm conftest.$ac_ext
10035
LIBS=$ac_func_search_save_LIBS
10037
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_getservbyname" >&5
10038
$as_echo "$ac_cv_search_getservbyname" >&6; }
10039
ac_res=$ac_cv_search_getservbyname
10040
if test "$ac_res" != no; then
10041
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10046
for ac_func in gethostbyname
10048
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10049
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10050
$as_echo_n "checking for $ac_func... " >&6; }
10051
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10052
$as_echo_n "(cached) " >&6
10054
cat >conftest.$ac_ext <<_ACEOF
10057
cat confdefs.h >>conftest.$ac_ext
10058
cat >>conftest.$ac_ext <<_ACEOF
10059
/* end confdefs.h. */
10060
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10061
For example, HP-UX 11i <limits.h> declares gettimeofday. */
10062
#define $ac_func innocuous_$ac_func
10064
/* System header to define __stub macros and hopefully few prototypes,
10065
which can conflict with char $ac_func (); below.
10066
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10067
<limits.h> exists even on freestanding compilers. */
10070
# include <limits.h>
10072
# include <assert.h>
10077
/* Override any GCC internal prototype to avoid an error.
10078
Use char because int might match the return type of a GCC
10079
builtin and then its argument prototype would still apply. */
10084
/* The GNU C library defines this for functions which it implements
10085
to always fail with ENOSYS. Some functions are actually named
10086
something starting with __ and the normal name is an alias. */
10087
#if defined __stub_$ac_func || defined __stub___$ac_func
10094
return $ac_func ();
10099
rm -f conftest.$ac_objext conftest$ac_exeext
10100
if { (ac_try="$ac_link"
10101
case "(($ac_try" in
10102
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10103
*) ac_try_echo=$ac_try;;
10105
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10106
$as_echo "$ac_try_echo") >&5
10107
(eval "$ac_link") 2>conftest.er1
10109
grep -v '^ *+' conftest.er1 >conftest.err
10111
cat conftest.err >&5
10112
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113
(exit $ac_status); } && {
10114
test -z "$ac_c_werror_flag" ||
10115
test ! -s conftest.err
10116
} && test -s conftest$ac_exeext && {
10117
test "$cross_compiling" = yes ||
10118
$as_test_x conftest$ac_exeext
10120
eval "$as_ac_var=yes"
10122
$as_echo "$as_me: failed program was:" >&5
10123
sed 's/^/| /' conftest.$ac_ext >&5
10125
eval "$as_ac_var=no"
10128
rm -rf conftest.dSYM
10129
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10130
conftest$ac_exeext conftest.$ac_ext
10132
ac_res=`eval 'as_val=${'$as_ac_var'}
10133
$as_echo "$as_val"'`
10134
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10135
$as_echo "$ac_res" >&6; }
10136
as_val=`eval 'as_val=${'$as_ac_var'}
10137
$as_echo "$as_val"'`
10138
if test "x$as_val" = x""yes; then
10139
cat >>confdefs.h <<_ACEOF
10140
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10145
{ $as_echo "$as_me:$LINENO: checking for gethostbyname in winsock2.h and -lws2_32" >&5
10146
$as_echo_n "checking for gethostbyname in winsock2.h and -lws2_32... " >&6; }
10147
if test "${gl_cv_w32_gethostbyname+set}" = set; then
10148
$as_echo_n "(cached) " >&6
10151
gl_cv_w32_gethostbyname=no
10152
am_save_LIBS="$LIBS"
10153
LIBS="$LIBS -lws2_32"
10154
cat >conftest.$ac_ext <<_ACEOF
10157
cat confdefs.h >>conftest.$ac_ext
10158
cat >>conftest.$ac_ext <<_ACEOF
10159
/* end confdefs.h. */
10161
#ifdef HAVE_WINSOCK2_H
10162
#include <winsock2.h>
10164
#include <stddef.h>
10169
gethostbyname(NULL);
10174
rm -f conftest.$ac_objext conftest$ac_exeext
10175
if { (ac_try="$ac_link"
10176
case "(($ac_try" in
10177
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10178
*) ac_try_echo=$ac_try;;
10180
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10181
$as_echo "$ac_try_echo") >&5
10182
(eval "$ac_link") 2>conftest.er1
10184
grep -v '^ *+' conftest.er1 >conftest.err
10186
cat conftest.err >&5
10187
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188
(exit $ac_status); } && {
10189
test -z "$ac_c_werror_flag" ||
10190
test ! -s conftest.err
10191
} && test -s conftest$ac_exeext && {
10192
test "$cross_compiling" = yes ||
10193
$as_test_x conftest$ac_exeext
10195
gl_cv_w32_gethostbyname=yes
10197
$as_echo "$as_me: failed program was:" >&5
10198
sed 's/^/| /' conftest.$ac_ext >&5
10203
rm -rf conftest.dSYM
10204
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10205
conftest$ac_exeext conftest.$ac_ext
10206
LIBS="$am_save_LIBS"
10208
{ $as_echo "$as_me:$LINENO: result: $gl_cv_w32_gethostbyname" >&5
10209
$as_echo "$gl_cv_w32_gethostbyname" >&6; }
10210
if test "$gl_cv_w32_gethostbyname" = "yes"; then
10211
LIBS="$LIBS -lws2_32"
10232
{ $as_echo "$as_me:$LINENO: checking whether getaddrinfo is declared" >&5
10233
$as_echo_n "checking whether getaddrinfo is declared... " >&6; }
10234
if test "${ac_cv_have_decl_getaddrinfo+set}" = set; then
10235
$as_echo_n "(cached) " >&6
10237
cat >conftest.$ac_ext <<_ACEOF
10240
cat confdefs.h >>conftest.$ac_ext
10241
cat >>conftest.$ac_ext <<_ACEOF
10242
/* end confdefs.h. */
10244
/* sys/types.h is not needed according to POSIX, but the
10245
sys/socket.h in i386-unknown-freebsd4.10 and
10246
powerpc-apple-darwin5.5 required it. */
10247
#include <sys/types.h>
10248
#ifdef HAVE_SYS_SOCKET_H
10249
#include <sys/socket.h>
10251
#ifdef HAVE_NETDB_H
10254
#ifdef HAVE_WS2TCPIP_H
10255
#include <ws2tcpip.h>
10262
#ifndef getaddrinfo
10263
(void) getaddrinfo;
10270
rm -f conftest.$ac_objext
10271
if { (ac_try="$ac_compile"
10272
case "(($ac_try" in
10273
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10274
*) ac_try_echo=$ac_try;;
10276
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10277
$as_echo "$ac_try_echo") >&5
10278
(eval "$ac_compile") 2>conftest.er1
10280
grep -v '^ *+' conftest.er1 >conftest.err
10282
cat conftest.err >&5
10283
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10284
(exit $ac_status); } && {
10285
test -z "$ac_c_werror_flag" ||
10286
test ! -s conftest.err
10287
} && test -s conftest.$ac_objext; then
10288
ac_cv_have_decl_getaddrinfo=yes
10290
$as_echo "$as_me: failed program was:" >&5
10291
sed 's/^/| /' conftest.$ac_ext >&5
10293
ac_cv_have_decl_getaddrinfo=no
10296
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10298
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getaddrinfo" >&5
10299
$as_echo "$ac_cv_have_decl_getaddrinfo" >&6; }
10300
if test "x$ac_cv_have_decl_getaddrinfo" = x""yes; then
10302
cat >>confdefs.h <<_ACEOF
10303
#define HAVE_DECL_GETADDRINFO 1
10308
cat >>confdefs.h <<_ACEOF
10309
#define HAVE_DECL_GETADDRINFO 0
10314
{ $as_echo "$as_me:$LINENO: checking whether freeaddrinfo is declared" >&5
10315
$as_echo_n "checking whether freeaddrinfo is declared... " >&6; }
10316
if test "${ac_cv_have_decl_freeaddrinfo+set}" = set; then
10317
$as_echo_n "(cached) " >&6
10319
cat >conftest.$ac_ext <<_ACEOF
10322
cat confdefs.h >>conftest.$ac_ext
10323
cat >>conftest.$ac_ext <<_ACEOF
10324
/* end confdefs.h. */
10326
/* sys/types.h is not needed according to POSIX, but the
10327
sys/socket.h in i386-unknown-freebsd4.10 and
10328
powerpc-apple-darwin5.5 required it. */
10329
#include <sys/types.h>
10330
#ifdef HAVE_SYS_SOCKET_H
10331
#include <sys/socket.h>
10333
#ifdef HAVE_NETDB_H
10336
#ifdef HAVE_WS2TCPIP_H
10337
#include <ws2tcpip.h>
10344
#ifndef freeaddrinfo
10345
(void) freeaddrinfo;
10352
rm -f conftest.$ac_objext
10353
if { (ac_try="$ac_compile"
10354
case "(($ac_try" in
10355
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10356
*) ac_try_echo=$ac_try;;
10358
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10359
$as_echo "$ac_try_echo") >&5
10360
(eval "$ac_compile") 2>conftest.er1
10362
grep -v '^ *+' conftest.er1 >conftest.err
10364
cat conftest.err >&5
10365
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366
(exit $ac_status); } && {
10367
test -z "$ac_c_werror_flag" ||
10368
test ! -s conftest.err
10369
} && test -s conftest.$ac_objext; then
10370
ac_cv_have_decl_freeaddrinfo=yes
10372
$as_echo "$as_me: failed program was:" >&5
10373
sed 's/^/| /' conftest.$ac_ext >&5
10375
ac_cv_have_decl_freeaddrinfo=no
10378
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10380
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_freeaddrinfo" >&5
10381
$as_echo "$ac_cv_have_decl_freeaddrinfo" >&6; }
10382
if test "x$ac_cv_have_decl_freeaddrinfo" = x""yes; then
10384
cat >>confdefs.h <<_ACEOF
10385
#define HAVE_DECL_FREEADDRINFO 1
10390
cat >>confdefs.h <<_ACEOF
10391
#define HAVE_DECL_FREEADDRINFO 0
10396
{ $as_echo "$as_me:$LINENO: checking whether gai_strerror is declared" >&5
10397
$as_echo_n "checking whether gai_strerror is declared... " >&6; }
10398
if test "${ac_cv_have_decl_gai_strerror+set}" = set; then
10399
$as_echo_n "(cached) " >&6
10401
cat >conftest.$ac_ext <<_ACEOF
10404
cat confdefs.h >>conftest.$ac_ext
10405
cat >>conftest.$ac_ext <<_ACEOF
10406
/* end confdefs.h. */
10408
/* sys/types.h is not needed according to POSIX, but the
10409
sys/socket.h in i386-unknown-freebsd4.10 and
10410
powerpc-apple-darwin5.5 required it. */
10411
#include <sys/types.h>
10412
#ifdef HAVE_SYS_SOCKET_H
10413
#include <sys/socket.h>
10415
#ifdef HAVE_NETDB_H
10418
#ifdef HAVE_WS2TCPIP_H
10419
#include <ws2tcpip.h>
10426
#ifndef gai_strerror
10427
(void) gai_strerror;
10434
rm -f conftest.$ac_objext
10435
if { (ac_try="$ac_compile"
10436
case "(($ac_try" in
10437
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10438
*) ac_try_echo=$ac_try;;
10440
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10441
$as_echo "$ac_try_echo") >&5
10442
(eval "$ac_compile") 2>conftest.er1
10444
grep -v '^ *+' conftest.er1 >conftest.err
10446
cat conftest.err >&5
10447
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448
(exit $ac_status); } && {
10449
test -z "$ac_c_werror_flag" ||
10450
test ! -s conftest.err
10451
} && test -s conftest.$ac_objext; then
10452
ac_cv_have_decl_gai_strerror=yes
10454
$as_echo "$as_me: failed program was:" >&5
10455
sed 's/^/| /' conftest.$ac_ext >&5
10457
ac_cv_have_decl_gai_strerror=no
10460
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10462
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_gai_strerror" >&5
10463
$as_echo "$ac_cv_have_decl_gai_strerror" >&6; }
10464
if test "x$ac_cv_have_decl_gai_strerror" = x""yes; then
10466
cat >>confdefs.h <<_ACEOF
10467
#define HAVE_DECL_GAI_STRERROR 1
10472
cat >>confdefs.h <<_ACEOF
10473
#define HAVE_DECL_GAI_STRERROR 0
10478
{ $as_echo "$as_me:$LINENO: checking whether getnameinfo is declared" >&5
10479
$as_echo_n "checking whether getnameinfo is declared... " >&6; }
10480
if test "${ac_cv_have_decl_getnameinfo+set}" = set; then
10481
$as_echo_n "(cached) " >&6
10483
cat >conftest.$ac_ext <<_ACEOF
10486
cat confdefs.h >>conftest.$ac_ext
10487
cat >>conftest.$ac_ext <<_ACEOF
10488
/* end confdefs.h. */
10490
/* sys/types.h is not needed according to POSIX, but the
10491
sys/socket.h in i386-unknown-freebsd4.10 and
10492
powerpc-apple-darwin5.5 required it. */
10493
#include <sys/types.h>
10494
#ifdef HAVE_SYS_SOCKET_H
10495
#include <sys/socket.h>
10497
#ifdef HAVE_NETDB_H
10500
#ifdef HAVE_WS2TCPIP_H
10501
#include <ws2tcpip.h>
10508
#ifndef getnameinfo
10509
(void) getnameinfo;
10516
rm -f conftest.$ac_objext
10517
if { (ac_try="$ac_compile"
10518
case "(($ac_try" in
10519
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10520
*) ac_try_echo=$ac_try;;
10522
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10523
$as_echo "$ac_try_echo") >&5
10524
(eval "$ac_compile") 2>conftest.er1
10526
grep -v '^ *+' conftest.er1 >conftest.err
10528
cat conftest.err >&5
10529
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530
(exit $ac_status); } && {
10531
test -z "$ac_c_werror_flag" ||
10532
test ! -s conftest.err
10533
} && test -s conftest.$ac_objext; then
10534
ac_cv_have_decl_getnameinfo=yes
10536
$as_echo "$as_me: failed program was:" >&5
10537
sed 's/^/| /' conftest.$ac_ext >&5
10539
ac_cv_have_decl_getnameinfo=no
10542
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10544
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getnameinfo" >&5
10545
$as_echo "$ac_cv_have_decl_getnameinfo" >&6; }
10546
if test "x$ac_cv_have_decl_getnameinfo" = x""yes; then
10548
cat >>confdefs.h <<_ACEOF
10549
#define HAVE_DECL_GETNAMEINFO 1
10554
cat >>confdefs.h <<_ACEOF
10555
#define HAVE_DECL_GETNAMEINFO 0
10562
{ $as_echo "$as_me:$LINENO: checking for struct addrinfo" >&5
10563
$as_echo_n "checking for struct addrinfo... " >&6; }
10564
if test "${ac_cv_type_struct_addrinfo+set}" = set; then
10565
$as_echo_n "(cached) " >&6
10567
ac_cv_type_struct_addrinfo=no
10568
cat >conftest.$ac_ext <<_ACEOF
10571
cat confdefs.h >>conftest.$ac_ext
10572
cat >>conftest.$ac_ext <<_ACEOF
10573
/* end confdefs.h. */
10575
#include <sys/types.h>
10576
#ifdef HAVE_SYS_SOCKET_H
10577
#include <sys/socket.h>
10579
#ifdef HAVE_NETDB_H
10582
#ifdef HAVE_WS2TCPIP_H
10583
#include <ws2tcpip.h>
10590
if (sizeof (struct addrinfo))
10596
rm -f conftest.$ac_objext
10597
if { (ac_try="$ac_compile"
10598
case "(($ac_try" in
10599
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10600
*) ac_try_echo=$ac_try;;
10602
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10603
$as_echo "$ac_try_echo") >&5
10604
(eval "$ac_compile") 2>conftest.er1
10606
grep -v '^ *+' conftest.er1 >conftest.err
10608
cat conftest.err >&5
10609
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610
(exit $ac_status); } && {
10611
test -z "$ac_c_werror_flag" ||
10612
test ! -s conftest.err
10613
} && test -s conftest.$ac_objext; then
10614
cat >conftest.$ac_ext <<_ACEOF
10617
cat confdefs.h >>conftest.$ac_ext
10618
cat >>conftest.$ac_ext <<_ACEOF
10619
/* end confdefs.h. */
10621
#include <sys/types.h>
10622
#ifdef HAVE_SYS_SOCKET_H
10623
#include <sys/socket.h>
10625
#ifdef HAVE_NETDB_H
10628
#ifdef HAVE_WS2TCPIP_H
10629
#include <ws2tcpip.h>
10636
if (sizeof ((struct addrinfo)))
10642
rm -f conftest.$ac_objext
10643
if { (ac_try="$ac_compile"
10644
case "(($ac_try" in
10645
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10646
*) ac_try_echo=$ac_try;;
10648
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10649
$as_echo "$ac_try_echo") >&5
10650
(eval "$ac_compile") 2>conftest.er1
10652
grep -v '^ *+' conftest.er1 >conftest.err
10654
cat conftest.err >&5
10655
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10656
(exit $ac_status); } && {
10657
test -z "$ac_c_werror_flag" ||
10658
test ! -s conftest.err
10659
} && test -s conftest.$ac_objext; then
10662
$as_echo "$as_me: failed program was:" >&5
10663
sed 's/^/| /' conftest.$ac_ext >&5
10665
ac_cv_type_struct_addrinfo=yes
10668
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10670
$as_echo "$as_me: failed program was:" >&5
10671
sed 's/^/| /' conftest.$ac_ext >&5
10676
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10678
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
10679
$as_echo "$ac_cv_type_struct_addrinfo" >&6; }
10680
if test "x$ac_cv_type_struct_addrinfo" = x""yes; then
10682
cat >>confdefs.h <<_ACEOF
10683
#define HAVE_STRUCT_ADDRINFO 1
10698
ARPA_INET_H='arpa/inet.h'
10710
for ac_func in inet_ntop
10712
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10713
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10714
$as_echo_n "checking for $ac_func... " >&6; }
10715
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10716
$as_echo_n "(cached) " >&6
10718
cat >conftest.$ac_ext <<_ACEOF
10721
cat confdefs.h >>conftest.$ac_ext
10722
cat >>conftest.$ac_ext <<_ACEOF
10723
/* end confdefs.h. */
10724
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10725
For example, HP-UX 11i <limits.h> declares gettimeofday. */
10726
#define $ac_func innocuous_$ac_func
10728
/* System header to define __stub macros and hopefully few prototypes,
10729
which can conflict with char $ac_func (); below.
10730
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10731
<limits.h> exists even on freestanding compilers. */
10734
# include <limits.h>
10736
# include <assert.h>
10741
/* Override any GCC internal prototype to avoid an error.
10742
Use char because int might match the return type of a GCC
10743
builtin and then its argument prototype would still apply. */
10748
/* The GNU C library defines this for functions which it implements
10749
to always fail with ENOSYS. Some functions are actually named
10750
something starting with __ and the normal name is an alias. */
10751
#if defined __stub_$ac_func || defined __stub___$ac_func
10758
return $ac_func ();
10763
rm -f conftest.$ac_objext conftest$ac_exeext
10764
if { (ac_try="$ac_link"
10765
case "(($ac_try" in
10766
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10767
*) ac_try_echo=$ac_try;;
10769
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10770
$as_echo "$ac_try_echo") >&5
10771
(eval "$ac_link") 2>conftest.er1
10773
grep -v '^ *+' conftest.er1 >conftest.err
10775
cat conftest.err >&5
10776
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777
(exit $ac_status); } && {
10778
test -z "$ac_c_werror_flag" ||
10779
test ! -s conftest.err
10780
} && test -s conftest$ac_exeext && {
10781
test "$cross_compiling" = yes ||
10782
$as_test_x conftest$ac_exeext
10784
eval "$as_ac_var=yes"
10786
$as_echo "$as_me: failed program was:" >&5
10787
sed 's/^/| /' conftest.$ac_ext >&5
10789
eval "$as_ac_var=no"
10792
rm -rf conftest.dSYM
10793
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10794
conftest$ac_exeext conftest.$ac_ext
10796
ac_res=`eval 'as_val=${'$as_ac_var'}
10797
$as_echo "$as_val"'`
10798
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10799
$as_echo "$ac_res" >&6; }
10800
as_val=`eval 'as_val=${'$as_ac_var'}
10801
$as_echo "$as_val"'`
10802
if test "x$as_val" = x""yes; then
10803
cat >>confdefs.h <<_ACEOF
10804
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10809
gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
10816
{ $as_echo "$as_me:$LINENO: checking whether inet_ntop is declared" >&5
10817
$as_echo_n "checking whether inet_ntop is declared... " >&6; }
10818
if test "${ac_cv_have_decl_inet_ntop+set}" = set; then
10819
$as_echo_n "(cached) " >&6
10821
cat >conftest.$ac_ext <<_ACEOF
10824
cat confdefs.h >>conftest.$ac_ext
10825
cat >>conftest.$ac_ext <<_ACEOF
10826
/* end confdefs.h. */
10827
#include <arpa/inet.h>
10840
rm -f conftest.$ac_objext
10841
if { (ac_try="$ac_compile"
10842
case "(($ac_try" in
10843
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10844
*) ac_try_echo=$ac_try;;
10846
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10847
$as_echo "$ac_try_echo") >&5
10848
(eval "$ac_compile") 2>conftest.er1
10850
grep -v '^ *+' conftest.er1 >conftest.err
10852
cat conftest.err >&5
10853
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10854
(exit $ac_status); } && {
10855
test -z "$ac_c_werror_flag" ||
10856
test ! -s conftest.err
10857
} && test -s conftest.$ac_objext; then
10858
ac_cv_have_decl_inet_ntop=yes
10860
$as_echo "$as_me: failed program was:" >&5
10861
sed 's/^/| /' conftest.$ac_ext >&5
10863
ac_cv_have_decl_inet_ntop=no
10866
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10868
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_inet_ntop" >&5
10869
$as_echo "$ac_cv_have_decl_inet_ntop" >&6; }
10870
if test "x$ac_cv_have_decl_inet_ntop" = x""yes; then
10872
cat >>confdefs.h <<_ACEOF
10873
#define HAVE_DECL_INET_NTOP 1
10878
cat >>confdefs.h <<_ACEOF
10879
#define HAVE_DECL_INET_NTOP 0
10886
if test $ac_cv_have_decl_inet_ntop = no; then
10887
HAVE_DECL_INET_NTOP=0
10898
for ac_header in stdlib.h
10900
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10901
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10902
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10903
$as_echo_n "checking for $ac_header... " >&6; }
10904
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10905
$as_echo_n "(cached) " >&6
10907
ac_res=`eval 'as_val=${'$as_ac_Header'}
10908
$as_echo "$as_val"'`
10909
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10910
$as_echo "$ac_res" >&6; }
10912
# Is the header compilable?
10913
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10914
$as_echo_n "checking $ac_header usability... " >&6; }
10915
cat >conftest.$ac_ext <<_ACEOF
10918
cat confdefs.h >>conftest.$ac_ext
10919
cat >>conftest.$ac_ext <<_ACEOF
10920
/* end confdefs.h. */
10921
$ac_includes_default
10922
#include <$ac_header>
10924
rm -f conftest.$ac_objext
10925
if { (ac_try="$ac_compile"
10926
case "(($ac_try" in
10927
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10928
*) ac_try_echo=$ac_try;;
10930
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10931
$as_echo "$ac_try_echo") >&5
10932
(eval "$ac_compile") 2>conftest.er1
10934
grep -v '^ *+' conftest.er1 >conftest.err
10936
cat conftest.err >&5
10937
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938
(exit $ac_status); } && {
10939
test -z "$ac_c_werror_flag" ||
10940
test ! -s conftest.err
10941
} && test -s conftest.$ac_objext; then
10942
ac_header_compiler=yes
10944
$as_echo "$as_me: failed program was:" >&5
10945
sed 's/^/| /' conftest.$ac_ext >&5
10947
ac_header_compiler=no
10950
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10951
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10952
$as_echo "$ac_header_compiler" >&6; }
10954
# Is the header present?
10955
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10956
$as_echo_n "checking $ac_header presence... " >&6; }
10957
cat >conftest.$ac_ext <<_ACEOF
10960
cat confdefs.h >>conftest.$ac_ext
10961
cat >>conftest.$ac_ext <<_ACEOF
10962
/* end confdefs.h. */
10963
#include <$ac_header>
10965
if { (ac_try="$ac_cpp conftest.$ac_ext"
10966
case "(($ac_try" in
10967
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10968
*) ac_try_echo=$ac_try;;
10970
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10971
$as_echo "$ac_try_echo") >&5
10972
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10974
grep -v '^ *+' conftest.er1 >conftest.err
10976
cat conftest.err >&5
10977
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978
(exit $ac_status); } >/dev/null && {
10979
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10980
test ! -s conftest.err
10982
ac_header_preproc=yes
10984
$as_echo "$as_me: failed program was:" >&5
10985
sed 's/^/| /' conftest.$ac_ext >&5
10987
ac_header_preproc=no
10990
rm -f conftest.err conftest.$ac_ext
10991
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10992
$as_echo "$ac_header_preproc" >&6; }
10994
# So? What about this header?
10995
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10997
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10998
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10999
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11000
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11001
ac_header_preproc=yes
11004
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11005
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11006
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11007
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11008
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11009
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11010
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11011
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11012
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11013
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11014
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11015
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11019
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11020
$as_echo_n "checking for $ac_header... " >&6; }
11021
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11022
$as_echo_n "(cached) " >&6
11024
eval "$as_ac_Header=\$ac_header_preproc"
11026
ac_res=`eval 'as_val=${'$as_ac_Header'}
11027
$as_echo "$as_val"'`
11028
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11029
$as_echo "$ac_res" >&6; }
11032
as_val=`eval 'as_val=${'$as_ac_Header'}
11033
$as_echo "$as_val"'`
11034
if test "x$as_val" = x""yes; then
11035
cat >>confdefs.h <<_ACEOF
11036
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11043
{ $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
11044
$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
11045
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
11046
$as_echo_n "(cached) " >&6
11048
if test "$cross_compiling" = yes; then
11049
ac_cv_func_malloc_0_nonnull=no
11051
cat >conftest.$ac_ext <<_ACEOF
11054
cat confdefs.h >>conftest.$ac_ext
11055
cat >>conftest.$ac_ext <<_ACEOF
11056
/* end confdefs.h. */
11057
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
11058
# include <stdlib.h>
11066
return ! malloc (0);
11071
rm -f conftest$ac_exeext
11072
if { (ac_try="$ac_link"
11073
case "(($ac_try" in
11074
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11075
*) ac_try_echo=$ac_try;;
11077
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11078
$as_echo "$ac_try_echo") >&5
11079
(eval "$ac_link") 2>&5
11081
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11083
{ (case "(($ac_try" in
11084
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11085
*) ac_try_echo=$ac_try;;
11087
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11088
$as_echo "$ac_try_echo") >&5
11089
(eval "$ac_try") 2>&5
11091
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11092
(exit $ac_status); }; }; then
11093
ac_cv_func_malloc_0_nonnull=yes
11095
$as_echo "$as_me: program exited with status $ac_status" >&5
11096
$as_echo "$as_me: failed program was:" >&5
11097
sed 's/^/| /' conftest.$ac_ext >&5
11099
( exit $ac_status )
11100
ac_cv_func_malloc_0_nonnull=no
11102
rm -rf conftest.dSYM
11103
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11108
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
11109
$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
11110
if test $ac_cv_func_malloc_0_nonnull = yes; then
11112
cat >>confdefs.h <<\_ACEOF
11113
#define HAVE_MALLOC 1
11117
cat >>confdefs.h <<\_ACEOF
11118
#define HAVE_MALLOC 0
11129
gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
11132
cat >>confdefs.h <<\_ACEOF
11133
#define malloc rpl_malloc
11141
cat >>confdefs.h <<\_ACEOF
11142
#define GNULIB_MALLOC_GNU 1
11147
if test $gl_cv_func_malloc_posix = yes; then
11148
HAVE_MALLOC_POSIX=1
11150
cat >>confdefs.h <<\_ACEOF
11151
#define HAVE_MALLOC_POSIX 1
11163
gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
11165
HAVE_MALLOC_POSIX=0
11171
GNULIB_MALLOC_POSIX=1
11174
{ $as_echo "$as_me:$LINENO: checking whether <netinet/in.h> is self-contained" >&5
11175
$as_echo_n "checking whether <netinet/in.h> is self-contained... " >&6; }
11176
if test "${gl_cv_header_netinet_in_h_selfcontained+set}" = set; then
11177
$as_echo_n "(cached) " >&6
11180
cat >conftest.$ac_ext <<_ACEOF
11183
cat confdefs.h >>conftest.$ac_ext
11184
cat >>conftest.$ac_ext <<_ACEOF
11185
/* end confdefs.h. */
11186
#include <netinet/in.h>
11195
rm -f conftest.$ac_objext
11196
if { (ac_try="$ac_compile"
11197
case "(($ac_try" in
11198
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11199
*) ac_try_echo=$ac_try;;
11201
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11202
$as_echo "$ac_try_echo") >&5
11203
(eval "$ac_compile") 2>conftest.er1
11205
grep -v '^ *+' conftest.er1 >conftest.err
11207
cat conftest.err >&5
11208
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209
(exit $ac_status); } && {
11210
test -z "$ac_c_werror_flag" ||
11211
test ! -s conftest.err
11212
} && test -s conftest.$ac_objext; then
11213
gl_cv_header_netinet_in_h_selfcontained=yes
11215
$as_echo "$as_me: failed program was:" >&5
11216
sed 's/^/| /' conftest.$ac_ext >&5
11218
gl_cv_header_netinet_in_h_selfcontained=no
11221
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11224
{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_netinet_in_h_selfcontained" >&5
11225
$as_echo "$gl_cv_header_netinet_in_h_selfcontained" >&6; }
11226
if test $gl_cv_header_netinet_in_h_selfcontained = yes; then
11229
NETINET_IN_H='netinet/in.h'
11231
for ac_header in netinet/in.h
11233
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11234
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11235
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11236
$as_echo_n "checking for $ac_header... " >&6; }
11237
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11238
$as_echo_n "(cached) " >&6
11240
ac_res=`eval 'as_val=${'$as_ac_Header'}
11241
$as_echo "$as_val"'`
11242
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11243
$as_echo "$ac_res" >&6; }
11245
# Is the header compilable?
11246
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11247
$as_echo_n "checking $ac_header usability... " >&6; }
11248
cat >conftest.$ac_ext <<_ACEOF
11251
cat confdefs.h >>conftest.$ac_ext
11252
cat >>conftest.$ac_ext <<_ACEOF
11253
/* end confdefs.h. */
11254
$ac_includes_default
11255
#include <$ac_header>
11257
rm -f conftest.$ac_objext
11258
if { (ac_try="$ac_compile"
11259
case "(($ac_try" in
11260
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11261
*) ac_try_echo=$ac_try;;
11263
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11264
$as_echo "$ac_try_echo") >&5
11265
(eval "$ac_compile") 2>conftest.er1
11267
grep -v '^ *+' conftest.er1 >conftest.err
11269
cat conftest.err >&5
11270
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11271
(exit $ac_status); } && {
11272
test -z "$ac_c_werror_flag" ||
11273
test ! -s conftest.err
11274
} && test -s conftest.$ac_objext; then
11275
ac_header_compiler=yes
11277
$as_echo "$as_me: failed program was:" >&5
11278
sed 's/^/| /' conftest.$ac_ext >&5
11280
ac_header_compiler=no
11283
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11284
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11285
$as_echo "$ac_header_compiler" >&6; }
11287
# Is the header present?
11288
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11289
$as_echo_n "checking $ac_header presence... " >&6; }
11290
cat >conftest.$ac_ext <<_ACEOF
11293
cat confdefs.h >>conftest.$ac_ext
11294
cat >>conftest.$ac_ext <<_ACEOF
11295
/* end confdefs.h. */
11296
#include <$ac_header>
11298
if { (ac_try="$ac_cpp conftest.$ac_ext"
11299
case "(($ac_try" in
11300
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11301
*) ac_try_echo=$ac_try;;
11303
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11304
$as_echo "$ac_try_echo") >&5
11305
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11307
grep -v '^ *+' conftest.er1 >conftest.err
11309
cat conftest.err >&5
11310
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311
(exit $ac_status); } >/dev/null && {
11312
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11313
test ! -s conftest.err
11315
ac_header_preproc=yes
11317
$as_echo "$as_me: failed program was:" >&5
11318
sed 's/^/| /' conftest.$ac_ext >&5
11320
ac_header_preproc=no
11323
rm -f conftest.err conftest.$ac_ext
11324
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11325
$as_echo "$ac_header_preproc" >&6; }
11327
# So? What about this header?
11328
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11330
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11331
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11332
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11333
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11334
ac_header_preproc=yes
11337
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11338
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11339
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11340
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11341
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11342
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11343
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11344
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11345
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11346
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11347
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11348
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11352
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11353
$as_echo_n "checking for $ac_header... " >&6; }
11354
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11355
$as_echo_n "(cached) " >&6
11357
eval "$as_ac_Header=\$ac_header_preproc"
11359
ac_res=`eval 'as_val=${'$as_ac_Header'}
11360
$as_echo "$as_val"'`
11361
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11362
$as_echo "$ac_res" >&6; }
11365
as_val=`eval 'as_val=${'$as_ac_Header'}
11366
$as_echo "$as_val"'`
11367
if test "x$as_val" = x""yes; then
11368
cat >>confdefs.h <<_ACEOF
11369
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11387
if test $gl_cv_have_include_next = yes; then
11388
gl_cv_next_netinet_in_h='<'netinet/in.h'>'
11390
{ $as_echo "$as_me:$LINENO: checking absolute name of <netinet/in.h>" >&5
11391
$as_echo_n "checking absolute name of <netinet/in.h>... " >&6; }
11392
if test "${gl_cv_next_netinet_in_h+set}" = set; then
11393
$as_echo_n "(cached) " >&6
11396
if test $ac_cv_header_netinet_in_h = yes; then
11397
cat >conftest.$ac_ext <<_ACEOF
11400
cat confdefs.h >>conftest.$ac_ext
11401
cat >>conftest.$ac_ext <<_ACEOF
11402
/* end confdefs.h. */
11403
#include <netinet/in.h>
11406
gl_cv_next_netinet_in_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11407
sed -n '\#/netinet/in.h#{
11408
s#.*"\(.*/netinet/in.h\)".*#\1#
11414
gl_cv_next_netinet_in_h='<'netinet/in.h'>'
11418
{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_netinet_in_h" >&5
11419
$as_echo "$gl_cv_next_netinet_in_h" >&6; }
11421
NEXT_NETINET_IN_H=$gl_cv_next_netinet_in_h
11425
if test $ac_cv_header_netinet_in_h = yes; then
11426
HAVE_NETINET_IN_H=1
11428
HAVE_NETINET_IN_H=0
11434
{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
11435
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
11436
if test -z "$MKDIR_P"; then
11437
if test "${ac_cv_path_mkdir+set}" = set; then
11438
$as_echo_n "(cached) " >&6
11440
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11441
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
11444
test -z "$as_dir" && as_dir=.
11445
for ac_prog in mkdir gmkdir; do
11446
for ac_exec_ext in '' $ac_executable_extensions; do
11447
{ test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
11448
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
11449
'mkdir (GNU coreutils) '* | \
11450
'mkdir (coreutils) '* | \
11451
'mkdir (fileutils) '4.1*)
11452
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
11462
if test "${ac_cv_path_mkdir+set}" = set; then
11463
MKDIR_P="$ac_cv_path_mkdir -p"
11465
# As a last resort, use the slow shell script. Don't cache a
11466
# value for MKDIR_P within a source directory, because that will
11467
# break other packages using the cache if that directory is
11468
# removed, or if the value is a relative name.
11469
test -d ./--version && rmdir ./--version
11470
MKDIR_P="$ac_install_sh -d"
11473
{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
11474
$as_echo "$MKDIR_P" >&6; }
11477
if test "$ac_cv_header_winsock2_h" = yes; then
11486
gl_LIBOBJS="$gl_LIBOBJS winsock.$ac_objext"
11494
cat >>confdefs.h <<\_ACEOF
11495
#define GNULIB_RECV 1
11501
if test "$ac_cv_header_winsock2_h" = yes; then
11510
gl_LIBOBJS="$gl_LIBOBJS winsock.$ac_objext"
11518
cat >>confdefs.h <<\_ACEOF
11519
#define GNULIB_SEND 1
11526
for ac_header in stdint.h
11528
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11529
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11530
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11531
$as_echo_n "checking for $ac_header... " >&6; }
11532
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11533
$as_echo_n "(cached) " >&6
11535
ac_res=`eval 'as_val=${'$as_ac_Header'}
11536
$as_echo "$as_val"'`
11537
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11538
$as_echo "$ac_res" >&6; }
11540
# Is the header compilable?
11541
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11542
$as_echo_n "checking $ac_header usability... " >&6; }
11543
cat >conftest.$ac_ext <<_ACEOF
11546
cat confdefs.h >>conftest.$ac_ext
11547
cat >>conftest.$ac_ext <<_ACEOF
11548
/* end confdefs.h. */
11549
$ac_includes_default
11550
#include <$ac_header>
11552
rm -f conftest.$ac_objext
11553
if { (ac_try="$ac_compile"
11554
case "(($ac_try" in
11555
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11556
*) ac_try_echo=$ac_try;;
11558
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11559
$as_echo "$ac_try_echo") >&5
11560
(eval "$ac_compile") 2>conftest.er1
11562
grep -v '^ *+' conftest.er1 >conftest.err
11564
cat conftest.err >&5
11565
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566
(exit $ac_status); } && {
11567
test -z "$ac_c_werror_flag" ||
11568
test ! -s conftest.err
11569
} && test -s conftest.$ac_objext; then
11570
ac_header_compiler=yes
11572
$as_echo "$as_me: failed program was:" >&5
11573
sed 's/^/| /' conftest.$ac_ext >&5
11575
ac_header_compiler=no
11578
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11579
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11580
$as_echo "$ac_header_compiler" >&6; }
11582
# Is the header present?
11583
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11584
$as_echo_n "checking $ac_header presence... " >&6; }
11585
cat >conftest.$ac_ext <<_ACEOF
11588
cat confdefs.h >>conftest.$ac_ext
11589
cat >>conftest.$ac_ext <<_ACEOF
11590
/* end confdefs.h. */
11591
#include <$ac_header>
11593
if { (ac_try="$ac_cpp conftest.$ac_ext"
11594
case "(($ac_try" in
11595
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11596
*) ac_try_echo=$ac_try;;
11598
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11599
$as_echo "$ac_try_echo") >&5
11600
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11602
grep -v '^ *+' conftest.er1 >conftest.err
11604
cat conftest.err >&5
11605
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606
(exit $ac_status); } >/dev/null && {
11607
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11608
test ! -s conftest.err
11610
ac_header_preproc=yes
11612
$as_echo "$as_me: failed program was:" >&5
11613
sed 's/^/| /' conftest.$ac_ext >&5
11615
ac_header_preproc=no
11618
rm -f conftest.err conftest.$ac_ext
11619
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11620
$as_echo "$ac_header_preproc" >&6; }
11622
# So? What about this header?
11623
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11625
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11626
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11627
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11628
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11629
ac_header_preproc=yes
11632
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11633
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11634
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11635
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11636
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11637
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11638
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11639
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11640
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11641
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11642
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11643
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11647
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11648
$as_echo_n "checking for $ac_header... " >&6; }
11649
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11650
$as_echo_n "(cached) " >&6
11652
eval "$as_ac_Header=\$ac_header_preproc"
11654
ac_res=`eval 'as_val=${'$as_ac_Header'}
11655
$as_echo "$as_val"'`
11656
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11657
$as_echo "$ac_res" >&6; }
11660
as_val=`eval 'as_val=${'$as_ac_Header'}
11661
$as_echo "$as_val"'`
11662
if test "x$as_val" = x""yes; then
11663
cat >>confdefs.h <<_ACEOF
11664
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11671
{ $as_echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
11672
$as_echo_n "checking for SIZE_MAX... " >&6; }
11673
if test "${gl_cv_size_max+set}" = set; then
11674
$as_echo_n "(cached) " >&6
11678
cat >conftest.$ac_ext <<_ACEOF
11681
cat confdefs.h >>conftest.$ac_ext
11682
cat >>conftest.$ac_ext <<_ACEOF
11683
/* end confdefs.h. */
11685
#include <limits.h>
11687
#include <stdint.h>
11694
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11695
$EGREP "Found it" >/dev/null 2>&1; then
11700
if test -z "$gl_cv_size_max"; then
11701
if test "$cross_compiling" = yes; then
11702
# Depending upon the size, compute the lo and hi bounds.
11703
cat >conftest.$ac_ext <<_ACEOF
11706
cat confdefs.h >>conftest.$ac_ext
11707
cat >>conftest.$ac_ext <<_ACEOF
11708
/* end confdefs.h. */
11709
#include <stddef.h>
11710
#include <limits.h>
11714
static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
11721
rm -f conftest.$ac_objext
11722
if { (ac_try="$ac_compile"
11723
case "(($ac_try" in
11724
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11725
*) ac_try_echo=$ac_try;;
11727
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11728
$as_echo "$ac_try_echo") >&5
11729
(eval "$ac_compile") 2>conftest.er1
11731
grep -v '^ *+' conftest.er1 >conftest.err
11733
cat conftest.err >&5
11734
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735
(exit $ac_status); } && {
11736
test -z "$ac_c_werror_flag" ||
11737
test ! -s conftest.err
11738
} && test -s conftest.$ac_objext; then
11741
cat >conftest.$ac_ext <<_ACEOF
11744
cat confdefs.h >>conftest.$ac_ext
11745
cat >>conftest.$ac_ext <<_ACEOF
11746
/* end confdefs.h. */
11747
#include <stddef.h>
11748
#include <limits.h>
11752
static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
11759
rm -f conftest.$ac_objext
11760
if { (ac_try="$ac_compile"
11761
case "(($ac_try" in
11762
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11763
*) ac_try_echo=$ac_try;;
11765
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11766
$as_echo "$ac_try_echo") >&5
11767
(eval "$ac_compile") 2>conftest.er1
11769
grep -v '^ *+' conftest.er1 >conftest.err
11771
cat conftest.err >&5
11772
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11773
(exit $ac_status); } && {
11774
test -z "$ac_c_werror_flag" ||
11775
test ! -s conftest.err
11776
} && test -s conftest.$ac_objext; then
11777
ac_hi=$ac_mid; break
11779
$as_echo "$as_me: failed program was:" >&5
11780
sed 's/^/| /' conftest.$ac_ext >&5
11782
ac_lo=`expr $ac_mid + 1`
11783
if test $ac_lo -le $ac_mid; then
11787
ac_mid=`expr 2 '*' $ac_mid + 1`
11790
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11793
$as_echo "$as_me: failed program was:" >&5
11794
sed 's/^/| /' conftest.$ac_ext >&5
11796
cat >conftest.$ac_ext <<_ACEOF
11799
cat confdefs.h >>conftest.$ac_ext
11800
cat >>conftest.$ac_ext <<_ACEOF
11801
/* end confdefs.h. */
11802
#include <stddef.h>
11803
#include <limits.h>
11807
static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
11814
rm -f conftest.$ac_objext
11815
if { (ac_try="$ac_compile"
11816
case "(($ac_try" in
11817
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11818
*) ac_try_echo=$ac_try;;
11820
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11821
$as_echo "$ac_try_echo") >&5
11822
(eval "$ac_compile") 2>conftest.er1
11824
grep -v '^ *+' conftest.er1 >conftest.err
11826
cat conftest.err >&5
11827
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11828
(exit $ac_status); } && {
11829
test -z "$ac_c_werror_flag" ||
11830
test ! -s conftest.err
11831
} && test -s conftest.$ac_objext; then
11834
cat >conftest.$ac_ext <<_ACEOF
11837
cat confdefs.h >>conftest.$ac_ext
11838
cat >>conftest.$ac_ext <<_ACEOF
11839
/* end confdefs.h. */
11840
#include <stddef.h>
11841
#include <limits.h>
11845
static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
11852
rm -f conftest.$ac_objext
11853
if { (ac_try="$ac_compile"
11854
case "(($ac_try" in
11855
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11856
*) ac_try_echo=$ac_try;;
11858
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11859
$as_echo "$ac_try_echo") >&5
11860
(eval "$ac_compile") 2>conftest.er1
11862
grep -v '^ *+' conftest.er1 >conftest.err
11864
cat conftest.err >&5
11865
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866
(exit $ac_status); } && {
11867
test -z "$ac_c_werror_flag" ||
11868
test ! -s conftest.err
11869
} && test -s conftest.$ac_objext; then
11870
ac_lo=$ac_mid; break
11872
$as_echo "$as_me: failed program was:" >&5
11873
sed 's/^/| /' conftest.$ac_ext >&5
11875
ac_hi=`expr '(' $ac_mid ')' - 1`
11876
if test $ac_mid -le $ac_hi; then
11880
ac_mid=`expr 2 '*' $ac_mid`
11883
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11886
$as_echo "$as_me: failed program was:" >&5
11887
sed 's/^/| /' conftest.$ac_ext >&5
11892
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11895
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11896
# Binary search between lo and hi bounds.
11897
while test "x$ac_lo" != "x$ac_hi"; do
11898
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11899
cat >conftest.$ac_ext <<_ACEOF
11902
cat confdefs.h >>conftest.$ac_ext
11903
cat >>conftest.$ac_ext <<_ACEOF
11904
/* end confdefs.h. */
11905
#include <stddef.h>
11906
#include <limits.h>
11910
static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
11917
rm -f conftest.$ac_objext
11918
if { (ac_try="$ac_compile"
11919
case "(($ac_try" in
11920
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11921
*) ac_try_echo=$ac_try;;
11923
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11924
$as_echo "$ac_try_echo") >&5
11925
(eval "$ac_compile") 2>conftest.er1
11927
grep -v '^ *+' conftest.er1 >conftest.err
11929
cat conftest.err >&5
11930
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931
(exit $ac_status); } && {
11932
test -z "$ac_c_werror_flag" ||
11933
test ! -s conftest.err
11934
} && test -s conftest.$ac_objext; then
11937
$as_echo "$as_me: failed program was:" >&5
11938
sed 's/^/| /' conftest.$ac_ext >&5
11940
ac_lo=`expr '(' $ac_mid ')' + 1`
11943
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11946
?*) size_t_bits_minus_1=$ac_lo;;
11947
'') size_t_bits_minus_1= ;;
11950
cat >conftest.$ac_ext <<_ACEOF
11953
cat confdefs.h >>conftest.$ac_ext
11954
cat >>conftest.$ac_ext <<_ACEOF
11955
/* end confdefs.h. */
11956
#include <stddef.h>
11957
#include <limits.h>
11958
static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
11959
static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
11961
#include <stdlib.h>
11966
FILE *f = fopen ("conftest.val", "w");
11969
if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
11971
long int i = longval ();
11972
if (i != (sizeof (size_t) * CHAR_BIT - 1))
11974
fprintf (f, "%ld", i);
11978
unsigned long int i = ulongval ();
11979
if (i != (sizeof (size_t) * CHAR_BIT - 1))
11981
fprintf (f, "%lu", i);
11983
/* Do not output a trailing newline, as this causes \r\n confusion
11984
on some platforms. */
11985
return ferror (f) || fclose (f) != 0;
11991
rm -f conftest$ac_exeext
11992
if { (ac_try="$ac_link"
11993
case "(($ac_try" in
11994
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11995
*) ac_try_echo=$ac_try;;
11997
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11998
$as_echo "$ac_try_echo") >&5
11999
(eval "$ac_link") 2>&5
12001
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12002
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12003
{ (case "(($ac_try" in
12004
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12005
*) ac_try_echo=$ac_try;;
12007
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12008
$as_echo "$ac_try_echo") >&5
12009
(eval "$ac_try") 2>&5
12011
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012
(exit $ac_status); }; }; then
12013
size_t_bits_minus_1=`cat conftest.val`
12015
$as_echo "$as_me: program exited with status $ac_status" >&5
12016
$as_echo "$as_me: failed program was:" >&5
12017
sed 's/^/| /' conftest.$ac_ext >&5
12019
( exit $ac_status )
12020
size_t_bits_minus_1=
12022
rm -rf conftest.dSYM
12023
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12026
if test "$cross_compiling" = yes; then
12027
# Depending upon the size, compute the lo and hi bounds.
12028
cat >conftest.$ac_ext <<_ACEOF
12031
cat confdefs.h >>conftest.$ac_ext
12032
cat >>conftest.$ac_ext <<_ACEOF
12033
/* end confdefs.h. */
12034
#include <stddef.h>
12038
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
12045
rm -f conftest.$ac_objext
12046
if { (ac_try="$ac_compile"
12047
case "(($ac_try" in
12048
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12049
*) ac_try_echo=$ac_try;;
12051
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12052
$as_echo "$ac_try_echo") >&5
12053
(eval "$ac_compile") 2>conftest.er1
12055
grep -v '^ *+' conftest.er1 >conftest.err
12057
cat conftest.err >&5
12058
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059
(exit $ac_status); } && {
12060
test -z "$ac_c_werror_flag" ||
12061
test ! -s conftest.err
12062
} && test -s conftest.$ac_objext; then
12065
cat >conftest.$ac_ext <<_ACEOF
12068
cat confdefs.h >>conftest.$ac_ext
12069
cat >>conftest.$ac_ext <<_ACEOF
12070
/* end confdefs.h. */
12071
#include <stddef.h>
12075
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
12082
rm -f conftest.$ac_objext
12083
if { (ac_try="$ac_compile"
12084
case "(($ac_try" in
12085
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12086
*) ac_try_echo=$ac_try;;
12088
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12089
$as_echo "$ac_try_echo") >&5
12090
(eval "$ac_compile") 2>conftest.er1
12092
grep -v '^ *+' conftest.er1 >conftest.err
12094
cat conftest.err >&5
12095
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096
(exit $ac_status); } && {
12097
test -z "$ac_c_werror_flag" ||
12098
test ! -s conftest.err
12099
} && test -s conftest.$ac_objext; then
12100
ac_hi=$ac_mid; break
12102
$as_echo "$as_me: failed program was:" >&5
12103
sed 's/^/| /' conftest.$ac_ext >&5
12105
ac_lo=`expr $ac_mid + 1`
12106
if test $ac_lo -le $ac_mid; then
12110
ac_mid=`expr 2 '*' $ac_mid + 1`
12113
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12116
$as_echo "$as_me: failed program was:" >&5
12117
sed 's/^/| /' conftest.$ac_ext >&5
12119
cat >conftest.$ac_ext <<_ACEOF
12122
cat confdefs.h >>conftest.$ac_ext
12123
cat >>conftest.$ac_ext <<_ACEOF
12124
/* end confdefs.h. */
12125
#include <stddef.h>
12129
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
12136
rm -f conftest.$ac_objext
12137
if { (ac_try="$ac_compile"
12138
case "(($ac_try" in
12139
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12140
*) ac_try_echo=$ac_try;;
12142
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12143
$as_echo "$ac_try_echo") >&5
12144
(eval "$ac_compile") 2>conftest.er1
12146
grep -v '^ *+' conftest.er1 >conftest.err
12148
cat conftest.err >&5
12149
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12150
(exit $ac_status); } && {
12151
test -z "$ac_c_werror_flag" ||
12152
test ! -s conftest.err
12153
} && test -s conftest.$ac_objext; then
12156
cat >conftest.$ac_ext <<_ACEOF
12159
cat confdefs.h >>conftest.$ac_ext
12160
cat >>conftest.$ac_ext <<_ACEOF
12161
/* end confdefs.h. */
12162
#include <stddef.h>
12166
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
12173
rm -f conftest.$ac_objext
12174
if { (ac_try="$ac_compile"
12175
case "(($ac_try" in
12176
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12177
*) ac_try_echo=$ac_try;;
12179
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12180
$as_echo "$ac_try_echo") >&5
12181
(eval "$ac_compile") 2>conftest.er1
12183
grep -v '^ *+' conftest.er1 >conftest.err
12185
cat conftest.err >&5
12186
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187
(exit $ac_status); } && {
12188
test -z "$ac_c_werror_flag" ||
12189
test ! -s conftest.err
12190
} && test -s conftest.$ac_objext; then
12191
ac_lo=$ac_mid; break
12193
$as_echo "$as_me: failed program was:" >&5
12194
sed 's/^/| /' conftest.$ac_ext >&5
12196
ac_hi=`expr '(' $ac_mid ')' - 1`
12197
if test $ac_mid -le $ac_hi; then
12201
ac_mid=`expr 2 '*' $ac_mid`
12204
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12207
$as_echo "$as_me: failed program was:" >&5
12208
sed 's/^/| /' conftest.$ac_ext >&5
12213
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12216
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12217
# Binary search between lo and hi bounds.
12218
while test "x$ac_lo" != "x$ac_hi"; do
12219
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12220
cat >conftest.$ac_ext <<_ACEOF
12223
cat confdefs.h >>conftest.$ac_ext
12224
cat >>conftest.$ac_ext <<_ACEOF
12225
/* end confdefs.h. */
12226
#include <stddef.h>
12230
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
12237
rm -f conftest.$ac_objext
12238
if { (ac_try="$ac_compile"
12239
case "(($ac_try" in
12240
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12241
*) ac_try_echo=$ac_try;;
12243
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12244
$as_echo "$ac_try_echo") >&5
12245
(eval "$ac_compile") 2>conftest.er1
12247
grep -v '^ *+' conftest.er1 >conftest.err
12249
cat conftest.err >&5
12250
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12251
(exit $ac_status); } && {
12252
test -z "$ac_c_werror_flag" ||
12253
test ! -s conftest.err
12254
} && test -s conftest.$ac_objext; then
12257
$as_echo "$as_me: failed program was:" >&5
12258
sed 's/^/| /' conftest.$ac_ext >&5
12260
ac_lo=`expr '(' $ac_mid ')' + 1`
12263
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12266
?*) fits_in_uint=$ac_lo;;
12267
'') fits_in_uint= ;;
12270
cat >conftest.$ac_ext <<_ACEOF
12273
cat confdefs.h >>conftest.$ac_ext
12274
cat >>conftest.$ac_ext <<_ACEOF
12275
/* end confdefs.h. */
12276
#include <stddef.h>
12277
static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
12278
static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
12280
#include <stdlib.h>
12285
FILE *f = fopen ("conftest.val", "w");
12288
if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
12290
long int i = longval ();
12291
if (i != (sizeof (size_t) <= sizeof (unsigned int)))
12293
fprintf (f, "%ld", i);
12297
unsigned long int i = ulongval ();
12298
if (i != (sizeof (size_t) <= sizeof (unsigned int)))
12300
fprintf (f, "%lu", i);
12302
/* Do not output a trailing newline, as this causes \r\n confusion
12303
on some platforms. */
12304
return ferror (f) || fclose (f) != 0;
12310
rm -f conftest$ac_exeext
12311
if { (ac_try="$ac_link"
12312
case "(($ac_try" in
12313
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12314
*) ac_try_echo=$ac_try;;
12316
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12317
$as_echo "$ac_try_echo") >&5
12318
(eval "$ac_link") 2>&5
12320
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12322
{ (case "(($ac_try" in
12323
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12324
*) ac_try_echo=$ac_try;;
12326
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12327
$as_echo "$ac_try_echo") >&5
12328
(eval "$ac_try") 2>&5
12330
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331
(exit $ac_status); }; }; then
12332
fits_in_uint=`cat conftest.val`
12334
$as_echo "$as_me: program exited with status $ac_status" >&5
12335
$as_echo "$as_me: failed program was:" >&5
12336
sed 's/^/| /' conftest.$ac_ext >&5
12338
( exit $ac_status )
12341
rm -rf conftest.dSYM
12342
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12345
if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
12346
if test $fits_in_uint = 1; then
12347
cat >conftest.$ac_ext <<_ACEOF
12350
cat confdefs.h >>conftest.$ac_ext
12351
cat >>conftest.$ac_ext <<_ACEOF
12352
/* end confdefs.h. */
12353
#include <stddef.h>
12355
extern unsigned long foo;
12365
rm -f conftest.$ac_objext
12366
if { (ac_try="$ac_compile"
12367
case "(($ac_try" in
12368
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12369
*) ac_try_echo=$ac_try;;
12371
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12372
$as_echo "$ac_try_echo") >&5
12373
(eval "$ac_compile") 2>conftest.er1
12375
grep -v '^ *+' conftest.er1 >conftest.err
12377
cat conftest.err >&5
12378
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379
(exit $ac_status); } && {
12380
test -z "$ac_c_werror_flag" ||
12381
test ! -s conftest.err
12382
} && test -s conftest.$ac_objext; then
12385
$as_echo "$as_me: failed program was:" >&5
12386
sed 's/^/| /' conftest.$ac_ext >&5
12391
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12393
if test $fits_in_uint = 1; then
12394
gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
12396
gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
12399
gl_cv_size_max='((size_t)~(size_t)0)'
12405
{ $as_echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5
12406
$as_echo "$gl_cv_size_max" >&6; }
12407
if test "$gl_cv_size_max" != yes; then
12409
cat >>confdefs.h <<_ACEOF
12410
#define SIZE_MAX $gl_cv_size_max
12417
gl_cv_func_snprintf_usable=no
12419
for ac_func in snprintf
12421
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12422
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12423
$as_echo_n "checking for $ac_func... " >&6; }
12424
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12425
$as_echo_n "(cached) " >&6
12427
cat >conftest.$ac_ext <<_ACEOF
12430
cat confdefs.h >>conftest.$ac_ext
12431
cat >>conftest.$ac_ext <<_ACEOF
12432
/* end confdefs.h. */
12433
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12434
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12435
#define $ac_func innocuous_$ac_func
12437
/* System header to define __stub macros and hopefully few prototypes,
12438
which can conflict with char $ac_func (); below.
12439
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12440
<limits.h> exists even on freestanding compilers. */
12443
# include <limits.h>
12445
# include <assert.h>
12450
/* Override any GCC internal prototype to avoid an error.
12451
Use char because int might match the return type of a GCC
12452
builtin and then its argument prototype would still apply. */
12457
/* The GNU C library defines this for functions which it implements
12458
to always fail with ENOSYS. Some functions are actually named
12459
something starting with __ and the normal name is an alias. */
12460
#if defined __stub_$ac_func || defined __stub___$ac_func
12467
return $ac_func ();
12472
rm -f conftest.$ac_objext conftest$ac_exeext
12473
if { (ac_try="$ac_link"
12474
case "(($ac_try" in
12475
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12476
*) ac_try_echo=$ac_try;;
12478
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12479
$as_echo "$ac_try_echo") >&5
12480
(eval "$ac_link") 2>conftest.er1
12482
grep -v '^ *+' conftest.er1 >conftest.err
12484
cat conftest.err >&5
12485
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486
(exit $ac_status); } && {
12487
test -z "$ac_c_werror_flag" ||
12488
test ! -s conftest.err
12489
} && test -s conftest$ac_exeext && {
12490
test "$cross_compiling" = yes ||
12491
$as_test_x conftest$ac_exeext
12493
eval "$as_ac_var=yes"
12495
$as_echo "$as_me: failed program was:" >&5
12496
sed 's/^/| /' conftest.$ac_ext >&5
12498
eval "$as_ac_var=no"
12501
rm -rf conftest.dSYM
12502
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12503
conftest$ac_exeext conftest.$ac_ext
12505
ac_res=`eval 'as_val=${'$as_ac_var'}
12506
$as_echo "$as_val"'`
12507
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12508
$as_echo "$ac_res" >&6; }
12509
as_val=`eval 'as_val=${'$as_ac_var'}
12510
$as_echo "$as_val"'`
12511
if test "x$as_val" = x""yes; then
12512
cat >>confdefs.h <<_ACEOF
12513
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12519
if test $ac_cv_func_snprintf = yes; then
12522
{ $as_echo "$as_me:$LINENO: checking whether snprintf respects a size of 1" >&5
12523
$as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
12524
if test "${gl_cv_func_snprintf_size1+set}" = set; then
12525
$as_echo_n "(cached) " >&6
12528
if test "$cross_compiling" = yes; then
12529
gl_cv_func_snprintf_size1="guessing yes"
12531
cat >conftest.$ac_ext <<_ACEOF
12534
cat confdefs.h >>conftest.$ac_ext
12535
cat >>conftest.$ac_ext <<_ACEOF
12536
/* end confdefs.h. */
12541
static char buf[8] = "DEADBEEF";
12542
snprintf (buf, 1, "%d", 12345);
12543
return buf[1] != 'E';
12546
rm -f conftest$ac_exeext
12547
if { (ac_try="$ac_link"
12548
case "(($ac_try" in
12549
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12550
*) ac_try_echo=$ac_try;;
12552
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12553
$as_echo "$ac_try_echo") >&5
12554
(eval "$ac_link") 2>&5
12556
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12558
{ (case "(($ac_try" in
12559
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12560
*) ac_try_echo=$ac_try;;
12562
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12563
$as_echo "$ac_try_echo") >&5
12564
(eval "$ac_try") 2>&5
12566
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567
(exit $ac_status); }; }; then
12568
gl_cv_func_snprintf_size1=yes
12570
$as_echo "$as_me: program exited with status $ac_status" >&5
12571
$as_echo "$as_me: failed program was:" >&5
12572
sed 's/^/| /' conftest.$ac_ext >&5
12574
( exit $ac_status )
12575
gl_cv_func_snprintf_size1=no
12577
rm -rf conftest.dSYM
12578
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12584
{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_snprintf_size1" >&5
12585
$as_echo "$gl_cv_func_snprintf_size1" >&6; }
12587
case "$gl_cv_func_snprintf_size1" in
12589
gl_cv_func_snprintf_usable=yes
12593
if test $gl_cv_func_snprintf_usable = no; then
12604
gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
12606
if test $ac_cv_func_snprintf = yes; then
12619
if test $ac_cv_have_decl_snprintf = no; then
12620
HAVE_DECL_SNPRINTF=0
12628
if test "$ac_cv_header_winsock2_h" = yes; then
12637
gl_LIBOBJS="$gl_LIBOBJS winsock.$ac_objext"
12645
cat >>confdefs.h <<\_ACEOF
12646
#define GNULIB_SOCKET 1
12651
{ $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
12652
$as_echo_n "checking for socklen_t... " >&6; }
12653
if test "${ac_cv_type_socklen_t+set}" = set; then
12654
$as_echo_n "(cached) " >&6
12656
ac_cv_type_socklen_t=no
12657
cat >conftest.$ac_ext <<_ACEOF
12660
cat confdefs.h >>conftest.$ac_ext
12661
cat >>conftest.$ac_ext <<_ACEOF
12662
/* end confdefs.h. */
12663
#include <sys/types.h>
12664
#if HAVE_SYS_SOCKET_H
12665
# include <sys/socket.h>
12666
#elif HAVE_WS2TCPIP_H
12667
# include <ws2tcpip.h>
12673
if (sizeof (socklen_t))
12679
rm -f conftest.$ac_objext
12680
if { (ac_try="$ac_compile"
12681
case "(($ac_try" in
12682
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12683
*) ac_try_echo=$ac_try;;
12685
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12686
$as_echo "$ac_try_echo") >&5
12687
(eval "$ac_compile") 2>conftest.er1
12689
grep -v '^ *+' conftest.er1 >conftest.err
12691
cat conftest.err >&5
12692
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693
(exit $ac_status); } && {
12694
test -z "$ac_c_werror_flag" ||
12695
test ! -s conftest.err
12696
} && test -s conftest.$ac_objext; then
12697
cat >conftest.$ac_ext <<_ACEOF
12700
cat confdefs.h >>conftest.$ac_ext
12701
cat >>conftest.$ac_ext <<_ACEOF
12702
/* end confdefs.h. */
12703
#include <sys/types.h>
12704
#if HAVE_SYS_SOCKET_H
12705
# include <sys/socket.h>
12706
#elif HAVE_WS2TCPIP_H
12707
# include <ws2tcpip.h>
12713
if (sizeof ((socklen_t)))
12719
rm -f conftest.$ac_objext
12720
if { (ac_try="$ac_compile"
12721
case "(($ac_try" in
12722
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12723
*) ac_try_echo=$ac_try;;
12725
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12726
$as_echo "$ac_try_echo") >&5
12727
(eval "$ac_compile") 2>conftest.er1
12729
grep -v '^ *+' conftest.er1 >conftest.err
12731
cat conftest.err >&5
12732
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733
(exit $ac_status); } && {
12734
test -z "$ac_c_werror_flag" ||
12735
test ! -s conftest.err
12736
} && test -s conftest.$ac_objext; then
12739
$as_echo "$as_me: failed program was:" >&5
12740
sed 's/^/| /' conftest.$ac_ext >&5
12742
ac_cv_type_socklen_t=yes
12745
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12747
$as_echo "$as_me: failed program was:" >&5
12748
sed 's/^/| /' conftest.$ac_ext >&5
12753
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12755
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
12756
$as_echo "$ac_cv_type_socklen_t" >&6; }
12757
if test "x$ac_cv_type_socklen_t" = x""yes; then
12760
{ $as_echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
12761
$as_echo_n "checking for socklen_t equivalent... " >&6; }
12762
if test "${gl_cv_socklen_t_equiv+set}" = set; then
12763
$as_echo_n "(cached) " >&6
12765
# Systems have either "struct sockaddr *" or
12766
# "void *" as the second argument to getpeername
12767
gl_cv_socklen_t_equiv=
12768
for arg2 in "struct sockaddr" void; do
12769
for t in int size_t "unsigned int" "long int" "unsigned long int"; do
12770
cat >conftest.$ac_ext <<_ACEOF
12773
cat confdefs.h >>conftest.$ac_ext
12774
cat >>conftest.$ac_ext <<_ACEOF
12775
/* end confdefs.h. */
12776
#include <sys/types.h>
12777
#include <sys/socket.h>
12779
int getpeername (int, $arg2 *, $t *);
12784
getpeername (0, 0, &len);
12789
rm -f conftest.$ac_objext
12790
if { (ac_try="$ac_compile"
12791
case "(($ac_try" in
12792
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12793
*) ac_try_echo=$ac_try;;
12795
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12796
$as_echo "$ac_try_echo") >&5
12797
(eval "$ac_compile") 2>conftest.er1
12799
grep -v '^ *+' conftest.er1 >conftest.err
12801
cat conftest.err >&5
12802
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12803
(exit $ac_status); } && {
12804
test -z "$ac_c_werror_flag" ||
12805
test ! -s conftest.err
12806
} && test -s conftest.$ac_objext; then
12807
gl_cv_socklen_t_equiv="$t"
12809
$as_echo "$as_me: failed program was:" >&5
12810
sed 's/^/| /' conftest.$ac_ext >&5
12815
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12816
test "$gl_cv_socklen_t_equiv" != "" && break
12818
test "$gl_cv_socklen_t_equiv" != "" && break
12823
if test "$gl_cv_socklen_t_equiv" = ""; then
12824
{ { $as_echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
12825
$as_echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
12826
{ (exit 1); exit 1; }; }
12828
{ $as_echo "$as_me:$LINENO: result: $gl_cv_socklen_t_equiv" >&5
12829
$as_echo "$gl_cv_socklen_t_equiv" >&6; }
12831
cat >>confdefs.h <<_ACEOF
12832
#define socklen_t $gl_cv_socklen_t_equiv
12840
# Define two additional variables used in the Makefile substitution.
12842
if test "$ac_cv_header_stdbool_h" = yes; then
12845
STDBOOL_H='stdbool.h'
12849
if test "$ac_cv_type__Bool" = yes; then
12859
if test $ac_cv_type_long_long_int = yes; then
12860
HAVE_LONG_LONG_INT=1
12862
HAVE_LONG_LONG_INT=0
12866
if test $ac_cv_type_unsigned_long_long_int = yes; then
12867
HAVE_UNSIGNED_LONG_LONG_INT=1
12869
HAVE_UNSIGNED_LONG_LONG_INT=0
12873
if test $ac_cv_header_inttypes_h = yes; then
12880
if test $ac_cv_header_sys_types_h = yes; then
12898
if test $gl_cv_have_include_next = yes; then
12899
gl_cv_next_stdint_h='<'stdint.h'>'
12901
{ $as_echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
12902
$as_echo_n "checking absolute name of <stdint.h>... " >&6; }
12903
if test "${gl_cv_next_stdint_h+set}" = set; then
12904
$as_echo_n "(cached) " >&6
12907
if test $ac_cv_header_stdint_h = yes; then
12908
cat >conftest.$ac_ext <<_ACEOF
12911
cat confdefs.h >>conftest.$ac_ext
12912
cat >>conftest.$ac_ext <<_ACEOF
12913
/* end confdefs.h. */
12914
#include <stdint.h>
12917
gl_cv_next_stdint_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12918
sed -n '\#/stdint.h#{
12919
s#.*"\(.*/stdint.h\)".*#\1#
12925
gl_cv_next_stdint_h='<'stdint.h'>'
12929
{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
12930
$as_echo "$gl_cv_next_stdint_h" >&6; }
12932
NEXT_STDINT_H=$gl_cv_next_stdint_h
12936
if test $ac_cv_header_stdint_h = yes; then
12943
if test $ac_cv_header_stdint_h = yes; then
12944
{ $as_echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
12945
$as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
12946
if test "${gl_cv_header_working_stdint_h+set}" = set; then
12947
$as_echo_n "(cached) " >&6
12949
gl_cv_header_working_stdint_h=no
12950
cat >conftest.$ac_ext <<_ACEOF
12954
cat confdefs.h >>conftest.$ac_ext
12955
cat >>conftest.$ac_ext <<_ACEOF
12956
/* end confdefs.h. */
12958
#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
12959
#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
12960
#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
12961
#include <stdint.h>
12962
/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
12963
#if !(defined WCHAR_MIN && defined WCHAR_MAX)
12964
#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
12968
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12969
included before <wchar.h>. */
12970
#include <stddef.h>
12971
#include <signal.h>
12973
# include <stdio.h>
12975
# include <wchar.h>
12980
int8_t a1 = INT8_MAX;
12981
int8_t a1min = INT8_MIN;
12984
int16_t a2 = INT16_MAX;
12985
int16_t a2min = INT16_MIN;
12988
int32_t a3 = INT32_MAX;
12989
int32_t a3min = INT32_MIN;
12992
int64_t a4 = INT64_MAX;
12993
int64_t a4min = INT64_MIN;
12996
uint8_t b1 = UINT8_MAX;
12998
typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
13001
uint16_t b2 = UINT16_MAX;
13004
uint32_t b3 = UINT32_MAX;
13007
uint64_t b4 = UINT64_MAX;
13009
int_least8_t c1 = INT8_C (0x7f);
13010
int_least8_t c1max = INT_LEAST8_MAX;
13011
int_least8_t c1min = INT_LEAST8_MIN;
13012
int_least16_t c2 = INT16_C (0x7fff);
13013
int_least16_t c2max = INT_LEAST16_MAX;
13014
int_least16_t c2min = INT_LEAST16_MIN;
13015
int_least32_t c3 = INT32_C (0x7fffffff);
13016
int_least32_t c3max = INT_LEAST32_MAX;
13017
int_least32_t c3min = INT_LEAST32_MIN;
13018
int_least64_t c4 = INT64_C (0x7fffffffffffffff);
13019
int_least64_t c4max = INT_LEAST64_MAX;
13020
int_least64_t c4min = INT_LEAST64_MIN;
13021
uint_least8_t d1 = UINT8_C (0xff);
13022
uint_least8_t d1max = UINT_LEAST8_MAX;
13023
uint_least16_t d2 = UINT16_C (0xffff);
13024
uint_least16_t d2max = UINT_LEAST16_MAX;
13025
uint_least32_t d3 = UINT32_C (0xffffffff);
13026
uint_least32_t d3max = UINT_LEAST32_MAX;
13027
uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
13028
uint_least64_t d4max = UINT_LEAST64_MAX;
13029
int_fast8_t e1 = INT_FAST8_MAX;
13030
int_fast8_t e1min = INT_FAST8_MIN;
13031
int_fast16_t e2 = INT_FAST16_MAX;
13032
int_fast16_t e2min = INT_FAST16_MIN;
13033
int_fast32_t e3 = INT_FAST32_MAX;
13034
int_fast32_t e3min = INT_FAST32_MIN;
13035
int_fast64_t e4 = INT_FAST64_MAX;
13036
int_fast64_t e4min = INT_FAST64_MIN;
13037
uint_fast8_t f1 = UINT_FAST8_MAX;
13038
uint_fast16_t f2 = UINT_FAST16_MAX;
13039
uint_fast32_t f3 = UINT_FAST32_MAX;
13040
uint_fast64_t f4 = UINT_FAST64_MAX;
13042
intptr_t g = INTPTR_MAX;
13043
intptr_t gmin = INTPTR_MIN;
13046
uintptr_t h = UINTPTR_MAX;
13048
intmax_t i = INTMAX_MAX;
13049
uintmax_t j = UINTMAX_MAX;
13051
#include <limits.h> /* for CHAR_BIT */
13052
#define TYPE_MINIMUM(t) \
13053
((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
13054
#define TYPE_MAXIMUM(t) \
13055
((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
13058
PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
13059
&& PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
13061
/* Detect bug in FreeBSD 6.0 / ia64. */
13062
int check_SIG_ATOMIC:
13063
SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
13064
&& SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
13066
int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
13068
WCHAR_MIN == TYPE_MINIMUM (wchar_t)
13069
&& WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
13071
/* Detect bug in mingw. */
13073
WINT_MIN == TYPE_MINIMUM (wint_t)
13074
&& WINT_MAX == TYPE_MAXIMUM (wint_t)
13077
/* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
13079
(-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
13080
int check_UINT16_C:
13081
(-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
13083
/* Detect bugs in OpenBSD 3.9 stdint.h. */
13085
int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
13088
int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
13091
int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
13094
int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
13096
int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
13097
int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
13098
int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
13099
int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
13100
int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
13101
int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
13102
int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
13103
int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
13104
int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
13105
int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
13106
int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
13117
rm -f conftest.$ac_objext
13118
if { (ac_try="$ac_compile"
13119
case "(($ac_try" in
13120
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13121
*) ac_try_echo=$ac_try;;
13123
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13124
$as_echo "$ac_try_echo") >&5
13125
(eval "$ac_compile") 2>conftest.er1
13127
grep -v '^ *+' conftest.er1 >conftest.err
13129
cat conftest.err >&5
13130
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13131
(exit $ac_status); } && {
13132
test -z "$ac_c_werror_flag" ||
13133
test ! -s conftest.err
13134
} && test -s conftest.$ac_objext; then
13135
gl_cv_header_working_stdint_h=yes
13137
$as_echo "$as_me: failed program was:" >&5
13138
sed 's/^/| /' conftest.$ac_ext >&5
13143
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13145
{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
13146
$as_echo "$gl_cv_header_working_stdint_h" >&6; }
13148
if test "$gl_cv_header_working_stdint_h" = yes; then
13153
for ac_header in sys/inttypes.h sys/bitypes.h
13155
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13156
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13157
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13158
$as_echo_n "checking for $ac_header... " >&6; }
13159
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13160
$as_echo_n "(cached) " >&6
13162
ac_res=`eval 'as_val=${'$as_ac_Header'}
13163
$as_echo "$as_val"'`
13164
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13165
$as_echo "$ac_res" >&6; }
13167
# Is the header compilable?
13168
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13169
$as_echo_n "checking $ac_header usability... " >&6; }
13170
cat >conftest.$ac_ext <<_ACEOF
13173
cat confdefs.h >>conftest.$ac_ext
13174
cat >>conftest.$ac_ext <<_ACEOF
13175
/* end confdefs.h. */
13176
$ac_includes_default
13177
#include <$ac_header>
13179
rm -f conftest.$ac_objext
13180
if { (ac_try="$ac_compile"
13181
case "(($ac_try" in
13182
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13183
*) ac_try_echo=$ac_try;;
13185
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13186
$as_echo "$ac_try_echo") >&5
13187
(eval "$ac_compile") 2>conftest.er1
13189
grep -v '^ *+' conftest.er1 >conftest.err
13191
cat conftest.err >&5
13192
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193
(exit $ac_status); } && {
13194
test -z "$ac_c_werror_flag" ||
13195
test ! -s conftest.err
13196
} && test -s conftest.$ac_objext; then
13197
ac_header_compiler=yes
13199
$as_echo "$as_me: failed program was:" >&5
13200
sed 's/^/| /' conftest.$ac_ext >&5
13202
ac_header_compiler=no
13205
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13206
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13207
$as_echo "$ac_header_compiler" >&6; }
13209
# Is the header present?
13210
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13211
$as_echo_n "checking $ac_header presence... " >&6; }
13212
cat >conftest.$ac_ext <<_ACEOF
13215
cat confdefs.h >>conftest.$ac_ext
13216
cat >>conftest.$ac_ext <<_ACEOF
13217
/* end confdefs.h. */
13218
#include <$ac_header>
13220
if { (ac_try="$ac_cpp conftest.$ac_ext"
13221
case "(($ac_try" in
13222
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13223
*) ac_try_echo=$ac_try;;
13225
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13226
$as_echo "$ac_try_echo") >&5
13227
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13229
grep -v '^ *+' conftest.er1 >conftest.err
13231
cat conftest.err >&5
13232
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13233
(exit $ac_status); } >/dev/null && {
13234
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13235
test ! -s conftest.err
13237
ac_header_preproc=yes
13239
$as_echo "$as_me: failed program was:" >&5
13240
sed 's/^/| /' conftest.$ac_ext >&5
13242
ac_header_preproc=no
13245
rm -f conftest.err conftest.$ac_ext
13246
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13247
$as_echo "$ac_header_preproc" >&6; }
13249
# So? What about this header?
13250
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13252
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13253
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13254
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13255
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13256
ac_header_preproc=yes
13259
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13260
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13261
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13262
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13263
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13264
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13265
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13266
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13267
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13268
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13269
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13270
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13274
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13275
$as_echo_n "checking for $ac_header... " >&6; }
13276
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13277
$as_echo_n "(cached) " >&6
13279
eval "$as_ac_Header=\$ac_header_preproc"
13281
ac_res=`eval 'as_val=${'$as_ac_Header'}
13282
$as_echo "$as_val"'`
13283
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13284
$as_echo "$ac_res" >&6; }
13287
as_val=`eval 'as_val=${'$as_ac_Header'}
13288
$as_echo "$as_val"'`
13289
if test "x$as_val" = x""yes; then
13290
cat >>confdefs.h <<_ACEOF
13291
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13298
if test $ac_cv_header_sys_inttypes_h = yes; then
13299
HAVE_SYS_INTTYPES_H=1
13301
HAVE_SYS_INTTYPES_H=0
13304
if test $ac_cv_header_sys_bitypes_h = yes; then
13305
HAVE_SYS_BITYPES_H=1
13307
HAVE_SYS_BITYPES_H=0
13327
for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
13328
{ $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
13329
$as_echo_n "checking for bit size of $gltype... " >&6; }
13330
if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
13331
$as_echo_n "(cached) " >&6
13333
if test "$cross_compiling" = yes; then
13334
# Depending upon the size, compute the lo and hi bounds.
13335
cat >conftest.$ac_ext <<_ACEOF
13338
cat confdefs.h >>conftest.$ac_ext
13339
cat >>conftest.$ac_ext <<_ACEOF
13340
/* end confdefs.h. */
13342
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13343
included before <wchar.h>. */
13344
#include <stddef.h>
13345
#include <signal.h>
13347
# include <stdio.h>
13349
# include <wchar.h>
13352
#include <limits.h>
13356
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
13363
rm -f conftest.$ac_objext
13364
if { (ac_try="$ac_compile"
13365
case "(($ac_try" in
13366
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13367
*) ac_try_echo=$ac_try;;
13369
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13370
$as_echo "$ac_try_echo") >&5
13371
(eval "$ac_compile") 2>conftest.er1
13373
grep -v '^ *+' conftest.er1 >conftest.err
13375
cat conftest.err >&5
13376
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377
(exit $ac_status); } && {
13378
test -z "$ac_c_werror_flag" ||
13379
test ! -s conftest.err
13380
} && test -s conftest.$ac_objext; then
13383
cat >conftest.$ac_ext <<_ACEOF
13386
cat confdefs.h >>conftest.$ac_ext
13387
cat >>conftest.$ac_ext <<_ACEOF
13388
/* end confdefs.h. */
13390
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13391
included before <wchar.h>. */
13392
#include <stddef.h>
13393
#include <signal.h>
13395
# include <stdio.h>
13397
# include <wchar.h>
13400
#include <limits.h>
13404
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
13411
rm -f conftest.$ac_objext
13412
if { (ac_try="$ac_compile"
13413
case "(($ac_try" in
13414
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13415
*) ac_try_echo=$ac_try;;
13417
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13418
$as_echo "$ac_try_echo") >&5
13419
(eval "$ac_compile") 2>conftest.er1
13421
grep -v '^ *+' conftest.er1 >conftest.err
13423
cat conftest.err >&5
13424
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425
(exit $ac_status); } && {
13426
test -z "$ac_c_werror_flag" ||
13427
test ! -s conftest.err
13428
} && test -s conftest.$ac_objext; then
13429
ac_hi=$ac_mid; break
13431
$as_echo "$as_me: failed program was:" >&5
13432
sed 's/^/| /' conftest.$ac_ext >&5
13434
ac_lo=`expr $ac_mid + 1`
13435
if test $ac_lo -le $ac_mid; then
13439
ac_mid=`expr 2 '*' $ac_mid + 1`
13442
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13445
$as_echo "$as_me: failed program was:" >&5
13446
sed 's/^/| /' conftest.$ac_ext >&5
13448
cat >conftest.$ac_ext <<_ACEOF
13451
cat confdefs.h >>conftest.$ac_ext
13452
cat >>conftest.$ac_ext <<_ACEOF
13453
/* end confdefs.h. */
13455
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13456
included before <wchar.h>. */
13457
#include <stddef.h>
13458
#include <signal.h>
13460
# include <stdio.h>
13462
# include <wchar.h>
13465
#include <limits.h>
13469
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
13476
rm -f conftest.$ac_objext
13477
if { (ac_try="$ac_compile"
13478
case "(($ac_try" in
13479
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13480
*) ac_try_echo=$ac_try;;
13482
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13483
$as_echo "$ac_try_echo") >&5
13484
(eval "$ac_compile") 2>conftest.er1
13486
grep -v '^ *+' conftest.er1 >conftest.err
13488
cat conftest.err >&5
13489
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490
(exit $ac_status); } && {
13491
test -z "$ac_c_werror_flag" ||
13492
test ! -s conftest.err
13493
} && test -s conftest.$ac_objext; then
13496
cat >conftest.$ac_ext <<_ACEOF
13499
cat confdefs.h >>conftest.$ac_ext
13500
cat >>conftest.$ac_ext <<_ACEOF
13501
/* end confdefs.h. */
13503
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13504
included before <wchar.h>. */
13505
#include <stddef.h>
13506
#include <signal.h>
13508
# include <stdio.h>
13510
# include <wchar.h>
13513
#include <limits.h>
13517
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
13524
rm -f conftest.$ac_objext
13525
if { (ac_try="$ac_compile"
13526
case "(($ac_try" in
13527
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13528
*) ac_try_echo=$ac_try;;
13530
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13531
$as_echo "$ac_try_echo") >&5
13532
(eval "$ac_compile") 2>conftest.er1
13534
grep -v '^ *+' conftest.er1 >conftest.err
13536
cat conftest.err >&5
13537
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13538
(exit $ac_status); } && {
13539
test -z "$ac_c_werror_flag" ||
13540
test ! -s conftest.err
13541
} && test -s conftest.$ac_objext; then
13542
ac_lo=$ac_mid; break
13544
$as_echo "$as_me: failed program was:" >&5
13545
sed 's/^/| /' conftest.$ac_ext >&5
13547
ac_hi=`expr '(' $ac_mid ')' - 1`
13548
if test $ac_mid -le $ac_hi; then
13552
ac_mid=`expr 2 '*' $ac_mid`
13555
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13558
$as_echo "$as_me: failed program was:" >&5
13559
sed 's/^/| /' conftest.$ac_ext >&5
13564
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13567
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13568
# Binary search between lo and hi bounds.
13569
while test "x$ac_lo" != "x$ac_hi"; do
13570
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13571
cat >conftest.$ac_ext <<_ACEOF
13574
cat confdefs.h >>conftest.$ac_ext
13575
cat >>conftest.$ac_ext <<_ACEOF
13576
/* end confdefs.h. */
13578
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13579
included before <wchar.h>. */
13580
#include <stddef.h>
13581
#include <signal.h>
13583
# include <stdio.h>
13585
# include <wchar.h>
13588
#include <limits.h>
13592
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
13599
rm -f conftest.$ac_objext
13600
if { (ac_try="$ac_compile"
13601
case "(($ac_try" in
13602
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13603
*) ac_try_echo=$ac_try;;
13605
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13606
$as_echo "$ac_try_echo") >&5
13607
(eval "$ac_compile") 2>conftest.er1
13609
grep -v '^ *+' conftest.er1 >conftest.err
13611
cat conftest.err >&5
13612
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13613
(exit $ac_status); } && {
13614
test -z "$ac_c_werror_flag" ||
13615
test ! -s conftest.err
13616
} && test -s conftest.$ac_objext; then
13619
$as_echo "$as_me: failed program was:" >&5
13620
sed 's/^/| /' conftest.$ac_ext >&5
13622
ac_lo=`expr '(' $ac_mid ')' + 1`
13625
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13628
?*) result=$ac_lo;;
13629
'') result=unknown ;;
13632
cat >conftest.$ac_ext <<_ACEOF
13635
cat confdefs.h >>conftest.$ac_ext
13636
cat >>conftest.$ac_ext <<_ACEOF
13637
/* end confdefs.h. */
13639
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13640
included before <wchar.h>. */
13641
#include <stddef.h>
13642
#include <signal.h>
13644
# include <stdio.h>
13646
# include <wchar.h>
13649
#include <limits.h>
13650
static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
13651
static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
13653
#include <stdlib.h>
13658
FILE *f = fopen ("conftest.val", "w");
13661
if ((sizeof ($gltype) * CHAR_BIT) < 0)
13663
long int i = longval ();
13664
if (i != (sizeof ($gltype) * CHAR_BIT))
13666
fprintf (f, "%ld", i);
13670
unsigned long int i = ulongval ();
13671
if (i != (sizeof ($gltype) * CHAR_BIT))
13673
fprintf (f, "%lu", i);
13675
/* Do not output a trailing newline, as this causes \r\n confusion
13676
on some platforms. */
13677
return ferror (f) || fclose (f) != 0;
13683
rm -f conftest$ac_exeext
13684
if { (ac_try="$ac_link"
13685
case "(($ac_try" in
13686
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13687
*) ac_try_echo=$ac_try;;
13689
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13690
$as_echo "$ac_try_echo") >&5
13691
(eval "$ac_link") 2>&5
13693
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13695
{ (case "(($ac_try" in
13696
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13697
*) ac_try_echo=$ac_try;;
13699
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13700
$as_echo "$ac_try_echo") >&5
13701
(eval "$ac_try") 2>&5
13703
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704
(exit $ac_status); }; }; then
13705
result=`cat conftest.val`
13707
$as_echo "$as_me: program exited with status $ac_status" >&5
13708
$as_echo "$as_me: failed program was:" >&5
13709
sed 's/^/| /' conftest.$ac_ext >&5
13711
( exit $ac_status )
13714
rm -rf conftest.dSYM
13715
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13718
eval gl_cv_bitsizeof_${gltype}=\$result
13721
ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
13722
$as_echo "$as_val"'`
13723
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13724
$as_echo "$ac_res" >&6; }
13725
eval result=\$gl_cv_bitsizeof_${gltype}
13726
if test $result = unknown; then
13729
GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
13730
cat >>confdefs.h <<_ACEOF
13731
#define BITSIZEOF_${GLTYPE} $result
13734
eval BITSIZEOF_${GLTYPE}=\$result
13743
for gltype in sig_atomic_t wchar_t wint_t ; do
13744
{ $as_echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
13745
$as_echo_n "checking whether $gltype is signed... " >&6; }
13746
if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
13747
$as_echo_n "(cached) " >&6
13749
cat >conftest.$ac_ext <<_ACEOF
13752
cat confdefs.h >>conftest.$ac_ext
13753
cat >>conftest.$ac_ext <<_ACEOF
13754
/* end confdefs.h. */
13756
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13757
included before <wchar.h>. */
13758
#include <stddef.h>
13759
#include <signal.h>
13761
# include <stdio.h>
13763
# include <wchar.h>
13766
int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
13775
rm -f conftest.$ac_objext
13776
if { (ac_try="$ac_compile"
13777
case "(($ac_try" in
13778
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13779
*) ac_try_echo=$ac_try;;
13781
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13782
$as_echo "$ac_try_echo") >&5
13783
(eval "$ac_compile") 2>conftest.er1
13785
grep -v '^ *+' conftest.er1 >conftest.err
13787
cat conftest.err >&5
13788
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789
(exit $ac_status); } && {
13790
test -z "$ac_c_werror_flag" ||
13791
test ! -s conftest.err
13792
} && test -s conftest.$ac_objext; then
13795
$as_echo "$as_me: failed program was:" >&5
13796
sed 's/^/| /' conftest.$ac_ext >&5
13801
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13802
eval gl_cv_type_${gltype}_signed=\$result
13805
ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_signed'}
13806
$as_echo "$as_val"'`
13807
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13808
$as_echo "$ac_res" >&6; }
13809
eval result=\$gl_cv_type_${gltype}_signed
13810
GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
13811
if test "$result" = yes; then
13812
cat >>confdefs.h <<_ACEOF
13813
#define HAVE_SIGNED_${GLTYPE} 1
13816
eval HAVE_SIGNED_${GLTYPE}=1
13818
eval HAVE_SIGNED_${GLTYPE}=0
13823
gl_cv_type_ptrdiff_t_signed=yes
13824
gl_cv_type_size_t_signed=no
13832
for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
13833
{ $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
13834
$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
13835
if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
13836
$as_echo_n "(cached) " >&6
13838
eval gl_cv_type_${gltype}_suffix=no
13839
eval result=\$gl_cv_type_${gltype}_signed
13840
if test "$result" = yes; then
13845
for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
13847
'') gltype1='int';;
13848
l) gltype1='long int';;
13849
ll) gltype1='long long int';;
13850
i64) gltype1='__int64';;
13851
u) gltype1='unsigned int';;
13852
ul) gltype1='unsigned long int';;
13853
ull) gltype1='unsigned long long int';;
13854
ui64)gltype1='unsigned __int64';;
13856
cat >conftest.$ac_ext <<_ACEOF
13859
cat confdefs.h >>conftest.$ac_ext
13860
cat >>conftest.$ac_ext <<_ACEOF
13861
/* end confdefs.h. */
13863
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13864
included before <wchar.h>. */
13865
#include <stddef.h>
13866
#include <signal.h>
13868
# include <stdio.h>
13870
# include <wchar.h>
13873
extern $gltype foo;
13874
extern $gltype1 foo;
13883
rm -f conftest.$ac_objext
13884
if { (ac_try="$ac_compile"
13885
case "(($ac_try" in
13886
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13887
*) ac_try_echo=$ac_try;;
13889
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13890
$as_echo "$ac_try_echo") >&5
13891
(eval "$ac_compile") 2>conftest.er1
13893
grep -v '^ *+' conftest.er1 >conftest.err
13895
cat conftest.err >&5
13896
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897
(exit $ac_status); } && {
13898
test -z "$ac_c_werror_flag" ||
13899
test ! -s conftest.err
13900
} && test -s conftest.$ac_objext; then
13901
eval gl_cv_type_${gltype}_suffix=\$glsuf
13903
$as_echo "$as_me: failed program was:" >&5
13904
sed 's/^/| /' conftest.$ac_ext >&5
13909
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13910
eval result=\$gl_cv_type_${gltype}_suffix
13911
test "$result" != no && break
13914
ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
13915
$as_echo "$as_val"'`
13916
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13917
$as_echo "$ac_res" >&6; }
13918
GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
13919
eval result=\$gl_cv_type_${gltype}_suffix
13920
test "$result" = no && result=
13921
eval ${GLTYPE}_SUFFIX=\$result
13922
cat >>confdefs.h <<_ACEOF
13923
#define ${GLTYPE}_SUFFIX $result
13947
if test $gl_cv_have_include_next = yes; then
13948
gl_cv_next_stdio_h='<'stdio.h'>'
13950
{ $as_echo "$as_me:$LINENO: checking absolute name of <stdio.h>" >&5
13951
$as_echo_n "checking absolute name of <stdio.h>... " >&6; }
13952
if test "${gl_cv_next_stdio_h+set}" = set; then
13953
$as_echo_n "(cached) " >&6
13956
if test $ac_cv_header_stdio_h = yes; then
13957
cat >conftest.$ac_ext <<_ACEOF
13960
cat confdefs.h >>conftest.$ac_ext
13961
cat >>conftest.$ac_ext <<_ACEOF
13962
/* end confdefs.h. */
13966
gl_cv_next_stdio_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13967
sed -n '\#/stdio.h#{
13968
s#.*"\(.*/stdio.h\)".*#\1#
13974
gl_cv_next_stdio_h='<'stdio.h'>'
13978
{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdio_h" >&5
13979
$as_echo "$gl_cv_next_stdio_h" >&6; }
13981
NEXT_STDIO_H=$gl_cv_next_stdio_h
14010
if test $gl_cv_have_include_next = yes; then
14011
gl_cv_next_stdlib_h='<'stdlib.h'>'
14013
{ $as_echo "$as_me:$LINENO: checking absolute name of <stdlib.h>" >&5
14014
$as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
14015
if test "${gl_cv_next_stdlib_h+set}" = set; then
14016
$as_echo_n "(cached) " >&6
14019
if test $ac_cv_header_stdlib_h = yes; then
14020
cat >conftest.$ac_ext <<_ACEOF
14023
cat confdefs.h >>conftest.$ac_ext
14024
cat >>conftest.$ac_ext <<_ACEOF
14025
/* end confdefs.h. */
14026
#include <stdlib.h>
14029
gl_cv_next_stdlib_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14030
sed -n '\#/stdlib.h#{
14031
s#.*"\(.*/stdlib.h\)".*#\1#
14037
gl_cv_next_stdlib_h='<'stdlib.h'>'
14041
{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdlib_h" >&5
14042
$as_echo "$gl_cv_next_stdlib_h" >&6; }
14044
NEXT_STDLIB_H=$gl_cv_next_stdlib_h
14053
{ $as_echo "$as_me:$LINENO: checking whether <sys/socket.h> is self-contained" >&5
14054
$as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
14055
if test "${gl_cv_header_sys_socket_h_selfcontained+set}" = set; then
14056
$as_echo_n "(cached) " >&6
14059
cat >conftest.$ac_ext <<_ACEOF
14062
cat confdefs.h >>conftest.$ac_ext
14063
cat >>conftest.$ac_ext <<_ACEOF
14064
/* end confdefs.h. */
14065
#include <sys/socket.h>
14074
rm -f conftest.$ac_objext
14075
if { (ac_try="$ac_compile"
14076
case "(($ac_try" in
14077
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14078
*) ac_try_echo=$ac_try;;
14080
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14081
$as_echo "$ac_try_echo") >&5
14082
(eval "$ac_compile") 2>conftest.er1
14084
grep -v '^ *+' conftest.er1 >conftest.err
14086
cat conftest.err >&5
14087
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14088
(exit $ac_status); } && {
14089
test -z "$ac_c_werror_flag" ||
14090
test ! -s conftest.err
14091
} && test -s conftest.$ac_objext; then
14092
gl_cv_header_sys_socket_h_selfcontained=yes
14094
$as_echo "$as_me: failed program was:" >&5
14095
sed 's/^/| /' conftest.$ac_ext >&5
14097
gl_cv_header_sys_socket_h_selfcontained=no
14100
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14103
{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
14104
$as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
14105
if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
14108
for ac_func in shutdown
14110
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14111
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14112
$as_echo_n "checking for $ac_func... " >&6; }
14113
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14114
$as_echo_n "(cached) " >&6
14116
cat >conftest.$ac_ext <<_ACEOF
14119
cat confdefs.h >>conftest.$ac_ext
14120
cat >>conftest.$ac_ext <<_ACEOF
14121
/* end confdefs.h. */
14122
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14123
For example, HP-UX 11i <limits.h> declares gettimeofday. */
14124
#define $ac_func innocuous_$ac_func
14126
/* System header to define __stub macros and hopefully few prototypes,
14127
which can conflict with char $ac_func (); below.
14128
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14129
<limits.h> exists even on freestanding compilers. */
14132
# include <limits.h>
14134
# include <assert.h>
14139
/* Override any GCC internal prototype to avoid an error.
14140
Use char because int might match the return type of a GCC
14141
builtin and then its argument prototype would still apply. */
14146
/* The GNU C library defines this for functions which it implements
14147
to always fail with ENOSYS. Some functions are actually named
14148
something starting with __ and the normal name is an alias. */
14149
#if defined __stub_$ac_func || defined __stub___$ac_func
14156
return $ac_func ();
14161
rm -f conftest.$ac_objext conftest$ac_exeext
14162
if { (ac_try="$ac_link"
14163
case "(($ac_try" in
14164
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14165
*) ac_try_echo=$ac_try;;
14167
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14168
$as_echo "$ac_try_echo") >&5
14169
(eval "$ac_link") 2>conftest.er1
14171
grep -v '^ *+' conftest.er1 >conftest.err
14173
cat conftest.err >&5
14174
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175
(exit $ac_status); } && {
14176
test -z "$ac_c_werror_flag" ||
14177
test ! -s conftest.err
14178
} && test -s conftest$ac_exeext && {
14179
test "$cross_compiling" = yes ||
14180
$as_test_x conftest$ac_exeext
14182
eval "$as_ac_var=yes"
14184
$as_echo "$as_me: failed program was:" >&5
14185
sed 's/^/| /' conftest.$ac_ext >&5
14187
eval "$as_ac_var=no"
14190
rm -rf conftest.dSYM
14191
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14192
conftest$ac_exeext conftest.$ac_ext
14194
ac_res=`eval 'as_val=${'$as_ac_var'}
14195
$as_echo "$as_val"'`
14196
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14197
$as_echo "$ac_res" >&6; }
14198
as_val=`eval 'as_val=${'$as_ac_var'}
14199
$as_echo "$as_val"'`
14200
if test "x$as_val" = x""yes; then
14201
cat >>confdefs.h <<_ACEOF
14202
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14208
if test $ac_cv_func_shutdown = yes; then
14209
{ $as_echo "$as_me:$LINENO: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
14210
$as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
14211
if test "${gl_cv_header_sys_socket_h_shut+set}" = set; then
14212
$as_echo_n "(cached) " >&6
14215
cat >conftest.$ac_ext <<_ACEOF
14218
cat confdefs.h >>conftest.$ac_ext
14219
cat >>conftest.$ac_ext <<_ACEOF
14220
/* end confdefs.h. */
14221
#include <sys/socket.h>
14225
int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
14230
rm -f conftest.$ac_objext
14231
if { (ac_try="$ac_compile"
14232
case "(($ac_try" in
14233
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14234
*) ac_try_echo=$ac_try;;
14236
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14237
$as_echo "$ac_try_echo") >&5
14238
(eval "$ac_compile") 2>conftest.er1
14240
grep -v '^ *+' conftest.er1 >conftest.err
14242
cat conftest.err >&5
14243
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14244
(exit $ac_status); } && {
14245
test -z "$ac_c_werror_flag" ||
14246
test ! -s conftest.err
14247
} && test -s conftest.$ac_objext; then
14248
gl_cv_header_sys_socket_h_shut=yes
14250
$as_echo "$as_me: failed program was:" >&5
14251
sed 's/^/| /' conftest.$ac_ext >&5
14253
gl_cv_header_sys_socket_h_shut=no
14256
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14259
{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_sys_socket_h_shut" >&5
14260
$as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
14261
if test $gl_cv_header_sys_socket_h_shut = no; then
14262
SYS_SOCKET_H='sys/socket.h'
14266
SYS_SOCKET_H='sys/socket.h'
14268
if test -n "$SYS_SOCKET_H"; then
14280
if test $gl_cv_have_include_next = yes; then
14281
gl_cv_next_sys_socket_h='<'sys/socket.h'>'
14283
{ $as_echo "$as_me:$LINENO: checking absolute name of <sys/socket.h>" >&5
14284
$as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
14285
if test "${gl_cv_next_sys_socket_h+set}" = set; then
14286
$as_echo_n "(cached) " >&6
14289
if test $ac_cv_header_sys_socket_h = yes; then
14290
cat >conftest.$ac_ext <<_ACEOF
14293
cat confdefs.h >>conftest.$ac_ext
14294
cat >>conftest.$ac_ext <<_ACEOF
14295
/* end confdefs.h. */
14296
#include <sys/socket.h>
14299
gl_cv_next_sys_socket_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14300
sed -n '\#/sys/socket.h#{
14301
s#.*"\(.*/sys/socket.h\)".*#\1#
14307
gl_cv_next_sys_socket_h='<'sys/socket.h'>'
14311
{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_sys_socket_h" >&5
14312
$as_echo "$gl_cv_next_sys_socket_h" >&6; }
14314
NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h
14318
if test $ac_cv_header_sys_socket_h = yes; then
14319
HAVE_SYS_SOCKET_H=1
14322
HAVE_SYS_SOCKET_H=0
14324
for ac_header in ws2tcpip.h
14326
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14327
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14328
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14329
$as_echo_n "checking for $ac_header... " >&6; }
14330
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14331
$as_echo_n "(cached) " >&6
14333
ac_res=`eval 'as_val=${'$as_ac_Header'}
14334
$as_echo "$as_val"'`
14335
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14336
$as_echo "$ac_res" >&6; }
14338
# Is the header compilable?
14339
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14340
$as_echo_n "checking $ac_header usability... " >&6; }
14341
cat >conftest.$ac_ext <<_ACEOF
14344
cat confdefs.h >>conftest.$ac_ext
14345
cat >>conftest.$ac_ext <<_ACEOF
14346
/* end confdefs.h. */
14347
$ac_includes_default
14348
#include <$ac_header>
14350
rm -f conftest.$ac_objext
14351
if { (ac_try="$ac_compile"
14352
case "(($ac_try" in
14353
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14354
*) ac_try_echo=$ac_try;;
14356
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14357
$as_echo "$ac_try_echo") >&5
14358
(eval "$ac_compile") 2>conftest.er1
14360
grep -v '^ *+' conftest.er1 >conftest.err
14362
cat conftest.err >&5
14363
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14364
(exit $ac_status); } && {
14365
test -z "$ac_c_werror_flag" ||
14366
test ! -s conftest.err
14367
} && test -s conftest.$ac_objext; then
14368
ac_header_compiler=yes
14370
$as_echo "$as_me: failed program was:" >&5
14371
sed 's/^/| /' conftest.$ac_ext >&5
14373
ac_header_compiler=no
14376
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14377
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14378
$as_echo "$ac_header_compiler" >&6; }
14380
# Is the header present?
14381
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14382
$as_echo_n "checking $ac_header presence... " >&6; }
14383
cat >conftest.$ac_ext <<_ACEOF
14386
cat confdefs.h >>conftest.$ac_ext
14387
cat >>conftest.$ac_ext <<_ACEOF
14388
/* end confdefs.h. */
14389
#include <$ac_header>
14391
if { (ac_try="$ac_cpp conftest.$ac_ext"
14392
case "(($ac_try" in
14393
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14394
*) ac_try_echo=$ac_try;;
14396
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14397
$as_echo "$ac_try_echo") >&5
14398
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14400
grep -v '^ *+' conftest.er1 >conftest.err
14402
cat conftest.err >&5
14403
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14404
(exit $ac_status); } >/dev/null && {
14405
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14406
test ! -s conftest.err
14408
ac_header_preproc=yes
14410
$as_echo "$as_me: failed program was:" >&5
14411
sed 's/^/| /' conftest.$ac_ext >&5
14413
ac_header_preproc=no
14416
rm -f conftest.err conftest.$ac_ext
14417
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14418
$as_echo "$ac_header_preproc" >&6; }
14420
# So? What about this header?
14421
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14423
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14424
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14425
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14426
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14427
ac_header_preproc=yes
14430
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14431
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14432
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14433
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14434
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14435
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14436
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14437
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14438
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14439
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14440
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14441
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14445
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14446
$as_echo_n "checking for $ac_header... " >&6; }
14447
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14448
$as_echo_n "(cached) " >&6
14450
eval "$as_ac_Header=\$ac_header_preproc"
14452
ac_res=`eval 'as_val=${'$as_ac_Header'}
14453
$as_echo "$as_val"'`
14454
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14455
$as_echo "$ac_res" >&6; }
14458
as_val=`eval 'as_val=${'$as_ac_Header'}
14459
$as_echo "$as_val"'`
14460
if test "x$as_val" = x""yes; then
14461
cat >>confdefs.h <<_ACEOF
14462
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14469
if test $ac_cv_header_ws2tcpip_h = yes; then
14483
if test $ac_cv_header_sys_socket_h != yes; then
14485
for ac_header in winsock2.h
14487
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14488
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14489
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14490
$as_echo_n "checking for $ac_header... " >&6; }
14491
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14492
$as_echo_n "(cached) " >&6
14494
ac_res=`eval 'as_val=${'$as_ac_Header'}
14495
$as_echo "$as_val"'`
14496
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14497
$as_echo "$ac_res" >&6; }
14499
# Is the header compilable?
14500
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14501
$as_echo_n "checking $ac_header usability... " >&6; }
14502
cat >conftest.$ac_ext <<_ACEOF
14505
cat confdefs.h >>conftest.$ac_ext
14506
cat >>conftest.$ac_ext <<_ACEOF
14507
/* end confdefs.h. */
14508
$ac_includes_default
14509
#include <$ac_header>
14511
rm -f conftest.$ac_objext
14512
if { (ac_try="$ac_compile"
14513
case "(($ac_try" in
14514
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14515
*) ac_try_echo=$ac_try;;
14517
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14518
$as_echo "$ac_try_echo") >&5
14519
(eval "$ac_compile") 2>conftest.er1
14521
grep -v '^ *+' conftest.er1 >conftest.err
14523
cat conftest.err >&5
14524
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525
(exit $ac_status); } && {
14526
test -z "$ac_c_werror_flag" ||
14527
test ! -s conftest.err
14528
} && test -s conftest.$ac_objext; then
14529
ac_header_compiler=yes
14531
$as_echo "$as_me: failed program was:" >&5
14532
sed 's/^/| /' conftest.$ac_ext >&5
14534
ac_header_compiler=no
14537
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14538
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14539
$as_echo "$ac_header_compiler" >&6; }
14541
# Is the header present?
14542
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14543
$as_echo_n "checking $ac_header presence... " >&6; }
14544
cat >conftest.$ac_ext <<_ACEOF
14547
cat confdefs.h >>conftest.$ac_ext
14548
cat >>conftest.$ac_ext <<_ACEOF
14549
/* end confdefs.h. */
14550
#include <$ac_header>
14552
if { (ac_try="$ac_cpp conftest.$ac_ext"
14553
case "(($ac_try" in
14554
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14555
*) ac_try_echo=$ac_try;;
14557
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14558
$as_echo "$ac_try_echo") >&5
14559
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14561
grep -v '^ *+' conftest.er1 >conftest.err
14563
cat conftest.err >&5
14564
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565
(exit $ac_status); } >/dev/null && {
14566
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14567
test ! -s conftest.err
14569
ac_header_preproc=yes
14571
$as_echo "$as_me: failed program was:" >&5
14572
sed 's/^/| /' conftest.$ac_ext >&5
14574
ac_header_preproc=no
14577
rm -f conftest.err conftest.$ac_ext
14578
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14579
$as_echo "$ac_header_preproc" >&6; }
14581
# So? What about this header?
14582
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14584
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14585
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14586
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14587
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14588
ac_header_preproc=yes
14591
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14592
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14593
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14594
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14595
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14596
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14597
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14598
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14599
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14600
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14601
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14602
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14606
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14607
$as_echo_n "checking for $ac_header... " >&6; }
14608
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14609
$as_echo_n "(cached) " >&6
14611
eval "$as_ac_Header=\$ac_header_preproc"
14613
ac_res=`eval 'as_val=${'$as_ac_Header'}
14614
$as_echo "$as_val"'`
14615
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14616
$as_echo "$ac_res" >&6; }
14619
as_val=`eval 'as_val=${'$as_ac_Header'}
14620
$as_echo "$as_val"'`
14621
if test "x$as_val" = x""yes; then
14622
cat >>confdefs.h <<_ACEOF
14623
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14631
if test "$ac_cv_header_winsock2_h" = yes; then
14643
{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
14644
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
14645
if test -z "$MKDIR_P"; then
14646
if test "${ac_cv_path_mkdir+set}" = set; then
14647
$as_echo_n "(cached) " >&6
14649
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14650
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
14653
test -z "$as_dir" && as_dir=.
14654
for ac_prog in mkdir gmkdir; do
14655
for ac_exec_ext in '' $ac_executable_extensions; do
14656
{ test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
14657
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
14658
'mkdir (GNU coreutils) '* | \
14659
'mkdir (coreutils) '* | \
14660
'mkdir (fileutils) '4.1*)
14661
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
14671
if test "${ac_cv_path_mkdir+set}" = set; then
14672
MKDIR_P="$ac_cv_path_mkdir -p"
14674
# As a last resort, use the slow shell script. Don't cache a
14675
# value for MKDIR_P within a source directory, because that will
14676
# break other packages using the cache if that directory is
14677
# removed, or if the value is a relative name.
14678
test -d ./--version && rmdir ./--version
14679
MKDIR_P="$ac_install_sh -d"
14682
{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
14683
$as_echo "$MKDIR_P" >&6; }
14699
if test $gl_cv_have_include_next = yes; then
14700
gl_cv_next_unistd_h='<'unistd.h'>'
14702
{ $as_echo "$as_me:$LINENO: checking absolute name of <unistd.h>" >&5
14703
$as_echo_n "checking absolute name of <unistd.h>... " >&6; }
14704
if test "${gl_cv_next_unistd_h+set}" = set; then
14705
$as_echo_n "(cached) " >&6
14708
if test $ac_cv_header_unistd_h = yes; then
14709
cat >conftest.$ac_ext <<_ACEOF
14712
cat confdefs.h >>conftest.$ac_ext
14713
cat >>conftest.$ac_ext <<_ACEOF
14714
/* end confdefs.h. */
14715
#include <unistd.h>
14718
gl_cv_next_unistd_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14719
sed -n '\#/unistd.h#{
14720
s#.*"\(.*/unistd.h\)".*#\1#
14726
gl_cv_next_unistd_h='<'unistd.h'>'
14730
{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_unistd_h" >&5
14731
$as_echo "$gl_cv_next_unistd_h" >&6; }
14733
NEXT_UNISTD_H=$gl_cv_next_unistd_h
14745
if test $ac_cv_header_unistd_h = yes; then
14760
if test $ac_cv_func_vasnprintf = no; then
14777
gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
14787
gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
14797
gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
14807
gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
14809
if test $ac_cv_func_vasnprintf = yes; then
14811
cat >>confdefs.h <<\_ACEOF
14812
#define REPLACE_VASNPRINTF 1
14826
{ $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
14827
$as_echo_n "checking for ptrdiff_t... " >&6; }
14828
if test "${ac_cv_type_ptrdiff_t+set}" = set; then
14829
$as_echo_n "(cached) " >&6
14831
ac_cv_type_ptrdiff_t=no
14832
cat >conftest.$ac_ext <<_ACEOF
14835
cat confdefs.h >>conftest.$ac_ext
14836
cat >>conftest.$ac_ext <<_ACEOF
14837
/* end confdefs.h. */
14838
$ac_includes_default
14842
if (sizeof (ptrdiff_t))
14848
rm -f conftest.$ac_objext
14849
if { (ac_try="$ac_compile"
14850
case "(($ac_try" in
14851
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14852
*) ac_try_echo=$ac_try;;
14854
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14855
$as_echo "$ac_try_echo") >&5
14856
(eval "$ac_compile") 2>conftest.er1
14858
grep -v '^ *+' conftest.er1 >conftest.err
14860
cat conftest.err >&5
14861
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14862
(exit $ac_status); } && {
14863
test -z "$ac_c_werror_flag" ||
14864
test ! -s conftest.err
14865
} && test -s conftest.$ac_objext; then
14866
cat >conftest.$ac_ext <<_ACEOF
14869
cat confdefs.h >>conftest.$ac_ext
14870
cat >>conftest.$ac_ext <<_ACEOF
14871
/* end confdefs.h. */
14872
$ac_includes_default
14876
if (sizeof ((ptrdiff_t)))
14882
rm -f conftest.$ac_objext
14883
if { (ac_try="$ac_compile"
14884
case "(($ac_try" in
14885
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14886
*) ac_try_echo=$ac_try;;
14888
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14889
$as_echo "$ac_try_echo") >&5
14890
(eval "$ac_compile") 2>conftest.er1
14892
grep -v '^ *+' conftest.er1 >conftest.err
14894
cat conftest.err >&5
14895
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896
(exit $ac_status); } && {
14897
test -z "$ac_c_werror_flag" ||
14898
test ! -s conftest.err
14899
} && test -s conftest.$ac_objext; then
14902
$as_echo "$as_me: failed program was:" >&5
14903
sed 's/^/| /' conftest.$ac_ext >&5
14905
ac_cv_type_ptrdiff_t=yes
14908
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14910
$as_echo "$as_me: failed program was:" >&5
14911
sed 's/^/| /' conftest.$ac_ext >&5
14916
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14918
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
14919
$as_echo "$ac_cv_type_ptrdiff_t" >&6; }
14920
if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
14924
cat >>confdefs.h <<\_ACEOF
14925
#define ptrdiff_t long
14940
for ac_func in snprintf wcslen
14942
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14943
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14944
$as_echo_n "checking for $ac_func... " >&6; }
14945
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14946
$as_echo_n "(cached) " >&6
14948
cat >conftest.$ac_ext <<_ACEOF
14951
cat confdefs.h >>conftest.$ac_ext
14952
cat >>conftest.$ac_ext <<_ACEOF
14953
/* end confdefs.h. */
14954
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14955
For example, HP-UX 11i <limits.h> declares gettimeofday. */
14956
#define $ac_func innocuous_$ac_func
14958
/* System header to define __stub macros and hopefully few prototypes,
14959
which can conflict with char $ac_func (); below.
14960
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14961
<limits.h> exists even on freestanding compilers. */
14964
# include <limits.h>
14966
# include <assert.h>
14971
/* Override any GCC internal prototype to avoid an error.
14972
Use char because int might match the return type of a GCC
14973
builtin and then its argument prototype would still apply. */
14978
/* The GNU C library defines this for functions which it implements
14979
to always fail with ENOSYS. Some functions are actually named
14980
something starting with __ and the normal name is an alias. */
14981
#if defined __stub_$ac_func || defined __stub___$ac_func
14988
return $ac_func ();
14993
rm -f conftest.$ac_objext conftest$ac_exeext
14994
if { (ac_try="$ac_link"
14995
case "(($ac_try" in
14996
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14997
*) ac_try_echo=$ac_try;;
14999
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15000
$as_echo "$ac_try_echo") >&5
15001
(eval "$ac_link") 2>conftest.er1
15003
grep -v '^ *+' conftest.er1 >conftest.err
15005
cat conftest.err >&5
15006
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007
(exit $ac_status); } && {
15008
test -z "$ac_c_werror_flag" ||
15009
test ! -s conftest.err
15010
} && test -s conftest$ac_exeext && {
15011
test "$cross_compiling" = yes ||
15012
$as_test_x conftest$ac_exeext
15014
eval "$as_ac_var=yes"
15016
$as_echo "$as_me: failed program was:" >&5
15017
sed 's/^/| /' conftest.$ac_ext >&5
15019
eval "$as_ac_var=no"
15022
rm -rf conftest.dSYM
15023
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15024
conftest$ac_exeext conftest.$ac_ext
15026
ac_res=`eval 'as_val=${'$as_ac_var'}
15027
$as_echo "$as_val"'`
15028
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15029
$as_echo "$ac_res" >&6; }
15030
as_val=`eval 'as_val=${'$as_ac_var'}
15031
$as_echo "$as_val"'`
15032
if test "x$as_val" = x""yes; then
15033
cat >>confdefs.h <<_ACEOF
15034
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15040
{ $as_echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
15041
$as_echo_n "checking whether _snprintf is declared... " >&6; }
15042
if test "${ac_cv_have_decl__snprintf+set}" = set; then
15043
$as_echo_n "(cached) " >&6
15045
cat >conftest.$ac_ext <<_ACEOF
15048
cat confdefs.h >>conftest.$ac_ext
15049
cat >>conftest.$ac_ext <<_ACEOF
15050
/* end confdefs.h. */
15064
rm -f conftest.$ac_objext
15065
if { (ac_try="$ac_compile"
15066
case "(($ac_try" in
15067
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15068
*) ac_try_echo=$ac_try;;
15070
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15071
$as_echo "$ac_try_echo") >&5
15072
(eval "$ac_compile") 2>conftest.er1
15074
grep -v '^ *+' conftest.er1 >conftest.err
15076
cat conftest.err >&5
15077
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15078
(exit $ac_status); } && {
15079
test -z "$ac_c_werror_flag" ||
15080
test ! -s conftest.err
15081
} && test -s conftest.$ac_objext; then
15082
ac_cv_have_decl__snprintf=yes
15084
$as_echo "$as_me: failed program was:" >&5
15085
sed 's/^/| /' conftest.$ac_ext >&5
15087
ac_cv_have_decl__snprintf=no
15090
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15092
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
15093
$as_echo "$ac_cv_have_decl__snprintf" >&6; }
15094
if test "x$ac_cv_have_decl__snprintf" = x""yes; then
15096
cat >>confdefs.h <<_ACEOF
15097
#define HAVE_DECL__SNPRINTF 1
15102
cat >>confdefs.h <<_ACEOF
15103
#define HAVE_DECL__SNPRINTF 0
15118
{ $as_echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
15119
$as_echo_n "checking whether <wchar.h> is standalone... " >&6; }
15120
if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
15121
$as_echo_n "(cached) " >&6
15123
cat >conftest.$ac_ext <<_ACEOF
15127
rm -f conftest.$ac_objext
15128
if { (ac_try="$ac_compile"
15129
case "(($ac_try" in
15130
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15131
*) ac_try_echo=$ac_try;;
15133
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15134
$as_echo "$ac_try_echo") >&5
15135
(eval "$ac_compile") 2>conftest.er1
15137
grep -v '^ *+' conftest.er1 >conftest.err
15139
cat conftest.err >&5
15140
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15141
(exit $ac_status); } && {
15142
test -z "$ac_c_werror_flag" ||
15143
test ! -s conftest.err
15144
} && test -s conftest.$ac_objext; then
15145
gl_cv_header_wchar_h_standalone=yes
15147
$as_echo "$as_me: failed program was:" >&5
15148
sed 's/^/| /' conftest.$ac_ext >&5
15150
gl_cv_header_wchar_h_standalone=no
15153
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15155
{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
15156
$as_echo "$gl_cv_header_wchar_h_standalone" >&6; }
15159
if test $gt_cv_c_wint_t = yes; then
15166
if test $gl_cv_header_wchar_h_standalone != yes || test $gt_cv_c_wint_t != yes; then
15177
if test $ac_cv_header_wchar_h = yes; then
15194
if test $gl_cv_have_include_next = yes; then
15195
gl_cv_next_wchar_h='<'wchar.h'>'
15197
{ $as_echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
15198
$as_echo_n "checking absolute name of <wchar.h>... " >&6; }
15199
if test "${gl_cv_next_wchar_h+set}" = set; then
15200
$as_echo_n "(cached) " >&6
15203
if test $ac_cv_header_wchar_h = yes; then
15204
cat >conftest.$ac_ext <<_ACEOF
15207
cat confdefs.h >>conftest.$ac_ext
15208
cat >>conftest.$ac_ext <<_ACEOF
15209
/* end confdefs.h. */
15213
gl_cv_next_wchar_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15214
sed -n '\#/wchar.h#{
15215
s#.*"\(.*/wchar.h\)".*#\1#
15221
gl_cv_next_wchar_h='<'wchar.h'>'
15225
{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
15226
$as_echo "$gl_cv_next_wchar_h" >&6; }
15228
NEXT_WCHAR_H=$gl_cv_next_wchar_h
15237
for ac_header in stdint.h
15239
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15240
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15241
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15242
$as_echo_n "checking for $ac_header... " >&6; }
15243
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15244
$as_echo_n "(cached) " >&6
15246
ac_res=`eval 'as_val=${'$as_ac_Header'}
15247
$as_echo "$as_val"'`
15248
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15249
$as_echo "$ac_res" >&6; }
15251
# Is the header compilable?
15252
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15253
$as_echo_n "checking $ac_header usability... " >&6; }
15254
cat >conftest.$ac_ext <<_ACEOF
15257
cat confdefs.h >>conftest.$ac_ext
15258
cat >>conftest.$ac_ext <<_ACEOF
15259
/* end confdefs.h. */
15260
$ac_includes_default
15261
#include <$ac_header>
15263
rm -f conftest.$ac_objext
15264
if { (ac_try="$ac_compile"
15265
case "(($ac_try" in
15266
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15267
*) ac_try_echo=$ac_try;;
15269
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15270
$as_echo "$ac_try_echo") >&5
15271
(eval "$ac_compile") 2>conftest.er1
15273
grep -v '^ *+' conftest.er1 >conftest.err
15275
cat conftest.err >&5
15276
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15277
(exit $ac_status); } && {
15278
test -z "$ac_c_werror_flag" ||
15279
test ! -s conftest.err
15280
} && test -s conftest.$ac_objext; then
15281
ac_header_compiler=yes
15283
$as_echo "$as_me: failed program was:" >&5
15284
sed 's/^/| /' conftest.$ac_ext >&5
15286
ac_header_compiler=no
15289
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15290
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15291
$as_echo "$ac_header_compiler" >&6; }
15293
# Is the header present?
15294
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15295
$as_echo_n "checking $ac_header presence... " >&6; }
15296
cat >conftest.$ac_ext <<_ACEOF
15299
cat confdefs.h >>conftest.$ac_ext
15300
cat >>conftest.$ac_ext <<_ACEOF
15301
/* end confdefs.h. */
15302
#include <$ac_header>
15304
if { (ac_try="$ac_cpp conftest.$ac_ext"
15305
case "(($ac_try" in
15306
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15307
*) ac_try_echo=$ac_try;;
15309
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15310
$as_echo "$ac_try_echo") >&5
15311
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15313
grep -v '^ *+' conftest.er1 >conftest.err
15315
cat conftest.err >&5
15316
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317
(exit $ac_status); } >/dev/null && {
15318
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15319
test ! -s conftest.err
15321
ac_header_preproc=yes
15323
$as_echo "$as_me: failed program was:" >&5
15324
sed 's/^/| /' conftest.$ac_ext >&5
15326
ac_header_preproc=no
15329
rm -f conftest.err conftest.$ac_ext
15330
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15331
$as_echo "$ac_header_preproc" >&6; }
15333
# So? What about this header?
15334
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15336
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15337
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15338
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15339
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15340
ac_header_preproc=yes
15343
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15344
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15345
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15346
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15347
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15348
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15349
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15350
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15351
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15352
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15353
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15354
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15358
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15359
$as_echo_n "checking for $ac_header... " >&6; }
15360
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15361
$as_echo_n "(cached) " >&6
15363
eval "$as_ac_Header=\$ac_header_preproc"
15365
ac_res=`eval 'as_val=${'$as_ac_Header'}
15366
$as_echo "$as_val"'`
15367
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15368
$as_echo "$ac_res" >&6; }
15371
as_val=`eval 'as_val=${'$as_ac_Header'}
15372
$as_echo "$as_val"'`
15373
if test "x$as_val" = x""yes; then
15374
cat >>confdefs.h <<_ACEOF
15375
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15402
gl_source_base='gnulib/tests'
15404
{ $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
15405
$as_echo_n "checking for wchar_t... " >&6; }
15406
if test "${gt_cv_c_wchar_t+set}" = set; then
15407
$as_echo_n "(cached) " >&6
15409
cat >conftest.$ac_ext <<_ACEOF
15412
cat confdefs.h >>conftest.$ac_ext
15413
cat >>conftest.$ac_ext <<_ACEOF
15414
/* end confdefs.h. */
15415
#include <stddef.h>
15416
wchar_t foo = (wchar_t)'\0';
15425
rm -f conftest.$ac_objext
15426
if { (ac_try="$ac_compile"
15427
case "(($ac_try" in
15428
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15429
*) ac_try_echo=$ac_try;;
15431
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15432
$as_echo "$ac_try_echo") >&5
15433
(eval "$ac_compile") 2>conftest.er1
15435
grep -v '^ *+' conftest.er1 >conftest.err
15437
cat conftest.err >&5
15438
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439
(exit $ac_status); } && {
15440
test -z "$ac_c_werror_flag" ||
15441
test ! -s conftest.err
15442
} && test -s conftest.$ac_objext; then
15443
gt_cv_c_wchar_t=yes
15445
$as_echo "$as_me: failed program was:" >&5
15446
sed 's/^/| /' conftest.$ac_ext >&5
15451
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15453
{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
15454
$as_echo "$gt_cv_c_wchar_t" >&6; }
15455
if test $gt_cv_c_wchar_t = yes; then
15457
cat >>confdefs.h <<\_ACEOF
15458
#define HAVE_WCHAR_T 1
15464
{ $as_echo "$as_me:$LINENO: checking for wint_t" >&5
15465
$as_echo_n "checking for wint_t... " >&6; }
15466
if test "${gt_cv_c_wint_t+set}" = set; then
15467
$as_echo_n "(cached) " >&6
15469
cat >conftest.$ac_ext <<_ACEOF
15472
cat confdefs.h >>conftest.$ac_ext
15473
cat >>conftest.$ac_ext <<_ACEOF
15474
/* end confdefs.h. */
15476
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15478
BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
15479
before <wchar.h>. */
15480
#include <stddef.h>
15484
wint_t foo = (wchar_t)'\0';
15493
rm -f conftest.$ac_objext
15494
if { (ac_try="$ac_compile"
15495
case "(($ac_try" in
15496
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15497
*) ac_try_echo=$ac_try;;
15499
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15500
$as_echo "$ac_try_echo") >&5
15501
(eval "$ac_compile") 2>conftest.er1
15503
grep -v '^ *+' conftest.er1 >conftest.err
15505
cat conftest.err >&5
15506
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507
(exit $ac_status); } && {
15508
test -z "$ac_c_werror_flag" ||
15509
test ! -s conftest.err
15510
} && test -s conftest.$ac_objext; then
15513
$as_echo "$as_me: failed program was:" >&5
15514
sed 's/^/| /' conftest.$ac_ext >&5
15519
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15521
{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
15522
$as_echo "$gt_cv_c_wint_t" >&6; }
15523
if test $gt_cv_c_wint_t = yes; then
15525
cat >>confdefs.h <<\_ACEOF
15526
#define HAVE_WINT_T 1
15532
for ac_func in shutdown
15534
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15535
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15536
$as_echo_n "checking for $ac_func... " >&6; }
15537
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15538
$as_echo_n "(cached) " >&6
15540
cat >conftest.$ac_ext <<_ACEOF
15543
cat confdefs.h >>conftest.$ac_ext
15544
cat >>conftest.$ac_ext <<_ACEOF
15545
/* end confdefs.h. */
15546
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15547
For example, HP-UX 11i <limits.h> declares gettimeofday. */
15548
#define $ac_func innocuous_$ac_func
15550
/* System header to define __stub macros and hopefully few prototypes,
15551
which can conflict with char $ac_func (); below.
15552
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15553
<limits.h> exists even on freestanding compilers. */
15556
# include <limits.h>
15558
# include <assert.h>
15563
/* Override any GCC internal prototype to avoid an error.
15564
Use char because int might match the return type of a GCC
15565
builtin and then its argument prototype would still apply. */
15570
/* The GNU C library defines this for functions which it implements
15571
to always fail with ENOSYS. Some functions are actually named
15572
something starting with __ and the normal name is an alias. */
15573
#if defined __stub_$ac_func || defined __stub___$ac_func
15580
return $ac_func ();
15585
rm -f conftest.$ac_objext conftest$ac_exeext
15586
if { (ac_try="$ac_link"
15587
case "(($ac_try" in
15588
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15589
*) ac_try_echo=$ac_try;;
15591
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15592
$as_echo "$ac_try_echo") >&5
15593
(eval "$ac_link") 2>conftest.er1
15595
grep -v '^ *+' conftest.er1 >conftest.err
15597
cat conftest.err >&5
15598
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15599
(exit $ac_status); } && {
15600
test -z "$ac_c_werror_flag" ||
15601
test ! -s conftest.err
15602
} && test -s conftest$ac_exeext && {
15603
test "$cross_compiling" = yes ||
15604
$as_test_x conftest$ac_exeext
15606
eval "$as_ac_var=yes"
15608
$as_echo "$as_me: failed program was:" >&5
15609
sed 's/^/| /' conftest.$ac_ext >&5
15611
eval "$as_ac_var=no"
15614
rm -rf conftest.dSYM
15615
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15616
conftest$ac_exeext conftest.$ac_ext
15618
ac_res=`eval 'as_val=${'$as_ac_var'}
15619
$as_echo "$as_val"'`
15620
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15621
$as_echo "$ac_res" >&6; }
15622
as_val=`eval 'as_val=${'$as_ac_var'}
15623
$as_echo "$as_val"'`
15624
if test "x$as_val" = x""yes; then
15625
cat >>confdefs.h <<_ACEOF
15626
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15632
abs_aux_dir=`cd "$ac_aux_dir"; pwd`
15641
LIBTESTS_LIBDEPS="$gltests_libdeps"
15646
case $ac_cv_prog_cc_stdc in
15647
no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
15648
*) { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
15649
$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
15650
if test "${ac_cv_prog_cc_c99+set}" = set; then
15651
$as_echo_n "(cached) " >&6
15653
ac_cv_prog_cc_c99=no
15655
cat >conftest.$ac_ext <<_ACEOF
15658
cat confdefs.h >>conftest.$ac_ext
15659
cat >>conftest.$ac_ext <<_ACEOF
15660
/* end confdefs.h. */
15661
#include <stdarg.h>
15662
#include <stdbool.h>
15663
#include <stdlib.h>
15667
// Check varargs macros. These examples are taken from C99 6.10.3.5.
15668
#define debug(...) fprintf (stderr, __VA_ARGS__)
15669
#define showlist(...) puts (#__VA_ARGS__)
15670
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
15672
test_varargs_macros (void)
15677
debug ("X = %d\n", x);
15678
showlist (The first, second, and third items.);
15679
report (x>y, "x is %d but y is %d", x, y);
15682
// Check long long types.
15683
#define BIG64 18446744073709551615ull
15684
#define BIG32 4294967295ul
15685
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
15687
your preprocessor is broken;
15691
your preprocessor is broken;
15693
static long long int bignum = -9223372036854775807LL;
15694
static unsigned long long int ubignum = BIG64;
15696
struct incomplete_array
15702
struct named_init {
15704
const wchar_t *name;
15708
typedef const char *ccp;
15711
test_restrict (ccp restrict text)
15713
// See if C++-style comments work.
15714
// Iterate through items via the restricted pointer.
15715
// Also check for declarations in for loops.
15716
for (unsigned int i = 0; *(text+i) != '\0'; ++i)
15721
// Check varargs and va_copy.
15723
test_varargs (const char *format, ...)
15726
va_start (args, format);
15728
va_copy (args_copy, args);
15738
case 's': // string
15739
str = va_arg (args_copy, const char *);
15742
number = va_arg (args_copy, int);
15745
fnumber = va_arg (args_copy, double);
15751
va_end (args_copy);
15760
_Bool success = false;
15763
if (test_restrict ("String literal") == 0)
15765
char *restrict newvar = "Another string";
15768
test_varargs ("s, d' f .", "string", 65, 34.234);
15769
test_varargs_macros ();
15771
// Check flexible array members.
15772
struct incomplete_array *ia =
15773
malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
15775
for (int i = 0; i < ia->datasize; ++i)
15776
ia->data[i] = i * 1.234;
15778
// Check named initializers.
15779
struct named_init ni = {
15781
.name = L"Test wide string",
15782
.average = 543.34343,
15787
int dynamic_array[ni.number];
15788
dynamic_array[ni.number - 1] = 543;
15790
// work around unused variable warnings
15791
return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
15792
|| dynamic_array[ni.number - 1] != 543);
15798
for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
15800
CC="$ac_save_CC $ac_arg"
15801
rm -f conftest.$ac_objext
15802
if { (ac_try="$ac_compile"
15803
case "(($ac_try" in
15804
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15805
*) ac_try_echo=$ac_try;;
15807
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15808
$as_echo "$ac_try_echo") >&5
15809
(eval "$ac_compile") 2>conftest.er1
15811
grep -v '^ *+' conftest.er1 >conftest.err
15813
cat conftest.err >&5
15814
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15815
(exit $ac_status); } && {
15816
test -z "$ac_c_werror_flag" ||
15817
test ! -s conftest.err
15818
} && test -s conftest.$ac_objext; then
15819
ac_cv_prog_cc_c99=$ac_arg
15821
$as_echo "$as_me: failed program was:" >&5
15822
sed 's/^/| /' conftest.$ac_ext >&5
15827
rm -f core conftest.err conftest.$ac_objext
15828
test "x$ac_cv_prog_cc_c99" != "xno" && break
15830
rm -f conftest.$ac_ext
15835
case "x$ac_cv_prog_cc_c99" in
15837
{ $as_echo "$as_me:$LINENO: result: none needed" >&5
15838
$as_echo "none needed" >&6; } ;;
15840
{ $as_echo "$as_me:$LINENO: result: unsupported" >&5
15841
$as_echo "unsupported" >&6; } ;;
15843
CC="$CC $ac_cv_prog_cc_c99"
15844
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
15845
$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
15847
if test "x$ac_cv_prog_cc_c99" != xno; then
15848
ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
15850
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
15851
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
15852
if test "${ac_cv_prog_cc_c89+set}" = set; then
15853
$as_echo_n "(cached) " >&6
15855
ac_cv_prog_cc_c89=no
15857
cat >conftest.$ac_ext <<_ACEOF
15860
cat confdefs.h >>conftest.$ac_ext
15861
cat >>conftest.$ac_ext <<_ACEOF
15862
/* end confdefs.h. */
15863
#include <stdarg.h>
15865
#include <sys/types.h>
15866
#include <sys/stat.h>
15867
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
15868
struct buf { int x; };
15869
FILE * (*rcsopen) (struct buf *, struct stat *, int);
15870
static char *e (p, i)
15876
static char *f (char * (*g) (char **, int), char **p, ...)
15881
s = g (p, va_arg (v,int));
15886
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
15887
function prototypes and stuff, but not '\xHH' hex character constants.
15888
These don't provoke an error unfortunately, instead are silently treated
15889
as 'x'. The following induces an error, until -std is added to get
15890
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
15891
array size at least. It's necessary to write '\x00'==0 to get something
15892
that's true only with -std. */
15893
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
15895
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
15896
inside strings and character constants. */
15898
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
15900
int test (int i, double x);
15901
struct s1 {int (*f) (int a);};
15902
struct s2 {int (*f) (double a);};
15903
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
15909
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
15914
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
15915
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
15917
CC="$ac_save_CC $ac_arg"
15918
rm -f conftest.$ac_objext
15919
if { (ac_try="$ac_compile"
15920
case "(($ac_try" in
15921
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15922
*) ac_try_echo=$ac_try;;
15924
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15925
$as_echo "$ac_try_echo") >&5
15926
(eval "$ac_compile") 2>conftest.er1
15928
grep -v '^ *+' conftest.er1 >conftest.err
15930
cat conftest.err >&5
15931
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932
(exit $ac_status); } && {
15933
test -z "$ac_c_werror_flag" ||
15934
test ! -s conftest.err
15935
} && test -s conftest.$ac_objext; then
15936
ac_cv_prog_cc_c89=$ac_arg
15938
$as_echo "$as_me: failed program was:" >&5
15939
sed 's/^/| /' conftest.$ac_ext >&5
15944
rm -f core conftest.err conftest.$ac_objext
15945
test "x$ac_cv_prog_cc_c89" != "xno" && break
15947
rm -f conftest.$ac_ext
15952
case "x$ac_cv_prog_cc_c89" in
15954
{ $as_echo "$as_me:$LINENO: result: none needed" >&5
15955
$as_echo "none needed" >&6; } ;;
15957
{ $as_echo "$as_me:$LINENO: result: unsupported" >&5
15958
$as_echo "unsupported" >&6; } ;;
15960
CC="$CC $ac_cv_prog_cc_c89"
15961
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
15962
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
15964
if test "x$ac_cv_prog_cc_c89" != xno; then
15965
ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
15967
ac_cv_prog_cc_stdc=no
15975
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
15976
$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
15977
if test "${ac_cv_prog_cc_stdc+set}" = set; then
15978
$as_echo_n "(cached) " >&6
15981
case $ac_cv_prog_cc_stdc in
15982
no) { $as_echo "$as_me:$LINENO: result: unsupported" >&5
15983
$as_echo "unsupported" >&6; } ;;
15984
'') { $as_echo "$as_me:$LINENO: result: none needed" >&5
15985
$as_echo "none needed" >&6; } ;;
15986
*) { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
15987
$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
15991
if test "x$CC" != xcc; then
15992
{ $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
15993
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
15995
{ $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
15996
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
15998
set dummy $CC; ac_cc=`$as_echo "$2" |
15999
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
16000
if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
16001
$as_echo_n "(cached) " >&6
16003
cat >conftest.$ac_ext <<_ACEOF
16006
cat confdefs.h >>conftest.$ac_ext
16007
cat >>conftest.$ac_ext <<_ACEOF
16008
/* end confdefs.h. */
16018
# Make sure it works both with $CC and with simple cc.
16019
# We do the test twice because some compilers refuse to overwrite an
16020
# existing .o file with -o, though they will create one.
16021
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
16023
if { (case "(($ac_try" in
16024
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16025
*) ac_try_echo=$ac_try;;
16027
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16028
$as_echo "$ac_try_echo") >&5
16029
(eval "$ac_try") 2>&5
16031
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032
(exit $ac_status); } &&
16033
test -f conftest2.$ac_objext && { (case "(($ac_try" in
16034
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16035
*) ac_try_echo=$ac_try;;
16037
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16038
$as_echo "$ac_try_echo") >&5
16039
(eval "$ac_try") 2>&5
16041
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16042
(exit $ac_status); };
16044
eval ac_cv_prog_cc_${ac_cc}_c_o=yes
16045
if test "x$CC" != xcc; then
16046
# Test first that cc exists at all.
16047
if { ac_try='cc -c conftest.$ac_ext >&5'
16048
{ (case "(($ac_try" in
16049
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16050
*) ac_try_echo=$ac_try;;
16052
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16053
$as_echo "$ac_try_echo") >&5
16054
(eval "$ac_try") 2>&5
16056
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057
(exit $ac_status); }; }; then
16058
ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
16060
if { (case "(($ac_try" in
16061
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16062
*) ac_try_echo=$ac_try;;
16064
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16065
$as_echo "$ac_try_echo") >&5
16066
(eval "$ac_try") 2>&5
16068
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069
(exit $ac_status); } &&
16070
test -f conftest2.$ac_objext && { (case "(($ac_try" in
16071
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16072
*) ac_try_echo=$ac_try;;
16074
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16075
$as_echo "$ac_try_echo") >&5
16076
(eval "$ac_try") 2>&5
16078
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16079
(exit $ac_status); };
16084
# cc exists but doesn't like -o.
16085
eval ac_cv_prog_cc_${ac_cc}_c_o=no
16090
eval ac_cv_prog_cc_${ac_cc}_c_o=no
16092
rm -f core conftest*
16095
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
16096
{ $as_echo "$as_me:$LINENO: result: yes" >&5
16097
$as_echo "yes" >&6; }
16099
{ $as_echo "$as_me:$LINENO: result: no" >&5
16100
$as_echo "no" >&6; }
16102
cat >>confdefs.h <<\_ACEOF
16103
#define NO_MINUS_C_MINUS_O 1
16108
# FIXME: we rely on the cache variable name because
16109
# there is no other way.
16111
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
16112
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
16113
if test "$am_t" != yes; then
16114
# Losing compiler, so override with the script.
16115
# FIXME: It is wrong to rewrite CC.
16116
# But if we don't then we get into trouble of one sort or another.
16117
# A longer-term fix would be to have automake use am__CC in this case,
16118
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
16119
CC="$am_aux_dir/compile $CC"
16124
enable_win32_dll=yes
16127
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
16128
if test -n "$ac_tool_prefix"; then
16129
# Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
16130
set dummy ${ac_tool_prefix}as; ac_word=$2
16131
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16132
$as_echo_n "checking for $ac_word... " >&6; }
16133
if test "${ac_cv_prog_AS+set}" = set; then
16134
$as_echo_n "(cached) " >&6
16136
if test -n "$AS"; then
16137
ac_cv_prog_AS="$AS" # Let the user override the test.
16139
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16140
for as_dir in $PATH
16143
test -z "$as_dir" && as_dir=.
16144
for ac_exec_ext in '' $ac_executable_extensions; do
16145
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16146
ac_cv_prog_AS="${ac_tool_prefix}as"
16147
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16157
if test -n "$AS"; then
16158
{ $as_echo "$as_me:$LINENO: result: $AS" >&5
16159
$as_echo "$AS" >&6; }
16161
{ $as_echo "$as_me:$LINENO: result: no" >&5
16162
$as_echo "no" >&6; }
16167
if test -z "$ac_cv_prog_AS"; then
16169
# Extract the first word of "as", so it can be a program name with args.
16170
set dummy as; ac_word=$2
16171
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16172
$as_echo_n "checking for $ac_word... " >&6; }
16173
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
16174
$as_echo_n "(cached) " >&6
16176
if test -n "$ac_ct_AS"; then
16177
ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
16179
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16180
for as_dir in $PATH
16183
test -z "$as_dir" && as_dir=.
16184
for ac_exec_ext in '' $ac_executable_extensions; do
16185
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16186
ac_cv_prog_ac_ct_AS="as"
16187
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16196
ac_ct_AS=$ac_cv_prog_ac_ct_AS
16197
if test -n "$ac_ct_AS"; then
16198
{ $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
16199
$as_echo "$ac_ct_AS" >&6; }
16201
{ $as_echo "$as_me:$LINENO: result: no" >&5
16202
$as_echo "no" >&6; }
16205
if test "x$ac_ct_AS" = x; then
16208
case $cross_compiling:$ac_tool_warned in
16210
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
16211
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16212
ac_tool_warned=yes ;;
16217
AS="$ac_cv_prog_AS"
16220
if test -n "$ac_tool_prefix"; then
16221
# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
16222
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
16223
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16224
$as_echo_n "checking for $ac_word... " >&6; }
16225
if test "${ac_cv_prog_DLLTOOL+set}" = set; then
16226
$as_echo_n "(cached) " >&6
16228
if test -n "$DLLTOOL"; then
16229
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
16231
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16232
for as_dir in $PATH
16235
test -z "$as_dir" && as_dir=.
16236
for ac_exec_ext in '' $ac_executable_extensions; do
16237
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16238
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
16239
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16248
DLLTOOL=$ac_cv_prog_DLLTOOL
16249
if test -n "$DLLTOOL"; then
16250
{ $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
16251
$as_echo "$DLLTOOL" >&6; }
16253
{ $as_echo "$as_me:$LINENO: result: no" >&5
16254
$as_echo "no" >&6; }
16259
if test -z "$ac_cv_prog_DLLTOOL"; then
16260
ac_ct_DLLTOOL=$DLLTOOL
16261
# Extract the first word of "dlltool", so it can be a program name with args.
16262
set dummy dlltool; ac_word=$2
16263
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16264
$as_echo_n "checking for $ac_word... " >&6; }
16265
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
16266
$as_echo_n "(cached) " >&6
16268
if test -n "$ac_ct_DLLTOOL"; then
16269
ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
16271
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16272
for as_dir in $PATH
16275
test -z "$as_dir" && as_dir=.
16276
for ac_exec_ext in '' $ac_executable_extensions; do
16277
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16278
ac_cv_prog_ac_ct_DLLTOOL="dlltool"
16279
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16288
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
16289
if test -n "$ac_ct_DLLTOOL"; then
16290
{ $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
16291
$as_echo "$ac_ct_DLLTOOL" >&6; }
16293
{ $as_echo "$as_me:$LINENO: result: no" >&5
16294
$as_echo "no" >&6; }
16297
if test "x$ac_ct_DLLTOOL" = x; then
16300
case $cross_compiling:$ac_tool_warned in
16302
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
16303
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16304
ac_tool_warned=yes ;;
16306
DLLTOOL=$ac_ct_DLLTOOL
16309
DLLTOOL="$ac_cv_prog_DLLTOOL"
16312
if test -n "$ac_tool_prefix"; then
16313
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
16314
set dummy ${ac_tool_prefix}objdump; ac_word=$2
16315
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16316
$as_echo_n "checking for $ac_word... " >&6; }
16317
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
16318
$as_echo_n "(cached) " >&6
16320
if test -n "$OBJDUMP"; then
16321
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
16323
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16324
for as_dir in $PATH
16327
test -z "$as_dir" && as_dir=.
16328
for ac_exec_ext in '' $ac_executable_extensions; do
16329
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16330
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
16331
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16340
OBJDUMP=$ac_cv_prog_OBJDUMP
16341
if test -n "$OBJDUMP"; then
16342
{ $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
16343
$as_echo "$OBJDUMP" >&6; }
16345
{ $as_echo "$as_me:$LINENO: result: no" >&5
16346
$as_echo "no" >&6; }
16351
if test -z "$ac_cv_prog_OBJDUMP"; then
16352
ac_ct_OBJDUMP=$OBJDUMP
16353
# Extract the first word of "objdump", so it can be a program name with args.
16354
set dummy objdump; ac_word=$2
16355
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16356
$as_echo_n "checking for $ac_word... " >&6; }
16357
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
16358
$as_echo_n "(cached) " >&6
16360
if test -n "$ac_ct_OBJDUMP"; then
16361
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
16363
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16364
for as_dir in $PATH
16367
test -z "$as_dir" && as_dir=.
16368
for ac_exec_ext in '' $ac_executable_extensions; do
16369
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16370
ac_cv_prog_ac_ct_OBJDUMP="objdump"
16371
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16380
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
16381
if test -n "$ac_ct_OBJDUMP"; then
16382
{ $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
16383
$as_echo "$ac_ct_OBJDUMP" >&6; }
16385
{ $as_echo "$as_me:$LINENO: result: no" >&5
16386
$as_echo "no" >&6; }
16389
if test "x$ac_ct_OBJDUMP" = x; then
16392
case $cross_compiling:$ac_tool_warned in
16394
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
16395
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16396
ac_tool_warned=yes ;;
16398
OBJDUMP=$ac_ct_OBJDUMP
16401
OBJDUMP="$ac_cv_prog_OBJDUMP"
16407
test -z "$AS" && AS=as
16413
test -z "$DLLTOOL" && DLLTOOL=dlltool
16419
test -z "$OBJDUMP" && OBJDUMP=objdump
16429
{ $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
16430
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
16435
macro_version='2.2.6'
16436
macro_revision='1.3012'
16450
ltmain="$ac_aux_dir/ltmain.sh"
16452
{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
16453
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
16454
if test "${ac_cv_path_SED+set}" = set; then
16455
$as_echo_n "(cached) " >&6
16457
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
16458
for ac_i in 1 2 3 4 5 6 7; do
16459
ac_script="$ac_script$as_nl$ac_script"
16461
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
16462
$as_unset ac_script || ac_script=
16463
if test -z "$SED"; then
16464
ac_path_SED_found=false
16465
# Loop through the user's path and test for each of PROGNAME-LIST
16466
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16467
for as_dir in $PATH
16470
test -z "$as_dir" && as_dir=.
16471
for ac_prog in sed gsed; do
16472
for ac_exec_ext in '' $ac_executable_extensions; do
16473
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
16474
{ test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
16475
# Check for GNU ac_path_SED and select it if it is found.
16476
# Check for GNU $ac_path_SED
16477
case `"$ac_path_SED" --version 2>&1` in
16479
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
16482
$as_echo_n 0123456789 >"conftest.in"
16485
cat "conftest.in" "conftest.in" >"conftest.tmp"
16486
mv "conftest.tmp" "conftest.in"
16487
cp "conftest.in" "conftest.nl"
16488
$as_echo '' >> "conftest.nl"
16489
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
16490
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
16491
ac_count=`expr $ac_count + 1`
16492
if test $ac_count -gt ${ac_path_SED_max-0}; then
16493
# Best one so far, save it but keep looking for a better one
16494
ac_cv_path_SED="$ac_path_SED"
16495
ac_path_SED_max=$ac_count
16497
# 10*(2^10) chars as input seems more than enough
16498
test $ac_count -gt 10 && break
16500
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
16503
$ac_path_SED_found && break 3
16508
if test -z "$ac_cv_path_SED"; then
16509
{ { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
16510
$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
16511
{ (exit 1); exit 1; }; }
16514
ac_cv_path_SED=$SED
16518
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
16519
$as_echo "$ac_cv_path_SED" >&6; }
16520
SED="$ac_cv_path_SED"
16523
test -z "$SED" && SED=sed
16524
Xsed="$SED -e 1s/^X//"
16536
4424
{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
16537
4425
$as_echo_n "checking for fgrep... " >&6; }
16538
4426
if test "${ac_cv_path_FGREP+set}" = set; then
11792
{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11793
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11794
# Check whether --enable-maintainer-mode was given.
11795
if test "${enable_maintainer_mode+set}" = set; then
11796
enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11798
USE_MAINTAINER_MODE=no
11801
{ $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11802
$as_echo "$USE_MAINTAINER_MODE" >&6; }
11803
if test $USE_MAINTAINER_MODE = yes; then
11804
MAINTAINER_MODE_TRUE=
11805
MAINTAINER_MODE_FALSE='#'
11807
MAINTAINER_MODE_TRUE='#'
11808
MAINTAINER_MODE_FALSE=
11811
MAINT=$MAINTAINER_MODE_TRUE
11817
DISABLE_DEPRECATED=""
11818
if test $USE_MAINTAINER_MODE = yes; then
11819
DOMAINS="G ATK PANGO GDK GDK_PIXBUF GTK GCONF BONOBO BONOBO_UI GNOME LIBGLADE VTE GNOME_VFS WNCK LIBSOUP"
11820
for DOMAIN in $DOMAINS; do
11821
DISABLE_DEPRECATED="$DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_SINGLE_INCLUDES"
11828
# Use the silent-rules feature when possible.
11829
# Check whether --enable-silent-rules was given.
11830
if test "${enable_silent_rules+set}" = set; then
11831
enableval=$enable_silent_rules;
11834
case $enable_silent_rules in
11835
yes) AM_DEFAULT_VERBOSITY=0;;
11836
no) AM_DEFAULT_VERBOSITY=1;;
11837
*) AM_DEFAULT_VERBOSITY=0;;
11842
{ $as_echo "$as_me:$LINENO: checking host system type" >&5
11843
$as_echo_n "checking host system type... " >&6; }
11844
if test "${ac_cv_host+set}" = set; then
11845
$as_echo_n "(cached) " >&6
11847
if test "x$host_alias" = x; then
11848
ac_cv_host=$ac_cv_build
11850
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
11851
{ { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
11852
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
11853
{ (exit 1); exit 1; }; }
11857
{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
11858
$as_echo "$ac_cv_host" >&6; }
11859
case $ac_cv_host in
11861
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
11862
$as_echo "$as_me: error: invalid value of canonical host" >&2;}
11863
{ (exit 1); exit 1; }; };;
11866
ac_save_IFS=$IFS; IFS='-'
11872
# Remember, the first character of IFS is used to create $*,
11873
# except with old shells:
11876
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
11881
GOBJECT_REQUIRED=2.10.0
11883
GDK_PIXBUF_REQUIRED=2.10.0
11885
GNUTLS_REQUIRED=1.4.0
11888
PYGTK_REQUIRED=2.0.0
11889
VIEW_REQUIRED=0.6.0
11890
GTHREAD_REQUIRED=2.0.0
11891
PYTHON_REQUIRED=2.4
11893
FIREFOX_PLUGIN_REQUIRED=2.0.0
11894
MOZILLA_PLUGIN_REQUIRED=1.8
11895
GOBJECT_INTROSPECTION_REQUIRED=0.6.2
11898
if test -n "$ac_tool_prefix"; then
11899
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11900
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11901
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11902
$as_echo_n "checking for $ac_word... " >&6; }
11903
if test "${ac_cv_prog_RANLIB+set}" = set; then
11904
$as_echo_n "(cached) " >&6
11906
if test -n "$RANLIB"; then
11907
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11909
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11910
for as_dir in $PATH
11913
test -z "$as_dir" && as_dir=.
11914
for ac_exec_ext in '' $ac_executable_extensions; do
11915
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11916
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11917
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11926
RANLIB=$ac_cv_prog_RANLIB
11927
if test -n "$RANLIB"; then
11928
{ $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
11929
$as_echo "$RANLIB" >&6; }
11931
{ $as_echo "$as_me:$LINENO: result: no" >&5
11932
$as_echo "no" >&6; }
11937
if test -z "$ac_cv_prog_RANLIB"; then
11938
ac_ct_RANLIB=$RANLIB
11939
# Extract the first word of "ranlib", so it can be a program name with args.
11940
set dummy ranlib; ac_word=$2
11941
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11942
$as_echo_n "checking for $ac_word... " >&6; }
11943
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11944
$as_echo_n "(cached) " >&6
11946
if test -n "$ac_ct_RANLIB"; then
11947
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11949
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11950
for as_dir in $PATH
11953
test -z "$as_dir" && as_dir=.
11954
for ac_exec_ext in '' $ac_executable_extensions; do
11955
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11956
ac_cv_prog_ac_ct_RANLIB="ranlib"
11957
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11966
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11967
if test -n "$ac_ct_RANLIB"; then
11968
{ $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11969
$as_echo "$ac_ct_RANLIB" >&6; }
11971
{ $as_echo "$as_me:$LINENO: result: no" >&5
11972
$as_echo "no" >&6; }
11975
if test "x$ac_ct_RANLIB" = x; then
11978
case $cross_compiling:$ac_tool_warned in
11980
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11981
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11982
ac_tool_warned=yes ;;
11984
RANLIB=$ac_ct_RANLIB
11987
RANLIB="$ac_cv_prog_RANLIB"
11991
if test "${ac_cv_header_minix_config_h+set}" = set; then
11992
{ $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
11993
$as_echo_n "checking for minix/config.h... " >&6; }
11994
if test "${ac_cv_header_minix_config_h+set}" = set; then
11995
$as_echo_n "(cached) " >&6
11997
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
11998
$as_echo "$ac_cv_header_minix_config_h" >&6; }
12000
# Is the header compilable?
12001
{ $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
12002
$as_echo_n "checking minix/config.h usability... " >&6; }
12003
cat >conftest.$ac_ext <<_ACEOF
12006
cat confdefs.h >>conftest.$ac_ext
12007
cat >>conftest.$ac_ext <<_ACEOF
12008
/* end confdefs.h. */
12009
$ac_includes_default
12010
#include <minix/config.h>
12012
rm -f conftest.$ac_objext
12013
if { (ac_try="$ac_compile"
12014
case "(($ac_try" in
12015
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12016
*) ac_try_echo=$ac_try;;
12018
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12019
$as_echo "$ac_try_echo") >&5
12020
(eval "$ac_compile") 2>conftest.er1
12022
grep -v '^ *+' conftest.er1 >conftest.err
12024
cat conftest.err >&5
12025
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026
(exit $ac_status); } && {
12027
test -z "$ac_c_werror_flag" ||
12028
test ! -s conftest.err
12029
} && test -s conftest.$ac_objext; then
12030
ac_header_compiler=yes
12032
$as_echo "$as_me: failed program was:" >&5
12033
sed 's/^/| /' conftest.$ac_ext >&5
12035
ac_header_compiler=no
12038
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12039
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12040
$as_echo "$ac_header_compiler" >&6; }
12042
# Is the header present?
12043
{ $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
12044
$as_echo_n "checking minix/config.h presence... " >&6; }
12045
cat >conftest.$ac_ext <<_ACEOF
12048
cat confdefs.h >>conftest.$ac_ext
12049
cat >>conftest.$ac_ext <<_ACEOF
12050
/* end confdefs.h. */
12051
#include <minix/config.h>
12053
if { (ac_try="$ac_cpp conftest.$ac_ext"
12054
case "(($ac_try" in
12055
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12056
*) ac_try_echo=$ac_try;;
12058
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12059
$as_echo "$ac_try_echo") >&5
12060
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12062
grep -v '^ *+' conftest.er1 >conftest.err
12064
cat conftest.err >&5
12065
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066
(exit $ac_status); } >/dev/null && {
12067
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12068
test ! -s conftest.err
12070
ac_header_preproc=yes
12072
$as_echo "$as_me: failed program was:" >&5
12073
sed 's/^/| /' conftest.$ac_ext >&5
12075
ac_header_preproc=no
12078
rm -f conftest.err conftest.$ac_ext
12079
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12080
$as_echo "$ac_header_preproc" >&6; }
12082
# So? What about this header?
12083
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12085
{ $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
12086
$as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12087
{ $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
12088
$as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
12089
ac_header_preproc=yes
12092
{ $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
12093
$as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
12094
{ $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
12095
$as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
12096
{ $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
12097
$as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
12098
{ $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
12099
$as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
12100
{ $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
12101
$as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
12102
{ $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
12103
$as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
12105
## ----------------------------------------------------------------------- ##
12106
## Report this to https://bugzilla.gnome.org/enter_bug.cgi?product=gtk-vnc ##
12107
## ----------------------------------------------------------------------- ##
12109
) | sed "s/^/$as_me: WARNING: /" >&2
12112
{ $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
12113
$as_echo_n "checking for minix/config.h... " >&6; }
12114
if test "${ac_cv_header_minix_config_h+set}" = set; then
12115
$as_echo_n "(cached) " >&6
12117
ac_cv_header_minix_config_h=$ac_header_preproc
12119
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
12120
$as_echo "$ac_cv_header_minix_config_h" >&6; }
12123
if test "x$ac_cv_header_minix_config_h" = x""yes; then
12130
if test "$MINIX" = yes; then
12132
cat >>confdefs.h <<\_ACEOF
12133
#define _POSIX_SOURCE 1
12137
cat >>confdefs.h <<\_ACEOF
12138
#define _POSIX_1_SOURCE 2
12142
cat >>confdefs.h <<\_ACEOF
12150
{ $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
12151
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
12152
if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
12153
$as_echo_n "(cached) " >&6
12155
cat >conftest.$ac_ext <<_ACEOF
12158
cat confdefs.h >>conftest.$ac_ext
12159
cat >>conftest.$ac_ext <<_ACEOF
12160
/* end confdefs.h. */
12162
# define __EXTENSIONS__ 1
12163
$ac_includes_default
12172
rm -f conftest.$ac_objext
12173
if { (ac_try="$ac_compile"
12174
case "(($ac_try" in
12175
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12176
*) ac_try_echo=$ac_try;;
12178
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12179
$as_echo "$ac_try_echo") >&5
12180
(eval "$ac_compile") 2>conftest.er1
12182
grep -v '^ *+' conftest.er1 >conftest.err
12184
cat conftest.err >&5
12185
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186
(exit $ac_status); } && {
12187
test -z "$ac_c_werror_flag" ||
12188
test ! -s conftest.err
12189
} && test -s conftest.$ac_objext; then
12190
ac_cv_safe_to_define___extensions__=yes
12192
$as_echo "$as_me: failed program was:" >&5
12193
sed 's/^/| /' conftest.$ac_ext >&5
12195
ac_cv_safe_to_define___extensions__=no
12198
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12200
{ $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
12201
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
12202
test $ac_cv_safe_to_define___extensions__ = yes &&
12203
cat >>confdefs.h <<\_ACEOF
12204
#define __EXTENSIONS__ 1
12207
cat >>confdefs.h <<\_ACEOF
12208
#define _ALL_SOURCE 1
12211
cat >>confdefs.h <<\_ACEOF
12212
#define _GNU_SOURCE 1
12215
cat >>confdefs.h <<\_ACEOF
12216
#define _POSIX_PTHREAD_SEMANTICS 1
12219
cat >>confdefs.h <<\_ACEOF
12220
#define _TANDEM_SOURCE 1
12233
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12234
# for constant arguments. Useless!
12235
{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
12236
$as_echo_n "checking for working alloca.h... " >&6; }
12237
if test "${ac_cv_working_alloca_h+set}" = set; then
12238
$as_echo_n "(cached) " >&6
12240
cat >conftest.$ac_ext <<_ACEOF
12243
cat confdefs.h >>conftest.$ac_ext
12244
cat >>conftest.$ac_ext <<_ACEOF
12245
/* end confdefs.h. */
12246
#include <alloca.h>
12250
char *p = (char *) alloca (2 * sizeof (int));
12256
rm -f conftest.$ac_objext conftest$ac_exeext
12257
if { (ac_try="$ac_link"
12258
case "(($ac_try" in
12259
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12260
*) ac_try_echo=$ac_try;;
12262
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12263
$as_echo "$ac_try_echo") >&5
12264
(eval "$ac_link") 2>conftest.er1
12266
grep -v '^ *+' conftest.er1 >conftest.err
12268
cat conftest.err >&5
12269
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12270
(exit $ac_status); } && {
12271
test -z "$ac_c_werror_flag" ||
12272
test ! -s conftest.err
12273
} && test -s conftest$ac_exeext && {
12274
test "$cross_compiling" = yes ||
12275
$as_test_x conftest$ac_exeext
12277
ac_cv_working_alloca_h=yes
12279
$as_echo "$as_me: failed program was:" >&5
12280
sed 's/^/| /' conftest.$ac_ext >&5
12282
ac_cv_working_alloca_h=no
12285
rm -rf conftest.dSYM
12286
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12287
conftest$ac_exeext conftest.$ac_ext
12289
{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12290
$as_echo "$ac_cv_working_alloca_h" >&6; }
12291
if test $ac_cv_working_alloca_h = yes; then
12293
cat >>confdefs.h <<\_ACEOF
12294
#define HAVE_ALLOCA_H 1
12299
{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
12300
$as_echo_n "checking for alloca... " >&6; }
12301
if test "${ac_cv_func_alloca_works+set}" = set; then
12302
$as_echo_n "(cached) " >&6
12304
cat >conftest.$ac_ext <<_ACEOF
12307
cat confdefs.h >>conftest.$ac_ext
12308
cat >>conftest.$ac_ext <<_ACEOF
12309
/* end confdefs.h. */
12311
# define alloca __builtin_alloca
12314
# include <malloc.h>
12315
# define alloca _alloca
12317
# ifdef HAVE_ALLOCA_H
12318
# include <alloca.h>
12323
# ifndef alloca /* predefined by HP cc +Olibcalls */
12334
char *p = (char *) alloca (1);
12340
rm -f conftest.$ac_objext conftest$ac_exeext
12341
if { (ac_try="$ac_link"
12342
case "(($ac_try" in
12343
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12344
*) ac_try_echo=$ac_try;;
12346
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12347
$as_echo "$ac_try_echo") >&5
12348
(eval "$ac_link") 2>conftest.er1
12350
grep -v '^ *+' conftest.er1 >conftest.err
12352
cat conftest.err >&5
12353
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354
(exit $ac_status); } && {
12355
test -z "$ac_c_werror_flag" ||
12356
test ! -s conftest.err
12357
} && test -s conftest$ac_exeext && {
12358
test "$cross_compiling" = yes ||
12359
$as_test_x conftest$ac_exeext
12361
ac_cv_func_alloca_works=yes
12363
$as_echo "$as_me: failed program was:" >&5
12364
sed 's/^/| /' conftest.$ac_ext >&5
12366
ac_cv_func_alloca_works=no
12369
rm -rf conftest.dSYM
12370
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12371
conftest$ac_exeext conftest.$ac_ext
12373
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12374
$as_echo "$ac_cv_func_alloca_works" >&6; }
12376
if test $ac_cv_func_alloca_works = yes; then
12378
cat >>confdefs.h <<\_ACEOF
12379
#define HAVE_ALLOCA 1
12383
# The SVR3 libPW and SVR4 libucb both contain incompatible functions
12384
# that cause trouble. Some versions do not even contain alloca or
12385
# contain a buggy version. If you still want to use their alloca,
12386
# use ar to extract alloca.o from them instead of compiling alloca.c.
12392
ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12394
cat >>confdefs.h <<\_ACEOF
12399
{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12400
$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12401
if test "${ac_cv_os_cray+set}" = set; then
12402
$as_echo_n "(cached) " >&6
12404
cat >conftest.$ac_ext <<_ACEOF
12407
cat confdefs.h >>conftest.$ac_ext
12408
cat >>conftest.$ac_ext <<_ACEOF
12409
/* end confdefs.h. */
12410
#if defined CRAY && ! defined CRAY2
12417
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12418
$EGREP "webecray" >/dev/null 2>&1; then
12426
{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12427
$as_echo "$ac_cv_os_cray" >&6; }
12428
if test $ac_cv_os_cray = yes; then
12429
for ac_func in _getb67 GETB67 getb67; do
12430
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12431
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12432
$as_echo_n "checking for $ac_func... " >&6; }
12433
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12434
$as_echo_n "(cached) " >&6
12436
cat >conftest.$ac_ext <<_ACEOF
12439
cat confdefs.h >>conftest.$ac_ext
12440
cat >>conftest.$ac_ext <<_ACEOF
12441
/* end confdefs.h. */
12442
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12443
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12444
#define $ac_func innocuous_$ac_func
12446
/* System header to define __stub macros and hopefully few prototypes,
12447
which can conflict with char $ac_func (); below.
12448
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12449
<limits.h> exists even on freestanding compilers. */
12452
# include <limits.h>
12454
# include <assert.h>
12459
/* Override any GCC internal prototype to avoid an error.
12460
Use char because int might match the return type of a GCC
12461
builtin and then its argument prototype would still apply. */
12466
/* The GNU C library defines this for functions which it implements
12467
to always fail with ENOSYS. Some functions are actually named
12468
something starting with __ and the normal name is an alias. */
12469
#if defined __stub_$ac_func || defined __stub___$ac_func
12476
return $ac_func ();
12481
rm -f conftest.$ac_objext conftest$ac_exeext
12482
if { (ac_try="$ac_link"
12483
case "(($ac_try" in
12484
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12485
*) ac_try_echo=$ac_try;;
12487
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12488
$as_echo "$ac_try_echo") >&5
12489
(eval "$ac_link") 2>conftest.er1
12491
grep -v '^ *+' conftest.er1 >conftest.err
12493
cat conftest.err >&5
12494
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495
(exit $ac_status); } && {
12496
test -z "$ac_c_werror_flag" ||
12497
test ! -s conftest.err
12498
} && test -s conftest$ac_exeext && {
12499
test "$cross_compiling" = yes ||
12500
$as_test_x conftest$ac_exeext
12502
eval "$as_ac_var=yes"
12504
$as_echo "$as_me: failed program was:" >&5
12505
sed 's/^/| /' conftest.$ac_ext >&5
12507
eval "$as_ac_var=no"
12510
rm -rf conftest.dSYM
12511
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12512
conftest$ac_exeext conftest.$ac_ext
12514
ac_res=`eval 'as_val=${'$as_ac_var'}
12515
$as_echo "$as_val"'`
12516
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12517
$as_echo "$ac_res" >&6; }
12518
as_val=`eval 'as_val=${'$as_ac_var'}
12519
$as_echo "$as_val"'`
12520
if test "x$as_val" = x""yes; then
12522
cat >>confdefs.h <<_ACEOF
12523
#define CRAY_STACKSEG_END $ac_func
12532
{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12533
$as_echo_n "checking stack direction for C alloca... " >&6; }
12534
if test "${ac_cv_c_stack_direction+set}" = set; then
12535
$as_echo_n "(cached) " >&6
12537
if test "$cross_compiling" = yes; then
12538
ac_cv_c_stack_direction=0
12540
cat >conftest.$ac_ext <<_ACEOF
12543
cat confdefs.h >>conftest.$ac_ext
12544
cat >>conftest.$ac_ext <<_ACEOF
12545
/* end confdefs.h. */
12546
$ac_includes_default
12548
find_stack_direction ()
12550
static char *addr = 0;
12555
return find_stack_direction ();
12558
return (&dummy > addr) ? 1 : -1;
12564
return find_stack_direction () < 0;
12567
rm -f conftest$ac_exeext
12568
if { (ac_try="$ac_link"
12569
case "(($ac_try" in
12570
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12571
*) ac_try_echo=$ac_try;;
12573
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12574
$as_echo "$ac_try_echo") >&5
12575
(eval "$ac_link") 2>&5
12577
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12578
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12579
{ (case "(($ac_try" in
12580
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12581
*) ac_try_echo=$ac_try;;
12583
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12584
$as_echo "$ac_try_echo") >&5
12585
(eval "$ac_try") 2>&5
12587
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12588
(exit $ac_status); }; }; then
12589
ac_cv_c_stack_direction=1
12591
$as_echo "$as_me: program exited with status $ac_status" >&5
12592
$as_echo "$as_me: failed program was:" >&5
12593
sed 's/^/| /' conftest.$ac_ext >&5
12595
( exit $ac_status )
12596
ac_cv_c_stack_direction=-1
12598
rm -rf conftest.dSYM
12599
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12604
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12605
$as_echo "$ac_cv_c_stack_direction" >&6; }
12607
cat >>confdefs.h <<_ACEOF
12608
#define STACK_DIRECTION $ac_cv_c_stack_direction
12615
GNULIB_INET_NTOP=0;
12616
GNULIB_INET_PTON=0;
12617
HAVE_DECL_INET_NTOP=1;
12618
HAVE_DECL_INET_PTON=1;
12626
for ac_header in $gl_header_list
12628
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12629
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12630
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12631
$as_echo_n "checking for $ac_header... " >&6; }
12632
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12633
$as_echo_n "(cached) " >&6
12635
ac_res=`eval 'as_val=${'$as_ac_Header'}
12636
$as_echo "$as_val"'`
12637
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12638
$as_echo "$ac_res" >&6; }
12640
# Is the header compilable?
12641
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12642
$as_echo_n "checking $ac_header usability... " >&6; }
12643
cat >conftest.$ac_ext <<_ACEOF
12646
cat confdefs.h >>conftest.$ac_ext
12647
cat >>conftest.$ac_ext <<_ACEOF
12648
/* end confdefs.h. */
12649
$ac_includes_default
12650
#include <$ac_header>
12652
rm -f conftest.$ac_objext
12653
if { (ac_try="$ac_compile"
12654
case "(($ac_try" in
12655
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12656
*) ac_try_echo=$ac_try;;
12658
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12659
$as_echo "$ac_try_echo") >&5
12660
(eval "$ac_compile") 2>conftest.er1
12662
grep -v '^ *+' conftest.er1 >conftest.err
12664
cat conftest.err >&5
12665
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666
(exit $ac_status); } && {
12667
test -z "$ac_c_werror_flag" ||
12668
test ! -s conftest.err
12669
} && test -s conftest.$ac_objext; then
12670
ac_header_compiler=yes
12672
$as_echo "$as_me: failed program was:" >&5
12673
sed 's/^/| /' conftest.$ac_ext >&5
12675
ac_header_compiler=no
12678
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12679
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12680
$as_echo "$ac_header_compiler" >&6; }
12682
# Is the header present?
12683
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12684
$as_echo_n "checking $ac_header presence... " >&6; }
12685
cat >conftest.$ac_ext <<_ACEOF
12688
cat confdefs.h >>conftest.$ac_ext
12689
cat >>conftest.$ac_ext <<_ACEOF
12690
/* end confdefs.h. */
12691
#include <$ac_header>
12693
if { (ac_try="$ac_cpp conftest.$ac_ext"
12694
case "(($ac_try" in
12695
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12696
*) ac_try_echo=$ac_try;;
12698
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12699
$as_echo "$ac_try_echo") >&5
12700
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12702
grep -v '^ *+' conftest.er1 >conftest.err
12704
cat conftest.err >&5
12705
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12706
(exit $ac_status); } >/dev/null && {
12707
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12708
test ! -s conftest.err
12710
ac_header_preproc=yes
12712
$as_echo "$as_me: failed program was:" >&5
12713
sed 's/^/| /' conftest.$ac_ext >&5
12715
ac_header_preproc=no
12718
rm -f conftest.err conftest.$ac_ext
12719
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12720
$as_echo "$ac_header_preproc" >&6; }
12722
# So? What about this header?
12723
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12725
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12726
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12727
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12728
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12729
ac_header_preproc=yes
12732
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12733
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12734
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12735
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12736
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12737
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12738
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12739
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12740
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12741
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12742
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12743
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12745
## ----------------------------------------------------------------------- ##
12746
## Report this to https://bugzilla.gnome.org/enter_bug.cgi?product=gtk-vnc ##
12747
## ----------------------------------------------------------------------- ##
12749
) | sed "s/^/$as_me: WARNING: /" >&2
12752
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12753
$as_echo_n "checking for $ac_header... " >&6; }
12754
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12755
$as_echo_n "(cached) " >&6
12757
eval "$as_ac_Header=\$ac_header_preproc"
12759
ac_res=`eval 'as_val=${'$as_ac_Header'}
12760
$as_echo "$as_val"'`
12761
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12762
$as_echo "$ac_res" >&6; }
12765
as_val=`eval 'as_val=${'$as_ac_Header'}
12766
$as_echo "$as_val"'`
12767
if test "x$as_val" = x""yes; then
12768
cat >>confdefs.h <<_ACEOF
12769
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12783
{ $as_echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
12784
$as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
12785
if test "${gl_cv_have_include_next+set}" = set; then
12786
$as_echo_n "(cached) " >&6
12788
rm -rf conftestd1 conftestd2
12789
mkdir conftestd1 conftestd2
12790
cat <<EOF > conftestd1/conftest.h
12791
#define DEFINED_IN_CONFTESTD1
12793
#include_next <conftest.h>
12794
#ifdef DEFINED_IN_CONFTESTD2
12797
#error "include_next doesn't work"
12800
cat <<EOF > conftestd2/conftest.h
12801
#ifndef DEFINED_IN_CONFTESTD1
12802
#error "include_next test doesn't work"
12804
#define DEFINED_IN_CONFTESTD2
12806
save_CPPFLAGS="$CPPFLAGS"
12807
CPPFLAGS="$CPPFLAGS -Iconftestd1 -Iconftestd2"
12808
cat >conftest.$ac_ext <<_ACEOF
12809
#include <conftest.h>
12811
rm -f conftest.$ac_objext
12812
if { (ac_try="$ac_compile"
12813
case "(($ac_try" in
12814
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12815
*) ac_try_echo=$ac_try;;
12817
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12818
$as_echo "$ac_try_echo") >&5
12819
(eval "$ac_compile") 2>conftest.er1
12821
grep -v '^ *+' conftest.er1 >conftest.err
12823
cat conftest.err >&5
12824
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825
(exit $ac_status); } && {
12826
test -z "$ac_c_werror_flag" ||
12827
test ! -s conftest.err
12828
} && test -s conftest.$ac_objext; then
12829
gl_cv_have_include_next=yes
12831
$as_echo "$as_me: failed program was:" >&5
12832
sed 's/^/| /' conftest.$ac_ext >&5
12834
gl_cv_have_include_next=no
12837
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12838
CPPFLAGS="$save_CPPFLAGS"
12839
rm -rf conftestd1 conftestd2
12842
{ $as_echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
12843
$as_echo "$gl_cv_have_include_next" >&6; }
12844
PRAGMA_SYSTEM_HEADER=
12845
if test $gl_cv_have_include_next = yes; then
12846
INCLUDE_NEXT=include_next
12847
if test -n "$GCC"; then
12848
PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
12851
INCLUDE_NEXT=include
12861
GNULIB_GETPEERNAME=0;
12862
GNULIB_GETSOCKNAME=0;
12863
GNULIB_GETSOCKOPT=0;
12869
GNULIB_SETSOCKOPT=0;
12871
{ $as_echo "$as_me:$LINENO: checking for inline" >&5
12872
$as_echo_n "checking for inline... " >&6; }
12873
if test "${ac_cv_c_inline+set}" = set; then
12874
$as_echo_n "(cached) " >&6
12877
for ac_kw in inline __inline__ __inline; do
12878
cat >conftest.$ac_ext <<_ACEOF
12881
cat confdefs.h >>conftest.$ac_ext
12882
cat >>conftest.$ac_ext <<_ACEOF
12883
/* end confdefs.h. */
12884
#ifndef __cplusplus
12886
static $ac_kw foo_t static_foo () {return 0; }
12887
$ac_kw foo_t foo () {return 0; }
12891
rm -f conftest.$ac_objext
12892
if { (ac_try="$ac_compile"
12893
case "(($ac_try" in
12894
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12895
*) ac_try_echo=$ac_try;;
12897
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12898
$as_echo "$ac_try_echo") >&5
12899
(eval "$ac_compile") 2>conftest.er1
12901
grep -v '^ *+' conftest.er1 >conftest.err
12903
cat conftest.err >&5
12904
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905
(exit $ac_status); } && {
12906
test -z "$ac_c_werror_flag" ||
12907
test ! -s conftest.err
12908
} && test -s conftest.$ac_objext; then
12909
ac_cv_c_inline=$ac_kw
12911
$as_echo "$as_me: failed program was:" >&5
12912
sed 's/^/| /' conftest.$ac_ext >&5
12917
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12918
test "$ac_cv_c_inline" != no && break
12922
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
12923
$as_echo "$ac_cv_c_inline" >&6; }
12926
case $ac_cv_c_inline in
12929
case $ac_cv_c_inline in
12931
*) ac_val=$ac_cv_c_inline;;
12933
cat >>confdefs.h <<_ACEOF
12934
#ifndef __cplusplus
12935
#define inline $ac_val
12951
{ $as_echo "$as_me:$LINENO: checking whether <sys/socket.h> is self-contained" >&5
12952
$as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
12953
if test "${gl_cv_header_sys_socket_h_selfcontained+set}" = set; then
12954
$as_echo_n "(cached) " >&6
12957
cat >conftest.$ac_ext <<_ACEOF
12960
cat confdefs.h >>conftest.$ac_ext
12961
cat >>conftest.$ac_ext <<_ACEOF
12962
/* end confdefs.h. */
12963
#include <sys/socket.h>
12972
rm -f conftest.$ac_objext
12973
if { (ac_try="$ac_compile"
12974
case "(($ac_try" in
12975
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12976
*) ac_try_echo=$ac_try;;
12978
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12979
$as_echo "$ac_try_echo") >&5
12980
(eval "$ac_compile") 2>conftest.er1
12982
grep -v '^ *+' conftest.er1 >conftest.err
12984
cat conftest.err >&5
12985
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12986
(exit $ac_status); } && {
12987
test -z "$ac_c_werror_flag" ||
12988
test ! -s conftest.err
12989
} && test -s conftest.$ac_objext; then
12990
gl_cv_header_sys_socket_h_selfcontained=yes
12992
$as_echo "$as_me: failed program was:" >&5
12993
sed 's/^/| /' conftest.$ac_ext >&5
12995
gl_cv_header_sys_socket_h_selfcontained=no
12998
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13001
{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
13002
$as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
13003
if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
13006
for ac_func in shutdown
13008
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13009
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13010
$as_echo_n "checking for $ac_func... " >&6; }
13011
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13012
$as_echo_n "(cached) " >&6
13014
cat >conftest.$ac_ext <<_ACEOF
13017
cat confdefs.h >>conftest.$ac_ext
13018
cat >>conftest.$ac_ext <<_ACEOF
13019
/* end confdefs.h. */
13020
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13021
For example, HP-UX 11i <limits.h> declares gettimeofday. */
13022
#define $ac_func innocuous_$ac_func
13024
/* System header to define __stub macros and hopefully few prototypes,
13025
which can conflict with char $ac_func (); below.
13026
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13027
<limits.h> exists even on freestanding compilers. */
13030
# include <limits.h>
13032
# include <assert.h>
13037
/* Override any GCC internal prototype to avoid an error.
13038
Use char because int might match the return type of a GCC
13039
builtin and then its argument prototype would still apply. */
13044
/* The GNU C library defines this for functions which it implements
13045
to always fail with ENOSYS. Some functions are actually named
13046
something starting with __ and the normal name is an alias. */
13047
#if defined __stub_$ac_func || defined __stub___$ac_func
13054
return $ac_func ();
13059
rm -f conftest.$ac_objext conftest$ac_exeext
13060
if { (ac_try="$ac_link"
13061
case "(($ac_try" in
13062
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13063
*) ac_try_echo=$ac_try;;
13065
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13066
$as_echo "$ac_try_echo") >&5
13067
(eval "$ac_link") 2>conftest.er1
13069
grep -v '^ *+' conftest.er1 >conftest.err
13071
cat conftest.err >&5
13072
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073
(exit $ac_status); } && {
13074
test -z "$ac_c_werror_flag" ||
13075
test ! -s conftest.err
13076
} && test -s conftest$ac_exeext && {
13077
test "$cross_compiling" = yes ||
13078
$as_test_x conftest$ac_exeext
13080
eval "$as_ac_var=yes"
13082
$as_echo "$as_me: failed program was:" >&5
13083
sed 's/^/| /' conftest.$ac_ext >&5
13085
eval "$as_ac_var=no"
13088
rm -rf conftest.dSYM
13089
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13090
conftest$ac_exeext conftest.$ac_ext
13092
ac_res=`eval 'as_val=${'$as_ac_var'}
13093
$as_echo "$as_val"'`
13094
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13095
$as_echo "$ac_res" >&6; }
13096
as_val=`eval 'as_val=${'$as_ac_var'}
13097
$as_echo "$as_val"'`
13098
if test "x$as_val" = x""yes; then
13099
cat >>confdefs.h <<_ACEOF
13100
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13106
if test $ac_cv_func_shutdown = yes; then
13107
{ $as_echo "$as_me:$LINENO: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
13108
$as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
13109
if test "${gl_cv_header_sys_socket_h_shut+set}" = set; then
13110
$as_echo_n "(cached) " >&6
13113
cat >conftest.$ac_ext <<_ACEOF
13116
cat confdefs.h >>conftest.$ac_ext
13117
cat >>conftest.$ac_ext <<_ACEOF
13118
/* end confdefs.h. */
13119
#include <sys/socket.h>
13123
int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
13128
rm -f conftest.$ac_objext
13129
if { (ac_try="$ac_compile"
13130
case "(($ac_try" in
13131
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13132
*) ac_try_echo=$ac_try;;
13134
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13135
$as_echo "$ac_try_echo") >&5
13136
(eval "$ac_compile") 2>conftest.er1
13138
grep -v '^ *+' conftest.er1 >conftest.err
13140
cat conftest.err >&5
13141
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13142
(exit $ac_status); } && {
13143
test -z "$ac_c_werror_flag" ||
13144
test ! -s conftest.err
13145
} && test -s conftest.$ac_objext; then
13146
gl_cv_header_sys_socket_h_shut=yes
13148
$as_echo "$as_me: failed program was:" >&5
13149
sed 's/^/| /' conftest.$ac_ext >&5
13151
gl_cv_header_sys_socket_h_shut=no
13154
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13157
{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_sys_socket_h_shut" >&5
13158
$as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
13159
if test $gl_cv_header_sys_socket_h_shut = no; then
13160
SYS_SOCKET_H='sys/socket.h'
13164
SYS_SOCKET_H='sys/socket.h'
13166
if test -n "$SYS_SOCKET_H"; then
13178
if test $gl_cv_have_include_next = yes; then
13179
gl_cv_next_sys_socket_h='<'sys/socket.h'>'
13181
{ $as_echo "$as_me:$LINENO: checking absolute name of <sys/socket.h>" >&5
13182
$as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
13183
if test "${gl_cv_next_sys_socket_h+set}" = set; then
13184
$as_echo_n "(cached) " >&6
13187
if test $ac_cv_header_sys_socket_h = yes; then
13188
cat >conftest.$ac_ext <<_ACEOF
13191
cat confdefs.h >>conftest.$ac_ext
13192
cat >>conftest.$ac_ext <<_ACEOF
13193
/* end confdefs.h. */
13194
#include <sys/socket.h>
13197
gl_cv_next_sys_socket_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13198
sed -n '\#/sys/socket.h#{
13199
s#.*"\(.*/sys/socket.h\)".*#\1#
13205
gl_cv_next_sys_socket_h='<'sys/socket.h'>'
13209
{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_sys_socket_h" >&5
13210
$as_echo "$gl_cv_next_sys_socket_h" >&6; }
13212
NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h
13216
if test $ac_cv_header_sys_socket_h = yes; then
13217
HAVE_SYS_SOCKET_H=1
13220
HAVE_SYS_SOCKET_H=0
13222
for ac_header in ws2tcpip.h
13224
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13225
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13226
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13227
$as_echo_n "checking for $ac_header... " >&6; }
13228
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13229
$as_echo_n "(cached) " >&6
13231
ac_res=`eval 'as_val=${'$as_ac_Header'}
13232
$as_echo "$as_val"'`
13233
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13234
$as_echo "$ac_res" >&6; }
13236
# Is the header compilable?
13237
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13238
$as_echo_n "checking $ac_header usability... " >&6; }
13239
cat >conftest.$ac_ext <<_ACEOF
13242
cat confdefs.h >>conftest.$ac_ext
13243
cat >>conftest.$ac_ext <<_ACEOF
13244
/* end confdefs.h. */
13245
$ac_includes_default
13246
#include <$ac_header>
13248
rm -f conftest.$ac_objext
13249
if { (ac_try="$ac_compile"
13250
case "(($ac_try" in
13251
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13252
*) ac_try_echo=$ac_try;;
13254
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13255
$as_echo "$ac_try_echo") >&5
13256
(eval "$ac_compile") 2>conftest.er1
13258
grep -v '^ *+' conftest.er1 >conftest.err
13260
cat conftest.err >&5
13261
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13262
(exit $ac_status); } && {
13263
test -z "$ac_c_werror_flag" ||
13264
test ! -s conftest.err
13265
} && test -s conftest.$ac_objext; then
13266
ac_header_compiler=yes
13268
$as_echo "$as_me: failed program was:" >&5
13269
sed 's/^/| /' conftest.$ac_ext >&5
13271
ac_header_compiler=no
13274
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13275
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13276
$as_echo "$ac_header_compiler" >&6; }
13278
# Is the header present?
13279
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13280
$as_echo_n "checking $ac_header presence... " >&6; }
13281
cat >conftest.$ac_ext <<_ACEOF
13284
cat confdefs.h >>conftest.$ac_ext
13285
cat >>conftest.$ac_ext <<_ACEOF
13286
/* end confdefs.h. */
13287
#include <$ac_header>
13289
if { (ac_try="$ac_cpp conftest.$ac_ext"
13290
case "(($ac_try" in
13291
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13292
*) ac_try_echo=$ac_try;;
13294
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13295
$as_echo "$ac_try_echo") >&5
13296
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13298
grep -v '^ *+' conftest.er1 >conftest.err
13300
cat conftest.err >&5
13301
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13302
(exit $ac_status); } >/dev/null && {
13303
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13304
test ! -s conftest.err
13306
ac_header_preproc=yes
13308
$as_echo "$as_me: failed program was:" >&5
13309
sed 's/^/| /' conftest.$ac_ext >&5
13311
ac_header_preproc=no
13314
rm -f conftest.err conftest.$ac_ext
13315
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13316
$as_echo "$ac_header_preproc" >&6; }
13318
# So? What about this header?
13319
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13321
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13322
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13323
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13324
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13325
ac_header_preproc=yes
13328
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13329
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13330
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13331
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13332
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13333
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13334
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13335
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13336
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13337
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13338
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13339
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13341
## ----------------------------------------------------------------------- ##
13342
## Report this to https://bugzilla.gnome.org/enter_bug.cgi?product=gtk-vnc ##
13343
## ----------------------------------------------------------------------- ##
13345
) | sed "s/^/$as_me: WARNING: /" >&2
13348
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13349
$as_echo_n "checking for $ac_header... " >&6; }
13350
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13351
$as_echo_n "(cached) " >&6
13353
eval "$as_ac_Header=\$ac_header_preproc"
13355
ac_res=`eval 'as_val=${'$as_ac_Header'}
13356
$as_echo "$as_val"'`
13357
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13358
$as_echo "$ac_res" >&6; }
13361
as_val=`eval 'as_val=${'$as_ac_Header'}
13362
$as_echo "$as_val"'`
13363
if test "x$as_val" = x""yes; then
13364
cat >>confdefs.h <<_ACEOF
13365
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13372
if test $ac_cv_header_ws2tcpip_h = yes; then
13386
if test $ac_cv_header_sys_socket_h != yes; then
13388
for ac_header in winsock2.h
13390
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13391
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13392
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13393
$as_echo_n "checking for $ac_header... " >&6; }
13394
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13395
$as_echo_n "(cached) " >&6
13397
ac_res=`eval 'as_val=${'$as_ac_Header'}
13398
$as_echo "$as_val"'`
13399
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13400
$as_echo "$ac_res" >&6; }
13402
# Is the header compilable?
13403
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13404
$as_echo_n "checking $ac_header usability... " >&6; }
13405
cat >conftest.$ac_ext <<_ACEOF
13408
cat confdefs.h >>conftest.$ac_ext
13409
cat >>conftest.$ac_ext <<_ACEOF
13410
/* end confdefs.h. */
13411
$ac_includes_default
13412
#include <$ac_header>
13414
rm -f conftest.$ac_objext
13415
if { (ac_try="$ac_compile"
13416
case "(($ac_try" in
13417
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13418
*) ac_try_echo=$ac_try;;
13420
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13421
$as_echo "$ac_try_echo") >&5
13422
(eval "$ac_compile") 2>conftest.er1
13424
grep -v '^ *+' conftest.er1 >conftest.err
13426
cat conftest.err >&5
13427
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428
(exit $ac_status); } && {
13429
test -z "$ac_c_werror_flag" ||
13430
test ! -s conftest.err
13431
} && test -s conftest.$ac_objext; then
13432
ac_header_compiler=yes
13434
$as_echo "$as_me: failed program was:" >&5
13435
sed 's/^/| /' conftest.$ac_ext >&5
13437
ac_header_compiler=no
13440
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13441
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13442
$as_echo "$ac_header_compiler" >&6; }
13444
# Is the header present?
13445
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13446
$as_echo_n "checking $ac_header presence... " >&6; }
13447
cat >conftest.$ac_ext <<_ACEOF
13450
cat confdefs.h >>conftest.$ac_ext
13451
cat >>conftest.$ac_ext <<_ACEOF
13452
/* end confdefs.h. */
13453
#include <$ac_header>
13455
if { (ac_try="$ac_cpp conftest.$ac_ext"
13456
case "(($ac_try" in
13457
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13458
*) ac_try_echo=$ac_try;;
13460
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13461
$as_echo "$ac_try_echo") >&5
13462
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13464
grep -v '^ *+' conftest.er1 >conftest.err
13466
cat conftest.err >&5
13467
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468
(exit $ac_status); } >/dev/null && {
13469
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13470
test ! -s conftest.err
13472
ac_header_preproc=yes
13474
$as_echo "$as_me: failed program was:" >&5
13475
sed 's/^/| /' conftest.$ac_ext >&5
13477
ac_header_preproc=no
13480
rm -f conftest.err conftest.$ac_ext
13481
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13482
$as_echo "$ac_header_preproc" >&6; }
13484
# So? What about this header?
13485
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13487
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13488
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13489
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13490
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13491
ac_header_preproc=yes
13494
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13495
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13496
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13497
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13498
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13499
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13500
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13501
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13502
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13503
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13504
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13505
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13507
## ----------------------------------------------------------------------- ##
13508
## Report this to https://bugzilla.gnome.org/enter_bug.cgi?product=gtk-vnc ##
13509
## ----------------------------------------------------------------------- ##
13511
) | sed "s/^/$as_me: WARNING: /" >&2
13514
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13515
$as_echo_n "checking for $ac_header... " >&6; }
13516
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13517
$as_echo_n "(cached) " >&6
13519
eval "$as_ac_Header=\$ac_header_preproc"
13521
ac_res=`eval 'as_val=${'$as_ac_Header'}
13522
$as_echo "$as_val"'`
13523
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13524
$as_echo "$ac_res" >&6; }
13527
as_val=`eval 'as_val=${'$as_ac_Header'}
13528
$as_echo "$as_val"'`
13529
if test "x$as_val" = x""yes; then
13530
cat >>confdefs.h <<_ACEOF
13531
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13539
if test "$ac_cv_header_winsock2_h" = yes; then
13559
{ $as_echo "$as_me:$LINENO: checking for complete errno.h" >&5
13560
$as_echo_n "checking for complete errno.h... " >&6; }
13561
if test "${gl_cv_header_errno_h_complete+set}" = set; then
13562
$as_echo_n "(cached) " >&6
13565
cat >conftest.$ac_ext <<_ACEOF
13568
cat confdefs.h >>conftest.$ac_ext
13569
cat >>conftest.$ac_ext <<_ACEOF
13570
/* end confdefs.h. */
13573
#if !defined ENOMSG
13579
#if !defined ENOLINK
13582
#if !defined EPROTO
13585
#if !defined EMULTIHOP
13588
#if !defined EBADMSG
13591
#if !defined EOVERFLOW
13594
#if !defined ENOTSUP
13597
#if !defined ECANCELED
13602
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13603
$EGREP "booboo" >/dev/null 2>&1; then
13604
gl_cv_header_errno_h_complete=no
13606
gl_cv_header_errno_h_complete=yes
13612
{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_complete" >&5
13613
$as_echo "$gl_cv_header_errno_h_complete" >&6; }
13614
if test $gl_cv_header_errno_h_complete = yes; then
13628
if test $gl_cv_have_include_next = yes; then
13629
gl_cv_next_errno_h='<'errno.h'>'
13631
{ $as_echo "$as_me:$LINENO: checking absolute name of <errno.h>" >&5
13632
$as_echo_n "checking absolute name of <errno.h>... " >&6; }
13633
if test "${gl_cv_next_errno_h+set}" = set; then
13634
$as_echo_n "(cached) " >&6
13637
if test $ac_cv_header_errno_h = yes; then
13638
cat >conftest.$ac_ext <<_ACEOF
13641
cat confdefs.h >>conftest.$ac_ext
13642
cat >>conftest.$ac_ext <<_ACEOF
13643
/* end confdefs.h. */
13647
gl_cv_next_errno_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13648
sed -n '\#/errno.h#{
13649
s#.*"\(.*/errno.h\)".*#\1#
13655
gl_cv_next_errno_h='<'errno.h'>'
13659
{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_errno_h" >&5
13660
$as_echo "$gl_cv_next_errno_h" >&6; }
13662
NEXT_ERRNO_H=$gl_cv_next_errno_h
13670
if test -n "$ERRNO_H"; then
13671
{ $as_echo "$as_me:$LINENO: checking for EMULTIHOP value" >&5
13672
$as_echo_n "checking for EMULTIHOP value... " >&6; }
13673
if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then
13674
$as_echo_n "(cached) " >&6
13677
cat >conftest.$ac_ext <<_ACEOF
13680
cat confdefs.h >>conftest.$ac_ext
13681
cat >>conftest.$ac_ext <<_ACEOF
13682
/* end confdefs.h. */
13690
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13691
$EGREP "yes" >/dev/null 2>&1; then
13692
gl_cv_header_errno_h_EMULTIHOP=yes
13694
gl_cv_header_errno_h_EMULTIHOP=no
13698
if test $gl_cv_header_errno_h_EMULTIHOP = no; then
13699
cat >conftest.$ac_ext <<_ACEOF
13702
cat confdefs.h >>conftest.$ac_ext
13703
cat >>conftest.$ac_ext <<_ACEOF
13704
/* end confdefs.h. */
13706
#define _XOPEN_SOURCE_EXTENDED 1
13713
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13714
$EGREP "yes" >/dev/null 2>&1; then
13715
gl_cv_header_errno_h_EMULTIHOP=hidden
13719
if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
13720
if test "$cross_compiling" = yes; then
13721
# Depending upon the size, compute the lo and hi bounds.
13722
cat >conftest.$ac_ext <<_ACEOF
13725
cat confdefs.h >>conftest.$ac_ext
13726
cat >>conftest.$ac_ext <<_ACEOF
13727
/* end confdefs.h. */
13729
#define _XOPEN_SOURCE_EXTENDED 1
13731
/* The following two lines are a workaround against an autoconf-2.52 bug. */
13733
#include <stdlib.h>
13738
static int test_array [1 - 2 * !((EMULTIHOP) >= 0)];
13745
rm -f conftest.$ac_objext
13746
if { (ac_try="$ac_compile"
13747
case "(($ac_try" in
13748
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13749
*) ac_try_echo=$ac_try;;
13751
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13752
$as_echo "$ac_try_echo") >&5
13753
(eval "$ac_compile") 2>conftest.er1
13755
grep -v '^ *+' conftest.er1 >conftest.err
13757
cat conftest.err >&5
13758
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759
(exit $ac_status); } && {
13760
test -z "$ac_c_werror_flag" ||
13761
test ! -s conftest.err
13762
} && test -s conftest.$ac_objext; then
13765
cat >conftest.$ac_ext <<_ACEOF
13768
cat confdefs.h >>conftest.$ac_ext
13769
cat >>conftest.$ac_ext <<_ACEOF
13770
/* end confdefs.h. */
13772
#define _XOPEN_SOURCE_EXTENDED 1
13774
/* The following two lines are a workaround against an autoconf-2.52 bug. */
13776
#include <stdlib.h>
13781
static int test_array [1 - 2 * !((EMULTIHOP) <= $ac_mid)];
13788
rm -f conftest.$ac_objext
13789
if { (ac_try="$ac_compile"
13790
case "(($ac_try" in
13791
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13792
*) ac_try_echo=$ac_try;;
13794
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13795
$as_echo "$ac_try_echo") >&5
13796
(eval "$ac_compile") 2>conftest.er1
13798
grep -v '^ *+' conftest.er1 >conftest.err
13800
cat conftest.err >&5
13801
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802
(exit $ac_status); } && {
13803
test -z "$ac_c_werror_flag" ||
13804
test ! -s conftest.err
13805
} && test -s conftest.$ac_objext; then
13806
ac_hi=$ac_mid; break
13808
$as_echo "$as_me: failed program was:" >&5
13809
sed 's/^/| /' conftest.$ac_ext >&5
13811
ac_lo=`expr $ac_mid + 1`
13812
if test $ac_lo -le $ac_mid; then
13816
ac_mid=`expr 2 '*' $ac_mid + 1`
13819
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13822
$as_echo "$as_me: failed program was:" >&5
13823
sed 's/^/| /' conftest.$ac_ext >&5
13825
cat >conftest.$ac_ext <<_ACEOF
13828
cat confdefs.h >>conftest.$ac_ext
13829
cat >>conftest.$ac_ext <<_ACEOF
13830
/* end confdefs.h. */
13832
#define _XOPEN_SOURCE_EXTENDED 1
13834
/* The following two lines are a workaround against an autoconf-2.52 bug. */
13836
#include <stdlib.h>
13841
static int test_array [1 - 2 * !((EMULTIHOP) < 0)];
13848
rm -f conftest.$ac_objext
13849
if { (ac_try="$ac_compile"
13850
case "(($ac_try" in
13851
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13852
*) ac_try_echo=$ac_try;;
13854
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13855
$as_echo "$ac_try_echo") >&5
13856
(eval "$ac_compile") 2>conftest.er1
13858
grep -v '^ *+' conftest.er1 >conftest.err
13860
cat conftest.err >&5
13861
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13862
(exit $ac_status); } && {
13863
test -z "$ac_c_werror_flag" ||
13864
test ! -s conftest.err
13865
} && test -s conftest.$ac_objext; then
13868
cat >conftest.$ac_ext <<_ACEOF
13871
cat confdefs.h >>conftest.$ac_ext
13872
cat >>conftest.$ac_ext <<_ACEOF
13873
/* end confdefs.h. */
13875
#define _XOPEN_SOURCE_EXTENDED 1
13877
/* The following two lines are a workaround against an autoconf-2.52 bug. */
13879
#include <stdlib.h>
13884
static int test_array [1 - 2 * !((EMULTIHOP) >= $ac_mid)];
13891
rm -f conftest.$ac_objext
13892
if { (ac_try="$ac_compile"
13893
case "(($ac_try" in
13894
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13895
*) ac_try_echo=$ac_try;;
13897
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13898
$as_echo "$ac_try_echo") >&5
13899
(eval "$ac_compile") 2>conftest.er1
13901
grep -v '^ *+' conftest.er1 >conftest.err
13903
cat conftest.err >&5
13904
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13905
(exit $ac_status); } && {
13906
test -z "$ac_c_werror_flag" ||
13907
test ! -s conftest.err
13908
} && test -s conftest.$ac_objext; then
13909
ac_lo=$ac_mid; break
13911
$as_echo "$as_me: failed program was:" >&5
13912
sed 's/^/| /' conftest.$ac_ext >&5
13914
ac_hi=`expr '(' $ac_mid ')' - 1`
13915
if test $ac_mid -le $ac_hi; then
13919
ac_mid=`expr 2 '*' $ac_mid`
13922
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13925
$as_echo "$as_me: failed program was:" >&5
13926
sed 's/^/| /' conftest.$ac_ext >&5
13931
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13934
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13935
# Binary search between lo and hi bounds.
13936
while test "x$ac_lo" != "x$ac_hi"; do
13937
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13938
cat >conftest.$ac_ext <<_ACEOF
13941
cat confdefs.h >>conftest.$ac_ext
13942
cat >>conftest.$ac_ext <<_ACEOF
13943
/* end confdefs.h. */
13945
#define _XOPEN_SOURCE_EXTENDED 1
13947
/* The following two lines are a workaround against an autoconf-2.52 bug. */
13949
#include <stdlib.h>
13954
static int test_array [1 - 2 * !((EMULTIHOP) <= $ac_mid)];
13961
rm -f conftest.$ac_objext
13962
if { (ac_try="$ac_compile"
13963
case "(($ac_try" in
13964
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13965
*) ac_try_echo=$ac_try;;
13967
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13968
$as_echo "$ac_try_echo") >&5
13969
(eval "$ac_compile") 2>conftest.er1
13971
grep -v '^ *+' conftest.er1 >conftest.err
13973
cat conftest.err >&5
13974
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13975
(exit $ac_status); } && {
13976
test -z "$ac_c_werror_flag" ||
13977
test ! -s conftest.err
13978
} && test -s conftest.$ac_objext; then
13981
$as_echo "$as_me: failed program was:" >&5
13982
sed 's/^/| /' conftest.$ac_ext >&5
13984
ac_lo=`expr '(' $ac_mid ')' + 1`
13987
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13990
?*) gl_cv_header_errno_h_EMULTIHOP=$ac_lo;;
13994
cat >conftest.$ac_ext <<_ACEOF
13997
cat confdefs.h >>conftest.$ac_ext
13998
cat >>conftest.$ac_ext <<_ACEOF
13999
/* end confdefs.h. */
14001
#define _XOPEN_SOURCE_EXTENDED 1
14003
/* The following two lines are a workaround against an autoconf-2.52 bug. */
14005
#include <stdlib.h>
14007
static long int longval () { return EMULTIHOP; }
14008
static unsigned long int ulongval () { return EMULTIHOP; }
14010
#include <stdlib.h>
14015
FILE *f = fopen ("conftest.val", "w");
14018
if ((EMULTIHOP) < 0)
14020
long int i = longval ();
14021
if (i != (EMULTIHOP))
14023
fprintf (f, "%ld", i);
14027
unsigned long int i = ulongval ();
14028
if (i != (EMULTIHOP))
14030
fprintf (f, "%lu", i);
14032
/* Do not output a trailing newline, as this causes \r\n confusion
14033
on some platforms. */
14034
return ferror (f) || fclose (f) != 0;
14040
rm -f conftest$ac_exeext
14041
if { (ac_try="$ac_link"
14042
case "(($ac_try" in
14043
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14044
*) ac_try_echo=$ac_try;;
14046
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14047
$as_echo "$ac_try_echo") >&5
14048
(eval "$ac_link") 2>&5
14050
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14051
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14052
{ (case "(($ac_try" in
14053
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14054
*) ac_try_echo=$ac_try;;
14056
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14057
$as_echo "$ac_try_echo") >&5
14058
(eval "$ac_try") 2>&5
14060
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14061
(exit $ac_status); }; }; then
14062
gl_cv_header_errno_h_EMULTIHOP=`cat conftest.val`
14064
$as_echo "$as_me: program exited with status $ac_status" >&5
14065
$as_echo "$as_me: failed program was:" >&5
14066
sed 's/^/| /' conftest.$ac_ext >&5
14069
rm -rf conftest.dSYM
14070
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14077
{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
14078
$as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
14079
case $gl_cv_header_errno_h_EMULTIHOP in
14081
EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
14084
EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
14092
if test -n "$ERRNO_H"; then
14093
{ $as_echo "$as_me:$LINENO: checking for ENOLINK value" >&5
14094
$as_echo_n "checking for ENOLINK value... " >&6; }
14095
if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then
14096
$as_echo_n "(cached) " >&6
14099
cat >conftest.$ac_ext <<_ACEOF
14102
cat confdefs.h >>conftest.$ac_ext
14103
cat >>conftest.$ac_ext <<_ACEOF
14104
/* end confdefs.h. */
14112
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14113
$EGREP "yes" >/dev/null 2>&1; then
14114
gl_cv_header_errno_h_ENOLINK=yes
14116
gl_cv_header_errno_h_ENOLINK=no
14120
if test $gl_cv_header_errno_h_ENOLINK = no; then
14121
cat >conftest.$ac_ext <<_ACEOF
14124
cat confdefs.h >>conftest.$ac_ext
14125
cat >>conftest.$ac_ext <<_ACEOF
14126
/* end confdefs.h. */
14128
#define _XOPEN_SOURCE_EXTENDED 1
14135
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14136
$EGREP "yes" >/dev/null 2>&1; then
14137
gl_cv_header_errno_h_ENOLINK=hidden
14141
if test $gl_cv_header_errno_h_ENOLINK = hidden; then
14142
if test "$cross_compiling" = yes; then
14143
# Depending upon the size, compute the lo and hi bounds.
14144
cat >conftest.$ac_ext <<_ACEOF
14147
cat confdefs.h >>conftest.$ac_ext
14148
cat >>conftest.$ac_ext <<_ACEOF
14149
/* end confdefs.h. */
14151
#define _XOPEN_SOURCE_EXTENDED 1
14153
/* The following two lines are a workaround against an autoconf-2.52 bug. */
14155
#include <stdlib.h>
14160
static int test_array [1 - 2 * !((ENOLINK) >= 0)];
14167
rm -f conftest.$ac_objext
14168
if { (ac_try="$ac_compile"
14169
case "(($ac_try" in
14170
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14171
*) ac_try_echo=$ac_try;;
14173
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14174
$as_echo "$ac_try_echo") >&5
14175
(eval "$ac_compile") 2>conftest.er1
14177
grep -v '^ *+' conftest.er1 >conftest.err
14179
cat conftest.err >&5
14180
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181
(exit $ac_status); } && {
14182
test -z "$ac_c_werror_flag" ||
14183
test ! -s conftest.err
14184
} && test -s conftest.$ac_objext; then
14187
cat >conftest.$ac_ext <<_ACEOF
14190
cat confdefs.h >>conftest.$ac_ext
14191
cat >>conftest.$ac_ext <<_ACEOF
14192
/* end confdefs.h. */
14194
#define _XOPEN_SOURCE_EXTENDED 1
14196
/* The following two lines are a workaround against an autoconf-2.52 bug. */
14198
#include <stdlib.h>
14203
static int test_array [1 - 2 * !((ENOLINK) <= $ac_mid)];
14210
rm -f conftest.$ac_objext
14211
if { (ac_try="$ac_compile"
14212
case "(($ac_try" in
14213
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14214
*) ac_try_echo=$ac_try;;
14216
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14217
$as_echo "$ac_try_echo") >&5
14218
(eval "$ac_compile") 2>conftest.er1
14220
grep -v '^ *+' conftest.er1 >conftest.err
14222
cat conftest.err >&5
14223
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224
(exit $ac_status); } && {
14225
test -z "$ac_c_werror_flag" ||
14226
test ! -s conftest.err
14227
} && test -s conftest.$ac_objext; then
14228
ac_hi=$ac_mid; break
14230
$as_echo "$as_me: failed program was:" >&5
14231
sed 's/^/| /' conftest.$ac_ext >&5
14233
ac_lo=`expr $ac_mid + 1`
14234
if test $ac_lo -le $ac_mid; then
14238
ac_mid=`expr 2 '*' $ac_mid + 1`
14241
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14244
$as_echo "$as_me: failed program was:" >&5
14245
sed 's/^/| /' conftest.$ac_ext >&5
14247
cat >conftest.$ac_ext <<_ACEOF
14250
cat confdefs.h >>conftest.$ac_ext
14251
cat >>conftest.$ac_ext <<_ACEOF
14252
/* end confdefs.h. */
14254
#define _XOPEN_SOURCE_EXTENDED 1
14256
/* The following two lines are a workaround against an autoconf-2.52 bug. */
14258
#include <stdlib.h>
14263
static int test_array [1 - 2 * !((ENOLINK) < 0)];
14270
rm -f conftest.$ac_objext
14271
if { (ac_try="$ac_compile"
14272
case "(($ac_try" in
14273
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14274
*) ac_try_echo=$ac_try;;
14276
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14277
$as_echo "$ac_try_echo") >&5
14278
(eval "$ac_compile") 2>conftest.er1
14280
grep -v '^ *+' conftest.er1 >conftest.err
14282
cat conftest.err >&5
14283
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14284
(exit $ac_status); } && {
14285
test -z "$ac_c_werror_flag" ||
14286
test ! -s conftest.err
14287
} && test -s conftest.$ac_objext; then
14290
cat >conftest.$ac_ext <<_ACEOF
14293
cat confdefs.h >>conftest.$ac_ext
14294
cat >>conftest.$ac_ext <<_ACEOF
14295
/* end confdefs.h. */
14297
#define _XOPEN_SOURCE_EXTENDED 1
14299
/* The following two lines are a workaround against an autoconf-2.52 bug. */
14301
#include <stdlib.h>
14306
static int test_array [1 - 2 * !((ENOLINK) >= $ac_mid)];
14313
rm -f conftest.$ac_objext
14314
if { (ac_try="$ac_compile"
14315
case "(($ac_try" in
14316
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14317
*) ac_try_echo=$ac_try;;
14319
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14320
$as_echo "$ac_try_echo") >&5
14321
(eval "$ac_compile") 2>conftest.er1
14323
grep -v '^ *+' conftest.er1 >conftest.err
14325
cat conftest.err >&5
14326
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327
(exit $ac_status); } && {
14328
test -z "$ac_c_werror_flag" ||
14329
test ! -s conftest.err
14330
} && test -s conftest.$ac_objext; then
14331
ac_lo=$ac_mid; break
14333
$as_echo "$as_me: failed program was:" >&5
14334
sed 's/^/| /' conftest.$ac_ext >&5
14336
ac_hi=`expr '(' $ac_mid ')' - 1`
14337
if test $ac_mid -le $ac_hi; then
14341
ac_mid=`expr 2 '*' $ac_mid`
14344
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14347
$as_echo "$as_me: failed program was:" >&5
14348
sed 's/^/| /' conftest.$ac_ext >&5
14353
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14356
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14357
# Binary search between lo and hi bounds.
14358
while test "x$ac_lo" != "x$ac_hi"; do
14359
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14360
cat >conftest.$ac_ext <<_ACEOF
14363
cat confdefs.h >>conftest.$ac_ext
14364
cat >>conftest.$ac_ext <<_ACEOF
14365
/* end confdefs.h. */
14367
#define _XOPEN_SOURCE_EXTENDED 1
14369
/* The following two lines are a workaround against an autoconf-2.52 bug. */
14371
#include <stdlib.h>
14376
static int test_array [1 - 2 * !((ENOLINK) <= $ac_mid)];
14383
rm -f conftest.$ac_objext
14384
if { (ac_try="$ac_compile"
14385
case "(($ac_try" in
14386
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14387
*) ac_try_echo=$ac_try;;
14389
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14390
$as_echo "$ac_try_echo") >&5
14391
(eval "$ac_compile") 2>conftest.er1
14393
grep -v '^ *+' conftest.er1 >conftest.err
14395
cat conftest.err >&5
14396
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397
(exit $ac_status); } && {
14398
test -z "$ac_c_werror_flag" ||
14399
test ! -s conftest.err
14400
} && test -s conftest.$ac_objext; then
14403
$as_echo "$as_me: failed program was:" >&5
14404
sed 's/^/| /' conftest.$ac_ext >&5
14406
ac_lo=`expr '(' $ac_mid ')' + 1`
14409
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14412
?*) gl_cv_header_errno_h_ENOLINK=$ac_lo;;
14416
cat >conftest.$ac_ext <<_ACEOF
14419
cat confdefs.h >>conftest.$ac_ext
14420
cat >>conftest.$ac_ext <<_ACEOF
14421
/* end confdefs.h. */
14423
#define _XOPEN_SOURCE_EXTENDED 1
14425
/* The following two lines are a workaround against an autoconf-2.52 bug. */
14427
#include <stdlib.h>
14429
static long int longval () { return ENOLINK; }
14430
static unsigned long int ulongval () { return ENOLINK; }
14432
#include <stdlib.h>
14437
FILE *f = fopen ("conftest.val", "w");
14442
long int i = longval ();
14443
if (i != (ENOLINK))
14445
fprintf (f, "%ld", i);
14449
unsigned long int i = ulongval ();
14450
if (i != (ENOLINK))
14452
fprintf (f, "%lu", i);
14454
/* Do not output a trailing newline, as this causes \r\n confusion
14455
on some platforms. */
14456
return ferror (f) || fclose (f) != 0;
14462
rm -f conftest$ac_exeext
14463
if { (ac_try="$ac_link"
14464
case "(($ac_try" in
14465
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14466
*) ac_try_echo=$ac_try;;
14468
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14469
$as_echo "$ac_try_echo") >&5
14470
(eval "$ac_link") 2>&5
14472
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14473
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14474
{ (case "(($ac_try" in
14475
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14476
*) ac_try_echo=$ac_try;;
14478
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14479
$as_echo "$ac_try_echo") >&5
14480
(eval "$ac_try") 2>&5
14482
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483
(exit $ac_status); }; }; then
14484
gl_cv_header_errno_h_ENOLINK=`cat conftest.val`
14486
$as_echo "$as_me: program exited with status $ac_status" >&5
14487
$as_echo "$as_me: failed program was:" >&5
14488
sed 's/^/| /' conftest.$ac_ext >&5
14491
rm -rf conftest.dSYM
14492
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14499
{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_ENOLINK" >&5
14500
$as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
14501
case $gl_cv_header_errno_h_ENOLINK in
14503
ENOLINK_HIDDEN=0; ENOLINK_VALUE=
14506
ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
14514
if test -n "$ERRNO_H"; then
14515
{ $as_echo "$as_me:$LINENO: checking for EOVERFLOW value" >&5
14516
$as_echo_n "checking for EOVERFLOW value... " >&6; }
14517
if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then
14518
$as_echo_n "(cached) " >&6
14521
cat >conftest.$ac_ext <<_ACEOF
14524
cat confdefs.h >>conftest.$ac_ext
14525
cat >>conftest.$ac_ext <<_ACEOF
14526
/* end confdefs.h. */
14534
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14535
$EGREP "yes" >/dev/null 2>&1; then
14536
gl_cv_header_errno_h_EOVERFLOW=yes
14538
gl_cv_header_errno_h_EOVERFLOW=no
14542
if test $gl_cv_header_errno_h_EOVERFLOW = no; then
14543
cat >conftest.$ac_ext <<_ACEOF
14546
cat confdefs.h >>conftest.$ac_ext
14547
cat >>conftest.$ac_ext <<_ACEOF
14548
/* end confdefs.h. */
14550
#define _XOPEN_SOURCE_EXTENDED 1
14557
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14558
$EGREP "yes" >/dev/null 2>&1; then
14559
gl_cv_header_errno_h_EOVERFLOW=hidden
14563
if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
14564
if test "$cross_compiling" = yes; then
14565
# Depending upon the size, compute the lo and hi bounds.
14566
cat >conftest.$ac_ext <<_ACEOF
14569
cat confdefs.h >>conftest.$ac_ext
14570
cat >>conftest.$ac_ext <<_ACEOF
14571
/* end confdefs.h. */
14573
#define _XOPEN_SOURCE_EXTENDED 1
14575
/* The following two lines are a workaround against an autoconf-2.52 bug. */
14577
#include <stdlib.h>
14582
static int test_array [1 - 2 * !((EOVERFLOW) >= 0)];
14589
rm -f conftest.$ac_objext
14590
if { (ac_try="$ac_compile"
14591
case "(($ac_try" in
14592
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14593
*) ac_try_echo=$ac_try;;
14595
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14596
$as_echo "$ac_try_echo") >&5
14597
(eval "$ac_compile") 2>conftest.er1
14599
grep -v '^ *+' conftest.er1 >conftest.err
14601
cat conftest.err >&5
14602
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14603
(exit $ac_status); } && {
14604
test -z "$ac_c_werror_flag" ||
14605
test ! -s conftest.err
14606
} && test -s conftest.$ac_objext; then
14609
cat >conftest.$ac_ext <<_ACEOF
14612
cat confdefs.h >>conftest.$ac_ext
14613
cat >>conftest.$ac_ext <<_ACEOF
14614
/* end confdefs.h. */
14616
#define _XOPEN_SOURCE_EXTENDED 1
14618
/* The following two lines are a workaround against an autoconf-2.52 bug. */
14620
#include <stdlib.h>
14625
static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
14632
rm -f conftest.$ac_objext
14633
if { (ac_try="$ac_compile"
14634
case "(($ac_try" in
14635
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14636
*) ac_try_echo=$ac_try;;
14638
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14639
$as_echo "$ac_try_echo") >&5
14640
(eval "$ac_compile") 2>conftest.er1
14642
grep -v '^ *+' conftest.er1 >conftest.err
14644
cat conftest.err >&5
14645
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646
(exit $ac_status); } && {
14647
test -z "$ac_c_werror_flag" ||
14648
test ! -s conftest.err
14649
} && test -s conftest.$ac_objext; then
14650
ac_hi=$ac_mid; break
14652
$as_echo "$as_me: failed program was:" >&5
14653
sed 's/^/| /' conftest.$ac_ext >&5
14655
ac_lo=`expr $ac_mid + 1`
14656
if test $ac_lo -le $ac_mid; then
14660
ac_mid=`expr 2 '*' $ac_mid + 1`
14663
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14666
$as_echo "$as_me: failed program was:" >&5
14667
sed 's/^/| /' conftest.$ac_ext >&5
14669
cat >conftest.$ac_ext <<_ACEOF
14672
cat confdefs.h >>conftest.$ac_ext
14673
cat >>conftest.$ac_ext <<_ACEOF
14674
/* end confdefs.h. */
14676
#define _XOPEN_SOURCE_EXTENDED 1
14678
/* The following two lines are a workaround against an autoconf-2.52 bug. */
14680
#include <stdlib.h>
14685
static int test_array [1 - 2 * !((EOVERFLOW) < 0)];
14692
rm -f conftest.$ac_objext
14693
if { (ac_try="$ac_compile"
14694
case "(($ac_try" in
14695
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14696
*) ac_try_echo=$ac_try;;
14698
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14699
$as_echo "$ac_try_echo") >&5
14700
(eval "$ac_compile") 2>conftest.er1
14702
grep -v '^ *+' conftest.er1 >conftest.err
14704
cat conftest.err >&5
14705
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14706
(exit $ac_status); } && {
14707
test -z "$ac_c_werror_flag" ||
14708
test ! -s conftest.err
14709
} && test -s conftest.$ac_objext; then
14712
cat >conftest.$ac_ext <<_ACEOF
14715
cat confdefs.h >>conftest.$ac_ext
14716
cat >>conftest.$ac_ext <<_ACEOF
14717
/* end confdefs.h. */
14719
#define _XOPEN_SOURCE_EXTENDED 1
14721
/* The following two lines are a workaround against an autoconf-2.52 bug. */
14723
#include <stdlib.h>
14728
static int test_array [1 - 2 * !((EOVERFLOW) >= $ac_mid)];
14735
rm -f conftest.$ac_objext
14736
if { (ac_try="$ac_compile"
14737
case "(($ac_try" in
14738
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14739
*) ac_try_echo=$ac_try;;
14741
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14742
$as_echo "$ac_try_echo") >&5
14743
(eval "$ac_compile") 2>conftest.er1
14745
grep -v '^ *+' conftest.er1 >conftest.err
14747
cat conftest.err >&5
14748
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14749
(exit $ac_status); } && {
14750
test -z "$ac_c_werror_flag" ||
14751
test ! -s conftest.err
14752
} && test -s conftest.$ac_objext; then
14753
ac_lo=$ac_mid; break
14755
$as_echo "$as_me: failed program was:" >&5
14756
sed 's/^/| /' conftest.$ac_ext >&5
14758
ac_hi=`expr '(' $ac_mid ')' - 1`
14759
if test $ac_mid -le $ac_hi; then
14763
ac_mid=`expr 2 '*' $ac_mid`
14766
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14769
$as_echo "$as_me: failed program was:" >&5
14770
sed 's/^/| /' conftest.$ac_ext >&5
14775
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14778
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14779
# Binary search between lo and hi bounds.
14780
while test "x$ac_lo" != "x$ac_hi"; do
14781
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14782
cat >conftest.$ac_ext <<_ACEOF
14785
cat confdefs.h >>conftest.$ac_ext
14786
cat >>conftest.$ac_ext <<_ACEOF
14787
/* end confdefs.h. */
14789
#define _XOPEN_SOURCE_EXTENDED 1
14791
/* The following two lines are a workaround against an autoconf-2.52 bug. */
14793
#include <stdlib.h>
14798
static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
14805
rm -f conftest.$ac_objext
14806
if { (ac_try="$ac_compile"
14807
case "(($ac_try" in
14808
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14809
*) ac_try_echo=$ac_try;;
14811
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14812
$as_echo "$ac_try_echo") >&5
14813
(eval "$ac_compile") 2>conftest.er1
14815
grep -v '^ *+' conftest.er1 >conftest.err
14817
cat conftest.err >&5
14818
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14819
(exit $ac_status); } && {
14820
test -z "$ac_c_werror_flag" ||
14821
test ! -s conftest.err
14822
} && test -s conftest.$ac_objext; then
14825
$as_echo "$as_me: failed program was:" >&5
14826
sed 's/^/| /' conftest.$ac_ext >&5
14828
ac_lo=`expr '(' $ac_mid ')' + 1`
14831
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14834
?*) gl_cv_header_errno_h_EOVERFLOW=$ac_lo;;
14838
cat >conftest.$ac_ext <<_ACEOF
14841
cat confdefs.h >>conftest.$ac_ext
14842
cat >>conftest.$ac_ext <<_ACEOF
14843
/* end confdefs.h. */
14845
#define _XOPEN_SOURCE_EXTENDED 1
14847
/* The following two lines are a workaround against an autoconf-2.52 bug. */
14849
#include <stdlib.h>
14851
static long int longval () { return EOVERFLOW; }
14852
static unsigned long int ulongval () { return EOVERFLOW; }
14854
#include <stdlib.h>
14859
FILE *f = fopen ("conftest.val", "w");
14862
if ((EOVERFLOW) < 0)
14864
long int i = longval ();
14865
if (i != (EOVERFLOW))
14867
fprintf (f, "%ld", i);
14871
unsigned long int i = ulongval ();
14872
if (i != (EOVERFLOW))
14874
fprintf (f, "%lu", i);
14876
/* Do not output a trailing newline, as this causes \r\n confusion
14877
on some platforms. */
14878
return ferror (f) || fclose (f) != 0;
14884
rm -f conftest$ac_exeext
14885
if { (ac_try="$ac_link"
14886
case "(($ac_try" in
14887
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14888
*) ac_try_echo=$ac_try;;
14890
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14891
$as_echo "$ac_try_echo") >&5
14892
(eval "$ac_link") 2>&5
14894
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14896
{ (case "(($ac_try" in
14897
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14898
*) ac_try_echo=$ac_try;;
14900
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14901
$as_echo "$ac_try_echo") >&5
14902
(eval "$ac_try") 2>&5
14904
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14905
(exit $ac_status); }; }; then
14906
gl_cv_header_errno_h_EOVERFLOW=`cat conftest.val`
14908
$as_echo "$as_me: program exited with status $ac_status" >&5
14909
$as_echo "$as_me: failed program was:" >&5
14910
sed 's/^/| /' conftest.$ac_ext >&5
14913
rm -rf conftest.dSYM
14914
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14921
{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
14922
$as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
14923
case $gl_cv_header_errno_h_EOVERFLOW in
14925
EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
14928
EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
14948
{ $as_echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
14949
$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
14950
if test "${ac_cv_c_restrict+set}" = set; then
14951
$as_echo_n "(cached) " >&6
14953
ac_cv_c_restrict=no
14954
# The order here caters to the fact that C++ does not require restrict.
14955
for ac_kw in __restrict __restrict__ _Restrict restrict; do
14956
cat >conftest.$ac_ext <<_ACEOF
14959
cat confdefs.h >>conftest.$ac_ext
14960
cat >>conftest.$ac_ext <<_ACEOF
14961
/* end confdefs.h. */
14962
typedef int * int_ptr;
14963
int foo (int_ptr $ac_kw ip) {
14970
int * $ac_kw t = s;
14977
rm -f conftest.$ac_objext
14978
if { (ac_try="$ac_compile"
14979
case "(($ac_try" in
14980
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14981
*) ac_try_echo=$ac_try;;
14983
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14984
$as_echo "$ac_try_echo") >&5
14985
(eval "$ac_compile") 2>conftest.er1
14987
grep -v '^ *+' conftest.er1 >conftest.err
14989
cat conftest.err >&5
14990
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991
(exit $ac_status); } && {
14992
test -z "$ac_c_werror_flag" ||
14993
test ! -s conftest.err
14994
} && test -s conftest.$ac_objext; then
14995
ac_cv_c_restrict=$ac_kw
14997
$as_echo "$as_me: failed program was:" >&5
14998
sed 's/^/| /' conftest.$ac_ext >&5
15003
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15004
test "$ac_cv_c_restrict" != no && break
15008
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
15009
$as_echo "$ac_cv_c_restrict" >&6; }
15012
case $ac_cv_c_restrict in
15014
no) cat >>confdefs.h <<\_ACEOF
15015
#define restrict /**/
15018
*) cat >>confdefs.h <<_ACEOF
15019
#define restrict $ac_cv_c_restrict
15040
{ $as_echo "$as_me:$LINENO: checking for IPv4 sockets" >&5
15041
$as_echo_n "checking for IPv4 sockets... " >&6; }
15042
if test "${gl_cv_socket_ipv4+set}" = set; then
15043
$as_echo_n "(cached) " >&6
15045
cat >conftest.$ac_ext <<_ACEOF
15048
cat confdefs.h >>conftest.$ac_ext
15049
cat >>conftest.$ac_ext <<_ACEOF
15050
/* end confdefs.h. */
15051
#include <sys/types.h>
15052
#ifdef HAVE_SYS_SOCKET_H
15053
#include <sys/socket.h>
15055
#ifdef HAVE_NETINET_IN_H
15056
#include <netinet/in.h>
15058
#ifdef HAVE_WINSOCK2_H
15059
#include <winsock2.h>
15064
int x = AF_INET; struct in_addr y; struct sockaddr_in z;
15065
if (&x && &y && &z) return 0;
15070
rm -f conftest.$ac_objext
15071
if { (ac_try="$ac_compile"
15072
case "(($ac_try" in
15073
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15074
*) ac_try_echo=$ac_try;;
15076
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15077
$as_echo "$ac_try_echo") >&5
15078
(eval "$ac_compile") 2>conftest.er1
15080
grep -v '^ *+' conftest.er1 >conftest.err
15082
cat conftest.err >&5
15083
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084
(exit $ac_status); } && {
15085
test -z "$ac_c_werror_flag" ||
15086
test ! -s conftest.err
15087
} && test -s conftest.$ac_objext; then
15088
gl_cv_socket_ipv4=yes
15090
$as_echo "$as_me: failed program was:" >&5
15091
sed 's/^/| /' conftest.$ac_ext >&5
15093
gl_cv_socket_ipv4=no
15096
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15099
{ $as_echo "$as_me:$LINENO: result: $gl_cv_socket_ipv4" >&5
15100
$as_echo "$gl_cv_socket_ipv4" >&6; }
15101
if test $gl_cv_socket_ipv4 = yes; then
15103
cat >>confdefs.h <<\_ACEOF
15104
#define HAVE_IPV4 1
15109
{ $as_echo "$as_me:$LINENO: checking for IPv6 sockets" >&5
15110
$as_echo_n "checking for IPv6 sockets... " >&6; }
15111
if test "${gl_cv_socket_ipv6+set}" = set; then
15112
$as_echo_n "(cached) " >&6
15114
cat >conftest.$ac_ext <<_ACEOF
15117
cat confdefs.h >>conftest.$ac_ext
15118
cat >>conftest.$ac_ext <<_ACEOF
15119
/* end confdefs.h. */
15120
#include <sys/types.h>
15121
#ifdef HAVE_SYS_SOCKET_H
15122
#include <sys/socket.h>
15124
#ifdef HAVE_NETINET_IN_H
15125
#include <netinet/in.h>
15127
#ifdef HAVE_WINSOCK2_H
15128
#include <winsock2.h>
15133
int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;
15134
if (&x && &y && &z) return 0;
15139
rm -f conftest.$ac_objext
15140
if { (ac_try="$ac_compile"
15141
case "(($ac_try" in
15142
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15143
*) ac_try_echo=$ac_try;;
15145
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15146
$as_echo "$ac_try_echo") >&5
15147
(eval "$ac_compile") 2>conftest.er1
15149
grep -v '^ *+' conftest.er1 >conftest.err
15151
cat conftest.err >&5
15152
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15153
(exit $ac_status); } && {
15154
test -z "$ac_c_werror_flag" ||
15155
test ! -s conftest.err
15156
} && test -s conftest.$ac_objext; then
15157
gl_cv_socket_ipv6=yes
15159
$as_echo "$as_me: failed program was:" >&5
15160
sed 's/^/| /' conftest.$ac_ext >&5
15162
gl_cv_socket_ipv6=no
15165
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15168
{ $as_echo "$as_me:$LINENO: result: $gl_cv_socket_ipv6" >&5
15169
$as_echo "$gl_cv_socket_ipv6" >&6; }
15170
if test $gl_cv_socket_ipv6 = yes; then
15172
cat >>confdefs.h <<\_ACEOF
15173
#define HAVE_IPV6 1
15179
{ $as_echo "$as_me:$LINENO: checking whether malloc, realloc, calloc are POSIX compliant" >&5
15180
$as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
15181
if test "${gl_cv_func_malloc_posix+set}" = set; then
15182
$as_echo_n "(cached) " >&6
15185
cat >conftest.$ac_ext <<_ACEOF
15188
cat confdefs.h >>conftest.$ac_ext
15189
cat >>conftest.$ac_ext <<_ACEOF
15190
/* end confdefs.h. */
15195
#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
15203
rm -f conftest.$ac_objext
15204
if { (ac_try="$ac_compile"
15205
case "(($ac_try" in
15206
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15207
*) ac_try_echo=$ac_try;;
15209
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15210
$as_echo "$ac_try_echo") >&5
15211
(eval "$ac_compile") 2>conftest.er1
15213
grep -v '^ *+' conftest.er1 >conftest.err
15215
cat conftest.err >&5
15216
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15217
(exit $ac_status); } && {
15218
test -z "$ac_c_werror_flag" ||
15219
test ! -s conftest.err
15220
} && test -s conftest.$ac_objext; then
15221
gl_cv_func_malloc_posix=yes
15223
$as_echo "$as_me: failed program was:" >&5
15224
sed 's/^/| /' conftest.$ac_ext >&5
15226
gl_cv_func_malloc_posix=no
15229
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15232
{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_malloc_posix" >&5
15233
$as_echo "$gl_cv_func_malloc_posix" >&6; }
15236
GNULIB_MALLOC_POSIX=0;
15237
GNULIB_REALLOC_POSIX=0;
15238
GNULIB_CALLOC_POSIX=0;
15239
GNULIB_GETSUBOPT=0;
15247
HAVE_CALLOC_POSIX=1;
15249
HAVE_MALLOC_POSIX=1;
15251
HAVE_REALLOC_POSIX=1;
15263
GNULIB_FPRINTF_POSIX=0;
15265
GNULIB_PRINTF_POSIX=0;
15267
GNULIB_SPRINTF_POSIX=0;
15269
GNULIB_VFPRINTF_POSIX=0;
15271
GNULIB_VPRINTF_POSIX=0;
15272
GNULIB_VSNPRINTF=0;
15273
GNULIB_VSPRINTF_POSIX=0;
15274
GNULIB_VASPRINTF=0;
15275
GNULIB_OBSTACK_PRINTF=0;
15276
GNULIB_OBSTACK_PRINTF_POSIX=0;
15293
GNULIB_STDIO_H_SIGPIPE=0;
15294
REPLACE_STDIO_WRITE_FUNCS=0;
15296
REPLACE_VFPRINTF=0;
15299
REPLACE_SNPRINTF=0;
15300
HAVE_DECL_SNPRINTF=1;
15301
REPLACE_VSNPRINTF=0;
15302
HAVE_DECL_VSNPRINTF=1;
15304
REPLACE_VSPRINTF=0;
15306
REPLACE_VASPRINTF=0;
15307
HAVE_DECL_OBSTACK_PRINTF=1;
15308
REPLACE_OBSTACK_PRINTF=0;
15318
HAVE_DECL_GETDELIM=1;
15319
HAVE_DECL_GETLINE=1;
15324
{ $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
15325
$as_echo_n "checking whether snprintf is declared... " >&6; }
15326
if test "${ac_cv_have_decl_snprintf+set}" = set; then
15327
$as_echo_n "(cached) " >&6
15329
cat >conftest.$ac_ext <<_ACEOF
15332
cat confdefs.h >>conftest.$ac_ext
15333
cat >>conftest.$ac_ext <<_ACEOF
15334
/* end confdefs.h. */
15335
$ac_includes_default
15347
rm -f conftest.$ac_objext
15348
if { (ac_try="$ac_compile"
15349
case "(($ac_try" in
15350
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15351
*) ac_try_echo=$ac_try;;
15353
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15354
$as_echo "$ac_try_echo") >&5
15355
(eval "$ac_compile") 2>conftest.er1
15357
grep -v '^ *+' conftest.er1 >conftest.err
15359
cat conftest.err >&5
15360
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15361
(exit $ac_status); } && {
15362
test -z "$ac_c_werror_flag" ||
15363
test ! -s conftest.err
15364
} && test -s conftest.$ac_objext; then
15365
ac_cv_have_decl_snprintf=yes
15367
$as_echo "$as_me: failed program was:" >&5
15368
sed 's/^/| /' conftest.$ac_ext >&5
15370
ac_cv_have_decl_snprintf=no
15373
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15375
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
15376
$as_echo "$ac_cv_have_decl_snprintf" >&6; }
15377
if test "x$ac_cv_have_decl_snprintf" = x""yes; then
15379
cat >>confdefs.h <<_ACEOF
15380
#define HAVE_DECL_SNPRINTF 1
15385
cat >>confdefs.h <<_ACEOF
15386
#define HAVE_DECL_SNPRINTF 0
15394
{ $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
15395
$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
15396
if test "${ac_cv_header_stdbool_h+set}" = set; then
15397
$as_echo_n "(cached) " >&6
15399
cat >conftest.$ac_ext <<_ACEOF
15402
cat confdefs.h >>conftest.$ac_ext
15403
cat >>conftest.$ac_ext <<_ACEOF
15404
/* end confdefs.h. */
15406
#include <stdbool.h>
15408
"error: bool is not defined"
15411
"error: false is not defined"
15414
"error: false is not 0"
15417
"error: true is not defined"
15420
"error: true is not 1"
15422
#ifndef __bool_true_false_are_defined
15423
"error: __bool_true_false_are_defined is not defined"
15426
struct s { _Bool s: 1; _Bool t; } s;
15428
char a[true == 1 ? 1 : -1];
15429
char b[false == 0 ? 1 : -1];
15430
char c[__bool_true_false_are_defined == 1 ? 1 : -1];
15431
char d[(bool) 0.5 == true ? 1 : -1];
15433
char f[(_Bool) 0.0 == false ? 1 : -1];
15435
char h[sizeof (_Bool)];
15436
char i[sizeof s.t];
15437
enum { j = false, k = true, l = false * true, m = true * 256 };
15439
char o[sizeof n == m * sizeof n[0] ? 1 : -1];
15440
char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
15441
#if defined __xlc__ || defined __GNUC__
15442
/* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
15443
reported by James Lemley on 2005-10-05; see
15444
http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
15445
This test is not quite right, since xlc is allowed to
15446
reject this program, as the initializer for xlcbug is
15447
not one of the forms that C requires support for.
15448
However, doing the test right would require a run-time
15449
test, and that would make cross-compilation harder.
15450
Let us hope that IBM fixes the xlc bug, and also adds
15451
support for this kind of constant expression. In the
15452
meantime, this test will reject xlc, which is OK, since
15453
our stdbool.h substitute should suffice. We also test
15454
this with GCC, where it should work, to detect more
15455
quickly whether someone messes up the test in the
15457
char digs[] = "0123456789";
15458
int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
15460
/* Catch a bug in an HP-UX C compiler. See
15461
http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
15462
http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
15473
/* Refer to every declared value, to avoid compiler optimizations. */
15474
return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
15475
+ !m + !n + !o + !p + !q + !pq);
15481
rm -f conftest.$ac_objext
15482
if { (ac_try="$ac_compile"
15483
case "(($ac_try" in
15484
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15485
*) ac_try_echo=$ac_try;;
15487
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15488
$as_echo "$ac_try_echo") >&5
15489
(eval "$ac_compile") 2>conftest.er1
15491
grep -v '^ *+' conftest.er1 >conftest.err
15493
cat conftest.err >&5
15494
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15495
(exit $ac_status); } && {
15496
test -z "$ac_c_werror_flag" ||
15497
test ! -s conftest.err
15498
} && test -s conftest.$ac_objext; then
15499
ac_cv_header_stdbool_h=yes
15501
$as_echo "$as_me: failed program was:" >&5
15502
sed 's/^/| /' conftest.$ac_ext >&5
15504
ac_cv_header_stdbool_h=no
15507
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15509
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
15510
$as_echo "$ac_cv_header_stdbool_h" >&6; }
15511
{ $as_echo "$as_me:$LINENO: checking for _Bool" >&5
15512
$as_echo_n "checking for _Bool... " >&6; }
15513
if test "${ac_cv_type__Bool+set}" = set; then
15514
$as_echo_n "(cached) " >&6
15516
ac_cv_type__Bool=no
15517
cat >conftest.$ac_ext <<_ACEOF
15520
cat confdefs.h >>conftest.$ac_ext
15521
cat >>conftest.$ac_ext <<_ACEOF
15522
/* end confdefs.h. */
15523
$ac_includes_default
15527
if (sizeof (_Bool))
15533
rm -f conftest.$ac_objext
15534
if { (ac_try="$ac_compile"
15535
case "(($ac_try" in
15536
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15537
*) ac_try_echo=$ac_try;;
15539
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15540
$as_echo "$ac_try_echo") >&5
15541
(eval "$ac_compile") 2>conftest.er1
15543
grep -v '^ *+' conftest.er1 >conftest.err
15545
cat conftest.err >&5
15546
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547
(exit $ac_status); } && {
15548
test -z "$ac_c_werror_flag" ||
15549
test ! -s conftest.err
15550
} && test -s conftest.$ac_objext; then
15551
cat >conftest.$ac_ext <<_ACEOF
15554
cat confdefs.h >>conftest.$ac_ext
15555
cat >>conftest.$ac_ext <<_ACEOF
15556
/* end confdefs.h. */
15557
$ac_includes_default
15561
if (sizeof ((_Bool)))
15567
rm -f conftest.$ac_objext
15568
if { (ac_try="$ac_compile"
15569
case "(($ac_try" in
15570
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15571
*) ac_try_echo=$ac_try;;
15573
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15574
$as_echo "$ac_try_echo") >&5
15575
(eval "$ac_compile") 2>conftest.er1
15577
grep -v '^ *+' conftest.er1 >conftest.err
15579
cat conftest.err >&5
15580
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15581
(exit $ac_status); } && {
15582
test -z "$ac_c_werror_flag" ||
15583
test ! -s conftest.err
15584
} && test -s conftest.$ac_objext; then
15587
$as_echo "$as_me: failed program was:" >&5
15588
sed 's/^/| /' conftest.$ac_ext >&5
15590
ac_cv_type__Bool=yes
15593
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15595
$as_echo "$as_me: failed program was:" >&5
15596
sed 's/^/| /' conftest.$ac_ext >&5
15601
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15603
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
15604
$as_echo "$ac_cv_type__Bool" >&6; }
15605
if test "x$ac_cv_type__Bool" = x""yes; then
15607
cat >>confdefs.h <<_ACEOF
15608
#define HAVE__BOOL 1
15614
if test $ac_cv_header_stdbool_h = yes; then
15616
cat >>confdefs.h <<\_ACEOF
15617
#define HAVE_STDBOOL_H 1
15622
{ $as_echo "$as_me:$LINENO: checking for long long int" >&5
15623
$as_echo_n "checking for long long int... " >&6; }
15624
if test "${ac_cv_type_long_long_int+set}" = set; then
15625
$as_echo_n "(cached) " >&6
15627
cat >conftest.$ac_ext <<_ACEOF
15631
cat confdefs.h >>conftest.$ac_ext
15632
cat >>conftest.$ac_ext <<_ACEOF
15633
/* end confdefs.h. */
15634
/* For now, do not test the preprocessor; as of 2007 there are too many
15635
implementations with broken preprocessors. Perhaps this can
15636
be revisited in 2012. In the meantime, code should not expect
15637
#if to work with literals wider than 32 bits. */
15638
/* Test literals. */
15639
long long int ll = 9223372036854775807ll;
15640
long long int nll = -9223372036854775807LL;
15641
unsigned long long int ull = 18446744073709551615ULL;
15642
/* Test constant expressions. */
15643
typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
15645
typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
15651
/* Test availability of runtime routines for shift and division. */
15652
long long int llmax = 9223372036854775807ll;
15653
unsigned long long int ullmax = 18446744073709551615ull;
15654
return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
15655
| (llmax / ll) | (llmax % ll)
15656
| (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
15657
| (ullmax / ull) | (ullmax % ull));
15663
rm -f conftest.$ac_objext conftest$ac_exeext
15664
if { (ac_try="$ac_link"
15665
case "(($ac_try" in
15666
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15667
*) ac_try_echo=$ac_try;;
15669
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15670
$as_echo "$ac_try_echo") >&5
15671
(eval "$ac_link") 2>conftest.er1
15673
grep -v '^ *+' conftest.er1 >conftest.err
15675
cat conftest.err >&5
15676
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15677
(exit $ac_status); } && {
15678
test -z "$ac_c_werror_flag" ||
15679
test ! -s conftest.err
15680
} && test -s conftest$ac_exeext && {
15681
test "$cross_compiling" = yes ||
15682
$as_test_x conftest$ac_exeext
15684
if test "$cross_compiling" = yes; then
15685
ac_cv_type_long_long_int=yes
15687
cat >conftest.$ac_ext <<_ACEOF
15690
cat confdefs.h >>conftest.$ac_ext
15691
cat >>conftest.$ac_ext <<_ACEOF
15692
/* end confdefs.h. */
15693
#include <limits.h>
15696
(1LL << (sizeof (long long int) * CHAR_BIT - 2))
15697
# define LLONG_MAX (HALF - 1 + HALF)
15702
long long int n = 1;
15706
long long int m = n << i;
15709
if (LLONG_MAX / 2 < m)
15717
rm -f conftest$ac_exeext
15718
if { (ac_try="$ac_link"
15719
case "(($ac_try" in
15720
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15721
*) ac_try_echo=$ac_try;;
15723
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15724
$as_echo "$ac_try_echo") >&5
15725
(eval "$ac_link") 2>&5
15727
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15728
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15729
{ (case "(($ac_try" in
15730
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15731
*) ac_try_echo=$ac_try;;
15733
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15734
$as_echo "$ac_try_echo") >&5
15735
(eval "$ac_try") 2>&5
15737
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738
(exit $ac_status); }; }; then
15739
ac_cv_type_long_long_int=yes
15741
$as_echo "$as_me: program exited with status $ac_status" >&5
15742
$as_echo "$as_me: failed program was:" >&5
15743
sed 's/^/| /' conftest.$ac_ext >&5
15745
( exit $ac_status )
15746
ac_cv_type_long_long_int=no
15748
rm -rf conftest.dSYM
15749
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15754
$as_echo "$as_me: failed program was:" >&5
15755
sed 's/^/| /' conftest.$ac_ext >&5
15757
ac_cv_type_long_long_int=no
15760
rm -rf conftest.dSYM
15761
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15762
conftest$ac_exeext conftest.$ac_ext
15764
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
15765
$as_echo "$ac_cv_type_long_long_int" >&6; }
15766
if test $ac_cv_type_long_long_int = yes; then
15768
cat >>confdefs.h <<\_ACEOF
15769
#define HAVE_LONG_LONG_INT 1
15775
{ $as_echo "$as_me:$LINENO: checking for unsigned long long int" >&5
15776
$as_echo_n "checking for unsigned long long int... " >&6; }
15777
if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
15778
$as_echo_n "(cached) " >&6
15780
cat >conftest.$ac_ext <<_ACEOF
15784
cat confdefs.h >>conftest.$ac_ext
15785
cat >>conftest.$ac_ext <<_ACEOF
15786
/* end confdefs.h. */
15787
/* For now, do not test the preprocessor; as of 2007 there are too many
15788
implementations with broken preprocessors. Perhaps this can
15789
be revisited in 2012. In the meantime, code should not expect
15790
#if to work with literals wider than 32 bits. */
15791
/* Test literals. */
15792
long long int ll = 9223372036854775807ll;
15793
long long int nll = -9223372036854775807LL;
15794
unsigned long long int ull = 18446744073709551615ULL;
15795
/* Test constant expressions. */
15796
typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
15798
typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
15804
/* Test availability of runtime routines for shift and division. */
15805
long long int llmax = 9223372036854775807ll;
15806
unsigned long long int ullmax = 18446744073709551615ull;
15807
return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
15808
| (llmax / ll) | (llmax % ll)
15809
| (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
15810
| (ullmax / ull) | (ullmax % ull));
15816
rm -f conftest.$ac_objext conftest$ac_exeext
15817
if { (ac_try="$ac_link"
15818
case "(($ac_try" in
15819
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15820
*) ac_try_echo=$ac_try;;
15822
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15823
$as_echo "$ac_try_echo") >&5
15824
(eval "$ac_link") 2>conftest.er1
15826
grep -v '^ *+' conftest.er1 >conftest.err
15828
cat conftest.err >&5
15829
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15830
(exit $ac_status); } && {
15831
test -z "$ac_c_werror_flag" ||
15832
test ! -s conftest.err
15833
} && test -s conftest$ac_exeext && {
15834
test "$cross_compiling" = yes ||
15835
$as_test_x conftest$ac_exeext
15837
ac_cv_type_unsigned_long_long_int=yes
15839
$as_echo "$as_me: failed program was:" >&5
15840
sed 's/^/| /' conftest.$ac_ext >&5
15842
ac_cv_type_unsigned_long_long_int=no
15845
rm -rf conftest.dSYM
15846
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15847
conftest$ac_exeext conftest.$ac_ext
15849
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
15850
$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
15851
if test $ac_cv_type_unsigned_long_long_int = yes; then
15853
cat >>confdefs.h <<\_ACEOF
15854
#define HAVE_UNSIGNED_LONG_LONG_INT 1
15889
GNULIB_FTRUNCATE=0;
15891
GNULIB_GETDTABLESIZE=0;
15892
GNULIB_GETLOGIN_R=0;
15893
GNULIB_GETPAGESIZE=0;
15898
GNULIB_UNISTD_H_SIGPIPE=0;
15903
HAVE_GETDTABLESIZE=1;
15904
HAVE_GETPAGESIZE=1;
15907
HAVE_DECL_ENVIRON=1;
15908
HAVE_DECL_GETLOGIN_R=1;
15910
HAVE_SYS_PARAM_H=0;
15914
REPLACE_GETPAGESIZE=0;
15930
for ac_func in $gl_func_list
15932
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15933
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15934
$as_echo_n "checking for $ac_func... " >&6; }
15935
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15936
$as_echo_n "(cached) " >&6
15938
cat >conftest.$ac_ext <<_ACEOF
15941
cat confdefs.h >>conftest.$ac_ext
15942
cat >>conftest.$ac_ext <<_ACEOF
15943
/* end confdefs.h. */
15944
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15945
For example, HP-UX 11i <limits.h> declares gettimeofday. */
15946
#define $ac_func innocuous_$ac_func
15948
/* System header to define __stub macros and hopefully few prototypes,
15949
which can conflict with char $ac_func (); below.
15950
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15951
<limits.h> exists even on freestanding compilers. */
15954
# include <limits.h>
15956
# include <assert.h>
15961
/* Override any GCC internal prototype to avoid an error.
15962
Use char because int might match the return type of a GCC
15963
builtin and then its argument prototype would still apply. */
15968
/* The GNU C library defines this for functions which it implements
15969
to always fail with ENOSYS. Some functions are actually named
15970
something starting with __ and the normal name is an alias. */
15971
#if defined __stub_$ac_func || defined __stub___$ac_func
15978
return $ac_func ();
15983
rm -f conftest.$ac_objext conftest$ac_exeext
15984
if { (ac_try="$ac_link"
15985
case "(($ac_try" in
15986
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15987
*) ac_try_echo=$ac_try;;
15989
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15990
$as_echo "$ac_try_echo") >&5
15991
(eval "$ac_link") 2>conftest.er1
15993
grep -v '^ *+' conftest.er1 >conftest.err
15995
cat conftest.err >&5
15996
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15997
(exit $ac_status); } && {
15998
test -z "$ac_c_werror_flag" ||
15999
test ! -s conftest.err
16000
} && test -s conftest$ac_exeext && {
16001
test "$cross_compiling" = yes ||
16002
$as_test_x conftest$ac_exeext
16004
eval "$as_ac_var=yes"
16006
$as_echo "$as_me: failed program was:" >&5
16007
sed 's/^/| /' conftest.$ac_ext >&5
16009
eval "$as_ac_var=no"
16012
rm -rf conftest.dSYM
16013
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16014
conftest$ac_exeext conftest.$ac_ext
16016
ac_res=`eval 'as_val=${'$as_ac_var'}
16017
$as_echo "$as_val"'`
16018
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16019
$as_echo "$ac_res" >&6; }
16020
as_val=`eval 'as_val=${'$as_ac_var'}
16021
$as_echo "$as_val"'`
16022
if test "x$as_val" = x""yes; then
16023
cat >>confdefs.h <<_ACEOF
16024
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16036
{ $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
16037
$as_echo_n "checking for wchar_t... " >&6; }
16038
if test "${gt_cv_c_wchar_t+set}" = set; then
16039
$as_echo_n "(cached) " >&6
16041
cat >conftest.$ac_ext <<_ACEOF
16044
cat confdefs.h >>conftest.$ac_ext
16045
cat >>conftest.$ac_ext <<_ACEOF
16046
/* end confdefs.h. */
16047
#include <stddef.h>
16048
wchar_t foo = (wchar_t)'\0';
16057
rm -f conftest.$ac_objext
16058
if { (ac_try="$ac_compile"
16059
case "(($ac_try" in
16060
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16061
*) ac_try_echo=$ac_try;;
16063
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16064
$as_echo "$ac_try_echo") >&5
16065
(eval "$ac_compile") 2>conftest.er1
16067
grep -v '^ *+' conftest.er1 >conftest.err
16069
cat conftest.err >&5
16070
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16071
(exit $ac_status); } && {
16072
test -z "$ac_c_werror_flag" ||
16073
test ! -s conftest.err
16074
} && test -s conftest.$ac_objext; then
16075
gt_cv_c_wchar_t=yes
16077
$as_echo "$as_me: failed program was:" >&5
16078
sed 's/^/| /' conftest.$ac_ext >&5
16083
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16085
{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
16086
$as_echo "$gt_cv_c_wchar_t" >&6; }
16087
if test $gt_cv_c_wchar_t = yes; then
16089
cat >>confdefs.h <<\_ACEOF
16090
#define HAVE_WCHAR_T 1
16096
{ $as_echo "$as_me:$LINENO: checking for wint_t" >&5
16097
$as_echo_n "checking for wint_t... " >&6; }
16098
if test "${gt_cv_c_wint_t+set}" = set; then
16099
$as_echo_n "(cached) " >&6
16101
cat >conftest.$ac_ext <<_ACEOF
16104
cat confdefs.h >>conftest.$ac_ext
16105
cat >>conftest.$ac_ext <<_ACEOF
16106
/* end confdefs.h. */
16108
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
16110
BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
16111
before <wchar.h>. */
16112
#include <stddef.h>
16116
wint_t foo = (wchar_t)'\0';
16125
rm -f conftest.$ac_objext
16126
if { (ac_try="$ac_compile"
16127
case "(($ac_try" in
16128
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16129
*) ac_try_echo=$ac_try;;
16131
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16132
$as_echo "$ac_try_echo") >&5
16133
(eval "$ac_compile") 2>conftest.er1
16135
grep -v '^ *+' conftest.er1 >conftest.err
16137
cat conftest.err >&5
16138
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16139
(exit $ac_status); } && {
16140
test -z "$ac_c_werror_flag" ||
16141
test ! -s conftest.err
16142
} && test -s conftest.$ac_objext; then
16145
$as_echo "$as_me: failed program was:" >&5
16146
sed 's/^/| /' conftest.$ac_ext >&5
16151
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16153
{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
16154
$as_echo "$gt_cv_c_wint_t" >&6; }
16155
if test $gt_cv_c_wint_t = yes; then
16157
cat >>confdefs.h <<\_ACEOF
16158
#define HAVE_WINT_T 1
16163
{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
16164
$as_echo_n "checking for size_t... " >&6; }
16165
if test "${ac_cv_type_size_t+set}" = set; then
16166
$as_echo_n "(cached) " >&6
16168
ac_cv_type_size_t=no
16169
cat >conftest.$ac_ext <<_ACEOF
16172
cat confdefs.h >>conftest.$ac_ext
16173
cat >>conftest.$ac_ext <<_ACEOF
16174
/* end confdefs.h. */
16175
$ac_includes_default
16179
if (sizeof (size_t))
16185
rm -f conftest.$ac_objext
16186
if { (ac_try="$ac_compile"
16187
case "(($ac_try" in
16188
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16189
*) ac_try_echo=$ac_try;;
16191
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16192
$as_echo "$ac_try_echo") >&5
16193
(eval "$ac_compile") 2>conftest.er1
16195
grep -v '^ *+' conftest.er1 >conftest.err
16197
cat conftest.err >&5
16198
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16199
(exit $ac_status); } && {
16200
test -z "$ac_c_werror_flag" ||
16201
test ! -s conftest.err
16202
} && test -s conftest.$ac_objext; then
16203
cat >conftest.$ac_ext <<_ACEOF
16206
cat confdefs.h >>conftest.$ac_ext
16207
cat >>conftest.$ac_ext <<_ACEOF
16208
/* end confdefs.h. */
16209
$ac_includes_default
16213
if (sizeof ((size_t)))
16219
rm -f conftest.$ac_objext
16220
if { (ac_try="$ac_compile"
16221
case "(($ac_try" in
16222
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16223
*) ac_try_echo=$ac_try;;
16225
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16226
$as_echo "$ac_try_echo") >&5
16227
(eval "$ac_compile") 2>conftest.er1
16229
grep -v '^ *+' conftest.er1 >conftest.err
16231
cat conftest.err >&5
16232
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16233
(exit $ac_status); } && {
16234
test -z "$ac_c_werror_flag" ||
16235
test ! -s conftest.err
16236
} && test -s conftest.$ac_objext; then
16239
$as_echo "$as_me: failed program was:" >&5
16240
sed 's/^/| /' conftest.$ac_ext >&5
16242
ac_cv_type_size_t=yes
16245
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16247
$as_echo "$as_me: failed program was:" >&5
16248
sed 's/^/| /' conftest.$ac_ext >&5
16253
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16255
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16256
$as_echo "$ac_cv_type_size_t" >&6; }
16257
if test "x$ac_cv_type_size_t" = x""yes; then
16261
cat >>confdefs.h <<_ACEOF
16262
#define size_t unsigned int
16268
{ $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
16269
$as_echo_n "checking for inttypes.h... " >&6; }
16270
if test "${gl_cv_header_inttypes_h+set}" = set; then
16271
$as_echo_n "(cached) " >&6
16273
cat >conftest.$ac_ext <<_ACEOF
16276
cat confdefs.h >>conftest.$ac_ext
16277
cat >>conftest.$ac_ext <<_ACEOF
16278
/* end confdefs.h. */
16279
#include <sys/types.h>
16280
#include <inttypes.h>
16284
uintmax_t i = (uintmax_t) -1; return !i;
16289
rm -f conftest.$ac_objext
16290
if { (ac_try="$ac_compile"
16291
case "(($ac_try" in
16292
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16293
*) ac_try_echo=$ac_try;;
16295
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16296
$as_echo "$ac_try_echo") >&5
16297
(eval "$ac_compile") 2>conftest.er1
16299
grep -v '^ *+' conftest.er1 >conftest.err
16301
cat conftest.err >&5
16302
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16303
(exit $ac_status); } && {
16304
test -z "$ac_c_werror_flag" ||
16305
test ! -s conftest.err
16306
} && test -s conftest.$ac_objext; then
16307
gl_cv_header_inttypes_h=yes
16309
$as_echo "$as_me: failed program was:" >&5
16310
sed 's/^/| /' conftest.$ac_ext >&5
16312
gl_cv_header_inttypes_h=no
16315
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16317
{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
16318
$as_echo "$gl_cv_header_inttypes_h" >&6; }
16319
if test $gl_cv_header_inttypes_h = yes; then
16321
cat >>confdefs.h <<_ACEOF
16322
#define HAVE_INTTYPES_H_WITH_UINTMAX 1
16328
{ $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
16329
$as_echo_n "checking for stdint.h... " >&6; }
16330
if test "${gl_cv_header_stdint_h+set}" = set; then
16331
$as_echo_n "(cached) " >&6
16333
cat >conftest.$ac_ext <<_ACEOF
16336
cat confdefs.h >>conftest.$ac_ext
16337
cat >>conftest.$ac_ext <<_ACEOF
16338
/* end confdefs.h. */
16339
#include <sys/types.h>
16340
#include <stdint.h>
16344
uintmax_t i = (uintmax_t) -1; return !i;
16349
rm -f conftest.$ac_objext
16350
if { (ac_try="$ac_compile"
16351
case "(($ac_try" in
16352
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16353
*) ac_try_echo=$ac_try;;
16355
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16356
$as_echo "$ac_try_echo") >&5
16357
(eval "$ac_compile") 2>conftest.er1
16359
grep -v '^ *+' conftest.er1 >conftest.err
16361
cat conftest.err >&5
16362
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16363
(exit $ac_status); } && {
16364
test -z "$ac_c_werror_flag" ||
16365
test ! -s conftest.err
16366
} && test -s conftest.$ac_objext; then
16367
gl_cv_header_stdint_h=yes
16369
$as_echo "$as_me: failed program was:" >&5
16370
sed 's/^/| /' conftest.$ac_ext >&5
16372
gl_cv_header_stdint_h=no
16375
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16377
{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
16378
$as_echo "$gl_cv_header_stdint_h" >&6; }
16379
if test $gl_cv_header_stdint_h = yes; then
16381
cat >>confdefs.h <<_ACEOF
16382
#define HAVE_STDINT_H_WITH_UINTMAX 1
16390
{ $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
16391
$as_echo_n "checking for intmax_t... " >&6; }
16392
if test "${gt_cv_c_intmax_t+set}" = set; then
16393
$as_echo_n "(cached) " >&6
16395
cat >conftest.$ac_ext <<_ACEOF
16398
cat confdefs.h >>conftest.$ac_ext
16399
cat >>conftest.$ac_ext <<_ACEOF
16400
/* end confdefs.h. */
16402
#include <stddef.h>
16403
#include <stdlib.h>
16404
#if HAVE_STDINT_H_WITH_UINTMAX
16405
#include <stdint.h>
16407
#if HAVE_INTTYPES_H_WITH_UINTMAX
16408
#include <inttypes.h>
16414
intmax_t x = -1; return !x;
16419
rm -f conftest.$ac_objext
16420
if { (ac_try="$ac_compile"
16421
case "(($ac_try" in
16422
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16423
*) ac_try_echo=$ac_try;;
16425
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16426
$as_echo "$ac_try_echo") >&5
16427
(eval "$ac_compile") 2>conftest.er1
16429
grep -v '^ *+' conftest.er1 >conftest.err
16431
cat conftest.err >&5
16432
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433
(exit $ac_status); } && {
16434
test -z "$ac_c_werror_flag" ||
16435
test ! -s conftest.err
16436
} && test -s conftest.$ac_objext; then
16437
gt_cv_c_intmax_t=yes
16439
$as_echo "$as_me: failed program was:" >&5
16440
sed 's/^/| /' conftest.$ac_ext >&5
16442
gt_cv_c_intmax_t=no
16445
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16447
{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
16448
$as_echo "$gt_cv_c_intmax_t" >&6; }
16449
if test $gt_cv_c_intmax_t = yes; then
16451
cat >>confdefs.h <<\_ACEOF
16452
#define HAVE_INTMAX_T 1
16457
test $ac_cv_type_long_long_int = yes \
16458
&& ac_type='long long' \
16461
cat >>confdefs.h <<_ACEOF
16462
#define intmax_t $ac_type
16469
HAVE_DECL_WCWIDTH=1;
16475
GL_COND_LIBTOOL_TRUE=
16476
GL_COND_LIBTOOL_FALSE='#'
16478
GL_COND_LIBTOOL_TRUE='#'
16479
GL_COND_LIBTOOL_FALSE=
16482
gl_cond_libtool=true
16491
gl_source_base='gnulib/lib'
16497
if test $ac_cv_func_alloca_works = no; then
16501
# Define an additional variable used in the Makefile substitution.
16502
if test $ac_cv_working_alloca_h = yes; then
16503
{ $as_echo "$as_me:$LINENO: checking for alloca as a compiler built-in" >&5
16504
$as_echo_n "checking for alloca as a compiler built-in... " >&6; }
16505
if test "${gl_cv_rpl_alloca+set}" = set; then
16506
$as_echo_n "(cached) " >&6
16509
cat >conftest.$ac_ext <<_ACEOF
16512
cat confdefs.h >>conftest.$ac_ext
16513
cat >>conftest.$ac_ext <<_ACEOF
16514
/* end confdefs.h. */
16516
#if defined __GNUC__ || defined _AIX || defined _MSC_VER
16521
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16522
$EGREP "Need own alloca" >/dev/null 2>&1; then
16523
gl_cv_rpl_alloca=yes
16525
gl_cv_rpl_alloca=no
16531
{ $as_echo "$as_me:$LINENO: result: $gl_cv_rpl_alloca" >&5
16532
$as_echo "$gl_cv_rpl_alloca" >&6; }
16533
if test $gl_cv_rpl_alloca = yes; then
16535
cat >>confdefs.h <<\_ACEOF
16536
#define HAVE_ALLOCA 1
16558
if test $ac_cv_header_arpa_inet_h = yes; then
16561
ARPA_INET_H='arpa/inet.h'
16576
if test $gl_cv_have_include_next = yes; then
16577
gl_cv_next_arpa_inet_h='<'arpa/inet.h'>'
16579
{ $as_echo "$as_me:$LINENO: checking absolute name of <arpa/inet.h>" >&5
16580
$as_echo_n "checking absolute name of <arpa/inet.h>... " >&6; }
16581
if test "${gl_cv_next_arpa_inet_h+set}" = set; then
16582
$as_echo_n "(cached) " >&6
16585
if test $ac_cv_header_arpa_inet_h = yes; then
16586
cat >conftest.$ac_ext <<_ACEOF
16589
cat confdefs.h >>conftest.$ac_ext
16590
cat >>conftest.$ac_ext <<_ACEOF
16591
/* end confdefs.h. */
16592
#include <arpa/inet.h>
16595
gl_cv_next_arpa_inet_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16596
sed -n '\#/arpa/inet.h#{
16597
s#.*"\(.*/arpa/inet.h\)".*#\1#
16603
gl_cv_next_arpa_inet_h='<'arpa/inet.h'>'
16607
{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_arpa_inet_h" >&5
16608
$as_echo "$gl_cv_next_arpa_inet_h" >&6; }
16610
NEXT_ARPA_INET_H=$gl_cv_next_arpa_inet_h
16615
{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
16616
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
16617
if test -z "$MKDIR_P"; then
16618
if test "${ac_cv_path_mkdir+set}" = set; then
16619
$as_echo_n "(cached) " >&6
16621
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16622
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
16625
test -z "$as_dir" && as_dir=.
16626
for ac_prog in mkdir gmkdir; do
16627
for ac_exec_ext in '' $ac_executable_extensions; do
16628
{ test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
16629
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
16630
'mkdir (GNU coreutils) '* | \
16631
'mkdir (coreutils) '* | \
16632
'mkdir (fileutils) '4.1*)
16633
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
16643
if test "${ac_cv_path_mkdir+set}" = set; then
16644
MKDIR_P="$ac_cv_path_mkdir -p"
16646
# As a last resort, use the slow shell script. Don't cache a
16647
# value for MKDIR_P within a source directory, because that will
16648
# break other packages using the cache if that directory is
16649
# removed, or if the value is a relative name.
16650
test -d ./--version && rmdir ./--version
16651
MKDIR_P="$ac_install_sh -d"
16654
{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
16655
$as_echo "$MKDIR_P" >&6; }
16658
if test "$ac_cv_header_winsock2_h" = yes; then
16667
gl_LIBOBJS="$gl_LIBOBJS winsock.$ac_objext"
16675
cat >>confdefs.h <<\_ACEOF
16676
#define GNULIB_CONNECT 1
16702
if test $gl_cv_have_include_next = yes; then
16703
gl_cv_next_float_h='<'float.h'>'
16705
{ $as_echo "$as_me:$LINENO: checking absolute name of <float.h>" >&5
16706
$as_echo_n "checking absolute name of <float.h>... " >&6; }
16707
if test "${gl_cv_next_float_h+set}" = set; then
16708
$as_echo_n "(cached) " >&6
16711
if test $ac_cv_header_float_h = yes; then
16712
cat >conftest.$ac_ext <<_ACEOF
16715
cat confdefs.h >>conftest.$ac_ext
16716
cat >>conftest.$ac_ext <<_ACEOF
16717
/* end confdefs.h. */
16721
gl_cv_next_float_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16722
sed -n '\#/float.h#{
16723
s#.*"\(.*/float.h\)".*#\1#
16729
gl_cv_next_float_h='<'float.h'>'
16733
{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_float_h" >&5
16734
$as_echo "$gl_cv_next_float_h" >&6; }
16736
NEXT_FLOAT_H=$gl_cv_next_float_h
16745
{ $as_echo "$as_me:$LINENO: checking how to do getaddrinfo, freeaddrinfo and getnameinfo" >&5
16746
$as_echo "$as_me: checking how to do getaddrinfo, freeaddrinfo and getnameinfo" >&6;}
16756
{ $as_echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
16757
$as_echo_n "checking for library containing getaddrinfo... " >&6; }
16758
if test "${ac_cv_search_getaddrinfo+set}" = set; then
16759
$as_echo_n "(cached) " >&6
16761
ac_func_search_save_LIBS=$LIBS
16762
cat >conftest.$ac_ext <<_ACEOF
16765
cat confdefs.h >>conftest.$ac_ext
16766
cat >>conftest.$ac_ext <<_ACEOF
16767
/* end confdefs.h. */
16769
/* Override any GCC internal prototype to avoid an error.
16770
Use char because int might match the return type of a GCC
16771
builtin and then its argument prototype would still apply. */
16775
char getaddrinfo ();
16779
return getaddrinfo ();
16784
for ac_lib in '' nsl socket; do
16785
if test -z "$ac_lib"; then
16786
ac_res="none required"
16789
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16791
rm -f conftest.$ac_objext conftest$ac_exeext
16792
if { (ac_try="$ac_link"
16793
case "(($ac_try" in
16794
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16795
*) ac_try_echo=$ac_try;;
16797
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16798
$as_echo "$ac_try_echo") >&5
16799
(eval "$ac_link") 2>conftest.er1
16801
grep -v '^ *+' conftest.er1 >conftest.err
16803
cat conftest.err >&5
16804
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16805
(exit $ac_status); } && {
16806
test -z "$ac_c_werror_flag" ||
16807
test ! -s conftest.err
16808
} && test -s conftest$ac_exeext && {
16809
test "$cross_compiling" = yes ||
16810
$as_test_x conftest$ac_exeext
16812
ac_cv_search_getaddrinfo=$ac_res
16814
$as_echo "$as_me: failed program was:" >&5
16815
sed 's/^/| /' conftest.$ac_ext >&5
16820
rm -rf conftest.dSYM
16821
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16823
if test "${ac_cv_search_getaddrinfo+set}" = set; then
16827
if test "${ac_cv_search_getaddrinfo+set}" = set; then
16830
ac_cv_search_getaddrinfo=no
16832
rm conftest.$ac_ext
16833
LIBS=$ac_func_search_save_LIBS
16835
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
16836
$as_echo "$ac_cv_search_getaddrinfo" >&6; }
16837
ac_res=$ac_cv_search_getaddrinfo
16838
if test "$ac_res" != no; then
16839
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16843
{ $as_echo "$as_me:$LINENO: checking for getaddrinfo" >&5
16844
$as_echo_n "checking for getaddrinfo... " >&6; }
16845
if test "${gl_cv_func_getaddrinfo+set}" = set; then
16846
$as_echo_n "(cached) " >&6
16849
cat >conftest.$ac_ext <<_ACEOF
16852
cat confdefs.h >>conftest.$ac_ext
16853
cat >>conftest.$ac_ext <<_ACEOF
16854
/* end confdefs.h. */
16856
#include <sys/types.h>
16857
#ifdef HAVE_SYS_SOCKET_H
16858
#include <sys/socket.h>
16860
#ifdef HAVE_NETDB_H
16863
#include <stddef.h>
16868
getaddrinfo("", "", NULL, NULL);
16873
rm -f conftest.$ac_objext conftest$ac_exeext
16874
if { (ac_try="$ac_link"
16875
case "(($ac_try" in
16876
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16877
*) ac_try_echo=$ac_try;;
16879
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16880
$as_echo "$ac_try_echo") >&5
16881
(eval "$ac_link") 2>conftest.er1
16883
grep -v '^ *+' conftest.er1 >conftest.err
16885
cat conftest.err >&5
16886
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16887
(exit $ac_status); } && {
16888
test -z "$ac_c_werror_flag" ||
16889
test ! -s conftest.err
16890
} && test -s conftest$ac_exeext && {
16891
test "$cross_compiling" = yes ||
16892
$as_test_x conftest$ac_exeext
16894
gl_cv_func_getaddrinfo=yes
16896
$as_echo "$as_me: failed program was:" >&5
16897
sed 's/^/| /' conftest.$ac_ext >&5
16899
gl_cv_func_getaddrinfo=no
16902
rm -rf conftest.dSYM
16903
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16904
conftest$ac_exeext conftest.$ac_ext
16906
{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_getaddrinfo" >&5
16907
$as_echo "$gl_cv_func_getaddrinfo" >&6; }
16908
if test $gl_cv_func_getaddrinfo = no; then
16909
{ $as_echo "$as_me:$LINENO: checking for getaddrinfo in ws2tcpip.h and -lws2_32" >&5
16910
$as_echo_n "checking for getaddrinfo in ws2tcpip.h and -lws2_32... " >&6; }
16911
if test "${gl_cv_w32_getaddrinfo+set}" = set; then
16912
$as_echo_n "(cached) " >&6
16915
gl_cv_w32_getaddrinfo=no
16916
am_save_LIBS="$LIBS"
16917
LIBS="$LIBS -lws2_32"
16918
cat >conftest.$ac_ext <<_ACEOF
16921
cat confdefs.h >>conftest.$ac_ext
16922
cat >>conftest.$ac_ext <<_ACEOF
16923
/* end confdefs.h. */
16925
#ifdef HAVE_WS2TCPIP_H
16926
#include <ws2tcpip.h>
16928
#include <stddef.h>
16933
getaddrinfo(NULL, NULL, NULL, NULL);
16938
rm -f conftest.$ac_objext conftest$ac_exeext
16939
if { (ac_try="$ac_link"
16940
case "(($ac_try" in
16941
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16942
*) ac_try_echo=$ac_try;;
16944
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16945
$as_echo "$ac_try_echo") >&5
16946
(eval "$ac_link") 2>conftest.er1
16948
grep -v '^ *+' conftest.er1 >conftest.err
16950
cat conftest.err >&5
16951
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952
(exit $ac_status); } && {
16953
test -z "$ac_c_werror_flag" ||
16954
test ! -s conftest.err
16955
} && test -s conftest$ac_exeext && {
16956
test "$cross_compiling" = yes ||
16957
$as_test_x conftest$ac_exeext
16959
gl_cv_w32_getaddrinfo=yes
16961
$as_echo "$as_me: failed program was:" >&5
16962
sed 's/^/| /' conftest.$ac_ext >&5
16967
rm -rf conftest.dSYM
16968
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16969
conftest$ac_exeext conftest.$ac_ext
16970
LIBS="$am_save_LIBS"
16972
{ $as_echo "$as_me:$LINENO: result: $gl_cv_w32_getaddrinfo" >&5
16973
$as_echo "$gl_cv_w32_getaddrinfo" >&6; }
16974
if test "$gl_cv_w32_getaddrinfo" = "yes"; then
16975
LIBS="$LIBS -lws2_32"
16985
gl_LIBOBJS="$gl_LIBOBJS getaddrinfo.$ac_objext"
16990
# We can't use AC_REPLACE_FUNCS here because gai_strerror may be an
16991
# inline function declared in ws2tcpip.h, so we need to get that
16992
# header included somehow.
16993
{ $as_echo "$as_me:$LINENO: checking for gai_strerror (possibly via ws2tcpip.h)" >&5
16994
$as_echo_n "checking for gai_strerror (possibly via ws2tcpip.h)... " >&6; }
16995
if test "${gl_cv_func_gai_strerror+set}" = set; then
16996
$as_echo_n "(cached) " >&6
16999
cat >conftest.$ac_ext <<_ACEOF
17002
cat confdefs.h >>conftest.$ac_ext
17003
cat >>conftest.$ac_ext <<_ACEOF
17004
/* end confdefs.h. */
17006
#include <sys/types.h>
17007
#ifdef HAVE_SYS_SOCKET_H
17008
#include <sys/socket.h>
17010
#ifdef HAVE_NETDB_H
17013
#ifdef HAVE_WS2TCPIP_H
17014
#include <ws2tcpip.h>
17016
#include <stddef.h>
17021
gai_strerror (NULL);
17026
rm -f conftest.$ac_objext conftest$ac_exeext
17027
if { (ac_try="$ac_link"
17028
case "(($ac_try" in
17029
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17030
*) ac_try_echo=$ac_try;;
17032
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17033
$as_echo "$ac_try_echo") >&5
17034
(eval "$ac_link") 2>conftest.er1
17036
grep -v '^ *+' conftest.er1 >conftest.err
17038
cat conftest.err >&5
17039
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17040
(exit $ac_status); } && {
17041
test -z "$ac_c_werror_flag" ||
17042
test ! -s conftest.err
17043
} && test -s conftest$ac_exeext && {
17044
test "$cross_compiling" = yes ||
17045
$as_test_x conftest$ac_exeext
17047
gl_cv_func_gai_strerror=yes
17049
$as_echo "$as_me: failed program was:" >&5
17050
sed 's/^/| /' conftest.$ac_ext >&5
17052
gl_cv_func_gai_strerror=no
17055
rm -rf conftest.dSYM
17056
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17057
conftest$ac_exeext conftest.$ac_ext
17059
{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_gai_strerror" >&5
17060
$as_echo "$gl_cv_func_gai_strerror" >&6; }
17061
if test $gl_cv_func_gai_strerror = no; then
17070
gl_LIBOBJS="$gl_LIBOBJS gai_strerror.$ac_objext"
17075
{ $as_echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
17076
$as_echo_n "checking for library containing gethostbyname... " >&6; }
17077
if test "${ac_cv_search_gethostbyname+set}" = set; then
17078
$as_echo_n "(cached) " >&6
17080
ac_func_search_save_LIBS=$LIBS
17081
cat >conftest.$ac_ext <<_ACEOF
17084
cat confdefs.h >>conftest.$ac_ext
17085
cat >>conftest.$ac_ext <<_ACEOF
17086
/* end confdefs.h. */
17088
/* Override any GCC internal prototype to avoid an error.
17089
Use char because int might match the return type of a GCC
17090
builtin and then its argument prototype would still apply. */
17094
char gethostbyname ();
17098
return gethostbyname ();
17103
for ac_lib in '' inet nsl; do
17104
if test -z "$ac_lib"; then
17105
ac_res="none required"
17108
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17110
rm -f conftest.$ac_objext conftest$ac_exeext
17111
if { (ac_try="$ac_link"
17112
case "(($ac_try" in
17113
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17114
*) ac_try_echo=$ac_try;;
17116
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17117
$as_echo "$ac_try_echo") >&5
17118
(eval "$ac_link") 2>conftest.er1
17120
grep -v '^ *+' conftest.er1 >conftest.err
17122
cat conftest.err >&5
17123
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124
(exit $ac_status); } && {
17125
test -z "$ac_c_werror_flag" ||
17126
test ! -s conftest.err
17127
} && test -s conftest$ac_exeext && {
17128
test "$cross_compiling" = yes ||
17129
$as_test_x conftest$ac_exeext
17131
ac_cv_search_gethostbyname=$ac_res
17133
$as_echo "$as_me: failed program was:" >&5
17134
sed 's/^/| /' conftest.$ac_ext >&5
17139
rm -rf conftest.dSYM
17140
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17142
if test "${ac_cv_search_gethostbyname+set}" = set; then
17146
if test "${ac_cv_search_gethostbyname+set}" = set; then
17149
ac_cv_search_gethostbyname=no
17151
rm conftest.$ac_ext
17152
LIBS=$ac_func_search_save_LIBS
17154
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
17155
$as_echo "$ac_cv_search_gethostbyname" >&6; }
17156
ac_res=$ac_cv_search_gethostbyname
17157
if test "$ac_res" != no; then
17158
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17162
{ $as_echo "$as_me:$LINENO: checking for library containing getservbyname" >&5
17163
$as_echo_n "checking for library containing getservbyname... " >&6; }
17164
if test "${ac_cv_search_getservbyname+set}" = set; then
17165
$as_echo_n "(cached) " >&6
17167
ac_func_search_save_LIBS=$LIBS
17168
cat >conftest.$ac_ext <<_ACEOF
17171
cat confdefs.h >>conftest.$ac_ext
17172
cat >>conftest.$ac_ext <<_ACEOF
17173
/* end confdefs.h. */
17175
/* Override any GCC internal prototype to avoid an error.
17176
Use char because int might match the return type of a GCC
17177
builtin and then its argument prototype would still apply. */
17181
char getservbyname ();
17185
return getservbyname ();
17190
for ac_lib in '' inet nsl socket xnet; do
17191
if test -z "$ac_lib"; then
17192
ac_res="none required"
17195
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17197
rm -f conftest.$ac_objext conftest$ac_exeext
17198
if { (ac_try="$ac_link"
17199
case "(($ac_try" in
17200
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17201
*) ac_try_echo=$ac_try;;
17203
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17204
$as_echo "$ac_try_echo") >&5
17205
(eval "$ac_link") 2>conftest.er1
17207
grep -v '^ *+' conftest.er1 >conftest.err
17209
cat conftest.err >&5
17210
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17211
(exit $ac_status); } && {
17212
test -z "$ac_c_werror_flag" ||
17213
test ! -s conftest.err
17214
} && test -s conftest$ac_exeext && {
17215
test "$cross_compiling" = yes ||
17216
$as_test_x conftest$ac_exeext
17218
ac_cv_search_getservbyname=$ac_res
17220
$as_echo "$as_me: failed program was:" >&5
17221
sed 's/^/| /' conftest.$ac_ext >&5
17226
rm -rf conftest.dSYM
17227
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17229
if test "${ac_cv_search_getservbyname+set}" = set; then
17233
if test "${ac_cv_search_getservbyname+set}" = set; then
17236
ac_cv_search_getservbyname=no
17238
rm conftest.$ac_ext
17239
LIBS=$ac_func_search_save_LIBS
17241
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_getservbyname" >&5
17242
$as_echo "$ac_cv_search_getservbyname" >&6; }
17243
ac_res=$ac_cv_search_getservbyname
17244
if test "$ac_res" != no; then
17245
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17250
for ac_func in gethostbyname
17252
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17253
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17254
$as_echo_n "checking for $ac_func... " >&6; }
17255
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17256
$as_echo_n "(cached) " >&6
17258
cat >conftest.$ac_ext <<_ACEOF
17261
cat confdefs.h >>conftest.$ac_ext
17262
cat >>conftest.$ac_ext <<_ACEOF
17263
/* end confdefs.h. */
17264
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17265
For example, HP-UX 11i <limits.h> declares gettimeofday. */
17266
#define $ac_func innocuous_$ac_func
17268
/* System header to define __stub macros and hopefully few prototypes,
17269
which can conflict with char $ac_func (); below.
17270
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17271
<limits.h> exists even on freestanding compilers. */
17274
# include <limits.h>
17276
# include <assert.h>
17281
/* Override any GCC internal prototype to avoid an error.
17282
Use char because int might match the return type of a GCC
17283
builtin and then its argument prototype would still apply. */
17288
/* The GNU C library defines this for functions which it implements
17289
to always fail with ENOSYS. Some functions are actually named
17290
something starting with __ and the normal name is an alias. */
17291
#if defined __stub_$ac_func || defined __stub___$ac_func
17298
return $ac_func ();
17303
rm -f conftest.$ac_objext conftest$ac_exeext
17304
if { (ac_try="$ac_link"
17305
case "(($ac_try" in
17306
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17307
*) ac_try_echo=$ac_try;;
17309
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17310
$as_echo "$ac_try_echo") >&5
17311
(eval "$ac_link") 2>conftest.er1
17313
grep -v '^ *+' conftest.er1 >conftest.err
17315
cat conftest.err >&5
17316
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17317
(exit $ac_status); } && {
17318
test -z "$ac_c_werror_flag" ||
17319
test ! -s conftest.err
17320
} && test -s conftest$ac_exeext && {
17321
test "$cross_compiling" = yes ||
17322
$as_test_x conftest$ac_exeext
17324
eval "$as_ac_var=yes"
17326
$as_echo "$as_me: failed program was:" >&5
17327
sed 's/^/| /' conftest.$ac_ext >&5
17329
eval "$as_ac_var=no"
17332
rm -rf conftest.dSYM
17333
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17334
conftest$ac_exeext conftest.$ac_ext
17336
ac_res=`eval 'as_val=${'$as_ac_var'}
17337
$as_echo "$as_val"'`
17338
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17339
$as_echo "$ac_res" >&6; }
17340
as_val=`eval 'as_val=${'$as_ac_var'}
17341
$as_echo "$as_val"'`
17342
if test "x$as_val" = x""yes; then
17343
cat >>confdefs.h <<_ACEOF
17344
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17349
{ $as_echo "$as_me:$LINENO: checking for gethostbyname in winsock2.h and -lws2_32" >&5
17350
$as_echo_n "checking for gethostbyname in winsock2.h and -lws2_32... " >&6; }
17351
if test "${gl_cv_w32_gethostbyname+set}" = set; then
17352
$as_echo_n "(cached) " >&6
17355
gl_cv_w32_gethostbyname=no
17356
am_save_LIBS="$LIBS"
17357
LIBS="$LIBS -lws2_32"
17358
cat >conftest.$ac_ext <<_ACEOF
17361
cat confdefs.h >>conftest.$ac_ext
17362
cat >>conftest.$ac_ext <<_ACEOF
17363
/* end confdefs.h. */
17365
#ifdef HAVE_WINSOCK2_H
17366
#include <winsock2.h>
17368
#include <stddef.h>
17373
gethostbyname(NULL);
17378
rm -f conftest.$ac_objext conftest$ac_exeext
17379
if { (ac_try="$ac_link"
17380
case "(($ac_try" in
17381
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17382
*) ac_try_echo=$ac_try;;
17384
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17385
$as_echo "$ac_try_echo") >&5
17386
(eval "$ac_link") 2>conftest.er1
17388
grep -v '^ *+' conftest.er1 >conftest.err
17390
cat conftest.err >&5
17391
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392
(exit $ac_status); } && {
17393
test -z "$ac_c_werror_flag" ||
17394
test ! -s conftest.err
17395
} && test -s conftest$ac_exeext && {
17396
test "$cross_compiling" = yes ||
17397
$as_test_x conftest$ac_exeext
17399
gl_cv_w32_gethostbyname=yes
17401
$as_echo "$as_me: failed program was:" >&5
17402
sed 's/^/| /' conftest.$ac_ext >&5
17407
rm -rf conftest.dSYM
17408
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17409
conftest$ac_exeext conftest.$ac_ext
17410
LIBS="$am_save_LIBS"
17412
{ $as_echo "$as_me:$LINENO: result: $gl_cv_w32_gethostbyname" >&5
17413
$as_echo "$gl_cv_w32_gethostbyname" >&6; }
17414
if test "$gl_cv_w32_gethostbyname" = "yes"; then
17415
LIBS="$LIBS -lws2_32"
17436
{ $as_echo "$as_me:$LINENO: checking whether getaddrinfo is declared" >&5
17437
$as_echo_n "checking whether getaddrinfo is declared... " >&6; }
17438
if test "${ac_cv_have_decl_getaddrinfo+set}" = set; then
17439
$as_echo_n "(cached) " >&6
17441
cat >conftest.$ac_ext <<_ACEOF
17444
cat confdefs.h >>conftest.$ac_ext
17445
cat >>conftest.$ac_ext <<_ACEOF
17446
/* end confdefs.h. */
17448
/* sys/types.h is not needed according to POSIX, but the
17449
sys/socket.h in i386-unknown-freebsd4.10 and
17450
powerpc-apple-darwin5.5 required it. */
17451
#include <sys/types.h>
17452
#ifdef HAVE_SYS_SOCKET_H
17453
#include <sys/socket.h>
17455
#ifdef HAVE_NETDB_H
17458
#ifdef HAVE_WS2TCPIP_H
17459
#include <ws2tcpip.h>
17466
#ifndef getaddrinfo
17467
(void) getaddrinfo;
17474
rm -f conftest.$ac_objext
17475
if { (ac_try="$ac_compile"
17476
case "(($ac_try" in
17477
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17478
*) ac_try_echo=$ac_try;;
17480
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17481
$as_echo "$ac_try_echo") >&5
17482
(eval "$ac_compile") 2>conftest.er1
17484
grep -v '^ *+' conftest.er1 >conftest.err
17486
cat conftest.err >&5
17487
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488
(exit $ac_status); } && {
17489
test -z "$ac_c_werror_flag" ||
17490
test ! -s conftest.err
17491
} && test -s conftest.$ac_objext; then
17492
ac_cv_have_decl_getaddrinfo=yes
17494
$as_echo "$as_me: failed program was:" >&5
17495
sed 's/^/| /' conftest.$ac_ext >&5
17497
ac_cv_have_decl_getaddrinfo=no
17500
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17502
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getaddrinfo" >&5
17503
$as_echo "$ac_cv_have_decl_getaddrinfo" >&6; }
17504
if test "x$ac_cv_have_decl_getaddrinfo" = x""yes; then
17506
cat >>confdefs.h <<_ACEOF
17507
#define HAVE_DECL_GETADDRINFO 1
17512
cat >>confdefs.h <<_ACEOF
17513
#define HAVE_DECL_GETADDRINFO 0
17518
{ $as_echo "$as_me:$LINENO: checking whether freeaddrinfo is declared" >&5
17519
$as_echo_n "checking whether freeaddrinfo is declared... " >&6; }
17520
if test "${ac_cv_have_decl_freeaddrinfo+set}" = set; then
17521
$as_echo_n "(cached) " >&6
17523
cat >conftest.$ac_ext <<_ACEOF
17526
cat confdefs.h >>conftest.$ac_ext
17527
cat >>conftest.$ac_ext <<_ACEOF
17528
/* end confdefs.h. */
17530
/* sys/types.h is not needed according to POSIX, but the
17531
sys/socket.h in i386-unknown-freebsd4.10 and
17532
powerpc-apple-darwin5.5 required it. */
17533
#include <sys/types.h>
17534
#ifdef HAVE_SYS_SOCKET_H
17535
#include <sys/socket.h>
17537
#ifdef HAVE_NETDB_H
17540
#ifdef HAVE_WS2TCPIP_H
17541
#include <ws2tcpip.h>
17548
#ifndef freeaddrinfo
17549
(void) freeaddrinfo;
17556
rm -f conftest.$ac_objext
17557
if { (ac_try="$ac_compile"
17558
case "(($ac_try" in
17559
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17560
*) ac_try_echo=$ac_try;;
17562
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17563
$as_echo "$ac_try_echo") >&5
17564
(eval "$ac_compile") 2>conftest.er1
17566
grep -v '^ *+' conftest.er1 >conftest.err
17568
cat conftest.err >&5
17569
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570
(exit $ac_status); } && {
17571
test -z "$ac_c_werror_flag" ||
17572
test ! -s conftest.err
17573
} && test -s conftest.$ac_objext; then
17574
ac_cv_have_decl_freeaddrinfo=yes
17576
$as_echo "$as_me: failed program was:" >&5
17577
sed 's/^/| /' conftest.$ac_ext >&5
17579
ac_cv_have_decl_freeaddrinfo=no
17582
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17584
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_freeaddrinfo" >&5
17585
$as_echo "$ac_cv_have_decl_freeaddrinfo" >&6; }
17586
if test "x$ac_cv_have_decl_freeaddrinfo" = x""yes; then
17588
cat >>confdefs.h <<_ACEOF
17589
#define HAVE_DECL_FREEADDRINFO 1
17594
cat >>confdefs.h <<_ACEOF
17595
#define HAVE_DECL_FREEADDRINFO 0
17600
{ $as_echo "$as_me:$LINENO: checking whether gai_strerror is declared" >&5
17601
$as_echo_n "checking whether gai_strerror is declared... " >&6; }
17602
if test "${ac_cv_have_decl_gai_strerror+set}" = set; then
17603
$as_echo_n "(cached) " >&6
17605
cat >conftest.$ac_ext <<_ACEOF
17608
cat confdefs.h >>conftest.$ac_ext
17609
cat >>conftest.$ac_ext <<_ACEOF
17610
/* end confdefs.h. */
17612
/* sys/types.h is not needed according to POSIX, but the
17613
sys/socket.h in i386-unknown-freebsd4.10 and
17614
powerpc-apple-darwin5.5 required it. */
17615
#include <sys/types.h>
17616
#ifdef HAVE_SYS_SOCKET_H
17617
#include <sys/socket.h>
17619
#ifdef HAVE_NETDB_H
17622
#ifdef HAVE_WS2TCPIP_H
17623
#include <ws2tcpip.h>
17630
#ifndef gai_strerror
17631
(void) gai_strerror;
17638
rm -f conftest.$ac_objext
17639
if { (ac_try="$ac_compile"
17640
case "(($ac_try" in
17641
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17642
*) ac_try_echo=$ac_try;;
17644
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17645
$as_echo "$ac_try_echo") >&5
17646
(eval "$ac_compile") 2>conftest.er1
17648
grep -v '^ *+' conftest.er1 >conftest.err
17650
cat conftest.err >&5
17651
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652
(exit $ac_status); } && {
17653
test -z "$ac_c_werror_flag" ||
17654
test ! -s conftest.err
17655
} && test -s conftest.$ac_objext; then
17656
ac_cv_have_decl_gai_strerror=yes
17658
$as_echo "$as_me: failed program was:" >&5
17659
sed 's/^/| /' conftest.$ac_ext >&5
17661
ac_cv_have_decl_gai_strerror=no
17664
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17666
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_gai_strerror" >&5
17667
$as_echo "$ac_cv_have_decl_gai_strerror" >&6; }
17668
if test "x$ac_cv_have_decl_gai_strerror" = x""yes; then
17670
cat >>confdefs.h <<_ACEOF
17671
#define HAVE_DECL_GAI_STRERROR 1
17676
cat >>confdefs.h <<_ACEOF
17677
#define HAVE_DECL_GAI_STRERROR 0
17682
{ $as_echo "$as_me:$LINENO: checking whether getnameinfo is declared" >&5
17683
$as_echo_n "checking whether getnameinfo is declared... " >&6; }
17684
if test "${ac_cv_have_decl_getnameinfo+set}" = set; then
17685
$as_echo_n "(cached) " >&6
17687
cat >conftest.$ac_ext <<_ACEOF
17690
cat confdefs.h >>conftest.$ac_ext
17691
cat >>conftest.$ac_ext <<_ACEOF
17692
/* end confdefs.h. */
17694
/* sys/types.h is not needed according to POSIX, but the
17695
sys/socket.h in i386-unknown-freebsd4.10 and
17696
powerpc-apple-darwin5.5 required it. */
17697
#include <sys/types.h>
17698
#ifdef HAVE_SYS_SOCKET_H
17699
#include <sys/socket.h>
17701
#ifdef HAVE_NETDB_H
17704
#ifdef HAVE_WS2TCPIP_H
17705
#include <ws2tcpip.h>
17712
#ifndef getnameinfo
17713
(void) getnameinfo;
17720
rm -f conftest.$ac_objext
17721
if { (ac_try="$ac_compile"
17722
case "(($ac_try" in
17723
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17724
*) ac_try_echo=$ac_try;;
17726
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17727
$as_echo "$ac_try_echo") >&5
17728
(eval "$ac_compile") 2>conftest.er1
17730
grep -v '^ *+' conftest.er1 >conftest.err
17732
cat conftest.err >&5
17733
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17734
(exit $ac_status); } && {
17735
test -z "$ac_c_werror_flag" ||
17736
test ! -s conftest.err
17737
} && test -s conftest.$ac_objext; then
17738
ac_cv_have_decl_getnameinfo=yes
17740
$as_echo "$as_me: failed program was:" >&5
17741
sed 's/^/| /' conftest.$ac_ext >&5
17743
ac_cv_have_decl_getnameinfo=no
17746
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17748
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getnameinfo" >&5
17749
$as_echo "$ac_cv_have_decl_getnameinfo" >&6; }
17750
if test "x$ac_cv_have_decl_getnameinfo" = x""yes; then
17752
cat >>confdefs.h <<_ACEOF
17753
#define HAVE_DECL_GETNAMEINFO 1
17758
cat >>confdefs.h <<_ACEOF
17759
#define HAVE_DECL_GETNAMEINFO 0
17766
{ $as_echo "$as_me:$LINENO: checking for struct addrinfo" >&5
17767
$as_echo_n "checking for struct addrinfo... " >&6; }
17768
if test "${ac_cv_type_struct_addrinfo+set}" = set; then
17769
$as_echo_n "(cached) " >&6
17771
ac_cv_type_struct_addrinfo=no
17772
cat >conftest.$ac_ext <<_ACEOF
17775
cat confdefs.h >>conftest.$ac_ext
17776
cat >>conftest.$ac_ext <<_ACEOF
17777
/* end confdefs.h. */
17779
#include <sys/types.h>
17780
#ifdef HAVE_SYS_SOCKET_H
17781
#include <sys/socket.h>
17783
#ifdef HAVE_NETDB_H
17786
#ifdef HAVE_WS2TCPIP_H
17787
#include <ws2tcpip.h>
17794
if (sizeof (struct addrinfo))
17800
rm -f conftest.$ac_objext
17801
if { (ac_try="$ac_compile"
17802
case "(($ac_try" in
17803
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17804
*) ac_try_echo=$ac_try;;
17806
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17807
$as_echo "$ac_try_echo") >&5
17808
(eval "$ac_compile") 2>conftest.er1
17810
grep -v '^ *+' conftest.er1 >conftest.err
17812
cat conftest.err >&5
17813
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17814
(exit $ac_status); } && {
17815
test -z "$ac_c_werror_flag" ||
17816
test ! -s conftest.err
17817
} && test -s conftest.$ac_objext; then
17818
cat >conftest.$ac_ext <<_ACEOF
17821
cat confdefs.h >>conftest.$ac_ext
17822
cat >>conftest.$ac_ext <<_ACEOF
17823
/* end confdefs.h. */
17825
#include <sys/types.h>
17826
#ifdef HAVE_SYS_SOCKET_H
17827
#include <sys/socket.h>
17829
#ifdef HAVE_NETDB_H
17832
#ifdef HAVE_WS2TCPIP_H
17833
#include <ws2tcpip.h>
17840
if (sizeof ((struct addrinfo)))
17846
rm -f conftest.$ac_objext
17847
if { (ac_try="$ac_compile"
17848
case "(($ac_try" in
17849
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17850
*) ac_try_echo=$ac_try;;
17852
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17853
$as_echo "$ac_try_echo") >&5
17854
(eval "$ac_compile") 2>conftest.er1
17856
grep -v '^ *+' conftest.er1 >conftest.err
17858
cat conftest.err >&5
17859
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17860
(exit $ac_status); } && {
17861
test -z "$ac_c_werror_flag" ||
17862
test ! -s conftest.err
17863
} && test -s conftest.$ac_objext; then
17866
$as_echo "$as_me: failed program was:" >&5
17867
sed 's/^/| /' conftest.$ac_ext >&5
17869
ac_cv_type_struct_addrinfo=yes
17872
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17874
$as_echo "$as_me: failed program was:" >&5
17875
sed 's/^/| /' conftest.$ac_ext >&5
17880
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17882
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
17883
$as_echo "$ac_cv_type_struct_addrinfo" >&6; }
17884
if test "x$ac_cv_type_struct_addrinfo" = x""yes; then
17886
cat >>confdefs.h <<_ACEOF
17887
#define HAVE_STRUCT_ADDRINFO 1
17902
ARPA_INET_H='arpa/inet.h'
17914
for ac_func in inet_ntop
17916
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17917
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17918
$as_echo_n "checking for $ac_func... " >&6; }
17919
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17920
$as_echo_n "(cached) " >&6
17922
cat >conftest.$ac_ext <<_ACEOF
17925
cat confdefs.h >>conftest.$ac_ext
17926
cat >>conftest.$ac_ext <<_ACEOF
17927
/* end confdefs.h. */
17928
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17929
For example, HP-UX 11i <limits.h> declares gettimeofday. */
17930
#define $ac_func innocuous_$ac_func
17932
/* System header to define __stub macros and hopefully few prototypes,
17933
which can conflict with char $ac_func (); below.
17934
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17935
<limits.h> exists even on freestanding compilers. */
17938
# include <limits.h>
17940
# include <assert.h>
17945
/* Override any GCC internal prototype to avoid an error.
17946
Use char because int might match the return type of a GCC
17947
builtin and then its argument prototype would still apply. */
17952
/* The GNU C library defines this for functions which it implements
17953
to always fail with ENOSYS. Some functions are actually named
17954
something starting with __ and the normal name is an alias. */
17955
#if defined __stub_$ac_func || defined __stub___$ac_func
17962
return $ac_func ();
17967
rm -f conftest.$ac_objext conftest$ac_exeext
17968
if { (ac_try="$ac_link"
17969
case "(($ac_try" in
17970
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17971
*) ac_try_echo=$ac_try;;
17973
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17974
$as_echo "$ac_try_echo") >&5
17975
(eval "$ac_link") 2>conftest.er1
17977
grep -v '^ *+' conftest.er1 >conftest.err
17979
cat conftest.err >&5
17980
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17981
(exit $ac_status); } && {
17982
test -z "$ac_c_werror_flag" ||
17983
test ! -s conftest.err
17984
} && test -s conftest$ac_exeext && {
17985
test "$cross_compiling" = yes ||
17986
$as_test_x conftest$ac_exeext
17988
eval "$as_ac_var=yes"
17990
$as_echo "$as_me: failed program was:" >&5
17991
sed 's/^/| /' conftest.$ac_ext >&5
17993
eval "$as_ac_var=no"
17996
rm -rf conftest.dSYM
17997
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17998
conftest$ac_exeext conftest.$ac_ext
18000
ac_res=`eval 'as_val=${'$as_ac_var'}
18001
$as_echo "$as_val"'`
18002
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18003
$as_echo "$ac_res" >&6; }
18004
as_val=`eval 'as_val=${'$as_ac_var'}
18005
$as_echo "$as_val"'`
18006
if test "x$as_val" = x""yes; then
18007
cat >>confdefs.h <<_ACEOF
18008
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18013
gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
18020
{ $as_echo "$as_me:$LINENO: checking whether inet_ntop is declared" >&5
18021
$as_echo_n "checking whether inet_ntop is declared... " >&6; }
18022
if test "${ac_cv_have_decl_inet_ntop+set}" = set; then
18023
$as_echo_n "(cached) " >&6
18025
cat >conftest.$ac_ext <<_ACEOF
18028
cat confdefs.h >>conftest.$ac_ext
18029
cat >>conftest.$ac_ext <<_ACEOF
18030
/* end confdefs.h. */
18031
#include <arpa/inet.h>
18044
rm -f conftest.$ac_objext
18045
if { (ac_try="$ac_compile"
18046
case "(($ac_try" in
18047
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18048
*) ac_try_echo=$ac_try;;
18050
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18051
$as_echo "$ac_try_echo") >&5
18052
(eval "$ac_compile") 2>conftest.er1
18054
grep -v '^ *+' conftest.er1 >conftest.err
18056
cat conftest.err >&5
18057
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18058
(exit $ac_status); } && {
18059
test -z "$ac_c_werror_flag" ||
18060
test ! -s conftest.err
18061
} && test -s conftest.$ac_objext; then
18062
ac_cv_have_decl_inet_ntop=yes
18064
$as_echo "$as_me: failed program was:" >&5
18065
sed 's/^/| /' conftest.$ac_ext >&5
18067
ac_cv_have_decl_inet_ntop=no
18070
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18072
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_inet_ntop" >&5
18073
$as_echo "$ac_cv_have_decl_inet_ntop" >&6; }
18074
if test "x$ac_cv_have_decl_inet_ntop" = x""yes; then
18076
cat >>confdefs.h <<_ACEOF
18077
#define HAVE_DECL_INET_NTOP 1
18082
cat >>confdefs.h <<_ACEOF
18083
#define HAVE_DECL_INET_NTOP 0
18090
if test $ac_cv_have_decl_inet_ntop = no; then
18091
HAVE_DECL_INET_NTOP=0
18102
for ac_header in stdlib.h
18104
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18105
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18106
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18107
$as_echo_n "checking for $ac_header... " >&6; }
18108
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18109
$as_echo_n "(cached) " >&6
18111
ac_res=`eval 'as_val=${'$as_ac_Header'}
18112
$as_echo "$as_val"'`
18113
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18114
$as_echo "$ac_res" >&6; }
18116
# Is the header compilable?
18117
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
18118
$as_echo_n "checking $ac_header usability... " >&6; }
18119
cat >conftest.$ac_ext <<_ACEOF
18122
cat confdefs.h >>conftest.$ac_ext
18123
cat >>conftest.$ac_ext <<_ACEOF
18124
/* end confdefs.h. */
18125
$ac_includes_default
18126
#include <$ac_header>
18128
rm -f conftest.$ac_objext
18129
if { (ac_try="$ac_compile"
18130
case "(($ac_try" in
18131
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18132
*) ac_try_echo=$ac_try;;
18134
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18135
$as_echo "$ac_try_echo") >&5
18136
(eval "$ac_compile") 2>conftest.er1
18138
grep -v '^ *+' conftest.er1 >conftest.err
18140
cat conftest.err >&5
18141
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18142
(exit $ac_status); } && {
18143
test -z "$ac_c_werror_flag" ||
18144
test ! -s conftest.err
18145
} && test -s conftest.$ac_objext; then
18146
ac_header_compiler=yes
18148
$as_echo "$as_me: failed program was:" >&5
18149
sed 's/^/| /' conftest.$ac_ext >&5
18151
ac_header_compiler=no
18154
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18155
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18156
$as_echo "$ac_header_compiler" >&6; }
18158
# Is the header present?
18159
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
18160
$as_echo_n "checking $ac_header presence... " >&6; }
18161
cat >conftest.$ac_ext <<_ACEOF
18164
cat confdefs.h >>conftest.$ac_ext
18165
cat >>conftest.$ac_ext <<_ACEOF
18166
/* end confdefs.h. */
18167
#include <$ac_header>
18169
if { (ac_try="$ac_cpp conftest.$ac_ext"
18170
case "(($ac_try" in
18171
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18172
*) ac_try_echo=$ac_try;;
18174
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18175
$as_echo "$ac_try_echo") >&5
18176
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18178
grep -v '^ *+' conftest.er1 >conftest.err
18180
cat conftest.err >&5
18181
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18182
(exit $ac_status); } >/dev/null && {
18183
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18184
test ! -s conftest.err
18186
ac_header_preproc=yes
18188
$as_echo "$as_me: failed program was:" >&5
18189
sed 's/^/| /' conftest.$ac_ext >&5
18191
ac_header_preproc=no
18194
rm -f conftest.err conftest.$ac_ext
18195
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18196
$as_echo "$ac_header_preproc" >&6; }
18198
# So? What about this header?
18199
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18201
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18202
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18203
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18204
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18205
ac_header_preproc=yes
18208
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18209
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18210
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18211
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18212
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18213
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18214
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18215
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18216
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18217
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18218
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18219
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18221
## ----------------------------------------------------------------------- ##
18222
## Report this to https://bugzilla.gnome.org/enter_bug.cgi?product=gtk-vnc ##
18223
## ----------------------------------------------------------------------- ##
18225
) | sed "s/^/$as_me: WARNING: /" >&2
18228
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18229
$as_echo_n "checking for $ac_header... " >&6; }
18230
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18231
$as_echo_n "(cached) " >&6
18233
eval "$as_ac_Header=\$ac_header_preproc"
18235
ac_res=`eval 'as_val=${'$as_ac_Header'}
18236
$as_echo "$as_val"'`
18237
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18238
$as_echo "$ac_res" >&6; }
18241
as_val=`eval 'as_val=${'$as_ac_Header'}
18242
$as_echo "$as_val"'`
18243
if test "x$as_val" = x""yes; then
18244
cat >>confdefs.h <<_ACEOF
18245
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18252
{ $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
18253
$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
18254
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
18255
$as_echo_n "(cached) " >&6
18257
if test "$cross_compiling" = yes; then
18258
ac_cv_func_malloc_0_nonnull=no
18260
cat >conftest.$ac_ext <<_ACEOF
18263
cat confdefs.h >>conftest.$ac_ext
18264
cat >>conftest.$ac_ext <<_ACEOF
18265
/* end confdefs.h. */
18266
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
18267
# include <stdlib.h>
18275
return ! malloc (0);
18280
rm -f conftest$ac_exeext
18281
if { (ac_try="$ac_link"
18282
case "(($ac_try" in
18283
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18284
*) ac_try_echo=$ac_try;;
18286
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18287
$as_echo "$ac_try_echo") >&5
18288
(eval "$ac_link") 2>&5
18290
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18291
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18292
{ (case "(($ac_try" in
18293
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18294
*) ac_try_echo=$ac_try;;
18296
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18297
$as_echo "$ac_try_echo") >&5
18298
(eval "$ac_try") 2>&5
18300
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18301
(exit $ac_status); }; }; then
18302
ac_cv_func_malloc_0_nonnull=yes
18304
$as_echo "$as_me: program exited with status $ac_status" >&5
18305
$as_echo "$as_me: failed program was:" >&5
18306
sed 's/^/| /' conftest.$ac_ext >&5
18308
( exit $ac_status )
18309
ac_cv_func_malloc_0_nonnull=no
18311
rm -rf conftest.dSYM
18312
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18317
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
18318
$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
18319
if test $ac_cv_func_malloc_0_nonnull = yes; then
18321
cat >>confdefs.h <<\_ACEOF
18322
#define HAVE_MALLOC 1
18326
cat >>confdefs.h <<\_ACEOF
18327
#define HAVE_MALLOC 0
18338
gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
18341
cat >>confdefs.h <<\_ACEOF
18342
#define malloc rpl_malloc
18350
cat >>confdefs.h <<\_ACEOF
18351
#define GNULIB_MALLOC_GNU 1
18356
if test $gl_cv_func_malloc_posix = yes; then
18357
HAVE_MALLOC_POSIX=1
18359
cat >>confdefs.h <<\_ACEOF
18360
#define HAVE_MALLOC_POSIX 1
18372
gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
18374
HAVE_MALLOC_POSIX=0
18380
GNULIB_MALLOC_POSIX=1
18383
{ $as_echo "$as_me:$LINENO: checking whether <netinet/in.h> is self-contained" >&5
18384
$as_echo_n "checking whether <netinet/in.h> is self-contained... " >&6; }
18385
if test "${gl_cv_header_netinet_in_h_selfcontained+set}" = set; then
18386
$as_echo_n "(cached) " >&6
18389
cat >conftest.$ac_ext <<_ACEOF
18392
cat confdefs.h >>conftest.$ac_ext
18393
cat >>conftest.$ac_ext <<_ACEOF
18394
/* end confdefs.h. */
18395
#include <netinet/in.h>
18404
rm -f conftest.$ac_objext
18405
if { (ac_try="$ac_compile"
18406
case "(($ac_try" in
18407
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18408
*) ac_try_echo=$ac_try;;
18410
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18411
$as_echo "$ac_try_echo") >&5
18412
(eval "$ac_compile") 2>conftest.er1
18414
grep -v '^ *+' conftest.er1 >conftest.err
18416
cat conftest.err >&5
18417
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18418
(exit $ac_status); } && {
18419
test -z "$ac_c_werror_flag" ||
18420
test ! -s conftest.err
18421
} && test -s conftest.$ac_objext; then
18422
gl_cv_header_netinet_in_h_selfcontained=yes
18424
$as_echo "$as_me: failed program was:" >&5
18425
sed 's/^/| /' conftest.$ac_ext >&5
18427
gl_cv_header_netinet_in_h_selfcontained=no
18430
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18433
{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_netinet_in_h_selfcontained" >&5
18434
$as_echo "$gl_cv_header_netinet_in_h_selfcontained" >&6; }
18435
if test $gl_cv_header_netinet_in_h_selfcontained = yes; then
18438
NETINET_IN_H='netinet/in.h'
18440
for ac_header in netinet/in.h
18442
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18443
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18444
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18445
$as_echo_n "checking for $ac_header... " >&6; }
18446
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18447
$as_echo_n "(cached) " >&6
18449
ac_res=`eval 'as_val=${'$as_ac_Header'}
18450
$as_echo "$as_val"'`
18451
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18452
$as_echo "$ac_res" >&6; }
18454
# Is the header compilable?
18455
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
18456
$as_echo_n "checking $ac_header usability... " >&6; }
18457
cat >conftest.$ac_ext <<_ACEOF
18460
cat confdefs.h >>conftest.$ac_ext
18461
cat >>conftest.$ac_ext <<_ACEOF
18462
/* end confdefs.h. */
18463
$ac_includes_default
18464
#include <$ac_header>
18466
rm -f conftest.$ac_objext
18467
if { (ac_try="$ac_compile"
18468
case "(($ac_try" in
18469
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18470
*) ac_try_echo=$ac_try;;
18472
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18473
$as_echo "$ac_try_echo") >&5
18474
(eval "$ac_compile") 2>conftest.er1
18476
grep -v '^ *+' conftest.er1 >conftest.err
18478
cat conftest.err >&5
18479
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18480
(exit $ac_status); } && {
18481
test -z "$ac_c_werror_flag" ||
18482
test ! -s conftest.err
18483
} && test -s conftest.$ac_objext; then
18484
ac_header_compiler=yes
18486
$as_echo "$as_me: failed program was:" >&5
18487
sed 's/^/| /' conftest.$ac_ext >&5
18489
ac_header_compiler=no
18492
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18493
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18494
$as_echo "$ac_header_compiler" >&6; }
18496
# Is the header present?
18497
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
18498
$as_echo_n "checking $ac_header presence... " >&6; }
18499
cat >conftest.$ac_ext <<_ACEOF
18502
cat confdefs.h >>conftest.$ac_ext
18503
cat >>conftest.$ac_ext <<_ACEOF
18504
/* end confdefs.h. */
18505
#include <$ac_header>
18507
if { (ac_try="$ac_cpp conftest.$ac_ext"
18508
case "(($ac_try" in
18509
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18510
*) ac_try_echo=$ac_try;;
18512
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18513
$as_echo "$ac_try_echo") >&5
18514
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18516
grep -v '^ *+' conftest.er1 >conftest.err
18518
cat conftest.err >&5
18519
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18520
(exit $ac_status); } >/dev/null && {
18521
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18522
test ! -s conftest.err
18524
ac_header_preproc=yes
18526
$as_echo "$as_me: failed program was:" >&5
18527
sed 's/^/| /' conftest.$ac_ext >&5
18529
ac_header_preproc=no
18532
rm -f conftest.err conftest.$ac_ext
18533
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18534
$as_echo "$ac_header_preproc" >&6; }
18536
# So? What about this header?
18537
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18539
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18540
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18541
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18542
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18543
ac_header_preproc=yes
18546
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18547
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18548
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18549
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18550
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18551
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18552
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18553
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18554
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18555
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18556
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18557
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18559
## ----------------------------------------------------------------------- ##
18560
## Report this to https://bugzilla.gnome.org/enter_bug.cgi?product=gtk-vnc ##
18561
## ----------------------------------------------------------------------- ##
18563
) | sed "s/^/$as_me: WARNING: /" >&2
18566
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18567
$as_echo_n "checking for $ac_header... " >&6; }
18568
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18569
$as_echo_n "(cached) " >&6
18571
eval "$as_ac_Header=\$ac_header_preproc"
18573
ac_res=`eval 'as_val=${'$as_ac_Header'}
18574
$as_echo "$as_val"'`
18575
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18576
$as_echo "$ac_res" >&6; }
18579
as_val=`eval 'as_val=${'$as_ac_Header'}
18580
$as_echo "$as_val"'`
18581
if test "x$as_val" = x""yes; then
18582
cat >>confdefs.h <<_ACEOF
18583
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18601
if test $gl_cv_have_include_next = yes; then
18602
gl_cv_next_netinet_in_h='<'netinet/in.h'>'
18604
{ $as_echo "$as_me:$LINENO: checking absolute name of <netinet/in.h>" >&5
18605
$as_echo_n "checking absolute name of <netinet/in.h>... " >&6; }
18606
if test "${gl_cv_next_netinet_in_h+set}" = set; then
18607
$as_echo_n "(cached) " >&6
18610
if test $ac_cv_header_netinet_in_h = yes; then
18611
cat >conftest.$ac_ext <<_ACEOF
18614
cat confdefs.h >>conftest.$ac_ext
18615
cat >>conftest.$ac_ext <<_ACEOF
18616
/* end confdefs.h. */
18617
#include <netinet/in.h>
18620
gl_cv_next_netinet_in_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18621
sed -n '\#/netinet/in.h#{
18622
s#.*"\(.*/netinet/in.h\)".*#\1#
18628
gl_cv_next_netinet_in_h='<'netinet/in.h'>'
18632
{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_netinet_in_h" >&5
18633
$as_echo "$gl_cv_next_netinet_in_h" >&6; }
18635
NEXT_NETINET_IN_H=$gl_cv_next_netinet_in_h
18639
if test $ac_cv_header_netinet_in_h = yes; then
18640
HAVE_NETINET_IN_H=1
18642
HAVE_NETINET_IN_H=0
18648
{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
18649
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
18650
if test -z "$MKDIR_P"; then
18651
if test "${ac_cv_path_mkdir+set}" = set; then
18652
$as_echo_n "(cached) " >&6
18654
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18655
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
18658
test -z "$as_dir" && as_dir=.
18659
for ac_prog in mkdir gmkdir; do
18660
for ac_exec_ext in '' $ac_executable_extensions; do
18661
{ test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
18662
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
18663
'mkdir (GNU coreutils) '* | \
18664
'mkdir (coreutils) '* | \
18665
'mkdir (fileutils) '4.1*)
18666
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
18676
if test "${ac_cv_path_mkdir+set}" = set; then
18677
MKDIR_P="$ac_cv_path_mkdir -p"
18679
# As a last resort, use the slow shell script. Don't cache a
18680
# value for MKDIR_P within a source directory, because that will
18681
# break other packages using the cache if that directory is
18682
# removed, or if the value is a relative name.
18683
test -d ./--version && rmdir ./--version
18684
MKDIR_P="$ac_install_sh -d"
18687
{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
18688
$as_echo "$MKDIR_P" >&6; }
18691
if test "$ac_cv_header_winsock2_h" = yes; then
18700
gl_LIBOBJS="$gl_LIBOBJS winsock.$ac_objext"
18708
cat >>confdefs.h <<\_ACEOF
18709
#define GNULIB_RECV 1
18715
if test "$ac_cv_header_winsock2_h" = yes; then
18724
gl_LIBOBJS="$gl_LIBOBJS winsock.$ac_objext"
18732
cat >>confdefs.h <<\_ACEOF
18733
#define GNULIB_SEND 1
18740
for ac_header in stdint.h
18742
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18743
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18744
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18745
$as_echo_n "checking for $ac_header... " >&6; }
18746
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18747
$as_echo_n "(cached) " >&6
18749
ac_res=`eval 'as_val=${'$as_ac_Header'}
18750
$as_echo "$as_val"'`
18751
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18752
$as_echo "$ac_res" >&6; }
18754
# Is the header compilable?
18755
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
18756
$as_echo_n "checking $ac_header usability... " >&6; }
18757
cat >conftest.$ac_ext <<_ACEOF
18760
cat confdefs.h >>conftest.$ac_ext
18761
cat >>conftest.$ac_ext <<_ACEOF
18762
/* end confdefs.h. */
18763
$ac_includes_default
18764
#include <$ac_header>
18766
rm -f conftest.$ac_objext
18767
if { (ac_try="$ac_compile"
18768
case "(($ac_try" in
18769
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18770
*) ac_try_echo=$ac_try;;
18772
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18773
$as_echo "$ac_try_echo") >&5
18774
(eval "$ac_compile") 2>conftest.er1
18776
grep -v '^ *+' conftest.er1 >conftest.err
18778
cat conftest.err >&5
18779
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18780
(exit $ac_status); } && {
18781
test -z "$ac_c_werror_flag" ||
18782
test ! -s conftest.err
18783
} && test -s conftest.$ac_objext; then
18784
ac_header_compiler=yes
18786
$as_echo "$as_me: failed program was:" >&5
18787
sed 's/^/| /' conftest.$ac_ext >&5
18789
ac_header_compiler=no
18792
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18793
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18794
$as_echo "$ac_header_compiler" >&6; }
18796
# Is the header present?
18797
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
18798
$as_echo_n "checking $ac_header presence... " >&6; }
18799
cat >conftest.$ac_ext <<_ACEOF
18802
cat confdefs.h >>conftest.$ac_ext
18803
cat >>conftest.$ac_ext <<_ACEOF
18804
/* end confdefs.h. */
18805
#include <$ac_header>
18807
if { (ac_try="$ac_cpp conftest.$ac_ext"
18808
case "(($ac_try" in
18809
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18810
*) ac_try_echo=$ac_try;;
18812
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18813
$as_echo "$ac_try_echo") >&5
18814
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18816
grep -v '^ *+' conftest.er1 >conftest.err
18818
cat conftest.err >&5
18819
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18820
(exit $ac_status); } >/dev/null && {
18821
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18822
test ! -s conftest.err
18824
ac_header_preproc=yes
18826
$as_echo "$as_me: failed program was:" >&5
18827
sed 's/^/| /' conftest.$ac_ext >&5
18829
ac_header_preproc=no
18832
rm -f conftest.err conftest.$ac_ext
18833
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18834
$as_echo "$ac_header_preproc" >&6; }
18836
# So? What about this header?
18837
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18839
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18840
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18841
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18842
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18843
ac_header_preproc=yes
18846
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18847
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18848
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18849
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18850
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18851
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18852
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18853
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18854
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18855
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18856
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18857
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18859
## ----------------------------------------------------------------------- ##
18860
## Report this to https://bugzilla.gnome.org/enter_bug.cgi?product=gtk-vnc ##
18861
## ----------------------------------------------------------------------- ##
18863
) | sed "s/^/$as_me: WARNING: /" >&2
18866
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18867
$as_echo_n "checking for $ac_header... " >&6; }
18868
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18869
$as_echo_n "(cached) " >&6
18871
eval "$as_ac_Header=\$ac_header_preproc"
18873
ac_res=`eval 'as_val=${'$as_ac_Header'}
18874
$as_echo "$as_val"'`
18875
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18876
$as_echo "$ac_res" >&6; }
18879
as_val=`eval 'as_val=${'$as_ac_Header'}
18880
$as_echo "$as_val"'`
18881
if test "x$as_val" = x""yes; then
18882
cat >>confdefs.h <<_ACEOF
18883
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18890
{ $as_echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
18891
$as_echo_n "checking for SIZE_MAX... " >&6; }
18892
if test "${gl_cv_size_max+set}" = set; then
18893
$as_echo_n "(cached) " >&6
18897
cat >conftest.$ac_ext <<_ACEOF
18900
cat confdefs.h >>conftest.$ac_ext
18901
cat >>conftest.$ac_ext <<_ACEOF
18902
/* end confdefs.h. */
18904
#include <limits.h>
18906
#include <stdint.h>
18913
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18914
$EGREP "Found it" >/dev/null 2>&1; then
18919
if test -z "$gl_cv_size_max"; then
18920
if test "$cross_compiling" = yes; then
18921
# Depending upon the size, compute the lo and hi bounds.
18922
cat >conftest.$ac_ext <<_ACEOF
18925
cat confdefs.h >>conftest.$ac_ext
18926
cat >>conftest.$ac_ext <<_ACEOF
18927
/* end confdefs.h. */
18928
#include <stddef.h>
18929
#include <limits.h>
18933
static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
18940
rm -f conftest.$ac_objext
18941
if { (ac_try="$ac_compile"
18942
case "(($ac_try" in
18943
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18944
*) ac_try_echo=$ac_try;;
18946
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18947
$as_echo "$ac_try_echo") >&5
18948
(eval "$ac_compile") 2>conftest.er1
18950
grep -v '^ *+' conftest.er1 >conftest.err
18952
cat conftest.err >&5
18953
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954
(exit $ac_status); } && {
18955
test -z "$ac_c_werror_flag" ||
18956
test ! -s conftest.err
18957
} && test -s conftest.$ac_objext; then
18960
cat >conftest.$ac_ext <<_ACEOF
18963
cat confdefs.h >>conftest.$ac_ext
18964
cat >>conftest.$ac_ext <<_ACEOF
18965
/* end confdefs.h. */
18966
#include <stddef.h>
18967
#include <limits.h>
18971
static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
18978
rm -f conftest.$ac_objext
18979
if { (ac_try="$ac_compile"
18980
case "(($ac_try" in
18981
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18982
*) ac_try_echo=$ac_try;;
18984
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18985
$as_echo "$ac_try_echo") >&5
18986
(eval "$ac_compile") 2>conftest.er1
18988
grep -v '^ *+' conftest.er1 >conftest.err
18990
cat conftest.err >&5
18991
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18992
(exit $ac_status); } && {
18993
test -z "$ac_c_werror_flag" ||
18994
test ! -s conftest.err
18995
} && test -s conftest.$ac_objext; then
18996
ac_hi=$ac_mid; break
18998
$as_echo "$as_me: failed program was:" >&5
18999
sed 's/^/| /' conftest.$ac_ext >&5
19001
ac_lo=`expr $ac_mid + 1`
19002
if test $ac_lo -le $ac_mid; then
19006
ac_mid=`expr 2 '*' $ac_mid + 1`
19009
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19012
$as_echo "$as_me: failed program was:" >&5
19013
sed 's/^/| /' conftest.$ac_ext >&5
19015
cat >conftest.$ac_ext <<_ACEOF
19018
cat confdefs.h >>conftest.$ac_ext
19019
cat >>conftest.$ac_ext <<_ACEOF
19020
/* end confdefs.h. */
19021
#include <stddef.h>
19022
#include <limits.h>
19026
static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
19033
rm -f conftest.$ac_objext
19034
if { (ac_try="$ac_compile"
19035
case "(($ac_try" in
19036
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19037
*) ac_try_echo=$ac_try;;
19039
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19040
$as_echo "$ac_try_echo") >&5
19041
(eval "$ac_compile") 2>conftest.er1
19043
grep -v '^ *+' conftest.er1 >conftest.err
19045
cat conftest.err >&5
19046
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19047
(exit $ac_status); } && {
19048
test -z "$ac_c_werror_flag" ||
19049
test ! -s conftest.err
19050
} && test -s conftest.$ac_objext; then
19053
cat >conftest.$ac_ext <<_ACEOF
19056
cat confdefs.h >>conftest.$ac_ext
19057
cat >>conftest.$ac_ext <<_ACEOF
19058
/* end confdefs.h. */
19059
#include <stddef.h>
19060
#include <limits.h>
19064
static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
19071
rm -f conftest.$ac_objext
19072
if { (ac_try="$ac_compile"
19073
case "(($ac_try" in
19074
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19075
*) ac_try_echo=$ac_try;;
19077
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19078
$as_echo "$ac_try_echo") >&5
19079
(eval "$ac_compile") 2>conftest.er1
19081
grep -v '^ *+' conftest.er1 >conftest.err
19083
cat conftest.err >&5
19084
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19085
(exit $ac_status); } && {
19086
test -z "$ac_c_werror_flag" ||
19087
test ! -s conftest.err
19088
} && test -s conftest.$ac_objext; then
19089
ac_lo=$ac_mid; break
19091
$as_echo "$as_me: failed program was:" >&5
19092
sed 's/^/| /' conftest.$ac_ext >&5
19094
ac_hi=`expr '(' $ac_mid ')' - 1`
19095
if test $ac_mid -le $ac_hi; then
19099
ac_mid=`expr 2 '*' $ac_mid`
19102
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19105
$as_echo "$as_me: failed program was:" >&5
19106
sed 's/^/| /' conftest.$ac_ext >&5
19111
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19114
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19115
# Binary search between lo and hi bounds.
19116
while test "x$ac_lo" != "x$ac_hi"; do
19117
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19118
cat >conftest.$ac_ext <<_ACEOF
19121
cat confdefs.h >>conftest.$ac_ext
19122
cat >>conftest.$ac_ext <<_ACEOF
19123
/* end confdefs.h. */
19124
#include <stddef.h>
19125
#include <limits.h>
19129
static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
19136
rm -f conftest.$ac_objext
19137
if { (ac_try="$ac_compile"
19138
case "(($ac_try" in
19139
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19140
*) ac_try_echo=$ac_try;;
19142
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19143
$as_echo "$ac_try_echo") >&5
19144
(eval "$ac_compile") 2>conftest.er1
19146
grep -v '^ *+' conftest.er1 >conftest.err
19148
cat conftest.err >&5
19149
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19150
(exit $ac_status); } && {
19151
test -z "$ac_c_werror_flag" ||
19152
test ! -s conftest.err
19153
} && test -s conftest.$ac_objext; then
19156
$as_echo "$as_me: failed program was:" >&5
19157
sed 's/^/| /' conftest.$ac_ext >&5
19159
ac_lo=`expr '(' $ac_mid ')' + 1`
19162
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19165
?*) size_t_bits_minus_1=$ac_lo;;
19166
'') size_t_bits_minus_1= ;;
19169
cat >conftest.$ac_ext <<_ACEOF
19172
cat confdefs.h >>conftest.$ac_ext
19173
cat >>conftest.$ac_ext <<_ACEOF
19174
/* end confdefs.h. */
19175
#include <stddef.h>
19176
#include <limits.h>
19177
static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
19178
static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
19180
#include <stdlib.h>
19185
FILE *f = fopen ("conftest.val", "w");
19188
if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
19190
long int i = longval ();
19191
if (i != (sizeof (size_t) * CHAR_BIT - 1))
19193
fprintf (f, "%ld", i);
19197
unsigned long int i = ulongval ();
19198
if (i != (sizeof (size_t) * CHAR_BIT - 1))
19200
fprintf (f, "%lu", i);
19202
/* Do not output a trailing newline, as this causes \r\n confusion
19203
on some platforms. */
19204
return ferror (f) || fclose (f) != 0;
19210
rm -f conftest$ac_exeext
19211
if { (ac_try="$ac_link"
19212
case "(($ac_try" in
19213
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19214
*) ac_try_echo=$ac_try;;
19216
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19217
$as_echo "$ac_try_echo") >&5
19218
(eval "$ac_link") 2>&5
19220
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19221
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19222
{ (case "(($ac_try" in
19223
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19224
*) ac_try_echo=$ac_try;;
19226
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19227
$as_echo "$ac_try_echo") >&5
19228
(eval "$ac_try") 2>&5
19230
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19231
(exit $ac_status); }; }; then
19232
size_t_bits_minus_1=`cat conftest.val`
19234
$as_echo "$as_me: program exited with status $ac_status" >&5
19235
$as_echo "$as_me: failed program was:" >&5
19236
sed 's/^/| /' conftest.$ac_ext >&5
19238
( exit $ac_status )
19239
size_t_bits_minus_1=
19241
rm -rf conftest.dSYM
19242
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19245
if test "$cross_compiling" = yes; then
19246
# Depending upon the size, compute the lo and hi bounds.
19247
cat >conftest.$ac_ext <<_ACEOF
19250
cat confdefs.h >>conftest.$ac_ext
19251
cat >>conftest.$ac_ext <<_ACEOF
19252
/* end confdefs.h. */
19253
#include <stddef.h>
19257
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
19264
rm -f conftest.$ac_objext
19265
if { (ac_try="$ac_compile"
19266
case "(($ac_try" in
19267
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19268
*) ac_try_echo=$ac_try;;
19270
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19271
$as_echo "$ac_try_echo") >&5
19272
(eval "$ac_compile") 2>conftest.er1
19274
grep -v '^ *+' conftest.er1 >conftest.err
19276
cat conftest.err >&5
19277
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278
(exit $ac_status); } && {
19279
test -z "$ac_c_werror_flag" ||
19280
test ! -s conftest.err
19281
} && test -s conftest.$ac_objext; then
19284
cat >conftest.$ac_ext <<_ACEOF
19287
cat confdefs.h >>conftest.$ac_ext
19288
cat >>conftest.$ac_ext <<_ACEOF
19289
/* end confdefs.h. */
19290
#include <stddef.h>
19294
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
19301
rm -f conftest.$ac_objext
19302
if { (ac_try="$ac_compile"
19303
case "(($ac_try" in
19304
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19305
*) ac_try_echo=$ac_try;;
19307
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19308
$as_echo "$ac_try_echo") >&5
19309
(eval "$ac_compile") 2>conftest.er1
19311
grep -v '^ *+' conftest.er1 >conftest.err
19313
cat conftest.err >&5
19314
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19315
(exit $ac_status); } && {
19316
test -z "$ac_c_werror_flag" ||
19317
test ! -s conftest.err
19318
} && test -s conftest.$ac_objext; then
19319
ac_hi=$ac_mid; break
19321
$as_echo "$as_me: failed program was:" >&5
19322
sed 's/^/| /' conftest.$ac_ext >&5
19324
ac_lo=`expr $ac_mid + 1`
19325
if test $ac_lo -le $ac_mid; then
19329
ac_mid=`expr 2 '*' $ac_mid + 1`
19332
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19335
$as_echo "$as_me: failed program was:" >&5
19336
sed 's/^/| /' conftest.$ac_ext >&5
19338
cat >conftest.$ac_ext <<_ACEOF
19341
cat confdefs.h >>conftest.$ac_ext
19342
cat >>conftest.$ac_ext <<_ACEOF
19343
/* end confdefs.h. */
19344
#include <stddef.h>
19348
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
19355
rm -f conftest.$ac_objext
19356
if { (ac_try="$ac_compile"
19357
case "(($ac_try" in
19358
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19359
*) ac_try_echo=$ac_try;;
19361
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19362
$as_echo "$ac_try_echo") >&5
19363
(eval "$ac_compile") 2>conftest.er1
19365
grep -v '^ *+' conftest.er1 >conftest.err
19367
cat conftest.err >&5
19368
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19369
(exit $ac_status); } && {
19370
test -z "$ac_c_werror_flag" ||
19371
test ! -s conftest.err
19372
} && test -s conftest.$ac_objext; then
19375
cat >conftest.$ac_ext <<_ACEOF
19378
cat confdefs.h >>conftest.$ac_ext
19379
cat >>conftest.$ac_ext <<_ACEOF
19380
/* end confdefs.h. */
19381
#include <stddef.h>
19385
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
19392
rm -f conftest.$ac_objext
19393
if { (ac_try="$ac_compile"
19394
case "(($ac_try" in
19395
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19396
*) ac_try_echo=$ac_try;;
19398
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19399
$as_echo "$ac_try_echo") >&5
19400
(eval "$ac_compile") 2>conftest.er1
19402
grep -v '^ *+' conftest.er1 >conftest.err
19404
cat conftest.err >&5
19405
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19406
(exit $ac_status); } && {
19407
test -z "$ac_c_werror_flag" ||
19408
test ! -s conftest.err
19409
} && test -s conftest.$ac_objext; then
19410
ac_lo=$ac_mid; break
19412
$as_echo "$as_me: failed program was:" >&5
19413
sed 's/^/| /' conftest.$ac_ext >&5
19415
ac_hi=`expr '(' $ac_mid ')' - 1`
19416
if test $ac_mid -le $ac_hi; then
19420
ac_mid=`expr 2 '*' $ac_mid`
19423
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19426
$as_echo "$as_me: failed program was:" >&5
19427
sed 's/^/| /' conftest.$ac_ext >&5
19432
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19435
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19436
# Binary search between lo and hi bounds.
19437
while test "x$ac_lo" != "x$ac_hi"; do
19438
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19439
cat >conftest.$ac_ext <<_ACEOF
19442
cat confdefs.h >>conftest.$ac_ext
19443
cat >>conftest.$ac_ext <<_ACEOF
19444
/* end confdefs.h. */
19445
#include <stddef.h>
19449
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
19456
rm -f conftest.$ac_objext
19457
if { (ac_try="$ac_compile"
19458
case "(($ac_try" in
19459
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19460
*) ac_try_echo=$ac_try;;
19462
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19463
$as_echo "$ac_try_echo") >&5
19464
(eval "$ac_compile") 2>conftest.er1
19466
grep -v '^ *+' conftest.er1 >conftest.err
19468
cat conftest.err >&5
19469
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19470
(exit $ac_status); } && {
19471
test -z "$ac_c_werror_flag" ||
19472
test ! -s conftest.err
19473
} && test -s conftest.$ac_objext; then
19476
$as_echo "$as_me: failed program was:" >&5
19477
sed 's/^/| /' conftest.$ac_ext >&5
19479
ac_lo=`expr '(' $ac_mid ')' + 1`
19482
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19485
?*) fits_in_uint=$ac_lo;;
19486
'') fits_in_uint= ;;
19489
cat >conftest.$ac_ext <<_ACEOF
19492
cat confdefs.h >>conftest.$ac_ext
19493
cat >>conftest.$ac_ext <<_ACEOF
19494
/* end confdefs.h. */
19495
#include <stddef.h>
19496
static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
19497
static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
19499
#include <stdlib.h>
19504
FILE *f = fopen ("conftest.val", "w");
19507
if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
19509
long int i = longval ();
19510
if (i != (sizeof (size_t) <= sizeof (unsigned int)))
19512
fprintf (f, "%ld", i);
19516
unsigned long int i = ulongval ();
19517
if (i != (sizeof (size_t) <= sizeof (unsigned int)))
19519
fprintf (f, "%lu", i);
19521
/* Do not output a trailing newline, as this causes \r\n confusion
19522
on some platforms. */
19523
return ferror (f) || fclose (f) != 0;
19529
rm -f conftest$ac_exeext
19530
if { (ac_try="$ac_link"
19531
case "(($ac_try" in
19532
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19533
*) ac_try_echo=$ac_try;;
19535
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19536
$as_echo "$ac_try_echo") >&5
19537
(eval "$ac_link") 2>&5
19539
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19540
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19541
{ (case "(($ac_try" in
19542
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19543
*) ac_try_echo=$ac_try;;
19545
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19546
$as_echo "$ac_try_echo") >&5
19547
(eval "$ac_try") 2>&5
19549
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19550
(exit $ac_status); }; }; then
19551
fits_in_uint=`cat conftest.val`
19553
$as_echo "$as_me: program exited with status $ac_status" >&5
19554
$as_echo "$as_me: failed program was:" >&5
19555
sed 's/^/| /' conftest.$ac_ext >&5
19557
( exit $ac_status )
19560
rm -rf conftest.dSYM
19561
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19564
if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
19565
if test $fits_in_uint = 1; then
19566
cat >conftest.$ac_ext <<_ACEOF
19569
cat confdefs.h >>conftest.$ac_ext
19570
cat >>conftest.$ac_ext <<_ACEOF
19571
/* end confdefs.h. */
19572
#include <stddef.h>
19574
extern unsigned long foo;
19584
rm -f conftest.$ac_objext
19585
if { (ac_try="$ac_compile"
19586
case "(($ac_try" in
19587
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19588
*) ac_try_echo=$ac_try;;
19590
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19591
$as_echo "$ac_try_echo") >&5
19592
(eval "$ac_compile") 2>conftest.er1
19594
grep -v '^ *+' conftest.er1 >conftest.err
19596
cat conftest.err >&5
19597
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19598
(exit $ac_status); } && {
19599
test -z "$ac_c_werror_flag" ||
19600
test ! -s conftest.err
19601
} && test -s conftest.$ac_objext; then
19604
$as_echo "$as_me: failed program was:" >&5
19605
sed 's/^/| /' conftest.$ac_ext >&5
19610
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19612
if test $fits_in_uint = 1; then
19613
gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
19615
gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
19618
gl_cv_size_max='((size_t)~(size_t)0)'
19624
{ $as_echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5
19625
$as_echo "$gl_cv_size_max" >&6; }
19626
if test "$gl_cv_size_max" != yes; then
19628
cat >>confdefs.h <<_ACEOF
19629
#define SIZE_MAX $gl_cv_size_max
19636
gl_cv_func_snprintf_usable=no
19638
for ac_func in snprintf
19640
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19641
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19642
$as_echo_n "checking for $ac_func... " >&6; }
19643
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19644
$as_echo_n "(cached) " >&6
19646
cat >conftest.$ac_ext <<_ACEOF
19649
cat confdefs.h >>conftest.$ac_ext
19650
cat >>conftest.$ac_ext <<_ACEOF
19651
/* end confdefs.h. */
19652
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19653
For example, HP-UX 11i <limits.h> declares gettimeofday. */
19654
#define $ac_func innocuous_$ac_func
19656
/* System header to define __stub macros and hopefully few prototypes,
19657
which can conflict with char $ac_func (); below.
19658
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19659
<limits.h> exists even on freestanding compilers. */
19662
# include <limits.h>
19664
# include <assert.h>
19669
/* Override any GCC internal prototype to avoid an error.
19670
Use char because int might match the return type of a GCC
19671
builtin and then its argument prototype would still apply. */
19676
/* The GNU C library defines this for functions which it implements
19677
to always fail with ENOSYS. Some functions are actually named
19678
something starting with __ and the normal name is an alias. */
19679
#if defined __stub_$ac_func || defined __stub___$ac_func
19686
return $ac_func ();
19691
rm -f conftest.$ac_objext conftest$ac_exeext
19692
if { (ac_try="$ac_link"
19693
case "(($ac_try" in
19694
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19695
*) ac_try_echo=$ac_try;;
19697
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19698
$as_echo "$ac_try_echo") >&5
19699
(eval "$ac_link") 2>conftest.er1
19701
grep -v '^ *+' conftest.er1 >conftest.err
19703
cat conftest.err >&5
19704
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19705
(exit $ac_status); } && {
19706
test -z "$ac_c_werror_flag" ||
19707
test ! -s conftest.err
19708
} && test -s conftest$ac_exeext && {
19709
test "$cross_compiling" = yes ||
19710
$as_test_x conftest$ac_exeext
19712
eval "$as_ac_var=yes"
19714
$as_echo "$as_me: failed program was:" >&5
19715
sed 's/^/| /' conftest.$ac_ext >&5
19717
eval "$as_ac_var=no"
19720
rm -rf conftest.dSYM
19721
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19722
conftest$ac_exeext conftest.$ac_ext
19724
ac_res=`eval 'as_val=${'$as_ac_var'}
19725
$as_echo "$as_val"'`
19726
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19727
$as_echo "$ac_res" >&6; }
19728
as_val=`eval 'as_val=${'$as_ac_var'}
19729
$as_echo "$as_val"'`
19730
if test "x$as_val" = x""yes; then
19731
cat >>confdefs.h <<_ACEOF
19732
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19738
if test $ac_cv_func_snprintf = yes; then
19741
{ $as_echo "$as_me:$LINENO: checking whether snprintf respects a size of 1" >&5
19742
$as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
19743
if test "${gl_cv_func_snprintf_size1+set}" = set; then
19744
$as_echo_n "(cached) " >&6
19747
if test "$cross_compiling" = yes; then
19748
gl_cv_func_snprintf_size1="guessing yes"
19750
cat >conftest.$ac_ext <<_ACEOF
19753
cat confdefs.h >>conftest.$ac_ext
19754
cat >>conftest.$ac_ext <<_ACEOF
19755
/* end confdefs.h. */
19760
static char buf[8] = "DEADBEEF";
19761
snprintf (buf, 1, "%d", 12345);
19762
return buf[1] != 'E';
19765
rm -f conftest$ac_exeext
19766
if { (ac_try="$ac_link"
19767
case "(($ac_try" in
19768
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19769
*) ac_try_echo=$ac_try;;
19771
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19772
$as_echo "$ac_try_echo") >&5
19773
(eval "$ac_link") 2>&5
19775
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19776
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19777
{ (case "(($ac_try" in
19778
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19779
*) ac_try_echo=$ac_try;;
19781
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19782
$as_echo "$ac_try_echo") >&5
19783
(eval "$ac_try") 2>&5
19785
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19786
(exit $ac_status); }; }; then
19787
gl_cv_func_snprintf_size1=yes
19789
$as_echo "$as_me: program exited with status $ac_status" >&5
19790
$as_echo "$as_me: failed program was:" >&5
19791
sed 's/^/| /' conftest.$ac_ext >&5
19793
( exit $ac_status )
19794
gl_cv_func_snprintf_size1=no
19796
rm -rf conftest.dSYM
19797
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19803
{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_snprintf_size1" >&5
19804
$as_echo "$gl_cv_func_snprintf_size1" >&6; }
19806
case "$gl_cv_func_snprintf_size1" in
19808
gl_cv_func_snprintf_usable=yes
19812
if test $gl_cv_func_snprintf_usable = no; then
19823
gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
19825
if test $ac_cv_func_snprintf = yes; then
19838
if test $ac_cv_have_decl_snprintf = no; then
19839
HAVE_DECL_SNPRINTF=0
19847
if test "$ac_cv_header_winsock2_h" = yes; then
19856
gl_LIBOBJS="$gl_LIBOBJS winsock.$ac_objext"
19864
cat >>confdefs.h <<\_ACEOF
19865
#define GNULIB_SOCKET 1
19870
{ $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
19871
$as_echo_n "checking for socklen_t... " >&6; }
19872
if test "${ac_cv_type_socklen_t+set}" = set; then
19873
$as_echo_n "(cached) " >&6
19875
ac_cv_type_socklen_t=no
19876
cat >conftest.$ac_ext <<_ACEOF
19879
cat confdefs.h >>conftest.$ac_ext
19880
cat >>conftest.$ac_ext <<_ACEOF
19881
/* end confdefs.h. */
19882
#include <sys/types.h>
19883
#if HAVE_SYS_SOCKET_H
19884
# include <sys/socket.h>
19885
#elif HAVE_WS2TCPIP_H
19886
# include <ws2tcpip.h>
19892
if (sizeof (socklen_t))
19898
rm -f conftest.$ac_objext
19899
if { (ac_try="$ac_compile"
19900
case "(($ac_try" in
19901
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19902
*) ac_try_echo=$ac_try;;
19904
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19905
$as_echo "$ac_try_echo") >&5
19906
(eval "$ac_compile") 2>conftest.er1
19908
grep -v '^ *+' conftest.er1 >conftest.err
19910
cat conftest.err >&5
19911
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19912
(exit $ac_status); } && {
19913
test -z "$ac_c_werror_flag" ||
19914
test ! -s conftest.err
19915
} && test -s conftest.$ac_objext; then
19916
cat >conftest.$ac_ext <<_ACEOF
19919
cat confdefs.h >>conftest.$ac_ext
19920
cat >>conftest.$ac_ext <<_ACEOF
19921
/* end confdefs.h. */
19922
#include <sys/types.h>
19923
#if HAVE_SYS_SOCKET_H
19924
# include <sys/socket.h>
19925
#elif HAVE_WS2TCPIP_H
19926
# include <ws2tcpip.h>
19932
if (sizeof ((socklen_t)))
19938
rm -f conftest.$ac_objext
19939
if { (ac_try="$ac_compile"
19940
case "(($ac_try" in
19941
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19942
*) ac_try_echo=$ac_try;;
19944
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19945
$as_echo "$ac_try_echo") >&5
19946
(eval "$ac_compile") 2>conftest.er1
19948
grep -v '^ *+' conftest.er1 >conftest.err
19950
cat conftest.err >&5
19951
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19952
(exit $ac_status); } && {
19953
test -z "$ac_c_werror_flag" ||
19954
test ! -s conftest.err
19955
} && test -s conftest.$ac_objext; then
19958
$as_echo "$as_me: failed program was:" >&5
19959
sed 's/^/| /' conftest.$ac_ext >&5
19961
ac_cv_type_socklen_t=yes
19964
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19966
$as_echo "$as_me: failed program was:" >&5
19967
sed 's/^/| /' conftest.$ac_ext >&5
19972
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19974
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
19975
$as_echo "$ac_cv_type_socklen_t" >&6; }
19976
if test "x$ac_cv_type_socklen_t" = x""yes; then
19979
{ $as_echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
19980
$as_echo_n "checking for socklen_t equivalent... " >&6; }
19981
if test "${gl_cv_socklen_t_equiv+set}" = set; then
19982
$as_echo_n "(cached) " >&6
19984
# Systems have either "struct sockaddr *" or
19985
# "void *" as the second argument to getpeername
19986
gl_cv_socklen_t_equiv=
19987
for arg2 in "struct sockaddr" void; do
19988
for t in int size_t "unsigned int" "long int" "unsigned long int"; do
19989
cat >conftest.$ac_ext <<_ACEOF
19992
cat confdefs.h >>conftest.$ac_ext
19993
cat >>conftest.$ac_ext <<_ACEOF
19994
/* end confdefs.h. */
19995
#include <sys/types.h>
19996
#include <sys/socket.h>
19998
int getpeername (int, $arg2 *, $t *);
20003
getpeername (0, 0, &len);
20008
rm -f conftest.$ac_objext
20009
if { (ac_try="$ac_compile"
20010
case "(($ac_try" in
20011
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20012
*) ac_try_echo=$ac_try;;
20014
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20015
$as_echo "$ac_try_echo") >&5
20016
(eval "$ac_compile") 2>conftest.er1
20018
grep -v '^ *+' conftest.er1 >conftest.err
20020
cat conftest.err >&5
20021
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20022
(exit $ac_status); } && {
20023
test -z "$ac_c_werror_flag" ||
20024
test ! -s conftest.err
20025
} && test -s conftest.$ac_objext; then
20026
gl_cv_socklen_t_equiv="$t"
20028
$as_echo "$as_me: failed program was:" >&5
20029
sed 's/^/| /' conftest.$ac_ext >&5
20034
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20035
test "$gl_cv_socklen_t_equiv" != "" && break
20037
test "$gl_cv_socklen_t_equiv" != "" && break
20042
if test "$gl_cv_socklen_t_equiv" = ""; then
20043
{ { $as_echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
20044
$as_echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
20045
{ (exit 1); exit 1; }; }
20047
{ $as_echo "$as_me:$LINENO: result: $gl_cv_socklen_t_equiv" >&5
20048
$as_echo "$gl_cv_socklen_t_equiv" >&6; }
20050
cat >>confdefs.h <<_ACEOF
20051
#define socklen_t $gl_cv_socklen_t_equiv
20059
# Define two additional variables used in the Makefile substitution.
20061
if test "$ac_cv_header_stdbool_h" = yes; then
20064
STDBOOL_H='stdbool.h'
20068
if test "$ac_cv_type__Bool" = yes; then
20078
if test $ac_cv_type_long_long_int = yes; then
20079
HAVE_LONG_LONG_INT=1
20081
HAVE_LONG_LONG_INT=0
20085
if test $ac_cv_type_unsigned_long_long_int = yes; then
20086
HAVE_UNSIGNED_LONG_LONG_INT=1
20088
HAVE_UNSIGNED_LONG_LONG_INT=0
20092
if test $ac_cv_header_inttypes_h = yes; then
20099
if test $ac_cv_header_sys_types_h = yes; then
20117
if test $gl_cv_have_include_next = yes; then
20118
gl_cv_next_stdint_h='<'stdint.h'>'
20120
{ $as_echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
20121
$as_echo_n "checking absolute name of <stdint.h>... " >&6; }
20122
if test "${gl_cv_next_stdint_h+set}" = set; then
20123
$as_echo_n "(cached) " >&6
20126
if test $ac_cv_header_stdint_h = yes; then
20127
cat >conftest.$ac_ext <<_ACEOF
20130
cat confdefs.h >>conftest.$ac_ext
20131
cat >>conftest.$ac_ext <<_ACEOF
20132
/* end confdefs.h. */
20133
#include <stdint.h>
20136
gl_cv_next_stdint_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20137
sed -n '\#/stdint.h#{
20138
s#.*"\(.*/stdint.h\)".*#\1#
20144
gl_cv_next_stdint_h='<'stdint.h'>'
20148
{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
20149
$as_echo "$gl_cv_next_stdint_h" >&6; }
20151
NEXT_STDINT_H=$gl_cv_next_stdint_h
20155
if test $ac_cv_header_stdint_h = yes; then
20162
if test $ac_cv_header_stdint_h = yes; then
20163
{ $as_echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
20164
$as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
20165
if test "${gl_cv_header_working_stdint_h+set}" = set; then
20166
$as_echo_n "(cached) " >&6
20168
gl_cv_header_working_stdint_h=no
20169
cat >conftest.$ac_ext <<_ACEOF
20173
cat confdefs.h >>conftest.$ac_ext
20174
cat >>conftest.$ac_ext <<_ACEOF
20175
/* end confdefs.h. */
20177
#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
20178
#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
20179
#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
20180
#include <stdint.h>
20181
/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
20182
#if !(defined WCHAR_MIN && defined WCHAR_MAX)
20183
#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
20187
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20188
included before <wchar.h>. */
20189
#include <stddef.h>
20190
#include <signal.h>
20192
# include <stdio.h>
20194
# include <wchar.h>
20199
int8_t a1 = INT8_MAX;
20200
int8_t a1min = INT8_MIN;
20203
int16_t a2 = INT16_MAX;
20204
int16_t a2min = INT16_MIN;
20207
int32_t a3 = INT32_MAX;
20208
int32_t a3min = INT32_MIN;
20211
int64_t a4 = INT64_MAX;
20212
int64_t a4min = INT64_MIN;
20215
uint8_t b1 = UINT8_MAX;
20217
typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
20220
uint16_t b2 = UINT16_MAX;
20223
uint32_t b3 = UINT32_MAX;
20226
uint64_t b4 = UINT64_MAX;
20228
int_least8_t c1 = INT8_C (0x7f);
20229
int_least8_t c1max = INT_LEAST8_MAX;
20230
int_least8_t c1min = INT_LEAST8_MIN;
20231
int_least16_t c2 = INT16_C (0x7fff);
20232
int_least16_t c2max = INT_LEAST16_MAX;
20233
int_least16_t c2min = INT_LEAST16_MIN;
20234
int_least32_t c3 = INT32_C (0x7fffffff);
20235
int_least32_t c3max = INT_LEAST32_MAX;
20236
int_least32_t c3min = INT_LEAST32_MIN;
20237
int_least64_t c4 = INT64_C (0x7fffffffffffffff);
20238
int_least64_t c4max = INT_LEAST64_MAX;
20239
int_least64_t c4min = INT_LEAST64_MIN;
20240
uint_least8_t d1 = UINT8_C (0xff);
20241
uint_least8_t d1max = UINT_LEAST8_MAX;
20242
uint_least16_t d2 = UINT16_C (0xffff);
20243
uint_least16_t d2max = UINT_LEAST16_MAX;
20244
uint_least32_t d3 = UINT32_C (0xffffffff);
20245
uint_least32_t d3max = UINT_LEAST32_MAX;
20246
uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
20247
uint_least64_t d4max = UINT_LEAST64_MAX;
20248
int_fast8_t e1 = INT_FAST8_MAX;
20249
int_fast8_t e1min = INT_FAST8_MIN;
20250
int_fast16_t e2 = INT_FAST16_MAX;
20251
int_fast16_t e2min = INT_FAST16_MIN;
20252
int_fast32_t e3 = INT_FAST32_MAX;
20253
int_fast32_t e3min = INT_FAST32_MIN;
20254
int_fast64_t e4 = INT_FAST64_MAX;
20255
int_fast64_t e4min = INT_FAST64_MIN;
20256
uint_fast8_t f1 = UINT_FAST8_MAX;
20257
uint_fast16_t f2 = UINT_FAST16_MAX;
20258
uint_fast32_t f3 = UINT_FAST32_MAX;
20259
uint_fast64_t f4 = UINT_FAST64_MAX;
20261
intptr_t g = INTPTR_MAX;
20262
intptr_t gmin = INTPTR_MIN;
20265
uintptr_t h = UINTPTR_MAX;
20267
intmax_t i = INTMAX_MAX;
20268
uintmax_t j = UINTMAX_MAX;
20270
#include <limits.h> /* for CHAR_BIT */
20271
#define TYPE_MINIMUM(t) \
20272
((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
20273
#define TYPE_MAXIMUM(t) \
20274
((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
20277
PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
20278
&& PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
20280
/* Detect bug in FreeBSD 6.0 / ia64. */
20281
int check_SIG_ATOMIC:
20282
SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
20283
&& SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
20285
int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
20287
WCHAR_MIN == TYPE_MINIMUM (wchar_t)
20288
&& WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
20290
/* Detect bug in mingw. */
20292
WINT_MIN == TYPE_MINIMUM (wint_t)
20293
&& WINT_MAX == TYPE_MAXIMUM (wint_t)
20296
/* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
20298
(-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
20299
int check_UINT16_C:
20300
(-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
20302
/* Detect bugs in OpenBSD 3.9 stdint.h. */
20304
int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
20307
int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
20310
int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
20313
int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
20315
int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
20316
int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
20317
int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
20318
int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
20319
int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
20320
int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
20321
int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
20322
int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
20323
int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
20324
int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
20325
int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
20336
rm -f conftest.$ac_objext
20337
if { (ac_try="$ac_compile"
20338
case "(($ac_try" in
20339
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20340
*) ac_try_echo=$ac_try;;
20342
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20343
$as_echo "$ac_try_echo") >&5
20344
(eval "$ac_compile") 2>conftest.er1
20346
grep -v '^ *+' conftest.er1 >conftest.err
20348
cat conftest.err >&5
20349
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350
(exit $ac_status); } && {
20351
test -z "$ac_c_werror_flag" ||
20352
test ! -s conftest.err
20353
} && test -s conftest.$ac_objext; then
20354
gl_cv_header_working_stdint_h=yes
20356
$as_echo "$as_me: failed program was:" >&5
20357
sed 's/^/| /' conftest.$ac_ext >&5
20362
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20364
{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
20365
$as_echo "$gl_cv_header_working_stdint_h" >&6; }
20367
if test "$gl_cv_header_working_stdint_h" = yes; then
20372
for ac_header in sys/inttypes.h sys/bitypes.h
20374
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20375
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20376
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20377
$as_echo_n "checking for $ac_header... " >&6; }
20378
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20379
$as_echo_n "(cached) " >&6
20381
ac_res=`eval 'as_val=${'$as_ac_Header'}
20382
$as_echo "$as_val"'`
20383
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20384
$as_echo "$ac_res" >&6; }
20386
# Is the header compilable?
20387
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20388
$as_echo_n "checking $ac_header usability... " >&6; }
20389
cat >conftest.$ac_ext <<_ACEOF
20392
cat confdefs.h >>conftest.$ac_ext
20393
cat >>conftest.$ac_ext <<_ACEOF
20394
/* end confdefs.h. */
20395
$ac_includes_default
20396
#include <$ac_header>
20398
rm -f conftest.$ac_objext
20399
if { (ac_try="$ac_compile"
20400
case "(($ac_try" in
20401
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20402
*) ac_try_echo=$ac_try;;
20404
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20405
$as_echo "$ac_try_echo") >&5
20406
(eval "$ac_compile") 2>conftest.er1
20408
grep -v '^ *+' conftest.er1 >conftest.err
20410
cat conftest.err >&5
20411
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20412
(exit $ac_status); } && {
20413
test -z "$ac_c_werror_flag" ||
20414
test ! -s conftest.err
20415
} && test -s conftest.$ac_objext; then
20416
ac_header_compiler=yes
20418
$as_echo "$as_me: failed program was:" >&5
20419
sed 's/^/| /' conftest.$ac_ext >&5
20421
ac_header_compiler=no
20424
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20425
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20426
$as_echo "$ac_header_compiler" >&6; }
20428
# Is the header present?
20429
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20430
$as_echo_n "checking $ac_header presence... " >&6; }
20431
cat >conftest.$ac_ext <<_ACEOF
20434
cat confdefs.h >>conftest.$ac_ext
20435
cat >>conftest.$ac_ext <<_ACEOF
20436
/* end confdefs.h. */
20437
#include <$ac_header>
20439
if { (ac_try="$ac_cpp conftest.$ac_ext"
20440
case "(($ac_try" in
20441
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20442
*) ac_try_echo=$ac_try;;
20444
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20445
$as_echo "$ac_try_echo") >&5
20446
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20448
grep -v '^ *+' conftest.er1 >conftest.err
20450
cat conftest.err >&5
20451
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20452
(exit $ac_status); } >/dev/null && {
20453
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20454
test ! -s conftest.err
20456
ac_header_preproc=yes
20458
$as_echo "$as_me: failed program was:" >&5
20459
sed 's/^/| /' conftest.$ac_ext >&5
20461
ac_header_preproc=no
20464
rm -f conftest.err conftest.$ac_ext
20465
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20466
$as_echo "$ac_header_preproc" >&6; }
20468
# So? What about this header?
20469
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20471
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20472
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20473
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20474
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20475
ac_header_preproc=yes
20478
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20479
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20480
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20481
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20482
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20483
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20484
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20485
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20486
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20487
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20488
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20489
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20491
## ----------------------------------------------------------------------- ##
20492
## Report this to https://bugzilla.gnome.org/enter_bug.cgi?product=gtk-vnc ##
20493
## ----------------------------------------------------------------------- ##
20495
) | sed "s/^/$as_me: WARNING: /" >&2
20498
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20499
$as_echo_n "checking for $ac_header... " >&6; }
20500
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20501
$as_echo_n "(cached) " >&6
20503
eval "$as_ac_Header=\$ac_header_preproc"
20505
ac_res=`eval 'as_val=${'$as_ac_Header'}
20506
$as_echo "$as_val"'`
20507
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20508
$as_echo "$ac_res" >&6; }
20511
as_val=`eval 'as_val=${'$as_ac_Header'}
20512
$as_echo "$as_val"'`
20513
if test "x$as_val" = x""yes; then
20514
cat >>confdefs.h <<_ACEOF
20515
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20522
if test $ac_cv_header_sys_inttypes_h = yes; then
20523
HAVE_SYS_INTTYPES_H=1
20525
HAVE_SYS_INTTYPES_H=0
20528
if test $ac_cv_header_sys_bitypes_h = yes; then
20529
HAVE_SYS_BITYPES_H=1
20531
HAVE_SYS_BITYPES_H=0
20551
for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
20552
{ $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
20553
$as_echo_n "checking for bit size of $gltype... " >&6; }
20554
if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
20555
$as_echo_n "(cached) " >&6
20557
if test "$cross_compiling" = yes; then
20558
# Depending upon the size, compute the lo and hi bounds.
20559
cat >conftest.$ac_ext <<_ACEOF
20562
cat confdefs.h >>conftest.$ac_ext
20563
cat >>conftest.$ac_ext <<_ACEOF
20564
/* end confdefs.h. */
20566
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20567
included before <wchar.h>. */
20568
#include <stddef.h>
20569
#include <signal.h>
20571
# include <stdio.h>
20573
# include <wchar.h>
20576
#include <limits.h>
20580
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
20587
rm -f conftest.$ac_objext
20588
if { (ac_try="$ac_compile"
20589
case "(($ac_try" in
20590
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20591
*) ac_try_echo=$ac_try;;
20593
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20594
$as_echo "$ac_try_echo") >&5
20595
(eval "$ac_compile") 2>conftest.er1
20597
grep -v '^ *+' conftest.er1 >conftest.err
20599
cat conftest.err >&5
20600
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20601
(exit $ac_status); } && {
20602
test -z "$ac_c_werror_flag" ||
20603
test ! -s conftest.err
20604
} && test -s conftest.$ac_objext; then
20607
cat >conftest.$ac_ext <<_ACEOF
20610
cat confdefs.h >>conftest.$ac_ext
20611
cat >>conftest.$ac_ext <<_ACEOF
20612
/* end confdefs.h. */
20614
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20615
included before <wchar.h>. */
20616
#include <stddef.h>
20617
#include <signal.h>
20619
# include <stdio.h>
20621
# include <wchar.h>
20624
#include <limits.h>
20628
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
20635
rm -f conftest.$ac_objext
20636
if { (ac_try="$ac_compile"
20637
case "(($ac_try" in
20638
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20639
*) ac_try_echo=$ac_try;;
20641
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20642
$as_echo "$ac_try_echo") >&5
20643
(eval "$ac_compile") 2>conftest.er1
20645
grep -v '^ *+' conftest.er1 >conftest.err
20647
cat conftest.err >&5
20648
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20649
(exit $ac_status); } && {
20650
test -z "$ac_c_werror_flag" ||
20651
test ! -s conftest.err
20652
} && test -s conftest.$ac_objext; then
20653
ac_hi=$ac_mid; break
20655
$as_echo "$as_me: failed program was:" >&5
20656
sed 's/^/| /' conftest.$ac_ext >&5
20658
ac_lo=`expr $ac_mid + 1`
20659
if test $ac_lo -le $ac_mid; then
20663
ac_mid=`expr 2 '*' $ac_mid + 1`
20666
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20669
$as_echo "$as_me: failed program was:" >&5
20670
sed 's/^/| /' conftest.$ac_ext >&5
20672
cat >conftest.$ac_ext <<_ACEOF
20675
cat confdefs.h >>conftest.$ac_ext
20676
cat >>conftest.$ac_ext <<_ACEOF
20677
/* end confdefs.h. */
20679
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20680
included before <wchar.h>. */
20681
#include <stddef.h>
20682
#include <signal.h>
20684
# include <stdio.h>
20686
# include <wchar.h>
20689
#include <limits.h>
20693
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
20700
rm -f conftest.$ac_objext
20701
if { (ac_try="$ac_compile"
20702
case "(($ac_try" in
20703
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20704
*) ac_try_echo=$ac_try;;
20706
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20707
$as_echo "$ac_try_echo") >&5
20708
(eval "$ac_compile") 2>conftest.er1
20710
grep -v '^ *+' conftest.er1 >conftest.err
20712
cat conftest.err >&5
20713
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20714
(exit $ac_status); } && {
20715
test -z "$ac_c_werror_flag" ||
20716
test ! -s conftest.err
20717
} && test -s conftest.$ac_objext; then
20720
cat >conftest.$ac_ext <<_ACEOF
20723
cat confdefs.h >>conftest.$ac_ext
20724
cat >>conftest.$ac_ext <<_ACEOF
20725
/* end confdefs.h. */
20727
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20728
included before <wchar.h>. */
20729
#include <stddef.h>
20730
#include <signal.h>
20732
# include <stdio.h>
20734
# include <wchar.h>
20737
#include <limits.h>
20741
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
20748
rm -f conftest.$ac_objext
20749
if { (ac_try="$ac_compile"
20750
case "(($ac_try" in
20751
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20752
*) ac_try_echo=$ac_try;;
20754
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20755
$as_echo "$ac_try_echo") >&5
20756
(eval "$ac_compile") 2>conftest.er1
20758
grep -v '^ *+' conftest.er1 >conftest.err
20760
cat conftest.err >&5
20761
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20762
(exit $ac_status); } && {
20763
test -z "$ac_c_werror_flag" ||
20764
test ! -s conftest.err
20765
} && test -s conftest.$ac_objext; then
20766
ac_lo=$ac_mid; break
20768
$as_echo "$as_me: failed program was:" >&5
20769
sed 's/^/| /' conftest.$ac_ext >&5
20771
ac_hi=`expr '(' $ac_mid ')' - 1`
20772
if test $ac_mid -le $ac_hi; then
20776
ac_mid=`expr 2 '*' $ac_mid`
20779
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20782
$as_echo "$as_me: failed program was:" >&5
20783
sed 's/^/| /' conftest.$ac_ext >&5
20788
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20791
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20792
# Binary search between lo and hi bounds.
20793
while test "x$ac_lo" != "x$ac_hi"; do
20794
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20795
cat >conftest.$ac_ext <<_ACEOF
20798
cat confdefs.h >>conftest.$ac_ext
20799
cat >>conftest.$ac_ext <<_ACEOF
20800
/* end confdefs.h. */
20802
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20803
included before <wchar.h>. */
20804
#include <stddef.h>
20805
#include <signal.h>
20807
# include <stdio.h>
20809
# include <wchar.h>
20812
#include <limits.h>
20816
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
20823
rm -f conftest.$ac_objext
20824
if { (ac_try="$ac_compile"
20825
case "(($ac_try" in
20826
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20827
*) ac_try_echo=$ac_try;;
20829
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20830
$as_echo "$ac_try_echo") >&5
20831
(eval "$ac_compile") 2>conftest.er1
20833
grep -v '^ *+' conftest.er1 >conftest.err
20835
cat conftest.err >&5
20836
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20837
(exit $ac_status); } && {
20838
test -z "$ac_c_werror_flag" ||
20839
test ! -s conftest.err
20840
} && test -s conftest.$ac_objext; then
20843
$as_echo "$as_me: failed program was:" >&5
20844
sed 's/^/| /' conftest.$ac_ext >&5
20846
ac_lo=`expr '(' $ac_mid ')' + 1`
20849
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20852
?*) result=$ac_lo;;
20853
'') result=unknown ;;
20856
cat >conftest.$ac_ext <<_ACEOF
20859
cat confdefs.h >>conftest.$ac_ext
20860
cat >>conftest.$ac_ext <<_ACEOF
20861
/* end confdefs.h. */
20863
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20864
included before <wchar.h>. */
20865
#include <stddef.h>
20866
#include <signal.h>
20868
# include <stdio.h>
20870
# include <wchar.h>
20873
#include <limits.h>
20874
static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
20875
static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
20877
#include <stdlib.h>
20882
FILE *f = fopen ("conftest.val", "w");
20885
if ((sizeof ($gltype) * CHAR_BIT) < 0)
20887
long int i = longval ();
20888
if (i != (sizeof ($gltype) * CHAR_BIT))
20890
fprintf (f, "%ld", i);
20894
unsigned long int i = ulongval ();
20895
if (i != (sizeof ($gltype) * CHAR_BIT))
20897
fprintf (f, "%lu", i);
20899
/* Do not output a trailing newline, as this causes \r\n confusion
20900
on some platforms. */
20901
return ferror (f) || fclose (f) != 0;
20907
rm -f conftest$ac_exeext
20908
if { (ac_try="$ac_link"
20909
case "(($ac_try" in
20910
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20911
*) ac_try_echo=$ac_try;;
20913
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20914
$as_echo "$ac_try_echo") >&5
20915
(eval "$ac_link") 2>&5
20917
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20918
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20919
{ (case "(($ac_try" in
20920
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20921
*) ac_try_echo=$ac_try;;
20923
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20924
$as_echo "$ac_try_echo") >&5
20925
(eval "$ac_try") 2>&5
20927
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20928
(exit $ac_status); }; }; then
20929
result=`cat conftest.val`
20931
$as_echo "$as_me: program exited with status $ac_status" >&5
20932
$as_echo "$as_me: failed program was:" >&5
20933
sed 's/^/| /' conftest.$ac_ext >&5
20935
( exit $ac_status )
20938
rm -rf conftest.dSYM
20939
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20942
eval gl_cv_bitsizeof_${gltype}=\$result
20945
ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
20946
$as_echo "$as_val"'`
20947
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20948
$as_echo "$ac_res" >&6; }
20949
eval result=\$gl_cv_bitsizeof_${gltype}
20950
if test $result = unknown; then
20953
GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20954
cat >>confdefs.h <<_ACEOF
20955
#define BITSIZEOF_${GLTYPE} $result
20958
eval BITSIZEOF_${GLTYPE}=\$result
20967
for gltype in sig_atomic_t wchar_t wint_t ; do
20968
{ $as_echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
20969
$as_echo_n "checking whether $gltype is signed... " >&6; }
20970
if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
20971
$as_echo_n "(cached) " >&6
20973
cat >conftest.$ac_ext <<_ACEOF
20976
cat confdefs.h >>conftest.$ac_ext
20977
cat >>conftest.$ac_ext <<_ACEOF
20978
/* end confdefs.h. */
20980
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20981
included before <wchar.h>. */
20982
#include <stddef.h>
20983
#include <signal.h>
20985
# include <stdio.h>
20987
# include <wchar.h>
20990
int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
20999
rm -f conftest.$ac_objext
21000
if { (ac_try="$ac_compile"
21001
case "(($ac_try" in
21002
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21003
*) ac_try_echo=$ac_try;;
21005
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21006
$as_echo "$ac_try_echo") >&5
21007
(eval "$ac_compile") 2>conftest.er1
21009
grep -v '^ *+' conftest.er1 >conftest.err
21011
cat conftest.err >&5
21012
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21013
(exit $ac_status); } && {
21014
test -z "$ac_c_werror_flag" ||
21015
test ! -s conftest.err
21016
} && test -s conftest.$ac_objext; then
21019
$as_echo "$as_me: failed program was:" >&5
21020
sed 's/^/| /' conftest.$ac_ext >&5
21025
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21026
eval gl_cv_type_${gltype}_signed=\$result
21029
ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_signed'}
21030
$as_echo "$as_val"'`
21031
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21032
$as_echo "$ac_res" >&6; }
21033
eval result=\$gl_cv_type_${gltype}_signed
21034
GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
21035
if test "$result" = yes; then
21036
cat >>confdefs.h <<_ACEOF
21037
#define HAVE_SIGNED_${GLTYPE} 1
21040
eval HAVE_SIGNED_${GLTYPE}=1
21042
eval HAVE_SIGNED_${GLTYPE}=0
21047
gl_cv_type_ptrdiff_t_signed=yes
21048
gl_cv_type_size_t_signed=no
21056
for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
21057
{ $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
21058
$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
21059
if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
21060
$as_echo_n "(cached) " >&6
21062
eval gl_cv_type_${gltype}_suffix=no
21063
eval result=\$gl_cv_type_${gltype}_signed
21064
if test "$result" = yes; then
21069
for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
21071
'') gltype1='int';;
21072
l) gltype1='long int';;
21073
ll) gltype1='long long int';;
21074
i64) gltype1='__int64';;
21075
u) gltype1='unsigned int';;
21076
ul) gltype1='unsigned long int';;
21077
ull) gltype1='unsigned long long int';;
21078
ui64)gltype1='unsigned __int64';;
21080
cat >conftest.$ac_ext <<_ACEOF
21083
cat confdefs.h >>conftest.$ac_ext
21084
cat >>conftest.$ac_ext <<_ACEOF
21085
/* end confdefs.h. */
21087
/* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21088
included before <wchar.h>. */
21089
#include <stddef.h>
21090
#include <signal.h>
21092
# include <stdio.h>
21094
# include <wchar.h>
21097
extern $gltype foo;
21098
extern $gltype1 foo;
21107
rm -f conftest.$ac_objext
21108
if { (ac_try="$ac_compile"
21109
case "(($ac_try" in
21110
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21111
*) ac_try_echo=$ac_try;;
21113
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21114
$as_echo "$ac_try_echo") >&5
21115
(eval "$ac_compile") 2>conftest.er1
21117
grep -v '^ *+' conftest.er1 >conftest.err
21119
cat conftest.err >&5
21120
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21121
(exit $ac_status); } && {
21122
test -z "$ac_c_werror_flag" ||
21123
test ! -s conftest.err
21124
} && test -s conftest.$ac_objext; then
21125
eval gl_cv_type_${gltype}_suffix=\$glsuf
21127
$as_echo "$as_me: failed program was:" >&5
21128
sed 's/^/| /' conftest.$ac_ext >&5
21133
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21134
eval result=\$gl_cv_type_${gltype}_suffix
21135
test "$result" != no && break
21138
ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
21139
$as_echo "$as_val"'`
21140
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21141
$as_echo "$ac_res" >&6; }
21142
GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
21143
eval result=\$gl_cv_type_${gltype}_suffix
21144
test "$result" = no && result=
21145
eval ${GLTYPE}_SUFFIX=\$result
21146
cat >>confdefs.h <<_ACEOF
21147
#define ${GLTYPE}_SUFFIX $result
21171
if test $gl_cv_have_include_next = yes; then
21172
gl_cv_next_stdio_h='<'stdio.h'>'
21174
{ $as_echo "$as_me:$LINENO: checking absolute name of <stdio.h>" >&5
21175
$as_echo_n "checking absolute name of <stdio.h>... " >&6; }
21176
if test "${gl_cv_next_stdio_h+set}" = set; then
21177
$as_echo_n "(cached) " >&6
21180
if test $ac_cv_header_stdio_h = yes; then
21181
cat >conftest.$ac_ext <<_ACEOF
21184
cat confdefs.h >>conftest.$ac_ext
21185
cat >>conftest.$ac_ext <<_ACEOF
21186
/* end confdefs.h. */
21190
gl_cv_next_stdio_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21191
sed -n '\#/stdio.h#{
21192
s#.*"\(.*/stdio.h\)".*#\1#
21198
gl_cv_next_stdio_h='<'stdio.h'>'
21202
{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdio_h" >&5
21203
$as_echo "$gl_cv_next_stdio_h" >&6; }
21205
NEXT_STDIO_H=$gl_cv_next_stdio_h
21234
if test $gl_cv_have_include_next = yes; then
21235
gl_cv_next_stdlib_h='<'stdlib.h'>'
21237
{ $as_echo "$as_me:$LINENO: checking absolute name of <stdlib.h>" >&5
21238
$as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
21239
if test "${gl_cv_next_stdlib_h+set}" = set; then
21240
$as_echo_n "(cached) " >&6
21243
if test $ac_cv_header_stdlib_h = yes; then
21244
cat >conftest.$ac_ext <<_ACEOF
21247
cat confdefs.h >>conftest.$ac_ext
21248
cat >>conftest.$ac_ext <<_ACEOF
21249
/* end confdefs.h. */
21250
#include <stdlib.h>
21253
gl_cv_next_stdlib_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21254
sed -n '\#/stdlib.h#{
21255
s#.*"\(.*/stdlib.h\)".*#\1#
21261
gl_cv_next_stdlib_h='<'stdlib.h'>'
21265
{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdlib_h" >&5
21266
$as_echo "$gl_cv_next_stdlib_h" >&6; }
21268
NEXT_STDLIB_H=$gl_cv_next_stdlib_h
21277
{ $as_echo "$as_me:$LINENO: checking whether <sys/socket.h> is self-contained" >&5
21278
$as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
21279
if test "${gl_cv_header_sys_socket_h_selfcontained+set}" = set; then
21280
$as_echo_n "(cached) " >&6
21283
cat >conftest.$ac_ext <<_ACEOF
21286
cat confdefs.h >>conftest.$ac_ext
21287
cat >>conftest.$ac_ext <<_ACEOF
21288
/* end confdefs.h. */
21289
#include <sys/socket.h>
21298
rm -f conftest.$ac_objext
21299
if { (ac_try="$ac_compile"
21300
case "(($ac_try" in
21301
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21302
*) ac_try_echo=$ac_try;;
21304
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21305
$as_echo "$ac_try_echo") >&5
21306
(eval "$ac_compile") 2>conftest.er1
21308
grep -v '^ *+' conftest.er1 >conftest.err
21310
cat conftest.err >&5
21311
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21312
(exit $ac_status); } && {
21313
test -z "$ac_c_werror_flag" ||
21314
test ! -s conftest.err
21315
} && test -s conftest.$ac_objext; then
21316
gl_cv_header_sys_socket_h_selfcontained=yes
21318
$as_echo "$as_me: failed program was:" >&5
21319
sed 's/^/| /' conftest.$ac_ext >&5
21321
gl_cv_header_sys_socket_h_selfcontained=no
21324
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21327
{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
21328
$as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
21329
if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
21332
for ac_func in shutdown
21334
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21335
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21336
$as_echo_n "checking for $ac_func... " >&6; }
21337
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21338
$as_echo_n "(cached) " >&6
21340
cat >conftest.$ac_ext <<_ACEOF
21343
cat confdefs.h >>conftest.$ac_ext
21344
cat >>conftest.$ac_ext <<_ACEOF
21345
/* end confdefs.h. */
21346
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21347
For example, HP-UX 11i <limits.h> declares gettimeofday. */
21348
#define $ac_func innocuous_$ac_func
21350
/* System header to define __stub macros and hopefully few prototypes,
21351
which can conflict with char $ac_func (); below.
21352
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21353
<limits.h> exists even on freestanding compilers. */
21356
# include <limits.h>
21358
# include <assert.h>
21363
/* Override any GCC internal prototype to avoid an error.
21364
Use char because int might match the return type of a GCC
21365
builtin and then its argument prototype would still apply. */
21370
/* The GNU C library defines this for functions which it implements
21371
to always fail with ENOSYS. Some functions are actually named
21372
something starting with __ and the normal name is an alias. */
21373
#if defined __stub_$ac_func || defined __stub___$ac_func
21380
return $ac_func ();
21385
rm -f conftest.$ac_objext conftest$ac_exeext
21386
if { (ac_try="$ac_link"
21387
case "(($ac_try" in
21388
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21389
*) ac_try_echo=$ac_try;;
21391
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21392
$as_echo "$ac_try_echo") >&5
21393
(eval "$ac_link") 2>conftest.er1
21395
grep -v '^ *+' conftest.er1 >conftest.err
21397
cat conftest.err >&5
21398
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21399
(exit $ac_status); } && {
21400
test -z "$ac_c_werror_flag" ||
21401
test ! -s conftest.err
21402
} && test -s conftest$ac_exeext && {
21403
test "$cross_compiling" = yes ||
21404
$as_test_x conftest$ac_exeext
21406
eval "$as_ac_var=yes"
21408
$as_echo "$as_me: failed program was:" >&5
21409
sed 's/^/| /' conftest.$ac_ext >&5
21411
eval "$as_ac_var=no"
21414
rm -rf conftest.dSYM
21415
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21416
conftest$ac_exeext conftest.$ac_ext
21418
ac_res=`eval 'as_val=${'$as_ac_var'}
21419
$as_echo "$as_val"'`
21420
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21421
$as_echo "$ac_res" >&6; }
21422
as_val=`eval 'as_val=${'$as_ac_var'}
21423
$as_echo "$as_val"'`
21424
if test "x$as_val" = x""yes; then
21425
cat >>confdefs.h <<_ACEOF
21426
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21432
if test $ac_cv_func_shutdown = yes; then
21433
{ $as_echo "$as_me:$LINENO: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
21434
$as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
21435
if test "${gl_cv_header_sys_socket_h_shut+set}" = set; then
21436
$as_echo_n "(cached) " >&6
21439
cat >conftest.$ac_ext <<_ACEOF
21442
cat confdefs.h >>conftest.$ac_ext
21443
cat >>conftest.$ac_ext <<_ACEOF
21444
/* end confdefs.h. */
21445
#include <sys/socket.h>
21449
int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
21454
rm -f conftest.$ac_objext
21455
if { (ac_try="$ac_compile"
21456
case "(($ac_try" in
21457
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21458
*) ac_try_echo=$ac_try;;
21460
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21461
$as_echo "$ac_try_echo") >&5
21462
(eval "$ac_compile") 2>conftest.er1
21464
grep -v '^ *+' conftest.er1 >conftest.err
21466
cat conftest.err >&5
21467
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21468
(exit $ac_status); } && {
21469
test -z "$ac_c_werror_flag" ||
21470
test ! -s conftest.err
21471
} && test -s conftest.$ac_objext; then
21472
gl_cv_header_sys_socket_h_shut=yes
21474
$as_echo "$as_me: failed program was:" >&5
21475
sed 's/^/| /' conftest.$ac_ext >&5
21477
gl_cv_header_sys_socket_h_shut=no
21480
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21483
{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_sys_socket_h_shut" >&5
21484
$as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
21485
if test $gl_cv_header_sys_socket_h_shut = no; then
21486
SYS_SOCKET_H='sys/socket.h'
21490
SYS_SOCKET_H='sys/socket.h'
21492
if test -n "$SYS_SOCKET_H"; then
21504
if test $gl_cv_have_include_next = yes; then
21505
gl_cv_next_sys_socket_h='<'sys/socket.h'>'
21507
{ $as_echo "$as_me:$LINENO: checking absolute name of <sys/socket.h>" >&5
21508
$as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
21509
if test "${gl_cv_next_sys_socket_h+set}" = set; then
21510
$as_echo_n "(cached) " >&6
21513
if test $ac_cv_header_sys_socket_h = yes; then
21514
cat >conftest.$ac_ext <<_ACEOF
21517
cat confdefs.h >>conftest.$ac_ext
21518
cat >>conftest.$ac_ext <<_ACEOF
21519
/* end confdefs.h. */
21520
#include <sys/socket.h>
21523
gl_cv_next_sys_socket_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21524
sed -n '\#/sys/socket.h#{
21525
s#.*"\(.*/sys/socket.h\)".*#\1#
21531
gl_cv_next_sys_socket_h='<'sys/socket.h'>'
21535
{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_sys_socket_h" >&5
21536
$as_echo "$gl_cv_next_sys_socket_h" >&6; }
21538
NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h
21542
if test $ac_cv_header_sys_socket_h = yes; then
21543
HAVE_SYS_SOCKET_H=1
21546
HAVE_SYS_SOCKET_H=0
21548
for ac_header in ws2tcpip.h
21550
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21551
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21552
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21553
$as_echo_n "checking for $ac_header... " >&6; }
21554
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21555
$as_echo_n "(cached) " >&6
21557
ac_res=`eval 'as_val=${'$as_ac_Header'}
21558
$as_echo "$as_val"'`
21559
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21560
$as_echo "$ac_res" >&6; }
21562
# Is the header compilable?
21563
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21564
$as_echo_n "checking $ac_header usability... " >&6; }
21565
cat >conftest.$ac_ext <<_ACEOF
21568
cat confdefs.h >>conftest.$ac_ext
21569
cat >>conftest.$ac_ext <<_ACEOF
21570
/* end confdefs.h. */
21571
$ac_includes_default
21572
#include <$ac_header>
21574
rm -f conftest.$ac_objext
21575
if { (ac_try="$ac_compile"
21576
case "(($ac_try" in
21577
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21578
*) ac_try_echo=$ac_try;;
21580
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21581
$as_echo "$ac_try_echo") >&5
21582
(eval "$ac_compile") 2>conftest.er1
21584
grep -v '^ *+' conftest.er1 >conftest.err
21586
cat conftest.err >&5
21587
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21588
(exit $ac_status); } && {
21589
test -z "$ac_c_werror_flag" ||
21590
test ! -s conftest.err
21591
} && test -s conftest.$ac_objext; then
21592
ac_header_compiler=yes
21594
$as_echo "$as_me: failed program was:" >&5
21595
sed 's/^/| /' conftest.$ac_ext >&5
21597
ac_header_compiler=no
21600
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21601
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21602
$as_echo "$ac_header_compiler" >&6; }
21604
# Is the header present?
21605
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21606
$as_echo_n "checking $ac_header presence... " >&6; }
21607
cat >conftest.$ac_ext <<_ACEOF
21610
cat confdefs.h >>conftest.$ac_ext
21611
cat >>conftest.$ac_ext <<_ACEOF
21612
/* end confdefs.h. */
21613
#include <$ac_header>
21615
if { (ac_try="$ac_cpp conftest.$ac_ext"
21616
case "(($ac_try" in
21617
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21618
*) ac_try_echo=$ac_try;;
21620
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21621
$as_echo "$ac_try_echo") >&5
21622
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21624
grep -v '^ *+' conftest.er1 >conftest.err
21626
cat conftest.err >&5
21627
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21628
(exit $ac_status); } >/dev/null && {
21629
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21630
test ! -s conftest.err
21632
ac_header_preproc=yes
21634
$as_echo "$as_me: failed program was:" >&5
21635
sed 's/^/| /' conftest.$ac_ext >&5
21637
ac_header_preproc=no
21640
rm -f conftest.err conftest.$ac_ext
21641
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21642
$as_echo "$ac_header_preproc" >&6; }
21644
# So? What about this header?
21645
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21647
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21648
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21649
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21650
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21651
ac_header_preproc=yes
21654
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21655
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21656
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21657
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21658
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21659
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21660
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21661
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21662
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21663
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21664
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21665
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21667
## ----------------------------------------------------------------------- ##
21668
## Report this to https://bugzilla.gnome.org/enter_bug.cgi?product=gtk-vnc ##
21669
## ----------------------------------------------------------------------- ##
21671
) | sed "s/^/$as_me: WARNING: /" >&2
21674
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21675
$as_echo_n "checking for $ac_header... " >&6; }
21676
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21677
$as_echo_n "(cached) " >&6
21679
eval "$as_ac_Header=\$ac_header_preproc"
21681
ac_res=`eval 'as_val=${'$as_ac_Header'}
21682
$as_echo "$as_val"'`
21683
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21684
$as_echo "$ac_res" >&6; }
21687
as_val=`eval 'as_val=${'$as_ac_Header'}
21688
$as_echo "$as_val"'`
21689
if test "x$as_val" = x""yes; then
21690
cat >>confdefs.h <<_ACEOF
21691
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21698
if test $ac_cv_header_ws2tcpip_h = yes; then
21712
if test $ac_cv_header_sys_socket_h != yes; then
21714
for ac_header in winsock2.h
21716
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21717
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21718
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21719
$as_echo_n "checking for $ac_header... " >&6; }
21720
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21721
$as_echo_n "(cached) " >&6
21723
ac_res=`eval 'as_val=${'$as_ac_Header'}
21724
$as_echo "$as_val"'`
21725
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21726
$as_echo "$ac_res" >&6; }
21728
# Is the header compilable?
21729
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21730
$as_echo_n "checking $ac_header usability... " >&6; }
21731
cat >conftest.$ac_ext <<_ACEOF
21734
cat confdefs.h >>conftest.$ac_ext
21735
cat >>conftest.$ac_ext <<_ACEOF
21736
/* end confdefs.h. */
21737
$ac_includes_default
21738
#include <$ac_header>
21740
rm -f conftest.$ac_objext
21741
if { (ac_try="$ac_compile"
21742
case "(($ac_try" in
21743
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21744
*) ac_try_echo=$ac_try;;
21746
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21747
$as_echo "$ac_try_echo") >&5
21748
(eval "$ac_compile") 2>conftest.er1
21750
grep -v '^ *+' conftest.er1 >conftest.err
21752
cat conftest.err >&5
21753
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21754
(exit $ac_status); } && {
21755
test -z "$ac_c_werror_flag" ||
21756
test ! -s conftest.err
21757
} && test -s conftest.$ac_objext; then
21758
ac_header_compiler=yes
21760
$as_echo "$as_me: failed program was:" >&5
21761
sed 's/^/| /' conftest.$ac_ext >&5
21763
ac_header_compiler=no
21766
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21767
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21768
$as_echo "$ac_header_compiler" >&6; }
21770
# Is the header present?
21771
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21772
$as_echo_n "checking $ac_header presence... " >&6; }
21773
cat >conftest.$ac_ext <<_ACEOF
21776
cat confdefs.h >>conftest.$ac_ext
21777
cat >>conftest.$ac_ext <<_ACEOF
21778
/* end confdefs.h. */
21779
#include <$ac_header>
21781
if { (ac_try="$ac_cpp conftest.$ac_ext"
21782
case "(($ac_try" in
21783
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21784
*) ac_try_echo=$ac_try;;
21786
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21787
$as_echo "$ac_try_echo") >&5
21788
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21790
grep -v '^ *+' conftest.er1 >conftest.err
21792
cat conftest.err >&5
21793
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21794
(exit $ac_status); } >/dev/null && {
21795
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21796
test ! -s conftest.err
21798
ac_header_preproc=yes
21800
$as_echo "$as_me: failed program was:" >&5
21801
sed 's/^/| /' conftest.$ac_ext >&5
21803
ac_header_preproc=no
21806
rm -f conftest.err conftest.$ac_ext
21807
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21808
$as_echo "$ac_header_preproc" >&6; }
21810
# So? What about this header?
21811
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21813
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21814
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21815
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21816
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21817
ac_header_preproc=yes
21820
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21821
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21822
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21823
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21824
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21825
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21826
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21827
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21828
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21829
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21830
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21831
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21833
## ----------------------------------------------------------------------- ##
21834
## Report this to https://bugzilla.gnome.org/enter_bug.cgi?product=gtk-vnc ##
21835
## ----------------------------------------------------------------------- ##
21837
) | sed "s/^/$as_me: WARNING: /" >&2
21840
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21841
$as_echo_n "checking for $ac_header... " >&6; }
21842
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21843
$as_echo_n "(cached) " >&6
21845
eval "$as_ac_Header=\$ac_header_preproc"
21847
ac_res=`eval 'as_val=${'$as_ac_Header'}
21848
$as_echo "$as_val"'`
21849
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21850
$as_echo "$ac_res" >&6; }
21853
as_val=`eval 'as_val=${'$as_ac_Header'}
21854
$as_echo "$as_val"'`
21855
if test "x$as_val" = x""yes; then
21856
cat >>confdefs.h <<_ACEOF
21857
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21865
if test "$ac_cv_header_winsock2_h" = yes; then
21877
{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
21878
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
21879
if test -z "$MKDIR_P"; then
21880
if test "${ac_cv_path_mkdir+set}" = set; then
21881
$as_echo_n "(cached) " >&6
21883
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21884
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
21887
test -z "$as_dir" && as_dir=.
21888
for ac_prog in mkdir gmkdir; do
21889
for ac_exec_ext in '' $ac_executable_extensions; do
21890
{ test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
21891
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
21892
'mkdir (GNU coreutils) '* | \
21893
'mkdir (coreutils) '* | \
21894
'mkdir (fileutils) '4.1*)
21895
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
21905
if test "${ac_cv_path_mkdir+set}" = set; then
21906
MKDIR_P="$ac_cv_path_mkdir -p"
21908
# As a last resort, use the slow shell script. Don't cache a
21909
# value for MKDIR_P within a source directory, because that will
21910
# break other packages using the cache if that directory is
21911
# removed, or if the value is a relative name.
21912
test -d ./--version && rmdir ./--version
21913
MKDIR_P="$ac_install_sh -d"
21916
{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
21917
$as_echo "$MKDIR_P" >&6; }
21933
if test $gl_cv_have_include_next = yes; then
21934
gl_cv_next_unistd_h='<'unistd.h'>'
21936
{ $as_echo "$as_me:$LINENO: checking absolute name of <unistd.h>" >&5
21937
$as_echo_n "checking absolute name of <unistd.h>... " >&6; }
21938
if test "${gl_cv_next_unistd_h+set}" = set; then
21939
$as_echo_n "(cached) " >&6
21942
if test $ac_cv_header_unistd_h = yes; then
21943
cat >conftest.$ac_ext <<_ACEOF
21946
cat confdefs.h >>conftest.$ac_ext
21947
cat >>conftest.$ac_ext <<_ACEOF
21948
/* end confdefs.h. */
21949
#include <unistd.h>
21952
gl_cv_next_unistd_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21953
sed -n '\#/unistd.h#{
21954
s#.*"\(.*/unistd.h\)".*#\1#
21960
gl_cv_next_unistd_h='<'unistd.h'>'
21964
{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_unistd_h" >&5
21965
$as_echo "$gl_cv_next_unistd_h" >&6; }
21967
NEXT_UNISTD_H=$gl_cv_next_unistd_h
21979
if test $ac_cv_header_unistd_h = yes; then
21994
if test $ac_cv_func_vasnprintf = no; then
22011
gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
22021
gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
22031
gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
22041
gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
22043
if test $ac_cv_func_vasnprintf = yes; then
22045
cat >>confdefs.h <<\_ACEOF
22046
#define REPLACE_VASNPRINTF 1
22060
{ $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
22061
$as_echo_n "checking for ptrdiff_t... " >&6; }
22062
if test "${ac_cv_type_ptrdiff_t+set}" = set; then
22063
$as_echo_n "(cached) " >&6
22065
ac_cv_type_ptrdiff_t=no
22066
cat >conftest.$ac_ext <<_ACEOF
22069
cat confdefs.h >>conftest.$ac_ext
22070
cat >>conftest.$ac_ext <<_ACEOF
22071
/* end confdefs.h. */
22072
$ac_includes_default
22076
if (sizeof (ptrdiff_t))
22082
rm -f conftest.$ac_objext
22083
if { (ac_try="$ac_compile"
22084
case "(($ac_try" in
22085
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22086
*) ac_try_echo=$ac_try;;
22088
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22089
$as_echo "$ac_try_echo") >&5
22090
(eval "$ac_compile") 2>conftest.er1
22092
grep -v '^ *+' conftest.er1 >conftest.err
22094
cat conftest.err >&5
22095
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22096
(exit $ac_status); } && {
22097
test -z "$ac_c_werror_flag" ||
22098
test ! -s conftest.err
22099
} && test -s conftest.$ac_objext; then
22100
cat >conftest.$ac_ext <<_ACEOF
22103
cat confdefs.h >>conftest.$ac_ext
22104
cat >>conftest.$ac_ext <<_ACEOF
22105
/* end confdefs.h. */
22106
$ac_includes_default
22110
if (sizeof ((ptrdiff_t)))
22116
rm -f conftest.$ac_objext
22117
if { (ac_try="$ac_compile"
22118
case "(($ac_try" in
22119
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22120
*) ac_try_echo=$ac_try;;
22122
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22123
$as_echo "$ac_try_echo") >&5
22124
(eval "$ac_compile") 2>conftest.er1
22126
grep -v '^ *+' conftest.er1 >conftest.err
22128
cat conftest.err >&5
22129
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22130
(exit $ac_status); } && {
22131
test -z "$ac_c_werror_flag" ||
22132
test ! -s conftest.err
22133
} && test -s conftest.$ac_objext; then
22136
$as_echo "$as_me: failed program was:" >&5
22137
sed 's/^/| /' conftest.$ac_ext >&5
22139
ac_cv_type_ptrdiff_t=yes
22142
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22144
$as_echo "$as_me: failed program was:" >&5
22145
sed 's/^/| /' conftest.$ac_ext >&5
22150
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22152
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
22153
$as_echo "$ac_cv_type_ptrdiff_t" >&6; }
22154
if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
22158
cat >>confdefs.h <<\_ACEOF
22159
#define ptrdiff_t long
22174
for ac_func in snprintf wcslen
22176
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22177
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22178
$as_echo_n "checking for $ac_func... " >&6; }
22179
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22180
$as_echo_n "(cached) " >&6
22182
cat >conftest.$ac_ext <<_ACEOF
22185
cat confdefs.h >>conftest.$ac_ext
22186
cat >>conftest.$ac_ext <<_ACEOF
22187
/* end confdefs.h. */
22188
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22189
For example, HP-UX 11i <limits.h> declares gettimeofday. */
22190
#define $ac_func innocuous_$ac_func
22192
/* System header to define __stub macros and hopefully few prototypes,
22193
which can conflict with char $ac_func (); below.
22194
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22195
<limits.h> exists even on freestanding compilers. */
22198
# include <limits.h>
22200
# include <assert.h>
22205
/* Override any GCC internal prototype to avoid an error.
22206
Use char because int might match the return type of a GCC
22207
builtin and then its argument prototype would still apply. */
22212
/* The GNU C library defines this for functions which it implements
22213
to always fail with ENOSYS. Some functions are actually named
22214
something starting with __ and the normal name is an alias. */
22215
#if defined __stub_$ac_func || defined __stub___$ac_func
22222
return $ac_func ();
22227
rm -f conftest.$ac_objext conftest$ac_exeext
22228
if { (ac_try="$ac_link"
22229
case "(($ac_try" in
22230
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22231
*) ac_try_echo=$ac_try;;
22233
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22234
$as_echo "$ac_try_echo") >&5
22235
(eval "$ac_link") 2>conftest.er1
22237
grep -v '^ *+' conftest.er1 >conftest.err
22239
cat conftest.err >&5
22240
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22241
(exit $ac_status); } && {
22242
test -z "$ac_c_werror_flag" ||
22243
test ! -s conftest.err
22244
} && test -s conftest$ac_exeext && {
22245
test "$cross_compiling" = yes ||
22246
$as_test_x conftest$ac_exeext
22248
eval "$as_ac_var=yes"
22250
$as_echo "$as_me: failed program was:" >&5
22251
sed 's/^/| /' conftest.$ac_ext >&5
22253
eval "$as_ac_var=no"
22256
rm -rf conftest.dSYM
22257
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22258
conftest$ac_exeext conftest.$ac_ext
22260
ac_res=`eval 'as_val=${'$as_ac_var'}
22261
$as_echo "$as_val"'`
22262
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22263
$as_echo "$ac_res" >&6; }
22264
as_val=`eval 'as_val=${'$as_ac_var'}
22265
$as_echo "$as_val"'`
22266
if test "x$as_val" = x""yes; then
22267
cat >>confdefs.h <<_ACEOF
22268
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22274
{ $as_echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
22275
$as_echo_n "checking whether _snprintf is declared... " >&6; }
22276
if test "${ac_cv_have_decl__snprintf+set}" = set; then
22277
$as_echo_n "(cached) " >&6
22279
cat >conftest.$ac_ext <<_ACEOF
22282
cat confdefs.h >>conftest.$ac_ext
22283
cat >>conftest.$ac_ext <<_ACEOF
22284
/* end confdefs.h. */
22298
rm -f conftest.$ac_objext
22299
if { (ac_try="$ac_compile"
22300
case "(($ac_try" in
22301
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22302
*) ac_try_echo=$ac_try;;
22304
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22305
$as_echo "$ac_try_echo") >&5
22306
(eval "$ac_compile") 2>conftest.er1
22308
grep -v '^ *+' conftest.er1 >conftest.err
22310
cat conftest.err >&5
22311
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22312
(exit $ac_status); } && {
22313
test -z "$ac_c_werror_flag" ||
22314
test ! -s conftest.err
22315
} && test -s conftest.$ac_objext; then
22316
ac_cv_have_decl__snprintf=yes
22318
$as_echo "$as_me: failed program was:" >&5
22319
sed 's/^/| /' conftest.$ac_ext >&5
22321
ac_cv_have_decl__snprintf=no
22324
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22326
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
22327
$as_echo "$ac_cv_have_decl__snprintf" >&6; }
22328
if test "x$ac_cv_have_decl__snprintf" = x""yes; then
22330
cat >>confdefs.h <<_ACEOF
22331
#define HAVE_DECL__SNPRINTF 1
22336
cat >>confdefs.h <<_ACEOF
22337
#define HAVE_DECL__SNPRINTF 0
22352
{ $as_echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
22353
$as_echo_n "checking whether <wchar.h> is standalone... " >&6; }
22354
if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
22355
$as_echo_n "(cached) " >&6
22357
cat >conftest.$ac_ext <<_ACEOF
22361
rm -f conftest.$ac_objext
22362
if { (ac_try="$ac_compile"
22363
case "(($ac_try" in
22364
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22365
*) ac_try_echo=$ac_try;;
22367
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22368
$as_echo "$ac_try_echo") >&5
22369
(eval "$ac_compile") 2>conftest.er1
22371
grep -v '^ *+' conftest.er1 >conftest.err
22373
cat conftest.err >&5
22374
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22375
(exit $ac_status); } && {
22376
test -z "$ac_c_werror_flag" ||
22377
test ! -s conftest.err
22378
} && test -s conftest.$ac_objext; then
22379
gl_cv_header_wchar_h_standalone=yes
22381
$as_echo "$as_me: failed program was:" >&5
22382
sed 's/^/| /' conftest.$ac_ext >&5
22384
gl_cv_header_wchar_h_standalone=no
22387
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22389
{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
22390
$as_echo "$gl_cv_header_wchar_h_standalone" >&6; }
22393
if test $gt_cv_c_wint_t = yes; then
22400
if test $gl_cv_header_wchar_h_standalone != yes || test $gt_cv_c_wint_t != yes; then
22411
if test $ac_cv_header_wchar_h = yes; then
22428
if test $gl_cv_have_include_next = yes; then
22429
gl_cv_next_wchar_h='<'wchar.h'>'
22431
{ $as_echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
22432
$as_echo_n "checking absolute name of <wchar.h>... " >&6; }
22433
if test "${gl_cv_next_wchar_h+set}" = set; then
22434
$as_echo_n "(cached) " >&6
22437
if test $ac_cv_header_wchar_h = yes; then
22438
cat >conftest.$ac_ext <<_ACEOF
22441
cat confdefs.h >>conftest.$ac_ext
22442
cat >>conftest.$ac_ext <<_ACEOF
22443
/* end confdefs.h. */
22447
gl_cv_next_wchar_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22448
sed -n '\#/wchar.h#{
22449
s#.*"\(.*/wchar.h\)".*#\1#
22455
gl_cv_next_wchar_h='<'wchar.h'>'
22459
{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
22460
$as_echo "$gl_cv_next_wchar_h" >&6; }
22462
NEXT_WCHAR_H=$gl_cv_next_wchar_h
22471
for ac_header in stdint.h
22473
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22474
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22475
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22476
$as_echo_n "checking for $ac_header... " >&6; }
22477
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22478
$as_echo_n "(cached) " >&6
22480
ac_res=`eval 'as_val=${'$as_ac_Header'}
22481
$as_echo "$as_val"'`
22482
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22483
$as_echo "$ac_res" >&6; }
22485
# Is the header compilable?
22486
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22487
$as_echo_n "checking $ac_header usability... " >&6; }
22488
cat >conftest.$ac_ext <<_ACEOF
22491
cat confdefs.h >>conftest.$ac_ext
22492
cat >>conftest.$ac_ext <<_ACEOF
22493
/* end confdefs.h. */
22494
$ac_includes_default
22495
#include <$ac_header>
22497
rm -f conftest.$ac_objext
22498
if { (ac_try="$ac_compile"
22499
case "(($ac_try" in
22500
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22501
*) ac_try_echo=$ac_try;;
22503
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22504
$as_echo "$ac_try_echo") >&5
22505
(eval "$ac_compile") 2>conftest.er1
22507
grep -v '^ *+' conftest.er1 >conftest.err
22509
cat conftest.err >&5
22510
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22511
(exit $ac_status); } && {
22512
test -z "$ac_c_werror_flag" ||
22513
test ! -s conftest.err
22514
} && test -s conftest.$ac_objext; then
22515
ac_header_compiler=yes
22517
$as_echo "$as_me: failed program was:" >&5
22518
sed 's/^/| /' conftest.$ac_ext >&5
22520
ac_header_compiler=no
22523
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22524
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22525
$as_echo "$ac_header_compiler" >&6; }
22527
# Is the header present?
22528
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22529
$as_echo_n "checking $ac_header presence... " >&6; }
22530
cat >conftest.$ac_ext <<_ACEOF
22533
cat confdefs.h >>conftest.$ac_ext
22534
cat >>conftest.$ac_ext <<_ACEOF
22535
/* end confdefs.h. */
22536
#include <$ac_header>
22538
if { (ac_try="$ac_cpp conftest.$ac_ext"
22539
case "(($ac_try" in
22540
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22541
*) ac_try_echo=$ac_try;;
22543
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22544
$as_echo "$ac_try_echo") >&5
22545
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22547
grep -v '^ *+' conftest.er1 >conftest.err
22549
cat conftest.err >&5
22550
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22551
(exit $ac_status); } >/dev/null && {
22552
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22553
test ! -s conftest.err
22555
ac_header_preproc=yes
22557
$as_echo "$as_me: failed program was:" >&5
22558
sed 's/^/| /' conftest.$ac_ext >&5
22560
ac_header_preproc=no
22563
rm -f conftest.err conftest.$ac_ext
22564
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22565
$as_echo "$ac_header_preproc" >&6; }
22567
# So? What about this header?
22568
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22570
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22571
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22572
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22573
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22574
ac_header_preproc=yes
22577
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22578
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22579
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22580
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22581
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22582
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22583
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22584
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22585
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22586
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22587
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22588
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22590
## ----------------------------------------------------------------------- ##
22591
## Report this to https://bugzilla.gnome.org/enter_bug.cgi?product=gtk-vnc ##
22592
## ----------------------------------------------------------------------- ##
22594
) | sed "s/^/$as_me: WARNING: /" >&2
22597
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22598
$as_echo_n "checking for $ac_header... " >&6; }
22599
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22600
$as_echo_n "(cached) " >&6
22602
eval "$as_ac_Header=\$ac_header_preproc"
22604
ac_res=`eval 'as_val=${'$as_ac_Header'}
22605
$as_echo "$as_val"'`
22606
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22607
$as_echo "$ac_res" >&6; }
22610
as_val=`eval 'as_val=${'$as_ac_Header'}
22611
$as_echo "$as_val"'`
22612
if test "x$as_val" = x""yes; then
22613
cat >>confdefs.h <<_ACEOF
22614
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22641
gl_source_base='gnulib/tests'
22643
{ $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
22644
$as_echo_n "checking for wchar_t... " >&6; }
22645
if test "${gt_cv_c_wchar_t+set}" = set; then
22646
$as_echo_n "(cached) " >&6
22648
cat >conftest.$ac_ext <<_ACEOF
22651
cat confdefs.h >>conftest.$ac_ext
22652
cat >>conftest.$ac_ext <<_ACEOF
22653
/* end confdefs.h. */
22654
#include <stddef.h>
22655
wchar_t foo = (wchar_t)'\0';
22664
rm -f conftest.$ac_objext
22665
if { (ac_try="$ac_compile"
22666
case "(($ac_try" in
22667
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22668
*) ac_try_echo=$ac_try;;
22670
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22671
$as_echo "$ac_try_echo") >&5
22672
(eval "$ac_compile") 2>conftest.er1
22674
grep -v '^ *+' conftest.er1 >conftest.err
22676
cat conftest.err >&5
22677
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22678
(exit $ac_status); } && {
22679
test -z "$ac_c_werror_flag" ||
22680
test ! -s conftest.err
22681
} && test -s conftest.$ac_objext; then
22682
gt_cv_c_wchar_t=yes
22684
$as_echo "$as_me: failed program was:" >&5
22685
sed 's/^/| /' conftest.$ac_ext >&5
22690
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22692
{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
22693
$as_echo "$gt_cv_c_wchar_t" >&6; }
22694
if test $gt_cv_c_wchar_t = yes; then
22696
cat >>confdefs.h <<\_ACEOF
22697
#define HAVE_WCHAR_T 1
22703
{ $as_echo "$as_me:$LINENO: checking for wint_t" >&5
22704
$as_echo_n "checking for wint_t... " >&6; }
22705
if test "${gt_cv_c_wint_t+set}" = set; then
22706
$as_echo_n "(cached) " >&6
22708
cat >conftest.$ac_ext <<_ACEOF
22711
cat confdefs.h >>conftest.$ac_ext
22712
cat >>conftest.$ac_ext <<_ACEOF
22713
/* end confdefs.h. */
22715
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22717
BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
22718
before <wchar.h>. */
22719
#include <stddef.h>
22723
wint_t foo = (wchar_t)'\0';
22732
rm -f conftest.$ac_objext
22733
if { (ac_try="$ac_compile"
22734
case "(($ac_try" in
22735
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22736
*) ac_try_echo=$ac_try;;
22738
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22739
$as_echo "$ac_try_echo") >&5
22740
(eval "$ac_compile") 2>conftest.er1
22742
grep -v '^ *+' conftest.er1 >conftest.err
22744
cat conftest.err >&5
22745
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22746
(exit $ac_status); } && {
22747
test -z "$ac_c_werror_flag" ||
22748
test ! -s conftest.err
22749
} && test -s conftest.$ac_objext; then
22752
$as_echo "$as_me: failed program was:" >&5
22753
sed 's/^/| /' conftest.$ac_ext >&5
22758
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22760
{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
22761
$as_echo "$gt_cv_c_wint_t" >&6; }
22762
if test $gt_cv_c_wint_t = yes; then
22764
cat >>confdefs.h <<\_ACEOF
22765
#define HAVE_WINT_T 1
22771
for ac_func in shutdown
22773
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22774
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22775
$as_echo_n "checking for $ac_func... " >&6; }
22776
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22777
$as_echo_n "(cached) " >&6
22779
cat >conftest.$ac_ext <<_ACEOF
22782
cat confdefs.h >>conftest.$ac_ext
22783
cat >>conftest.$ac_ext <<_ACEOF
22784
/* end confdefs.h. */
22785
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22786
For example, HP-UX 11i <limits.h> declares gettimeofday. */
22787
#define $ac_func innocuous_$ac_func
22789
/* System header to define __stub macros and hopefully few prototypes,
22790
which can conflict with char $ac_func (); below.
22791
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22792
<limits.h> exists even on freestanding compilers. */
22795
# include <limits.h>
22797
# include <assert.h>
22802
/* Override any GCC internal prototype to avoid an error.
22803
Use char because int might match the return type of a GCC
22804
builtin and then its argument prototype would still apply. */
22809
/* The GNU C library defines this for functions which it implements
22810
to always fail with ENOSYS. Some functions are actually named
22811
something starting with __ and the normal name is an alias. */
22812
#if defined __stub_$ac_func || defined __stub___$ac_func
22819
return $ac_func ();
22824
rm -f conftest.$ac_objext conftest$ac_exeext
22825
if { (ac_try="$ac_link"
22826
case "(($ac_try" in
22827
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22828
*) ac_try_echo=$ac_try;;
22830
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22831
$as_echo "$ac_try_echo") >&5
22832
(eval "$ac_link") 2>conftest.er1
22834
grep -v '^ *+' conftest.er1 >conftest.err
22836
cat conftest.err >&5
22837
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22838
(exit $ac_status); } && {
22839
test -z "$ac_c_werror_flag" ||
22840
test ! -s conftest.err
22841
} && test -s conftest$ac_exeext && {
22842
test "$cross_compiling" = yes ||
22843
$as_test_x conftest$ac_exeext
22845
eval "$as_ac_var=yes"
22847
$as_echo "$as_me: failed program was:" >&5
22848
sed 's/^/| /' conftest.$ac_ext >&5
22850
eval "$as_ac_var=no"
22853
rm -rf conftest.dSYM
22854
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22855
conftest$ac_exeext conftest.$ac_ext
22857
ac_res=`eval 'as_val=${'$as_ac_var'}
22858
$as_echo "$as_val"'`
22859
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22860
$as_echo "$ac_res" >&6; }
22861
as_val=`eval 'as_val=${'$as_ac_var'}
22862
$as_echo "$as_val"'`
22863
if test "x$as_val" = x""yes; then
22864
cat >>confdefs.h <<_ACEOF
22865
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22871
abs_aux_dir=`cd "$ac_aux_dir"; pwd`
22880
LIBTESTS_LIBDEPS="$gltests_libdeps"
22885
case $ac_cv_prog_cc_stdc in
22886
no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
22887
*) { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
22888
$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
22889
if test "${ac_cv_prog_cc_c99+set}" = set; then
22890
$as_echo_n "(cached) " >&6
22892
ac_cv_prog_cc_c99=no
22894
cat >conftest.$ac_ext <<_ACEOF
22897
cat confdefs.h >>conftest.$ac_ext
22898
cat >>conftest.$ac_ext <<_ACEOF
22899
/* end confdefs.h. */
22900
#include <stdarg.h>
22901
#include <stdbool.h>
22902
#include <stdlib.h>
22906
// Check varargs macros. These examples are taken from C99 6.10.3.5.
22907
#define debug(...) fprintf (stderr, __VA_ARGS__)
22908
#define showlist(...) puts (#__VA_ARGS__)
22909
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
22911
test_varargs_macros (void)
22916
debug ("X = %d\n", x);
22917
showlist (The first, second, and third items.);
22918
report (x>y, "x is %d but y is %d", x, y);
22921
// Check long long types.
22922
#define BIG64 18446744073709551615ull
22923
#define BIG32 4294967295ul
22924
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
22926
your preprocessor is broken;
22930
your preprocessor is broken;
22932
static long long int bignum = -9223372036854775807LL;
22933
static unsigned long long int ubignum = BIG64;
22935
struct incomplete_array
22941
struct named_init {
22943
const wchar_t *name;
22947
typedef const char *ccp;
22950
test_restrict (ccp restrict text)
22952
// See if C++-style comments work.
22953
// Iterate through items via the restricted pointer.
22954
// Also check for declarations in for loops.
22955
for (unsigned int i = 0; *(text+i) != '\0'; ++i)
22960
// Check varargs and va_copy.
22962
test_varargs (const char *format, ...)
22965
va_start (args, format);
22967
va_copy (args_copy, args);
22977
case 's': // string
22978
str = va_arg (args_copy, const char *);
22981
number = va_arg (args_copy, int);
22984
fnumber = va_arg (args_copy, double);
22990
va_end (args_copy);
22999
_Bool success = false;
23002
if (test_restrict ("String literal") == 0)
23004
char *restrict newvar = "Another string";
23007
test_varargs ("s, d' f .", "string", 65, 34.234);
23008
test_varargs_macros ();
23010
// Check flexible array members.
23011
struct incomplete_array *ia =
23012
malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
23014
for (int i = 0; i < ia->datasize; ++i)
23015
ia->data[i] = i * 1.234;
23017
// Check named initializers.
23018
struct named_init ni = {
23020
.name = L"Test wide string",
23021
.average = 543.34343,
23026
int dynamic_array[ni.number];
23027
dynamic_array[ni.number - 1] = 543;
23029
// work around unused variable warnings
23030
return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
23031
|| dynamic_array[ni.number - 1] != 543);
23037
for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
23039
CC="$ac_save_CC $ac_arg"
23040
rm -f conftest.$ac_objext
23041
if { (ac_try="$ac_compile"
23042
case "(($ac_try" in
23043
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23044
*) ac_try_echo=$ac_try;;
23046
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23047
$as_echo "$ac_try_echo") >&5
23048
(eval "$ac_compile") 2>conftest.er1
23050
grep -v '^ *+' conftest.er1 >conftest.err
23052
cat conftest.err >&5
23053
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23054
(exit $ac_status); } && {
23055
test -z "$ac_c_werror_flag" ||
23056
test ! -s conftest.err
23057
} && test -s conftest.$ac_objext; then
23058
ac_cv_prog_cc_c99=$ac_arg
23060
$as_echo "$as_me: failed program was:" >&5
23061
sed 's/^/| /' conftest.$ac_ext >&5
23066
rm -f core conftest.err conftest.$ac_objext
23067
test "x$ac_cv_prog_cc_c99" != "xno" && break
23069
rm -f conftest.$ac_ext
23074
case "x$ac_cv_prog_cc_c99" in
23076
{ $as_echo "$as_me:$LINENO: result: none needed" >&5
23077
$as_echo "none needed" >&6; } ;;
23079
{ $as_echo "$as_me:$LINENO: result: unsupported" >&5
23080
$as_echo "unsupported" >&6; } ;;
23082
CC="$CC $ac_cv_prog_cc_c99"
23083
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
23084
$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
23086
if test "x$ac_cv_prog_cc_c99" != xno; then
23087
ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
23089
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
23090
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
23091
if test "${ac_cv_prog_cc_c89+set}" = set; then
23092
$as_echo_n "(cached) " >&6
23094
ac_cv_prog_cc_c89=no
23096
cat >conftest.$ac_ext <<_ACEOF
23099
cat confdefs.h >>conftest.$ac_ext
23100
cat >>conftest.$ac_ext <<_ACEOF
23101
/* end confdefs.h. */
23102
#include <stdarg.h>
23104
#include <sys/types.h>
23105
#include <sys/stat.h>
23106
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
23107
struct buf { int x; };
23108
FILE * (*rcsopen) (struct buf *, struct stat *, int);
23109
static char *e (p, i)
23115
static char *f (char * (*g) (char **, int), char **p, ...)
23120
s = g (p, va_arg (v,int));
23125
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
23126
function prototypes and stuff, but not '\xHH' hex character constants.
23127
These don't provoke an error unfortunately, instead are silently treated
23128
as 'x'. The following induces an error, until -std is added to get
23129
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
23130
array size at least. It's necessary to write '\x00'==0 to get something
23131
that's true only with -std. */
23132
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
23134
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
23135
inside strings and character constants. */
23137
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
23139
int test (int i, double x);
23140
struct s1 {int (*f) (int a);};
23141
struct s2 {int (*f) (double a);};
23142
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
23148
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
23153
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
23154
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
23156
CC="$ac_save_CC $ac_arg"
23157
rm -f conftest.$ac_objext
23158
if { (ac_try="$ac_compile"
23159
case "(($ac_try" in
23160
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23161
*) ac_try_echo=$ac_try;;
23163
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23164
$as_echo "$ac_try_echo") >&5
23165
(eval "$ac_compile") 2>conftest.er1
23167
grep -v '^ *+' conftest.er1 >conftest.err
23169
cat conftest.err >&5
23170
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23171
(exit $ac_status); } && {
23172
test -z "$ac_c_werror_flag" ||
23173
test ! -s conftest.err
23174
} && test -s conftest.$ac_objext; then
23175
ac_cv_prog_cc_c89=$ac_arg
23177
$as_echo "$as_me: failed program was:" >&5
23178
sed 's/^/| /' conftest.$ac_ext >&5
23183
rm -f core conftest.err conftest.$ac_objext
23184
test "x$ac_cv_prog_cc_c89" != "xno" && break
23186
rm -f conftest.$ac_ext
23191
case "x$ac_cv_prog_cc_c89" in
23193
{ $as_echo "$as_me:$LINENO: result: none needed" >&5
23194
$as_echo "none needed" >&6; } ;;
23196
{ $as_echo "$as_me:$LINENO: result: unsupported" >&5
23197
$as_echo "unsupported" >&6; } ;;
23199
CC="$CC $ac_cv_prog_cc_c89"
23200
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
23201
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
23203
if test "x$ac_cv_prog_cc_c89" != xno; then
23204
ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
23206
ac_cv_prog_cc_stdc=no
23214
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
23215
$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
23216
if test "${ac_cv_prog_cc_stdc+set}" = set; then
23217
$as_echo_n "(cached) " >&6
23220
case $ac_cv_prog_cc_stdc in
23221
no) { $as_echo "$as_me:$LINENO: result: unsupported" >&5
23222
$as_echo "unsupported" >&6; } ;;
23223
'') { $as_echo "$as_me:$LINENO: result: none needed" >&5
23224
$as_echo "none needed" >&6; } ;;
23225
*) { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
23226
$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
23230
if test "x$CC" != xcc; then
23231
{ $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
23232
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
23234
{ $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
23235
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
23237
set dummy $CC; ac_cc=`$as_echo "$2" |
23238
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
23239
if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
23240
$as_echo_n "(cached) " >&6
23242
cat >conftest.$ac_ext <<_ACEOF
23245
cat confdefs.h >>conftest.$ac_ext
23246
cat >>conftest.$ac_ext <<_ACEOF
23247
/* end confdefs.h. */
23257
# Make sure it works both with $CC and with simple cc.
23258
# We do the test twice because some compilers refuse to overwrite an
23259
# existing .o file with -o, though they will create one.
23260
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
23262
if { (case "(($ac_try" in
23263
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23264
*) ac_try_echo=$ac_try;;
23266
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23267
$as_echo "$ac_try_echo") >&5
23268
(eval "$ac_try") 2>&5
23270
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23271
(exit $ac_status); } &&
23272
test -f conftest2.$ac_objext && { (case "(($ac_try" in
23273
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23274
*) ac_try_echo=$ac_try;;
23276
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23277
$as_echo "$ac_try_echo") >&5
23278
(eval "$ac_try") 2>&5
23280
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23281
(exit $ac_status); };
23283
eval ac_cv_prog_cc_${ac_cc}_c_o=yes
23284
if test "x$CC" != xcc; then
23285
# Test first that cc exists at all.
23286
if { ac_try='cc -c conftest.$ac_ext >&5'
23287
{ (case "(($ac_try" in
23288
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23289
*) ac_try_echo=$ac_try;;
23291
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23292
$as_echo "$ac_try_echo") >&5
23293
(eval "$ac_try") 2>&5
23295
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23296
(exit $ac_status); }; }; then
23297
ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
23299
if { (case "(($ac_try" in
23300
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23301
*) ac_try_echo=$ac_try;;
23303
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23304
$as_echo "$ac_try_echo") >&5
23305
(eval "$ac_try") 2>&5
23307
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23308
(exit $ac_status); } &&
23309
test -f conftest2.$ac_objext && { (case "(($ac_try" in
23310
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23311
*) ac_try_echo=$ac_try;;
23313
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23314
$as_echo "$ac_try_echo") >&5
23315
(eval "$ac_try") 2>&5
23317
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23318
(exit $ac_status); };
23323
# cc exists but doesn't like -o.
23324
eval ac_cv_prog_cc_${ac_cc}_c_o=no
23329
eval ac_cv_prog_cc_${ac_cc}_c_o=no
23331
rm -f core conftest*
23334
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
23335
{ $as_echo "$as_me:$LINENO: result: yes" >&5
23336
$as_echo "yes" >&6; }
23338
{ $as_echo "$as_me:$LINENO: result: no" >&5
23339
$as_echo "no" >&6; }
23341
cat >>confdefs.h <<\_ACEOF
23342
#define NO_MINUS_C_MINUS_O 1
23347
# FIXME: we rely on the cache variable name because
23348
# there is no other way.
23350
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
23351
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
23352
if test "$am_t" != yes; then
23353
# Losing compiler, so override with the script.
23354
# FIXME: It is wrong to rewrite CC.
23355
# But if we don't then we get into trouble of one sort or another.
23356
# A longer-term fix would be to have automake use am__CC in this case,
23357
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
23358
CC="$am_aux_dir/compile $CC"
23119
23363
GETTEXT_PACKAGE=gtk-vnc