6408
# Check whether --enable-dns-srv or --disable-dns-srv was given.
7642
# Now try for the resolver functions so we can use DNS for SRV, PA and CERT.
7644
if test x"$try_hkp" = xyes || test x"$try_http" = xyes ; then
7645
# Check whether --enable-dns-srv was given.
6409
7646
if test "${enable_dns_srv+set}" = set; then
6410
enableval="$enable_dns_srv"
6411
use_dns_srv=$enableval
7647
enableval=$enable_dns_srv; use_dns_srv=$enableval
6413
7649
use_dns_srv=yes
6416
if test x"$try_hkp" = xyes && test x"$use_dns_srv" = xyes ; then
6417
_srv_save_libs=$LIBS
7654
# Check whether --enable-dns-pka was given.
7655
if test "${enable_dns_pka+set}" = set; then
7656
enableval=$enable_dns_pka; use_dns_pka=$enableval
7662
# Check whether --enable-dns-cert was given.
7663
if test "${enable_dns_cert+set}" = set; then
7664
enableval=$enable_dns_cert; use_dns_cert=$enableval
7670
if test x"$use_dns_pka" = xyes || test x"$use_dns_srv" = xyes \
7671
|| test x"$use_dns_cert" = xyes; then
7672
_dns_save_libs=$LIBS
6419
7674
# the double underscore thing is a glibc-ism?
6420
echo "$as_me:$LINENO: checking for library containing res_query" >&5
6421
echo $ECHO_N "checking for library containing res_query... $ECHO_C" >&6
6422
if test "${ac_cv_search_res_query+set}" = set; then
6423
echo $ECHO_N "(cached) $ECHO_C" >&6
6425
ac_func_search_save_LIBS=$LIBS
6426
ac_cv_search_res_query=no
6427
cat >conftest.$ac_ext <<_ACEOF
6430
cat confdefs.h >>conftest.$ac_ext
6431
cat >>conftest.$ac_ext <<_ACEOF
6432
/* end confdefs.h. */
6434
/* Override any gcc2 internal prototype to avoid an error. */
6438
/* We use char because int might match the return type of a gcc2
6439
builtin and then its argument prototype would still apply. */
6449
rm -f conftest.$ac_objext conftest$ac_exeext
6450
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6451
(eval $ac_link) 2>conftest.er1
6453
grep -v '^ *+' conftest.er1 >conftest.err
6455
cat conftest.err >&5
6456
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457
(exit $ac_status); } &&
6458
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6459
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6462
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463
(exit $ac_status); }; } &&
6464
{ ac_try='test -s conftest$ac_exeext'
6465
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6468
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469
(exit $ac_status); }; }; then
6470
ac_cv_search_res_query="none required"
6472
echo "$as_me: failed program was:" >&5
6473
sed 's/^/| /' conftest.$ac_ext >&5
6476
rm -f conftest.err conftest.$ac_objext \
6477
conftest$ac_exeext conftest.$ac_ext
6478
if test "$ac_cv_search_res_query" = no; then
6479
for ac_lib in resolv bind; do
6480
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6481
cat >conftest.$ac_ext <<_ACEOF
6484
cat confdefs.h >>conftest.$ac_ext
6485
cat >>conftest.$ac_ext <<_ACEOF
6486
/* end confdefs.h. */
6488
/* Override any gcc2 internal prototype to avoid an error. */
6492
/* We use char because int might match the return type of a gcc2
6493
builtin and then its argument prototype would still apply. */
6503
rm -f conftest.$ac_objext conftest$ac_exeext
6504
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6505
(eval $ac_link) 2>conftest.er1
6507
grep -v '^ *+' conftest.er1 >conftest.err
6509
cat conftest.err >&5
6510
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511
(exit $ac_status); } &&
6512
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6513
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6516
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517
(exit $ac_status); }; } &&
6518
{ ac_try='test -s conftest$ac_exeext'
6519
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6522
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523
(exit $ac_status); }; }; then
6524
ac_cv_search_res_query="-l$ac_lib"
6527
echo "$as_me: failed program was:" >&5
6528
sed 's/^/| /' conftest.$ac_ext >&5
6531
rm -f conftest.err conftest.$ac_objext \
6532
conftest$ac_exeext conftest.$ac_ext
6535
LIBS=$ac_func_search_save_LIBS
6537
echo "$as_me:$LINENO: result: $ac_cv_search_res_query" >&5
6538
echo "${ECHO_T}$ac_cv_search_res_query" >&6
6539
if test "$ac_cv_search_res_query" != no; then
6540
test "$ac_cv_search_res_query" = "none required" || LIBS="$ac_cv_search_res_query $LIBS"
6543
echo "$as_me:$LINENO: checking for library containing __res_query" >&5
6544
echo $ECHO_N "checking for library containing __res_query... $ECHO_C" >&6
6545
if test "${ac_cv_search___res_query+set}" = set; then
6546
echo $ECHO_N "(cached) $ECHO_C" >&6
6548
ac_func_search_save_LIBS=$LIBS
6549
ac_cv_search___res_query=no
6550
cat >conftest.$ac_ext <<_ACEOF
6553
cat confdefs.h >>conftest.$ac_ext
6554
cat >>conftest.$ac_ext <<_ACEOF
6555
/* end confdefs.h. */
6557
/* Override any gcc2 internal prototype to avoid an error. */
6561
/* We use char because int might match the return type of a gcc2
6562
builtin and then its argument prototype would still apply. */
6563
char __res_query ();
6572
rm -f conftest.$ac_objext conftest$ac_exeext
6573
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6574
(eval $ac_link) 2>conftest.er1
6576
grep -v '^ *+' conftest.er1 >conftest.err
6578
cat conftest.err >&5
6579
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580
(exit $ac_status); } &&
6581
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6582
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6585
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586
(exit $ac_status); }; } &&
6587
{ ac_try='test -s conftest$ac_exeext'
6588
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6591
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6592
(exit $ac_status); }; }; then
6593
ac_cv_search___res_query="none required"
6595
echo "$as_me: failed program was:" >&5
6596
sed 's/^/| /' conftest.$ac_ext >&5
6599
rm -f conftest.err conftest.$ac_objext \
6600
conftest$ac_exeext conftest.$ac_ext
6601
if test "$ac_cv_search___res_query" = no; then
6602
for ac_lib in resolv bind; do
6603
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6604
cat >conftest.$ac_ext <<_ACEOF
6607
cat confdefs.h >>conftest.$ac_ext
6608
cat >>conftest.$ac_ext <<_ACEOF
6609
/* end confdefs.h. */
6611
/* Override any gcc2 internal prototype to avoid an error. */
6615
/* We use char because int might match the return type of a gcc2
6616
builtin and then its argument prototype would still apply. */
6617
char __res_query ();
6626
rm -f conftest.$ac_objext conftest$ac_exeext
6627
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6628
(eval $ac_link) 2>conftest.er1
6630
grep -v '^ *+' conftest.er1 >conftest.err
6632
cat conftest.err >&5
6633
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634
(exit $ac_status); } &&
6635
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6636
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6639
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640
(exit $ac_status); }; } &&
6641
{ ac_try='test -s conftest$ac_exeext'
6642
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6645
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646
(exit $ac_status); }; }; then
6647
ac_cv_search___res_query="-l$ac_lib"
6650
echo "$as_me: failed program was:" >&5
6651
sed 's/^/| /' conftest.$ac_ext >&5
6654
rm -f conftest.err conftest.$ac_objext \
6655
conftest$ac_exeext conftest.$ac_ext
6658
LIBS=$ac_func_search_save_LIBS
6660
echo "$as_me:$LINENO: result: $ac_cv_search___res_query" >&5
6661
echo "${ECHO_T}$ac_cv_search___res_query" >&6
6662
if test "$ac_cv_search___res_query" != no; then
6663
test "$ac_cv_search___res_query" = "none required" || LIBS="$ac_cv_search___res_query $LIBS"
6671
echo "$as_me:$LINENO: checking for library containing dn_expand" >&5
6672
echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6
6673
if test "${ac_cv_search_dn_expand+set}" = set; then
6674
echo $ECHO_N "(cached) $ECHO_C" >&6
6676
ac_func_search_save_LIBS=$LIBS
6677
ac_cv_search_dn_expand=no
6678
cat >conftest.$ac_ext <<_ACEOF
6681
cat confdefs.h >>conftest.$ac_ext
6682
cat >>conftest.$ac_ext <<_ACEOF
6683
/* end confdefs.h. */
6685
/* Override any gcc2 internal prototype to avoid an error. */
6689
/* We use char because int might match the return type of a gcc2
6690
builtin and then its argument prototype would still apply. */
6700
rm -f conftest.$ac_objext conftest$ac_exeext
6701
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6702
(eval $ac_link) 2>conftest.er1
6704
grep -v '^ *+' conftest.er1 >conftest.err
6706
cat conftest.err >&5
6707
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708
(exit $ac_status); } &&
6709
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6710
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6713
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714
(exit $ac_status); }; } &&
6715
{ ac_try='test -s conftest$ac_exeext'
6716
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6719
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720
(exit $ac_status); }; }; then
6721
ac_cv_search_dn_expand="none required"
6723
echo "$as_me: failed program was:" >&5
6724
sed 's/^/| /' conftest.$ac_ext >&5
6727
rm -f conftest.err conftest.$ac_objext \
6728
conftest$ac_exeext conftest.$ac_ext
6729
if test "$ac_cv_search_dn_expand" = no; then
6730
for ac_lib in resolv bind; do
6731
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6732
cat >conftest.$ac_ext <<_ACEOF
6735
cat confdefs.h >>conftest.$ac_ext
6736
cat >>conftest.$ac_ext <<_ACEOF
6737
/* end confdefs.h. */
6739
/* Override any gcc2 internal prototype to avoid an error. */
6743
/* We use char because int might match the return type of a gcc2
6744
builtin and then its argument prototype would still apply. */
6754
rm -f conftest.$ac_objext conftest$ac_exeext
6755
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6756
(eval $ac_link) 2>conftest.er1
6758
grep -v '^ *+' conftest.er1 >conftest.err
6760
cat conftest.err >&5
6761
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762
(exit $ac_status); } &&
6763
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6764
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6767
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768
(exit $ac_status); }; } &&
6769
{ ac_try='test -s conftest$ac_exeext'
6770
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6773
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774
(exit $ac_status); }; }; then
6775
ac_cv_search_dn_expand="-l$ac_lib"
6778
echo "$as_me: failed program was:" >&5
6779
sed 's/^/| /' conftest.$ac_ext >&5
6782
rm -f conftest.err conftest.$ac_objext \
6783
conftest$ac_exeext conftest.$ac_ext
6786
LIBS=$ac_func_search_save_LIBS
6788
echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5
6789
echo "${ECHO_T}$ac_cv_search_dn_expand" >&6
6790
if test "$ac_cv_search_dn_expand" != no; then
6791
test "$ac_cv_search_dn_expand" = "none required" || LIBS="$ac_cv_search_dn_expand $LIBS"
6794
echo "$as_me:$LINENO: checking for library containing __dn_expand" >&5
6795
echo $ECHO_N "checking for library containing __dn_expand... $ECHO_C" >&6
6796
if test "${ac_cv_search___dn_expand+set}" = set; then
6797
echo $ECHO_N "(cached) $ECHO_C" >&6
6799
ac_func_search_save_LIBS=$LIBS
6800
ac_cv_search___dn_expand=no
6801
cat >conftest.$ac_ext <<_ACEOF
6804
cat confdefs.h >>conftest.$ac_ext
6805
cat >>conftest.$ac_ext <<_ACEOF
6806
/* end confdefs.h. */
6808
/* Override any gcc2 internal prototype to avoid an error. */
6812
/* We use char because int might match the return type of a gcc2
6813
builtin and then its argument prototype would still apply. */
6814
char __dn_expand ();
6823
rm -f conftest.$ac_objext conftest$ac_exeext
6824
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6825
(eval $ac_link) 2>conftest.er1
6827
grep -v '^ *+' conftest.er1 >conftest.err
6829
cat conftest.err >&5
6830
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831
(exit $ac_status); } &&
6832
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6833
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6836
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837
(exit $ac_status); }; } &&
6838
{ ac_try='test -s conftest$ac_exeext'
6839
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6842
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843
(exit $ac_status); }; }; then
6844
ac_cv_search___dn_expand="none required"
6846
echo "$as_me: failed program was:" >&5
6847
sed 's/^/| /' conftest.$ac_ext >&5
6850
rm -f conftest.err conftest.$ac_objext \
6851
conftest$ac_exeext conftest.$ac_ext
6852
if test "$ac_cv_search___dn_expand" = no; then
6853
for ac_lib in resolv bind; do
6854
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6855
cat >conftest.$ac_ext <<_ACEOF
6858
cat confdefs.h >>conftest.$ac_ext
6859
cat >>conftest.$ac_ext <<_ACEOF
6860
/* end confdefs.h. */
6862
/* Override any gcc2 internal prototype to avoid an error. */
6866
/* We use char because int might match the return type of a gcc2
6867
builtin and then its argument prototype would still apply. */
6868
char __dn_expand ();
6877
rm -f conftest.$ac_objext conftest$ac_exeext
6878
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6879
(eval $ac_link) 2>conftest.er1
6881
grep -v '^ *+' conftest.er1 >conftest.err
6883
cat conftest.err >&5
6884
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885
(exit $ac_status); } &&
6886
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6887
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6890
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891
(exit $ac_status); }; } &&
6892
{ ac_try='test -s conftest$ac_exeext'
6893
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6896
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897
(exit $ac_status); }; }; then
6898
ac_cv_search___dn_expand="-l$ac_lib"
6901
echo "$as_me: failed program was:" >&5
6902
sed 's/^/| /' conftest.$ac_ext >&5
6905
rm -f conftest.err conftest.$ac_objext \
6906
conftest$ac_exeext conftest.$ac_ext
6909
LIBS=$ac_func_search_save_LIBS
6911
echo "$as_me:$LINENO: result: $ac_cv_search___dn_expand" >&5
6912
echo "${ECHO_T}$ac_cv_search___dn_expand" >&6
6913
if test "$ac_cv_search___dn_expand" != no; then
6914
test "$ac_cv_search___dn_expand" = "none required" || LIBS="$ac_cv_search___dn_expand $LIBS"
6922
echo "$as_me:$LINENO: checking for library containing dn_skipname" >&5
6923
echo $ECHO_N "checking for library containing dn_skipname... $ECHO_C" >&6
6924
if test "${ac_cv_search_dn_skipname+set}" = set; then
6925
echo $ECHO_N "(cached) $ECHO_C" >&6
6927
ac_func_search_save_LIBS=$LIBS
6928
ac_cv_search_dn_skipname=no
6929
cat >conftest.$ac_ext <<_ACEOF
6932
cat confdefs.h >>conftest.$ac_ext
6933
cat >>conftest.$ac_ext <<_ACEOF
6934
/* end confdefs.h. */
6936
/* Override any gcc2 internal prototype to avoid an error. */
6940
/* We use char because int might match the return type of a gcc2
6941
builtin and then its argument prototype would still apply. */
6942
char dn_skipname ();
6951
rm -f conftest.$ac_objext conftest$ac_exeext
6952
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6953
(eval $ac_link) 2>conftest.er1
6955
grep -v '^ *+' conftest.er1 >conftest.err
6957
cat conftest.err >&5
6958
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959
(exit $ac_status); } &&
6960
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6961
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6964
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965
(exit $ac_status); }; } &&
6966
{ ac_try='test -s conftest$ac_exeext'
6967
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6970
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971
(exit $ac_status); }; }; then
6972
ac_cv_search_dn_skipname="none required"
6974
echo "$as_me: failed program was:" >&5
6975
sed 's/^/| /' conftest.$ac_ext >&5
6978
rm -f conftest.err conftest.$ac_objext \
6979
conftest$ac_exeext conftest.$ac_ext
6980
if test "$ac_cv_search_dn_skipname" = no; then
6981
for ac_lib in resolv bind; do
6982
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6983
cat >conftest.$ac_ext <<_ACEOF
6986
cat confdefs.h >>conftest.$ac_ext
6987
cat >>conftest.$ac_ext <<_ACEOF
6988
/* end confdefs.h. */
6990
/* Override any gcc2 internal prototype to avoid an error. */
6994
/* We use char because int might match the return type of a gcc2
6995
builtin and then its argument prototype would still apply. */
6996
char dn_skipname ();
7005
rm -f conftest.$ac_objext conftest$ac_exeext
7006
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7007
(eval $ac_link) 2>conftest.er1
7009
grep -v '^ *+' conftest.er1 >conftest.err
7011
cat conftest.err >&5
7012
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013
(exit $ac_status); } &&
7014
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7015
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7018
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019
(exit $ac_status); }; } &&
7020
{ ac_try='test -s conftest$ac_exeext'
7021
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7024
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025
(exit $ac_status); }; }; then
7026
ac_cv_search_dn_skipname="-l$ac_lib"
7029
echo "$as_me: failed program was:" >&5
7030
sed 's/^/| /' conftest.$ac_ext >&5
7033
rm -f conftest.err conftest.$ac_objext \
7034
conftest$ac_exeext conftest.$ac_ext
7037
LIBS=$ac_func_search_save_LIBS
7039
echo "$as_me:$LINENO: result: $ac_cv_search_dn_skipname" >&5
7040
echo "${ECHO_T}$ac_cv_search_dn_skipname" >&6
7041
if test "$ac_cv_search_dn_skipname" != no; then
7042
test "$ac_cv_search_dn_skipname" = "none required" || LIBS="$ac_cv_search_dn_skipname $LIBS"
7045
echo "$as_me:$LINENO: checking for library containing __dn_skipname" >&5
7046
echo $ECHO_N "checking for library containing __dn_skipname... $ECHO_C" >&6
7047
if test "${ac_cv_search___dn_skipname+set}" = set; then
7048
echo $ECHO_N "(cached) $ECHO_C" >&6
7050
ac_func_search_save_LIBS=$LIBS
7051
ac_cv_search___dn_skipname=no
7052
cat >conftest.$ac_ext <<_ACEOF
7055
cat confdefs.h >>conftest.$ac_ext
7056
cat >>conftest.$ac_ext <<_ACEOF
7057
/* end confdefs.h. */
7059
/* Override any gcc2 internal prototype to avoid an error. */
7063
/* We use char because int might match the return type of a gcc2
7064
builtin and then its argument prototype would still apply. */
7065
char __dn_skipname ();
7074
rm -f conftest.$ac_objext conftest$ac_exeext
7075
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7076
(eval $ac_link) 2>conftest.er1
7078
grep -v '^ *+' conftest.er1 >conftest.err
7080
cat conftest.err >&5
7081
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082
(exit $ac_status); } &&
7083
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7084
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7087
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088
(exit $ac_status); }; } &&
7089
{ ac_try='test -s conftest$ac_exeext'
7090
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7093
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094
(exit $ac_status); }; }; then
7095
ac_cv_search___dn_skipname="none required"
7097
echo "$as_me: failed program was:" >&5
7098
sed 's/^/| /' conftest.$ac_ext >&5
7101
rm -f conftest.err conftest.$ac_objext \
7102
conftest$ac_exeext conftest.$ac_ext
7103
if test "$ac_cv_search___dn_skipname" = no; then
7104
for ac_lib in resolv bind; do
7105
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7106
cat >conftest.$ac_ext <<_ACEOF
7109
cat confdefs.h >>conftest.$ac_ext
7110
cat >>conftest.$ac_ext <<_ACEOF
7111
/* end confdefs.h. */
7113
/* Override any gcc2 internal prototype to avoid an error. */
7117
/* We use char because int might match the return type of a gcc2
7118
builtin and then its argument prototype would still apply. */
7119
char __dn_skipname ();
7128
rm -f conftest.$ac_objext conftest$ac_exeext
7129
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7130
(eval $ac_link) 2>conftest.er1
7132
grep -v '^ *+' conftest.er1 >conftest.err
7134
cat conftest.err >&5
7135
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136
(exit $ac_status); } &&
7137
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7138
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7141
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142
(exit $ac_status); }; } &&
7143
{ ac_try='test -s conftest$ac_exeext'
7144
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7147
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7148
(exit $ac_status); }; }; then
7149
ac_cv_search___dn_skipname="-l$ac_lib"
7152
echo "$as_me: failed program was:" >&5
7153
sed 's/^/| /' conftest.$ac_ext >&5
7156
rm -f conftest.err conftest.$ac_objext \
7157
conftest$ac_exeext conftest.$ac_ext
7160
LIBS=$ac_func_search_save_LIBS
7162
echo "$as_me:$LINENO: result: $ac_cv_search___dn_skipname" >&5
7163
echo "${ECHO_T}$ac_cv_search___dn_skipname" >&6
7164
if test "$ac_cv_search___dn_skipname" != no; then
7165
test "$ac_cv_search___dn_skipname" = "none required" || LIBS="$ac_cv_search___dn_skipname $LIBS"
7174
if test x"$use_dns_srv" = xyes ; then
7675
{ echo "$as_me:$LINENO: checking for library containing res_query" >&5
7676
echo $ECHO_N "checking for library containing res_query... $ECHO_C" >&6; }
7677
if test "${ac_cv_search_res_query+set}" = set; then
7678
echo $ECHO_N "(cached) $ECHO_C" >&6
7680
ac_func_search_save_LIBS=$LIBS
7681
cat >conftest.$ac_ext <<_ACEOF
7684
cat confdefs.h >>conftest.$ac_ext
7685
cat >>conftest.$ac_ext <<_ACEOF
7686
/* end confdefs.h. */
7688
/* Override any GCC internal prototype to avoid an error.
7689
Use char because int might match the return type of a GCC
7690
builtin and then its argument prototype would still apply. */
7698
return res_query ();
7703
for ac_lib in '' resolv bind; do
7704
if test -z "$ac_lib"; then
7705
ac_res="none required"
7708
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7710
rm -f conftest.$ac_objext conftest$ac_exeext
7711
if { (ac_try="$ac_link"
7713
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7714
*) ac_try_echo=$ac_try;;
7716
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7717
(eval "$ac_link") 2>conftest.er1
7719
grep -v '^ *+' conftest.er1 >conftest.err
7721
cat conftest.err >&5
7722
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723
(exit $ac_status); } && {
7724
test -z "$ac_c_werror_flag" ||
7725
test ! -s conftest.err
7726
} && test -s conftest$ac_exeext &&
7727
$as_test_x conftest$ac_exeext; then
7728
ac_cv_search_res_query=$ac_res
7730
echo "$as_me: failed program was:" >&5
7731
sed 's/^/| /' conftest.$ac_ext >&5
7736
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7738
if test "${ac_cv_search_res_query+set}" = set; then
7742
if test "${ac_cv_search_res_query+set}" = set; then
7745
ac_cv_search_res_query=no
7748
LIBS=$ac_func_search_save_LIBS
7750
{ echo "$as_me:$LINENO: result: $ac_cv_search_res_query" >&5
7751
echo "${ECHO_T}$ac_cv_search_res_query" >&6; }
7752
ac_res=$ac_cv_search_res_query
7753
if test "$ac_res" != no; then
7754
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7757
{ echo "$as_me:$LINENO: checking for library containing __res_query" >&5
7758
echo $ECHO_N "checking for library containing __res_query... $ECHO_C" >&6; }
7759
if test "${ac_cv_search___res_query+set}" = set; then
7760
echo $ECHO_N "(cached) $ECHO_C" >&6
7762
ac_func_search_save_LIBS=$LIBS
7763
cat >conftest.$ac_ext <<_ACEOF
7766
cat confdefs.h >>conftest.$ac_ext
7767
cat >>conftest.$ac_ext <<_ACEOF
7768
/* end confdefs.h. */
7770
/* Override any GCC internal prototype to avoid an error.
7771
Use char because int might match the return type of a GCC
7772
builtin and then its argument prototype would still apply. */
7776
char __res_query ();
7780
return __res_query ();
7785
for ac_lib in '' resolv bind; do
7786
if test -z "$ac_lib"; then
7787
ac_res="none required"
7790
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7792
rm -f conftest.$ac_objext conftest$ac_exeext
7793
if { (ac_try="$ac_link"
7795
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7796
*) ac_try_echo=$ac_try;;
7798
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7799
(eval "$ac_link") 2>conftest.er1
7801
grep -v '^ *+' conftest.er1 >conftest.err
7803
cat conftest.err >&5
7804
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805
(exit $ac_status); } && {
7806
test -z "$ac_c_werror_flag" ||
7807
test ! -s conftest.err
7808
} && test -s conftest$ac_exeext &&
7809
$as_test_x conftest$ac_exeext; then
7810
ac_cv_search___res_query=$ac_res
7812
echo "$as_me: failed program was:" >&5
7813
sed 's/^/| /' conftest.$ac_ext >&5
7818
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7820
if test "${ac_cv_search___res_query+set}" = set; then
7824
if test "${ac_cv_search___res_query+set}" = set; then
7827
ac_cv_search___res_query=no
7830
LIBS=$ac_func_search_save_LIBS
7832
{ echo "$as_me:$LINENO: result: $ac_cv_search___res_query" >&5
7833
echo "${ECHO_T}$ac_cv_search___res_query" >&6; }
7834
ac_res=$ac_cv_search___res_query
7835
if test "$ac_res" != no; then
7836
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7844
{ echo "$as_me:$LINENO: checking for library containing dn_expand" >&5
7845
echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6; }
7846
if test "${ac_cv_search_dn_expand+set}" = set; then
7847
echo $ECHO_N "(cached) $ECHO_C" >&6
7849
ac_func_search_save_LIBS=$LIBS
7850
cat >conftest.$ac_ext <<_ACEOF
7853
cat confdefs.h >>conftest.$ac_ext
7854
cat >>conftest.$ac_ext <<_ACEOF
7855
/* end confdefs.h. */
7857
/* Override any GCC internal prototype to avoid an error.
7858
Use char because int might match the return type of a GCC
7859
builtin and then its argument prototype would still apply. */
7867
return dn_expand ();
7872
for ac_lib in '' resolv bind; do
7873
if test -z "$ac_lib"; then
7874
ac_res="none required"
7877
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7879
rm -f conftest.$ac_objext conftest$ac_exeext
7880
if { (ac_try="$ac_link"
7882
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7883
*) ac_try_echo=$ac_try;;
7885
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7886
(eval "$ac_link") 2>conftest.er1
7888
grep -v '^ *+' conftest.er1 >conftest.err
7890
cat conftest.err >&5
7891
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892
(exit $ac_status); } && {
7893
test -z "$ac_c_werror_flag" ||
7894
test ! -s conftest.err
7895
} && test -s conftest$ac_exeext &&
7896
$as_test_x conftest$ac_exeext; then
7897
ac_cv_search_dn_expand=$ac_res
7899
echo "$as_me: failed program was:" >&5
7900
sed 's/^/| /' conftest.$ac_ext >&5
7905
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7907
if test "${ac_cv_search_dn_expand+set}" = set; then
7911
if test "${ac_cv_search_dn_expand+set}" = set; then
7914
ac_cv_search_dn_expand=no
7917
LIBS=$ac_func_search_save_LIBS
7919
{ echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5
7920
echo "${ECHO_T}$ac_cv_search_dn_expand" >&6; }
7921
ac_res=$ac_cv_search_dn_expand
7922
if test "$ac_res" != no; then
7923
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7926
{ echo "$as_me:$LINENO: checking for library containing __dn_expand" >&5
7927
echo $ECHO_N "checking for library containing __dn_expand... $ECHO_C" >&6; }
7928
if test "${ac_cv_search___dn_expand+set}" = set; then
7929
echo $ECHO_N "(cached) $ECHO_C" >&6
7931
ac_func_search_save_LIBS=$LIBS
7932
cat >conftest.$ac_ext <<_ACEOF
7935
cat confdefs.h >>conftest.$ac_ext
7936
cat >>conftest.$ac_ext <<_ACEOF
7937
/* end confdefs.h. */
7939
/* Override any GCC internal prototype to avoid an error.
7940
Use char because int might match the return type of a GCC
7941
builtin and then its argument prototype would still apply. */
7945
char __dn_expand ();
7949
return __dn_expand ();
7954
for ac_lib in '' resolv bind; do
7955
if test -z "$ac_lib"; then
7956
ac_res="none required"
7959
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7961
rm -f conftest.$ac_objext conftest$ac_exeext
7962
if { (ac_try="$ac_link"
7964
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7965
*) ac_try_echo=$ac_try;;
7967
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7968
(eval "$ac_link") 2>conftest.er1
7970
grep -v '^ *+' conftest.er1 >conftest.err
7972
cat conftest.err >&5
7973
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974
(exit $ac_status); } && {
7975
test -z "$ac_c_werror_flag" ||
7976
test ! -s conftest.err
7977
} && test -s conftest$ac_exeext &&
7978
$as_test_x conftest$ac_exeext; then
7979
ac_cv_search___dn_expand=$ac_res
7981
echo "$as_me: failed program was:" >&5
7982
sed 's/^/| /' conftest.$ac_ext >&5
7987
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7989
if test "${ac_cv_search___dn_expand+set}" = set; then
7993
if test "${ac_cv_search___dn_expand+set}" = set; then
7996
ac_cv_search___dn_expand=no
7999
LIBS=$ac_func_search_save_LIBS
8001
{ echo "$as_me:$LINENO: result: $ac_cv_search___dn_expand" >&5
8002
echo "${ECHO_T}$ac_cv_search___dn_expand" >&6; }
8003
ac_res=$ac_cv_search___dn_expand
8004
if test "$ac_res" != no; then
8005
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8013
{ echo "$as_me:$LINENO: checking for library containing dn_skipname" >&5
8014
echo $ECHO_N "checking for library containing dn_skipname... $ECHO_C" >&6; }
8015
if test "${ac_cv_search_dn_skipname+set}" = set; then
8016
echo $ECHO_N "(cached) $ECHO_C" >&6
8018
ac_func_search_save_LIBS=$LIBS
8019
cat >conftest.$ac_ext <<_ACEOF
8022
cat confdefs.h >>conftest.$ac_ext
8023
cat >>conftest.$ac_ext <<_ACEOF
8024
/* end confdefs.h. */
8026
/* Override any GCC internal prototype to avoid an error.
8027
Use char because int might match the return type of a GCC
8028
builtin and then its argument prototype would still apply. */
8032
char dn_skipname ();
8036
return dn_skipname ();
8041
for ac_lib in '' resolv bind; do
8042
if test -z "$ac_lib"; then
8043
ac_res="none required"
8046
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8048
rm -f conftest.$ac_objext conftest$ac_exeext
8049
if { (ac_try="$ac_link"
8051
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8052
*) ac_try_echo=$ac_try;;
8054
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8055
(eval "$ac_link") 2>conftest.er1
8057
grep -v '^ *+' conftest.er1 >conftest.err
8059
cat conftest.err >&5
8060
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061
(exit $ac_status); } && {
8062
test -z "$ac_c_werror_flag" ||
8063
test ! -s conftest.err
8064
} && test -s conftest$ac_exeext &&
8065
$as_test_x conftest$ac_exeext; then
8066
ac_cv_search_dn_skipname=$ac_res
8068
echo "$as_me: failed program was:" >&5
8069
sed 's/^/| /' conftest.$ac_ext >&5
8074
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8076
if test "${ac_cv_search_dn_skipname+set}" = set; then
8080
if test "${ac_cv_search_dn_skipname+set}" = set; then
8083
ac_cv_search_dn_skipname=no
8086
LIBS=$ac_func_search_save_LIBS
8088
{ echo "$as_me:$LINENO: result: $ac_cv_search_dn_skipname" >&5
8089
echo "${ECHO_T}$ac_cv_search_dn_skipname" >&6; }
8090
ac_res=$ac_cv_search_dn_skipname
8091
if test "$ac_res" != no; then
8092
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8095
{ echo "$as_me:$LINENO: checking for library containing __dn_skipname" >&5
8096
echo $ECHO_N "checking for library containing __dn_skipname... $ECHO_C" >&6; }
8097
if test "${ac_cv_search___dn_skipname+set}" = set; then
8098
echo $ECHO_N "(cached) $ECHO_C" >&6
8100
ac_func_search_save_LIBS=$LIBS
8101
cat >conftest.$ac_ext <<_ACEOF
8104
cat confdefs.h >>conftest.$ac_ext
8105
cat >>conftest.$ac_ext <<_ACEOF
8106
/* end confdefs.h. */
8108
/* Override any GCC internal prototype to avoid an error.
8109
Use char because int might match the return type of a GCC
8110
builtin and then its argument prototype would still apply. */
8114
char __dn_skipname ();
8118
return __dn_skipname ();
8123
for ac_lib in '' resolv bind; do
8124
if test -z "$ac_lib"; then
8125
ac_res="none required"
8128
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8130
rm -f conftest.$ac_objext conftest$ac_exeext
8131
if { (ac_try="$ac_link"
8133
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8134
*) ac_try_echo=$ac_try;;
8136
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8137
(eval "$ac_link") 2>conftest.er1
8139
grep -v '^ *+' conftest.er1 >conftest.err
8141
cat conftest.err >&5
8142
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143
(exit $ac_status); } && {
8144
test -z "$ac_c_werror_flag" ||
8145
test ! -s conftest.err
8146
} && test -s conftest$ac_exeext &&
8147
$as_test_x conftest$ac_exeext; then
8148
ac_cv_search___dn_skipname=$ac_res
8150
echo "$as_me: failed program was:" >&5
8151
sed 's/^/| /' conftest.$ac_ext >&5
8156
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8158
if test "${ac_cv_search___dn_skipname+set}" = set; then
8162
if test "${ac_cv_search___dn_skipname+set}" = set; then
8165
ac_cv_search___dn_skipname=no
8168
LIBS=$ac_func_search_save_LIBS
8170
{ echo "$as_me:$LINENO: result: $ac_cv_search___dn_skipname" >&5
8171
echo "${ECHO_T}$ac_cv_search___dn_skipname" >&6; }
8172
ac_res=$ac_cv_search___dn_skipname
8173
if test "$ac_res" != no; then
8174
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8183
if test x"$have_resolver" != xno ; then
8185
# Make sure that the BIND 4 resolver interface is workable before
8186
# enabling any code that calls it. At some point I'll rewrite the
8187
# code to use the BIND 8 resolver API.
8189
{ echo "$as_me:$LINENO: checking whether the resolver is usable" >&5
8190
echo $ECHO_N "checking whether the resolver is usable... $ECHO_C" >&6; }
8191
cat >conftest.$ac_ext <<_ACEOF
8194
cat confdefs.h >>conftest.$ac_ext
8195
cat >>conftest.$ac_ext <<_ACEOF
8196
/* end confdefs.h. */
8197
#include <sys/types.h>
8198
#include <netinet/in.h>
8199
#include <arpa/nameser.h>
8204
unsigned char answer[PACKETSZ];
8205
res_query("foo.bar",C_IN,T_A,answer,PACKETSZ);
8207
dn_expand(0,0,0,0,0);
8213
rm -f conftest.$ac_objext conftest$ac_exeext
8214
if { (ac_try="$ac_link"
8216
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8217
*) ac_try_echo=$ac_try;;
8219
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8220
(eval "$ac_link") 2>conftest.er1
8222
grep -v '^ *+' conftest.er1 >conftest.err
8224
cat conftest.err >&5
8225
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226
(exit $ac_status); } && {
8227
test -z "$ac_c_werror_flag" ||
8228
test ! -s conftest.err
8229
} && test -s conftest$ac_exeext &&
8230
$as_test_x conftest$ac_exeext; then
8233
echo "$as_me: failed program was:" >&5
8234
sed 's/^/| /' conftest.$ac_ext >&5
8239
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8240
conftest$ac_exeext conftest.$ac_ext
8241
{ echo "$as_me:$LINENO: result: $have_resolver" >&5
8242
echo "${ECHO_T}$have_resolver" >&6; }
8244
# This is Apple-specific and somewhat bizarre as they changed the
8245
# define in bind 8 for some reason.
8247
if test x"$have_resolver" != xyes ; then
8248
{ echo "$as_me:$LINENO: checking whether I can make the resolver usable with BIND_8_COMPAT" >&5
8249
echo $ECHO_N "checking whether I can make the resolver usable with BIND_8_COMPAT... $ECHO_C" >&6; }
8250
cat >conftest.$ac_ext <<_ACEOF
8253
cat confdefs.h >>conftest.$ac_ext
8254
cat >>conftest.$ac_ext <<_ACEOF
8255
/* end confdefs.h. */
8256
#define BIND_8_COMPAT
8257
#include <sys/types.h>
8258
#include <netinet/in.h>
8259
#include <arpa/nameser.h>
8264
unsigned char answer[PACKETSZ];
8265
res_query("foo.bar",C_IN,T_A,answer,PACKETSZ);
8266
dn_skipname(0,0); dn_expand(0,0,0,0,0);
8272
rm -f conftest.$ac_objext conftest$ac_exeext
8273
if { (ac_try="$ac_link"
8275
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8276
*) ac_try_echo=$ac_try;;
8278
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8279
(eval "$ac_link") 2>conftest.er1
8281
grep -v '^ *+' conftest.er1 >conftest.err
8283
cat conftest.err >&5
8284
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285
(exit $ac_status); } && {
8286
test -z "$ac_c_werror_flag" ||
8287
test ! -s conftest.err
8288
} && test -s conftest$ac_exeext &&
8289
$as_test_x conftest$ac_exeext; then
8290
have_resolver=yes ; need_compat=yes
8292
echo "$as_me: failed program was:" >&5
8293
sed 's/^/| /' conftest.$ac_ext >&5
8298
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8299
conftest$ac_exeext conftest.$ac_ext
8300
{ echo "$as_me:$LINENO: result: $have_resolver" >&5
8301
echo "${ECHO_T}$have_resolver" >&6; }
8305
if test x"$have_resolver" = xyes ; then
8308
if test x"$use_dns_srv" = xyes ; then
7176
8310
cat >>confdefs.h <<\_ACEOF
7177
8311
#define USE_DNS_SRV 1
8316
if test x"$use_dns_pka" = xyes ; then
8318
cat >>confdefs.h <<\_ACEOF
8319
#define USE_DNS_PKA 1
8324
if test x"$use_dns_cert" = xyes ; then
8326
cat >>confdefs.h <<\_ACEOF
8327
#define USE_DNS_CERT 1
8332
if test x"$need_compat" = xyes ; then
8334
cat >>confdefs.h <<\_ACEOF
8335
#define BIND_8_COMPAT 1
7182
{ echo "$as_me:$LINENO: WARNING: Resolver functions not found. Disabling DNS SRV." >&5
7183
echo "$as_me: WARNING: Resolver functions not found. Disabling DNS SRV." >&2;}
7185
LIBS=$_srv_save_libs
8345
LIBS=$_dns_save_libs
8350
if test x"$use_dns_srv" = xyes; then
8352
USE_DNS_SRV_FALSE='#'
8354
USE_DNS_SRV_TRUE='#'
8362
if test "$try_ldap" = yes ; then
7190
8364
# Try and link a LDAP test program to weed out unusable LDAP
7191
# libraries. -lldap [-llber [-lresolv]] is for OpenLDAP. OpenLDAP in
7192
# general is terrible with creating weird dependencies. If all else
7193
# fails, the user can play guess-the-dependency by using something
7194
# like ./configure LDAPLIBS="-Lfoo -lbar"
7196
if test "$try_ldap" = yes ; then
7197
for MY_LDAPLIBS in ${LDAPLIBS+"$LDAPLIBS"} "-lldap" "-lldap -llber" "-lldap -llber -lresolv"; do
8365
# libraries. -lldap [-llber [-lresolv]] is for older OpenLDAPs.
8366
# OpenLDAP, circa 1999, was terrible with creating weird dependencies.
8367
# If all else fails, the user can play guess-the-dependency by using
8368
# something like ./configure LDAPLIBS="-Lfoo -lbar"
8371
# Check whether --with-ldap was given.
8372
if test "${with_ldap+set}" = set; then
8373
withval=$with_ldap; _ldap_with=$withval
8377
if test x$_ldap_with != xno ; then
8379
if test -d "$withval" ; then
8380
LDAP_CPPFLAGS="-I$withval/include"
8381
LDAP_LDFLAGS="-L$withval/lib"
8384
_ldap_save_cppflags=$CPPFLAGS
8385
CPPFLAGS="${LDAP_CPPFLAGS} ${CPPFLAGS}"
8386
_ldap_save_ldflags=$LDFLAGS
8387
LDFLAGS="${LDAP_LDFLAGS} ${LDFLAGS}"
8389
for MY_LDAPLIBS in ${LDAPLIBS+"$LDAPLIBS"} "-lldap" "-lldap -llber" "-lldap -llber -lresolv" "-lwldap32"; do
7198
8390
_ldap_save_libs=$LIBS
7199
8391
LIBS="$MY_LDAPLIBS $NETLIBS $LIBS"
7201
echo "$as_me:$LINENO: checking whether LDAP via \"$MY_LDAPLIBS\" is present and sane" >&5
7202
echo $ECHO_N "checking whether LDAP via \"$MY_LDAPLIBS\" is present and sane... $ECHO_C" >&6
8393
{ echo "$as_me:$LINENO: checking whether LDAP via \"$MY_LDAPLIBS\" is present and sane" >&5
8394
echo $ECHO_N "checking whether LDAP via \"$MY_LDAPLIBS\" is present and sane... $ECHO_C" >&6; }
7203
8395
cat >conftest.$ac_ext <<_ACEOF
7204
8396
/* confdefs.h. */
7206
8398
cat confdefs.h >>conftest.$ac_ext
7207
8399
cat >>conftest.$ac_ext <<_ACEOF
7208
8400
/* end confdefs.h. */
8403
#include <winsock2.h>
8404
#include <winldap.h>
7209
8406
#include <ldap.h>
7641
if test "$try_gettext" = yes; then
7644
if test -n "$ac_aux_dir"; then
7645
case "$ac_aux_dir" in
7646
/*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
7647
*) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
7650
if test -z "$MKINSTALLDIRS"; then
7651
MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
7656
echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7657
echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7658
# Check whether --enable-nls or --disable-nls was given.
7659
if test "${enable_nls+set}" = set; then
7660
enableval="$enable_nls"
7665
echo "$as_me:$LINENO: result: $USE_NLS" >&5
7666
echo "${ECHO_T}$USE_NLS" >&6
7673
# Prepare PATH_SEPARATOR.
7674
# The user is always right.
7675
if test "${PATH_SEPARATOR+set}" != set; then
7676
echo "#! /bin/sh" >conf$$.sh
7677
echo "exit 0" >>conf$$.sh
7679
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7687
# Find out how to test for executable files. Don't use a zero-byte file,
7688
# as systems may use methods other than mode bits to determine executability.
7689
cat >conf$$.file <<_ASEOF
7693
chmod +x conf$$.file
7694
if test -x conf$$.file >/dev/null 2>&1; then
7695
ac_executable_p="test -x"
7697
ac_executable_p="test -f"
7701
# Extract the first word of "msgfmt", so it can be a program name with args.
7702
set dummy msgfmt; ac_word=$2
7703
echo "$as_me:$LINENO: checking for $ac_word" >&5
7704
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7705
if test "${ac_cv_path_MSGFMT+set}" = set; then
7706
echo $ECHO_N "(cached) $ECHO_C" >&6
7710
ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7713
ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7714
for ac_dir in $PATH; do
7716
test -z "$ac_dir" && ac_dir=.
7717
for ac_exec_ext in '' $ac_executable_extensions; do
7718
if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7719
if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
7720
(if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7721
ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
7728
test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
7732
MSGFMT="$ac_cv_path_MSGFMT"
7733
if test "$MSGFMT" != ":"; then
7734
echo "$as_me:$LINENO: result: $MSGFMT" >&5
7735
echo "${ECHO_T}$MSGFMT" >&6
7737
echo "$as_me:$LINENO: result: no" >&5
7738
echo "${ECHO_T}no" >&6
7741
# Extract the first word of "gmsgfmt", so it can be a program name with args.
7742
set dummy gmsgfmt; ac_word=$2
7743
echo "$as_me:$LINENO: checking for $ac_word" >&5
7744
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7745
if test "${ac_cv_path_GMSGFMT+set}" = set; then
7746
echo $ECHO_N "(cached) $ECHO_C" >&6
7750
ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7753
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7757
test -z "$as_dir" && as_dir=.
7758
for ac_exec_ext in '' $ac_executable_extensions; do
7759
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7760
ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7761
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7767
test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7771
GMSGFMT=$ac_cv_path_GMSGFMT
7773
if test -n "$GMSGFMT"; then
7774
echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7775
echo "${ECHO_T}$GMSGFMT" >&6
7777
echo "$as_me:$LINENO: result: no" >&5
7778
echo "${ECHO_T}no" >&6
7783
# Prepare PATH_SEPARATOR.
7784
# The user is always right.
7785
if test "${PATH_SEPARATOR+set}" != set; then
7786
echo "#! /bin/sh" >conf$$.sh
7787
echo "exit 0" >>conf$$.sh
7789
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7797
# Find out how to test for executable files. Don't use a zero-byte file,
7798
# as systems may use methods other than mode bits to determine executability.
7799
cat >conf$$.file <<_ASEOF
7803
chmod +x conf$$.file
7804
if test -x conf$$.file >/dev/null 2>&1; then
7805
ac_executable_p="test -x"
7807
ac_executable_p="test -f"
7811
# Extract the first word of "xgettext", so it can be a program name with args.
7812
set dummy xgettext; ac_word=$2
7813
echo "$as_me:$LINENO: checking for $ac_word" >&5
7814
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7815
if test "${ac_cv_path_XGETTEXT+set}" = set; then
7816
echo $ECHO_N "(cached) $ECHO_C" >&6
7820
ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7823
ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7824
for ac_dir in $PATH; do
7826
test -z "$ac_dir" && ac_dir=.
7827
for ac_exec_ext in '' $ac_executable_extensions; do
7828
if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7829
if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
7830
(if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7831
ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
7838
test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7842
XGETTEXT="$ac_cv_path_XGETTEXT"
7843
if test "$XGETTEXT" != ":"; then
7844
echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7845
echo "${ECHO_T}$XGETTEXT" >&6
7847
echo "$as_me:$LINENO: result: no" >&5
7848
echo "${ECHO_T}no" >&6
7854
# Prepare PATH_SEPARATOR.
7855
# The user is always right.
7856
if test "${PATH_SEPARATOR+set}" != set; then
7857
echo "#! /bin/sh" >conf$$.sh
7858
echo "exit 0" >>conf$$.sh
7860
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7868
# Find out how to test for executable files. Don't use a zero-byte file,
7869
# as systems may use methods other than mode bits to determine executability.
7870
cat >conf$$.file <<_ASEOF
7874
chmod +x conf$$.file
7875
if test -x conf$$.file >/dev/null 2>&1; then
7876
ac_executable_p="test -x"
7878
ac_executable_p="test -f"
7882
# Extract the first word of "msgmerge", so it can be a program name with args.
7883
set dummy msgmerge; ac_word=$2
7884
echo "$as_me:$LINENO: checking for $ac_word" >&5
7885
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7886
if test "${ac_cv_path_MSGMERGE+set}" = set; then
7887
echo $ECHO_N "(cached) $ECHO_C" >&6
7891
ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
7894
ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7895
for ac_dir in $PATH; do
7897
test -z "$ac_dir" && ac_dir=.
7898
for ac_exec_ext in '' $ac_executable_extensions; do
7899
if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7900
if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
7901
ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
7908
test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
7912
MSGMERGE="$ac_cv_path_MSGMERGE"
7913
if test "$MSGMERGE" != ":"; then
7914
echo "$as_me:$LINENO: result: $MSGMERGE" >&5
7915
echo "${ECHO_T}$MSGMERGE" >&6
7917
echo "$as_me:$LINENO: result: no" >&5
7918
echo "${ECHO_T}no" >&6
7922
if test "$GMSGFMT" != ":"; then
7923
if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
7924
(if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7927
GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
7928
echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
7929
echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
7934
if test "$XGETTEXT" != ":"; then
7935
if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
7936
(if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7939
echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
7940
echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
7946
ac_config_commands="$ac_config_commands default-1"
7950
echo "$as_me:$LINENO: checking for egrep" >&5
7951
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
7952
if test "${ac_cv_prog_egrep+set}" = set; then
7953
echo $ECHO_N "(cached) $ECHO_C" >&6
7955
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
7956
then ac_cv_prog_egrep='grep -E'
7957
else ac_cv_prog_egrep='egrep'
7960
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
7961
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
7962
EGREP=$ac_cv_prog_egrep
7965
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7966
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7967
if test "${ac_cv_header_stdc+set}" = set; then
7968
echo $ECHO_N "(cached) $ECHO_C" >&6
7970
cat >conftest.$ac_ext <<_ACEOF
7973
cat confdefs.h >>conftest.$ac_ext
7974
cat >>conftest.$ac_ext <<_ACEOF
7975
/* end confdefs.h. */
7989
rm -f conftest.$ac_objext
7990
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7991
(eval $ac_compile) 2>conftest.er1
7993
grep -v '^ *+' conftest.er1 >conftest.err
7995
cat conftest.err >&5
7996
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997
(exit $ac_status); } &&
7998
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7999
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8002
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003
(exit $ac_status); }; } &&
8004
{ ac_try='test -s conftest.$ac_objext'
8005
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8008
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009
(exit $ac_status); }; }; then
8010
ac_cv_header_stdc=yes
8012
echo "$as_me: failed program was:" >&5
8013
sed 's/^/| /' conftest.$ac_ext >&5
8015
ac_cv_header_stdc=no
8017
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8019
if test $ac_cv_header_stdc = yes; then
8020
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8021
cat >conftest.$ac_ext <<_ACEOF
8024
cat confdefs.h >>conftest.$ac_ext
8025
cat >>conftest.$ac_ext <<_ACEOF
8026
/* end confdefs.h. */
8030
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8031
$EGREP "memchr" >/dev/null 2>&1; then
8034
ac_cv_header_stdc=no
8040
if test $ac_cv_header_stdc = yes; then
8041
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8042
cat >conftest.$ac_ext <<_ACEOF
8045
cat confdefs.h >>conftest.$ac_ext
8046
cat >>conftest.$ac_ext <<_ACEOF
8047
/* end confdefs.h. */
8051
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8052
$EGREP "free" >/dev/null 2>&1; then
8055
ac_cv_header_stdc=no
8061
if test $ac_cv_header_stdc = yes; then
8062
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8063
if test "$cross_compiling" = yes; then
8066
cat >conftest.$ac_ext <<_ACEOF
8069
cat confdefs.h >>conftest.$ac_ext
8070
cat >>conftest.$ac_ext <<_ACEOF
8071
/* end confdefs.h. */
8073
#if ((' ' & 0x0FF) == 0x020)
8074
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8075
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8077
# define ISLOWER(c) \
8078
(('a' <= (c) && (c) <= 'i') \
8079
|| ('j' <= (c) && (c) <= 'r') \
8080
|| ('s' <= (c) && (c) <= 'z'))
8081
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8084
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8089
for (i = 0; i < 256; i++)
8090
if (XOR (islower (i), ISLOWER (i))
8091
|| toupper (i) != TOUPPER (i))
8096
rm -f conftest$ac_exeext
8097
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8098
(eval $ac_link) 2>&5
8100
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8101
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8102
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8105
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106
(exit $ac_status); }; }; then
8109
echo "$as_me: program exited with status $ac_status" >&5
8110
echo "$as_me: failed program was:" >&5
8111
sed 's/^/| /' conftest.$ac_ext >&5
8114
ac_cv_header_stdc=no
8116
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8120
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8121
echo "${ECHO_T}$ac_cv_header_stdc" >&6
8122
if test $ac_cv_header_stdc = yes; then
8124
cat >>confdefs.h <<\_ACEOF
8125
#define STDC_HEADERS 1
8130
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8131
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8132
if test "${ac_cv_c_const+set}" = set; then
8133
echo $ECHO_N "(cached) $ECHO_C" >&6
8135
cat >conftest.$ac_ext <<_ACEOF
8138
cat confdefs.h >>conftest.$ac_ext
8139
cat >>conftest.$ac_ext <<_ACEOF
8140
/* end confdefs.h. */
8145
/* FIXME: Include the comments suggested by Paul. */
8147
/* Ultrix mips cc rejects this. */
8148
typedef int charset[2];
8150
/* SunOS 4.1.1 cc rejects this. */
8151
char const *const *ccp;
8153
/* NEC SVR4.0.2 mips cc rejects this. */
8154
struct point {int x, y;};
8155
static struct point const zero = {0,0};
8156
/* AIX XL C 1.02.0.0 rejects this.
8157
It does not let you subtract one const X* pointer from another in
8158
an arm of an if-expression whose if-part is not a constant
8160
const char *g = "string";
8161
ccp = &g + (g ? g-g : 0);
8162
/* HPUX 7.0 cc rejects these. */
8165
ccp = (char const *const *) p;
8166
{ /* SCO 3.2v4 cc rejects this. */
8168
char const *s = 0 ? (char *) 0 : (char const *) 0;
8172
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8174
const int *foo = &x[0];
8177
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8178
typedef const int *iptr;
8182
{ /* AIX XL C 1.02.0.0 rejects this saying
8183
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8184
struct s { int j; const int *ap[3]; };
8185
struct s *b; b->j = 5;
8187
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8196
rm -f conftest.$ac_objext
8197
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8198
(eval $ac_compile) 2>conftest.er1
8200
grep -v '^ *+' conftest.er1 >conftest.err
8202
cat conftest.err >&5
8203
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204
(exit $ac_status); } &&
8205
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8206
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8209
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210
(exit $ac_status); }; } &&
8211
{ ac_try='test -s conftest.$ac_objext'
8212
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8215
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216
(exit $ac_status); }; }; then
8219
echo "$as_me: failed program was:" >&5
8220
sed 's/^/| /' conftest.$ac_ext >&5
8224
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8226
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8227
echo "${ECHO_T}$ac_cv_c_const" >&6
8228
if test $ac_cv_c_const = no; then
8230
cat >>confdefs.h <<\_ACEOF
8237
echo "$as_me:$LINENO: checking for signed" >&5
8238
echo $ECHO_N "checking for signed... $ECHO_C" >&6
8239
if test "${bh_cv_c_signed+set}" = set; then
8240
echo $ECHO_N "(cached) $ECHO_C" >&6
8242
cat >conftest.$ac_ext <<_ACEOF
8245
cat confdefs.h >>conftest.$ac_ext
8246
cat >>conftest.$ac_ext <<_ACEOF
8247
/* end confdefs.h. */
8257
rm -f conftest.$ac_objext
8258
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8259
(eval $ac_compile) 2>conftest.er1
8261
grep -v '^ *+' conftest.er1 >conftest.err
8263
cat conftest.err >&5
8264
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265
(exit $ac_status); } &&
8266
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8267
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8270
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271
(exit $ac_status); }; } &&
8272
{ ac_try='test -s conftest.$ac_objext'
8273
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8276
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277
(exit $ac_status); }; }; then
8280
echo "$as_me: failed program was:" >&5
8281
sed 's/^/| /' conftest.$ac_ext >&5
8285
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8287
echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
8288
echo "${ECHO_T}$bh_cv_c_signed" >&6
8289
if test $bh_cv_c_signed = no; then
8291
cat >>confdefs.h <<\_ACEOF
8297
echo "$as_me:$LINENO: checking for inline" >&5
8298
echo $ECHO_N "checking for inline... $ECHO_C" >&6
8299
if test "${ac_cv_c_inline+set}" = set; then
8300
echo $ECHO_N "(cached) $ECHO_C" >&6
8303
for ac_kw in inline __inline__ __inline; do
8304
cat >conftest.$ac_ext <<_ACEOF
8307
cat confdefs.h >>conftest.$ac_ext
8308
cat >>conftest.$ac_ext <<_ACEOF
8309
/* end confdefs.h. */
8312
static $ac_kw foo_t static_foo () {return 0; }
8313
$ac_kw foo_t foo () {return 0; }
8317
rm -f conftest.$ac_objext
8318
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8319
(eval $ac_compile) 2>conftest.er1
8321
grep -v '^ *+' conftest.er1 >conftest.err
8323
cat conftest.err >&5
8324
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325
(exit $ac_status); } &&
8326
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8327
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8330
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331
(exit $ac_status); }; } &&
8332
{ ac_try='test -s conftest.$ac_objext'
8333
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8336
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337
(exit $ac_status); }; }; then
8338
ac_cv_c_inline=$ac_kw; break
8340
echo "$as_me: failed program was:" >&5
8341
sed 's/^/| /' conftest.$ac_ext >&5
8344
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8348
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8349
echo "${ECHO_T}$ac_cv_c_inline" >&6
8352
case $ac_cv_c_inline in
8355
case $ac_cv_c_inline in
8357
*) ac_val=$ac_cv_c_inline;;
8359
cat >>confdefs.h <<_ACEOF
8361
#define inline $ac_val
8367
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8377
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8378
inttypes.h stdint.h unistd.h
8380
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8381
echo "$as_me:$LINENO: checking for $ac_header" >&5
8382
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8383
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8384
echo $ECHO_N "(cached) $ECHO_C" >&6
8386
cat >conftest.$ac_ext <<_ACEOF
8389
cat confdefs.h >>conftest.$ac_ext
8390
cat >>conftest.$ac_ext <<_ACEOF
8391
/* end confdefs.h. */
8392
$ac_includes_default
8394
#include <$ac_header>
8396
rm -f conftest.$ac_objext
8397
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8398
(eval $ac_compile) 2>conftest.er1
8400
grep -v '^ *+' conftest.er1 >conftest.err
8402
cat conftest.err >&5
8403
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404
(exit $ac_status); } &&
8405
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8406
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8409
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410
(exit $ac_status); }; } &&
8411
{ ac_try='test -s conftest.$ac_objext'
8412
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8415
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416
(exit $ac_status); }; }; then
8417
eval "$as_ac_Header=yes"
8419
echo "$as_me: failed program was:" >&5
8420
sed 's/^/| /' conftest.$ac_ext >&5
8422
eval "$as_ac_Header=no"
8424
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8426
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8427
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8428
if test `eval echo '${'$as_ac_Header'}'` = yes; then
8429
cat >>confdefs.h <<_ACEOF
8430
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8438
echo "$as_me:$LINENO: checking for off_t" >&5
8439
echo $ECHO_N "checking for off_t... $ECHO_C" >&6
8440
if test "${ac_cv_type_off_t+set}" = set; then
8441
echo $ECHO_N "(cached) $ECHO_C" >&6
8443
cat >conftest.$ac_ext <<_ACEOF
8446
cat confdefs.h >>conftest.$ac_ext
8447
cat >>conftest.$ac_ext <<_ACEOF
8448
/* end confdefs.h. */
8449
$ac_includes_default
8461
rm -f conftest.$ac_objext
8462
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8463
(eval $ac_compile) 2>conftest.er1
8465
grep -v '^ *+' conftest.er1 >conftest.err
8467
cat conftest.err >&5
8468
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469
(exit $ac_status); } &&
8470
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8471
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8474
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475
(exit $ac_status); }; } &&
8476
{ ac_try='test -s conftest.$ac_objext'
8477
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8480
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481
(exit $ac_status); }; }; then
8482
ac_cv_type_off_t=yes
8484
echo "$as_me: failed program was:" >&5
8485
sed 's/^/| /' conftest.$ac_ext >&5
8489
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8491
echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8492
echo "${ECHO_T}$ac_cv_type_off_t" >&6
8493
if test $ac_cv_type_off_t = yes; then
8497
cat >>confdefs.h <<_ACEOF
8503
echo "$as_me:$LINENO: checking for size_t" >&5
8504
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
8505
if test "${ac_cv_type_size_t+set}" = set; then
8506
echo $ECHO_N "(cached) $ECHO_C" >&6
8508
cat >conftest.$ac_ext <<_ACEOF
8511
cat confdefs.h >>conftest.$ac_ext
8512
cat >>conftest.$ac_ext <<_ACEOF
8513
/* end confdefs.h. */
8514
$ac_includes_default
8520
if (sizeof (size_t))
8526
rm -f conftest.$ac_objext
8527
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8528
(eval $ac_compile) 2>conftest.er1
8530
grep -v '^ *+' conftest.er1 >conftest.err
8532
cat conftest.err >&5
8533
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534
(exit $ac_status); } &&
8535
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8536
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8539
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540
(exit $ac_status); }; } &&
8541
{ ac_try='test -s conftest.$ac_objext'
8542
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8545
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546
(exit $ac_status); }; }; then
8547
ac_cv_type_size_t=yes
8549
echo "$as_me: failed program was:" >&5
8550
sed 's/^/| /' conftest.$ac_ext >&5
8552
ac_cv_type_size_t=no
8554
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8556
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8557
echo "${ECHO_T}$ac_cv_type_size_t" >&6
8558
if test $ac_cv_type_size_t = yes; then
8562
cat >>confdefs.h <<_ACEOF
8563
#define size_t unsigned
8569
echo "$as_me:$LINENO: checking for long long" >&5
8570
echo $ECHO_N "checking for long long... $ECHO_C" >&6
8571
if test "${ac_cv_type_long_long+set}" = set; then
8572
echo $ECHO_N "(cached) $ECHO_C" >&6
8574
cat >conftest.$ac_ext <<_ACEOF
8577
cat confdefs.h >>conftest.$ac_ext
8578
cat >>conftest.$ac_ext <<_ACEOF
8579
/* end confdefs.h. */
8580
long long ll = 1LL; int i = 63;
8584
long long llmax = (long long) -1;
8585
return ll << i | ll >> i | llmax / ll | llmax % ll;
8590
rm -f conftest.$ac_objext conftest$ac_exeext
8591
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8592
(eval $ac_link) 2>conftest.er1
8594
grep -v '^ *+' conftest.er1 >conftest.err
8596
cat conftest.err >&5
8597
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598
(exit $ac_status); } &&
8599
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8600
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8603
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604
(exit $ac_status); }; } &&
8605
{ ac_try='test -s conftest$ac_exeext'
8606
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8609
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610
(exit $ac_status); }; }; then
8611
ac_cv_type_long_long=yes
8613
echo "$as_me: failed program was:" >&5
8614
sed 's/^/| /' conftest.$ac_ext >&5
8616
ac_cv_type_long_long=no
8618
rm -f conftest.err conftest.$ac_objext \
8619
conftest$ac_exeext conftest.$ac_ext
8621
echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8622
echo "${ECHO_T}$ac_cv_type_long_long" >&6
8623
if test $ac_cv_type_long_long = yes; then
8625
cat >>confdefs.h <<\_ACEOF
8626
#define HAVE_LONG_LONG 1
8632
echo "$as_me:$LINENO: checking for long double" >&5
8633
echo $ECHO_N "checking for long double... $ECHO_C" >&6
8634
if test "${gt_cv_c_long_double+set}" = set; then
8635
echo $ECHO_N "(cached) $ECHO_C" >&6
8637
if test "$GCC" = yes; then
8638
gt_cv_c_long_double=yes
8640
cat >conftest.$ac_ext <<_ACEOF
8643
cat confdefs.h >>conftest.$ac_ext
8644
cat >>conftest.$ac_ext <<_ACEOF
8645
/* end confdefs.h. */
8647
/* The Stardent Vistra knows sizeof(long double), but does not support it. */
8648
long double foo = 0.0;
8649
/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
8650
int array [2*(sizeof(long double) >= sizeof(double)) - 1];
8660
rm -f conftest.$ac_objext
8661
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8662
(eval $ac_compile) 2>conftest.er1
8664
grep -v '^ *+' conftest.er1 >conftest.err
8666
cat conftest.err >&5
8667
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668
(exit $ac_status); } &&
8669
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8670
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8673
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674
(exit $ac_status); }; } &&
8675
{ ac_try='test -s conftest.$ac_objext'
8676
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8679
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680
(exit $ac_status); }; }; then
8681
gt_cv_c_long_double=yes
8683
echo "$as_me: failed program was:" >&5
8684
sed 's/^/| /' conftest.$ac_ext >&5
8686
gt_cv_c_long_double=no
8688
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8691
echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
8692
echo "${ECHO_T}$gt_cv_c_long_double" >&6
8693
if test $gt_cv_c_long_double = yes; then
8695
cat >>confdefs.h <<\_ACEOF
8696
#define HAVE_LONG_DOUBLE 1
8702
echo "$as_me:$LINENO: checking for wchar_t" >&5
8703
echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
8704
if test "${gt_cv_c_wchar_t+set}" = set; then
8705
echo $ECHO_N "(cached) $ECHO_C" >&6
8707
cat >conftest.$ac_ext <<_ACEOF
8710
cat confdefs.h >>conftest.$ac_ext
8711
cat >>conftest.$ac_ext <<_ACEOF
8712
/* end confdefs.h. */
8714
wchar_t foo = (wchar_t)'\0';
8723
rm -f conftest.$ac_objext
8724
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8725
(eval $ac_compile) 2>conftest.er1
8727
grep -v '^ *+' conftest.er1 >conftest.err
8729
cat conftest.err >&5
8730
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731
(exit $ac_status); } &&
8732
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8733
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8736
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737
(exit $ac_status); }; } &&
8738
{ ac_try='test -s conftest.$ac_objext'
8739
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8742
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8743
(exit $ac_status); }; }; then
8746
echo "$as_me: failed program was:" >&5
8747
sed 's/^/| /' conftest.$ac_ext >&5
8751
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8753
echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
8754
echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
8755
if test $gt_cv_c_wchar_t = yes; then
8757
cat >>confdefs.h <<\_ACEOF
8758
#define HAVE_WCHAR_T 1
8764
echo "$as_me:$LINENO: checking for wint_t" >&5
8765
echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
8766
if test "${gt_cv_c_wint_t+set}" = set; then
8767
echo $ECHO_N "(cached) $ECHO_C" >&6
8769
cat >conftest.$ac_ext <<_ACEOF
8772
cat confdefs.h >>conftest.$ac_ext
8773
cat >>conftest.$ac_ext <<_ACEOF
8774
/* end confdefs.h. */
8776
wint_t foo = (wchar_t)'\0';
8785
rm -f conftest.$ac_objext
8786
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8787
(eval $ac_compile) 2>conftest.er1
8789
grep -v '^ *+' conftest.er1 >conftest.err
8791
cat conftest.err >&5
8792
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8793
(exit $ac_status); } &&
8794
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8795
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8798
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8799
(exit $ac_status); }; } &&
8800
{ ac_try='test -s conftest.$ac_objext'
8801
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8804
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805
(exit $ac_status); }; }; then
8808
echo "$as_me: failed program was:" >&5
8809
sed 's/^/| /' conftest.$ac_ext >&5
8813
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8815
echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
8816
echo "${ECHO_T}$gt_cv_c_wint_t" >&6
8817
if test $gt_cv_c_wint_t = yes; then
8819
cat >>confdefs.h <<\_ACEOF
8820
#define HAVE_WINT_T 1
8826
echo "$as_me:$LINENO: checking for inttypes.h" >&5
8827
echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
8828
if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
8829
echo $ECHO_N "(cached) $ECHO_C" >&6
8831
cat >conftest.$ac_ext <<_ACEOF
8834
cat confdefs.h >>conftest.$ac_ext
8835
cat >>conftest.$ac_ext <<_ACEOF
8836
/* end confdefs.h. */
8837
#include <sys/types.h>
8838
#include <inttypes.h>
8842
uintmax_t i = (uintmax_t) -1;
8847
rm -f conftest.$ac_objext
8848
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8849
(eval $ac_compile) 2>conftest.er1
8851
grep -v '^ *+' conftest.er1 >conftest.err
8853
cat conftest.err >&5
8854
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855
(exit $ac_status); } &&
8856
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8857
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8860
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861
(exit $ac_status); }; } &&
8862
{ ac_try='test -s conftest.$ac_objext'
8863
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8866
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867
(exit $ac_status); }; }; then
8868
jm_ac_cv_header_inttypes_h=yes
8870
echo "$as_me: failed program was:" >&5
8871
sed 's/^/| /' conftest.$ac_ext >&5
8873
jm_ac_cv_header_inttypes_h=no
8875
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8877
echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
8878
echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
8879
if test $jm_ac_cv_header_inttypes_h = yes; then
8881
cat >>confdefs.h <<_ACEOF
8882
#define HAVE_INTTYPES_H_WITH_UINTMAX 1
8888
echo "$as_me:$LINENO: checking for stdint.h" >&5
8889
echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
8890
if test "${jm_ac_cv_header_stdint_h+set}" = set; then
8891
echo $ECHO_N "(cached) $ECHO_C" >&6
8893
cat >conftest.$ac_ext <<_ACEOF
8896
cat confdefs.h >>conftest.$ac_ext
8897
cat >>conftest.$ac_ext <<_ACEOF
8898
/* end confdefs.h. */
8899
#include <sys/types.h>
8904
uintmax_t i = (uintmax_t) -1;
8909
rm -f conftest.$ac_objext
8910
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8911
(eval $ac_compile) 2>conftest.er1
8913
grep -v '^ *+' conftest.er1 >conftest.err
8915
cat conftest.err >&5
8916
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917
(exit $ac_status); } &&
8918
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8919
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8922
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923
(exit $ac_status); }; } &&
8924
{ ac_try='test -s conftest.$ac_objext'
8925
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8928
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929
(exit $ac_status); }; }; then
8930
jm_ac_cv_header_stdint_h=yes
8932
echo "$as_me: failed program was:" >&5
8933
sed 's/^/| /' conftest.$ac_ext >&5
8935
jm_ac_cv_header_stdint_h=no
8937
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8939
echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
8940
echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
8941
if test $jm_ac_cv_header_stdint_h = yes; then
8943
cat >>confdefs.h <<_ACEOF
8944
#define HAVE_STDINT_H_WITH_UINTMAX 1
8952
echo "$as_me:$LINENO: checking for intmax_t" >&5
8953
echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
8954
if test "${gt_cv_c_intmax_t+set}" = set; then
8955
echo $ECHO_N "(cached) $ECHO_C" >&6
8957
cat >conftest.$ac_ext <<_ACEOF
8960
cat confdefs.h >>conftest.$ac_ext
8961
cat >>conftest.$ac_ext <<_ACEOF
8962
/* end confdefs.h. */
8966
#if HAVE_STDINT_H_WITH_UINTMAX
8969
#if HAVE_INTTYPES_H_WITH_UINTMAX
8970
#include <inttypes.h>
8981
rm -f conftest.$ac_objext
8982
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8983
(eval $ac_compile) 2>conftest.er1
8985
grep -v '^ *+' conftest.er1 >conftest.err
8987
cat conftest.err >&5
8988
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989
(exit $ac_status); } &&
8990
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8991
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8994
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995
(exit $ac_status); }; } &&
8996
{ ac_try='test -s conftest.$ac_objext'
8997
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9000
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001
(exit $ac_status); }; }; then
9002
gt_cv_c_intmax_t=yes
9004
echo "$as_me: failed program was:" >&5
9005
sed 's/^/| /' conftest.$ac_ext >&5
9009
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9011
echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
9012
echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
9013
if test $gt_cv_c_intmax_t = yes; then
9015
cat >>confdefs.h <<\_ACEOF
9016
#define HAVE_INTMAX_T 1
9023
echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
9024
echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
9025
if test "${gt_cv_func_printf_posix+set}" = set; then
9026
echo $ECHO_N "(cached) $ECHO_C" >&6
9029
if test "$cross_compiling" = yes; then
9031
cat >conftest.$ac_ext <<_ACEOF
9034
cat confdefs.h >>conftest.$ac_ext
9035
cat >>conftest.$ac_ext <<_ACEOF
9036
/* end confdefs.h. */
9038
#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9043
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9044
$EGREP "notposix" >/dev/null 2>&1; then
9045
gt_cv_func_printf_posix="guessing no"
9047
gt_cv_func_printf_posix="guessing yes"
9053
cat >conftest.$ac_ext <<_ACEOF
9056
cat confdefs.h >>conftest.$ac_ext
9057
cat >>conftest.$ac_ext <<_ACEOF
9058
/* end confdefs.h. */
9062
/* The string "%2$d %1$d", with dollar characters protected from the shell's
9063
dollar expansion (possibly an autoconf bug). */
9064
static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9065
static char buf[100];
9068
sprintf (buf, format, 33, 55);
9069
return (strcmp (buf, "55 33") != 0);
9072
rm -f conftest$ac_exeext
9073
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9074
(eval $ac_link) 2>&5
9076
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9078
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9081
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9082
(exit $ac_status); }; }; then
9083
gt_cv_func_printf_posix=yes
9085
echo "$as_me: program exited with status $ac_status" >&5
9086
echo "$as_me: failed program was:" >&5
9087
sed 's/^/| /' conftest.$ac_ext >&5
9090
gt_cv_func_printf_posix=no
9092
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9096
echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
9097
echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
9098
case $gt_cv_func_printf_posix in
9101
cat >>confdefs.h <<\_ACEOF
9102
#define HAVE_POSIX_PRINTF 1
9108
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9109
# for constant arguments. Useless!
9110
echo "$as_me:$LINENO: checking for working alloca.h" >&5
9111
echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
9112
if test "${ac_cv_working_alloca_h+set}" = set; then
9113
echo $ECHO_N "(cached) $ECHO_C" >&6
9115
cat >conftest.$ac_ext <<_ACEOF
9118
cat confdefs.h >>conftest.$ac_ext
9119
cat >>conftest.$ac_ext <<_ACEOF
9120
/* end confdefs.h. */
9125
char *p = (char *) alloca (2 * sizeof (int));
9130
rm -f conftest.$ac_objext conftest$ac_exeext
9131
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9132
(eval $ac_link) 2>conftest.er1
9134
grep -v '^ *+' conftest.er1 >conftest.err
9136
cat conftest.err >&5
9137
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138
(exit $ac_status); } &&
9139
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9140
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9143
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144
(exit $ac_status); }; } &&
9145
{ ac_try='test -s conftest$ac_exeext'
9146
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9149
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150
(exit $ac_status); }; }; then
9151
ac_cv_working_alloca_h=yes
9153
echo "$as_me: failed program was:" >&5
9154
sed 's/^/| /' conftest.$ac_ext >&5
9156
ac_cv_working_alloca_h=no
9158
rm -f conftest.err conftest.$ac_objext \
9159
conftest$ac_exeext conftest.$ac_ext
9161
echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9162
echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
9163
if test $ac_cv_working_alloca_h = yes; then
9165
cat >>confdefs.h <<\_ACEOF
9166
#define HAVE_ALLOCA_H 1
9171
echo "$as_me:$LINENO: checking for alloca" >&5
9172
echo $ECHO_N "checking for alloca... $ECHO_C" >&6
9173
if test "${ac_cv_func_alloca_works+set}" = set; then
9174
echo $ECHO_N "(cached) $ECHO_C" >&6
9176
cat >conftest.$ac_ext <<_ACEOF
9179
cat confdefs.h >>conftest.$ac_ext
9180
cat >>conftest.$ac_ext <<_ACEOF
9181
/* end confdefs.h. */
9183
# define alloca __builtin_alloca
9186
# include <malloc.h>
9187
# define alloca _alloca
9190
# include <alloca.h>
9195
# ifndef alloca /* predefined by HP cc +Olibcalls */
9206
char *p = (char *) alloca (1);
9211
rm -f conftest.$ac_objext conftest$ac_exeext
9212
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9213
(eval $ac_link) 2>conftest.er1
9215
grep -v '^ *+' conftest.er1 >conftest.err
9217
cat conftest.err >&5
9218
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219
(exit $ac_status); } &&
9220
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9221
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9224
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225
(exit $ac_status); }; } &&
9226
{ ac_try='test -s conftest$ac_exeext'
9227
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9230
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231
(exit $ac_status); }; }; then
9232
ac_cv_func_alloca_works=yes
9234
echo "$as_me: failed program was:" >&5
9235
sed 's/^/| /' conftest.$ac_ext >&5
9237
ac_cv_func_alloca_works=no
9239
rm -f conftest.err conftest.$ac_objext \
9240
conftest$ac_exeext conftest.$ac_ext
9242
echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9243
echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
9245
if test $ac_cv_func_alloca_works = yes; then
9247
cat >>confdefs.h <<\_ACEOF
9248
#define HAVE_ALLOCA 1
9252
# The SVR3 libPW and SVR4 libucb both contain incompatible functions
9253
# that cause trouble. Some versions do not even contain alloca or
9254
# contain a buggy version. If you still want to use their alloca,
9255
# use ar to extract alloca.o from them instead of compiling alloca.c.
9257
ALLOCA=alloca.$ac_objext
9259
cat >>confdefs.h <<\_ACEOF
9264
echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9265
echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
9266
if test "${ac_cv_os_cray+set}" = set; then
9267
echo $ECHO_N "(cached) $ECHO_C" >&6
9269
cat >conftest.$ac_ext <<_ACEOF
9272
cat confdefs.h >>conftest.$ac_ext
9273
cat >>conftest.$ac_ext <<_ACEOF
9274
/* end confdefs.h. */
9275
#if defined(CRAY) && ! defined(CRAY2)
9282
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9283
$EGREP "webecray" >/dev/null 2>&1; then
9291
echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9292
echo "${ECHO_T}$ac_cv_os_cray" >&6
9293
if test $ac_cv_os_cray = yes; then
9294
for ac_func in _getb67 GETB67 getb67; do
9295
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9296
echo "$as_me:$LINENO: checking for $ac_func" >&5
9297
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9298
if eval "test \"\${$as_ac_var+set}\" = set"; then
9299
echo $ECHO_N "(cached) $ECHO_C" >&6
9301
cat >conftest.$ac_ext <<_ACEOF
9304
cat confdefs.h >>conftest.$ac_ext
9305
cat >>conftest.$ac_ext <<_ACEOF
9306
/* end confdefs.h. */
9307
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9308
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9309
#define $ac_func innocuous_$ac_func
9311
/* System header to define __stub macros and hopefully few prototypes,
9312
which can conflict with char $ac_func (); below.
9313
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9314
<limits.h> exists even on freestanding compilers. */
9317
# include <limits.h>
9319
# include <assert.h>
9324
/* Override any gcc2 internal prototype to avoid an error. */
9329
/* We use char because int might match the return type of a gcc2
9330
builtin and then its argument prototype would still apply. */
9332
/* The GNU C library defines this for functions which it implements
9333
to always fail with ENOSYS. Some functions are actually named
9334
something starting with __ and the normal name is an alias. */
9335
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9338
char (*f) () = $ac_func;
9347
return f != $ac_func;
9352
rm -f conftest.$ac_objext conftest$ac_exeext
9353
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9354
(eval $ac_link) 2>conftest.er1
9356
grep -v '^ *+' conftest.er1 >conftest.err
9358
cat conftest.err >&5
9359
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360
(exit $ac_status); } &&
9361
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9362
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9365
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366
(exit $ac_status); }; } &&
9367
{ ac_try='test -s conftest$ac_exeext'
9368
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9371
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9372
(exit $ac_status); }; }; then
9373
eval "$as_ac_var=yes"
9375
echo "$as_me: failed program was:" >&5
9376
sed 's/^/| /' conftest.$ac_ext >&5
9378
eval "$as_ac_var=no"
9380
rm -f conftest.err conftest.$ac_objext \
9381
conftest$ac_exeext conftest.$ac_ext
9383
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9384
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9385
if test `eval echo '${'$as_ac_var'}'` = yes; then
9387
cat >>confdefs.h <<_ACEOF
9388
#define CRAY_STACKSEG_END $ac_func
9397
echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9398
echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
9399
if test "${ac_cv_c_stack_direction+set}" = set; then
9400
echo $ECHO_N "(cached) $ECHO_C" >&6
9402
if test "$cross_compiling" = yes; then
9403
ac_cv_c_stack_direction=0
9405
cat >conftest.$ac_ext <<_ACEOF
9408
cat confdefs.h >>conftest.$ac_ext
9409
cat >>conftest.$ac_ext <<_ACEOF
9410
/* end confdefs.h. */
9412
find_stack_direction ()
9414
static char *addr = 0;
9419
return find_stack_direction ();
9422
return (&dummy > addr) ? 1 : -1;
9428
exit (find_stack_direction () < 0);
9431
rm -f conftest$ac_exeext
9432
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9433
(eval $ac_link) 2>&5
9435
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9436
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9437
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9440
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9441
(exit $ac_status); }; }; then
9442
ac_cv_c_stack_direction=1
9444
echo "$as_me: program exited with status $ac_status" >&5
9445
echo "$as_me: failed program was:" >&5
9446
sed 's/^/| /' conftest.$ac_ext >&5
9449
ac_cv_c_stack_direction=-1
9451
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9454
echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9455
echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
9457
cat >>confdefs.h <<_ACEOF
9458
#define STACK_DIRECTION $ac_cv_c_stack_direction
9466
for ac_header in stdlib.h unistd.h
9468
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9469
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9470
echo "$as_me:$LINENO: checking for $ac_header" >&5
9471
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9472
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9473
echo $ECHO_N "(cached) $ECHO_C" >&6
9475
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9476
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9478
# Is the header compilable?
9479
echo "$as_me:$LINENO: checking $ac_header usability" >&5
9480
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9481
cat >conftest.$ac_ext <<_ACEOF
9484
cat confdefs.h >>conftest.$ac_ext
9485
cat >>conftest.$ac_ext <<_ACEOF
9486
/* end confdefs.h. */
9487
$ac_includes_default
9488
#include <$ac_header>
9490
rm -f conftest.$ac_objext
9491
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9492
(eval $ac_compile) 2>conftest.er1
9494
grep -v '^ *+' conftest.er1 >conftest.err
9496
cat conftest.err >&5
9497
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498
(exit $ac_status); } &&
9499
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9500
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9503
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504
(exit $ac_status); }; } &&
9505
{ ac_try='test -s conftest.$ac_objext'
9506
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9509
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510
(exit $ac_status); }; }; then
9511
ac_header_compiler=yes
9513
echo "$as_me: failed program was:" >&5
9514
sed 's/^/| /' conftest.$ac_ext >&5
9516
ac_header_compiler=no
9518
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9519
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9520
echo "${ECHO_T}$ac_header_compiler" >&6
9522
# Is the header present?
9523
echo "$as_me:$LINENO: checking $ac_header presence" >&5
9524
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9525
cat >conftest.$ac_ext <<_ACEOF
9528
cat confdefs.h >>conftest.$ac_ext
9529
cat >>conftest.$ac_ext <<_ACEOF
9530
/* end confdefs.h. */
9531
#include <$ac_header>
9533
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9534
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9536
grep -v '^ *+' conftest.er1 >conftest.err
9538
cat conftest.err >&5
9539
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540
(exit $ac_status); } >/dev/null; then
9541
if test -s conftest.err; then
9542
ac_cpp_err=$ac_c_preproc_warn_flag
9543
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9550
if test -z "$ac_cpp_err"; then
9551
ac_header_preproc=yes
9553
echo "$as_me: failed program was:" >&5
9554
sed 's/^/| /' conftest.$ac_ext >&5
9556
ac_header_preproc=no
9558
rm -f conftest.err conftest.$ac_ext
9559
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9560
echo "${ECHO_T}$ac_header_preproc" >&6
9562
# So? What about this header?
9563
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9565
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9566
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9567
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9568
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9569
ac_header_preproc=yes
9572
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9573
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9574
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9575
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9576
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9577
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9578
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9579
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9580
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9581
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9582
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9583
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9586
## ------------------------------------ ##
9587
## Report this to gnupg-devel@gnupg.org ##
9588
## ------------------------------------ ##
9591
sed "s/^/$as_me: WARNING: /" >&2
9594
echo "$as_me:$LINENO: checking for $ac_header" >&5
9595
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9596
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9597
echo $ECHO_N "(cached) $ECHO_C" >&6
9599
eval "$as_ac_Header=\$ac_header_preproc"
9601
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9602
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9605
if test `eval echo '${'$as_ac_Header'}'` = yes; then
9606
cat >>confdefs.h <<_ACEOF
9607
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9615
for ac_func in getpagesize
9617
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9618
echo "$as_me:$LINENO: checking for $ac_func" >&5
9619
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9620
if eval "test \"\${$as_ac_var+set}\" = set"; then
9621
echo $ECHO_N "(cached) $ECHO_C" >&6
9623
cat >conftest.$ac_ext <<_ACEOF
9626
cat confdefs.h >>conftest.$ac_ext
9627
cat >>conftest.$ac_ext <<_ACEOF
9628
/* end confdefs.h. */
9629
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9630
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9631
#define $ac_func innocuous_$ac_func
9633
/* System header to define __stub macros and hopefully few prototypes,
9634
which can conflict with char $ac_func (); below.
9635
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9636
<limits.h> exists even on freestanding compilers. */
9639
# include <limits.h>
9641
# include <assert.h>
9646
/* Override any gcc2 internal prototype to avoid an error. */
9651
/* We use char because int might match the return type of a gcc2
9652
builtin and then its argument prototype would still apply. */
9654
/* The GNU C library defines this for functions which it implements
9655
to always fail with ENOSYS. Some functions are actually named
9656
something starting with __ and the normal name is an alias. */
9657
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9660
char (*f) () = $ac_func;
9669
return f != $ac_func;
9674
rm -f conftest.$ac_objext conftest$ac_exeext
9675
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9676
(eval $ac_link) 2>conftest.er1
9678
grep -v '^ *+' conftest.er1 >conftest.err
9680
cat conftest.err >&5
9681
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682
(exit $ac_status); } &&
9683
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9684
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9687
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688
(exit $ac_status); }; } &&
9689
{ ac_try='test -s conftest$ac_exeext'
9690
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9693
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694
(exit $ac_status); }; }; then
9695
eval "$as_ac_var=yes"
9697
echo "$as_me: failed program was:" >&5
9698
sed 's/^/| /' conftest.$ac_ext >&5
9700
eval "$as_ac_var=no"
9702
rm -f conftest.err conftest.$ac_objext \
9703
conftest$ac_exeext conftest.$ac_ext
9705
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9706
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9707
if test `eval echo '${'$as_ac_var'}'` = yes; then
9708
cat >>confdefs.h <<_ACEOF
9709
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9715
echo "$as_me:$LINENO: checking for working mmap" >&5
9716
echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
9717
if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9718
echo $ECHO_N "(cached) $ECHO_C" >&6
9720
if test "$cross_compiling" = yes; then
9721
ac_cv_func_mmap_fixed_mapped=no
9723
cat >conftest.$ac_ext <<_ACEOF
9726
cat confdefs.h >>conftest.$ac_ext
9727
cat >>conftest.$ac_ext <<_ACEOF
9728
/* end confdefs.h. */
9729
$ac_includes_default
9730
/* malloc might have been renamed as rpl_malloc. */
9733
/* Thanks to Mike Haertel and Jim Avera for this test.
9734
Here is a matrix of mmap possibilities:
9735
mmap private not fixed
9736
mmap private fixed at somewhere currently unmapped
9737
mmap private fixed at somewhere already mapped
9738
mmap shared not fixed
9739
mmap shared fixed at somewhere currently unmapped
9740
mmap shared fixed at somewhere already mapped
9741
For private mappings, we should verify that changes cannot be read()
9742
back from the file, nor mmap's back from the file at a different
9743
address. (There have been systems where private was not correctly
9744
implemented like the infamous i386 svr4.0, and systems where the
9745
VM page cache was not coherent with the file system buffer cache
9746
like early versions of FreeBSD and possibly contemporary NetBSD.)
9747
For shared mappings, we should conversely verify that changes get
9748
propagated back to all the places they're supposed to be.
9750
Grep wants private fixed already mapped.
9751
The main things grep needs to know about mmap are:
9752
* does it exist and is it safe to write into the mmap'd area
9753
* how to use it (BSD variants) */
9756
#include <sys/mman.h>
9758
#if !STDC_HEADERS && !HAVE_STDLIB_H
9762
/* This mess was copied from the GNU getpagesize.h. */
9763
#if !HAVE_GETPAGESIZE
9764
/* Assume that all systems that can run configure have sys/param.h. */
9765
# if !HAVE_SYS_PARAM_H
9766
# define HAVE_SYS_PARAM_H 1
9769
# ifdef _SC_PAGESIZE
9770
# define getpagesize() sysconf(_SC_PAGESIZE)
9771
# else /* no _SC_PAGESIZE */
9772
# if HAVE_SYS_PARAM_H
9773
# include <sys/param.h>
9774
# ifdef EXEC_PAGESIZE
9775
# define getpagesize() EXEC_PAGESIZE
9776
# else /* no EXEC_PAGESIZE */
9778
# define getpagesize() NBPG * CLSIZE
9781
# endif /* no CLSIZE */
9782
# else /* no NBPG */
9784
# define getpagesize() NBPC
9785
# else /* no NBPC */
9787
# define getpagesize() PAGESIZE
9788
# endif /* PAGESIZE */
9789
# endif /* no NBPC */
9790
# endif /* no NBPG */
9791
# endif /* no EXEC_PAGESIZE */
9792
# else /* no HAVE_SYS_PARAM_H */
9793
# define getpagesize() 8192 /* punt totally */
9794
# endif /* no HAVE_SYS_PARAM_H */
9795
# endif /* no _SC_PAGESIZE */
9797
#endif /* no HAVE_GETPAGESIZE */
9802
char *data, *data2, *data3;
9806
pagesize = getpagesize ();
9808
/* First, make a file with some known garbage in it. */
9809
data = (char *) malloc (pagesize);
9812
for (i = 0; i < pagesize; ++i)
9813
*(data + i) = rand ();
9815
fd = creat ("conftest.mmap", 0600);
9818
if (write (fd, data, pagesize) != pagesize)
9822
/* Next, try to mmap the file at a fixed address which already has
9823
something else allocated at it. If we can, also make sure that
9824
we see the same garbage. */
9825
fd = open ("conftest.mmap", O_RDWR);
9828
data2 = (char *) malloc (2 * pagesize);
9831
data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
9832
if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9833
MAP_PRIVATE | MAP_FIXED, fd, 0L))
9835
for (i = 0; i < pagesize; ++i)
9836
if (*(data + i) != *(data2 + i))
9839
/* Finally, make sure that changes to the mapped area do not
9840
percolate back to the file as seen by read(). (This is a bug on
9841
some variants of i386 svr4.0.) */
9842
for (i = 0; i < pagesize; ++i)
9843
*(data2 + i) = *(data2 + i) + 1;
9844
data3 = (char *) malloc (pagesize);
9847
if (read (fd, data3, pagesize) != pagesize)
9849
for (i = 0; i < pagesize; ++i)
9850
if (*(data + i) != *(data3 + i))
9856
rm -f conftest$ac_exeext
9857
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9858
(eval $ac_link) 2>&5
9860
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9862
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9865
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866
(exit $ac_status); }; }; then
9867
ac_cv_func_mmap_fixed_mapped=yes
9869
echo "$as_me: program exited with status $ac_status" >&5
9870
echo "$as_me: failed program was:" >&5
9871
sed 's/^/| /' conftest.$ac_ext >&5
9874
ac_cv_func_mmap_fixed_mapped=no
9876
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9879
echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9880
echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9881
if test $ac_cv_func_mmap_fixed_mapped = yes; then
9883
cat >>confdefs.h <<\_ACEOF
9891
echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
9892
echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
9893
if test "${ac_cv_gnu_library_2_1+set}" = set; then
9894
echo $ECHO_N "(cached) $ECHO_C" >&6
9896
cat >conftest.$ac_ext <<_ACEOF
9899
cat confdefs.h >>conftest.$ac_ext
9900
cat >>conftest.$ac_ext <<_ACEOF
9901
/* end confdefs.h. */
9903
#include <features.h>
9904
#ifdef __GNU_LIBRARY__
9905
#if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9911
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9912
$EGREP "Lucky GNU user" >/dev/null 2>&1; then
9913
ac_cv_gnu_library_2_1=yes
9915
ac_cv_gnu_library_2_1=no
9922
echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
9923
echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
9925
GLIBC21="$ac_cv_gnu_library_2_1"
9930
echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
9931
echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
9932
if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
9933
echo $ECHO_N "(cached) $ECHO_C" >&6
9936
if test "$cross_compiling" = yes; then
9938
# Guess based on the CPU.
9940
alpha* | i3456786 | m68k | s390*)
9941
gt_cv_int_divbyzero_sigfpe="guessing yes";;
9943
gt_cv_int_divbyzero_sigfpe="guessing no";;
9947
cat >conftest.$ac_ext <<_ACEOF
9950
cat confdefs.h >>conftest.$ac_ext
9951
cat >>conftest.$ac_ext <<_ACEOF
9952
/* end confdefs.h. */
9959
sigfpe_handler (int sig)
9961
sigfpe_handler (sig) int sig;
9964
/* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
9965
exit (sig != SIGFPE);
9975
signal (SIGFPE, sigfpe_handler);
9976
/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
9977
#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
9978
signal (SIGTRAP, sigfpe_handler);
9980
/* Linux/SPARC yields signal SIGILL. */
9981
#if defined (__sparc__) && defined (__linux__)
9982
signal (SIGILL, sigfpe_handler);
9991
rm -f conftest$ac_exeext
9992
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9993
(eval $ac_link) 2>&5
9995
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9997
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10000
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001
(exit $ac_status); }; }; then
10002
gt_cv_int_divbyzero_sigfpe=yes
10004
echo "$as_me: program exited with status $ac_status" >&5
10005
echo "$as_me: failed program was:" >&5
10006
sed 's/^/| /' conftest.$ac_ext >&5
10008
( exit $ac_status )
10009
gt_cv_int_divbyzero_sigfpe=no
10011
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10015
echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
10016
echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
10017
case "$gt_cv_int_divbyzero_sigfpe" in
10022
cat >>confdefs.h <<_ACEOF
10023
#define INTDIV0_RAISES_SIGFPE $value
10028
echo "$as_me:$LINENO: checking for unsigned long long" >&5
10029
echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
10030
if test "${ac_cv_type_unsigned_long_long+set}" = set; then
10031
echo $ECHO_N "(cached) $ECHO_C" >&6
10033
cat >conftest.$ac_ext <<_ACEOF
10036
cat confdefs.h >>conftest.$ac_ext
10037
cat >>conftest.$ac_ext <<_ACEOF
10038
/* end confdefs.h. */
10039
unsigned long long ull = 1ULL; int i = 63;
10043
unsigned long long ullmax = (unsigned long long) -1;
10044
return ull << i | ull >> i | ullmax / ull | ullmax % ull;
10049
rm -f conftest.$ac_objext conftest$ac_exeext
10050
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10051
(eval $ac_link) 2>conftest.er1
10053
grep -v '^ *+' conftest.er1 >conftest.err
10055
cat conftest.err >&5
10056
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057
(exit $ac_status); } &&
10058
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10059
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10060
(eval $ac_try) 2>&5
10062
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063
(exit $ac_status); }; } &&
10064
{ ac_try='test -s conftest$ac_exeext'
10065
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10066
(eval $ac_try) 2>&5
10068
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069
(exit $ac_status); }; }; then
10070
ac_cv_type_unsigned_long_long=yes
10072
echo "$as_me: failed program was:" >&5
10073
sed 's/^/| /' conftest.$ac_ext >&5
10075
ac_cv_type_unsigned_long_long=no
10077
rm -f conftest.err conftest.$ac_objext \
10078
conftest$ac_exeext conftest.$ac_ext
10080
echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
10081
echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
10082
if test $ac_cv_type_unsigned_long_long = yes; then
10084
cat >>confdefs.h <<\_ACEOF
10085
#define HAVE_UNSIGNED_LONG_LONG 1
10093
if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
10095
test $ac_cv_type_unsigned_long_long = yes \
10096
&& ac_type='unsigned long long' \
10097
|| ac_type='unsigned long'
10099
cat >>confdefs.h <<_ACEOF
10100
#define uintmax_t $ac_type
10105
cat >>confdefs.h <<\_ACEOF
10106
#define HAVE_UINTMAX_T 1
10112
echo "$as_me:$LINENO: checking for inttypes.h" >&5
10113
echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
10114
if test "${gt_cv_header_inttypes_h+set}" = set; then
10115
echo $ECHO_N "(cached) $ECHO_C" >&6
10118
cat >conftest.$ac_ext <<_ACEOF
10121
cat confdefs.h >>conftest.$ac_ext
10122
cat >>conftest.$ac_ext <<_ACEOF
10123
/* end confdefs.h. */
10124
#include <sys/types.h>
10125
#include <inttypes.h>
10134
rm -f conftest.$ac_objext
10135
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10136
(eval $ac_compile) 2>conftest.er1
10138
grep -v '^ *+' conftest.er1 >conftest.err
10140
cat conftest.err >&5
10141
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142
(exit $ac_status); } &&
10143
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10144
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10145
(eval $ac_try) 2>&5
10147
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148
(exit $ac_status); }; } &&
10149
{ ac_try='test -s conftest.$ac_objext'
10150
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10151
(eval $ac_try) 2>&5
10153
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154
(exit $ac_status); }; }; then
10155
gt_cv_header_inttypes_h=yes
10157
echo "$as_me: failed program was:" >&5
10158
sed 's/^/| /' conftest.$ac_ext >&5
10160
gt_cv_header_inttypes_h=no
10162
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10165
echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
10166
echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
10167
if test $gt_cv_header_inttypes_h = yes; then
10169
cat >>confdefs.h <<_ACEOF
10170
#define HAVE_INTTYPES_H 1
10177
if test $gt_cv_header_inttypes_h = yes; then
10178
echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
10179
echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
10180
if test "${gt_cv_inttypes_pri_broken+set}" = set; then
10181
echo $ECHO_N "(cached) $ECHO_C" >&6
10184
cat >conftest.$ac_ext <<_ACEOF
10187
cat confdefs.h >>conftest.$ac_ext
10188
cat >>conftest.$ac_ext <<_ACEOF
10189
/* end confdefs.h. */
10190
#include <inttypes.h>
10203
rm -f conftest.$ac_objext
10204
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10205
(eval $ac_compile) 2>conftest.er1
10207
grep -v '^ *+' conftest.er1 >conftest.err
10209
cat conftest.err >&5
10210
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211
(exit $ac_status); } &&
10212
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10213
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10214
(eval $ac_try) 2>&5
10216
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217
(exit $ac_status); }; } &&
10218
{ ac_try='test -s conftest.$ac_objext'
10219
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10220
(eval $ac_try) 2>&5
10222
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223
(exit $ac_status); }; }; then
10224
gt_cv_inttypes_pri_broken=no
10226
echo "$as_me: failed program was:" >&5
10227
sed 's/^/| /' conftest.$ac_ext >&5
10229
gt_cv_inttypes_pri_broken=yes
10231
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10234
echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
10235
echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
10237
if test "$gt_cv_inttypes_pri_broken" = yes; then
10239
cat >>confdefs.h <<_ACEOF
10240
#define PRI_MACROS_BROKEN 1
10247
for ac_header in stdint.h
10249
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10250
if eval "test \"\${$as_ac_Header+set}\" = set"; then
10251
echo "$as_me:$LINENO: checking for $ac_header" >&5
10252
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10253
if eval "test \"\${$as_ac_Header+set}\" = set"; then
10254
echo $ECHO_N "(cached) $ECHO_C" >&6
10256
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10257
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10259
# Is the header compilable?
10260
echo "$as_me:$LINENO: checking $ac_header usability" >&5
10261
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10262
cat >conftest.$ac_ext <<_ACEOF
10265
cat confdefs.h >>conftest.$ac_ext
10266
cat >>conftest.$ac_ext <<_ACEOF
10267
/* end confdefs.h. */
10268
$ac_includes_default
10269
#include <$ac_header>
10271
rm -f conftest.$ac_objext
10272
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10273
(eval $ac_compile) 2>conftest.er1
10275
grep -v '^ *+' conftest.er1 >conftest.err
10277
cat conftest.err >&5
10278
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10279
(exit $ac_status); } &&
10280
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10281
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10282
(eval $ac_try) 2>&5
10284
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285
(exit $ac_status); }; } &&
10286
{ ac_try='test -s conftest.$ac_objext'
10287
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10288
(eval $ac_try) 2>&5
10290
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291
(exit $ac_status); }; }; then
10292
ac_header_compiler=yes
10294
echo "$as_me: failed program was:" >&5
10295
sed 's/^/| /' conftest.$ac_ext >&5
10297
ac_header_compiler=no
10299
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10300
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10301
echo "${ECHO_T}$ac_header_compiler" >&6
10303
# Is the header present?
10304
echo "$as_me:$LINENO: checking $ac_header presence" >&5
10305
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10306
cat >conftest.$ac_ext <<_ACEOF
10309
cat confdefs.h >>conftest.$ac_ext
10310
cat >>conftest.$ac_ext <<_ACEOF
10311
/* end confdefs.h. */
10312
#include <$ac_header>
10314
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10315
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10317
grep -v '^ *+' conftest.er1 >conftest.err
10319
cat conftest.err >&5
10320
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10321
(exit $ac_status); } >/dev/null; then
10322
if test -s conftest.err; then
10323
ac_cpp_err=$ac_c_preproc_warn_flag
10324
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10331
if test -z "$ac_cpp_err"; then
10332
ac_header_preproc=yes
10334
echo "$as_me: failed program was:" >&5
10335
sed 's/^/| /' conftest.$ac_ext >&5
10337
ac_header_preproc=no
10339
rm -f conftest.err conftest.$ac_ext
10340
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10341
echo "${ECHO_T}$ac_header_preproc" >&6
10343
# So? What about this header?
10344
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10346
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10347
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10348
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10349
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10350
ac_header_preproc=yes
10353
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10354
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10355
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10356
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10357
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10358
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10359
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10360
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10361
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10362
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10363
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10364
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10367
## ------------------------------------ ##
10368
## Report this to gnupg-devel@gnupg.org ##
10369
## ------------------------------------ ##
10372
sed "s/^/$as_me: WARNING: /" >&2
10375
echo "$as_me:$LINENO: checking for $ac_header" >&5
10376
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10377
if eval "test \"\${$as_ac_Header+set}\" = set"; then
10378
echo $ECHO_N "(cached) $ECHO_C" >&6
10380
eval "$as_ac_Header=\$ac_header_preproc"
10382
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10383
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10386
if test `eval echo '${'$as_ac_Header'}'` = yes; then
10387
cat >>confdefs.h <<_ACEOF
10388
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10395
echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
10396
echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
10398
cat >conftest.$ac_ext <<_ACEOF
10401
cat confdefs.h >>conftest.$ac_ext
10402
cat >>conftest.$ac_ext <<_ACEOF
10403
/* end confdefs.h. */
10405
#include <limits.h>
10407
#include <stdint.h>
10414
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10415
$EGREP "Found it" >/dev/null 2>&1; then
10420
if test -z "$result"; then
10421
if test "$cross_compiling" = yes; then
10422
# Depending upon the size, compute the lo and hi bounds.
10423
cat >conftest.$ac_ext <<_ACEOF
10426
cat confdefs.h >>conftest.$ac_ext
10427
cat >>conftest.$ac_ext <<_ACEOF
10428
/* end confdefs.h. */
10429
#include <stddef.h>
10433
static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
10440
rm -f conftest.$ac_objext
10441
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10442
(eval $ac_compile) 2>conftest.er1
10444
grep -v '^ *+' conftest.er1 >conftest.err
10446
cat conftest.err >&5
10447
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448
(exit $ac_status); } &&
10449
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10450
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10451
(eval $ac_try) 2>&5
10453
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10454
(exit $ac_status); }; } &&
10455
{ ac_try='test -s conftest.$ac_objext'
10456
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10457
(eval $ac_try) 2>&5
10459
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460
(exit $ac_status); }; }; then
10463
cat >conftest.$ac_ext <<_ACEOF
10466
cat confdefs.h >>conftest.$ac_ext
10467
cat >>conftest.$ac_ext <<_ACEOF
10468
/* end confdefs.h. */
10469
#include <stddef.h>
10473
static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10480
rm -f conftest.$ac_objext
10481
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10482
(eval $ac_compile) 2>conftest.er1
10484
grep -v '^ *+' conftest.er1 >conftest.err
10486
cat conftest.err >&5
10487
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488
(exit $ac_status); } &&
10489
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10490
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10491
(eval $ac_try) 2>&5
10493
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10494
(exit $ac_status); }; } &&
10495
{ ac_try='test -s conftest.$ac_objext'
10496
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10497
(eval $ac_try) 2>&5
10499
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10500
(exit $ac_status); }; }; then
10501
ac_hi=$ac_mid; break
10503
echo "$as_me: failed program was:" >&5
10504
sed 's/^/| /' conftest.$ac_ext >&5
10506
ac_lo=`expr $ac_mid + 1`
10507
if test $ac_lo -le $ac_mid; then
10511
ac_mid=`expr 2 '*' $ac_mid + 1`
10513
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10516
echo "$as_me: failed program was:" >&5
10517
sed 's/^/| /' conftest.$ac_ext >&5
10519
cat >conftest.$ac_ext <<_ACEOF
10522
cat confdefs.h >>conftest.$ac_ext
10523
cat >>conftest.$ac_ext <<_ACEOF
10524
/* end confdefs.h. */
10525
#include <stddef.h>
10529
static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
10536
rm -f conftest.$ac_objext
10537
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10538
(eval $ac_compile) 2>conftest.er1
10540
grep -v '^ *+' conftest.er1 >conftest.err
10542
cat conftest.err >&5
10543
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544
(exit $ac_status); } &&
10545
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10546
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10547
(eval $ac_try) 2>&5
10549
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550
(exit $ac_status); }; } &&
10551
{ ac_try='test -s conftest.$ac_objext'
10552
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10553
(eval $ac_try) 2>&5
10555
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556
(exit $ac_status); }; }; then
10559
cat >conftest.$ac_ext <<_ACEOF
10562
cat confdefs.h >>conftest.$ac_ext
10563
cat >>conftest.$ac_ext <<_ACEOF
10564
/* end confdefs.h. */
10565
#include <stddef.h>
10569
static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
10576
rm -f conftest.$ac_objext
10577
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10578
(eval $ac_compile) 2>conftest.er1
10580
grep -v '^ *+' conftest.er1 >conftest.err
10582
cat conftest.err >&5
10583
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584
(exit $ac_status); } &&
10585
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10586
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10587
(eval $ac_try) 2>&5
10589
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590
(exit $ac_status); }; } &&
10591
{ ac_try='test -s conftest.$ac_objext'
10592
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10593
(eval $ac_try) 2>&5
10595
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596
(exit $ac_status); }; }; then
10597
ac_lo=$ac_mid; break
10599
echo "$as_me: failed program was:" >&5
10600
sed 's/^/| /' conftest.$ac_ext >&5
10602
ac_hi=`expr '(' $ac_mid ')' - 1`
10603
if test $ac_mid -le $ac_hi; then
10607
ac_mid=`expr 2 '*' $ac_mid`
10609
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10612
echo "$as_me: failed program was:" >&5
10613
sed 's/^/| /' conftest.$ac_ext >&5
10617
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10619
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10620
# Binary search between lo and hi bounds.
10621
while test "x$ac_lo" != "x$ac_hi"; do
10622
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10623
cat >conftest.$ac_ext <<_ACEOF
10626
cat confdefs.h >>conftest.$ac_ext
10627
cat >>conftest.$ac_ext <<_ACEOF
10628
/* end confdefs.h. */
10629
#include <stddef.h>
10633
static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10640
rm -f conftest.$ac_objext
10641
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10642
(eval $ac_compile) 2>conftest.er1
10644
grep -v '^ *+' conftest.er1 >conftest.err
10646
cat conftest.err >&5
10647
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648
(exit $ac_status); } &&
10649
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10650
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10651
(eval $ac_try) 2>&5
10653
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654
(exit $ac_status); }; } &&
10655
{ ac_try='test -s conftest.$ac_objext'
10656
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10657
(eval $ac_try) 2>&5
10659
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660
(exit $ac_status); }; }; then
10663
echo "$as_me: failed program was:" >&5
10664
sed 's/^/| /' conftest.$ac_ext >&5
10666
ac_lo=`expr '(' $ac_mid ')' + 1`
10668
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10671
?*) res_hi=$ac_lo;;
10675
if test "$cross_compiling" = yes; then
10676
{ { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
10677
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
10678
{ (exit 1); exit 1; }; }
10680
cat >conftest.$ac_ext <<_ACEOF
10683
cat confdefs.h >>conftest.$ac_ext
10684
cat >>conftest.$ac_ext <<_ACEOF
10685
/* end confdefs.h. */
10686
#include <stddef.h>
10687
long longval () { return ~(size_t)0 / 10; }
10688
unsigned long ulongval () { return ~(size_t)0 / 10; }
10690
#include <stdlib.h>
10695
FILE *f = fopen ("conftest.val", "w");
10698
if ((~(size_t)0 / 10) < 0)
10700
long i = longval ();
10701
if (i != (~(size_t)0 / 10))
10703
fprintf (f, "%ld\n", i);
10707
unsigned long i = ulongval ();
10708
if (i != (~(size_t)0 / 10))
10710
fprintf (f, "%lu\n", i);
10712
exit (ferror (f) || fclose (f) != 0);
10718
rm -f conftest$ac_exeext
10719
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10720
(eval $ac_link) 2>&5
10722
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10724
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10725
(eval $ac_try) 2>&5
10727
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10728
(exit $ac_status); }; }; then
10729
res_hi=`cat conftest.val`
10731
echo "$as_me: program exited with status $ac_status" >&5
10732
echo "$as_me: failed program was:" >&5
10733
sed 's/^/| /' conftest.$ac_ext >&5
10735
( exit $ac_status )
10738
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10742
if test "$cross_compiling" = yes; then
10743
# Depending upon the size, compute the lo and hi bounds.
10744
cat >conftest.$ac_ext <<_ACEOF
10747
cat confdefs.h >>conftest.$ac_ext
10748
cat >>conftest.$ac_ext <<_ACEOF
10749
/* end confdefs.h. */
10750
#include <stddef.h>
10754
static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
10761
rm -f conftest.$ac_objext
10762
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10763
(eval $ac_compile) 2>conftest.er1
10765
grep -v '^ *+' conftest.er1 >conftest.err
10767
cat conftest.err >&5
10768
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769
(exit $ac_status); } &&
10770
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10771
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10772
(eval $ac_try) 2>&5
10774
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775
(exit $ac_status); }; } &&
10776
{ ac_try='test -s conftest.$ac_objext'
10777
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10778
(eval $ac_try) 2>&5
10780
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781
(exit $ac_status); }; }; then
10784
cat >conftest.$ac_ext <<_ACEOF
10787
cat confdefs.h >>conftest.$ac_ext
10788
cat >>conftest.$ac_ext <<_ACEOF
10789
/* end confdefs.h. */
10790
#include <stddef.h>
10794
static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10801
rm -f conftest.$ac_objext
10802
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10803
(eval $ac_compile) 2>conftest.er1
10805
grep -v '^ *+' conftest.er1 >conftest.err
10807
cat conftest.err >&5
10808
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809
(exit $ac_status); } &&
10810
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10811
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10812
(eval $ac_try) 2>&5
10814
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815
(exit $ac_status); }; } &&
10816
{ ac_try='test -s conftest.$ac_objext'
10817
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10818
(eval $ac_try) 2>&5
10820
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10821
(exit $ac_status); }; }; then
10822
ac_hi=$ac_mid; break
10824
echo "$as_me: failed program was:" >&5
10825
sed 's/^/| /' conftest.$ac_ext >&5
10827
ac_lo=`expr $ac_mid + 1`
10828
if test $ac_lo -le $ac_mid; then
10832
ac_mid=`expr 2 '*' $ac_mid + 1`
10834
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10837
echo "$as_me: failed program was:" >&5
10838
sed 's/^/| /' conftest.$ac_ext >&5
10840
cat >conftest.$ac_ext <<_ACEOF
10843
cat confdefs.h >>conftest.$ac_ext
10844
cat >>conftest.$ac_ext <<_ACEOF
10845
/* end confdefs.h. */
10846
#include <stddef.h>
10850
static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
10857
rm -f conftest.$ac_objext
10858
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10859
(eval $ac_compile) 2>conftest.er1
10861
grep -v '^ *+' conftest.er1 >conftest.err
10863
cat conftest.err >&5
10864
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10865
(exit $ac_status); } &&
10866
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10867
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10868
(eval $ac_try) 2>&5
10870
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871
(exit $ac_status); }; } &&
10872
{ ac_try='test -s conftest.$ac_objext'
10873
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10874
(eval $ac_try) 2>&5
10876
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877
(exit $ac_status); }; }; then
10880
cat >conftest.$ac_ext <<_ACEOF
10883
cat confdefs.h >>conftest.$ac_ext
10884
cat >>conftest.$ac_ext <<_ACEOF
10885
/* end confdefs.h. */
10886
#include <stddef.h>
10890
static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
10897
rm -f conftest.$ac_objext
10898
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10899
(eval $ac_compile) 2>conftest.er1
10901
grep -v '^ *+' conftest.er1 >conftest.err
10903
cat conftest.err >&5
10904
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905
(exit $ac_status); } &&
10906
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10907
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10908
(eval $ac_try) 2>&5
10910
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10911
(exit $ac_status); }; } &&
10912
{ ac_try='test -s conftest.$ac_objext'
10913
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10914
(eval $ac_try) 2>&5
10916
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917
(exit $ac_status); }; }; then
10918
ac_lo=$ac_mid; break
10920
echo "$as_me: failed program was:" >&5
10921
sed 's/^/| /' conftest.$ac_ext >&5
10923
ac_hi=`expr '(' $ac_mid ')' - 1`
10924
if test $ac_mid -le $ac_hi; then
10928
ac_mid=`expr 2 '*' $ac_mid`
10930
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10933
echo "$as_me: failed program was:" >&5
10934
sed 's/^/| /' conftest.$ac_ext >&5
10938
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10940
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10941
# Binary search between lo and hi bounds.
10942
while test "x$ac_lo" != "x$ac_hi"; do
10943
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10944
cat >conftest.$ac_ext <<_ACEOF
10947
cat confdefs.h >>conftest.$ac_ext
10948
cat >>conftest.$ac_ext <<_ACEOF
10949
/* end confdefs.h. */
10950
#include <stddef.h>
10954
static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10961
rm -f conftest.$ac_objext
10962
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10963
(eval $ac_compile) 2>conftest.er1
10965
grep -v '^ *+' conftest.er1 >conftest.err
10967
cat conftest.err >&5
10968
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969
(exit $ac_status); } &&
10970
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10971
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10972
(eval $ac_try) 2>&5
10974
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975
(exit $ac_status); }; } &&
10976
{ ac_try='test -s conftest.$ac_objext'
10977
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10978
(eval $ac_try) 2>&5
10980
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10981
(exit $ac_status); }; }; then
10984
echo "$as_me: failed program was:" >&5
10985
sed 's/^/| /' conftest.$ac_ext >&5
10987
ac_lo=`expr '(' $ac_mid ')' + 1`
10989
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10992
?*) res_lo=$ac_lo;;
10996
if test "$cross_compiling" = yes; then
10997
{ { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
10998
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
10999
{ (exit 1); exit 1; }; }
11001
cat >conftest.$ac_ext <<_ACEOF
11004
cat confdefs.h >>conftest.$ac_ext
11005
cat >>conftest.$ac_ext <<_ACEOF
11006
/* end confdefs.h. */
11007
#include <stddef.h>
11008
long longval () { return ~(size_t)0 % 10; }
11009
unsigned long ulongval () { return ~(size_t)0 % 10; }
11011
#include <stdlib.h>
11016
FILE *f = fopen ("conftest.val", "w");
11019
if ((~(size_t)0 % 10) < 0)
11021
long i = longval ();
11022
if (i != (~(size_t)0 % 10))
11024
fprintf (f, "%ld\n", i);
11028
unsigned long i = ulongval ();
11029
if (i != (~(size_t)0 % 10))
11031
fprintf (f, "%lu\n", i);
11033
exit (ferror (f) || fclose (f) != 0);
11039
rm -f conftest$ac_exeext
11040
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11041
(eval $ac_link) 2>&5
11043
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11045
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11046
(eval $ac_try) 2>&5
11048
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049
(exit $ac_status); }; }; then
11050
res_lo=`cat conftest.val`
11052
echo "$as_me: program exited with status $ac_status" >&5
11053
echo "$as_me: failed program was:" >&5
11054
sed 's/^/| /' conftest.$ac_ext >&5
11056
( exit $ac_status )
11059
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11063
if test "$cross_compiling" = yes; then
11064
# Depending upon the size, compute the lo and hi bounds.
11065
cat >conftest.$ac_ext <<_ACEOF
11068
cat confdefs.h >>conftest.$ac_ext
11069
cat >>conftest.$ac_ext <<_ACEOF
11070
/* end confdefs.h. */
11071
#include <stddef.h>
11075
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
11082
rm -f conftest.$ac_objext
11083
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11084
(eval $ac_compile) 2>conftest.er1
11086
grep -v '^ *+' conftest.er1 >conftest.err
11088
cat conftest.err >&5
11089
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090
(exit $ac_status); } &&
11091
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11092
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11093
(eval $ac_try) 2>&5
11095
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096
(exit $ac_status); }; } &&
11097
{ ac_try='test -s conftest.$ac_objext'
11098
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11099
(eval $ac_try) 2>&5
11101
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102
(exit $ac_status); }; }; then
11105
cat >conftest.$ac_ext <<_ACEOF
11108
cat confdefs.h >>conftest.$ac_ext
11109
cat >>conftest.$ac_ext <<_ACEOF
11110
/* end confdefs.h. */
11111
#include <stddef.h>
11115
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
11122
rm -f conftest.$ac_objext
11123
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11124
(eval $ac_compile) 2>conftest.er1
11126
grep -v '^ *+' conftest.er1 >conftest.err
11128
cat conftest.err >&5
11129
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130
(exit $ac_status); } &&
11131
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11132
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11133
(eval $ac_try) 2>&5
11135
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136
(exit $ac_status); }; } &&
11137
{ ac_try='test -s conftest.$ac_objext'
11138
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11139
(eval $ac_try) 2>&5
11141
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142
(exit $ac_status); }; }; then
11143
ac_hi=$ac_mid; break
11145
echo "$as_me: failed program was:" >&5
11146
sed 's/^/| /' conftest.$ac_ext >&5
11148
ac_lo=`expr $ac_mid + 1`
11149
if test $ac_lo -le $ac_mid; then
11153
ac_mid=`expr 2 '*' $ac_mid + 1`
11155
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11158
echo "$as_me: failed program was:" >&5
11159
sed 's/^/| /' conftest.$ac_ext >&5
11161
cat >conftest.$ac_ext <<_ACEOF
11164
cat confdefs.h >>conftest.$ac_ext
11165
cat >>conftest.$ac_ext <<_ACEOF
11166
/* end confdefs.h. */
11167
#include <stddef.h>
11171
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
11178
rm -f conftest.$ac_objext
11179
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11180
(eval $ac_compile) 2>conftest.er1
11182
grep -v '^ *+' conftest.er1 >conftest.err
11184
cat conftest.err >&5
11185
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186
(exit $ac_status); } &&
11187
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11188
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11189
(eval $ac_try) 2>&5
11191
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11192
(exit $ac_status); }; } &&
11193
{ ac_try='test -s conftest.$ac_objext'
11194
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11195
(eval $ac_try) 2>&5
11197
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11198
(exit $ac_status); }; }; then
11201
cat >conftest.$ac_ext <<_ACEOF
11204
cat confdefs.h >>conftest.$ac_ext
11205
cat >>conftest.$ac_ext <<_ACEOF
11206
/* end confdefs.h. */
11207
#include <stddef.h>
11211
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
11218
rm -f conftest.$ac_objext
11219
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11220
(eval $ac_compile) 2>conftest.er1
11222
grep -v '^ *+' conftest.er1 >conftest.err
11224
cat conftest.err >&5
11225
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226
(exit $ac_status); } &&
11227
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11228
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11229
(eval $ac_try) 2>&5
11231
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232
(exit $ac_status); }; } &&
11233
{ ac_try='test -s conftest.$ac_objext'
11234
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11235
(eval $ac_try) 2>&5
11237
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238
(exit $ac_status); }; }; then
11239
ac_lo=$ac_mid; break
11241
echo "$as_me: failed program was:" >&5
11242
sed 's/^/| /' conftest.$ac_ext >&5
11244
ac_hi=`expr '(' $ac_mid ')' - 1`
11245
if test $ac_mid -le $ac_hi; then
11249
ac_mid=`expr 2 '*' $ac_mid`
11251
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11254
echo "$as_me: failed program was:" >&5
11255
sed 's/^/| /' conftest.$ac_ext >&5
11259
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11261
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11262
# Binary search between lo and hi bounds.
11263
while test "x$ac_lo" != "x$ac_hi"; do
11264
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11265
cat >conftest.$ac_ext <<_ACEOF
11268
cat confdefs.h >>conftest.$ac_ext
11269
cat >>conftest.$ac_ext <<_ACEOF
11270
/* end confdefs.h. */
11271
#include <stddef.h>
11275
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
11282
rm -f conftest.$ac_objext
11283
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11284
(eval $ac_compile) 2>conftest.er1
11286
grep -v '^ *+' conftest.er1 >conftest.err
11288
cat conftest.err >&5
11289
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290
(exit $ac_status); } &&
11291
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11292
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11293
(eval $ac_try) 2>&5
11295
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11296
(exit $ac_status); }; } &&
11297
{ ac_try='test -s conftest.$ac_objext'
11298
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11299
(eval $ac_try) 2>&5
11301
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302
(exit $ac_status); }; }; then
11305
echo "$as_me: failed program was:" >&5
11306
sed 's/^/| /' conftest.$ac_ext >&5
11308
ac_lo=`expr '(' $ac_mid ')' + 1`
11310
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11313
?*) fits_in_uint=$ac_lo;;
11317
if test "$cross_compiling" = yes; then
11318
{ { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
11319
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
11320
{ (exit 1); exit 1; }; }
11322
cat >conftest.$ac_ext <<_ACEOF
11325
cat confdefs.h >>conftest.$ac_ext
11326
cat >>conftest.$ac_ext <<_ACEOF
11327
/* end confdefs.h. */
11328
#include <stddef.h>
11329
long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
11330
unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
11332
#include <stdlib.h>
11337
FILE *f = fopen ("conftest.val", "w");
11340
if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
11342
long i = longval ();
11343
if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11345
fprintf (f, "%ld\n", i);
11349
unsigned long i = ulongval ();
11350
if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11352
fprintf (f, "%lu\n", i);
11354
exit (ferror (f) || fclose (f) != 0);
11360
rm -f conftest$ac_exeext
11361
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11362
(eval $ac_link) 2>&5
11364
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11366
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11367
(eval $ac_try) 2>&5
11369
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11370
(exit $ac_status); }; }; then
11371
fits_in_uint=`cat conftest.val`
11373
echo "$as_me: program exited with status $ac_status" >&5
11374
echo "$as_me: failed program was:" >&5
11375
sed 's/^/| /' conftest.$ac_ext >&5
11377
( exit $ac_status )
11380
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11384
if test "$fits_in_uint" = 1; then
11385
cat >conftest.$ac_ext <<_ACEOF
11388
cat confdefs.h >>conftest.$ac_ext
11389
cat >>conftest.$ac_ext <<_ACEOF
11390
/* end confdefs.h. */
11391
#include <stddef.h>
11393
extern unsigned long foo;
11403
rm -f conftest.$ac_objext
11404
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11405
(eval $ac_compile) 2>conftest.er1
11407
grep -v '^ *+' conftest.er1 >conftest.err
11409
cat conftest.err >&5
11410
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411
(exit $ac_status); } &&
11412
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11413
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11414
(eval $ac_try) 2>&5
11416
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417
(exit $ac_status); }; } &&
11418
{ ac_try='test -s conftest.$ac_objext'
11419
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11420
(eval $ac_try) 2>&5
11422
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423
(exit $ac_status); }; }; then
11426
echo "$as_me: failed program was:" >&5
11427
sed 's/^/| /' conftest.$ac_ext >&5
11430
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11432
if test -z "$result"; then
11433
if test "$fits_in_uint" = 1; then
11434
result="$res_hi$res_lo"U
11436
result="$res_hi$res_lo"UL
11439
result='~(size_t)0'
11442
echo "$as_me:$LINENO: result: $result" >&5
11443
echo "${ECHO_T}$result" >&6
11444
if test "$result" != yes; then
11446
cat >>confdefs.h <<_ACEOF
11447
#define SIZE_MAX $result
11455
for ac_header in stdint.h
11457
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11458
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11459
echo "$as_me:$LINENO: checking for $ac_header" >&5
11460
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11461
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11462
echo $ECHO_N "(cached) $ECHO_C" >&6
11464
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11465
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11467
# Is the header compilable?
11468
echo "$as_me:$LINENO: checking $ac_header usability" >&5
11469
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11470
cat >conftest.$ac_ext <<_ACEOF
11473
cat confdefs.h >>conftest.$ac_ext
11474
cat >>conftest.$ac_ext <<_ACEOF
11475
/* end confdefs.h. */
11476
$ac_includes_default
11477
#include <$ac_header>
11479
rm -f conftest.$ac_objext
11480
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11481
(eval $ac_compile) 2>conftest.er1
11483
grep -v '^ *+' conftest.er1 >conftest.err
11485
cat conftest.err >&5
11486
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487
(exit $ac_status); } &&
11488
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11489
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11490
(eval $ac_try) 2>&5
11492
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493
(exit $ac_status); }; } &&
11494
{ ac_try='test -s conftest.$ac_objext'
11495
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11496
(eval $ac_try) 2>&5
11498
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499
(exit $ac_status); }; }; then
11500
ac_header_compiler=yes
11502
echo "$as_me: failed program was:" >&5
11503
sed 's/^/| /' conftest.$ac_ext >&5
11505
ac_header_compiler=no
11507
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11508
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11509
echo "${ECHO_T}$ac_header_compiler" >&6
11511
# Is the header present?
11512
echo "$as_me:$LINENO: checking $ac_header presence" >&5
11513
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11514
cat >conftest.$ac_ext <<_ACEOF
11517
cat confdefs.h >>conftest.$ac_ext
11518
cat >>conftest.$ac_ext <<_ACEOF
11519
/* end confdefs.h. */
11520
#include <$ac_header>
11522
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11523
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11525
grep -v '^ *+' conftest.er1 >conftest.err
11527
cat conftest.err >&5
11528
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529
(exit $ac_status); } >/dev/null; then
11530
if test -s conftest.err; then
11531
ac_cpp_err=$ac_c_preproc_warn_flag
11532
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11539
if test -z "$ac_cpp_err"; then
11540
ac_header_preproc=yes
11542
echo "$as_me: failed program was:" >&5
11543
sed 's/^/| /' conftest.$ac_ext >&5
11545
ac_header_preproc=no
11547
rm -f conftest.err conftest.$ac_ext
11548
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11549
echo "${ECHO_T}$ac_header_preproc" >&6
11551
# So? What about this header?
11552
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11554
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11555
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11556
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11557
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11558
ac_header_preproc=yes
11561
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11562
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11563
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11564
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11565
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11566
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11567
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11568
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11569
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11570
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11571
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11572
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11575
## ------------------------------------ ##
11576
## Report this to gnupg-devel@gnupg.org ##
11577
## ------------------------------------ ##
11580
sed "s/^/$as_me: WARNING: /" >&2
11583
echo "$as_me:$LINENO: checking for $ac_header" >&5
11584
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11585
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11586
echo $ECHO_N "(cached) $ECHO_C" >&6
11588
eval "$as_ac_Header=\$ac_header_preproc"
11590
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11591
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11594
if test `eval echo '${'$as_ac_Header'}'` = yes; then
11595
cat >>confdefs.h <<_ACEOF
11596
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9403
# Checking for iconv
11605
9406
if test "X$prefix" = "XNONE"; then
11606
9407
acl_final_prefix="$ac_default_prefix"
21829
20826
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21830
20827
$EGREP "Found it" >/dev/null 2>&1; then
21833
20830
rm -f conftest*
21835
if test -z "$result"; then
21836
if test "$cross_compiling" = yes; then
21837
# Depending upon the size, compute the lo and hi bounds.
21838
cat >conftest.$ac_ext <<_ACEOF
21841
cat confdefs.h >>conftest.$ac_ext
21842
cat >>conftest.$ac_ext <<_ACEOF
21843
/* end confdefs.h. */
21844
#include <stddef.h>
21848
static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
21855
rm -f conftest.$ac_objext
21856
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21857
(eval $ac_compile) 2>conftest.er1
21859
grep -v '^ *+' conftest.er1 >conftest.err
21861
cat conftest.err >&5
21862
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21863
(exit $ac_status); } &&
21864
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21865
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21866
(eval $ac_try) 2>&5
21868
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21869
(exit $ac_status); }; } &&
21870
{ ac_try='test -s conftest.$ac_objext'
21871
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21872
(eval $ac_try) 2>&5
21874
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21875
(exit $ac_status); }; }; then
21878
cat >conftest.$ac_ext <<_ACEOF
21881
cat confdefs.h >>conftest.$ac_ext
21882
cat >>conftest.$ac_ext <<_ACEOF
21883
/* end confdefs.h. */
21884
#include <stddef.h>
21888
static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
21895
rm -f conftest.$ac_objext
21896
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21897
(eval $ac_compile) 2>conftest.er1
21899
grep -v '^ *+' conftest.er1 >conftest.err
21901
cat conftest.err >&5
21902
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21903
(exit $ac_status); } &&
21904
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21905
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21906
(eval $ac_try) 2>&5
21908
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21909
(exit $ac_status); }; } &&
21910
{ ac_try='test -s conftest.$ac_objext'
21911
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21912
(eval $ac_try) 2>&5
21914
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21915
(exit $ac_status); }; }; then
21916
ac_hi=$ac_mid; break
21918
echo "$as_me: failed program was:" >&5
21919
sed 's/^/| /' conftest.$ac_ext >&5
21921
ac_lo=`expr $ac_mid + 1`
21922
if test $ac_lo -le $ac_mid; then
21926
ac_mid=`expr 2 '*' $ac_mid + 1`
21928
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21931
echo "$as_me: failed program was:" >&5
21932
sed 's/^/| /' conftest.$ac_ext >&5
21934
cat >conftest.$ac_ext <<_ACEOF
21937
cat confdefs.h >>conftest.$ac_ext
21938
cat >>conftest.$ac_ext <<_ACEOF
21939
/* end confdefs.h. */
21940
#include <stddef.h>
21944
static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
21951
rm -f conftest.$ac_objext
21952
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21953
(eval $ac_compile) 2>conftest.er1
21955
grep -v '^ *+' conftest.er1 >conftest.err
21957
cat conftest.err >&5
21958
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21959
(exit $ac_status); } &&
21960
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21961
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21962
(eval $ac_try) 2>&5
21964
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21965
(exit $ac_status); }; } &&
21966
{ ac_try='test -s conftest.$ac_objext'
21967
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21968
(eval $ac_try) 2>&5
21970
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21971
(exit $ac_status); }; }; then
21974
cat >conftest.$ac_ext <<_ACEOF
21977
cat confdefs.h >>conftest.$ac_ext
21978
cat >>conftest.$ac_ext <<_ACEOF
21979
/* end confdefs.h. */
21980
#include <stddef.h>
21984
static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
21991
rm -f conftest.$ac_objext
21992
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21993
(eval $ac_compile) 2>conftest.er1
21995
grep -v '^ *+' conftest.er1 >conftest.err
21997
cat conftest.err >&5
21998
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21999
(exit $ac_status); } &&
22000
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22001
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22002
(eval $ac_try) 2>&5
22004
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22005
(exit $ac_status); }; } &&
22006
{ ac_try='test -s conftest.$ac_objext'
22007
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22008
(eval $ac_try) 2>&5
22010
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22011
(exit $ac_status); }; }; then
22012
ac_lo=$ac_mid; break
22014
echo "$as_me: failed program was:" >&5
22015
sed 's/^/| /' conftest.$ac_ext >&5
22017
ac_hi=`expr '(' $ac_mid ')' - 1`
22018
if test $ac_mid -le $ac_hi; then
22022
ac_mid=`expr 2 '*' $ac_mid`
22024
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22027
echo "$as_me: failed program was:" >&5
22028
sed 's/^/| /' conftest.$ac_ext >&5
22032
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22034
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22035
# Binary search between lo and hi bounds.
22036
while test "x$ac_lo" != "x$ac_hi"; do
22037
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22038
cat >conftest.$ac_ext <<_ACEOF
22041
cat confdefs.h >>conftest.$ac_ext
22042
cat >>conftest.$ac_ext <<_ACEOF
22043
/* end confdefs.h. */
22044
#include <stddef.h>
22048
static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
22055
rm -f conftest.$ac_objext
22056
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22057
(eval $ac_compile) 2>conftest.er1
22059
grep -v '^ *+' conftest.er1 >conftest.err
22061
cat conftest.err >&5
22062
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22063
(exit $ac_status); } &&
22064
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22065
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22066
(eval $ac_try) 2>&5
22068
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22069
(exit $ac_status); }; } &&
22070
{ ac_try='test -s conftest.$ac_objext'
22071
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22072
(eval $ac_try) 2>&5
22074
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22075
(exit $ac_status); }; }; then
22078
echo "$as_me: failed program was:" >&5
22079
sed 's/^/| /' conftest.$ac_ext >&5
22081
ac_lo=`expr '(' $ac_mid ')' + 1`
22083
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22086
?*) res_hi=$ac_lo;;
22090
if test "$cross_compiling" = yes; then
22091
{ { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
22092
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
22093
{ (exit 1); exit 1; }; }
22095
cat >conftest.$ac_ext <<_ACEOF
22098
cat confdefs.h >>conftest.$ac_ext
22099
cat >>conftest.$ac_ext <<_ACEOF
22100
/* end confdefs.h. */
22101
#include <stddef.h>
22102
long longval () { return ~(size_t)0 / 10; }
22103
unsigned long ulongval () { return ~(size_t)0 / 10; }
22105
#include <stdlib.h>
22110
FILE *f = fopen ("conftest.val", "w");
22113
if ((~(size_t)0 / 10) < 0)
22115
long i = longval ();
22116
if (i != (~(size_t)0 / 10))
22118
fprintf (f, "%ld\n", i);
22122
unsigned long i = ulongval ();
22123
if (i != (~(size_t)0 / 10))
22125
fprintf (f, "%lu\n", i);
22127
exit (ferror (f) || fclose (f) != 0);
22133
rm -f conftest$ac_exeext
22134
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22135
(eval $ac_link) 2>&5
22137
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22138
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22139
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22140
(eval $ac_try) 2>&5
22142
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22143
(exit $ac_status); }; }; then
22144
res_hi=`cat conftest.val`
22146
echo "$as_me: program exited with status $ac_status" >&5
22147
echo "$as_me: failed program was:" >&5
22148
sed 's/^/| /' conftest.$ac_ext >&5
22150
( exit $ac_status )
22153
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22157
if test "$cross_compiling" = yes; then
22158
# Depending upon the size, compute the lo and hi bounds.
22159
cat >conftest.$ac_ext <<_ACEOF
22162
cat confdefs.h >>conftest.$ac_ext
22163
cat >>conftest.$ac_ext <<_ACEOF
22164
/* end confdefs.h. */
22165
#include <stddef.h>
22169
static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
22176
rm -f conftest.$ac_objext
22177
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22178
(eval $ac_compile) 2>conftest.er1
22180
grep -v '^ *+' conftest.er1 >conftest.err
22182
cat conftest.err >&5
22183
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22184
(exit $ac_status); } &&
22185
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22186
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22187
(eval $ac_try) 2>&5
22189
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22190
(exit $ac_status); }; } &&
22191
{ ac_try='test -s conftest.$ac_objext'
22192
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22193
(eval $ac_try) 2>&5
22195
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22196
(exit $ac_status); }; }; then
22199
cat >conftest.$ac_ext <<_ACEOF
22202
cat confdefs.h >>conftest.$ac_ext
22203
cat >>conftest.$ac_ext <<_ACEOF
22204
/* end confdefs.h. */
22205
#include <stddef.h>
22209
static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
22216
rm -f conftest.$ac_objext
22217
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22218
(eval $ac_compile) 2>conftest.er1
22220
grep -v '^ *+' conftest.er1 >conftest.err
22222
cat conftest.err >&5
22223
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22224
(exit $ac_status); } &&
22225
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22226
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22227
(eval $ac_try) 2>&5
22229
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22230
(exit $ac_status); }; } &&
22231
{ ac_try='test -s conftest.$ac_objext'
22232
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22233
(eval $ac_try) 2>&5
22235
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22236
(exit $ac_status); }; }; then
22237
ac_hi=$ac_mid; break
22239
echo "$as_me: failed program was:" >&5
22240
sed 's/^/| /' conftest.$ac_ext >&5
22242
ac_lo=`expr $ac_mid + 1`
22243
if test $ac_lo -le $ac_mid; then
22247
ac_mid=`expr 2 '*' $ac_mid + 1`
22249
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22252
echo "$as_me: failed program was:" >&5
22253
sed 's/^/| /' conftest.$ac_ext >&5
22255
cat >conftest.$ac_ext <<_ACEOF
22258
cat confdefs.h >>conftest.$ac_ext
22259
cat >>conftest.$ac_ext <<_ACEOF
22260
/* end confdefs.h. */
22261
#include <stddef.h>
22265
static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
22272
rm -f conftest.$ac_objext
22273
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22274
(eval $ac_compile) 2>conftest.er1
22276
grep -v '^ *+' conftest.er1 >conftest.err
22278
cat conftest.err >&5
22279
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22280
(exit $ac_status); } &&
22281
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22282
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22283
(eval $ac_try) 2>&5
22285
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22286
(exit $ac_status); }; } &&
22287
{ ac_try='test -s conftest.$ac_objext'
22288
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22289
(eval $ac_try) 2>&5
22291
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22292
(exit $ac_status); }; }; then
22295
cat >conftest.$ac_ext <<_ACEOF
22298
cat confdefs.h >>conftest.$ac_ext
22299
cat >>conftest.$ac_ext <<_ACEOF
22300
/* end confdefs.h. */
22301
#include <stddef.h>
22305
static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
22312
rm -f conftest.$ac_objext
22313
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22314
(eval $ac_compile) 2>conftest.er1
22316
grep -v '^ *+' conftest.er1 >conftest.err
22318
cat conftest.err >&5
22319
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22320
(exit $ac_status); } &&
22321
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22322
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22323
(eval $ac_try) 2>&5
22325
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22326
(exit $ac_status); }; } &&
22327
{ ac_try='test -s conftest.$ac_objext'
22328
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22329
(eval $ac_try) 2>&5
22331
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22332
(exit $ac_status); }; }; then
22333
ac_lo=$ac_mid; break
22335
echo "$as_me: failed program was:" >&5
22336
sed 's/^/| /' conftest.$ac_ext >&5
22338
ac_hi=`expr '(' $ac_mid ')' - 1`
22339
if test $ac_mid -le $ac_hi; then
22343
ac_mid=`expr 2 '*' $ac_mid`
22345
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22348
echo "$as_me: failed program was:" >&5
22349
sed 's/^/| /' conftest.$ac_ext >&5
22353
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22355
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22356
# Binary search between lo and hi bounds.
22357
while test "x$ac_lo" != "x$ac_hi"; do
22358
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22359
cat >conftest.$ac_ext <<_ACEOF
22362
cat confdefs.h >>conftest.$ac_ext
22363
cat >>conftest.$ac_ext <<_ACEOF
22364
/* end confdefs.h. */
22365
#include <stddef.h>
22369
static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
22376
rm -f conftest.$ac_objext
22377
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22378
(eval $ac_compile) 2>conftest.er1
22380
grep -v '^ *+' conftest.er1 >conftest.err
22382
cat conftest.err >&5
22383
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22384
(exit $ac_status); } &&
22385
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22386
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22387
(eval $ac_try) 2>&5
22389
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22390
(exit $ac_status); }; } &&
22391
{ ac_try='test -s conftest.$ac_objext'
22392
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22393
(eval $ac_try) 2>&5
22395
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22396
(exit $ac_status); }; }; then
22399
echo "$as_me: failed program was:" >&5
22400
sed 's/^/| /' conftest.$ac_ext >&5
22402
ac_lo=`expr '(' $ac_mid ')' + 1`
22404
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22407
?*) res_lo=$ac_lo;;
22411
if test "$cross_compiling" = yes; then
22412
{ { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
22413
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
22414
{ (exit 1); exit 1; }; }
22416
cat >conftest.$ac_ext <<_ACEOF
22419
cat confdefs.h >>conftest.$ac_ext
22420
cat >>conftest.$ac_ext <<_ACEOF
22421
/* end confdefs.h. */
22422
#include <stddef.h>
22423
long longval () { return ~(size_t)0 % 10; }
22424
unsigned long ulongval () { return ~(size_t)0 % 10; }
22426
#include <stdlib.h>
22431
FILE *f = fopen ("conftest.val", "w");
22434
if ((~(size_t)0 % 10) < 0)
22436
long i = longval ();
22437
if (i != (~(size_t)0 % 10))
22439
fprintf (f, "%ld\n", i);
22443
unsigned long i = ulongval ();
22444
if (i != (~(size_t)0 % 10))
22446
fprintf (f, "%lu\n", i);
22448
exit (ferror (f) || fclose (f) != 0);
22454
rm -f conftest$ac_exeext
22455
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22456
(eval $ac_link) 2>&5
22458
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22459
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22460
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22461
(eval $ac_try) 2>&5
22463
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22464
(exit $ac_status); }; }; then
22465
res_lo=`cat conftest.val`
22467
echo "$as_me: program exited with status $ac_status" >&5
22468
echo "$as_me: failed program was:" >&5
22469
sed 's/^/| /' conftest.$ac_ext >&5
22471
( exit $ac_status )
22474
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22478
if test "$cross_compiling" = yes; then
20832
if test -z "$gl_cv_size_max"; then
20833
if test "$cross_compiling" = yes; then
20834
# Depending upon the size, compute the lo and hi bounds.
20835
cat >conftest.$ac_ext <<_ACEOF
20838
cat confdefs.h >>conftest.$ac_ext
20839
cat >>conftest.$ac_ext <<_ACEOF
20840
/* end confdefs.h. */
20841
#include <stddef.h>
20842
#include <limits.h>
20846
static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
20853
rm -f conftest.$ac_objext
20854
if { (ac_try="$ac_compile"
20855
case "(($ac_try" in
20856
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20857
*) ac_try_echo=$ac_try;;
20859
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20860
(eval "$ac_compile") 2>conftest.er1
20862
grep -v '^ *+' conftest.er1 >conftest.err
20864
cat conftest.err >&5
20865
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20866
(exit $ac_status); } && {
20867
test -z "$ac_c_werror_flag" ||
20868
test ! -s conftest.err
20869
} && test -s conftest.$ac_objext; then
20872
cat >conftest.$ac_ext <<_ACEOF
20875
cat confdefs.h >>conftest.$ac_ext
20876
cat >>conftest.$ac_ext <<_ACEOF
20877
/* end confdefs.h. */
20878
#include <stddef.h>
20879
#include <limits.h>
20883
static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
20890
rm -f conftest.$ac_objext
20891
if { (ac_try="$ac_compile"
20892
case "(($ac_try" in
20893
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20894
*) ac_try_echo=$ac_try;;
20896
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20897
(eval "$ac_compile") 2>conftest.er1
20899
grep -v '^ *+' conftest.er1 >conftest.err
20901
cat conftest.err >&5
20902
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20903
(exit $ac_status); } && {
20904
test -z "$ac_c_werror_flag" ||
20905
test ! -s conftest.err
20906
} && test -s conftest.$ac_objext; then
20907
ac_hi=$ac_mid; break
20909
echo "$as_me: failed program was:" >&5
20910
sed 's/^/| /' conftest.$ac_ext >&5
20912
ac_lo=`expr $ac_mid + 1`
20913
if test $ac_lo -le $ac_mid; then
20917
ac_mid=`expr 2 '*' $ac_mid + 1`
20920
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20923
echo "$as_me: failed program was:" >&5
20924
sed 's/^/| /' conftest.$ac_ext >&5
20926
cat >conftest.$ac_ext <<_ACEOF
20929
cat confdefs.h >>conftest.$ac_ext
20930
cat >>conftest.$ac_ext <<_ACEOF
20931
/* end confdefs.h. */
20932
#include <stddef.h>
20933
#include <limits.h>
20937
static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
20944
rm -f conftest.$ac_objext
20945
if { (ac_try="$ac_compile"
20946
case "(($ac_try" in
20947
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20948
*) ac_try_echo=$ac_try;;
20950
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20951
(eval "$ac_compile") 2>conftest.er1
20953
grep -v '^ *+' conftest.er1 >conftest.err
20955
cat conftest.err >&5
20956
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20957
(exit $ac_status); } && {
20958
test -z "$ac_c_werror_flag" ||
20959
test ! -s conftest.err
20960
} && test -s conftest.$ac_objext; then
20963
cat >conftest.$ac_ext <<_ACEOF
20966
cat confdefs.h >>conftest.$ac_ext
20967
cat >>conftest.$ac_ext <<_ACEOF
20968
/* end confdefs.h. */
20969
#include <stddef.h>
20970
#include <limits.h>
20974
static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
20981
rm -f conftest.$ac_objext
20982
if { (ac_try="$ac_compile"
20983
case "(($ac_try" in
20984
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20985
*) ac_try_echo=$ac_try;;
20987
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20988
(eval "$ac_compile") 2>conftest.er1
20990
grep -v '^ *+' conftest.er1 >conftest.err
20992
cat conftest.err >&5
20993
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20994
(exit $ac_status); } && {
20995
test -z "$ac_c_werror_flag" ||
20996
test ! -s conftest.err
20997
} && test -s conftest.$ac_objext; then
20998
ac_lo=$ac_mid; break
21000
echo "$as_me: failed program was:" >&5
21001
sed 's/^/| /' conftest.$ac_ext >&5
21003
ac_hi=`expr '(' $ac_mid ')' - 1`
21004
if test $ac_mid -le $ac_hi; then
21008
ac_mid=`expr 2 '*' $ac_mid`
21011
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21014
echo "$as_me: failed program was:" >&5
21015
sed 's/^/| /' conftest.$ac_ext >&5
21020
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21023
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21024
# Binary search between lo and hi bounds.
21025
while test "x$ac_lo" != "x$ac_hi"; do
21026
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21027
cat >conftest.$ac_ext <<_ACEOF
21030
cat confdefs.h >>conftest.$ac_ext
21031
cat >>conftest.$ac_ext <<_ACEOF
21032
/* end confdefs.h. */
21033
#include <stddef.h>
21034
#include <limits.h>
21038
static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
21045
rm -f conftest.$ac_objext
21046
if { (ac_try="$ac_compile"
21047
case "(($ac_try" in
21048
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21049
*) ac_try_echo=$ac_try;;
21051
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21052
(eval "$ac_compile") 2>conftest.er1
21054
grep -v '^ *+' conftest.er1 >conftest.err
21056
cat conftest.err >&5
21057
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21058
(exit $ac_status); } && {
21059
test -z "$ac_c_werror_flag" ||
21060
test ! -s conftest.err
21061
} && test -s conftest.$ac_objext; then
21064
echo "$as_me: failed program was:" >&5
21065
sed 's/^/| /' conftest.$ac_ext >&5
21067
ac_lo=`expr '(' $ac_mid ')' + 1`
21070
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21073
?*) size_t_bits_minus_1=$ac_lo;;
21074
'') size_t_bits_minus_1= ;;
21077
cat >conftest.$ac_ext <<_ACEOF
21080
cat confdefs.h >>conftest.$ac_ext
21081
cat >>conftest.$ac_ext <<_ACEOF
21082
/* end confdefs.h. */
21083
#include <stddef.h>
21084
#include <limits.h>
21085
static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
21086
static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
21088
#include <stdlib.h>
21093
FILE *f = fopen ("conftest.val", "w");
21096
if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
21098
long int i = longval ();
21099
if (i != (sizeof (size_t) * CHAR_BIT - 1))
21101
fprintf (f, "%ld\n", i);
21105
unsigned long int i = ulongval ();
21106
if (i != (sizeof (size_t) * CHAR_BIT - 1))
21108
fprintf (f, "%lu\n", i);
21110
return ferror (f) || fclose (f) != 0;
21116
rm -f conftest$ac_exeext
21117
if { (ac_try="$ac_link"
21118
case "(($ac_try" in
21119
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21120
*) ac_try_echo=$ac_try;;
21122
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21123
(eval "$ac_link") 2>&5
21125
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21126
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21127
{ (case "(($ac_try" in
21128
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21129
*) ac_try_echo=$ac_try;;
21131
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21132
(eval "$ac_try") 2>&5
21134
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21135
(exit $ac_status); }; }; then
21136
size_t_bits_minus_1=`cat conftest.val`
21138
echo "$as_me: program exited with status $ac_status" >&5
21139
echo "$as_me: failed program was:" >&5
21140
sed 's/^/| /' conftest.$ac_ext >&5
21142
( exit $ac_status )
21143
size_t_bits_minus_1=
21145
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21149
if test "$cross_compiling" = yes; then
22479
21150
# Depending upon the size, compute the lo and hi bounds.
22480
21151
cat >conftest.$ac_ext <<_ACEOF
22481
21152
/* confdefs.h. */
22818
21479
rm -f conftest.$ac_objext
22819
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22820
(eval $ac_compile) 2>conftest.er1
21480
if { (ac_try="$ac_compile"
21481
case "(($ac_try" in
21482
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21483
*) ac_try_echo=$ac_try;;
21485
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21486
(eval "$ac_compile") 2>conftest.er1
22822
21488
grep -v '^ *+' conftest.er1 >conftest.err
22823
21489
rm -f conftest.er1
22824
21490
cat conftest.err >&5
22825
21491
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22826
(exit $ac_status); } &&
22827
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22828
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22829
(eval $ac_try) 2>&5
22831
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22832
(exit $ac_status); }; } &&
22833
{ ac_try='test -s conftest.$ac_objext'
22834
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22835
(eval $ac_try) 2>&5
22837
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22838
(exit $ac_status); }; }; then
21492
(exit $ac_status); } && {
21493
test -z "$ac_c_werror_flag" ||
21494
test ! -s conftest.err
21495
} && test -s conftest.$ac_objext; then
22839
21496
fits_in_uint=0
22841
21498
echo "$as_me: failed program was:" >&5
22842
21499
sed 's/^/| /' conftest.$ac_ext >&5
22845
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22847
if test -z "$result"; then
22848
if test "$fits_in_uint" = 1; then
22849
result="$res_hi$res_lo"U
21504
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21506
if test $fits_in_uint = 1; then
21507
gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
21509
gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
22851
result="$res_hi$res_lo"UL
21512
gl_cv_size_max='((size_t)~(size_t)0)'
22854
result='~(size_t)0'
22857
echo "$as_me:$LINENO: result: $result" >&5
22858
echo "${ECHO_T}$result" >&6
22859
if test "$result" != yes; then
22861
cat >>confdefs.h <<_ACEOF
22862
#define SIZE_MAX $result
21518
{ echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5
21519
echo "${ECHO_T}$gl_cv_size_max" >&6; }
21520
if test "$gl_cv_size_max" != yes; then
21522
cat >>confdefs.h <<_ACEOF
21523
#define SIZE_MAX $gl_cv_size_max
21531
if test $ac_cv_type_long_long_int = yes; then
21532
HAVE_LONG_LONG_INT=1
21534
HAVE_LONG_LONG_INT=0
21538
if test $ac_cv_type_unsigned_long_long_int = yes; then
21539
HAVE_UNSIGNED_LONG_LONG_INT=1
21541
HAVE_UNSIGNED_LONG_LONG_INT=0
21551
if test $ac_cv_header_wchar_h = yes; then
21558
if test $ac_cv_header_inttypes_h = yes; then
21565
if test $ac_cv_header_sys_types_h = yes; then
21572
if test $ac_cv_header_stdint_h = yes; then
21573
{ echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
21574
echo $ECHO_N "checking absolute name of <stdint.h>... $ECHO_C" >&6; }
21575
if test "${gl_cv_absolute_stdint_h+set}" = set; then
21576
echo $ECHO_N "(cached) $ECHO_C" >&6
21583
if test $ac_cv_header_stdint_h = yes; then
21584
cat >conftest.$ac_ext <<_ACEOF
21587
cat confdefs.h >>conftest.$ac_ext
21588
cat >>conftest.$ac_ext <<_ACEOF
21589
/* end confdefs.h. */
21590
#include <stdint.h>
21592
gl_cv_absolute_stdint_h=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21593
sed -n '\#/stdint.h#{s#.*"\(.*/stdint.h\)".*#\1#;s#^/[^/]#//&#;p;q;}'`
21597
{ echo "$as_me:$LINENO: result: $gl_cv_absolute_stdint_h" >&5
21598
echo "${ECHO_T}$gl_cv_absolute_stdint_h" >&6; }
21599
cat >>confdefs.h <<_ACEOF
21600
#define ABSOLUTE_STDINT_H "$gl_cv_absolute_stdint_h"
21604
ABSOLUTE_STDINT_H=\"$gl_cv_absolute_stdint_h\"
21607
ABSOLUTE_STDINT_H=\"no/such/file/stdint.h\"
21613
if test $ac_cv_header_stdint_h = yes; then
21614
{ echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
21615
echo $ECHO_N "checking whether stdint.h conforms to C99... $ECHO_C" >&6; }
21616
if test "${gl_cv_header_working_stdint_h+set}" = set; then
21617
echo $ECHO_N "(cached) $ECHO_C" >&6
21619
gl_cv_header_working_stdint_h=no
21620
cat >conftest.$ac_ext <<_ACEOF
21624
cat confdefs.h >>conftest.$ac_ext
21625
cat >>conftest.$ac_ext <<_ACEOF
21626
/* end confdefs.h. */
21628
#include <stddef.h>
21629
#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
21630
#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
21631
#include ABSOLUTE_STDINT_H
21633
int8_t a1 = INT8_MAX;
21634
int8_t a1min = INT8_MIN;
21637
int16_t a2 = INT16_MAX;
21638
int16_t a2min = INT16_MIN;
21641
int32_t a3 = INT32_MAX;
21642
int32_t a3min = INT32_MIN;
21645
int64_t a4 = INT64_MAX;
21646
int64_t a4min = INT64_MIN;
21649
uint8_t b1 = UINT8_MAX;
21651
typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
21654
uint16_t b2 = UINT16_MAX;
21657
uint32_t b3 = UINT32_MAX;
21660
uint64_t b4 = UINT64_MAX;
21662
int_least8_t c1 = INT8_C (0x7f);
21663
int_least8_t c1max = INT_LEAST8_MAX;
21664
int_least8_t c1min = INT_LEAST8_MIN;
21665
int_least16_t c2 = INT16_C (0x7fff);
21666
int_least16_t c2max = INT_LEAST16_MAX;
21667
int_least16_t c2min = INT_LEAST16_MIN;
21668
int_least32_t c3 = INT32_C (0x7fffffff);
21669
int_least32_t c3max = INT_LEAST32_MAX;
21670
int_least32_t c3min = INT_LEAST32_MIN;
21671
int_least64_t c4 = INT64_C (0x7fffffffffffffff);
21672
int_least64_t c4max = INT_LEAST64_MAX;
21673
int_least64_t c4min = INT_LEAST64_MIN;
21674
uint_least8_t d1 = UINT8_C (0xff);
21675
uint_least8_t d1max = UINT_LEAST8_MAX;
21676
uint_least16_t d2 = UINT16_C (0xffff);
21677
uint_least16_t d2max = UINT_LEAST16_MAX;
21678
uint_least32_t d3 = UINT32_C (0xffffffff);
21679
uint_least32_t d3max = UINT_LEAST32_MAX;
21680
uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
21681
uint_least64_t d4max = UINT_LEAST64_MAX;
21682
int_fast8_t e1 = INT_FAST8_MAX;
21683
int_fast8_t e1min = INT_FAST8_MIN;
21684
int_fast16_t e2 = INT_FAST16_MAX;
21685
int_fast16_t e2min = INT_FAST16_MIN;
21686
int_fast32_t e3 = INT_FAST32_MAX;
21687
int_fast32_t e3min = INT_FAST32_MIN;
21688
int_fast64_t e4 = INT_FAST64_MAX;
21689
int_fast64_t e4min = INT_FAST64_MIN;
21690
uint_fast8_t f1 = UINT_FAST8_MAX;
21691
uint_fast16_t f2 = UINT_FAST16_MAX;
21692
uint_fast32_t f3 = UINT_FAST32_MAX;
21693
uint_fast64_t f4 = UINT_FAST64_MAX;
21695
intptr_t g = INTPTR_MAX;
21696
intptr_t gmin = INTPTR_MIN;
21699
uintptr_t h = UINTPTR_MAX;
21701
intmax_t i = INTMAX_MAX;
21702
uintmax_t j = UINTMAX_MAX;
21704
int check_PTRDIFF: PTRDIFF_MIN < 0 && 0 < PTRDIFF_MAX ? 1 : -1;
21705
int check_SIG_ATOMIC: SIG_ATOMIC_MIN <= 0 && 0 < SIG_ATOMIC_MAX ? 1 : -1;
21706
int check_SIZE: 0 < SIZE_MAX ? 1 : -1;
21707
int check_WCHAR: WCHAR_MIN <= 0 && 0 < WCHAR_MAX ? 1 : -1;
21708
int check_WINT: WINT_MIN <= 0 && 0 < WINT_MAX ? 1 : -1;
21710
/* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
21712
(-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
21713
int check_UINT16_C:
21714
(-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
21716
/* Detect bugs in OpenBSD 3.9 stdint.h. */
21718
int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
21721
int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
21724
int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
21727
int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
21729
int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
21730
int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
21731
int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
21732
int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
21733
int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
21734
int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
21735
int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
21736
int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
21737
int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
21738
int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
21739
int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
21750
rm -f conftest.$ac_objext
21751
if { (ac_try="$ac_compile"
21752
case "(($ac_try" in
21753
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21754
*) ac_try_echo=$ac_try;;
21756
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21757
(eval "$ac_compile") 2>conftest.er1
21759
grep -v '^ *+' conftest.er1 >conftest.err
21761
cat conftest.err >&5
21762
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21763
(exit $ac_status); } && {
21764
test -z "$ac_c_werror_flag" ||
21765
test ! -s conftest.err
21766
} && test -s conftest.$ac_objext; then
21767
gl_cv_header_working_stdint_h=yes
21769
echo "$as_me: failed program was:" >&5
21770
sed 's/^/| /' conftest.$ac_ext >&5
21775
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21777
{ echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
21778
echo "${ECHO_T}$gl_cv_header_working_stdint_h" >&6; }
21780
if test "$gl_cv_header_working_stdint_h" != yes; then
21784
for ac_header in sys/inttypes.h sys/bitypes.h
21786
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21787
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21788
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21789
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21790
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21791
echo $ECHO_N "(cached) $ECHO_C" >&6
21793
ac_res=`eval echo '${'$as_ac_Header'}'`
21794
{ echo "$as_me:$LINENO: result: $ac_res" >&5
21795
echo "${ECHO_T}$ac_res" >&6; }
21797
# Is the header compilable?
21798
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21799
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21800
cat >conftest.$ac_ext <<_ACEOF
21803
cat confdefs.h >>conftest.$ac_ext
21804
cat >>conftest.$ac_ext <<_ACEOF
21805
/* end confdefs.h. */
21806
$ac_includes_default
21807
#include <$ac_header>
21809
rm -f conftest.$ac_objext
21810
if { (ac_try="$ac_compile"
21811
case "(($ac_try" in
21812
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21813
*) ac_try_echo=$ac_try;;
21815
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21816
(eval "$ac_compile") 2>conftest.er1
21818
grep -v '^ *+' conftest.er1 >conftest.err
21820
cat conftest.err >&5
21821
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21822
(exit $ac_status); } && {
21823
test -z "$ac_c_werror_flag" ||
21824
test ! -s conftest.err
21825
} && test -s conftest.$ac_objext; then
21826
ac_header_compiler=yes
21828
echo "$as_me: failed program was:" >&5
21829
sed 's/^/| /' conftest.$ac_ext >&5
21831
ac_header_compiler=no
21834
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21835
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21836
echo "${ECHO_T}$ac_header_compiler" >&6; }
21838
# Is the header present?
21839
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21840
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21841
cat >conftest.$ac_ext <<_ACEOF
21844
cat confdefs.h >>conftest.$ac_ext
21845
cat >>conftest.$ac_ext <<_ACEOF
21846
/* end confdefs.h. */
21847
#include <$ac_header>
21849
if { (ac_try="$ac_cpp conftest.$ac_ext"
21850
case "(($ac_try" in
21851
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21852
*) ac_try_echo=$ac_try;;
21854
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21855
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21857
grep -v '^ *+' conftest.er1 >conftest.err
21859
cat conftest.err >&5
21860
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21861
(exit $ac_status); } >/dev/null && {
21862
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21863
test ! -s conftest.err
21865
ac_header_preproc=yes
21867
echo "$as_me: failed program was:" >&5
21868
sed 's/^/| /' conftest.$ac_ext >&5
21870
ac_header_preproc=no
21873
rm -f conftest.err conftest.$ac_ext
21874
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21875
echo "${ECHO_T}$ac_header_preproc" >&6; }
21877
# So? What about this header?
21878
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21880
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21881
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21882
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21883
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21884
ac_header_preproc=yes
21887
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21888
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21889
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21890
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21891
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21892
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21893
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21894
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21895
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21896
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21897
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21898
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21900
## ---------------------------------- ##
21901
## Report this to bug-gnupg@gnupg.org ##
21902
## ---------------------------------- ##
21904
) | sed "s/^/$as_me: WARNING: /" >&2
21907
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21908
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21909
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21910
echo $ECHO_N "(cached) $ECHO_C" >&6
21912
eval "$as_ac_Header=\$ac_header_preproc"
21914
ac_res=`eval echo '${'$as_ac_Header'}'`
21915
{ echo "$as_me:$LINENO: result: $ac_res" >&5
21916
echo "${ECHO_T}$ac_res" >&6; }
21919
if test `eval echo '${'$as_ac_Header'}'` = yes; then
21920
cat >>confdefs.h <<_ACEOF
21921
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21928
if test $ac_cv_header_sys_inttypes_h = yes; then
21929
HAVE_SYS_INTTYPES_H=1
21931
HAVE_SYS_INTTYPES_H=0
21934
if test $ac_cv_header_sys_bitypes_h = yes; then
21935
HAVE_SYS_BITYPES_H=1
21937
HAVE_SYS_BITYPES_H=0
21949
for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
21950
{ echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
21951
echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6; }
21952
if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
21953
echo $ECHO_N "(cached) $ECHO_C" >&6
21955
if test "$cross_compiling" = yes; then
21956
# Depending upon the size, compute the lo and hi bounds.
21957
cat >conftest.$ac_ext <<_ACEOF
21960
cat confdefs.h >>conftest.$ac_ext
21961
cat >>conftest.$ac_ext <<_ACEOF
21962
/* end confdefs.h. */
21964
#include <stddef.h>
21965
#include <signal.h>
21967
/* BSD/OS 4.1 has a bug: <stdio.h> and <time.h> must be included before
21969
# include <stdio.h>
21971
# include <wchar.h>
21974
#include <limits.h>
21978
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
21985
rm -f conftest.$ac_objext
21986
if { (ac_try="$ac_compile"
21987
case "(($ac_try" in
21988
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21989
*) ac_try_echo=$ac_try;;
21991
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21992
(eval "$ac_compile") 2>conftest.er1
21994
grep -v '^ *+' conftest.er1 >conftest.err
21996
cat conftest.err >&5
21997
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21998
(exit $ac_status); } && {
21999
test -z "$ac_c_werror_flag" ||
22000
test ! -s conftest.err
22001
} && test -s conftest.$ac_objext; then
22004
cat >conftest.$ac_ext <<_ACEOF
22007
cat confdefs.h >>conftest.$ac_ext
22008
cat >>conftest.$ac_ext <<_ACEOF
22009
/* end confdefs.h. */
22011
#include <stddef.h>
22012
#include <signal.h>
22014
/* BSD/OS 4.1 has a bug: <stdio.h> and <time.h> must be included before
22016
# include <stdio.h>
22018
# include <wchar.h>
22021
#include <limits.h>
22025
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
22032
rm -f conftest.$ac_objext
22033
if { (ac_try="$ac_compile"
22034
case "(($ac_try" in
22035
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22036
*) ac_try_echo=$ac_try;;
22038
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22039
(eval "$ac_compile") 2>conftest.er1
22041
grep -v '^ *+' conftest.er1 >conftest.err
22043
cat conftest.err >&5
22044
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22045
(exit $ac_status); } && {
22046
test -z "$ac_c_werror_flag" ||
22047
test ! -s conftest.err
22048
} && test -s conftest.$ac_objext; then
22049
ac_hi=$ac_mid; break
22051
echo "$as_me: failed program was:" >&5
22052
sed 's/^/| /' conftest.$ac_ext >&5
22054
ac_lo=`expr $ac_mid + 1`
22055
if test $ac_lo -le $ac_mid; then
22059
ac_mid=`expr 2 '*' $ac_mid + 1`
22062
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22065
echo "$as_me: failed program was:" >&5
22066
sed 's/^/| /' conftest.$ac_ext >&5
22068
cat >conftest.$ac_ext <<_ACEOF
22071
cat confdefs.h >>conftest.$ac_ext
22072
cat >>conftest.$ac_ext <<_ACEOF
22073
/* end confdefs.h. */
22075
#include <stddef.h>
22076
#include <signal.h>
22078
/* BSD/OS 4.1 has a bug: <stdio.h> and <time.h> must be included before
22080
# include <stdio.h>
22082
# include <wchar.h>
22085
#include <limits.h>
22089
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
22096
rm -f conftest.$ac_objext
22097
if { (ac_try="$ac_compile"
22098
case "(($ac_try" in
22099
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22100
*) ac_try_echo=$ac_try;;
22102
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22103
(eval "$ac_compile") 2>conftest.er1
22105
grep -v '^ *+' conftest.er1 >conftest.err
22107
cat conftest.err >&5
22108
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22109
(exit $ac_status); } && {
22110
test -z "$ac_c_werror_flag" ||
22111
test ! -s conftest.err
22112
} && test -s conftest.$ac_objext; then
22115
cat >conftest.$ac_ext <<_ACEOF
22118
cat confdefs.h >>conftest.$ac_ext
22119
cat >>conftest.$ac_ext <<_ACEOF
22120
/* end confdefs.h. */
22122
#include <stddef.h>
22123
#include <signal.h>
22125
/* BSD/OS 4.1 has a bug: <stdio.h> and <time.h> must be included before
22127
# include <stdio.h>
22129
# include <wchar.h>
22132
#include <limits.h>
22136
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
22143
rm -f conftest.$ac_objext
22144
if { (ac_try="$ac_compile"
22145
case "(($ac_try" in
22146
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22147
*) ac_try_echo=$ac_try;;
22149
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22150
(eval "$ac_compile") 2>conftest.er1
22152
grep -v '^ *+' conftest.er1 >conftest.err
22154
cat conftest.err >&5
22155
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22156
(exit $ac_status); } && {
22157
test -z "$ac_c_werror_flag" ||
22158
test ! -s conftest.err
22159
} && test -s conftest.$ac_objext; then
22160
ac_lo=$ac_mid; break
22162
echo "$as_me: failed program was:" >&5
22163
sed 's/^/| /' conftest.$ac_ext >&5
22165
ac_hi=`expr '(' $ac_mid ')' - 1`
22166
if test $ac_mid -le $ac_hi; then
22170
ac_mid=`expr 2 '*' $ac_mid`
22173
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22176
echo "$as_me: failed program was:" >&5
22177
sed 's/^/| /' conftest.$ac_ext >&5
22182
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22185
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22186
# Binary search between lo and hi bounds.
22187
while test "x$ac_lo" != "x$ac_hi"; do
22188
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22189
cat >conftest.$ac_ext <<_ACEOF
22192
cat confdefs.h >>conftest.$ac_ext
22193
cat >>conftest.$ac_ext <<_ACEOF
22194
/* end confdefs.h. */
22196
#include <stddef.h>
22197
#include <signal.h>
22199
/* BSD/OS 4.1 has a bug: <stdio.h> and <time.h> must be included before
22201
# include <stdio.h>
22203
# include <wchar.h>
22206
#include <limits.h>
22210
static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
22217
rm -f conftest.$ac_objext
22218
if { (ac_try="$ac_compile"
22219
case "(($ac_try" in
22220
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22221
*) ac_try_echo=$ac_try;;
22223
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22224
(eval "$ac_compile") 2>conftest.er1
22226
grep -v '^ *+' conftest.er1 >conftest.err
22228
cat conftest.err >&5
22229
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22230
(exit $ac_status); } && {
22231
test -z "$ac_c_werror_flag" ||
22232
test ! -s conftest.err
22233
} && test -s conftest.$ac_objext; then
22236
echo "$as_me: failed program was:" >&5
22237
sed 's/^/| /' conftest.$ac_ext >&5
22239
ac_lo=`expr '(' $ac_mid ')' + 1`
22242
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22245
?*) result=$ac_lo;;
22246
'') result=unknown ;;
22249
cat >conftest.$ac_ext <<_ACEOF
22252
cat confdefs.h >>conftest.$ac_ext
22253
cat >>conftest.$ac_ext <<_ACEOF
22254
/* end confdefs.h. */
22256
#include <stddef.h>
22257
#include <signal.h>
22259
/* BSD/OS 4.1 has a bug: <stdio.h> and <time.h> must be included before
22261
# include <stdio.h>
22263
# include <wchar.h>
22266
#include <limits.h>
22267
static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
22268
static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
22270
#include <stdlib.h>
22275
FILE *f = fopen ("conftest.val", "w");
22278
if ((sizeof ($gltype) * CHAR_BIT) < 0)
22280
long int i = longval ();
22281
if (i != (sizeof ($gltype) * CHAR_BIT))
22283
fprintf (f, "%ld\n", i);
22287
unsigned long int i = ulongval ();
22288
if (i != (sizeof ($gltype) * CHAR_BIT))
22290
fprintf (f, "%lu\n", i);
22292
return ferror (f) || fclose (f) != 0;
22298
rm -f conftest$ac_exeext
22299
if { (ac_try="$ac_link"
22300
case "(($ac_try" in
22301
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22302
*) ac_try_echo=$ac_try;;
22304
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22305
(eval "$ac_link") 2>&5
22307
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22308
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22309
{ (case "(($ac_try" in
22310
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22311
*) ac_try_echo=$ac_try;;
22313
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22314
(eval "$ac_try") 2>&5
22316
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22317
(exit $ac_status); }; }; then
22318
result=`cat conftest.val`
22320
echo "$as_me: program exited with status $ac_status" >&5
22321
echo "$as_me: failed program was:" >&5
22322
sed 's/^/| /' conftest.$ac_ext >&5
22324
( exit $ac_status )
22327
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22331
eval gl_cv_bitsizeof_${gltype}=\$result
22334
ac_res=`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`
22335
{ echo "$as_me:$LINENO: result: $ac_res" >&5
22336
echo "${ECHO_T}$ac_res" >&6; }
22337
eval result=\$gl_cv_bitsizeof_${gltype}
22338
if test $result = unknown; then
22341
GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
22342
cat >>confdefs.h <<_ACEOF
22343
#define BITSIZEOF_${GLTYPE} $result
22346
eval BITSIZEOF_${GLTYPE}=\$result
22355
for gltype in sig_atomic_t wchar_t wint_t ; do
22356
{ echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
22357
echo $ECHO_N "checking whether $gltype is signed... $ECHO_C" >&6; }
22358
if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
22359
echo $ECHO_N "(cached) $ECHO_C" >&6
22361
cat >conftest.$ac_ext <<_ACEOF
22364
cat confdefs.h >>conftest.$ac_ext
22365
cat >>conftest.$ac_ext <<_ACEOF
22366
/* end confdefs.h. */
22368
#include <stddef.h>
22369
#include <signal.h>
22371
/* BSD/OS 4.1 has a bug: <stdio.h> and <time.h> must be included before
22373
# include <stdio.h>
22375
# include <wchar.h>
22378
int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
22387
rm -f conftest.$ac_objext
22388
if { (ac_try="$ac_compile"
22389
case "(($ac_try" in
22390
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22391
*) ac_try_echo=$ac_try;;
22393
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22394
(eval "$ac_compile") 2>conftest.er1
22396
grep -v '^ *+' conftest.er1 >conftest.err
22398
cat conftest.err >&5
22399
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22400
(exit $ac_status); } && {
22401
test -z "$ac_c_werror_flag" ||
22402
test ! -s conftest.err
22403
} && test -s conftest.$ac_objext; then
22406
echo "$as_me: failed program was:" >&5
22407
sed 's/^/| /' conftest.$ac_ext >&5
22412
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22413
eval gl_cv_type_${gltype}_signed=\$result
22416
ac_res=`eval echo '${'gl_cv_type_${gltype}_signed'}'`
22417
{ echo "$as_me:$LINENO: result: $ac_res" >&5
22418
echo "${ECHO_T}$ac_res" >&6; }
22419
eval result=\$gl_cv_type_${gltype}_signed
22420
GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
22421
if test "$result" = yes; then
22422
cat >>confdefs.h <<_ACEOF
22423
#define HAVE_SIGNED_${GLTYPE} 1
22426
eval HAVE_SIGNED_${GLTYPE}=1
22428
eval HAVE_SIGNED_${GLTYPE}=0
22433
gl_cv_type_ptrdiff_t_signed=yes
22434
gl_cv_type_size_t_signed=no
22442
for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
22443
{ echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
22444
echo $ECHO_N "checking for $gltype integer literal suffix... $ECHO_C" >&6; }
22445
if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
22446
echo $ECHO_N "(cached) $ECHO_C" >&6
22448
eval gl_cv_type_${gltype}_suffix=no
22449
eval result=\$gl_cv_type_${gltype}_signed
22450
if test "$result" = yes; then
22455
for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
22457
'') gltype1='int';;
22458
l) gltype1='long int';;
22459
ll) gltype1='long long int';;
22460
i64) gltype1='__int64';;
22461
u) gltype1='unsigned int';;
22462
ul) gltype1='unsigned long int';;
22463
ull) gltype1='unsigned long long int';;
22464
ui64)gltype1='unsigned __int64';;
22466
cat >conftest.$ac_ext <<_ACEOF
22469
cat confdefs.h >>conftest.$ac_ext
22470
cat >>conftest.$ac_ext <<_ACEOF
22471
/* end confdefs.h. */
22473
#include <stddef.h>
22474
#include <signal.h>
22476
/* BSD/OS 4.1 has a bug: <stdio.h> and <time.h> must be included before
22478
# include <stdio.h>
22480
# include <wchar.h>
22483
extern $gltype foo;
22484
extern $gltype1 foo;
22493
rm -f conftest.$ac_objext
22494
if { (ac_try="$ac_compile"
22495
case "(($ac_try" in
22496
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22497
*) ac_try_echo=$ac_try;;
22499
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22500
(eval "$ac_compile") 2>conftest.er1
22502
grep -v '^ *+' conftest.er1 >conftest.err
22504
cat conftest.err >&5
22505
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22506
(exit $ac_status); } && {
22507
test -z "$ac_c_werror_flag" ||
22508
test ! -s conftest.err
22509
} && test -s conftest.$ac_objext; then
22510
eval gl_cv_type_${gltype}_suffix=\$glsuf
22512
echo "$as_me: failed program was:" >&5
22513
sed 's/^/| /' conftest.$ac_ext >&5
22518
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22519
eval result=\$gl_cv_type_${gltype}_suffix
22520
test "$result" != no && break
22523
ac_res=`eval echo '${'gl_cv_type_${gltype}_suffix'}'`
22524
{ echo "$as_me:$LINENO: result: $ac_res" >&5
22525
echo "${ECHO_T}$ac_res" >&6; }
22526
GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
22527
eval result=\$gl_cv_type_${gltype}_suffix
22528
test "$result" = no && result=
22529
eval ${GLTYPE}_SUFFIX=\$result
22530
cat >>confdefs.h <<_ACEOF
22531
#define ${GLTYPE}_SUFFIX $result
22869
22544
for ac_func in strpbrk
22871
22546
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22872
echo "$as_me:$LINENO: checking for $ac_func" >&5
22873
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22874
if eval "test \"\${$as_ac_var+set}\" = set"; then
22547
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22548
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22549
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22875
22550
echo $ECHO_N "(cached) $ECHO_C" >&6
22877
22552
cat >conftest.$ac_ext <<_ACEOF
23559
22807
for ac_header in stdint.h
23561
22809
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23562
if eval "test \"\${$as_ac_Header+set}\" = set"; then
23563
echo "$as_me:$LINENO: checking for $ac_header" >&5
23564
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23565
if eval "test \"\${$as_ac_Header+set}\" = set"; then
23566
echo $ECHO_N "(cached) $ECHO_C" >&6
23568
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23569
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23571
# Is the header compilable?
23572
echo "$as_me:$LINENO: checking $ac_header usability" >&5
23573
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23574
cat >conftest.$ac_ext <<_ACEOF
23577
cat confdefs.h >>conftest.$ac_ext
23578
cat >>conftest.$ac_ext <<_ACEOF
23579
/* end confdefs.h. */
23580
$ac_includes_default
23581
#include <$ac_header>
23583
rm -f conftest.$ac_objext
23584
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23585
(eval $ac_compile) 2>conftest.er1
23587
grep -v '^ *+' conftest.er1 >conftest.err
23589
cat conftest.err >&5
23590
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23591
(exit $ac_status); } &&
23592
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23593
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23594
(eval $ac_try) 2>&5
23596
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23597
(exit $ac_status); }; } &&
23598
{ ac_try='test -s conftest.$ac_objext'
23599
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23600
(eval $ac_try) 2>&5
23602
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23603
(exit $ac_status); }; }; then
23604
ac_header_compiler=yes
23606
echo "$as_me: failed program was:" >&5
23607
sed 's/^/| /' conftest.$ac_ext >&5
23609
ac_header_compiler=no
23611
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23612
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23613
echo "${ECHO_T}$ac_header_compiler" >&6
23615
# Is the header present?
23616
echo "$as_me:$LINENO: checking $ac_header presence" >&5
23617
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23618
cat >conftest.$ac_ext <<_ACEOF
23621
cat confdefs.h >>conftest.$ac_ext
23622
cat >>conftest.$ac_ext <<_ACEOF
23623
/* end confdefs.h. */
23624
#include <$ac_header>
23626
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23627
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23629
grep -v '^ *+' conftest.er1 >conftest.err
23631
cat conftest.err >&5
23632
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23633
(exit $ac_status); } >/dev/null; then
23634
if test -s conftest.err; then
23635
ac_cpp_err=$ac_c_preproc_warn_flag
23636
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23643
if test -z "$ac_cpp_err"; then
23644
ac_header_preproc=yes
23646
echo "$as_me: failed program was:" >&5
23647
sed 's/^/| /' conftest.$ac_ext >&5
23649
ac_header_preproc=no
23651
rm -f conftest.err conftest.$ac_ext
23652
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23653
echo "${ECHO_T}$ac_header_preproc" >&6
23655
# So? What about this header?
23656
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23658
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23659
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23660
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23661
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23662
ac_header_preproc=yes
23665
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23666
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23667
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23668
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23669
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23670
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23671
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23672
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23673
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23674
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23675
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23676
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23679
## ------------------------------------ ##
23680
## Report this to gnupg-devel@gnupg.org ##
23681
## ------------------------------------ ##
23684
sed "s/^/$as_me: WARNING: /" >&2
23687
echo "$as_me:$LINENO: checking for $ac_header" >&5
23688
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23689
if eval "test \"\${$as_ac_Header+set}\" = set"; then
23690
echo $ECHO_N "(cached) $ECHO_C" >&6
23692
eval "$as_ac_Header=\$ac_header_preproc"
23694
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23695
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23698
if test `eval echo '${'$as_ac_Header'}'` = yes; then
23699
cat >>confdefs.h <<_ACEOF
23700
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23710
# These are needed by libjnlib - fixme: we should have macros for them
23718
for ac_func in memicmp stpcpy strlwr strtoul memmove stricmp strtol
23720
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23721
echo "$as_me:$LINENO: checking for $ac_func" >&5
23722
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23723
if eval "test \"\${$as_ac_var+set}\" = set"; then
23724
echo $ECHO_N "(cached) $ECHO_C" >&6
23726
cat >conftest.$ac_ext <<_ACEOF
23729
cat confdefs.h >>conftest.$ac_ext
23730
cat >>conftest.$ac_ext <<_ACEOF
23731
/* end confdefs.h. */
23732
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23733
For example, HP-UX 11i <limits.h> declares gettimeofday. */
23734
#define $ac_func innocuous_$ac_func
23736
/* System header to define __stub macros and hopefully few prototypes,
23737
which can conflict with char $ac_func (); below.
23738
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23739
<limits.h> exists even on freestanding compilers. */
23742
# include <limits.h>
23744
# include <assert.h>
23749
/* Override any gcc2 internal prototype to avoid an error. */
23754
/* We use char because int might match the return type of a gcc2
23755
builtin and then its argument prototype would still apply. */
23757
/* The GNU C library defines this for functions which it implements
23758
to always fail with ENOSYS. Some functions are actually named
23759
something starting with __ and the normal name is an alias. */
23760
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23763
char (*f) () = $ac_func;
23772
return f != $ac_func;
23777
rm -f conftest.$ac_objext conftest$ac_exeext
23778
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23779
(eval $ac_link) 2>conftest.er1
23781
grep -v '^ *+' conftest.er1 >conftest.err
23783
cat conftest.err >&5
23784
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23785
(exit $ac_status); } &&
23786
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23787
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23788
(eval $ac_try) 2>&5
23790
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23791
(exit $ac_status); }; } &&
23792
{ ac_try='test -s conftest$ac_exeext'
23793
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23794
(eval $ac_try) 2>&5
23796
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23797
(exit $ac_status); }; }; then
23798
eval "$as_ac_var=yes"
23800
echo "$as_me: failed program was:" >&5
23801
sed 's/^/| /' conftest.$ac_ext >&5
23803
eval "$as_ac_var=no"
23805
rm -f conftest.err conftest.$ac_objext \
23806
conftest$ac_exeext conftest.$ac_ext
23808
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23809
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23810
if test `eval echo '${'$as_ac_var'}'` = yes; then
23811
cat >>confdefs.h <<_ACEOF
23812
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23822
for ac_func in getrusage setrlimit stat setlocale
23824
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23825
echo "$as_me:$LINENO: checking for $ac_func" >&5
23826
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23827
if eval "test \"\${$as_ac_var+set}\" = set"; then
23828
echo $ECHO_N "(cached) $ECHO_C" >&6
23830
cat >conftest.$ac_ext <<_ACEOF
23833
cat confdefs.h >>conftest.$ac_ext
23834
cat >>conftest.$ac_ext <<_ACEOF
23835
/* end confdefs.h. */
23836
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23837
For example, HP-UX 11i <limits.h> declares gettimeofday. */
23838
#define $ac_func innocuous_$ac_func
23840
/* System header to define __stub macros and hopefully few prototypes,
23841
which can conflict with char $ac_func (); below.
23842
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23843
<limits.h> exists even on freestanding compilers. */
23846
# include <limits.h>
23848
# include <assert.h>
23853
/* Override any gcc2 internal prototype to avoid an error. */
23858
/* We use char because int might match the return type of a gcc2
23859
builtin and then its argument prototype would still apply. */
23861
/* The GNU C library defines this for functions which it implements
23862
to always fail with ENOSYS. Some functions are actually named
23863
something starting with __ and the normal name is an alias. */
23864
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23867
char (*f) () = $ac_func;
23876
return f != $ac_func;
23881
rm -f conftest.$ac_objext conftest$ac_exeext
23882
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23883
(eval $ac_link) 2>conftest.er1
23885
grep -v '^ *+' conftest.er1 >conftest.err
23887
cat conftest.err >&5
23888
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23889
(exit $ac_status); } &&
23890
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23891
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23892
(eval $ac_try) 2>&5
23894
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23895
(exit $ac_status); }; } &&
23896
{ ac_try='test -s conftest$ac_exeext'
23897
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23898
(eval $ac_try) 2>&5
23900
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23901
(exit $ac_status); }; }; then
23902
eval "$as_ac_var=yes"
23904
echo "$as_me: failed program was:" >&5
23905
sed 's/^/| /' conftest.$ac_ext >&5
23907
eval "$as_ac_var=no"
23909
rm -f conftest.err conftest.$ac_objext \
23910
conftest$ac_exeext conftest.$ac_ext
23912
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23913
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23914
if test `eval echo '${'$as_ac_var'}'` = yes; then
23915
cat >>confdefs.h <<_ACEOF
23916
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23926
for ac_func in flockfile funlockfile fopencookie funopen
23928
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23929
echo "$as_me:$LINENO: checking for $ac_func" >&5
23930
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23931
if eval "test \"\${$as_ac_var+set}\" = set"; then
23932
echo $ECHO_N "(cached) $ECHO_C" >&6
23934
cat >conftest.$ac_ext <<_ACEOF
23937
cat confdefs.h >>conftest.$ac_ext
23938
cat >>conftest.$ac_ext <<_ACEOF
23939
/* end confdefs.h. */
23940
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23941
For example, HP-UX 11i <limits.h> declares gettimeofday. */
23942
#define $ac_func innocuous_$ac_func
23944
/* System header to define __stub macros and hopefully few prototypes,
23945
which can conflict with char $ac_func (); below.
23946
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23947
<limits.h> exists even on freestanding compilers. */
23950
# include <limits.h>
23952
# include <assert.h>
23957
/* Override any gcc2 internal prototype to avoid an error. */
23962
/* We use char because int might match the return type of a gcc2
23963
builtin and then its argument prototype would still apply. */
23965
/* The GNU C library defines this for functions which it implements
23966
to always fail with ENOSYS. Some functions are actually named
23967
something starting with __ and the normal name is an alias. */
23968
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23971
char (*f) () = $ac_func;
23980
return f != $ac_func;
23985
rm -f conftest.$ac_objext conftest$ac_exeext
23986
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23987
(eval $ac_link) 2>conftest.er1
23989
grep -v '^ *+' conftest.er1 >conftest.err
23991
cat conftest.err >&5
23992
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23993
(exit $ac_status); } &&
23994
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23995
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23996
(eval $ac_try) 2>&5
23998
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23999
(exit $ac_status); }; } &&
24000
{ ac_try='test -s conftest$ac_exeext'
24001
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24002
(eval $ac_try) 2>&5
24004
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24005
(exit $ac_status); }; }; then
24006
eval "$as_ac_var=yes"
24008
echo "$as_me: failed program was:" >&5
24009
sed 's/^/| /' conftest.$ac_ext >&5
24011
eval "$as_ac_var=no"
24013
rm -f conftest.err conftest.$ac_objext \
24014
conftest$ac_exeext conftest.$ac_ext
24016
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24017
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24018
if test `eval echo '${'$as_ac_var'}'` = yes; then
24019
cat >>confdefs.h <<_ACEOF
24020
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24029
# check for gethrtime and run a testprogram to see whether
24030
# it is broken. It has been reported that some Solaris and HP UX systems
24033
# fixme: Do we need this - iirc, this is only used by libgcrypt.
24035
echo "$as_me:$LINENO: checking for gethrtime" >&5
24036
echo $ECHO_N "checking for gethrtime... $ECHO_C" >&6
24037
if test "${gnupg_cv_func_gethrtime+set}" = set; then
24038
echo $ECHO_N "(cached) $ECHO_C" >&6
24040
cat >conftest.$ac_ext <<_ACEOF
24043
cat confdefs.h >>conftest.$ac_ext
24044
cat >>conftest.$ac_ext <<_ACEOF
24045
/* end confdefs.h. */
24046
#include <sys/times.h>
24058
rm -f conftest.$ac_objext conftest$ac_exeext
24059
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24060
(eval $ac_link) 2>conftest.er1
24062
grep -v '^ *+' conftest.er1 >conftest.err
24064
cat conftest.err >&5
24065
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24066
(exit $ac_status); } &&
24067
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24068
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24069
(eval $ac_try) 2>&5
24071
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24072
(exit $ac_status); }; } &&
24073
{ ac_try='test -s conftest$ac_exeext'
24074
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24075
(eval $ac_try) 2>&5
24077
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24078
(exit $ac_status); }; }; then
24079
gnupg_cv_func_gethrtime=yes
24081
echo "$as_me: failed program was:" >&5
24082
sed 's/^/| /' conftest.$ac_ext >&5
24084
gnupg_cv_func_gethrtime=no
24086
rm -f conftest.err conftest.$ac_objext \
24087
conftest$ac_exeext conftest.$ac_ext
24090
echo "$as_me:$LINENO: result: $gnupg_cv_func_gethrtime" >&5
24091
echo "${ECHO_T}$gnupg_cv_func_gethrtime" >&6
24092
if test $gnupg_cv_func_gethrtime = yes; then
24094
cat >>confdefs.h <<\_ACEOF
24095
#define HAVE_GETHRTIME 1
24098
echo "$as_me:$LINENO: checking whether gethrtime is broken" >&5
24099
echo $ECHO_N "checking whether gethrtime is broken... $ECHO_C" >&6
24100
if test "${gnupg_cv_func_broken_gethrtime+set}" = set; then
24101
echo $ECHO_N "(cached) $ECHO_C" >&6
24103
if test "$cross_compiling" = yes; then
24104
gnupg_cv_func_broken_gethrtime=assume-no
24106
cat >conftest.$ac_ext <<_ACEOF
24109
cat confdefs.h >>conftest.$ac_ext
24110
cat >>conftest.$ac_ext <<_ACEOF
24111
/* end confdefs.h. */
24113
#include <sys/times.h>
24120
rm -f conftest$ac_exeext
24121
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24122
(eval $ac_link) 2>&5
24124
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24125
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24126
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24127
(eval $ac_try) 2>&5
24129
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24130
(exit $ac_status); }; }; then
24131
gnupg_cv_func_broken_gethrtime=no
24133
echo "$as_me: program exited with status $ac_status" >&5
24134
echo "$as_me: failed program was:" >&5
24135
sed 's/^/| /' conftest.$ac_ext >&5
24137
( exit $ac_status )
24138
gnupg_cv_func_broken_gethrtime=yes
24140
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24144
echo "$as_me:$LINENO: result: $gnupg_cv_func_broken_gethrtime" >&5
24145
echo "${ECHO_T}$gnupg_cv_func_broken_gethrtime" >&6
24146
if test $gnupg_cv_func_broken_gethrtime = yes; then
24148
cat >>confdefs.h <<\_ACEOF
24149
#define HAVE_BROKEN_GETHRTIME 1
24157
for ac_func in mlock
24159
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24160
echo "$as_me:$LINENO: checking for $ac_func" >&5
24161
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24162
if eval "test \"\${$as_ac_var+set}\" = set"; then
24163
echo $ECHO_N "(cached) $ECHO_C" >&6
24165
cat >conftest.$ac_ext <<_ACEOF
24168
cat confdefs.h >>conftest.$ac_ext
24169
cat >>conftest.$ac_ext <<_ACEOF
24170
/* end confdefs.h. */
24171
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24172
For example, HP-UX 11i <limits.h> declares gettimeofday. */
24173
#define $ac_func innocuous_$ac_func
24175
/* System header to define __stub macros and hopefully few prototypes,
24176
which can conflict with char $ac_func (); below.
24177
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24178
<limits.h> exists even on freestanding compilers. */
24181
# include <limits.h>
24183
# include <assert.h>
24188
/* Override any gcc2 internal prototype to avoid an error. */
24193
/* We use char because int might match the return type of a gcc2
24194
builtin and then its argument prototype would still apply. */
24196
/* The GNU C library defines this for functions which it implements
24197
to always fail with ENOSYS. Some functions are actually named
24198
something starting with __ and the normal name is an alias. */
24199
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24202
char (*f) () = $ac_func;
24211
return f != $ac_func;
24216
rm -f conftest.$ac_objext conftest$ac_exeext
24217
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24218
(eval $ac_link) 2>conftest.er1
24220
grep -v '^ *+' conftest.er1 >conftest.err
24222
cat conftest.err >&5
24223
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24224
(exit $ac_status); } &&
24225
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24226
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24227
(eval $ac_try) 2>&5
24229
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24230
(exit $ac_status); }; } &&
24231
{ ac_try='test -s conftest$ac_exeext'
24232
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24233
(eval $ac_try) 2>&5
24235
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24236
(exit $ac_status); }; }; then
24237
eval "$as_ac_var=yes"
24239
echo "$as_me: failed program was:" >&5
24240
sed 's/^/| /' conftest.$ac_ext >&5
24242
eval "$as_ac_var=no"
24244
rm -f conftest.err conftest.$ac_objext \
24245
conftest$ac_exeext conftest.$ac_ext
24247
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24248
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24249
if test `eval echo '${'$as_ac_var'}'` = yes; then
24250
cat >>confdefs.h <<_ACEOF
24251
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24257
if test "$ac_cv_func_mlock" = "no"; then
24259
for ac_header in sys/mman.h
24261
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24262
if eval "test \"\${$as_ac_Header+set}\" = set"; then
24263
echo "$as_me:$LINENO: checking for $ac_header" >&5
24264
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24265
if eval "test \"\${$as_ac_Header+set}\" = set"; then
24266
echo $ECHO_N "(cached) $ECHO_C" >&6
24268
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24269
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24271
# Is the header compilable?
24272
echo "$as_me:$LINENO: checking $ac_header usability" >&5
24273
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24274
cat >conftest.$ac_ext <<_ACEOF
24277
cat confdefs.h >>conftest.$ac_ext
24278
cat >>conftest.$ac_ext <<_ACEOF
24279
/* end confdefs.h. */
24280
$ac_includes_default
24281
#include <$ac_header>
24283
rm -f conftest.$ac_objext
24284
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24285
(eval $ac_compile) 2>conftest.er1
24287
grep -v '^ *+' conftest.er1 >conftest.err
24289
cat conftest.err >&5
24290
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24291
(exit $ac_status); } &&
24292
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24293
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24294
(eval $ac_try) 2>&5
24296
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24297
(exit $ac_status); }; } &&
24298
{ ac_try='test -s conftest.$ac_objext'
24299
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24300
(eval $ac_try) 2>&5
24302
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24303
(exit $ac_status); }; }; then
24304
ac_header_compiler=yes
24306
echo "$as_me: failed program was:" >&5
24307
sed 's/^/| /' conftest.$ac_ext >&5
24309
ac_header_compiler=no
24311
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24312
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24313
echo "${ECHO_T}$ac_header_compiler" >&6
24315
# Is the header present?
24316
echo "$as_me:$LINENO: checking $ac_header presence" >&5
24317
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24318
cat >conftest.$ac_ext <<_ACEOF
24321
cat confdefs.h >>conftest.$ac_ext
24322
cat >>conftest.$ac_ext <<_ACEOF
24323
/* end confdefs.h. */
24324
#include <$ac_header>
24326
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24327
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24329
grep -v '^ *+' conftest.er1 >conftest.err
24331
cat conftest.err >&5
24332
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24333
(exit $ac_status); } >/dev/null; then
24334
if test -s conftest.err; then
24335
ac_cpp_err=$ac_c_preproc_warn_flag
24336
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24343
if test -z "$ac_cpp_err"; then
24344
ac_header_preproc=yes
24346
echo "$as_me: failed program was:" >&5
24347
sed 's/^/| /' conftest.$ac_ext >&5
24349
ac_header_preproc=no
24351
rm -f conftest.err conftest.$ac_ext
24352
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24353
echo "${ECHO_T}$ac_header_preproc" >&6
24355
# So? What about this header?
24356
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24358
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24359
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24360
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24361
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24362
ac_header_preproc=yes
24365
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24366
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24367
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24368
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24369
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24370
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24371
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24372
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24373
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24374
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24375
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24376
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24379
## ------------------------------------ ##
24380
## Report this to gnupg-devel@gnupg.org ##
24381
## ------------------------------------ ##
24384
sed "s/^/$as_me: WARNING: /" >&2
24387
echo "$as_me:$LINENO: checking for $ac_header" >&5
24388
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24389
if eval "test \"\${$as_ac_Header+set}\" = set"; then
24390
echo $ECHO_N "(cached) $ECHO_C" >&6
24392
eval "$as_ac_Header=\$ac_header_preproc"
24394
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24395
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24398
if test `eval echo '${'$as_ac_Header'}'` = yes; then
24399
cat >>confdefs.h <<_ACEOF
24400
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24407
if test "$ac_cv_header_sys_mman_h" = "yes"; then
24408
# Add librt to LIBS:
24410
echo "$as_me:$LINENO: checking for memlk in -lrt" >&5
24411
echo $ECHO_N "checking for memlk in -lrt... $ECHO_C" >&6
24412
if test "${ac_cv_lib_rt_memlk+set}" = set; then
24413
echo $ECHO_N "(cached) $ECHO_C" >&6
24415
ac_check_lib_save_LIBS=$LIBS
24417
cat >conftest.$ac_ext <<_ACEOF
24420
cat confdefs.h >>conftest.$ac_ext
24421
cat >>conftest.$ac_ext <<_ACEOF
24422
/* end confdefs.h. */
24424
/* Override any gcc2 internal prototype to avoid an error. */
24428
/* We use char because int might match the return type of a gcc2
24429
builtin and then its argument prototype would still apply. */
24439
rm -f conftest.$ac_objext conftest$ac_exeext
24440
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24441
(eval $ac_link) 2>conftest.er1
24443
grep -v '^ *+' conftest.er1 >conftest.err
24445
cat conftest.err >&5
24446
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24447
(exit $ac_status); } &&
24448
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24449
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24450
(eval $ac_try) 2>&5
24452
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24453
(exit $ac_status); }; } &&
24454
{ ac_try='test -s conftest$ac_exeext'
24455
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24456
(eval $ac_try) 2>&5
24458
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24459
(exit $ac_status); }; }; then
24460
ac_cv_lib_rt_memlk=yes
24462
echo "$as_me: failed program was:" >&5
24463
sed 's/^/| /' conftest.$ac_ext >&5
24465
ac_cv_lib_rt_memlk=no
24467
rm -f conftest.err conftest.$ac_objext \
24468
conftest$ac_exeext conftest.$ac_ext
24469
LIBS=$ac_check_lib_save_LIBS
24471
echo "$as_me:$LINENO: result: $ac_cv_lib_rt_memlk" >&5
24472
echo "${ECHO_T}$ac_cv_lib_rt_memlk" >&6
24473
if test $ac_cv_lib_rt_memlk = yes; then
24474
cat >>confdefs.h <<_ACEOF
24475
#define HAVE_LIBRT 1
24482
echo "$as_me:$LINENO: checking whether mlock is in sys/mman.h" >&5
24483
echo $ECHO_N "checking whether mlock is in sys/mman.h... $ECHO_C" >&6
24484
if test "${gnupg_cv_mlock_is_in_sys_mman+set}" = set; then
24485
echo $ECHO_N "(cached) $ECHO_C" >&6
24487
cat >conftest.$ac_ext <<_ACEOF
24490
cat confdefs.h >>conftest.$ac_ext
24491
cat >>conftest.$ac_ext <<_ACEOF
24492
/* end confdefs.h. */
24494
#include <assert.h>
24495
#ifdef HAVE_SYS_MMAN_H
24496
#include <sys/mman.h>
24505
/* glibc defines this for functions which it implements
24506
* to always fail with ENOSYS. Some functions are actually
24507
* named something starting with __ and the normal name
24509
#if defined (__stub_mlock) || defined (__stub___mlock)
24520
rm -f conftest.$ac_objext conftest$ac_exeext
24521
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24522
(eval $ac_link) 2>conftest.er1
24524
grep -v '^ *+' conftest.er1 >conftest.err
24526
cat conftest.err >&5
24527
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24528
(exit $ac_status); } &&
24529
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24530
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24531
(eval $ac_try) 2>&5
24533
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24534
(exit $ac_status); }; } &&
24535
{ ac_try='test -s conftest$ac_exeext'
24536
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24537
(eval $ac_try) 2>&5
24539
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24540
(exit $ac_status); }; }; then
24541
gnupg_cv_mlock_is_in_sys_mman=yes
24543
echo "$as_me: failed program was:" >&5
24544
sed 's/^/| /' conftest.$ac_ext >&5
24546
gnupg_cv_mlock_is_in_sys_mman=no
24548
rm -f conftest.err conftest.$ac_objext \
24549
conftest$ac_exeext conftest.$ac_ext
24551
echo "$as_me:$LINENO: result: $gnupg_cv_mlock_is_in_sys_mman" >&5
24552
echo "${ECHO_T}$gnupg_cv_mlock_is_in_sys_mman" >&6
24553
if test "$gnupg_cv_mlock_is_in_sys_mman" = "yes"; then
24555
cat >>confdefs.h <<\_ACEOF
24556
#define HAVE_MLOCK 1
24562
if test "$ac_cv_func_mlock" = "yes"; then
24563
echo "$as_me:$LINENO: checking whether mlock is broken" >&5
24564
echo $ECHO_N "checking whether mlock is broken... $ECHO_C" >&6
24565
if test "${gnupg_cv_have_broken_mlock+set}" = set; then
24566
echo $ECHO_N "(cached) $ECHO_C" >&6
24568
if test "$cross_compiling" = yes; then
24569
gnupg_cv_have_broken_mlock="assume-no"
24572
cat >conftest.$ac_ext <<_ACEOF
24575
cat confdefs.h >>conftest.$ac_ext
24576
cat >>conftest.$ac_ext <<_ACEOF
24577
/* end confdefs.h. */
24579
#include <stdlib.h>
24580
#include <unistd.h>
24582
#include <sys/mman.h>
24583
#include <sys/types.h>
24590
long int pgsize = getpagesize();
24592
pool = malloc( 4096 + pgsize );
24595
pool += (pgsize - ((long int)pool % pgsize));
24597
err = mlock( pool, 4096 );
24598
if( !err || errno == EPERM )
24599
return 0; /* okay */
24601
return 1; /* hmmm */
24606
rm -f conftest$ac_exeext
24607
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24608
(eval $ac_link) 2>&5
24610
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24611
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24612
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24613
(eval $ac_try) 2>&5
24615
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24616
(exit $ac_status); }; }; then
24617
gnupg_cv_have_broken_mlock="no"
24619
echo "$as_me: program exited with status $ac_status" >&5
24620
echo "$as_me: failed program was:" >&5
24621
sed 's/^/| /' conftest.$ac_ext >&5
24623
( exit $ac_status )
24624
gnupg_cv_have_broken_mlock="yes"
24626
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24631
if test "$gnupg_cv_have_broken_mlock" = "yes"; then
24633
cat >>confdefs.h <<\_ACEOF
24634
#define HAVE_BROKEN_MLOCK 1
24637
echo "$as_me:$LINENO: result: yes" >&5
24638
echo "${ECHO_T}yes" >&6
24640
for ac_func in plock
24642
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24643
echo "$as_me:$LINENO: checking for $ac_func" >&5
24644
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24645
if eval "test \"\${$as_ac_var+set}\" = set"; then
24646
echo $ECHO_N "(cached) $ECHO_C" >&6
24648
cat >conftest.$ac_ext <<_ACEOF
24651
cat confdefs.h >>conftest.$ac_ext
24652
cat >>conftest.$ac_ext <<_ACEOF
24653
/* end confdefs.h. */
24654
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24655
For example, HP-UX 11i <limits.h> declares gettimeofday. */
24656
#define $ac_func innocuous_$ac_func
24658
/* System header to define __stub macros and hopefully few prototypes,
24659
which can conflict with char $ac_func (); below.
24660
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24661
<limits.h> exists even on freestanding compilers. */
24664
# include <limits.h>
24666
# include <assert.h>
24671
/* Override any gcc2 internal prototype to avoid an error. */
24676
/* We use char because int might match the return type of a gcc2
24677
builtin and then its argument prototype would still apply. */
24679
/* The GNU C library defines this for functions which it implements
24680
to always fail with ENOSYS. Some functions are actually named
24681
something starting with __ and the normal name is an alias. */
24682
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24685
char (*f) () = $ac_func;
24694
return f != $ac_func;
24699
rm -f conftest.$ac_objext conftest$ac_exeext
24700
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24701
(eval $ac_link) 2>conftest.er1
24703
grep -v '^ *+' conftest.er1 >conftest.err
24705
cat conftest.err >&5
24706
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24707
(exit $ac_status); } &&
24708
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24709
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24710
(eval $ac_try) 2>&5
24712
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24713
(exit $ac_status); }; } &&
24714
{ ac_try='test -s conftest$ac_exeext'
24715
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24716
(eval $ac_try) 2>&5
24718
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24719
(exit $ac_status); }; }; then
24720
eval "$as_ac_var=yes"
24722
echo "$as_me: failed program was:" >&5
24723
sed 's/^/| /' conftest.$ac_ext >&5
24725
eval "$as_ac_var=no"
24727
rm -f conftest.err conftest.$ac_objext \
24728
conftest$ac_exeext conftest.$ac_ext
24730
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24731
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24732
if test `eval echo '${'$as_ac_var'}'` = yes; then
24733
cat >>confdefs.h <<_ACEOF
24734
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24741
if test "$gnupg_cv_have_broken_mlock" = "no"; then
24742
echo "$as_me:$LINENO: result: no" >&5
24743
echo "${ECHO_T}no" >&6
24745
echo "$as_me:$LINENO: result: assuming no" >&5
24746
echo "${ECHO_T}assuming no" >&6
22810
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22811
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
22812
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22813
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22814
echo $ECHO_N "(cached) $ECHO_C" >&6
22816
ac_res=`eval echo '${'$as_ac_Header'}'`
22817
{ echo "$as_me:$LINENO: result: $ac_res" >&5
22818
echo "${ECHO_T}$ac_res" >&6; }
22820
# Is the header compilable?
22821
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
22822
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22823
cat >conftest.$ac_ext <<_ACEOF
22826
cat confdefs.h >>conftest.$ac_ext
22827
cat >>conftest.$ac_ext <<_ACEOF
22828
/* end confdefs.h. */
22829
$ac_includes_default
22830
#include <$ac_header>
22832
rm -f conftest.$ac_objext
22833
if { (ac_try="$ac_compile"
22834
case "(($ac_try" in
22835
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22836
*) ac_try_echo=$ac_try;;
22838
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22839
(eval "$ac_compile") 2>conftest.er1
22841
grep -v '^ *+' conftest.er1 >conftest.err
22843
cat conftest.err >&5
22844
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22845
(exit $ac_status); } && {
22846
test -z "$ac_c_werror_flag" ||
22847
test ! -s conftest.err
22848
} && test -s conftest.$ac_objext; then
22849
ac_header_compiler=yes
22851
echo "$as_me: failed program was:" >&5
22852
sed 's/^/| /' conftest.$ac_ext >&5
22854
ac_header_compiler=no
22857
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22858
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22859
echo "${ECHO_T}$ac_header_compiler" >&6; }
22861
# Is the header present?
22862
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
22863
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22864
cat >conftest.$ac_ext <<_ACEOF
22867
cat confdefs.h >>conftest.$ac_ext
22868
cat >>conftest.$ac_ext <<_ACEOF
22869
/* end confdefs.h. */
22870
#include <$ac_header>
22872
if { (ac_try="$ac_cpp conftest.$ac_ext"
22873
case "(($ac_try" in
22874
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22875
*) ac_try_echo=$ac_try;;
22877
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22878
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22880
grep -v '^ *+' conftest.er1 >conftest.err
22882
cat conftest.err >&5
22883
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22884
(exit $ac_status); } >/dev/null && {
22885
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22886
test ! -s conftest.err
22888
ac_header_preproc=yes
22890
echo "$as_me: failed program was:" >&5
22891
sed 's/^/| /' conftest.$ac_ext >&5
22893
ac_header_preproc=no
22896
rm -f conftest.err conftest.$ac_ext
22897
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22898
echo "${ECHO_T}$ac_header_preproc" >&6; }
22900
# So? What about this header?
22901
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22903
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22904
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22905
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22906
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22907
ac_header_preproc=yes
22910
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22911
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22912
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22913
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22914
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22915
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22916
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22917
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22918
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22919
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22920
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22921
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22923
## ---------------------------------- ##
22924
## Report this to bug-gnupg@gnupg.org ##
22925
## ---------------------------------- ##
22927
) | sed "s/^/$as_me: WARNING: /" >&2
22930
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
22931
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22932
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22933
echo $ECHO_N "(cached) $ECHO_C" >&6
22935
eval "$as_ac_Header=\$ac_header_preproc"
22937
ac_res=`eval echo '${'$as_ac_Header'}'`
22938
{ echo "$as_me:$LINENO: result: $ac_res" >&5
22939
echo "${ECHO_T}$ac_res" >&6; }
22942
if test `eval echo '${'$as_ac_Header'}'` = yes; then
22943
cat >>confdefs.h <<_ACEOF
22944
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22952
LIBGNU_LIBDEPS="$gl_libdeps"
22954
LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
22960
# W32 specific test
24754
22965
for ac_header in sys/stat.h unistd.h direct.h
24756
22967
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24757
if eval "test \"\${$as_ac_Header+set}\" = set"; then
24758
echo "$as_me:$LINENO: checking for $ac_header" >&5
24759
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24760
if eval "test \"\${$as_ac_Header+set}\" = set"; then
22968
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22969
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
22970
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22971
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24761
22972
echo $ECHO_N "(cached) $ECHO_C" >&6
24763
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24764
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22974
ac_res=`eval echo '${'$as_ac_Header'}'`
22975
{ echo "$as_me:$LINENO: result: $ac_res" >&5
22976
echo "${ECHO_T}$ac_res" >&6; }
24766
22978
# Is the header compilable?
24767
echo "$as_me:$LINENO: checking $ac_header usability" >&5
24768
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22979
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
22980
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24769
22981
cat >conftest.$ac_ext <<_ACEOF
24770
22982
/* confdefs.h. */
25727
24011
# Add some extra libs here so that previous tests don't fail for
25728
24012
# mysterious reasons - the final link step should bail out.
24013
# W32SOCKLIBS is also defined so that if can be used for tools not
24014
# requiring any network stuff but linking to code in libcommon which
24015
# tracks in winsock stuff (e.g. init_common_subsystems.
25729
24016
if test "$have_w32_system" = yes; then
25730
W32LIBS="-lwsock32"
24017
W32SOCKLIBS="-lws2_32"
24018
NETLIBS="${NETLIBS} ${W32SOCKLIBS}"
24025
# Setup gcc specific options
24027
{ echo "$as_me:$LINENO: checking for cc features" >&5
24028
echo "$as_me: checking for cc features" >&6;}
25734
24029
if test "$GCC" = yes; then
24030
# Note that it is okay to use CFLAGS here because this are just
24031
# warning options and the user should have a chance of overriding
25735
24033
if test "$USE_MAINTAINER_MODE" = "yes"; then
25736
24034
CFLAGS="$CFLAGS -Wall -Wcast-align -Wshadow -Wstrict-prototypes"
25737
CFLAGS="$CFLAGS -Wno-format-y2k -Wformat-security"
24035
CFLAGS="$CFLAGS -Wformat -Wno-format-y2k -Wformat-security"
25739
24037
CFLAGS="$CFLAGS -Wall"
25747
# We use jnlib, so tell other modules about it
25749
cat >>confdefs.h <<\_ACEOF
25750
#define HAVE_JNLIB_LOGGING 1
25754
# For W32 we need to use our Pth emulation code
25755
if test "$have_w32_system" = yes; then
25756
ac_config_links="$ac_config_links pth.h:jnlib/w32-pth.h"
24040
{ echo "$as_me:$LINENO: checking if gcc supports -Wno-pointer-sign" >&5
24041
echo $ECHO_N "checking if gcc supports -Wno-pointer-sign... $ECHO_C" >&6; }
24042
_gcc_cflags_save=$CFLAGS
24043
CFLAGS="-Wno-pointer-sign"
24044
cat >conftest.$ac_ext <<_ACEOF
24047
cat confdefs.h >>conftest.$ac_ext
24048
cat >>conftest.$ac_ext <<_ACEOF
24049
/* end confdefs.h. */
24059
rm -f conftest.$ac_objext
24060
if { (ac_try="$ac_compile"
24061
case "(($ac_try" in
24062
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24063
*) ac_try_echo=$ac_try;;
24065
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24066
(eval "$ac_compile") 2>conftest.er1
24068
grep -v '^ *+' conftest.er1 >conftest.err
24070
cat conftest.err >&5
24071
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24072
(exit $ac_status); } && {
24073
test -z "$ac_c_werror_flag" ||
24074
test ! -s conftest.err
24075
} && test -s conftest.$ac_objext; then
24078
echo "$as_me: failed program was:" >&5
24079
sed 's/^/| /' conftest.$ac_ext >&5
24084
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24085
{ echo "$as_me:$LINENO: result: $_gcc_psign" >&5
24086
echo "${ECHO_T}$_gcc_psign" >&6; }
24087
CFLAGS=$_gcc_cflags_save;
24088
if test x"$_gcc_psign" = xyes ; then
24089
CFLAGS="$CFLAGS -Wno-pointer-sign"
24092
{ echo "$as_me:$LINENO: checking if gcc supports -Wpointer-arith" >&5
24093
echo $ECHO_N "checking if gcc supports -Wpointer-arith... $ECHO_C" >&6; }
24094
_gcc_cflags_save=$CFLAGS
24095
CFLAGS="-Wpointer-arith"
24096
cat >conftest.$ac_ext <<_ACEOF
24099
cat confdefs.h >>conftest.$ac_ext
24100
cat >>conftest.$ac_ext <<_ACEOF
24101
/* end confdefs.h. */
24111
rm -f conftest.$ac_objext
24112
if { (ac_try="$ac_compile"
24113
case "(($ac_try" in
24114
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24115
*) ac_try_echo=$ac_try;;
24117
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24118
(eval "$ac_compile") 2>conftest.er1
24120
grep -v '^ *+' conftest.er1 >conftest.err
24122
cat conftest.err >&5
24123
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24124
(exit $ac_status); } && {
24125
test -z "$ac_c_werror_flag" ||
24126
test ! -s conftest.err
24127
} && test -s conftest.$ac_objext; then
24130
echo "$as_me: failed program was:" >&5
24131
sed 's/^/| /' conftest.$ac_ext >&5
24136
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24137
{ echo "$as_me:$LINENO: result: $_gcc_psign" >&5
24138
echo "${ECHO_T}$_gcc_psign" >&6; }
24139
CFLAGS=$_gcc_cflags_save;
24140
if test x"$_gcc_psign" = xyes ; then
24141
CFLAGS="$CFLAGS -Wpointer-arith"
24147
# This is handy for debugging so the compiler doesn't rearrange
24148
# things and eliminate variables.
24150
# Check whether --enable-optimization was given.
24151
if test "${enable_optimization+set}" = set; then
24152
enableval=$enable_optimization; if test $enableval = no ; then
24153
CFLAGS=`echo $CFLAGS | sed 's/-O[0-9]//'`
24159
# Prepare building of estream
24162
{ echo "$as_me:$LINENO: checking system features for estream-printf" >&5
24163
echo "$as_me: checking system features for estream-printf" >&6;}
24165
{ echo "$as_me:$LINENO: checking for long long int" >&5
24166
echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
24167
if test "${ac_cv_type_long_long_int+set}" = set; then
24168
echo $ECHO_N "(cached) $ECHO_C" >&6
24170
cat >conftest.$ac_ext <<_ACEOF
24174
cat confdefs.h >>conftest.$ac_ext
24175
cat >>conftest.$ac_ext <<_ACEOF
24176
/* end confdefs.h. */
24177
/* Test preprocessor. */
24178
#if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
24179
error in preprocessor;
24181
#if ! (18446744073709551615ULL <= -1ull)
24182
error in preprocessor;
24184
/* Test literals. */
24185
long long int ll = 9223372036854775807ll;
24186
long long int nll = -9223372036854775807LL;
24187
unsigned long long int ull = 18446744073709551615ULL;
24188
/* Test constant expressions. */
24189
typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
24191
typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
24197
/* Test availability of runtime routines for shift and division. */
24198
long long int llmax = 9223372036854775807ll;
24199
unsigned long long int ullmax = 18446744073709551615ull;
24200
return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
24201
| (llmax / ll) | (llmax % ll)
24202
| (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
24203
| (ullmax / ull) | (ullmax % ull));
24209
rm -f conftest.$ac_objext conftest$ac_exeext
24210
if { (ac_try="$ac_link"
24211
case "(($ac_try" in
24212
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24213
*) ac_try_echo=$ac_try;;
24215
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24216
(eval "$ac_link") 2>conftest.er1
24218
grep -v '^ *+' conftest.er1 >conftest.err
24220
cat conftest.err >&5
24221
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24222
(exit $ac_status); } && {
24223
test -z "$ac_c_werror_flag" ||
24224
test ! -s conftest.err
24225
} && test -s conftest$ac_exeext &&
24226
$as_test_x conftest$ac_exeext; then
24227
if test "$cross_compiling" = yes; then
24228
ac_cv_type_long_long_int=yes
24230
cat >conftest.$ac_ext <<_ACEOF
24233
cat confdefs.h >>conftest.$ac_ext
24234
cat >>conftest.$ac_ext <<_ACEOF
24235
/* end confdefs.h. */
24236
#include <limits.h>
24239
(1LL << (sizeof (long long int) * CHAR_BIT - 2))
24240
# define LLONG_MAX (HALF - 1 + HALF)
24245
long long int n = 1;
24249
long long int m = n << i;
24252
if (LLONG_MAX / 2 < m)
24260
rm -f conftest$ac_exeext
24261
if { (ac_try="$ac_link"
24262
case "(($ac_try" in
24263
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24264
*) ac_try_echo=$ac_try;;
24266
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24267
(eval "$ac_link") 2>&5
24269
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24270
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24271
{ (case "(($ac_try" in
24272
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24273
*) ac_try_echo=$ac_try;;
24275
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24276
(eval "$ac_try") 2>&5
24278
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24279
(exit $ac_status); }; }; then
24280
ac_cv_type_long_long_int=yes
24282
echo "$as_me: program exited with status $ac_status" >&5
24283
echo "$as_me: failed program was:" >&5
24284
sed 's/^/| /' conftest.$ac_ext >&5
24286
( exit $ac_status )
24287
ac_cv_type_long_long_int=no
24289
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24294
echo "$as_me: failed program was:" >&5
24295
sed 's/^/| /' conftest.$ac_ext >&5
24297
ac_cv_type_long_long_int=no
24300
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24301
conftest$ac_exeext conftest.$ac_ext
24303
{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
24304
echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
24305
if test $ac_cv_type_long_long_int = yes; then
24307
cat >>confdefs.h <<\_ACEOF
24308
#define HAVE_LONG_LONG_INT 1
24314
{ echo "$as_me:$LINENO: checking for long double" >&5
24315
echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
24316
if test "${ac_cv_type_long_double+set}" = set; then
24317
echo $ECHO_N "(cached) $ECHO_C" >&6
24319
if test "$GCC" = yes; then
24320
ac_cv_type_long_double=yes
24322
cat >conftest.$ac_ext <<_ACEOF
24325
cat confdefs.h >>conftest.$ac_ext
24326
cat >>conftest.$ac_ext <<_ACEOF
24327
/* end confdefs.h. */
24328
/* The Stardent Vistra knows sizeof (long double), but does
24330
long double foo = 0.0L;
24334
static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
24335
sizeof (double) <= sizeof (long double))];
24342
rm -f conftest.$ac_objext
24343
if { (ac_try="$ac_compile"
24344
case "(($ac_try" in
24345
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24346
*) ac_try_echo=$ac_try;;
24348
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24349
(eval "$ac_compile") 2>conftest.er1
24351
grep -v '^ *+' conftest.er1 >conftest.err
24353
cat conftest.err >&5
24354
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24355
(exit $ac_status); } && {
24356
test -z "$ac_c_werror_flag" ||
24357
test ! -s conftest.err
24358
} && test -s conftest.$ac_objext; then
24359
ac_cv_type_long_double=yes
24361
echo "$as_me: failed program was:" >&5
24362
sed 's/^/| /' conftest.$ac_ext >&5
24364
ac_cv_type_long_double=no
24367
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24370
{ echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
24371
echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
24372
if test $ac_cv_type_long_double = yes; then
24374
cat >>confdefs.h <<\_ACEOF
24375
#define HAVE_LONG_DOUBLE 1
24382
{ echo "$as_me:$LINENO: checking for intmax_t" >&5
24383
echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
24384
if test "${ac_cv_type_intmax_t+set}" = set; then
24385
echo $ECHO_N "(cached) $ECHO_C" >&6
24387
cat >conftest.$ac_ext <<_ACEOF
24390
cat confdefs.h >>conftest.$ac_ext
24391
cat >>conftest.$ac_ext <<_ACEOF
24392
/* end confdefs.h. */
24393
$ac_includes_default
24394
typedef intmax_t ac__type_new_;
24398
if ((ac__type_new_ *) 0)
24400
if (sizeof (ac__type_new_))
24406
rm -f conftest.$ac_objext
24407
if { (ac_try="$ac_compile"
24408
case "(($ac_try" in
24409
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24410
*) ac_try_echo=$ac_try;;
24412
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24413
(eval "$ac_compile") 2>conftest.er1
24415
grep -v '^ *+' conftest.er1 >conftest.err
24417
cat conftest.err >&5
24418
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24419
(exit $ac_status); } && {
24420
test -z "$ac_c_werror_flag" ||
24421
test ! -s conftest.err
24422
} && test -s conftest.$ac_objext; then
24423
ac_cv_type_intmax_t=yes
24425
echo "$as_me: failed program was:" >&5
24426
sed 's/^/| /' conftest.$ac_ext >&5
24428
ac_cv_type_intmax_t=no
24431
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24433
{ echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
24434
echo "${ECHO_T}$ac_cv_type_intmax_t" >&6; }
24435
if test $ac_cv_type_intmax_t = yes; then
24437
cat >>confdefs.h <<\_ACEOF
24438
#define HAVE_INTMAX_T 1
24442
test $ac_cv_type_long_long_int = yes \
24443
&& ac_type='long long int' \
24444
|| ac_type='long int'
24446
cat >>confdefs.h <<_ACEOF
24447
#define intmax_t $ac_type
24455
{ echo "$as_me:$LINENO: checking for uintmax_t" >&5
24456
echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6; }
24457
if test "${ac_cv_type_uintmax_t+set}" = set; then
24458
echo $ECHO_N "(cached) $ECHO_C" >&6
24460
cat >conftest.$ac_ext <<_ACEOF
24463
cat confdefs.h >>conftest.$ac_ext
24464
cat >>conftest.$ac_ext <<_ACEOF
24465
/* end confdefs.h. */
24466
$ac_includes_default
24467
typedef uintmax_t ac__type_new_;
24471
if ((ac__type_new_ *) 0)
24473
if (sizeof (ac__type_new_))
24479
rm -f conftest.$ac_objext
24480
if { (ac_try="$ac_compile"
24481
case "(($ac_try" in
24482
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24483
*) ac_try_echo=$ac_try;;
24485
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24486
(eval "$ac_compile") 2>conftest.er1
24488
grep -v '^ *+' conftest.er1 >conftest.err
24490
cat conftest.err >&5
24491
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24492
(exit $ac_status); } && {
24493
test -z "$ac_c_werror_flag" ||
24494
test ! -s conftest.err
24495
} && test -s conftest.$ac_objext; then
24496
ac_cv_type_uintmax_t=yes
24498
echo "$as_me: failed program was:" >&5
24499
sed 's/^/| /' conftest.$ac_ext >&5
24501
ac_cv_type_uintmax_t=no
24504
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24506
{ echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
24507
echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6; }
24508
if test $ac_cv_type_uintmax_t = yes; then
24510
cat >>confdefs.h <<\_ACEOF
24511
#define HAVE_UINTMAX_T 1
24515
test $ac_cv_type_unsigned_long_long_int = yes \
24516
&& ac_type='unsigned long long int' \
24517
|| ac_type='unsigned long int'
24519
cat >>confdefs.h <<_ACEOF
24520
#define uintmax_t $ac_type
24526
{ echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
24527
echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
24528
if test "${ac_cv_type_ptrdiff_t+set}" = set; then
24529
echo $ECHO_N "(cached) $ECHO_C" >&6
24531
cat >conftest.$ac_ext <<_ACEOF
24534
cat confdefs.h >>conftest.$ac_ext
24535
cat >>conftest.$ac_ext <<_ACEOF
24536
/* end confdefs.h. */
24537
$ac_includes_default
24538
typedef ptrdiff_t ac__type_new_;
24542
if ((ac__type_new_ *) 0)
24544
if (sizeof (ac__type_new_))
24550
rm -f conftest.$ac_objext
24551
if { (ac_try="$ac_compile"
24552
case "(($ac_try" in
24553
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24554
*) ac_try_echo=$ac_try;;
24556
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24557
(eval "$ac_compile") 2>conftest.er1
24559
grep -v '^ *+' conftest.er1 >conftest.err
24561
cat conftest.err >&5
24562
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24563
(exit $ac_status); } && {
24564
test -z "$ac_c_werror_flag" ||
24565
test ! -s conftest.err
24566
} && test -s conftest.$ac_objext; then
24567
ac_cv_type_ptrdiff_t=yes
24569
echo "$as_me: failed program was:" >&5
24570
sed 's/^/| /' conftest.$ac_ext >&5
24572
ac_cv_type_ptrdiff_t=no
24575
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24577
{ echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
24578
echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
24579
if test $ac_cv_type_ptrdiff_t = yes; then
24581
cat >>confdefs.h <<_ACEOF
24582
#define HAVE_PTRDIFF_T 1
24588
{ echo "$as_me:$LINENO: checking for unsigned long" >&5
24589
echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
24590
if test "${ac_cv_type_unsigned_long+set}" = set; then
24591
echo $ECHO_N "(cached) $ECHO_C" >&6
24593
cat >conftest.$ac_ext <<_ACEOF
24596
cat confdefs.h >>conftest.$ac_ext
24597
cat >>conftest.$ac_ext <<_ACEOF
24598
/* end confdefs.h. */
24599
$ac_includes_default
24600
typedef unsigned long ac__type_new_;
24604
if ((ac__type_new_ *) 0)
24606
if (sizeof (ac__type_new_))
24612
rm -f conftest.$ac_objext
24613
if { (ac_try="$ac_compile"
24614
case "(($ac_try" in
24615
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24616
*) ac_try_echo=$ac_try;;
24618
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24619
(eval "$ac_compile") 2>conftest.er1
24621
grep -v '^ *+' conftest.er1 >conftest.err
24623
cat conftest.err >&5
24624
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24625
(exit $ac_status); } && {
24626
test -z "$ac_c_werror_flag" ||
24627
test ! -s conftest.err
24628
} && test -s conftest.$ac_objext; then
24629
ac_cv_type_unsigned_long=yes
24631
echo "$as_me: failed program was:" >&5
24632
sed 's/^/| /' conftest.$ac_ext >&5
24634
ac_cv_type_unsigned_long=no
24637
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24639
{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
24640
echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
24642
# The cast to long int works around a bug in the HP C Compiler
24643
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24644
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24645
# This bug is HP SR number 8606223364.
24646
{ echo "$as_me:$LINENO: checking size of unsigned long" >&5
24647
echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
24648
if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
24649
echo $ECHO_N "(cached) $ECHO_C" >&6
24651
if test "$cross_compiling" = yes; then
24652
# Depending upon the size, compute the lo and hi bounds.
24653
cat >conftest.$ac_ext <<_ACEOF
24656
cat confdefs.h >>conftest.$ac_ext
24657
cat >>conftest.$ac_ext <<_ACEOF
24658
/* end confdefs.h. */
24659
$ac_includes_default
24660
typedef unsigned long ac__type_sizeof_;
24664
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24671
rm -f conftest.$ac_objext
24672
if { (ac_try="$ac_compile"
24673
case "(($ac_try" in
24674
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24675
*) ac_try_echo=$ac_try;;
24677
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24678
(eval "$ac_compile") 2>conftest.er1
24680
grep -v '^ *+' conftest.er1 >conftest.err
24682
cat conftest.err >&5
24683
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24684
(exit $ac_status); } && {
24685
test -z "$ac_c_werror_flag" ||
24686
test ! -s conftest.err
24687
} && test -s conftest.$ac_objext; then
24690
cat >conftest.$ac_ext <<_ACEOF
24693
cat confdefs.h >>conftest.$ac_ext
24694
cat >>conftest.$ac_ext <<_ACEOF
24695
/* end confdefs.h. */
24696
$ac_includes_default
24697
typedef unsigned long ac__type_sizeof_;
24701
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24708
rm -f conftest.$ac_objext
24709
if { (ac_try="$ac_compile"
24710
case "(($ac_try" in
24711
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24712
*) ac_try_echo=$ac_try;;
24714
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24715
(eval "$ac_compile") 2>conftest.er1
24717
grep -v '^ *+' conftest.er1 >conftest.err
24719
cat conftest.err >&5
24720
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24721
(exit $ac_status); } && {
24722
test -z "$ac_c_werror_flag" ||
24723
test ! -s conftest.err
24724
} && test -s conftest.$ac_objext; then
24725
ac_hi=$ac_mid; break
24727
echo "$as_me: failed program was:" >&5
24728
sed 's/^/| /' conftest.$ac_ext >&5
24730
ac_lo=`expr $ac_mid + 1`
24731
if test $ac_lo -le $ac_mid; then
24735
ac_mid=`expr 2 '*' $ac_mid + 1`
24738
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24741
echo "$as_me: failed program was:" >&5
24742
sed 's/^/| /' conftest.$ac_ext >&5
24744
cat >conftest.$ac_ext <<_ACEOF
24747
cat confdefs.h >>conftest.$ac_ext
24748
cat >>conftest.$ac_ext <<_ACEOF
24749
/* end confdefs.h. */
24750
$ac_includes_default
24751
typedef unsigned long ac__type_sizeof_;
24755
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24762
rm -f conftest.$ac_objext
24763
if { (ac_try="$ac_compile"
24764
case "(($ac_try" in
24765
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24766
*) ac_try_echo=$ac_try;;
24768
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24769
(eval "$ac_compile") 2>conftest.er1
24771
grep -v '^ *+' conftest.er1 >conftest.err
24773
cat conftest.err >&5
24774
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24775
(exit $ac_status); } && {
24776
test -z "$ac_c_werror_flag" ||
24777
test ! -s conftest.err
24778
} && test -s conftest.$ac_objext; then
24781
cat >conftest.$ac_ext <<_ACEOF
24784
cat confdefs.h >>conftest.$ac_ext
24785
cat >>conftest.$ac_ext <<_ACEOF
24786
/* end confdefs.h. */
24787
$ac_includes_default
24788
typedef unsigned long ac__type_sizeof_;
24792
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24799
rm -f conftest.$ac_objext
24800
if { (ac_try="$ac_compile"
24801
case "(($ac_try" in
24802
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24803
*) ac_try_echo=$ac_try;;
24805
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24806
(eval "$ac_compile") 2>conftest.er1
24808
grep -v '^ *+' conftest.er1 >conftest.err
24810
cat conftest.err >&5
24811
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24812
(exit $ac_status); } && {
24813
test -z "$ac_c_werror_flag" ||
24814
test ! -s conftest.err
24815
} && test -s conftest.$ac_objext; then
24816
ac_lo=$ac_mid; break
24818
echo "$as_me: failed program was:" >&5
24819
sed 's/^/| /' conftest.$ac_ext >&5
24821
ac_hi=`expr '(' $ac_mid ')' - 1`
24822
if test $ac_mid -le $ac_hi; then
24826
ac_mid=`expr 2 '*' $ac_mid`
24829
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24832
echo "$as_me: failed program was:" >&5
24833
sed 's/^/| /' conftest.$ac_ext >&5
24838
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24841
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24842
# Binary search between lo and hi bounds.
24843
while test "x$ac_lo" != "x$ac_hi"; do
24844
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24845
cat >conftest.$ac_ext <<_ACEOF
24848
cat confdefs.h >>conftest.$ac_ext
24849
cat >>conftest.$ac_ext <<_ACEOF
24850
/* end confdefs.h. */
24851
$ac_includes_default
24852
typedef unsigned long ac__type_sizeof_;
24856
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24863
rm -f conftest.$ac_objext
24864
if { (ac_try="$ac_compile"
24865
case "(($ac_try" in
24866
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24867
*) ac_try_echo=$ac_try;;
24869
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24870
(eval "$ac_compile") 2>conftest.er1
24872
grep -v '^ *+' conftest.er1 >conftest.err
24874
cat conftest.err >&5
24875
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24876
(exit $ac_status); } && {
24877
test -z "$ac_c_werror_flag" ||
24878
test ! -s conftest.err
24879
} && test -s conftest.$ac_objext; then
24882
echo "$as_me: failed program was:" >&5
24883
sed 's/^/| /' conftest.$ac_ext >&5
24885
ac_lo=`expr '(' $ac_mid ')' + 1`
24888
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24891
?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
24892
'') if test "$ac_cv_type_unsigned_long" = yes; then
24893
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
24894
See \`config.log' for more details." >&5
24895
echo "$as_me: error: cannot compute sizeof (unsigned long)
24896
See \`config.log' for more details." >&2;}
24897
{ (exit 77); exit 77; }; }
24899
ac_cv_sizeof_unsigned_long=0
24903
cat >conftest.$ac_ext <<_ACEOF
24906
cat confdefs.h >>conftest.$ac_ext
24907
cat >>conftest.$ac_ext <<_ACEOF
24908
/* end confdefs.h. */
24909
$ac_includes_default
24910
typedef unsigned long ac__type_sizeof_;
24911
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24912
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24914
#include <stdlib.h>
24919
FILE *f = fopen ("conftest.val", "w");
24922
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24924
long int i = longval ();
24925
if (i != ((long int) (sizeof (ac__type_sizeof_))))
24927
fprintf (f, "%ld\n", i);
24931
unsigned long int i = ulongval ();
24932
if (i != ((long int) (sizeof (ac__type_sizeof_))))
24934
fprintf (f, "%lu\n", i);
24936
return ferror (f) || fclose (f) != 0;
24942
rm -f conftest$ac_exeext
24943
if { (ac_try="$ac_link"
24944
case "(($ac_try" in
24945
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24946
*) ac_try_echo=$ac_try;;
24948
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24949
(eval "$ac_link") 2>&5
24951
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24952
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24953
{ (case "(($ac_try" in
24954
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24955
*) ac_try_echo=$ac_try;;
24957
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24958
(eval "$ac_try") 2>&5
24960
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24961
(exit $ac_status); }; }; then
24962
ac_cv_sizeof_unsigned_long=`cat conftest.val`
24964
echo "$as_me: program exited with status $ac_status" >&5
24965
echo "$as_me: failed program was:" >&5
24966
sed 's/^/| /' conftest.$ac_ext >&5
24968
( exit $ac_status )
24969
if test "$ac_cv_type_unsigned_long" = yes; then
24970
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
24971
See \`config.log' for more details." >&5
24972
echo "$as_me: error: cannot compute sizeof (unsigned long)
24973
See \`config.log' for more details." >&2;}
24974
{ (exit 77); exit 77; }; }
24976
ac_cv_sizeof_unsigned_long=0
24979
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24983
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
24984
echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
24988
cat >>confdefs.h <<_ACEOF
24989
#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
24993
{ echo "$as_me:$LINENO: checking for void *" >&5
24994
echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
24995
if test "${ac_cv_type_void_p+set}" = set; then
24996
echo $ECHO_N "(cached) $ECHO_C" >&6
24998
cat >conftest.$ac_ext <<_ACEOF
25001
cat confdefs.h >>conftest.$ac_ext
25002
cat >>conftest.$ac_ext <<_ACEOF
25003
/* end confdefs.h. */
25004
$ac_includes_default
25005
typedef void * ac__type_new_;
25009
if ((ac__type_new_ *) 0)
25011
if (sizeof (ac__type_new_))
25017
rm -f conftest.$ac_objext
25018
if { (ac_try="$ac_compile"
25019
case "(($ac_try" in
25020
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25021
*) ac_try_echo=$ac_try;;
25023
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25024
(eval "$ac_compile") 2>conftest.er1
25026
grep -v '^ *+' conftest.er1 >conftest.err
25028
cat conftest.err >&5
25029
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25030
(exit $ac_status); } && {
25031
test -z "$ac_c_werror_flag" ||
25032
test ! -s conftest.err
25033
} && test -s conftest.$ac_objext; then
25034
ac_cv_type_void_p=yes
25036
echo "$as_me: failed program was:" >&5
25037
sed 's/^/| /' conftest.$ac_ext >&5
25039
ac_cv_type_void_p=no
25042
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25044
{ echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
25045
echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
25047
# The cast to long int works around a bug in the HP C Compiler
25048
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25049
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25050
# This bug is HP SR number 8606223364.
25051
{ echo "$as_me:$LINENO: checking size of void *" >&5
25052
echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
25053
if test "${ac_cv_sizeof_void_p+set}" = set; then
25054
echo $ECHO_N "(cached) $ECHO_C" >&6
25056
if test "$cross_compiling" = yes; then
25057
# Depending upon the size, compute the lo and hi bounds.
25058
cat >conftest.$ac_ext <<_ACEOF
25061
cat confdefs.h >>conftest.$ac_ext
25062
cat >>conftest.$ac_ext <<_ACEOF
25063
/* end confdefs.h. */
25064
$ac_includes_default
25065
typedef void * ac__type_sizeof_;
25069
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25076
rm -f conftest.$ac_objext
25077
if { (ac_try="$ac_compile"
25078
case "(($ac_try" in
25079
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25080
*) ac_try_echo=$ac_try;;
25082
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25083
(eval "$ac_compile") 2>conftest.er1
25085
grep -v '^ *+' conftest.er1 >conftest.err
25087
cat conftest.err >&5
25088
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25089
(exit $ac_status); } && {
25090
test -z "$ac_c_werror_flag" ||
25091
test ! -s conftest.err
25092
} && test -s conftest.$ac_objext; then
25095
cat >conftest.$ac_ext <<_ACEOF
25098
cat confdefs.h >>conftest.$ac_ext
25099
cat >>conftest.$ac_ext <<_ACEOF
25100
/* end confdefs.h. */
25101
$ac_includes_default
25102
typedef void * ac__type_sizeof_;
25106
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25113
rm -f conftest.$ac_objext
25114
if { (ac_try="$ac_compile"
25115
case "(($ac_try" in
25116
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25117
*) ac_try_echo=$ac_try;;
25119
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25120
(eval "$ac_compile") 2>conftest.er1
25122
grep -v '^ *+' conftest.er1 >conftest.err
25124
cat conftest.err >&5
25125
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25126
(exit $ac_status); } && {
25127
test -z "$ac_c_werror_flag" ||
25128
test ! -s conftest.err
25129
} && test -s conftest.$ac_objext; then
25130
ac_hi=$ac_mid; break
25132
echo "$as_me: failed program was:" >&5
25133
sed 's/^/| /' conftest.$ac_ext >&5
25135
ac_lo=`expr $ac_mid + 1`
25136
if test $ac_lo -le $ac_mid; then
25140
ac_mid=`expr 2 '*' $ac_mid + 1`
25143
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25146
echo "$as_me: failed program was:" >&5
25147
sed 's/^/| /' conftest.$ac_ext >&5
25149
cat >conftest.$ac_ext <<_ACEOF
25152
cat confdefs.h >>conftest.$ac_ext
25153
cat >>conftest.$ac_ext <<_ACEOF
25154
/* end confdefs.h. */
25155
$ac_includes_default
25156
typedef void * ac__type_sizeof_;
25160
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25167
rm -f conftest.$ac_objext
25168
if { (ac_try="$ac_compile"
25169
case "(($ac_try" in
25170
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25171
*) ac_try_echo=$ac_try;;
25173
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25174
(eval "$ac_compile") 2>conftest.er1
25176
grep -v '^ *+' conftest.er1 >conftest.err
25178
cat conftest.err >&5
25179
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25180
(exit $ac_status); } && {
25181
test -z "$ac_c_werror_flag" ||
25182
test ! -s conftest.err
25183
} && test -s conftest.$ac_objext; then
25186
cat >conftest.$ac_ext <<_ACEOF
25189
cat confdefs.h >>conftest.$ac_ext
25190
cat >>conftest.$ac_ext <<_ACEOF
25191
/* end confdefs.h. */
25192
$ac_includes_default
25193
typedef void * ac__type_sizeof_;
25197
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25204
rm -f conftest.$ac_objext
25205
if { (ac_try="$ac_compile"
25206
case "(($ac_try" in
25207
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25208
*) ac_try_echo=$ac_try;;
25210
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25211
(eval "$ac_compile") 2>conftest.er1
25213
grep -v '^ *+' conftest.er1 >conftest.err
25215
cat conftest.err >&5
25216
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25217
(exit $ac_status); } && {
25218
test -z "$ac_c_werror_flag" ||
25219
test ! -s conftest.err
25220
} && test -s conftest.$ac_objext; then
25221
ac_lo=$ac_mid; break
25223
echo "$as_me: failed program was:" >&5
25224
sed 's/^/| /' conftest.$ac_ext >&5
25226
ac_hi=`expr '(' $ac_mid ')' - 1`
25227
if test $ac_mid -le $ac_hi; then
25231
ac_mid=`expr 2 '*' $ac_mid`
25234
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25237
echo "$as_me: failed program was:" >&5
25238
sed 's/^/| /' conftest.$ac_ext >&5
25243
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25246
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25247
# Binary search between lo and hi bounds.
25248
while test "x$ac_lo" != "x$ac_hi"; do
25249
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25250
cat >conftest.$ac_ext <<_ACEOF
25253
cat confdefs.h >>conftest.$ac_ext
25254
cat >>conftest.$ac_ext <<_ACEOF
25255
/* end confdefs.h. */
25256
$ac_includes_default
25257
typedef void * ac__type_sizeof_;
25261
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25268
rm -f conftest.$ac_objext
25269
if { (ac_try="$ac_compile"
25270
case "(($ac_try" in
25271
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25272
*) ac_try_echo=$ac_try;;
25274
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25275
(eval "$ac_compile") 2>conftest.er1
25277
grep -v '^ *+' conftest.er1 >conftest.err
25279
cat conftest.err >&5
25280
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25281
(exit $ac_status); } && {
25282
test -z "$ac_c_werror_flag" ||
25283
test ! -s conftest.err
25284
} && test -s conftest.$ac_objext; then
25287
echo "$as_me: failed program was:" >&5
25288
sed 's/^/| /' conftest.$ac_ext >&5
25290
ac_lo=`expr '(' $ac_mid ')' + 1`
25293
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25296
?*) ac_cv_sizeof_void_p=$ac_lo;;
25297
'') if test "$ac_cv_type_void_p" = yes; then
25298
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
25299
See \`config.log' for more details." >&5
25300
echo "$as_me: error: cannot compute sizeof (void *)
25301
See \`config.log' for more details." >&2;}
25302
{ (exit 77); exit 77; }; }
25304
ac_cv_sizeof_void_p=0
25308
cat >conftest.$ac_ext <<_ACEOF
25311
cat confdefs.h >>conftest.$ac_ext
25312
cat >>conftest.$ac_ext <<_ACEOF
25313
/* end confdefs.h. */
25314
$ac_includes_default
25315
typedef void * ac__type_sizeof_;
25316
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25317
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25319
#include <stdlib.h>
25324
FILE *f = fopen ("conftest.val", "w");
25327
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25329
long int i = longval ();
25330
if (i != ((long int) (sizeof (ac__type_sizeof_))))
25332
fprintf (f, "%ld\n", i);
25336
unsigned long int i = ulongval ();
25337
if (i != ((long int) (sizeof (ac__type_sizeof_))))
25339
fprintf (f, "%lu\n", i);
25341
return ferror (f) || fclose (f) != 0;
25347
rm -f conftest$ac_exeext
25348
if { (ac_try="$ac_link"
25349
case "(($ac_try" in
25350
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25351
*) ac_try_echo=$ac_try;;
25353
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25354
(eval "$ac_link") 2>&5
25356
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25357
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25358
{ (case "(($ac_try" in
25359
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25360
*) ac_try_echo=$ac_try;;
25362
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25363
(eval "$ac_try") 2>&5
25365
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25366
(exit $ac_status); }; }; then
25367
ac_cv_sizeof_void_p=`cat conftest.val`
25369
echo "$as_me: program exited with status $ac_status" >&5
25370
echo "$as_me: failed program was:" >&5
25371
sed 's/^/| /' conftest.$ac_ext >&5
25373
( exit $ac_status )
25374
if test "$ac_cv_type_void_p" = yes; then
25375
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
25376
See \`config.log' for more details." >&5
25377
echo "$as_me: error: cannot compute sizeof (void *)
25378
See \`config.log' for more details." >&2;}
25379
{ (exit 77); exit 77; }; }
25381
ac_cv_sizeof_void_p=0
25384
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25388
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
25389
echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
25393
cat >>confdefs.h <<_ACEOF
25394
#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
25398
{ echo "$as_me:$LINENO: checking for nl_langinfo and THOUSANDS_SEP" >&5
25399
echo $ECHO_N "checking for nl_langinfo and THOUSANDS_SEP... $ECHO_C" >&6; }
25400
if test "${estream_cv_langinfo_thousands_sep+set}" = set; then
25401
echo $ECHO_N "(cached) $ECHO_C" >&6
25403
cat >conftest.$ac_ext <<_ACEOF
25406
cat confdefs.h >>conftest.$ac_ext
25407
cat >>conftest.$ac_ext <<_ACEOF
25408
/* end confdefs.h. */
25409
#include <langinfo.h>
25413
char* cs = nl_langinfo(THOUSANDS_SEP); return !cs;
25418
rm -f conftest.$ac_objext conftest$ac_exeext
25419
if { (ac_try="$ac_link"
25420
case "(($ac_try" in
25421
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25422
*) ac_try_echo=$ac_try;;
25424
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25425
(eval "$ac_link") 2>conftest.er1
25427
grep -v '^ *+' conftest.er1 >conftest.err
25429
cat conftest.err >&5
25430
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25431
(exit $ac_status); } && {
25432
test -z "$ac_c_werror_flag" ||
25433
test ! -s conftest.err
25434
} && test -s conftest$ac_exeext &&
25435
$as_test_x conftest$ac_exeext; then
25436
estream_cv_langinfo_thousands_sep=yes
25438
echo "$as_me: failed program was:" >&5
25439
sed 's/^/| /' conftest.$ac_ext >&5
25441
estream_cv_langinfo_thousands_sep=no
25444
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25445
conftest$ac_exeext conftest.$ac_ext
25448
{ echo "$as_me:$LINENO: result: $estream_cv_langinfo_thousands_sep" >&5
25449
echo "${ECHO_T}$estream_cv_langinfo_thousands_sep" >&6; }
25450
if test $estream_cv_langinfo_thousands_sep = yes; then
25452
cat >>confdefs.h <<\_ACEOF
25453
#define HAVE_LANGINFO_THOUSANDS_SEP 1
25460
{ echo "$as_me:$LINENO: checking system features for estream" >&5
25461
echo "$as_me: checking system features for estream" >&6;}
26685
26490
if $ac_need_defaults; then
26686
26491
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26687
26492
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26688
test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
26689
26493
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26692
26496
# Have a temporary directory for convenience. Make it in the build tree
26693
# simply because there is no reason to put it here, and in addition,
26497
# simply because there is no reason against having it here, and in addition,
26694
26498
# creating and moving files from /tmp can sometimes cause problems.
26695
# Create a temporary directory, and hook for its removal unless debugging.
26499
# Hook for its removal unless debugging.
26500
# Note that there is a small window in which the directory will not be cleaned:
26501
# after its creation but before its name has been assigned to `$tmp'.
26698
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
26505
trap 'exit_status=$?
26506
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26699
26508
trap '{ (exit 1); exit 1; }' 1 2 13 15
26702
26510
# Create a (secure) tmp directory for tmp files.
26705
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
26513
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26706
26514
test -n "$tmp" && test -d "$tmp"
26709
tmp=./confstat$$-$RANDOM
26710
(umask 077 && mkdir $tmp)
26517
tmp=./conf$$-$RANDOM
26518
(umask 077 && mkdir "$tmp")
26713
26521
echo "$me: cannot create a temporary directory in ." >&2
26714
26522
{ (exit 1); exit 1; }
26719
cat >>$CONFIG_STATUS <<_ACEOF
26722
# CONFIG_FILES section.
26526
# Set up the sed scripts for CONFIG_FILES section.
26725
26529
# No need to generate the scripts if there are no CONFIG_FILES.
26726
26530
# This happens for instance when ./config.status config.h
26727
if test -n "\$CONFIG_FILES"; then
26728
# Protect against being on the right side of a sed subst in config.status.
26729
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
26730
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
26731
s,@SHELL@,$SHELL,;t t
26732
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
26733
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
26734
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
26735
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
26736
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
26737
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
26738
s,@exec_prefix@,$exec_prefix,;t t
26739
s,@prefix@,$prefix,;t t
26740
s,@program_transform_name@,$program_transform_name,;t t
26741
s,@bindir@,$bindir,;t t
26742
s,@sbindir@,$sbindir,;t t
26743
s,@libexecdir@,$libexecdir,;t t
26744
s,@datadir@,$datadir,;t t
26745
s,@sysconfdir@,$sysconfdir,;t t
26746
s,@sharedstatedir@,$sharedstatedir,;t t
26747
s,@localstatedir@,$localstatedir,;t t
26748
s,@libdir@,$libdir,;t t
26749
s,@includedir@,$includedir,;t t
26750
s,@oldincludedir@,$oldincludedir,;t t
26751
s,@infodir@,$infodir,;t t
26752
s,@mandir@,$mandir,;t t
26753
s,@build_alias@,$build_alias,;t t
26754
s,@host_alias@,$host_alias,;t t
26755
s,@target_alias@,$target_alias,;t t
26756
s,@DEFS@,$DEFS,;t t
26757
s,@ECHO_C@,$ECHO_C,;t t
26758
s,@ECHO_N@,$ECHO_N,;t t
26759
s,@ECHO_T@,$ECHO_T,;t t
26760
s,@LIBS@,$LIBS,;t t
26761
s,@build@,$build,;t t
26762
s,@build_cpu@,$build_cpu,;t t
26763
s,@build_vendor@,$build_vendor,;t t
26764
s,@build_os@,$build_os,;t t
26765
s,@host@,$host,;t t
26766
s,@host_cpu@,$host_cpu,;t t
26767
s,@host_vendor@,$host_vendor,;t t
26768
s,@host_os@,$host_os,;t t
26769
s,@target@,$target,;t t
26770
s,@target_cpu@,$target_cpu,;t t
26771
s,@target_vendor@,$target_vendor,;t t
26772
s,@target_os@,$target_os,;t t
26773
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
26774
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
26775
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
26776
s,@CYGPATH_W@,$CYGPATH_W,;t t
26777
s,@PACKAGE@,$PACKAGE,;t t
26778
s,@VERSION@,$VERSION,;t t
26779
s,@ACLOCAL@,$ACLOCAL,;t t
26780
s,@AUTOCONF@,$AUTOCONF,;t t
26781
s,@AUTOMAKE@,$AUTOMAKE,;t t
26782
s,@AUTOHEADER@,$AUTOHEADER,;t t
26783
s,@MAKEINFO@,$MAKEINFO,;t t
26784
s,@install_sh@,$install_sh,;t t
26785
s,@STRIP@,$STRIP,;t t
26786
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
26787
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
26788
s,@mkdir_p@,$mkdir_p,;t t
26790
s,@SET_MAKE@,$SET_MAKE,;t t
26791
s,@am__leading_dot@,$am__leading_dot,;t t
26792
s,@AMTAR@,$AMTAR,;t t
26793
s,@am__tar@,$am__tar,;t t
26794
s,@am__untar@,$am__untar,;t t
26795
s,@PACKAGE_GT@,$PACKAGE_GT,;t t
26796
s,@GNUPG_AGENT_PGM@,$GNUPG_AGENT_PGM,;t t
26797
s,@GNUPG_AGENT_PGM_TRUE@,$GNUPG_AGENT_PGM_TRUE,;t t
26798
s,@GNUPG_AGENT_PGM_FALSE@,$GNUPG_AGENT_PGM_FALSE,;t t
26799
s,@GNUPG_PINENTRY_PGM@,$GNUPG_PINENTRY_PGM,;t t
26800
s,@GNUPG_PINENTRY_PGM_TRUE@,$GNUPG_PINENTRY_PGM_TRUE,;t t
26801
s,@GNUPG_PINENTRY_PGM_FALSE@,$GNUPG_PINENTRY_PGM_FALSE,;t t
26802
s,@GNUPG_SCDAEMON_PGM@,$GNUPG_SCDAEMON_PGM,;t t
26803
s,@GNUPG_SCDAEMON_PGM_TRUE@,$GNUPG_SCDAEMON_PGM_TRUE,;t t
26804
s,@GNUPG_SCDAEMON_PGM_FALSE@,$GNUPG_SCDAEMON_PGM_FALSE,;t t
26805
s,@GNUPG_DIRMNGR_PGM@,$GNUPG_DIRMNGR_PGM,;t t
26806
s,@GNUPG_DIRMNGR_PGM_TRUE@,$GNUPG_DIRMNGR_PGM_TRUE,;t t
26807
s,@GNUPG_DIRMNGR_PGM_FALSE@,$GNUPG_DIRMNGR_PGM_FALSE,;t t
26808
s,@GNUPG_PROTECT_TOOL_PGM@,$GNUPG_PROTECT_TOOL_PGM,;t t
26809
s,@GNUPG_PROTECT_TOOL_PGM_TRUE@,$GNUPG_PROTECT_TOOL_PGM_TRUE,;t t
26810
s,@GNUPG_PROTECT_TOOL_PGM_FALSE@,$GNUPG_PROTECT_TOOL_PGM_FALSE,;t t
26811
s,@GPGKEYS_HKP@,$GPGKEYS_HKP,;t t
26812
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
26813
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
26814
s,@MAINT@,$MAINT,;t t
26816
s,@CFLAGS@,$CFLAGS,;t t
26817
s,@LDFLAGS@,$LDFLAGS,;t t
26818
s,@CPPFLAGS@,$CPPFLAGS,;t t
26819
s,@ac_ct_CC@,$ac_ct_CC,;t t
26820
s,@EXEEXT@,$EXEEXT,;t t
26821
s,@OBJEXT@,$OBJEXT,;t t
26822
s,@DEPDIR@,$DEPDIR,;t t
26823
s,@am__include@,$am__include,;t t
26824
s,@am__quote@,$am__quote,;t t
26825
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
26826
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
26827
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
26828
s,@CCDEPMODE@,$CCDEPMODE,;t t
26829
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
26830
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
26832
s,@LN_S@,$LN_S,;t t
26833
s,@RANLIB@,$RANLIB,;t t
26834
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
26836
s,@ac_ct_AR@,$ac_ct_AR,;t t
26837
s,@PERL@,$PERL,;t t
26838
s,@DOCBOOK_TO_MAN@,$DOCBOOK_TO_MAN,;t t
26839
s,@HAVE_DOCBOOK_TO_MAN_TRUE@,$HAVE_DOCBOOK_TO_MAN_TRUE,;t t
26840
s,@HAVE_DOCBOOK_TO_MAN_FALSE@,$HAVE_DOCBOOK_TO_MAN_FALSE,;t t
26841
s,@FAQPROG@,$FAQPROG,;t t
26842
s,@WORKING_FAQPROG_TRUE@,$WORKING_FAQPROG_TRUE,;t t
26843
s,@WORKING_FAQPROG_FALSE@,$WORKING_FAQPROG_FALSE,;t t
26844
s,@DOCBOOK_TO_TEXI@,$DOCBOOK_TO_TEXI,;t t
26845
s,@HAVE_DOCBOOK_TO_TEXI_TRUE@,$HAVE_DOCBOOK_TO_TEXI_TRUE,;t t
26846
s,@HAVE_DOCBOOK_TO_TEXI_FALSE@,$HAVE_DOCBOOK_TO_TEXI_FALSE,;t t
26847
s,@HAVE_DOSISH_SYSTEM_TRUE@,$HAVE_DOSISH_SYSTEM_TRUE,;t t
26848
s,@HAVE_DOSISH_SYSTEM_FALSE@,$HAVE_DOSISH_SYSTEM_FALSE,;t t
26849
s,@HAVE_W32_SYSTEM_TRUE@,$HAVE_W32_SYSTEM_TRUE,;t t
26850
s,@HAVE_W32_SYSTEM_FALSE@,$HAVE_W32_SYSTEM_FALSE,;t t
26851
s,@GPG_ERROR_CONFIG@,$GPG_ERROR_CONFIG,;t t
26852
s,@GPG_ERROR_CFLAGS@,$GPG_ERROR_CFLAGS,;t t
26853
s,@GPG_ERROR_LIBS@,$GPG_ERROR_LIBS,;t t
26854
s,@LIBGCRYPT_CONFIG@,$LIBGCRYPT_CONFIG,;t t
26855
s,@LIBGCRYPT_CFLAGS@,$LIBGCRYPT_CFLAGS,;t t
26856
s,@LIBGCRYPT_LIBS@,$LIBGCRYPT_LIBS,;t t
26857
s,@LIBASSUAN_CONFIG@,$LIBASSUAN_CONFIG,;t t
26858
s,@LIBASSUAN_CFLAGS@,$LIBASSUAN_CFLAGS,;t t
26859
s,@LIBASSUAN_LIBS@,$LIBASSUAN_LIBS,;t t
26860
s,@KSBA_CONFIG@,$KSBA_CONFIG,;t t
26861
s,@KSBA_CFLAGS@,$KSBA_CFLAGS,;t t
26862
s,@KSBA_LIBS@,$KSBA_LIBS,;t t
26863
s,@LIBUSB_LIBS@,$LIBUSB_LIBS,;t t
26864
s,@DL_LIBS@,$DL_LIBS,;t t
26865
s,@LIBUTIL_LIBS@,$LIBUTIL_LIBS,;t t
26866
s,@SHRED@,$SHRED,;t t
26867
s,@PTH_CONFIG@,$PTH_CONFIG,;t t
26868
s,@PTH_CFLAGS@,$PTH_CFLAGS,;t t
26869
s,@PTH_LIBS@,$PTH_LIBS,;t t
26870
s,@SRVLIBS@,$SRVLIBS,;t t
26871
s,@GPGKEYS_LDAP@,$GPGKEYS_LDAP,;t t
26872
s,@LDAPLIBS@,$LDAPLIBS,;t t
26873
s,@SENDMAIL@,$SENDMAIL,;t t
26874
s,@GPGKEYS_MAILTO@,$GPGKEYS_MAILTO,;t t
26875
s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
26876
s,@USE_NLS@,$USE_NLS,;t t
26877
s,@MSGFMT@,$MSGFMT,;t t
26878
s,@GMSGFMT@,$GMSGFMT,;t t
26879
s,@XGETTEXT@,$XGETTEXT,;t t
26880
s,@MSGMERGE@,$MSGMERGE,;t t
26881
s,@EGREP@,$EGREP,;t t
26882
s,@ALLOCA@,$ALLOCA,;t t
26883
s,@GLIBC21@,$GLIBC21,;t t
26884
s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
26885
s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
26886
s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
26887
s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
26888
s,@LIBICONV@,$LIBICONV,;t t
26889
s,@LTLIBICONV@,$LTLIBICONV,;t t
26890
s,@INTLBISON@,$INTLBISON,;t t
26891
s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
26892
s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
26893
s,@CATOBJEXT@,$CATOBJEXT,;t t
26894
s,@DATADIRNAME@,$DATADIRNAME,;t t
26895
s,@INSTOBJEXT@,$INSTOBJEXT,;t t
26896
s,@GENCAT@,$GENCAT,;t t
26897
s,@INTLOBJS@,$INTLOBJS,;t t
26898
s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
26899
s,@INTLLIBS@,$INTLLIBS,;t t
26900
s,@LIBINTL@,$LIBINTL,;t t
26901
s,@LTLIBINTL@,$LTLIBINTL,;t t
26902
s,@POSUB@,$POSUB,;t t
26903
s,@SHA512_O@,$SHA512_O,;t t
26904
s,@GL_COND_LIBTOOL_TRUE@,$GL_COND_LIBTOOL_TRUE,;t t
26905
s,@GL_COND_LIBTOOL_FALSE@,$GL_COND_LIBTOOL_FALSE,;t t
26906
s,@ALLOCA_H@,$ALLOCA_H,;t t
26907
s,@LIBOBJS@,$LIBOBJS,;t t
26908
s,@EOVERFLOW@,$EOVERFLOW,;t t
26909
s,@CAPLIBS@,$CAPLIBS,;t t
26910
s,@REGEX_O@,$REGEX_O,;t t
26911
s,@RUN_PKITS_TESTS_TRUE@,$RUN_PKITS_TESTS_TRUE,;t t
26912
s,@RUN_PKITS_TESTS_FALSE@,$RUN_PKITS_TESTS_FALSE,;t t
26913
s,@CROSS_COMPILING_TRUE@,$CROSS_COMPILING_TRUE,;t t
26914
s,@CROSS_COMPILING_FALSE@,$CROSS_COMPILING_FALSE,;t t
26915
s,@NETLIBS@,$NETLIBS,;t t
26916
s,@W32LIBS@,$W32LIBS,;t t
26917
s,@BUILD_GPG_TRUE@,$BUILD_GPG_TRUE,;t t
26918
s,@BUILD_GPG_FALSE@,$BUILD_GPG_FALSE,;t t
26919
s,@BUILD_GPGSM_TRUE@,$BUILD_GPGSM_TRUE,;t t
26920
s,@BUILD_GPGSM_FALSE@,$BUILD_GPGSM_FALSE,;t t
26921
s,@BUILD_AGENT_TRUE@,$BUILD_AGENT_TRUE,;t t
26922
s,@BUILD_AGENT_FALSE@,$BUILD_AGENT_FALSE,;t t
26923
s,@BUILD_SCDAEMON_TRUE@,$BUILD_SCDAEMON_TRUE,;t t
26924
s,@BUILD_SCDAEMON_FALSE@,$BUILD_SCDAEMON_FALSE,;t t
26925
s,@BUILD_SYMCRYPTRUN_TRUE@,$BUILD_SYMCRYPTRUN_TRUE,;t t
26926
s,@BUILD_SYMCRYPTRUN_FALSE@,$BUILD_SYMCRYPTRUN_FALSE,;t t
26927
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
26932
cat >>$CONFIG_STATUS <<\_ACEOF
26933
# Split the substitutions into bite-sized pieces for seds with
26934
# small command number limits, like on Digital OSF/1 and HP-UX.
26935
ac_max_sed_lines=48
26936
ac_sed_frag=1 # Number of current file.
26937
ac_beg=1 # First line for current file.
26938
ac_end=$ac_max_sed_lines # Line after last line for current file.
26941
while $ac_more_lines; do
26942
if test $ac_beg -gt 1; then
26943
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26945
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26947
if test ! -s $tmp/subs.frag; then
26948
ac_more_lines=false
26950
# The purpose of the label and of the branching condition is to
26951
# speed up the sed processing (if there are no `@' at all, there
26952
# is no need to browse any of the substitutions).
26953
# These are the two extra sed commands mentioned above.
26955
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
26956
if test -z "$ac_sed_cmds"; then
26957
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
26959
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
26961
ac_sed_frag=`expr $ac_sed_frag + 1`
26963
ac_end=`expr $ac_end + $ac_max_sed_lines`
26966
if test -z "$ac_sed_cmds"; then
26531
if test -n "$CONFIG_FILES"; then
26538
for ac_last_try in false false false false false :; do
26539
cat >conf$$subs.sed <<_ACEOF
26540
SHELL!$SHELL$ac_delim
26541
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26542
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26543
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26544
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26545
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26546
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26547
exec_prefix!$exec_prefix$ac_delim
26548
prefix!$prefix$ac_delim
26549
program_transform_name!$program_transform_name$ac_delim
26550
bindir!$bindir$ac_delim
26551
sbindir!$sbindir$ac_delim
26552
libexecdir!$libexecdir$ac_delim
26553
datarootdir!$datarootdir$ac_delim
26554
datadir!$datadir$ac_delim
26555
sysconfdir!$sysconfdir$ac_delim
26556
sharedstatedir!$sharedstatedir$ac_delim
26557
localstatedir!$localstatedir$ac_delim
26558
includedir!$includedir$ac_delim
26559
oldincludedir!$oldincludedir$ac_delim
26560
docdir!$docdir$ac_delim
26561
infodir!$infodir$ac_delim
26562
htmldir!$htmldir$ac_delim
26563
dvidir!$dvidir$ac_delim
26564
pdfdir!$pdfdir$ac_delim
26565
psdir!$psdir$ac_delim
26566
libdir!$libdir$ac_delim
26567
localedir!$localedir$ac_delim
26568
mandir!$mandir$ac_delim
26569
DEFS!$DEFS$ac_delim
26570
ECHO_C!$ECHO_C$ac_delim
26571
ECHO_N!$ECHO_N$ac_delim
26572
ECHO_T!$ECHO_T$ac_delim
26573
LIBS!$LIBS$ac_delim
26574
build_alias!$build_alias$ac_delim
26575
host_alias!$host_alias$ac_delim
26576
target_alias!$target_alias$ac_delim
26577
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
26578
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
26579
INSTALL_DATA!$INSTALL_DATA$ac_delim
26580
am__isrc!$am__isrc$ac_delim
26581
CYGPATH_W!$CYGPATH_W$ac_delim
26582
PACKAGE!$PACKAGE$ac_delim
26583
VERSION!$VERSION$ac_delim
26584
ACLOCAL!$ACLOCAL$ac_delim
26585
AUTOCONF!$AUTOCONF$ac_delim
26586
AUTOMAKE!$AUTOMAKE$ac_delim
26587
AUTOHEADER!$AUTOHEADER$ac_delim
26588
MAKEINFO!$MAKEINFO$ac_delim
26589
install_sh!$install_sh$ac_delim
26590
STRIP!$STRIP$ac_delim
26591
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
26592
mkdir_p!$mkdir_p$ac_delim
26594
SET_MAKE!$SET_MAKE$ac_delim
26595
am__leading_dot!$am__leading_dot$ac_delim
26596
AMTAR!$AMTAR$ac_delim
26597
am__tar!$am__tar$ac_delim
26598
am__untar!$am__untar$ac_delim
26599
build!$build$ac_delim
26600
build_cpu!$build_cpu$ac_delim
26601
build_vendor!$build_vendor$ac_delim
26602
build_os!$build_os$ac_delim
26603
host!$host$ac_delim
26604
host_cpu!$host_cpu$ac_delim
26605
host_vendor!$host_vendor$ac_delim
26606
host_os!$host_os$ac_delim
26607
PACKAGE_GT!$PACKAGE_GT$ac_delim
26608
GNUPG_AGENT_PGM!$GNUPG_AGENT_PGM$ac_delim
26609
GNUPG_AGENT_PGM_TRUE!$GNUPG_AGENT_PGM_TRUE$ac_delim
26610
GNUPG_AGENT_PGM_FALSE!$GNUPG_AGENT_PGM_FALSE$ac_delim
26611
GNUPG_PINENTRY_PGM!$GNUPG_PINENTRY_PGM$ac_delim
26612
GNUPG_PINENTRY_PGM_TRUE!$GNUPG_PINENTRY_PGM_TRUE$ac_delim
26613
GNUPG_PINENTRY_PGM_FALSE!$GNUPG_PINENTRY_PGM_FALSE$ac_delim
26614
GNUPG_SCDAEMON_PGM!$GNUPG_SCDAEMON_PGM$ac_delim
26615
GNUPG_SCDAEMON_PGM_TRUE!$GNUPG_SCDAEMON_PGM_TRUE$ac_delim
26616
GNUPG_SCDAEMON_PGM_FALSE!$GNUPG_SCDAEMON_PGM_FALSE$ac_delim
26617
GNUPG_DIRMNGR_PGM!$GNUPG_DIRMNGR_PGM$ac_delim
26618
GNUPG_DIRMNGR_PGM_TRUE!$GNUPG_DIRMNGR_PGM_TRUE$ac_delim
26619
GNUPG_DIRMNGR_PGM_FALSE!$GNUPG_DIRMNGR_PGM_FALSE$ac_delim
26620
GNUPG_PROTECT_TOOL_PGM!$GNUPG_PROTECT_TOOL_PGM$ac_delim
26621
GNUPG_PROTECT_TOOL_PGM_TRUE!$GNUPG_PROTECT_TOOL_PGM_TRUE$ac_delim
26622
GNUPG_PROTECT_TOOL_PGM_FALSE!$GNUPG_PROTECT_TOOL_PGM_FALSE$ac_delim
26623
MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
26624
MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
26625
MAINT!$MAINT$ac_delim
26627
CFLAGS!$CFLAGS$ac_delim
26628
LDFLAGS!$LDFLAGS$ac_delim
26629
CPPFLAGS!$CPPFLAGS$ac_delim
26630
ac_ct_CC!$ac_ct_CC$ac_delim
26631
EXEEXT!$EXEEXT$ac_delim
26632
OBJEXT!$OBJEXT$ac_delim
26633
DEPDIR!$DEPDIR$ac_delim
26634
am__include!$am__include$ac_delim
26635
am__quote!$am__quote$ac_delim
26636
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
26639
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26641
elif $ac_last_try; then
26642
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26643
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26644
{ (exit 1); exit 1; }; }
26646
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26650
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26651
if test -n "$ac_eof"; then
26652
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26653
ac_eof=`expr $ac_eof + 1`
26656
cat >>$CONFIG_STATUS <<_ACEOF
26657
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26658
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26661
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26662
s/^/s,@/; s/!/@,|#_!!_#|/
26665
s/'"$ac_delim"'$/,g/; t
26667
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26668
' >>$CONFIG_STATUS <conf$$subs.sed
26669
rm -f conf$$subs.sed
26670
cat >>$CONFIG_STATUS <<_ACEOF
26676
for ac_last_try in false false false false false :; do
26677
cat >conf$$subs.sed <<_ACEOF
26678
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
26679
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
26680
CCDEPMODE!$CCDEPMODE$ac_delim
26681
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
26682
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
26684
LN_S!$LN_S$ac_delim
26685
RANLIB!$RANLIB$ac_delim
26687
PERL!$PERL$ac_delim
26688
WINDRES!$WINDRES$ac_delim
26689
FAQPROG!$FAQPROG$ac_delim
26690
WORKING_FAQPROG_TRUE!$WORKING_FAQPROG_TRUE$ac_delim
26691
WORKING_FAQPROG_FALSE!$WORKING_FAQPROG_FALSE$ac_delim
26693
HAVE_USTAR_TRUE!$HAVE_USTAR_TRUE$ac_delim
26694
HAVE_USTAR_FALSE!$HAVE_USTAR_FALSE$ac_delim
26695
CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
26696
HAVE_DOSISH_SYSTEM_TRUE!$HAVE_DOSISH_SYSTEM_TRUE$ac_delim
26697
HAVE_DOSISH_SYSTEM_FALSE!$HAVE_DOSISH_SYSTEM_FALSE$ac_delim
26698
USE_SIMPLE_GETTEXT_TRUE!$USE_SIMPLE_GETTEXT_TRUE$ac_delim
26699
USE_SIMPLE_GETTEXT_FALSE!$USE_SIMPLE_GETTEXT_FALSE$ac_delim
26700
HAVE_W32_SYSTEM_TRUE!$HAVE_W32_SYSTEM_TRUE$ac_delim
26701
HAVE_W32_SYSTEM_FALSE!$HAVE_W32_SYSTEM_FALSE$ac_delim
26702
GPGKEYS_HKP!$GPGKEYS_HKP$ac_delim
26703
GPGKEYS_FINGER!$GPGKEYS_FINGER$ac_delim
26704
GPG_ERROR_CONFIG!$GPG_ERROR_CONFIG$ac_delim
26705
GPG_ERROR_CFLAGS!$GPG_ERROR_CFLAGS$ac_delim
26706
GPG_ERROR_LIBS!$GPG_ERROR_LIBS$ac_delim
26707
LIBGCRYPT_CONFIG!$LIBGCRYPT_CONFIG$ac_delim
26708
LIBGCRYPT_CFLAGS!$LIBGCRYPT_CFLAGS$ac_delim
26709
LIBGCRYPT_LIBS!$LIBGCRYPT_LIBS$ac_delim
26710
LIBASSUAN_CONFIG!$LIBASSUAN_CONFIG$ac_delim
26711
LIBASSUAN_CFLAGS!$LIBASSUAN_CFLAGS$ac_delim
26712
LIBASSUAN_LIBS!$LIBASSUAN_LIBS$ac_delim
26713
LIBASSUAN_PTH_CFLAGS!$LIBASSUAN_PTH_CFLAGS$ac_delim
26714
LIBASSUAN_PTH_LIBS!$LIBASSUAN_PTH_LIBS$ac_delim
26715
KSBA_CONFIG!$KSBA_CONFIG$ac_delim
26716
KSBA_CFLAGS!$KSBA_CFLAGS$ac_delim
26717
KSBA_LIBS!$KSBA_LIBS$ac_delim
26718
LIBUSB_LIBS!$LIBUSB_LIBS$ac_delim
26719
DL_LIBS!$DL_LIBS$ac_delim
26720
LIBUTIL_LIBS!$LIBUTIL_LIBS$ac_delim
26721
SHRED!$SHRED$ac_delim
26722
PTH_CONFIG!$PTH_CONFIG$ac_delim
26723
PTH_CFLAGS!$PTH_CFLAGS$ac_delim
26724
PTH_LIBS!$PTH_LIBS$ac_delim
26725
DNSLIBS!$DNSLIBS$ac_delim
26726
USE_DNS_SRV_TRUE!$USE_DNS_SRV_TRUE$ac_delim
26727
USE_DNS_SRV_FALSE!$USE_DNS_SRV_FALSE$ac_delim
26728
GPGKEYS_LDAP!$GPGKEYS_LDAP$ac_delim
26729
LDAPLIBS!$LDAPLIBS$ac_delim
26730
LDAP_CPPFLAGS!$LDAP_CPPFLAGS$ac_delim
26731
_libcurl_config!$_libcurl_config$ac_delim
26732
LIBCURL_CPPFLAGS!$LIBCURL_CPPFLAGS$ac_delim
26733
LIBCURL!$LIBCURL$ac_delim
26734
FAKE_CURL_TRUE!$FAKE_CURL_TRUE$ac_delim
26735
FAKE_CURL_FALSE!$FAKE_CURL_FALSE$ac_delim
26736
GPGKEYS_CURL!$GPGKEYS_CURL$ac_delim
26737
SENDMAIL!$SENDMAIL$ac_delim
26738
GPGKEYS_MAILTO!$GPGKEYS_MAILTO$ac_delim
26739
LIBICONV!$LIBICONV$ac_delim
26740
LTLIBICONV!$LTLIBICONV$ac_delim
26741
USE_NLS!$USE_NLS$ac_delim
26742
GETTEXT_MACRO_VERSION!$GETTEXT_MACRO_VERSION$ac_delim
26743
MSGFMT!$MSGFMT$ac_delim
26744
GMSGFMT!$GMSGFMT$ac_delim
26745
MSGFMT_015!$MSGFMT_015$ac_delim
26746
GMSGFMT_015!$GMSGFMT_015$ac_delim
26747
XGETTEXT!$XGETTEXT$ac_delim
26748
XGETTEXT_015!$XGETTEXT_015$ac_delim
26749
MSGMERGE!$MSGMERGE$ac_delim
26750
XGETTEXT_EXTRA_OPTIONS!$XGETTEXT_EXTRA_OPTIONS$ac_delim
26751
INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
26752
INTLLIBS!$INTLLIBS$ac_delim
26753
LIBINTL!$LIBINTL$ac_delim
26754
LTLIBINTL!$LTLIBINTL$ac_delim
26755
POSUB!$POSUB$ac_delim
26756
USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
26757
BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
26758
GREP!$GREP$ac_delim
26759
EGREP!$EGREP$ac_delim
26760
GL_COND_LIBTOOL_TRUE!$GL_COND_LIBTOOL_TRUE$ac_delim
26761
GL_COND_LIBTOOL_FALSE!$GL_COND_LIBTOOL_FALSE$ac_delim
26762
ALLOCA!$ALLOCA$ac_delim
26763
ALLOCA_H!$ALLOCA_H$ac_delim
26764
LIBOBJS!$LIBOBJS$ac_delim
26765
HAVE_LONG_LONG_INT!$HAVE_LONG_LONG_INT$ac_delim
26766
HAVE_UNSIGNED_LONG_LONG_INT!$HAVE_UNSIGNED_LONG_LONG_INT$ac_delim
26767
HAVE_WCHAR_H!$HAVE_WCHAR_H$ac_delim
26768
HAVE_INTTYPES_H!$HAVE_INTTYPES_H$ac_delim
26769
HAVE_SYS_TYPES_H!$HAVE_SYS_TYPES_H$ac_delim
26770
ABSOLUTE_STDINT_H!$ABSOLUTE_STDINT_H$ac_delim
26771
HAVE_STDINT_H!$HAVE_STDINT_H$ac_delim
26772
HAVE_SYS_INTTYPES_H!$HAVE_SYS_INTTYPES_H$ac_delim
26773
HAVE_SYS_BITYPES_H!$HAVE_SYS_BITYPES_H$ac_delim
26774
BITSIZEOF_PTRDIFF_T!$BITSIZEOF_PTRDIFF_T$ac_delim
26777
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26779
elif $ac_last_try; then
26780
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26781
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26782
{ (exit 1); exit 1; }; }
26784
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26788
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26789
if test -n "$ac_eof"; then
26790
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26791
ac_eof=`expr $ac_eof + 1`
26794
cat >>$CONFIG_STATUS <<_ACEOF
26795
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26796
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26799
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26800
s/^/s,@/; s/!/@,|#_!!_#|/
26803
s/'"$ac_delim"'$/,g/; t
26805
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26806
' >>$CONFIG_STATUS <conf$$subs.sed
26807
rm -f conf$$subs.sed
26808
cat >>$CONFIG_STATUS <<_ACEOF
26814
for ac_last_try in false false false false false :; do
26815
cat >conf$$subs.sed <<_ACEOF
26816
BITSIZEOF_SIG_ATOMIC_T!$BITSIZEOF_SIG_ATOMIC_T$ac_delim
26817
BITSIZEOF_SIZE_T!$BITSIZEOF_SIZE_T$ac_delim
26818
BITSIZEOF_WCHAR_T!$BITSIZEOF_WCHAR_T$ac_delim
26819
BITSIZEOF_WINT_T!$BITSIZEOF_WINT_T$ac_delim
26820
HAVE_SIGNED_SIG_ATOMIC_T!$HAVE_SIGNED_SIG_ATOMIC_T$ac_delim
26821
HAVE_SIGNED_WCHAR_T!$HAVE_SIGNED_WCHAR_T$ac_delim
26822
HAVE_SIGNED_WINT_T!$HAVE_SIGNED_WINT_T$ac_delim
26823
PTRDIFF_T_SUFFIX!$PTRDIFF_T_SUFFIX$ac_delim
26824
SIG_ATOMIC_T_SUFFIX!$SIG_ATOMIC_T_SUFFIX$ac_delim
26825
SIZE_T_SUFFIX!$SIZE_T_SUFFIX$ac_delim
26826
WCHAR_T_SUFFIX!$WCHAR_T_SUFFIX$ac_delim
26827
WINT_T_SUFFIX!$WINT_T_SUFFIX$ac_delim
26828
STDINT_H!$STDINT_H$ac_delim
26829
UNISTD_H!$UNISTD_H$ac_delim
26830
LIBGNU_LIBDEPS!$LIBGNU_LIBDEPS$ac_delim
26831
LIBGNU_LTLIBDEPS!$LIBGNU_LTLIBDEPS$ac_delim
26832
DISABLE_REGEX_TRUE!$DISABLE_REGEX_TRUE$ac_delim
26833
DISABLE_REGEX_FALSE!$DISABLE_REGEX_FALSE$ac_delim
26834
ENABLE_BZIP2_SUPPORT_TRUE!$ENABLE_BZIP2_SUPPORT_TRUE$ac_delim
26835
ENABLE_BZIP2_SUPPORT_FALSE!$ENABLE_BZIP2_SUPPORT_FALSE$ac_delim
26836
ZLIBS!$ZLIBS$ac_delim
26837
LIBREADLINE!$LIBREADLINE$ac_delim
26838
CROSS_COMPILING_TRUE!$CROSS_COMPILING_TRUE$ac_delim
26839
CROSS_COMPILING_FALSE!$CROSS_COMPILING_FALSE$ac_delim
26840
NETLIBS!$NETLIBS$ac_delim
26841
W32SOCKLIBS!$W32SOCKLIBS$ac_delim
26842
BUILD_GPG_TRUE!$BUILD_GPG_TRUE$ac_delim
26843
BUILD_GPG_FALSE!$BUILD_GPG_FALSE$ac_delim
26844
BUILD_GPGSM_TRUE!$BUILD_GPGSM_TRUE$ac_delim
26845
BUILD_GPGSM_FALSE!$BUILD_GPGSM_FALSE$ac_delim
26846
BUILD_AGENT_TRUE!$BUILD_AGENT_TRUE$ac_delim
26847
BUILD_AGENT_FALSE!$BUILD_AGENT_FALSE$ac_delim
26848
BUILD_SCDAEMON_TRUE!$BUILD_SCDAEMON_TRUE$ac_delim
26849
BUILD_SCDAEMON_FALSE!$BUILD_SCDAEMON_FALSE$ac_delim
26850
BUILD_TOOLS_TRUE!$BUILD_TOOLS_TRUE$ac_delim
26851
BUILD_TOOLS_FALSE!$BUILD_TOOLS_FALSE$ac_delim
26852
BUILD_DOC_TRUE!$BUILD_DOC_TRUE$ac_delim
26853
BUILD_DOC_FALSE!$BUILD_DOC_FALSE$ac_delim
26854
BUILD_SYMCRYPTRUN_TRUE!$BUILD_SYMCRYPTRUN_TRUE$ac_delim
26855
BUILD_SYMCRYPTRUN_FALSE!$BUILD_SYMCRYPTRUN_FALSE$ac_delim
26856
RUN_GPG_TESTS_TRUE!$RUN_GPG_TESTS_TRUE$ac_delim
26857
RUN_GPG_TESTS_FALSE!$RUN_GPG_TESTS_FALSE$ac_delim
26858
LTLIBOBJS!$LTLIBOBJS$ac_delim
26861
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 43; then
26863
elif $ac_last_try; then
26864
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26865
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26866
{ (exit 1); exit 1; }; }
26868
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26872
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26873
if test -n "$ac_eof"; then
26874
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26875
ac_eof=`expr $ac_eof + 1`
26878
cat >>$CONFIG_STATUS <<_ACEOF
26879
cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
26880
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26883
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26884
s/^/s,@/; s/!/@,|#_!!_#|/
26887
s/'"$ac_delim"'$/,g/; t
26889
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26890
' >>$CONFIG_STATUS <conf$$subs.sed
26891
rm -f conf$$subs.sed
26892
cat >>$CONFIG_STATUS <<_ACEOF
26899
# VPATH may cause trouble with some makes, so we remove $(srcdir),
26900
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26901
# trailing colons and then remove the whole line if VPATH becomes empty
26902
# (actually we leave an empty line to preserve line numbers).
26903
if test "x$srcdir" = x.; then
26904
ac_vpsub='/^[ ]*VPATH[ ]*=/{
26905
s/:*\$(srcdir):*/:/
26906
s/:*\${srcdir}:*/:/
26908
s/^\([^=]*=[ ]*\):*/\1/
26914
cat >>$CONFIG_STATUS <<\_ACEOF
26969
26915
fi # test -n "$CONFIG_FILES"
26972
cat >>$CONFIG_STATUS <<\_ACEOF
26973
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
26974
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26976
- | *:- | *:-:* ) # input from stdin
26978
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26979
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26980
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26981
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26982
* ) ac_file_in=$ac_file.in ;;
26985
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
26986
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26918
for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
26921
:[FHLC]) ac_mode=$ac_tag; continue;;
26923
case $ac_mode$ac_tag in
26925
:L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26926
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26927
{ (exit 1); exit 1; }; };;
26928
:[FH]-) ac_tag=-:-;;
26929
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26946
-) ac_f="$tmp/stdin";;
26947
*) # Look for the file first in the build tree, then in the source tree
26948
# (if the path is not absolute). The absolute path cannot be DOS-style,
26949
# because $ac_f cannot contain `:'.
26953
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26955
{ { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26956
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26957
{ (exit 1); exit 1; }; };;
26959
ac_file_inputs="$ac_file_inputs $ac_f"
26962
# Let's still pretend it is `configure' which instantiates (i.e., don't
26963
# use $as_me), people would be surprised to read:
26964
# /* config.h. Generated by config.status. */
26965
configure_input="Generated from "`IFS=:
26966
echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26967
if test x"$ac_file" != x-; then
26968
configure_input="$ac_file. $configure_input"
26969
{ echo "$as_me:$LINENO: creating $ac_file" >&5
26970
echo "$as_me: creating $ac_file" >&6;}
26974
*:-:* | *:-) cat >"$tmp/stdin";;
26979
ac_dir=`$as_dirname -- "$ac_file" ||
26987
26980
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26988
26981
X"$ac_file" : 'X\(//\)[^/]' \| \
26989
26982
X"$ac_file" : 'X\(//\)$' \| \
26990
X"$ac_file" : 'X\(/\)' \| \
26991
. : '\(.\)' 2>/dev/null ||
26983
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26992
26984
echo X"$ac_file" |
26993
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26994
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
26995
/^X\(\/\/\)$/{ s//\1/; q; }
26996
/^X\(\/\).*/{ s//\1/; q; }
26998
{ if $as_mkdir_p; then
26985
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26989
/^X\(\/\/\)[^/].*/{
27004
-*) as_dir=./$as_dir;;
27006
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27003
while test ! -d "$as_dir"; do
27004
as_dirs="$as_dir $as_dirs"
27005
as_dir=`(dirname "$as_dir") 2>/dev/null ||
27010
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27011
*) as_qdir=$as_dir;;
27013
as_dirs="'$as_qdir' $as_dirs"
27014
as_dir=`$as_dirname -- "$as_dir" ||
27006
27015
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27007
27016
X"$as_dir" : 'X\(//\)[^/]' \| \
27008
27017
X"$as_dir" : 'X\(//\)$' \| \
27009
X"$as_dir" : 'X\(/\)' \| \
27010
. : '\(.\)' 2>/dev/null ||
27018
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27011
27019
echo X"$as_dir" |
27012
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27013
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
27014
/^X\(\/\/\)$/{ s//\1/; q; }
27015
/^X\(\/\).*/{ s//\1/; q; }
27020
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27024
/^X\(\/\/\)[^/].*/{
27037
test -d "$as_dir" && break
27018
test ! -n "$as_dirs" || mkdir $as_dirs
27019
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27020
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27039
test -z "$as_dirs" || eval "mkdir $as_dirs"
27040
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27041
echo "$as_me: error: cannot create directory $as_dir" >&2;}
27021
27042
{ (exit 1); exit 1; }; }; }
27023
27043
ac_builddir=.
27025
if test "$ac_dir" != .; then
27046
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27026
27048
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27027
# A "../" for each directory in $ac_dir_suffix.
27028
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27030
ac_dir_suffix= ac_top_builddir=
27049
# A ".." for each directory in $ac_dir_suffix.
27050
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27051
case $ac_top_builddir_sub in
27052
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27053
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27056
ac_abs_top_builddir=$ac_pwd
27057
ac_abs_builddir=$ac_pwd$ac_dir_suffix
27058
# for backward compatibility:
27059
ac_top_builddir=$ac_top_build_prefix
27033
27061
case $srcdir in
27034
.) # No --srcdir option. We are building in place.
27062
.) # We are building in place.
27036
if test -z "$ac_top_builddir"; then
27039
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27041
[\\/]* | ?:[\\/]* ) # Absolute path.
27064
ac_top_srcdir=$ac_top_builddir_sub
27065
ac_abs_top_srcdir=$ac_pwd ;;
27066
[\\/]* | ?:[\\/]* ) # Absolute name.
27042
27067
ac_srcdir=$srcdir$ac_dir_suffix;
27043
ac_top_srcdir=$srcdir ;;
27044
*) # Relative path.
27045
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27046
ac_top_srcdir=$ac_top_builddir$srcdir ;;
27049
# Do not use `cd foo && pwd` to compute absolute paths, because
27050
# the directories may not exist.
27052
.) ac_abs_builddir="$ac_dir";;
27055
.) ac_abs_builddir=`pwd`;;
27056
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27057
*) ac_abs_builddir=`pwd`/"$ac_dir";;
27060
case $ac_abs_builddir in
27061
.) ac_abs_top_builddir=${ac_top_builddir}.;;
27063
case ${ac_top_builddir}. in
27064
.) ac_abs_top_builddir=$ac_abs_builddir;;
27065
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27066
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27069
case $ac_abs_builddir in
27070
.) ac_abs_srcdir=$ac_srcdir;;
27073
.) ac_abs_srcdir=$ac_abs_builddir;;
27074
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27075
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27078
case $ac_abs_builddir in
27079
.) ac_abs_top_srcdir=$ac_top_srcdir;;
27081
case $ac_top_srcdir in
27082
.) ac_abs_top_srcdir=$ac_abs_builddir;;
27083
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27084
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27068
ac_top_srcdir=$srcdir
27069
ac_abs_top_srcdir=$srcdir ;;
27070
*) # Relative name.
27071
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27072
ac_top_srcdir=$ac_top_build_prefix$srcdir
27073
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27075
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27089
27084
case $INSTALL in
27090
27085
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27091
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
27094
# Let's still pretend it is `configure' which instantiates (i.e., don't
27095
# use $as_me), people would be surprised to read:
27096
# /* config.h. Generated by config.status. */
27097
if test x"$ac_file" = x-; then
27100
configure_input="$ac_file. "
27102
configure_input=$configure_input"Generated from `echo $ac_file_in |
27103
sed 's,.*/,,'` by configure."
27105
# First look for the input files in the build tree, otherwise in the
27107
ac_file_inputs=`IFS=:
27108
for f in $ac_file_in; do
27110
-) echo $tmp/stdin ;;
27112
# Absolute (can't be DOS-style, as IFS=:)
27113
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27114
echo "$as_me: error: cannot find input file: $f" >&2;}
27115
{ (exit 1); exit 1; }; }
27118
if test -f "$f"; then
27121
elif test -f "$srcdir/$f"; then
27126
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27127
echo "$as_me: error: cannot find input file: $f" >&2;}
27128
{ (exit 1); exit 1; }; }
27131
done` || { (exit 1); exit 1; }
27133
if test x"$ac_file" != x-; then
27134
{ echo "$as_me:$LINENO: creating $ac_file" >&5
27135
echo "$as_me: creating $ac_file" >&6;}
27086
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27088
ac_MKDIR_P=$MKDIR_P
27090
[\\/$]* | ?:[\\/]* ) ;;
27091
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
27095
cat >>$CONFIG_STATUS <<\_ACEOF
27096
# If the template does not know about datarootdir, expand it.
27097
# FIXME: This hack should be removed a few years after 2.60.
27098
ac_datarootdir_hack=; ac_datarootdir_seen=
27100
case `sed -n '/datarootdir/ {
27109
' $ac_file_inputs` in
27110
*datarootdir*) ac_datarootdir_seen=yes;;
27111
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27112
{ echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27113
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27115
cat >>$CONFIG_STATUS <<_ACEOF
27116
ac_datarootdir_hack='
27117
s&@datadir@&$datadir&g
27118
s&@docdir@&$docdir&g
27119
s&@infodir@&$infodir&g
27120
s&@localedir@&$localedir&g
27121
s&@mandir@&$mandir&g
27122
s&\\\${datarootdir}&$datarootdir&g' ;;
27126
# Neutralize VPATH when `$srcdir' = `.'.
27127
# Shell code in configure.ac might set extrasub.
27128
# FIXME: do we really want to maintain this feature?
27139
27129
cat >>$CONFIG_STATUS <<_ACEOF
27140
27130
sed "$ac_vpsub