2497
3394
RANLIB="$ac_cv_prog_RANLIB"
2500
echo "$as_me:2500: checking for strerror in -lcposix" >&5
2501
echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2502
if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3398
HELP2MAN=${HELP2MAN-"${am_missing_run}help2man"}
3401
echo "$as_me:$LINENO: checking for library containing strerror" >&5
3402
echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
3403
if test "${ac_cv_search_strerror+set}" = set; then
2503
3404
echo $ECHO_N "(cached) $ECHO_C" >&6
2505
ac_check_lib_save_LIBS=$LIBS
2506
LIBS="-lcposix $LIBS"
3406
ac_func_search_save_LIBS=$LIBS
3407
ac_cv_search_strerror=no
2507
3408
cat >conftest.$ac_ext <<_ACEOF
2508
#line 2508 "configure"
2509
#include "confdefs.h"
2511
/* Override any gcc2 internal prototype to avoid an error. */
2515
/* We use char because int might match the return type of a gcc2
2516
builtin and then its argument prototype would still apply. */
2526
rm -f conftest.$ac_objext conftest$ac_exeext
2527
if { (eval echo "$as_me:2527: \"$ac_link\"") >&5
3411
cat confdefs.h >>conftest.$ac_ext
3412
cat >>conftest.$ac_ext <<_ACEOF
3413
/* end confdefs.h. */
3415
/* Override any gcc2 internal prototype to avoid an error. */
3419
/* We use char because int might match the return type of a gcc2
3420
builtin and then its argument prototype would still apply. */
3430
rm -f conftest.$ac_objext conftest$ac_exeext
3431
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3432
(eval $ac_link) 2>conftest.er1
3434
grep -v '^ *+' conftest.er1 >conftest.err
3436
cat conftest.err >&5
3437
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438
(exit $ac_status); } &&
3439
{ ac_try='test -z "$ac_c_werror_flag"
3440
|| test ! -s conftest.err'
3441
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3444
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445
(exit $ac_status); }; } &&
3446
{ ac_try='test -s conftest$ac_exeext'
3447
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3450
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451
(exit $ac_status); }; }; then
3452
ac_cv_search_strerror="none required"
3454
echo "$as_me: failed program was:" >&5
3455
sed 's/^/| /' conftest.$ac_ext >&5
3458
rm -f conftest.err conftest.$ac_objext \
3459
conftest$ac_exeext conftest.$ac_ext
3460
if test "$ac_cv_search_strerror" = no; then
3461
for ac_lib in cposix; do
3462
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3463
cat >conftest.$ac_ext <<_ACEOF
3466
cat confdefs.h >>conftest.$ac_ext
3467
cat >>conftest.$ac_ext <<_ACEOF
3468
/* end confdefs.h. */
3470
/* Override any gcc2 internal prototype to avoid an error. */
3474
/* We use char because int might match the return type of a gcc2
3475
builtin and then its argument prototype would still apply. */
3485
rm -f conftest.$ac_objext conftest$ac_exeext
3486
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3487
(eval $ac_link) 2>conftest.er1
3489
grep -v '^ *+' conftest.er1 >conftest.err
3491
cat conftest.err >&5
3492
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493
(exit $ac_status); } &&
3494
{ ac_try='test -z "$ac_c_werror_flag"
3495
|| test ! -s conftest.err'
3496
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3499
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500
(exit $ac_status); }; } &&
3501
{ ac_try='test -s conftest$ac_exeext'
3502
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3505
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506
(exit $ac_status); }; }; then
3507
ac_cv_search_strerror="-l$ac_lib"
3510
echo "$as_me: failed program was:" >&5
3511
sed 's/^/| /' conftest.$ac_ext >&5
3514
rm -f conftest.err conftest.$ac_objext \
3515
conftest$ac_exeext conftest.$ac_ext
3518
LIBS=$ac_func_search_save_LIBS
3520
echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3521
echo "${ECHO_T}$ac_cv_search_strerror" >&6
3522
if test "$ac_cv_search_strerror" != no; then
3523
test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3527
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3528
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3529
if test "${ac_cv_header_stdc+set}" = set; then
3530
echo $ECHO_N "(cached) $ECHO_C" >&6
3532
cat >conftest.$ac_ext <<_ACEOF
3535
cat confdefs.h >>conftest.$ac_ext
3536
cat >>conftest.$ac_ext <<_ACEOF
3537
/* end confdefs.h. */
3551
rm -f conftest.$ac_objext
3552
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3553
(eval $ac_compile) 2>conftest.er1
3555
grep -v '^ *+' conftest.er1 >conftest.err
3557
cat conftest.err >&5
3558
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559
(exit $ac_status); } &&
3560
{ ac_try='test -z "$ac_c_werror_flag"
3561
|| test ! -s conftest.err'
3562
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3565
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566
(exit $ac_status); }; } &&
3567
{ ac_try='test -s conftest.$ac_objext'
3568
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3571
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572
(exit $ac_status); }; }; then
3573
ac_cv_header_stdc=yes
3575
echo "$as_me: failed program was:" >&5
3576
sed 's/^/| /' conftest.$ac_ext >&5
3578
ac_cv_header_stdc=no
3580
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3582
if test $ac_cv_header_stdc = yes; then
3583
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3584
cat >conftest.$ac_ext <<_ACEOF
3587
cat confdefs.h >>conftest.$ac_ext
3588
cat >>conftest.$ac_ext <<_ACEOF
3589
/* end confdefs.h. */
3593
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3594
$EGREP "memchr" >/dev/null 2>&1; then
3597
ac_cv_header_stdc=no
3603
if test $ac_cv_header_stdc = yes; then
3604
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3605
cat >conftest.$ac_ext <<_ACEOF
3608
cat confdefs.h >>conftest.$ac_ext
3609
cat >>conftest.$ac_ext <<_ACEOF
3610
/* end confdefs.h. */
3614
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3615
$EGREP "free" >/dev/null 2>&1; then
3618
ac_cv_header_stdc=no
3624
if test $ac_cv_header_stdc = yes; then
3625
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3626
if test "$cross_compiling" = yes; then
3629
cat >conftest.$ac_ext <<_ACEOF
3632
cat confdefs.h >>conftest.$ac_ext
3633
cat >>conftest.$ac_ext <<_ACEOF
3634
/* end confdefs.h. */
3636
#if ((' ' & 0x0FF) == 0x020)
3637
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3638
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3640
# define ISLOWER(c) \
3641
(('a' <= (c) && (c) <= 'i') \
3642
|| ('j' <= (c) && (c) <= 'r') \
3643
|| ('s' <= (c) && (c) <= 'z'))
3644
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3647
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3652
for (i = 0; i < 256; i++)
3653
if (XOR (islower (i), ISLOWER (i))
3654
|| toupper (i) != TOUPPER (i))
3659
rm -f conftest$ac_exeext
3660
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2528
3661
(eval $ac_link) 2>&5
2530
echo "$as_me:2530: \$? = $ac_status" >&5
3663
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3665
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3668
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669
(exit $ac_status); }; }; then
3672
echo "$as_me: program exited with status $ac_status" >&5
3673
echo "$as_me: failed program was:" >&5
3674
sed 's/^/| /' conftest.$ac_ext >&5
3677
ac_cv_header_stdc=no
3679
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3683
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3684
echo "${ECHO_T}$ac_cv_header_stdc" >&6
3685
if test $ac_cv_header_stdc = yes; then
3687
cat >>confdefs.h <<\_ACEOF
3688
#define STDC_HEADERS 1
3693
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3703
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3704
inttypes.h stdint.h unistd.h
3706
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3707
echo "$as_me:$LINENO: checking for $ac_header" >&5
3708
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3709
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3710
echo $ECHO_N "(cached) $ECHO_C" >&6
3712
cat >conftest.$ac_ext <<_ACEOF
3715
cat confdefs.h >>conftest.$ac_ext
3716
cat >>conftest.$ac_ext <<_ACEOF
3717
/* end confdefs.h. */
3718
$ac_includes_default
3720
#include <$ac_header>
3722
rm -f conftest.$ac_objext
3723
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3724
(eval $ac_compile) 2>conftest.er1
3726
grep -v '^ *+' conftest.er1 >conftest.err
3728
cat conftest.err >&5
3729
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531
3730
(exit $ac_status); } &&
2532
{ ac_try='test -s conftest$ac_exeext'
2533
{ (eval echo "$as_me:2533: \"$ac_try\"") >&5
2536
echo "$as_me:2536: \$? = $ac_status" >&5
3731
{ ac_try='test -z "$ac_c_werror_flag"
3732
|| test ! -s conftest.err'
3733
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3736
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3737
(exit $ac_status); }; } &&
3738
{ ac_try='test -s conftest.$ac_objext'
3739
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3742
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537
3743
(exit $ac_status); }; }; then
2538
ac_cv_lib_cposix_strerror=yes
3744
eval "$as_ac_Header=yes"
2540
3746
echo "$as_me: failed program was:" >&5
2541
cat conftest.$ac_ext >&5
2542
ac_cv_lib_cposix_strerror=no
2544
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2545
LIBS=$ac_check_lib_save_LIBS
2547
echo "$as_me:2547: result: $ac_cv_lib_cposix_strerror" >&5
2548
echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2549
if test $ac_cv_lib_cposix_strerror = yes; then
2550
LIBS="$LIBS -lcposix"
2553
echo "$as_me:2553: checking for minix/config.h" >&5
3747
sed 's/^/| /' conftest.$ac_ext >&5
3749
eval "$as_ac_Header=no"
3751
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3753
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3754
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3755
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3756
cat >>confdefs.h <<_ACEOF
3757
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3765
if test "${ac_cv_header_minix_config_h+set}" = set; then
3766
echo "$as_me:$LINENO: checking for minix/config.h" >&5
2554
3767
echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2555
3768
if test "${ac_cv_header_minix_config_h+set}" = set; then
2556
3769
echo $ECHO_N "(cached) $ECHO_C" >&6
2558
cat >conftest.$ac_ext <<_ACEOF
2559
#line 2559 "configure"
2560
#include "confdefs.h"
2561
#include <minix/config.h>
2563
if { (eval echo "$as_me:2563: \"$ac_cpp conftest.$ac_ext\"") >&5
3771
echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3772
echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3774
# Is the header compilable?
3775
echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3776
echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3777
cat >conftest.$ac_ext <<_ACEOF
3780
cat confdefs.h >>conftest.$ac_ext
3781
cat >>conftest.$ac_ext <<_ACEOF
3782
/* end confdefs.h. */
3783
$ac_includes_default
3784
#include <minix/config.h>
3786
rm -f conftest.$ac_objext
3787
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3788
(eval $ac_compile) 2>conftest.er1
3790
grep -v '^ *+' conftest.er1 >conftest.err
3792
cat conftest.err >&5
3793
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794
(exit $ac_status); } &&
3795
{ ac_try='test -z "$ac_c_werror_flag"
3796
|| test ! -s conftest.err'
3797
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3800
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801
(exit $ac_status); }; } &&
3802
{ ac_try='test -s conftest.$ac_objext'
3803
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3806
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807
(exit $ac_status); }; }; then
3808
ac_header_compiler=yes
3810
echo "$as_me: failed program was:" >&5
3811
sed 's/^/| /' conftest.$ac_ext >&5
3813
ac_header_compiler=no
3815
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3816
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3817
echo "${ECHO_T}$ac_header_compiler" >&6
3819
# Is the header present?
3820
echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3821
echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3822
cat >conftest.$ac_ext <<_ACEOF
3825
cat confdefs.h >>conftest.$ac_ext
3826
cat >>conftest.$ac_ext <<_ACEOF
3827
/* end confdefs.h. */
3828
#include <minix/config.h>
3830
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2564
3831
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2566
egrep -v '^ *\+' conftest.er1 >conftest.err
3833
grep -v '^ *+' conftest.er1 >conftest.err
2567
3834
rm -f conftest.er1
2568
3835
cat conftest.err >&5
2569
echo "$as_me:2569: \$? = $ac_status" >&5
3836
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570
3837
(exit $ac_status); } >/dev/null; then
2571
3838
if test -s conftest.err; then
2572
3839
ac_cpp_err=$ac_c_preproc_warn_flag
3840
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3555
4953
rm -f conftest.$ac_objext
3556
if { (eval echo "$as_me:3556: \"$ac_compile\"") >&5
3557
(eval $ac_compile) 2>&5
4954
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4955
(eval $ac_compile) 2>conftest.er1
3559
echo "$as_me:3559: \$? = $ac_status" >&5
4957
grep -v '^ *+' conftest.er1 >conftest.err
4959
cat conftest.err >&5
4960
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560
4961
(exit $ac_status); } &&
3561
{ ac_try='test -s conftest.$ac_objext'
3562
{ (eval echo "$as_me:3562: \"$ac_try\"") >&5
3565
echo "$as_me:3565: \$? = $ac_status" >&5
4962
{ ac_try='test -z "$ac_c_werror_flag"
4963
|| test ! -s conftest.err'
4964
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4967
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968
(exit $ac_status); }; } &&
4969
{ ac_try='test -s conftest.$ac_objext'
4970
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4973
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566
4974
(exit $ac_status); }; }; then
3567
4975
ac_cv_struct_tm=time.h
3569
4977
echo "$as_me: failed program was:" >&5
3570
cat conftest.$ac_ext >&5
4978
sed 's/^/| /' conftest.$ac_ext >&5
3571
4980
ac_cv_struct_tm=sys/time.h
3573
rm -f conftest.$ac_objext conftest.$ac_ext
4982
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3575
echo "$as_me:3575: result: $ac_cv_struct_tm" >&5
4984
echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
3576
4985
echo "${ECHO_T}$ac_cv_struct_tm" >&6
3577
4986
if test $ac_cv_struct_tm = sys/time.h; then
3579
cat >>confdefs.h <<\EOF
4988
cat >>confdefs.h <<\_ACEOF
3580
4989
#define TM_IN_SYS_TIME 1
3587
#ifdef HAVE_STRING_H
3588
# if !STDC_HEADERS && HAVE_MEMORY_H
3589
# include <memory.h>
3591
# include <string.h>
3593
# ifdef HAVE_STRINGS_H
3594
# include <strings.h>
3597
#ifdef HAVE_STDLIB_H
3598
# include <stdlib.h>
3600
#ifdef HAVE_UNISTD_H
3601
# include <unistd.h>
3607
cat >>confdefs.h <<\EOF
4995
# Checks for function declarations.
4996
echo "$as_me:$LINENO: checking whether memchr is declared" >&5
4997
echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6
4998
if test "${ac_cv_have_decl_memchr+set}" = set; then
4999
echo $ECHO_N "(cached) $ECHO_C" >&6
5001
cat >conftest.$ac_ext <<_ACEOF
5004
cat confdefs.h >>conftest.$ac_ext
5005
cat >>conftest.$ac_ext <<_ACEOF
5006
/* end confdefs.h. */
5007
$ac_includes_default
5012
char *p = (char *) memchr;
5019
rm -f conftest.$ac_objext
5020
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5021
(eval $ac_compile) 2>conftest.er1
5023
grep -v '^ *+' conftest.er1 >conftest.err
5025
cat conftest.err >&5
5026
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027
(exit $ac_status); } &&
5028
{ ac_try='test -z "$ac_c_werror_flag"
5029
|| test ! -s conftest.err'
5030
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5033
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034
(exit $ac_status); }; } &&
5035
{ ac_try='test -s conftest.$ac_objext'
5036
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5039
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040
(exit $ac_status); }; }; then
5041
ac_cv_have_decl_memchr=yes
5043
echo "$as_me: failed program was:" >&5
5044
sed 's/^/| /' conftest.$ac_ext >&5
5046
ac_cv_have_decl_memchr=no
5048
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5050
echo "$as_me:$LINENO: result: $ac_cv_have_decl_memchr" >&5
5051
echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6
5052
if test $ac_cv_have_decl_memchr = yes; then
5054
cat >>confdefs.h <<_ACEOF
5055
#define HAVE_DECL_MEMCHR 1
5060
cat >>confdefs.h <<_ACEOF
5061
#define HAVE_DECL_MEMCHR 0
5066
echo "$as_me:$LINENO: checking whether strcoll is declared" >&5
5067
echo $ECHO_N "checking whether strcoll is declared... $ECHO_C" >&6
5068
if test "${ac_cv_have_decl_strcoll+set}" = set; then
5069
echo $ECHO_N "(cached) $ECHO_C" >&6
5071
cat >conftest.$ac_ext <<_ACEOF
5074
cat confdefs.h >>conftest.$ac_ext
5075
cat >>conftest.$ac_ext <<_ACEOF
5076
/* end confdefs.h. */
5077
$ac_includes_default
5082
char *p = (char *) strcoll;
5089
rm -f conftest.$ac_objext
5090
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5091
(eval $ac_compile) 2>conftest.er1
5093
grep -v '^ *+' conftest.er1 >conftest.err
5095
cat conftest.err >&5
5096
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097
(exit $ac_status); } &&
5098
{ ac_try='test -z "$ac_c_werror_flag"
5099
|| test ! -s conftest.err'
5100
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5103
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104
(exit $ac_status); }; } &&
5105
{ ac_try='test -s conftest.$ac_objext'
5106
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5109
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110
(exit $ac_status); }; }; then
5111
ac_cv_have_decl_strcoll=yes
5113
echo "$as_me: failed program was:" >&5
5114
sed 's/^/| /' conftest.$ac_ext >&5
5116
ac_cv_have_decl_strcoll=no
5118
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5120
echo "$as_me:$LINENO: result: $ac_cv_have_decl_strcoll" >&5
5121
echo "${ECHO_T}$ac_cv_have_decl_strcoll" >&6
5122
if test $ac_cv_have_decl_strcoll = yes; then
5124
cat >>confdefs.h <<_ACEOF
5125
#define HAVE_DECL_STRCOLL 1
5130
cat >>confdefs.h <<_ACEOF
5131
#define HAVE_DECL_STRCOLL 0
5136
echo "$as_me:$LINENO: checking whether strerror is declared" >&5
5137
echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
5138
if test "${ac_cv_have_decl_strerror+set}" = set; then
5139
echo $ECHO_N "(cached) $ECHO_C" >&6
5141
cat >conftest.$ac_ext <<_ACEOF
5144
cat confdefs.h >>conftest.$ac_ext
5145
cat >>conftest.$ac_ext <<_ACEOF
5146
/* end confdefs.h. */
5147
$ac_includes_default
5152
char *p = (char *) strerror;
5159
rm -f conftest.$ac_objext
5160
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5161
(eval $ac_compile) 2>conftest.er1
5163
grep -v '^ *+' conftest.er1 >conftest.err
5165
cat conftest.err >&5
5166
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167
(exit $ac_status); } &&
5168
{ ac_try='test -z "$ac_c_werror_flag"
5169
|| test ! -s conftest.err'
5170
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5173
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174
(exit $ac_status); }; } &&
5175
{ ac_try='test -s conftest.$ac_objext'
5176
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5179
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180
(exit $ac_status); }; }; then
5181
ac_cv_have_decl_strerror=yes
5183
echo "$as_me: failed program was:" >&5
5184
sed 's/^/| /' conftest.$ac_ext >&5
5186
ac_cv_have_decl_strerror=no
5188
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5190
echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
5191
echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
5192
if test $ac_cv_have_decl_strerror = yes; then
5194
cat >>confdefs.h <<_ACEOF
3608
5195
#define HAVE_DECL_STRERROR 1
3611
cat >>confdefs.h <<\EOF
3612
#define HAVE_DECL_STRCASECMP 1
3615
cat >>confdefs.h <<\EOF
3616
#define HAVE_DECL_STRNCASECMP 1
3619
cat >>confdefs.h <<\EOF
3620
#define HAVE_DECL_STRCOLL 1
3625
for jm_func in strerror strcasecmp strncasecmp strcoll
3628
test -z "$ac_cv_header_memory_h" &&
3629
for ac_header in memory.h
3631
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3632
echo "$as_me:3632: checking for $ac_header" >&5
3633
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3634
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3635
echo $ECHO_N "(cached) $ECHO_C" >&6
3637
cat >conftest.$ac_ext <<_ACEOF
3638
#line 3638 "configure"
3639
#include "confdefs.h"
3640
#include <$ac_header>
3642
if { (eval echo "$as_me:3642: \"$ac_cpp conftest.$ac_ext\"") >&5
3643
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3645
egrep -v '^ *\+' conftest.er1 >conftest.err
3647
cat conftest.err >&5
3648
echo "$as_me:3648: \$? = $ac_status" >&5
3649
(exit $ac_status); } >/dev/null; then
3650
if test -s conftest.err; then
3651
ac_cpp_err=$ac_c_preproc_warn_flag
3658
if test -z "$ac_cpp_err"; then
3659
eval "$as_ac_Header=yes"
3661
echo "$as_me: failed program was:" >&5
3662
cat conftest.$ac_ext >&5
3663
eval "$as_ac_Header=no"
3665
rm -f conftest.err conftest.$ac_ext
3667
echo "$as_me:3667: result: `eval echo '${'$as_ac_Header'}'`" >&5
3668
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3669
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3670
cat >>confdefs.h <<EOF
3671
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3677
test -z "$ac_cv_header_string_h" &&
3678
for ac_header in string.h
3680
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3681
echo "$as_me:3681: checking for $ac_header" >&5
3682
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3683
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3684
echo $ECHO_N "(cached) $ECHO_C" >&6
3686
cat >conftest.$ac_ext <<_ACEOF
3687
#line 3687 "configure"
3688
#include "confdefs.h"
3689
#include <$ac_header>
3691
if { (eval echo "$as_me:3691: \"$ac_cpp conftest.$ac_ext\"") >&5
3692
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3694
egrep -v '^ *\+' conftest.er1 >conftest.err
3696
cat conftest.err >&5
3697
echo "$as_me:3697: \$? = $ac_status" >&5
3698
(exit $ac_status); } >/dev/null; then
3699
if test -s conftest.err; then
3700
ac_cpp_err=$ac_c_preproc_warn_flag
3707
if test -z "$ac_cpp_err"; then
3708
eval "$as_ac_Header=yes"
3710
echo "$as_me: failed program was:" >&5
3711
cat conftest.$ac_ext >&5
3712
eval "$as_ac_Header=no"
3714
rm -f conftest.err conftest.$ac_ext
3716
echo "$as_me:3716: result: `eval echo '${'$as_ac_Header'}'`" >&5
3717
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3718
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3719
cat >>confdefs.h <<EOF
3720
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3726
test -z "$ac_cv_header_strings_h" &&
3727
for ac_header in strings.h
3729
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3730
echo "$as_me:3730: checking for $ac_header" >&5
3731
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3732
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3733
echo $ECHO_N "(cached) $ECHO_C" >&6
3735
cat >conftest.$ac_ext <<_ACEOF
3736
#line 3736 "configure"
3737
#include "confdefs.h"
3738
#include <$ac_header>
3740
if { (eval echo "$as_me:3740: \"$ac_cpp conftest.$ac_ext\"") >&5
3741
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3743
egrep -v '^ *\+' conftest.er1 >conftest.err
3745
cat conftest.err >&5
3746
echo "$as_me:3746: \$? = $ac_status" >&5
3747
(exit $ac_status); } >/dev/null; then
3748
if test -s conftest.err; then
3749
ac_cpp_err=$ac_c_preproc_warn_flag
3756
if test -z "$ac_cpp_err"; then
3757
eval "$as_ac_Header=yes"
3759
echo "$as_me: failed program was:" >&5
3760
cat conftest.$ac_ext >&5
3761
eval "$as_ac_Header=no"
3763
rm -f conftest.err conftest.$ac_ext
3765
echo "$as_me:3765: result: `eval echo '${'$as_ac_Header'}'`" >&5
3766
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3767
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3768
cat >>confdefs.h <<EOF
3769
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3775
test -z "$ac_cv_header_stdlib_h" &&
3776
for ac_header in stdlib.h
3778
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3779
echo "$as_me:3779: checking for $ac_header" >&5
3780
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3781
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3782
echo $ECHO_N "(cached) $ECHO_C" >&6
3784
cat >conftest.$ac_ext <<_ACEOF
3785
#line 3785 "configure"
3786
#include "confdefs.h"
3787
#include <$ac_header>
3789
if { (eval echo "$as_me:3789: \"$ac_cpp conftest.$ac_ext\"") >&5
3790
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3792
egrep -v '^ *\+' conftest.er1 >conftest.err
3794
cat conftest.err >&5
3795
echo "$as_me:3795: \$? = $ac_status" >&5
3796
(exit $ac_status); } >/dev/null; then
3797
if test -s conftest.err; then
3798
ac_cpp_err=$ac_c_preproc_warn_flag
3805
if test -z "$ac_cpp_err"; then
3806
eval "$as_ac_Header=yes"
3808
echo "$as_me: failed program was:" >&5
3809
cat conftest.$ac_ext >&5
3810
eval "$as_ac_Header=no"
3812
rm -f conftest.err conftest.$ac_ext
3814
echo "$as_me:3814: result: `eval echo '${'$as_ac_Header'}'`" >&5
3815
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3816
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3817
cat >>confdefs.h <<EOF
3818
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3824
test -z "$ac_cv_header_unistd_h" &&
3825
for ac_header in unistd.h
3827
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3828
echo "$as_me:3828: checking for $ac_header" >&5
3829
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3830
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3831
echo $ECHO_N "(cached) $ECHO_C" >&6
3833
cat >conftest.$ac_ext <<_ACEOF
3834
#line 3834 "configure"
3835
#include "confdefs.h"
3836
#include <$ac_header>
3838
if { (eval echo "$as_me:3838: \"$ac_cpp conftest.$ac_ext\"") >&5
3839
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3841
egrep -v '^ *\+' conftest.er1 >conftest.err
3843
cat conftest.err >&5
3844
echo "$as_me:3844: \$? = $ac_status" >&5
3845
(exit $ac_status); } >/dev/null; then
3846
if test -s conftest.err; then
3847
ac_cpp_err=$ac_c_preproc_warn_flag
3854
if test -z "$ac_cpp_err"; then
3855
eval "$as_ac_Header=yes"
3857
echo "$as_me: failed program was:" >&5
3858
cat conftest.$ac_ext >&5
3859
eval "$as_ac_Header=no"
3861
rm -f conftest.err conftest.$ac_ext
3863
echo "$as_me:3863: result: `eval echo '${'$as_ac_Header'}'`" >&5
3864
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3865
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3866
cat >>confdefs.h <<EOF
3867
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3873
echo "$as_me:3873: checking whether $jm_func is declared" >&5
3874
echo $ECHO_N "checking whether $jm_func is declared... $ECHO_C" >&6
3875
if eval "test \"\${jm_cv_func_decl_$jm_func+set}\" = set"; then
3876
echo $ECHO_N "(cached) $ECHO_C" >&6
3878
cat >conftest.$ac_ext <<_ACEOF
3879
#line 3879 "configure"
3880
#include "confdefs.h"
3887
char *(*pfn) = (char *(*)) $jm_func
3894
rm -f conftest.$ac_objext
3895
if { (eval echo "$as_me:3895: \"$ac_compile\"") >&5
3896
(eval $ac_compile) 2>&5
3898
echo "$as_me:3898: \$? = $ac_status" >&5
3899
(exit $ac_status); } &&
3900
{ ac_try='test -s conftest.$ac_objext'
3901
{ (eval echo "$as_me:3901: \"$ac_try\"") >&5
3904
echo "$as_me:3904: \$? = $ac_status" >&5
3905
(exit $ac_status); }; }; then
3906
eval "jm_cv_func_decl_$jm_func=yes"
3908
echo "$as_me: failed program was:" >&5
3909
cat conftest.$ac_ext >&5
3910
eval "jm_cv_func_decl_$jm_func=no"
3912
rm -f conftest.$ac_objext conftest.$ac_ext
3915
if eval "test \"`echo '$jm_cv_func_decl_'$jm_func`\" = yes"; then
3916
echo "$as_me:3916: result: yes" >&5
3917
echo "${ECHO_T}yes" >&6
3919
jm_tr_func=HAVE_DECL_`echo $jm_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
3920
cat >>confdefs.h <<EOF
3921
#define $jm_tr_func 1
3925
echo "$as_me:3925: result: no" >&5
3926
echo "${ECHO_T}no" >&6
5200
cat >>confdefs.h <<_ACEOF
5201
#define HAVE_DECL_STRERROR 0
5209
# Checks for library functions.
3930
5210
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3931
5211
# for constant arguments. Useless!
3932
echo "$as_me:3932: checking for working alloca.h" >&5
5212
echo "$as_me:$LINENO: checking for working alloca.h" >&5
3933
5213
echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
3934
5214
if test "${ac_cv_working_alloca_h+set}" = set; then
3935
5215
echo $ECHO_N "(cached) $ECHO_C" >&6
3937
5217
cat >conftest.$ac_ext <<_ACEOF
3938
#line 3938 "configure"
3939
#include "confdefs.h"
5220
cat confdefs.h >>conftest.$ac_ext
5221
cat >>conftest.$ac_ext <<_ACEOF
5222
/* end confdefs.h. */
3940
5223
#include <alloca.h>
4239
5594
rm -f conftest$ac_exeext
4240
if { (eval echo "$as_me:4240: \"$ac_link\"") >&5
5595
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4241
5596
(eval $ac_link) 2>&5
4243
echo "$as_me:4243: \$? = $ac_status" >&5
5598
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244
5599
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4245
{ (eval echo "$as_me:4245: \"$ac_try\"") >&5
5600
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4246
5601
(eval $ac_try) 2>&5
4248
echo "$as_me:4248: \$? = $ac_status" >&5
5603
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249
5604
(exit $ac_status); }; }; then
4250
5605
ac_cv_func_strcoll_works=yes
4252
5607
echo "$as_me: program exited with status $ac_status" >&5
4253
5608
echo "$as_me: failed program was:" >&5
4254
cat conftest.$ac_ext >&5
5609
sed 's/^/| /' conftest.$ac_ext >&5
4255
5612
ac_cv_func_strcoll_works=no
4257
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4260
echo "$as_me:4260: result: $ac_cv_func_strcoll_works" >&5
5614
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5617
echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
4261
5618
echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6
4262
5619
if test $ac_cv_func_strcoll_works = yes; then
4264
cat >>confdefs.h <<\EOF
5621
cat >>confdefs.h <<\_ACEOF
4265
5622
#define HAVE_STRCOLL 1
4270
5628
for ac_func in vprintf
4272
5630
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4273
echo "$as_me:4273: checking for $ac_func" >&5
5631
echo "$as_me:$LINENO: checking for $ac_func" >&5
4274
5632
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4275
5633
if eval "test \"\${$as_ac_var+set}\" = set"; then
4276
5634
echo $ECHO_N "(cached) $ECHO_C" >&6
4278
5636
cat >conftest.$ac_ext <<_ACEOF
4279
#line 4279 "configure"
4280
#include "confdefs.h"
5639
cat confdefs.h >>conftest.$ac_ext
5640
cat >>conftest.$ac_ext <<_ACEOF
5641
/* end confdefs.h. */
5642
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5643
For example, HP-UX 11i <limits.h> declares gettimeofday. */
5644
#define $ac_func innocuous_$ac_func
4281
5646
/* System header to define __stub macros and hopefully few prototypes,
4282
which can conflict with char $ac_func (); below. */
5647
which can conflict with char $ac_func (); below.
5648
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5649
<limits.h> exists even on freestanding compilers. */
5652
# include <limits.h>
5654
# include <assert.h>
4284
5659
/* Override any gcc2 internal prototype to avoid an error. */
4285
5660
#ifdef __cplusplus
4288
5664
/* We use char because int might match the return type of a gcc2
4289
5665
builtin and then its argument prototype would still apply. */
4290
5666
char $ac_func ();
4296
5667
/* The GNU C library defines this for functions which it implements
4297
5668
to always fail with ENOSYS. Some functions are actually named
4298
5669
something starting with __ and the normal name is an alias. */
4299
5670
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5673
char (*f) () = $ac_func;
5682
return f != $ac_func;
4309
5687
rm -f conftest.$ac_objext conftest$ac_exeext
4310
if { (eval echo "$as_me:4310: \"$ac_link\"") >&5
4311
(eval $ac_link) 2>&5
5688
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5689
(eval $ac_link) 2>conftest.er1
4313
echo "$as_me:4313: \$? = $ac_status" >&5
5691
grep -v '^ *+' conftest.er1 >conftest.err
5693
cat conftest.err >&5
5694
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314
5695
(exit $ac_status); } &&
4315
{ ac_try='test -s conftest$ac_exeext'
4316
{ (eval echo "$as_me:4316: \"$ac_try\"") >&5
4319
echo "$as_me:4319: \$? = $ac_status" >&5
5696
{ ac_try='test -z "$ac_c_werror_flag"
5697
|| test ! -s conftest.err'
5698
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5701
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702
(exit $ac_status); }; } &&
5703
{ ac_try='test -s conftest$ac_exeext'
5704
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5707
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4320
5708
(exit $ac_status); }; }; then
4321
5709
eval "$as_ac_var=yes"
4323
5711
echo "$as_me: failed program was:" >&5
4324
cat conftest.$ac_ext >&5
5712
sed 's/^/| /' conftest.$ac_ext >&5
4325
5714
eval "$as_ac_var=no"
4327
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5716
rm -f conftest.err conftest.$ac_objext \
5717
conftest$ac_exeext conftest.$ac_ext
4329
echo "$as_me:4329: result: `eval echo '${'$as_ac_var'}'`" >&5
5719
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4330
5720
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4331
5721
if test `eval echo '${'$as_ac_var'}'` = yes; then
4332
cat >>confdefs.h <<EOF
5722
cat >>confdefs.h <<_ACEOF
4333
5723
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4336
echo "$as_me:4336: checking for _doprnt" >&5
5726
echo "$as_me:$LINENO: checking for _doprnt" >&5
4337
5727
echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
4338
5728
if test "${ac_cv_func__doprnt+set}" = set; then
4339
5729
echo $ECHO_N "(cached) $ECHO_C" >&6
4341
5731
cat >conftest.$ac_ext <<_ACEOF
4342
#line 4342 "configure"
4343
#include "confdefs.h"
5734
cat confdefs.h >>conftest.$ac_ext
5735
cat >>conftest.$ac_ext <<_ACEOF
5736
/* end confdefs.h. */
5737
/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
5738
For example, HP-UX 11i <limits.h> declares gettimeofday. */
5739
#define _doprnt innocuous__doprnt
4344
5741
/* System header to define __stub macros and hopefully few prototypes,
4345
which can conflict with char _doprnt (); below. */
5742
which can conflict with char _doprnt (); below.
5743
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5744
<limits.h> exists even on freestanding compilers. */
5747
# include <limits.h>
5749
# include <assert.h>
4347
5754
/* Override any gcc2 internal prototype to avoid an error. */
4348
5755
#ifdef __cplusplus
4351
5759
/* We use char because int might match the return type of a gcc2
4352
5760
builtin and then its argument prototype would still apply. */
4353
5761
char _doprnt ();
4359
5762
/* The GNU C library defines this for functions which it implements
4360
5763
to always fail with ENOSYS. Some functions are actually named
4361
5764
something starting with __ and the normal name is an alias. */
4362
5765
#if defined (__stub__doprnt) || defined (__stub____doprnt)
5768
char (*f) () = _doprnt;
5777
return f != _doprnt;
4372
5782
rm -f conftest.$ac_objext conftest$ac_exeext
4373
if { (eval echo "$as_me:4373: \"$ac_link\"") >&5
4374
(eval $ac_link) 2>&5
5783
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5784
(eval $ac_link) 2>conftest.er1
4376
echo "$as_me:4376: \$? = $ac_status" >&5
5786
grep -v '^ *+' conftest.er1 >conftest.err
5788
cat conftest.err >&5
5789
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377
5790
(exit $ac_status); } &&
4378
{ ac_try='test -s conftest$ac_exeext'
4379
{ (eval echo "$as_me:4379: \"$ac_try\"") >&5
4382
echo "$as_me:4382: \$? = $ac_status" >&5
5791
{ ac_try='test -z "$ac_c_werror_flag"
5792
|| test ! -s conftest.err'
5793
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5796
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797
(exit $ac_status); }; } &&
5798
{ ac_try='test -s conftest$ac_exeext'
5799
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5802
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383
5803
(exit $ac_status); }; }; then
4384
5804
ac_cv_func__doprnt=yes
4386
5806
echo "$as_me: failed program was:" >&5
4387
cat conftest.$ac_ext >&5
5807
sed 's/^/| /' conftest.$ac_ext >&5
4388
5809
ac_cv_func__doprnt=no
4390
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5811
rm -f conftest.err conftest.$ac_objext \
5812
conftest$ac_exeext conftest.$ac_ext
4392
echo "$as_me:4392: result: $ac_cv_func__doprnt" >&5
5814
echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
4393
5815
echo "${ECHO_T}$ac_cv_func__doprnt" >&6
4394
5816
if test $ac_cv_func__doprnt = yes; then
4396
cat >>confdefs.h <<\EOF
5818
cat >>confdefs.h <<\_ACEOF
4397
5819
#define HAVE_DOPRNT 1
4405
for ac_func in setvbuf getcwd memset bzero strchr sigprocmask sigsetmask
4407
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4408
echo "$as_me:4408: checking for $ac_func" >&5
4409
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4410
if eval "test \"\${$as_ac_var+set}\" = set"; then
4411
echo $ECHO_N "(cached) $ECHO_C" >&6
4413
cat >conftest.$ac_ext <<_ACEOF
4414
#line 4414 "configure"
4415
#include "confdefs.h"
4416
/* System header to define __stub macros and hopefully few prototypes,
4417
which can conflict with char $ac_func (); below. */
4419
/* Override any gcc2 internal prototype to avoid an error. */
4423
/* We use char because int might match the return type of a gcc2
4424
builtin and then its argument prototype would still apply. */
4431
/* The GNU C library defines this for functions which it implements
4432
to always fail with ENOSYS. Some functions are actually named
4433
something starting with __ and the normal name is an alias. */
4434
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4444
rm -f conftest.$ac_objext conftest$ac_exeext
4445
if { (eval echo "$as_me:4445: \"$ac_link\"") >&5
4446
(eval $ac_link) 2>&5
4448
echo "$as_me:4448: \$? = $ac_status" >&5
4449
(exit $ac_status); } &&
4450
{ ac_try='test -s conftest$ac_exeext'
4451
{ (eval echo "$as_me:4451: \"$ac_try\"") >&5
4454
echo "$as_me:4454: \$? = $ac_status" >&5
4455
(exit $ac_status); }; }; then
4456
eval "$as_ac_var=yes"
4458
echo "$as_me: failed program was:" >&5
4459
cat conftest.$ac_ext >&5
4460
eval "$as_ac_var=no"
4462
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4464
echo "$as_me:4464: result: `eval echo '${'$as_ac_var'}'`" >&5
4465
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4466
if test `eval echo '${'$as_ac_var'}'` = yes; then
4467
cat >>confdefs.h <<EOF
4468
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4474
for ac_func in memcpy memmove strdup strcasecmp strerror strncasecmp
4476
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4477
echo "$as_me:4477: checking for $ac_func" >&5
4478
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4479
if eval "test \"\${$as_ac_var+set}\" = set"; then
4480
echo $ECHO_N "(cached) $ECHO_C" >&6
4482
cat >conftest.$ac_ext <<_ACEOF
4483
#line 4483 "configure"
4484
#include "confdefs.h"
4485
/* System header to define __stub macros and hopefully few prototypes,
4486
which can conflict with char $ac_func (); below. */
4488
/* Override any gcc2 internal prototype to avoid an error. */
4492
/* We use char because int might match the return type of a gcc2
4493
builtin and then its argument prototype would still apply. */
4500
/* The GNU C library defines this for functions which it implements
4501
to always fail with ENOSYS. Some functions are actually named
4502
something starting with __ and the normal name is an alias. */
4503
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4513
rm -f conftest.$ac_objext conftest$ac_exeext
4514
if { (eval echo "$as_me:4514: \"$ac_link\"") >&5
4515
(eval $ac_link) 2>&5
4517
echo "$as_me:4517: \$? = $ac_status" >&5
4518
(exit $ac_status); } &&
4519
{ ac_try='test -s conftest$ac_exeext'
4520
{ (eval echo "$as_me:4520: \"$ac_try\"") >&5
4523
echo "$as_me:4523: \$? = $ac_status" >&5
4524
(exit $ac_status); }; }; then
4525
eval "$as_ac_var=yes"
4527
echo "$as_me: failed program was:" >&5
4528
cat conftest.$ac_ext >&5
4529
eval "$as_ac_var=no"
4531
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4533
echo "$as_me:4533: result: `eval echo '${'$as_ac_var'}'`" >&5
4534
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4535
if test `eval echo '${'$as_ac_var'}'` = yes; then
4536
cat >>confdefs.h <<EOF
4537
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4541
LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
5828
# in theory only pre-sysvr3 systems needed this and it's not likely
5829
# that anyone compiling new texinfo still has such a thing? we'll see.
5830
# AC_FUNC_SETVBUF_REVERSED
5839
for ac_func in bzero getcwd memset setvbuf sigaction sigprocmask \
5842
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5843
echo "$as_me:$LINENO: checking for $ac_func" >&5
5844
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5845
if eval "test \"\${$as_ac_var+set}\" = set"; then
5846
echo $ECHO_N "(cached) $ECHO_C" >&6
5848
cat >conftest.$ac_ext <<_ACEOF
5851
cat confdefs.h >>conftest.$ac_ext
5852
cat >>conftest.$ac_ext <<_ACEOF
5853
/* end confdefs.h. */
5854
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5855
For example, HP-UX 11i <limits.h> declares gettimeofday. */
5856
#define $ac_func innocuous_$ac_func
5858
/* System header to define __stub macros and hopefully few prototypes,
5859
which can conflict with char $ac_func (); below.
5860
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5861
<limits.h> exists even on freestanding compilers. */
5864
# include <limits.h>
5866
# include <assert.h>
5871
/* Override any gcc2 internal prototype to avoid an error. */
5876
/* We use char because int might match the return type of a gcc2
5877
builtin and then its argument prototype would still apply. */
5879
/* The GNU C library defines this for functions which it implements
5880
to always fail with ENOSYS. Some functions are actually named
5881
something starting with __ and the normal name is an alias. */
5882
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5885
char (*f) () = $ac_func;
5894
return f != $ac_func;
5899
rm -f conftest.$ac_objext conftest$ac_exeext
5900
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5901
(eval $ac_link) 2>conftest.er1
5903
grep -v '^ *+' conftest.er1 >conftest.err
5905
cat conftest.err >&5
5906
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907
(exit $ac_status); } &&
5908
{ ac_try='test -z "$ac_c_werror_flag"
5909
|| test ! -s conftest.err'
5910
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5913
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914
(exit $ac_status); }; } &&
5915
{ ac_try='test -s conftest$ac_exeext'
5916
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5919
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920
(exit $ac_status); }; }; then
5921
eval "$as_ac_var=yes"
5923
echo "$as_me: failed program was:" >&5
5924
sed 's/^/| /' conftest.$ac_ext >&5
5926
eval "$as_ac_var=no"
5928
rm -f conftest.err conftest.$ac_objext \
5929
conftest$ac_exeext conftest.$ac_ext
5931
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5932
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5933
if test `eval echo '${'$as_ac_var'}'` = yes; then
5934
cat >>confdefs.h <<_ACEOF
5935
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5945
for ac_func in memcpy memmove strdup strerror
5947
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5948
echo "$as_me:$LINENO: checking for $ac_func" >&5
5949
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5950
if eval "test \"\${$as_ac_var+set}\" = set"; then
5951
echo $ECHO_N "(cached) $ECHO_C" >&6
5953
cat >conftest.$ac_ext <<_ACEOF
5956
cat confdefs.h >>conftest.$ac_ext
5957
cat >>conftest.$ac_ext <<_ACEOF
5958
/* end confdefs.h. */
5959
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5960
For example, HP-UX 11i <limits.h> declares gettimeofday. */
5961
#define $ac_func innocuous_$ac_func
5963
/* System header to define __stub macros and hopefully few prototypes,
5964
which can conflict with char $ac_func (); below.
5965
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5966
<limits.h> exists even on freestanding compilers. */
5969
# include <limits.h>
5971
# include <assert.h>
5976
/* Override any gcc2 internal prototype to avoid an error. */
5981
/* We use char because int might match the return type of a gcc2
5982
builtin and then its argument prototype would still apply. */
5984
/* The GNU C library defines this for functions which it implements
5985
to always fail with ENOSYS. Some functions are actually named
5986
something starting with __ and the normal name is an alias. */
5987
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5990
char (*f) () = $ac_func;
5999
return f != $ac_func;
6004
rm -f conftest.$ac_objext conftest$ac_exeext
6005
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6006
(eval $ac_link) 2>conftest.er1
6008
grep -v '^ *+' conftest.er1 >conftest.err
6010
cat conftest.err >&5
6011
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012
(exit $ac_status); } &&
6013
{ ac_try='test -z "$ac_c_werror_flag"
6014
|| test ! -s conftest.err'
6015
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6018
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019
(exit $ac_status); }; } &&
6020
{ ac_try='test -s conftest$ac_exeext'
6021
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6024
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025
(exit $ac_status); }; }; then
6026
eval "$as_ac_var=yes"
6028
echo "$as_me: failed program was:" >&5
6029
sed 's/^/| /' conftest.$ac_ext >&5
6031
eval "$as_ac_var=no"
6033
rm -f conftest.err conftest.$ac_objext \
6034
conftest$ac_exeext conftest.$ac_ext
6036
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6037
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6038
if test `eval echo '${'$as_ac_var'}'` = yes; then
6039
cat >>confdefs.h <<_ACEOF
6040
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6045
"$ac_func.$ac_objext" | \
6046
*" $ac_func.$ac_objext" | \
6047
"$ac_func.$ac_objext "* | \
6048
*" $ac_func.$ac_objext "* ) ;;
6049
*) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
6057
# strcasecmp and strncasecmp, gnulib-style.
6061
for ac_func in strcasecmp
6063
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6064
echo "$as_me:$LINENO: checking for $ac_func" >&5
6065
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6066
if eval "test \"\${$as_ac_var+set}\" = set"; then
6067
echo $ECHO_N "(cached) $ECHO_C" >&6
6069
cat >conftest.$ac_ext <<_ACEOF
6072
cat confdefs.h >>conftest.$ac_ext
6073
cat >>conftest.$ac_ext <<_ACEOF
6074
/* end confdefs.h. */
6075
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6076
For example, HP-UX 11i <limits.h> declares gettimeofday. */
6077
#define $ac_func innocuous_$ac_func
6079
/* System header to define __stub macros and hopefully few prototypes,
6080
which can conflict with char $ac_func (); below.
6081
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6082
<limits.h> exists even on freestanding compilers. */
6085
# include <limits.h>
6087
# include <assert.h>
6092
/* Override any gcc2 internal prototype to avoid an error. */
6097
/* We use char because int might match the return type of a gcc2
6098
builtin and then its argument prototype would still apply. */
6100
/* The GNU C library defines this for functions which it implements
6101
to always fail with ENOSYS. Some functions are actually named
6102
something starting with __ and the normal name is an alias. */
6103
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6106
char (*f) () = $ac_func;
6115
return f != $ac_func;
6120
rm -f conftest.$ac_objext conftest$ac_exeext
6121
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6122
(eval $ac_link) 2>conftest.er1
6124
grep -v '^ *+' conftest.er1 >conftest.err
6126
cat conftest.err >&5
6127
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128
(exit $ac_status); } &&
6129
{ ac_try='test -z "$ac_c_werror_flag"
6130
|| test ! -s conftest.err'
6131
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6134
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135
(exit $ac_status); }; } &&
6136
{ ac_try='test -s conftest$ac_exeext'
6137
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6140
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141
(exit $ac_status); }; }; then
6142
eval "$as_ac_var=yes"
6144
echo "$as_me: failed program was:" >&5
6145
sed 's/^/| /' conftest.$ac_ext >&5
6147
eval "$as_ac_var=no"
6149
rm -f conftest.err conftest.$ac_objext \
6150
conftest$ac_exeext conftest.$ac_ext
6152
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6153
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6154
if test `eval echo '${'$as_ac_var'}'` = yes; then
6155
cat >>confdefs.h <<_ACEOF
6156
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6161
"$ac_func.$ac_objext" | \
6162
*" $ac_func.$ac_objext" | \
6163
"$ac_func.$ac_objext "* | \
6164
*" $ac_func.$ac_objext "* ) ;;
6165
*) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
6172
if test $ac_cv_func_strcasecmp = no; then
6180
for ac_func in strncasecmp
6182
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6183
echo "$as_me:$LINENO: checking for $ac_func" >&5
6184
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6185
if eval "test \"\${$as_ac_var+set}\" = set"; then
6186
echo $ECHO_N "(cached) $ECHO_C" >&6
6188
cat >conftest.$ac_ext <<_ACEOF
6191
cat confdefs.h >>conftest.$ac_ext
6192
cat >>conftest.$ac_ext <<_ACEOF
6193
/* end confdefs.h. */
6194
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6195
For example, HP-UX 11i <limits.h> declares gettimeofday. */
6196
#define $ac_func innocuous_$ac_func
6198
/* System header to define __stub macros and hopefully few prototypes,
6199
which can conflict with char $ac_func (); below.
6200
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6201
<limits.h> exists even on freestanding compilers. */
6204
# include <limits.h>
6206
# include <assert.h>
6211
/* Override any gcc2 internal prototype to avoid an error. */
6216
/* We use char because int might match the return type of a gcc2
6217
builtin and then its argument prototype would still apply. */
6219
/* The GNU C library defines this for functions which it implements
6220
to always fail with ENOSYS. Some functions are actually named
6221
something starting with __ and the normal name is an alias. */
6222
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6225
char (*f) () = $ac_func;
6234
return f != $ac_func;
6239
rm -f conftest.$ac_objext conftest$ac_exeext
6240
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6241
(eval $ac_link) 2>conftest.er1
6243
grep -v '^ *+' conftest.er1 >conftest.err
6245
cat conftest.err >&5
6246
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247
(exit $ac_status); } &&
6248
{ ac_try='test -z "$ac_c_werror_flag"
6249
|| test ! -s conftest.err'
6250
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6253
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254
(exit $ac_status); }; } &&
6255
{ ac_try='test -s conftest$ac_exeext'
6256
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6259
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260
(exit $ac_status); }; }; then
6261
eval "$as_ac_var=yes"
6263
echo "$as_me: failed program was:" >&5
6264
sed 's/^/| /' conftest.$ac_ext >&5
6266
eval "$as_ac_var=no"
6268
rm -f conftest.err conftest.$ac_objext \
6269
conftest$ac_exeext conftest.$ac_ext
6271
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6272
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6273
if test `eval echo '${'$as_ac_var'}'` = yes; then
6274
cat >>confdefs.h <<_ACEOF
6275
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6280
"$ac_func.$ac_objext" | \
6281
*" $ac_func.$ac_objext" | \
6282
"$ac_func.$ac_objext "* | \
6283
*" $ac_func.$ac_objext "* ) ;;
6284
*) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
6291
if test $ac_cv_func_strncasecmp = no; then
6299
# We want to recognize djgpp to avoid the useless warning about no
6301
# Make sure we can run config.sub.
6302
$ac_config_sub sun4 >/dev/null 2>&1 ||
6303
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
6304
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
6305
{ (exit 1); exit 1; }; }
6307
echo "$as_me:$LINENO: checking build system type" >&5
6308
echo $ECHO_N "checking build system type... $ECHO_C" >&6
6309
if test "${ac_cv_build+set}" = set; then
6310
echo $ECHO_N "(cached) $ECHO_C" >&6
6312
ac_cv_build_alias=$build_alias
6313
test -z "$ac_cv_build_alias" &&
6314
ac_cv_build_alias=`$ac_config_guess`
6315
test -z "$ac_cv_build_alias" &&
6316
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6317
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6318
{ (exit 1); exit 1; }; }
6319
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
6320
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
6321
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
6322
{ (exit 1); exit 1; }; }
6325
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
6326
echo "${ECHO_T}$ac_cv_build" >&6
6328
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6329
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6330
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6334
# We need to run some of our own binaries, most notably makedoc, but as
6335
# long as we have this process, we also use our own makeinfo and
6338
# This means that if we are cross compiling, we have to configure the
6339
# package twice: once with the native compiler (this is done in a
6340
# subdirectory $native_tools), and once with the cross compiler.
6341
# The former is invoked automatically here, with --host=$build.
6342
# $native_tools is also added to SUBDIRS in the main Makefile.am,
6343
# so that make compiles the native tools first.
6345
if test "$cross_compiling" = no; then
6349
test -d "$native_tools" || mkdir "$native_tools"
6350
confdir=`(cd "$srcdir";pwd)`
6351
# Make sure the secondary configure won't fail with
6352
# "error: source directory already configured".
6354
{ echo "$as_me:$LINENO: Doing configure of native tools (${build})." >&5
6355
echo "$as_me: Doing configure of native tools (${build})." >&6;}
6356
cd "$native_tools" || exit 1
6357
# Run secondary configure in alternate environment or
6358
# it gets the wrong CC etc. env -i gives this build host configure
6359
# a clean environment.
6360
env -i CC="${BUILD_CC}" AR="${BUILD_AR}" RANLIB="${BUILD_RANLIB}" \
6363
${confdir}/configure --build=${build} --host=${build} \
6364
--disable-rpath --disable-nls
6366
{ echo "$as_me:$LINENO: Continuing with main configure (${host})." >&5
6367
echo "$as_me: Continuing with main configure (${host})." >&6;}
6372
if test "x$tools_only" = x1; then
6374
TOOLS_ONLY_FALSE='#'
6381
# Some GNU/Linux systems (e.g., SuSE 4.3, 1996) don't have curses, but
6382
# rather ncurses. So we check for it.
6384
# Check for termlib before termcap because Solaris termcap needs libucb.
6385
TERMLIB_VARIANTS="ncurses curses termlib termcap terminfo"
6386
for termlib in ${TERMLIB_VARIANTS}; do
6387
as_ac_Lib=`echo "ac_cv_lib_${termlib}''_tgetent" | $as_tr_sh`
6388
echo "$as_me:$LINENO: checking for tgetent in -l${termlib}" >&5
6389
echo $ECHO_N "checking for tgetent in -l${termlib}... $ECHO_C" >&6
6390
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
6391
echo $ECHO_N "(cached) $ECHO_C" >&6
6393
ac_check_lib_save_LIBS=$LIBS
6394
LIBS="-l${termlib} $LIBS"
6395
cat >conftest.$ac_ext <<_ACEOF
6398
cat confdefs.h >>conftest.$ac_ext
6399
cat >>conftest.$ac_ext <<_ACEOF
6400
/* end confdefs.h. */
6402
/* Override any gcc2 internal prototype to avoid an error. */
6406
/* We use char because int might match the return type of a gcc2
6407
builtin and then its argument prototype would still apply. */
6417
rm -f conftest.$ac_objext conftest$ac_exeext
6418
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6419
(eval $ac_link) 2>conftest.er1
6421
grep -v '^ *+' conftest.er1 >conftest.err
6423
cat conftest.err >&5
6424
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425
(exit $ac_status); } &&
6426
{ ac_try='test -z "$ac_c_werror_flag"
6427
|| test ! -s conftest.err'
6428
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6431
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432
(exit $ac_status); }; } &&
6433
{ ac_try='test -s conftest$ac_exeext'
6434
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6437
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438
(exit $ac_status); }; }; then
6439
eval "$as_ac_Lib=yes"
6441
echo "$as_me: failed program was:" >&5
6442
sed 's/^/| /' conftest.$ac_ext >&5
6444
eval "$as_ac_Lib=no"
6446
rm -f conftest.err conftest.$ac_objext \
6447
conftest$ac_exeext conftest.$ac_ext
6448
LIBS=$ac_check_lib_save_LIBS
6450
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
6451
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
6452
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
6453
TERMLIBS="${TERMLIBS} -l${termlib}"; break
6457
# don't bother warning on djgpp, it doesn't have a term library, it
6458
# ports each termcap-needing program separately according to its needs.
6459
if test -z "$TERMLIBS" && echo "$build" | grep -v djgpp >/dev/null; then
6460
{ echo "$as_me:$LINENO: WARNING: probably need a terminal library, one of: ${TERMLIB_VARIANTS}" >&5
6461
echo "$as_me: WARNING: probably need a terminal library, one of: ${TERMLIB_VARIANTS}" >&2;}
6464
# Checks for variables.
4545
6465
# HP-UX 9 (at least) needs -lncurses which defines termcap variables PC etc.
4546
echo "$as_me:4546: checking for library with termcap variables" >&5
6466
echo "$as_me:$LINENO: checking for library with termcap variables" >&5
4547
6467
echo $ECHO_N "checking for library with termcap variables... $ECHO_C" >&6
4548
6468
if test "${ac_cv_var_ospeed+set}" = set; then
4549
6469
echo $ECHO_N "(cached) $ECHO_C" >&6
4552
for trylib in $termlib ncurses curses termlib termcap terminfo; do
6472
for trylib in $termlib ${TERMLIB_VARIANTS}; do
4553
6473
if test "x$trylib" != "x$termlib"; then
4554
6474
LIBS="$oldLIBS -l$termlib -l$trylib"
4556
6476
LIBS="$oldLIBS -l$termlib"
4558
6478
cat >conftest.$ac_ext <<_ACEOF
4559
#line 4559 "configure"
4560
#include "confdefs.h"
6481
cat confdefs.h >>conftest.$ac_ext
6482
cat >>conftest.$ac_ext <<_ACEOF
6483
/* end confdefs.h. */
4578
6501
/* Make sure all variables actually exist. AIX 4.3 has ospeed but no BC.
4579
--Andreas Ley <andy@rz.uni-karlsruhe.de>
4584
rm -f conftest.$ac_objext conftest$ac_exeext
4585
if { (eval echo "$as_me:4585: \"$ac_link\"") >&5
4586
(eval $ac_link) 2>&5
4588
echo "$as_me:4588: \$? = $ac_status" >&5
4589
(exit $ac_status); } &&
4590
{ ac_try='test -s conftest$ac_exeext'
4591
{ (eval echo "$as_me:4591: \"$ac_try\"") >&5
4594
echo "$as_me:4594: \$? = $ac_status" >&5
4595
(exit $ac_status); }; }; then
6502
--Andreas Ley <andy@rz.uni-karlsruhe.de> 24 Aug 2000. */
4600
6506
return ospeed != 0;
6512
rm -f conftest.$ac_objext conftest$ac_exeext
6513
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6514
(eval $ac_link) 2>conftest.er1
6516
grep -v '^ *+' conftest.er1 >conftest.err
6518
cat conftest.err >&5
6519
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520
(exit $ac_status); } &&
6521
{ ac_try='test -z "$ac_c_werror_flag"
6522
|| test ! -s conftest.err'
6523
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6526
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527
(exit $ac_status); }; } &&
6528
{ ac_try='test -s conftest$ac_exeext'
6529
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6532
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533
(exit $ac_status); }; }; then
6534
ac_cv_var_ospeed=$trylib; break
4603
6536
echo "$as_me: failed program was:" >&5
4604
cat conftest.$ac_ext >&5
4605
ac_cv_var_ospeed=$trylib; break
6537
sed 's/^/| /' conftest.$ac_ext >&5
4607
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6540
rm -f conftest.err conftest.$ac_objext \
6541
conftest$ac_exeext conftest.$ac_ext
4613
echo "$as_me:4613: result: $ac_cv_var_ospeed" >&5
6547
echo "$as_me:$LINENO: result: $ac_cv_var_ospeed" >&5
4614
6548
echo "${ECHO_T}$ac_cv_var_ospeed" >&6
4615
6549
if test -n "$ac_cv_var_ospeed" \
4616
6550
&& test "x$termlib" != "x$ac_cv_var_ospeed"; then
4617
6551
TERMLIBS="${TERMLIBS} -l${ac_cv_var_ospeed}"
6555
# Do not use <ncurses/termcap.h> unless we're linking with ncurses.
6556
# Must come after the termlib tests.
6557
if test "x$termlib" = xncurses; then
6558
# Use AC_CHECK_HEADERS so the HAVE_*_H symbol gets defined.
6560
for ac_header in ncurses/termcap.h
6562
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6563
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6564
echo "$as_me:$LINENO: checking for $ac_header" >&5
6565
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6566
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6567
echo $ECHO_N "(cached) $ECHO_C" >&6
6569
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6570
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6572
# Is the header compilable?
6573
echo "$as_me:$LINENO: checking $ac_header usability" >&5
6574
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6575
cat >conftest.$ac_ext <<_ACEOF
6578
cat confdefs.h >>conftest.$ac_ext
6579
cat >>conftest.$ac_ext <<_ACEOF
6580
/* end confdefs.h. */
6581
$ac_includes_default
6582
#include <$ac_header>
6584
rm -f conftest.$ac_objext
6585
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6586
(eval $ac_compile) 2>conftest.er1
6588
grep -v '^ *+' conftest.er1 >conftest.err
6590
cat conftest.err >&5
6591
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6592
(exit $ac_status); } &&
6593
{ ac_try='test -z "$ac_c_werror_flag"
6594
|| test ! -s conftest.err'
6595
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6598
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599
(exit $ac_status); }; } &&
6600
{ ac_try='test -s conftest.$ac_objext'
6601
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6604
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605
(exit $ac_status); }; }; then
6606
ac_header_compiler=yes
6608
echo "$as_me: failed program was:" >&5
6609
sed 's/^/| /' conftest.$ac_ext >&5
6611
ac_header_compiler=no
6613
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6614
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6615
echo "${ECHO_T}$ac_header_compiler" >&6
6617
# Is the header present?
6618
echo "$as_me:$LINENO: checking $ac_header presence" >&5
6619
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6620
cat >conftest.$ac_ext <<_ACEOF
6623
cat confdefs.h >>conftest.$ac_ext
6624
cat >>conftest.$ac_ext <<_ACEOF
6625
/* end confdefs.h. */
6626
#include <$ac_header>
6628
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6629
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6631
grep -v '^ *+' conftest.er1 >conftest.err
6633
cat conftest.err >&5
6634
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6635
(exit $ac_status); } >/dev/null; then
6636
if test -s conftest.err; then
6637
ac_cpp_err=$ac_c_preproc_warn_flag
6638
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6645
if test -z "$ac_cpp_err"; then
6646
ac_header_preproc=yes
6648
echo "$as_me: failed program was:" >&5
6649
sed 's/^/| /' conftest.$ac_ext >&5
6651
ac_header_preproc=no
6653
rm -f conftest.err conftest.$ac_ext
6654
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6655
echo "${ECHO_T}$ac_header_preproc" >&6
6657
# So? What about this header?
6658
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6660
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6661
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6662
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6663
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6664
ac_header_preproc=yes
6667
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6668
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6669
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6670
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6671
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6672
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6673
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6674
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6675
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6676
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6677
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6678
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6681
## -------------------------------------- ##
6682
## Report this to the GNU Texinfo lists. ##
6683
## -------------------------------------- ##
6686
sed "s/^/$as_me: WARNING: /" >&2
6689
echo "$as_me:$LINENO: checking for $ac_header" >&5
6690
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6691
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6692
echo $ECHO_N "(cached) $ECHO_C" >&6
6694
eval "$as_ac_Header=\$ac_header_preproc"
6696
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6697
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6700
if test `eval echo '${'$as_ac_Header'}'` = yes; then
6701
cat >>confdefs.h <<_ACEOF
6702
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6717
for ac_header in $gl_header_list
6719
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6720
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6721
echo "$as_me:$LINENO: checking for $ac_header" >&5
6722
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6723
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6724
echo $ECHO_N "(cached) $ECHO_C" >&6
6726
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6727
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6729
# Is the header compilable?
6730
echo "$as_me:$LINENO: checking $ac_header usability" >&5
6731
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6732
cat >conftest.$ac_ext <<_ACEOF
6735
cat confdefs.h >>conftest.$ac_ext
6736
cat >>conftest.$ac_ext <<_ACEOF
6737
/* end confdefs.h. */
6738
$ac_includes_default
6739
#include <$ac_header>
6741
rm -f conftest.$ac_objext
6742
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6743
(eval $ac_compile) 2>conftest.er1
6745
grep -v '^ *+' conftest.er1 >conftest.err
6747
cat conftest.err >&5
6748
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6749
(exit $ac_status); } &&
6750
{ ac_try='test -z "$ac_c_werror_flag"
6751
|| test ! -s conftest.err'
6752
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6755
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756
(exit $ac_status); }; } &&
6757
{ ac_try='test -s conftest.$ac_objext'
6758
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6761
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762
(exit $ac_status); }; }; then
6763
ac_header_compiler=yes
6765
echo "$as_me: failed program was:" >&5
6766
sed 's/^/| /' conftest.$ac_ext >&5
6768
ac_header_compiler=no
6770
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6771
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6772
echo "${ECHO_T}$ac_header_compiler" >&6
6774
# Is the header present?
6775
echo "$as_me:$LINENO: checking $ac_header presence" >&5
6776
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6777
cat >conftest.$ac_ext <<_ACEOF
6780
cat confdefs.h >>conftest.$ac_ext
6781
cat >>conftest.$ac_ext <<_ACEOF
6782
/* end confdefs.h. */
6783
#include <$ac_header>
6785
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6786
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6788
grep -v '^ *+' conftest.er1 >conftest.err
6790
cat conftest.err >&5
6791
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6792
(exit $ac_status); } >/dev/null; then
6793
if test -s conftest.err; then
6794
ac_cpp_err=$ac_c_preproc_warn_flag
6795
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6802
if test -z "$ac_cpp_err"; then
6803
ac_header_preproc=yes
6805
echo "$as_me: failed program was:" >&5
6806
sed 's/^/| /' conftest.$ac_ext >&5
6808
ac_header_preproc=no
6810
rm -f conftest.err conftest.$ac_ext
6811
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6812
echo "${ECHO_T}$ac_header_preproc" >&6
6814
# So? What about this header?
6815
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6817
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6818
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6819
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6820
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6821
ac_header_preproc=yes
6824
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6825
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6826
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6827
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6828
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6829
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6830
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6831
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6832
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6833
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6834
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6835
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6838
## -------------------------------------- ##
6839
## Report this to the GNU Texinfo lists. ##
6840
## -------------------------------------- ##
6843
sed "s/^/$as_me: WARNING: /" >&2
6846
echo "$as_me:$LINENO: checking for $ac_header" >&5
6847
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6848
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6849
echo $ECHO_N "(cached) $ECHO_C" >&6
6851
eval "$as_ac_Header=\$ac_header_preproc"
6853
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6854
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6857
if test `eval echo '${'$as_ac_Header'}'` = yes; then
6858
cat >>confdefs.h <<_ACEOF
6859
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6884
echo "$as_me:$LINENO: checking whether getenv is declared" >&5
6885
echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
6886
if test "${ac_cv_have_decl_getenv+set}" = set; then
6887
echo $ECHO_N "(cached) $ECHO_C" >&6
6889
cat >conftest.$ac_ext <<_ACEOF
6892
cat confdefs.h >>conftest.$ac_ext
6893
cat >>conftest.$ac_ext <<_ACEOF
6894
/* end confdefs.h. */
6895
$ac_includes_default
6900
char *p = (char *) getenv;
6907
rm -f conftest.$ac_objext
6908
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6909
(eval $ac_compile) 2>conftest.er1
6911
grep -v '^ *+' conftest.er1 >conftest.err
6913
cat conftest.err >&5
6914
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915
(exit $ac_status); } &&
6916
{ ac_try='test -z "$ac_c_werror_flag"
6917
|| test ! -s conftest.err'
6918
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6921
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922
(exit $ac_status); }; } &&
6923
{ ac_try='test -s conftest.$ac_objext'
6924
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6927
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928
(exit $ac_status); }; }; then
6929
ac_cv_have_decl_getenv=yes
6931
echo "$as_me: failed program was:" >&5
6932
sed 's/^/| /' conftest.$ac_ext >&5
6934
ac_cv_have_decl_getenv=no
6936
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6938
echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
6939
echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
6940
if test $ac_cv_have_decl_getenv = yes; then
6942
cat >>confdefs.h <<_ACEOF
6943
#define HAVE_DECL_GETENV 1
6948
cat >>confdefs.h <<_ACEOF
6949
#define HAVE_DECL_GETENV 0
6958
echo "$as_me:$LINENO: checking for inttypes.h" >&5
6959
echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6960
if test "${gl_cv_header_inttypes_h+set}" = set; then
6961
echo $ECHO_N "(cached) $ECHO_C" >&6
6963
cat >conftest.$ac_ext <<_ACEOF
6966
cat confdefs.h >>conftest.$ac_ext
6967
cat >>conftest.$ac_ext <<_ACEOF
6968
/* end confdefs.h. */
6969
#include <sys/types.h>
6970
#include <inttypes.h>
6974
uintmax_t i = (uintmax_t) -1;
6979
rm -f conftest.$ac_objext
6980
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6981
(eval $ac_compile) 2>conftest.er1
6983
grep -v '^ *+' conftest.er1 >conftest.err
6985
cat conftest.err >&5
6986
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987
(exit $ac_status); } &&
6988
{ ac_try='test -z "$ac_c_werror_flag"
6989
|| test ! -s conftest.err'
6990
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6993
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6994
(exit $ac_status); }; } &&
6995
{ ac_try='test -s conftest.$ac_objext'
6996
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6999
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000
(exit $ac_status); }; }; then
7001
gl_cv_header_inttypes_h=yes
7003
echo "$as_me: failed program was:" >&5
7004
sed 's/^/| /' conftest.$ac_ext >&5
7006
gl_cv_header_inttypes_h=no
7008
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7010
echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
7011
echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6
7012
if test $gl_cv_header_inttypes_h = yes; then
7014
cat >>confdefs.h <<_ACEOF
7015
#define HAVE_INTTYPES_H_WITH_UINTMAX 1
7021
echo "$as_me:$LINENO: checking for stdint.h" >&5
7022
echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
7023
if test "${gl_cv_header_stdint_h+set}" = set; then
7024
echo $ECHO_N "(cached) $ECHO_C" >&6
7026
cat >conftest.$ac_ext <<_ACEOF
7029
cat confdefs.h >>conftest.$ac_ext
7030
cat >>conftest.$ac_ext <<_ACEOF
7031
/* end confdefs.h. */
7032
#include <sys/types.h>
7037
uintmax_t i = (uintmax_t) -1;
7042
rm -f conftest.$ac_objext
7043
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7044
(eval $ac_compile) 2>conftest.er1
7046
grep -v '^ *+' conftest.er1 >conftest.err
7048
cat conftest.err >&5
7049
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050
(exit $ac_status); } &&
7051
{ ac_try='test -z "$ac_c_werror_flag"
7052
|| test ! -s conftest.err'
7053
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7056
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057
(exit $ac_status); }; } &&
7058
{ ac_try='test -s conftest.$ac_objext'
7059
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7062
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063
(exit $ac_status); }; }; then
7064
gl_cv_header_stdint_h=yes
7066
echo "$as_me: failed program was:" >&5
7067
sed 's/^/| /' conftest.$ac_ext >&5
7069
gl_cv_header_stdint_h=no
7071
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7073
echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
7074
echo "${ECHO_T}$gl_cv_header_stdint_h" >&6
7075
if test $gl_cv_header_stdint_h = yes; then
7077
cat >>confdefs.h <<_ACEOF
7078
#define HAVE_STDINT_H_WITH_UINTMAX 1
7084
echo "$as_me:$LINENO: checking for unsigned long long" >&5
7085
echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
7086
if test "${ac_cv_type_unsigned_long_long+set}" = set; then
7087
echo $ECHO_N "(cached) $ECHO_C" >&6
7089
cat >conftest.$ac_ext <<_ACEOF
7092
cat confdefs.h >>conftest.$ac_ext
7093
cat >>conftest.$ac_ext <<_ACEOF
7094
/* end confdefs.h. */
7095
unsigned long long ull = 1ULL; int i = 63;
7099
unsigned long long ullmax = (unsigned long long) -1;
7100
return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7105
rm -f conftest.$ac_objext conftest$ac_exeext
7106
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7107
(eval $ac_link) 2>conftest.er1
7109
grep -v '^ *+' conftest.er1 >conftest.err
7111
cat conftest.err >&5
7112
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113
(exit $ac_status); } &&
7114
{ ac_try='test -z "$ac_c_werror_flag"
7115
|| test ! -s conftest.err'
7116
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7119
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120
(exit $ac_status); }; } &&
7121
{ ac_try='test -s conftest$ac_exeext'
7122
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7125
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126
(exit $ac_status); }; }; then
7127
ac_cv_type_unsigned_long_long=yes
7129
echo "$as_me: failed program was:" >&5
7130
sed 's/^/| /' conftest.$ac_ext >&5
7132
ac_cv_type_unsigned_long_long=no
7134
rm -f conftest.err conftest.$ac_objext \
7135
conftest$ac_exeext conftest.$ac_ext
7137
echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
7138
echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
7139
if test $ac_cv_type_unsigned_long_long = yes; then
7141
cat >>confdefs.h <<\_ACEOF
7142
#define HAVE_UNSIGNED_LONG_LONG 1
7150
if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
7152
test $ac_cv_type_unsigned_long_long = yes \
7153
&& ac_type='unsigned long long' \
7154
|| ac_type='unsigned long'
7156
cat >>confdefs.h <<_ACEOF
7157
#define uintmax_t $ac_type
7162
cat >>confdefs.h <<\_ACEOF
7163
#define HAVE_UINTMAX_T 1
7169
for ac_func in mkstemp
7171
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7172
echo "$as_me:$LINENO: checking for $ac_func" >&5
7173
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7174
if eval "test \"\${$as_ac_var+set}\" = set"; then
7175
echo $ECHO_N "(cached) $ECHO_C" >&6
7177
cat >conftest.$ac_ext <<_ACEOF
7180
cat confdefs.h >>conftest.$ac_ext
7181
cat >>conftest.$ac_ext <<_ACEOF
7182
/* end confdefs.h. */
7183
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7184
For example, HP-UX 11i <limits.h> declares gettimeofday. */
7185
#define $ac_func innocuous_$ac_func
7187
/* System header to define __stub macros and hopefully few prototypes,
7188
which can conflict with char $ac_func (); below.
7189
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7190
<limits.h> exists even on freestanding compilers. */
7193
# include <limits.h>
7195
# include <assert.h>
7200
/* Override any gcc2 internal prototype to avoid an error. */
7205
/* We use char because int might match the return type of a gcc2
7206
builtin and then its argument prototype would still apply. */
7208
/* The GNU C library defines this for functions which it implements
7209
to always fail with ENOSYS. Some functions are actually named
7210
something starting with __ and the normal name is an alias. */
7211
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7214
char (*f) () = $ac_func;
7223
return f != $ac_func;
7228
rm -f conftest.$ac_objext conftest$ac_exeext
7229
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7230
(eval $ac_link) 2>conftest.er1
7232
grep -v '^ *+' conftest.er1 >conftest.err
7234
cat conftest.err >&5
7235
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236
(exit $ac_status); } &&
7237
{ ac_try='test -z "$ac_c_werror_flag"
7238
|| test ! -s conftest.err'
7239
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7242
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243
(exit $ac_status); }; } &&
7244
{ ac_try='test -s conftest$ac_exeext'
7245
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7248
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249
(exit $ac_status); }; }; then
7250
eval "$as_ac_var=yes"
7252
echo "$as_me: failed program was:" >&5
7253
sed 's/^/| /' conftest.$ac_ext >&5
7255
eval "$as_ac_var=no"
7257
rm -f conftest.err conftest.$ac_objext \
7258
conftest$ac_exeext conftest.$ac_ext
7260
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7261
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7262
if test `eval echo '${'$as_ac_var'}'` = yes; then
7263
cat >>confdefs.h <<_ACEOF
7264
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7269
"$ac_func.$ac_objext" | \
7270
*" $ac_func.$ac_objext" | \
7271
"$ac_func.$ac_objext "* | \
7272
*" $ac_func.$ac_objext "* ) ;;
7273
*) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
7280
if test $ac_cv_func_mkstemp = no; then
7281
gl_cv_func_mkstemp_limitations=yes
7283
echo "$as_me:$LINENO: checking for mkstemp limitations" >&5
7284
echo $ECHO_N "checking for mkstemp limitations... $ECHO_C" >&6
7285
if test "${gl_cv_func_mkstemp_limitations+set}" = set; then
7286
echo $ECHO_N "(cached) $ECHO_C" >&6
7289
if test "$cross_compiling" = yes; then
7290
gl_cv_func_mkstemp_limitations=yes
7293
cat >conftest.$ac_ext <<_ACEOF
7296
cat confdefs.h >>conftest.$ac_ext
7297
cat >>conftest.$ac_ext <<_ACEOF
7298
/* end confdefs.h. */
7300
# include <stdlib.h>
7304
for (i = 0; i < 70; i++)
7306
char template[] = "conftestXXXXXX";
7307
int fd = mkstemp (template);
7316
rm -f conftest$ac_exeext
7317
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7318
(eval $ac_link) 2>&5
7320
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7322
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7325
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7326
(exit $ac_status); }; }; then
7327
gl_cv_func_mkstemp_limitations=no
7329
echo "$as_me: program exited with status $ac_status" >&5
7330
echo "$as_me: failed program was:" >&5
7331
sed 's/^/| /' conftest.$ac_ext >&5
7334
gl_cv_func_mkstemp_limitations=yes
7336
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7341
echo "$as_me:$LINENO: result: $gl_cv_func_mkstemp_limitations" >&5
7342
echo "${ECHO_T}$gl_cv_func_mkstemp_limitations" >&6
7345
if test $gl_cv_func_mkstemp_limitations = yes; then
7347
"mkstemp.$ac_objext" | \
7348
*" mkstemp.$ac_objext" | \
7349
"mkstemp.$ac_objext "* | \
7350
*" mkstemp.$ac_objext "* ) ;;
7351
*) LIBOBJS="$LIBOBJS mkstemp.$ac_objext" ;;
7355
"tempname.$ac_objext" | \
7356
*" tempname.$ac_objext" | \
7357
"tempname.$ac_objext "* | \
7358
*" tempname.$ac_objext "* ) ;;
7359
*) LIBOBJS="$LIBOBJS tempname.$ac_objext" ;;
7363
cat >>confdefs.h <<\_ACEOF
7364
#define mkstemp rpl_mkstemp
7385
for ac_header in stdint.h
7387
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7388
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7389
echo "$as_me:$LINENO: checking for $ac_header" >&5
7390
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7391
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7392
echo $ECHO_N "(cached) $ECHO_C" >&6
7394
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7395
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7397
# Is the header compilable?
7398
echo "$as_me:$LINENO: checking $ac_header usability" >&5
7399
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7400
cat >conftest.$ac_ext <<_ACEOF
7403
cat confdefs.h >>conftest.$ac_ext
7404
cat >>conftest.$ac_ext <<_ACEOF
7405
/* end confdefs.h. */
7406
$ac_includes_default
7407
#include <$ac_header>
7409
rm -f conftest.$ac_objext
7410
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7411
(eval $ac_compile) 2>conftest.er1
7413
grep -v '^ *+' conftest.er1 >conftest.err
7415
cat conftest.err >&5
7416
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7417
(exit $ac_status); } &&
7418
{ ac_try='test -z "$ac_c_werror_flag"
7419
|| test ! -s conftest.err'
7420
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7423
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424
(exit $ac_status); }; } &&
7425
{ ac_try='test -s conftest.$ac_objext'
7426
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7429
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7430
(exit $ac_status); }; }; then
7431
ac_header_compiler=yes
7433
echo "$as_me: failed program was:" >&5
7434
sed 's/^/| /' conftest.$ac_ext >&5
7436
ac_header_compiler=no
7438
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7439
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7440
echo "${ECHO_T}$ac_header_compiler" >&6
7442
# Is the header present?
7443
echo "$as_me:$LINENO: checking $ac_header presence" >&5
7444
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7445
cat >conftest.$ac_ext <<_ACEOF
7448
cat confdefs.h >>conftest.$ac_ext
7449
cat >>conftest.$ac_ext <<_ACEOF
7450
/* end confdefs.h. */
7451
#include <$ac_header>
7453
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7454
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7456
grep -v '^ *+' conftest.er1 >conftest.err
7458
cat conftest.err >&5
7459
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7460
(exit $ac_status); } >/dev/null; then
7461
if test -s conftest.err; then
7462
ac_cpp_err=$ac_c_preproc_warn_flag
7463
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7470
if test -z "$ac_cpp_err"; then
7471
ac_header_preproc=yes
7473
echo "$as_me: failed program was:" >&5
7474
sed 's/^/| /' conftest.$ac_ext >&5
7476
ac_header_preproc=no
7478
rm -f conftest.err conftest.$ac_ext
7479
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7480
echo "${ECHO_T}$ac_header_preproc" >&6
7482
# So? What about this header?
7483
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7485
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7486
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7487
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7488
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7489
ac_header_preproc=yes
7492
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7493
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7494
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7495
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7496
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7497
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7498
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7499
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7500
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7501
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7502
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7503
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7506
## -------------------------------------- ##
7507
## Report this to the GNU Texinfo lists. ##
7508
## -------------------------------------- ##
7511
sed "s/^/$as_me: WARNING: /" >&2
7514
echo "$as_me:$LINENO: checking for $ac_header" >&5
7515
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7516
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7517
echo $ECHO_N "(cached) $ECHO_C" >&6
7519
eval "$as_ac_Header=\$ac_header_preproc"
7521
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7522
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7525
if test `eval echo '${'$as_ac_Header'}'` = yes; then
7526
cat >>confdefs.h <<_ACEOF
7527
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7536
for ac_func in __secure_getenv gettimeofday
7538
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7539
echo "$as_me:$LINENO: checking for $ac_func" >&5
7540
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7541
if eval "test \"\${$as_ac_var+set}\" = set"; then
7542
echo $ECHO_N "(cached) $ECHO_C" >&6
7544
cat >conftest.$ac_ext <<_ACEOF
7547
cat confdefs.h >>conftest.$ac_ext
7548
cat >>conftest.$ac_ext <<_ACEOF
7549
/* end confdefs.h. */
7550
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7551
For example, HP-UX 11i <limits.h> declares gettimeofday. */
7552
#define $ac_func innocuous_$ac_func
7554
/* System header to define __stub macros and hopefully few prototypes,
7555
which can conflict with char $ac_func (); below.
7556
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7557
<limits.h> exists even on freestanding compilers. */
7560
# include <limits.h>
7562
# include <assert.h>
7567
/* Override any gcc2 internal prototype to avoid an error. */
7572
/* We use char because int might match the return type of a gcc2
7573
builtin and then its argument prototype would still apply. */
7575
/* The GNU C library defines this for functions which it implements
7576
to always fail with ENOSYS. Some functions are actually named
7577
something starting with __ and the normal name is an alias. */
7578
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7581
char (*f) () = $ac_func;
7590
return f != $ac_func;
7595
rm -f conftest.$ac_objext conftest$ac_exeext
7596
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7597
(eval $ac_link) 2>conftest.er1
7599
grep -v '^ *+' conftest.er1 >conftest.err
7601
cat conftest.err >&5
7602
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7603
(exit $ac_status); } &&
7604
{ ac_try='test -z "$ac_c_werror_flag"
7605
|| test ! -s conftest.err'
7606
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7609
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7610
(exit $ac_status); }; } &&
7611
{ ac_try='test -s conftest$ac_exeext'
7612
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7615
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7616
(exit $ac_status); }; }; then
7617
eval "$as_ac_var=yes"
7619
echo "$as_me: failed program was:" >&5
7620
sed 's/^/| /' conftest.$ac_ext >&5
7622
eval "$as_ac_var=no"
7624
rm -f conftest.err conftest.$ac_objext \
7625
conftest$ac_exeext conftest.$ac_ext
7627
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7628
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7629
if test `eval echo '${'$as_ac_var'}'` = yes; then
7630
cat >>confdefs.h <<_ACEOF
7631
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7649
# For teTeX and TeX Live.
7650
echo "$as_me:$LINENO: checking host system type" >&5
7651
echo $ECHO_N "checking host system type... $ECHO_C" >&6
7652
if test "${ac_cv_host+set}" = set; then
7653
echo $ECHO_N "(cached) $ECHO_C" >&6
7655
ac_cv_host_alias=$host_alias
7656
test -z "$ac_cv_host_alias" &&
7657
ac_cv_host_alias=$ac_cv_build_alias
7658
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
7659
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
7660
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
7661
{ (exit 1); exit 1; }; }
7664
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
7665
echo "${ECHO_T}$ac_cv_host" >&6
7667
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
7668
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
7669
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
7672
# Check whether --enable-multiplatform or --disable-multiplatform was given.
7673
if test "${enable_multiplatform+set}" = set; then
7674
enableval="$enable_multiplatform"
7677
# if enable_multiplatform is set in the environment, use that.
7678
test "x$enable_multiplatform" = xyes \
7679
&& test "x$bindir" = 'x${exec_prefix}/bin' \
7680
&& bindir="$bindir/$host"
7682
# Taken from the example in
7683
# http://www.gnu.org/software/automake/manual/html_node/Conditionals.html.
7684
# Check whether --enable-install-warnings or --disable-install-warnings was given.
7685
if test "${enable_install_warnings+set}" = set; then
7686
enableval="$enable_install_warnings"
7687
case "${enableval}" in
7688
yes) install_warnings=true ;;
7689
no) install_warnings=false ;;
7690
*) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-install-warnings" >&5
7691
echo "$as_me: error: bad value ${enableval} for --enable-install-warnings" >&2;}
7692
{ (exit 1); exit 1; }; } ;;
7695
install_warnings=true
7699
if test x"$install_warnings" = xtrue || test x"$install_warnings" = xyes; then
7700
INSTALL_WARNINGS_TRUE=
7701
INSTALL_WARNINGS_FALSE='#'
7703
INSTALL_WARNINGS_TRUE='#'
7704
INSTALL_WARNINGS_FALSE=
7708
# i18n support. To update to a new version of gettext, run:
7709
# gettextize -f -c --intl
4621
7713
if test -n "$ac_aux_dir"; then
4622
MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
7714
case "$ac_aux_dir" in
7715
/*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
7716
*) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4624
7719
if test -z "$MKINSTALLDIRS"; then
4625
7720
MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4628
# Extract the first word of "msgfmt", so it can be a program name with args.
7725
echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7726
echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7727
# Check whether --enable-nls or --disable-nls was given.
7728
if test "${enable_nls+set}" = set; then
7729
enableval="$enable_nls"
7734
echo "$as_me:$LINENO: result: $USE_NLS" >&5
7735
echo "${ECHO_T}$USE_NLS" >&6
7742
# Prepare PATH_SEPARATOR.
7743
# The user is always right.
7744
if test "${PATH_SEPARATOR+set}" != set; then
7745
echo "#! /bin/sh" >conf$$.sh
7746
echo "exit 0" >>conf$$.sh
7748
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7756
# Find out how to test for executable files. Don't use a zero-byte file,
7757
# as systems may use methods other than mode bits to determine executability.
7758
cat >conf$$.file <<_ASEOF
7762
chmod +x conf$$.file
7763
if test -x conf$$.file >/dev/null 2>&1; then
7764
ac_executable_p="test -x"
7766
ac_executable_p="test -f"
7770
# Extract the first word of "msgfmt", so it can be a program name with args.
4629
7771
set dummy msgfmt; ac_word=$2
4630
echo "$as_me:4630: checking for $ac_word" >&5
7772
echo "$as_me:$LINENO: checking for $ac_word" >&5
4631
7773
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4632
7774
if test "${ac_cv_path_MSGFMT+set}" = set; then
4633
7775
echo $ECHO_N "(cached) $ECHO_C" >&6
4635
7777
case "$MSGFMT" in
4637
ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7779
ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4640
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4641
for ac_dir in $PATH; do
4642
test -z "$ac_dir" && ac_dir=.
4643
if test -f $ac_dir/$ac_word; then
4644
if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
7782
ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7783
for ac_dir in $PATH; do
7785
test -z "$ac_dir" && ac_dir=.
7786
for ac_exec_ext in '' $ac_executable_extensions; do
7787
if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7788
if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
4645
7789
(if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4646
ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7790
ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4652
7797
test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4656
7801
MSGFMT="$ac_cv_path_MSGFMT"
4657
7802
if test "$MSGFMT" != ":"; then
4658
echo "$as_me:4658: result: $MSGFMT" >&5
7803
echo "$as_me:$LINENO: result: $MSGFMT" >&5
4659
7804
echo "${ECHO_T}$MSGFMT" >&6
4661
echo "$as_me:4661: result: no" >&5
7806
echo "$as_me:$LINENO: result: no" >&5
4662
7807
echo "${ECHO_T}no" >&6
4665
7810
# Extract the first word of "gmsgfmt", so it can be a program name with args.
4666
7811
set dummy gmsgfmt; ac_word=$2
4667
echo "$as_me:4667: checking for $ac_word" >&5
7812
echo "$as_me:$LINENO: checking for $ac_word" >&5
4668
7813
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4669
7814
if test "${ac_cv_path_GMSGFMT+set}" = set; then
4670
7815
echo $ECHO_N "(cached) $ECHO_C" >&6
4693
7840
GMSGFMT=$ac_cv_path_GMSGFMT
4695
7842
if test -n "$GMSGFMT"; then
4696
echo "$as_me:4696: result: $GMSGFMT" >&5
7843
echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4697
7844
echo "${ECHO_T}$GMSGFMT" >&6
4699
echo "$as_me:4699: result: no" >&5
7846
echo "$as_me:$LINENO: result: no" >&5
4700
7847
echo "${ECHO_T}no" >&6
4703
# Extract the first word of "xgettext", so it can be a program name with args.
7852
# Prepare PATH_SEPARATOR.
7853
# The user is always right.
7854
if test "${PATH_SEPARATOR+set}" != set; then
7855
echo "#! /bin/sh" >conf$$.sh
7856
echo "exit 0" >>conf$$.sh
7858
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7866
# Find out how to test for executable files. Don't use a zero-byte file,
7867
# as systems may use methods other than mode bits to determine executability.
7868
cat >conf$$.file <<_ASEOF
7872
chmod +x conf$$.file
7873
if test -x conf$$.file >/dev/null 2>&1; then
7874
ac_executable_p="test -x"
7876
ac_executable_p="test -f"
7880
# Extract the first word of "xgettext", so it can be a program name with args.
4704
7881
set dummy xgettext; ac_word=$2
4705
echo "$as_me:4705: checking for $ac_word" >&5
7882
echo "$as_me:$LINENO: checking for $ac_word" >&5
4706
7883
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4707
7884
if test "${ac_cv_path_XGETTEXT+set}" = set; then
4708
7885
echo $ECHO_N "(cached) $ECHO_C" >&6
4710
7887
case "$XGETTEXT" in
4712
ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7889
ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4715
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4716
for ac_dir in $PATH; do
4717
test -z "$ac_dir" && ac_dir=.
4718
if test -f $ac_dir/$ac_word; then
4719
if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
4720
(if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4721
ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7892
ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7893
for ac_dir in $PATH; do
7895
test -z "$ac_dir" && ac_dir=.
7896
for ac_exec_ext in '' $ac_executable_extensions; do
7897
if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7898
if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
7899
(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
7900
ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4727
7907
test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4731
7911
XGETTEXT="$ac_cv_path_XGETTEXT"
4732
7912
if test "$XGETTEXT" != ":"; then
4733
echo "$as_me:4733: result: $XGETTEXT" >&5
7913
echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4734
7914
echo "${ECHO_T}$XGETTEXT" >&6
4736
echo "$as_me:4736: result: no" >&5
7916
echo "$as_me:$LINENO: result: no" >&5
4737
7917
echo "${ECHO_T}no" >&6
4740
7920
rm -f messages.po
4742
# Extract the first word of "msgmerge", so it can be a program name with args.
7923
# Prepare PATH_SEPARATOR.
7924
# The user is always right.
7925
if test "${PATH_SEPARATOR+set}" != set; then
7926
echo "#! /bin/sh" >conf$$.sh
7927
echo "exit 0" >>conf$$.sh
7929
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7937
# Find out how to test for executable files. Don't use a zero-byte file,
7938
# as systems may use methods other than mode bits to determine executability.
7939
cat >conf$$.file <<_ASEOF
7943
chmod +x conf$$.file
7944
if test -x conf$$.file >/dev/null 2>&1; then
7945
ac_executable_p="test -x"
7947
ac_executable_p="test -f"
7951
# Extract the first word of "msgmerge", so it can be a program name with args.
4743
7952
set dummy msgmerge; ac_word=$2
4744
echo "$as_me:4744: checking for $ac_word" >&5
7953
echo "$as_me:$LINENO: checking for $ac_word" >&5
4745
7954
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4746
7955
if test "${ac_cv_path_MSGMERGE+set}" = set; then
4747
7956
echo $ECHO_N "(cached) $ECHO_C" >&6
4749
7958
case "$MSGMERGE" in
4751
ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
7960
ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4754
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4755
for ac_dir in $PATH; do
4756
test -z "$ac_dir" && ac_dir=.
4757
if test -f $ac_dir/$ac_word; then
4758
if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
4759
ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
7963
ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7964
for ac_dir in $PATH; do
7966
test -z "$ac_dir" && ac_dir=.
7967
for ac_exec_ext in '' $ac_executable_extensions; do
7968
if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7969
if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
7970
ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4765
7977
test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4769
7981
MSGMERGE="$ac_cv_path_MSGMERGE"
4770
7982
if test "$MSGMERGE" != ":"; then
4771
echo "$as_me:4771: result: $MSGMERGE" >&5
7983
echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4772
7984
echo "${ECHO_T}$MSGMERGE" >&6
4774
echo "$as_me:4774: result: no" >&5
7986
echo "$as_me:$LINENO: result: no" >&5
4775
7987
echo "${ECHO_T}no" >&6
4778
7991
if test "$GMSGFMT" != ":"; then
4779
7992
if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
4780
7993
(if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4783
7996
GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
4784
echo "$as_me:4784: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
7997
echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4785
7998
echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
4790
8003
if test "$XGETTEXT" != ":"; then
4791
if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
4792
(if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
8004
if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
8005
(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
4795
echo "$as_me:4795: result: found xgettext program is not GNU xgettext; ignore it" >&5
8008
echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
4796
8009
echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
4799
8012
rm -f messages.po
4802
ac_config_commands="$ac_config_commands default-2"
4804
# Make sure we can run config.sub.
4805
$ac_config_sub sun4 >/dev/null 2>&1 ||
4806
{ { echo "$as_me:4806: error: cannot run $ac_config_sub" >&5
4807
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4808
{ (exit 1); exit 1; }; }
4810
echo "$as_me:4810: checking build system type" >&5
4811
echo $ECHO_N "checking build system type... $ECHO_C" >&6
4812
if test "${ac_cv_build+set}" = set; then
4813
echo $ECHO_N "(cached) $ECHO_C" >&6
4815
ac_cv_build_alias=$build_alias
4816
test -z "$ac_cv_build_alias" &&
4817
ac_cv_build_alias=`$ac_config_guess`
4818
test -z "$ac_cv_build_alias" &&
4819
{ { echo "$as_me:4819: error: cannot guess build type; you must specify one" >&5
4820
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4821
{ (exit 1); exit 1; }; }
4822
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4823
{ { echo "$as_me:4823: error: $ac_config_sub $ac_cv_build_alias failed." >&5
4824
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
4825
{ (exit 1); exit 1; }; }
4828
echo "$as_me:4828: result: $ac_cv_build" >&5
4829
echo "${ECHO_T}$ac_cv_build" >&6
4831
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4832
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4833
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4835
echo "$as_me:4835: checking host system type" >&5
4836
echo $ECHO_N "checking host system type... $ECHO_C" >&6
4837
if test "${ac_cv_host+set}" = set; then
4838
echo $ECHO_N "(cached) $ECHO_C" >&6
4840
ac_cv_host_alias=$host_alias
4841
test -z "$ac_cv_host_alias" &&
4842
ac_cv_host_alias=$ac_cv_build_alias
4843
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4844
{ { echo "$as_me:4844: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4845
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4846
{ (exit 1); exit 1; }; }
4849
echo "$as_me:4849: result: $ac_cv_host" >&5
4850
echo "${ECHO_T}$ac_cv_host" >&6
4852
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4853
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4854
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4856
echo "$as_me:4856: checking for inline" >&5
8015
ac_config_commands="$ac_config_commands default-1"
8019
echo "$as_me:$LINENO: checking for signed" >&5
8020
echo $ECHO_N "checking for signed... $ECHO_C" >&6
8021
if test "${bh_cv_c_signed+set}" = set; then
8022
echo $ECHO_N "(cached) $ECHO_C" >&6
8024
cat >conftest.$ac_ext <<_ACEOF
8027
cat confdefs.h >>conftest.$ac_ext
8028
cat >>conftest.$ac_ext <<_ACEOF
8029
/* end confdefs.h. */
8039
rm -f conftest.$ac_objext
8040
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8041
(eval $ac_compile) 2>conftest.er1
8043
grep -v '^ *+' conftest.er1 >conftest.err
8045
cat conftest.err >&5
8046
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047
(exit $ac_status); } &&
8048
{ ac_try='test -z "$ac_c_werror_flag"
8049
|| test ! -s conftest.err'
8050
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8053
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054
(exit $ac_status); }; } &&
8055
{ ac_try='test -s conftest.$ac_objext'
8056
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8059
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060
(exit $ac_status); }; }; then
8063
echo "$as_me: failed program was:" >&5
8064
sed 's/^/| /' conftest.$ac_ext >&5
8068
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8070
echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
8071
echo "${ECHO_T}$bh_cv_c_signed" >&6
8072
if test $bh_cv_c_signed = no; then
8074
cat >>confdefs.h <<\_ACEOF
8080
echo "$as_me:$LINENO: checking for inline" >&5
4857
8081
echo $ECHO_N "checking for inline... $ECHO_C" >&6
4858
8082
if test "${ac_cv_c_inline+set}" = set; then
4859
8083
echo $ECHO_N "(cached) $ECHO_C" >&6
4928
8174
rm -f conftest.$ac_objext
4929
if { (eval echo "$as_me:4929: \"$ac_compile\"") >&5
4930
(eval $ac_compile) 2>&5
8175
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8176
(eval $ac_compile) 2>conftest.er1
4932
echo "$as_me:4932: \$? = $ac_status" >&5
8178
grep -v '^ *+' conftest.er1 >conftest.err
8180
cat conftest.err >&5
8181
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933
8182
(exit $ac_status); } &&
4934
{ ac_try='test -s conftest.$ac_objext'
4935
{ (eval echo "$as_me:4935: \"$ac_try\"") >&5
4938
echo "$as_me:4938: \$? = $ac_status" >&5
8183
{ ac_try='test -z "$ac_c_werror_flag"
8184
|| test ! -s conftest.err'
8185
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8188
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189
(exit $ac_status); }; } &&
8190
{ ac_try='test -s conftest.$ac_objext'
8191
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8194
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939
8195
(exit $ac_status); }; }; then
4940
8196
ac_cv_type_size_t=yes
4942
8198
echo "$as_me: failed program was:" >&5
4943
cat conftest.$ac_ext >&5
8199
sed 's/^/| /' conftest.$ac_ext >&5
4944
8201
ac_cv_type_size_t=no
4946
rm -f conftest.$ac_objext conftest.$ac_ext
8203
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4948
echo "$as_me:4948: result: $ac_cv_type_size_t" >&5
8205
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4949
8206
echo "${ECHO_T}$ac_cv_type_size_t" >&6
4950
8207
if test $ac_cv_type_size_t = yes; then
4954
cat >>confdefs.h <<EOF
8211
cat >>confdefs.h <<_ACEOF
4955
8212
#define size_t unsigned
8218
echo "$as_me:$LINENO: checking for long long" >&5
8219
echo $ECHO_N "checking for long long... $ECHO_C" >&6
8220
if test "${ac_cv_type_long_long+set}" = set; then
8221
echo $ECHO_N "(cached) $ECHO_C" >&6
8223
cat >conftest.$ac_ext <<_ACEOF
8226
cat confdefs.h >>conftest.$ac_ext
8227
cat >>conftest.$ac_ext <<_ACEOF
8228
/* end confdefs.h. */
8229
long long ll = 1LL; int i = 63;
8233
long long llmax = (long long) -1;
8234
return ll << i | ll >> i | llmax / ll | llmax % ll;
8239
rm -f conftest.$ac_objext conftest$ac_exeext
8240
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8241
(eval $ac_link) 2>conftest.er1
8243
grep -v '^ *+' conftest.er1 >conftest.err
8245
cat conftest.err >&5
8246
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247
(exit $ac_status); } &&
8248
{ ac_try='test -z "$ac_c_werror_flag"
8249
|| test ! -s conftest.err'
8250
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8253
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254
(exit $ac_status); }; } &&
8255
{ ac_try='test -s conftest$ac_exeext'
8256
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8259
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8260
(exit $ac_status); }; }; then
8261
ac_cv_type_long_long=yes
8263
echo "$as_me: failed program was:" >&5
8264
sed 's/^/| /' conftest.$ac_ext >&5
8266
ac_cv_type_long_long=no
8268
rm -f conftest.err conftest.$ac_objext \
8269
conftest$ac_exeext conftest.$ac_ext
8271
echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8272
echo "${ECHO_T}$ac_cv_type_long_long" >&6
8273
if test $ac_cv_type_long_long = yes; then
8275
cat >>confdefs.h <<\_ACEOF
8276
#define HAVE_LONG_LONG 1
8282
echo "$as_me:$LINENO: checking for long double" >&5
8283
echo $ECHO_N "checking for long double... $ECHO_C" >&6
8284
if test "${gt_cv_c_long_double+set}" = set; then
8285
echo $ECHO_N "(cached) $ECHO_C" >&6
8287
if test "$GCC" = yes; then
8288
gt_cv_c_long_double=yes
8290
cat >conftest.$ac_ext <<_ACEOF
8293
cat confdefs.h >>conftest.$ac_ext
8294
cat >>conftest.$ac_ext <<_ACEOF
8295
/* end confdefs.h. */
8297
/* The Stardent Vistra knows sizeof(long double), but does not support it. */
8298
long double foo = 0.0;
8299
/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
8300
int array [2*(sizeof(long double) >= sizeof(double)) - 1];
8310
rm -f conftest.$ac_objext
8311
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8312
(eval $ac_compile) 2>conftest.er1
8314
grep -v '^ *+' conftest.er1 >conftest.err
8316
cat conftest.err >&5
8317
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318
(exit $ac_status); } &&
8319
{ ac_try='test -z "$ac_c_werror_flag"
8320
|| test ! -s conftest.err'
8321
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8324
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325
(exit $ac_status); }; } &&
8326
{ ac_try='test -s conftest.$ac_objext'
8327
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8330
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331
(exit $ac_status); }; }; then
8332
gt_cv_c_long_double=yes
8334
echo "$as_me: failed program was:" >&5
8335
sed 's/^/| /' conftest.$ac_ext >&5
8337
gt_cv_c_long_double=no
8339
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8342
echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
8343
echo "${ECHO_T}$gt_cv_c_long_double" >&6
8344
if test $gt_cv_c_long_double = yes; then
8346
cat >>confdefs.h <<\_ACEOF
8347
#define HAVE_LONG_DOUBLE 1
8353
echo "$as_me:$LINENO: checking for wchar_t" >&5
8354
echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
8355
if test "${gt_cv_c_wchar_t+set}" = set; then
8356
echo $ECHO_N "(cached) $ECHO_C" >&6
8358
cat >conftest.$ac_ext <<_ACEOF
8361
cat confdefs.h >>conftest.$ac_ext
8362
cat >>conftest.$ac_ext <<_ACEOF
8363
/* end confdefs.h. */
8365
wchar_t foo = (wchar_t)'\0';
8374
rm -f conftest.$ac_objext
8375
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8376
(eval $ac_compile) 2>conftest.er1
8378
grep -v '^ *+' conftest.er1 >conftest.err
8380
cat conftest.err >&5
8381
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382
(exit $ac_status); } &&
8383
{ ac_try='test -z "$ac_c_werror_flag"
8384
|| test ! -s conftest.err'
8385
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8388
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389
(exit $ac_status); }; } &&
8390
{ ac_try='test -s conftest.$ac_objext'
8391
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8394
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395
(exit $ac_status); }; }; then
8398
echo "$as_me: failed program was:" >&5
8399
sed 's/^/| /' conftest.$ac_ext >&5
8403
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8405
echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
8406
echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
8407
if test $gt_cv_c_wchar_t = yes; then
8409
cat >>confdefs.h <<\_ACEOF
8410
#define HAVE_WCHAR_T 1
8416
echo "$as_me:$LINENO: checking for wint_t" >&5
8417
echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
8418
if test "${gt_cv_c_wint_t+set}" = set; then
8419
echo $ECHO_N "(cached) $ECHO_C" >&6
8421
cat >conftest.$ac_ext <<_ACEOF
8424
cat confdefs.h >>conftest.$ac_ext
8425
cat >>conftest.$ac_ext <<_ACEOF
8426
/* end confdefs.h. */
8428
wint_t foo = (wchar_t)'\0';
8437
rm -f conftest.$ac_objext
8438
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8439
(eval $ac_compile) 2>conftest.er1
8441
grep -v '^ *+' conftest.er1 >conftest.err
8443
cat conftest.err >&5
8444
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445
(exit $ac_status); } &&
8446
{ ac_try='test -z "$ac_c_werror_flag"
8447
|| test ! -s conftest.err'
8448
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8451
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452
(exit $ac_status); }; } &&
8453
{ ac_try='test -s conftest.$ac_objext'
8454
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8457
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458
(exit $ac_status); }; }; then
8461
echo "$as_me: failed program was:" >&5
8462
sed 's/^/| /' conftest.$ac_ext >&5
8466
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8468
echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
8469
echo "${ECHO_T}$gt_cv_c_wint_t" >&6
8470
if test $gt_cv_c_wint_t = yes; then
8472
cat >>confdefs.h <<\_ACEOF
8473
#define HAVE_WINT_T 1
8481
echo "$as_me:$LINENO: checking for intmax_t" >&5
8482
echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
8483
if test "${gt_cv_c_intmax_t+set}" = set; then
8484
echo $ECHO_N "(cached) $ECHO_C" >&6
8486
cat >conftest.$ac_ext <<_ACEOF
8489
cat confdefs.h >>conftest.$ac_ext
8490
cat >>conftest.$ac_ext <<_ACEOF
8491
/* end confdefs.h. */
8495
#if HAVE_STDINT_H_WITH_UINTMAX
8498
#if HAVE_INTTYPES_H_WITH_UINTMAX
8499
#include <inttypes.h>
8510
rm -f conftest.$ac_objext
8511
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8512
(eval $ac_compile) 2>conftest.er1
8514
grep -v '^ *+' conftest.er1 >conftest.err
8516
cat conftest.err >&5
8517
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518
(exit $ac_status); } &&
8519
{ ac_try='test -z "$ac_c_werror_flag"
8520
|| test ! -s conftest.err'
8521
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8524
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525
(exit $ac_status); }; } &&
8526
{ ac_try='test -s conftest.$ac_objext'
8527
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8530
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531
(exit $ac_status); }; }; then
8532
gt_cv_c_intmax_t=yes
8534
echo "$as_me: failed program was:" >&5
8535
sed 's/^/| /' conftest.$ac_ext >&5
8539
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8541
echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
8542
echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
8543
if test $gt_cv_c_intmax_t = yes; then
8545
cat >>confdefs.h <<\_ACEOF
8546
#define HAVE_INTMAX_T 1
8553
echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
8554
echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
8555
if test "${gt_cv_func_printf_posix+set}" = set; then
8556
echo $ECHO_N "(cached) $ECHO_C" >&6
8559
if test "$cross_compiling" = yes; then
8561
cat >conftest.$ac_ext <<_ACEOF
8564
cat confdefs.h >>conftest.$ac_ext
8565
cat >>conftest.$ac_ext <<_ACEOF
8566
/* end confdefs.h. */
8568
#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
8573
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8574
$EGREP "notposix" >/dev/null 2>&1; then
8575
gt_cv_func_printf_posix="guessing no"
8577
gt_cv_func_printf_posix="guessing yes"
8583
cat >conftest.$ac_ext <<_ACEOF
8586
cat confdefs.h >>conftest.$ac_ext
8587
cat >>conftest.$ac_ext <<_ACEOF
8588
/* end confdefs.h. */
8592
/* The string "%2$d %1$d", with dollar characters protected from the shell's
8593
dollar expansion (possibly an autoconf bug). */
8594
static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
8595
static char buf[100];
8598
sprintf (buf, format, 33, 55);
8599
return (strcmp (buf, "55 33") != 0);
8602
rm -f conftest$ac_exeext
8603
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8604
(eval $ac_link) 2>&5
8606
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8608
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8611
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612
(exit $ac_status); }; }; then
8613
gt_cv_func_printf_posix=yes
8615
echo "$as_me: program exited with status $ac_status" >&5
8616
echo "$as_me: failed program was:" >&5
8617
sed 's/^/| /' conftest.$ac_ext >&5
8620
gt_cv_func_printf_posix=no
8622
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8626
echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
8627
echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
8628
case $gt_cv_func_printf_posix in
8631
cat >>confdefs.h <<\_ACEOF
8632
#define HAVE_POSIX_PRINTF 1
4960
8640
for ac_header in stdlib.h unistd.h
4962
8642
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4963
echo "$as_me:4963: checking for $ac_header" >&5
8643
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8644
echo "$as_me:$LINENO: checking for $ac_header" >&5
4964
8645
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4965
8646
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4966
8647
echo $ECHO_N "(cached) $ECHO_C" >&6
4968
cat >conftest.$ac_ext <<_ACEOF
4969
#line 4969 "configure"
4970
#include "confdefs.h"
4971
#include <$ac_header>
4973
if { (eval echo "$as_me:4973: \"$ac_cpp conftest.$ac_ext\"") >&5
8649
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8650
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8652
# Is the header compilable?
8653
echo "$as_me:$LINENO: checking $ac_header usability" >&5
8654
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8655
cat >conftest.$ac_ext <<_ACEOF
8658
cat confdefs.h >>conftest.$ac_ext
8659
cat >>conftest.$ac_ext <<_ACEOF
8660
/* end confdefs.h. */
8661
$ac_includes_default
8662
#include <$ac_header>
8664
rm -f conftest.$ac_objext
8665
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8666
(eval $ac_compile) 2>conftest.er1
8668
grep -v '^ *+' conftest.er1 >conftest.err
8670
cat conftest.err >&5
8671
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8672
(exit $ac_status); } &&
8673
{ ac_try='test -z "$ac_c_werror_flag"
8674
|| test ! -s conftest.err'
8675
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8678
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8679
(exit $ac_status); }; } &&
8680
{ ac_try='test -s conftest.$ac_objext'
8681
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8684
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685
(exit $ac_status); }; }; then
8686
ac_header_compiler=yes
8688
echo "$as_me: failed program was:" >&5
8689
sed 's/^/| /' conftest.$ac_ext >&5
8691
ac_header_compiler=no
8693
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8694
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8695
echo "${ECHO_T}$ac_header_compiler" >&6
8697
# Is the header present?
8698
echo "$as_me:$LINENO: checking $ac_header presence" >&5
8699
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8700
cat >conftest.$ac_ext <<_ACEOF
8703
cat confdefs.h >>conftest.$ac_ext
8704
cat >>conftest.$ac_ext <<_ACEOF
8705
/* end confdefs.h. */
8706
#include <$ac_header>
8708
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4974
8709
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4976
egrep -v '^ *\+' conftest.er1 >conftest.err
8711
grep -v '^ *+' conftest.er1 >conftest.err
4977
8712
rm -f conftest.er1
4978
8713
cat conftest.err >&5
4979
echo "$as_me:4979: \$? = $ac_status" >&5
8714
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980
8715
(exit $ac_status); } >/dev/null; then
4981
8716
if test -s conftest.err; then
4982
8717
ac_cpp_err=$ac_c_preproc_warn_flag
8718
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5261
9087
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5262
egrep "Lucky GNU user" >/dev/null 2>&1; then
9088
$EGREP "Lucky GNU user" >/dev/null 2>&1; then
5263
9089
ac_cv_gnu_library_2_1=yes
5265
9091
ac_cv_gnu_library_2_1=no
5267
9093
rm -f conftest*
5270
echo "$as_me:5270: result: $ac_cv_gnu_library_2_1" >&5
9098
echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
5271
9099
echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
5273
9101
GLIBC21="$ac_cv_gnu_library_2_1"
9106
echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
9107
echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
9108
if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
9109
echo $ECHO_N "(cached) $ECHO_C" >&6
9112
if test "$cross_compiling" = yes; then
9114
# Guess based on the CPU.
9116
alpha* | i3456786 | m68k | s390*)
9117
gt_cv_int_divbyzero_sigfpe="guessing yes";;
9119
gt_cv_int_divbyzero_sigfpe="guessing no";;
9123
cat >conftest.$ac_ext <<_ACEOF
9126
cat confdefs.h >>conftest.$ac_ext
9127
cat >>conftest.$ac_ext <<_ACEOF
9128
/* end confdefs.h. */
9135
sigfpe_handler (int sig)
9137
sigfpe_handler (sig) int sig;
9140
/* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
9141
exit (sig != SIGFPE);
9151
signal (SIGFPE, sigfpe_handler);
9152
/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
9153
#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
9154
signal (SIGTRAP, sigfpe_handler);
9156
/* Linux/SPARC yields signal SIGILL. */
9157
#if defined (__sparc__) && defined (__linux__)
9158
signal (SIGILL, sigfpe_handler);
9167
rm -f conftest$ac_exeext
9168
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9169
(eval $ac_link) 2>&5
9171
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9173
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9176
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177
(exit $ac_status); }; }; then
9178
gt_cv_int_divbyzero_sigfpe=yes
9180
echo "$as_me: program exited with status $ac_status" >&5
9181
echo "$as_me: failed program was:" >&5
9182
sed 's/^/| /' conftest.$ac_ext >&5
9185
gt_cv_int_divbyzero_sigfpe=no
9187
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9191
echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
9192
echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
9193
case "$gt_cv_int_divbyzero_sigfpe" in
9198
cat >>confdefs.h <<_ACEOF
9199
#define INTDIV0_RAISES_SIGFPE $value
9204
echo "$as_me:$LINENO: checking for inttypes.h" >&5
9205
echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9206
if test "${gt_cv_header_inttypes_h+set}" = set; then
9207
echo $ECHO_N "(cached) $ECHO_C" >&6
9210
cat >conftest.$ac_ext <<_ACEOF
9213
cat confdefs.h >>conftest.$ac_ext
9214
cat >>conftest.$ac_ext <<_ACEOF
9215
/* end confdefs.h. */
9216
#include <sys/types.h>
9217
#include <inttypes.h>
9226
rm -f conftest.$ac_objext
9227
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9228
(eval $ac_compile) 2>conftest.er1
9230
grep -v '^ *+' conftest.er1 >conftest.err
9232
cat conftest.err >&5
9233
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9234
(exit $ac_status); } &&
9235
{ ac_try='test -z "$ac_c_werror_flag"
9236
|| test ! -s conftest.err'
9237
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9240
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241
(exit $ac_status); }; } &&
9242
{ ac_try='test -s conftest.$ac_objext'
9243
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9246
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247
(exit $ac_status); }; }; then
9248
gt_cv_header_inttypes_h=yes
9250
echo "$as_me: failed program was:" >&5
9251
sed 's/^/| /' conftest.$ac_ext >&5
9253
gt_cv_header_inttypes_h=no
9255
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9258
echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
9259
echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
9260
if test $gt_cv_header_inttypes_h = yes; then
9262
cat >>confdefs.h <<_ACEOF
9263
#define HAVE_INTTYPES_H 1
9270
if test $gt_cv_header_inttypes_h = yes; then
9271
echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
9272
echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
9273
if test "${gt_cv_inttypes_pri_broken+set}" = set; then
9274
echo $ECHO_N "(cached) $ECHO_C" >&6
9277
cat >conftest.$ac_ext <<_ACEOF
9280
cat confdefs.h >>conftest.$ac_ext
9281
cat >>conftest.$ac_ext <<_ACEOF
9282
/* end confdefs.h. */
9283
#include <inttypes.h>
9296
rm -f conftest.$ac_objext
9297
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9298
(eval $ac_compile) 2>conftest.er1
9300
grep -v '^ *+' conftest.er1 >conftest.err
9302
cat conftest.err >&5
9303
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304
(exit $ac_status); } &&
9305
{ ac_try='test -z "$ac_c_werror_flag"
9306
|| test ! -s conftest.err'
9307
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9310
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9311
(exit $ac_status); }; } &&
9312
{ ac_try='test -s conftest.$ac_objext'
9313
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9316
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317
(exit $ac_status); }; }; then
9318
gt_cv_inttypes_pri_broken=no
9320
echo "$as_me: failed program was:" >&5
9321
sed 's/^/| /' conftest.$ac_ext >&5
9323
gt_cv_inttypes_pri_broken=yes
9325
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9328
echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
9329
echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
9331
if test "$gt_cv_inttypes_pri_broken" = yes; then
9333
cat >>confdefs.h <<_ACEOF
9334
#define PRI_MACROS_BROKEN 1
9341
for ac_header in stdint.h
9343
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9344
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9345
echo "$as_me:$LINENO: checking for $ac_header" >&5
9346
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9347
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9348
echo $ECHO_N "(cached) $ECHO_C" >&6
9350
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9351
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9353
# Is the header compilable?
9354
echo "$as_me:$LINENO: checking $ac_header usability" >&5
9355
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9356
cat >conftest.$ac_ext <<_ACEOF
9359
cat confdefs.h >>conftest.$ac_ext
9360
cat >>conftest.$ac_ext <<_ACEOF
9361
/* end confdefs.h. */
9362
$ac_includes_default
9363
#include <$ac_header>
9365
rm -f conftest.$ac_objext
9366
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9367
(eval $ac_compile) 2>conftest.er1
9369
grep -v '^ *+' conftest.er1 >conftest.err
9371
cat conftest.err >&5
9372
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373
(exit $ac_status); } &&
9374
{ ac_try='test -z "$ac_c_werror_flag"
9375
|| test ! -s conftest.err'
9376
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9379
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380
(exit $ac_status); }; } &&
9381
{ ac_try='test -s conftest.$ac_objext'
9382
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9385
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386
(exit $ac_status); }; }; then
9387
ac_header_compiler=yes
9389
echo "$as_me: failed program was:" >&5
9390
sed 's/^/| /' conftest.$ac_ext >&5
9392
ac_header_compiler=no
9394
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9395
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9396
echo "${ECHO_T}$ac_header_compiler" >&6
9398
# Is the header present?
9399
echo "$as_me:$LINENO: checking $ac_header presence" >&5
9400
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9401
cat >conftest.$ac_ext <<_ACEOF
9404
cat confdefs.h >>conftest.$ac_ext
9405
cat >>conftest.$ac_ext <<_ACEOF
9406
/* end confdefs.h. */
9407
#include <$ac_header>
9409
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9410
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9412
grep -v '^ *+' conftest.er1 >conftest.err
9414
cat conftest.err >&5
9415
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416
(exit $ac_status); } >/dev/null; then
9417
if test -s conftest.err; then
9418
ac_cpp_err=$ac_c_preproc_warn_flag
9419
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9426
if test -z "$ac_cpp_err"; then
9427
ac_header_preproc=yes
9429
echo "$as_me: failed program was:" >&5
9430
sed 's/^/| /' conftest.$ac_ext >&5
9432
ac_header_preproc=no
9434
rm -f conftest.err conftest.$ac_ext
9435
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9436
echo "${ECHO_T}$ac_header_preproc" >&6
9438
# So? What about this header?
9439
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9441
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9442
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9443
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9444
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9445
ac_header_preproc=yes
9448
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9449
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9450
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9451
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9452
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9453
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9454
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9455
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9456
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9457
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9458
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9459
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9462
## -------------------------------------- ##
9463
## Report this to the GNU Texinfo lists. ##
9464
## -------------------------------------- ##
9467
sed "s/^/$as_me: WARNING: /" >&2
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
eval "$as_ac_Header=\$ac_header_preproc"
9477
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9478
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9481
if test `eval echo '${'$as_ac_Header'}'` = yes; then
9482
cat >>confdefs.h <<_ACEOF
9483
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9490
echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
9491
echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
9493
cat >conftest.$ac_ext <<_ACEOF
9496
cat confdefs.h >>conftest.$ac_ext
9497
cat >>conftest.$ac_ext <<_ACEOF
9498
/* end confdefs.h. */
9509
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9510
$EGREP "Found it" >/dev/null 2>&1; then
9515
if test -z "$result"; then
9516
if test "$cross_compiling" = yes; then
9517
# Depending upon the size, compute the lo and hi bounds.
9518
cat >conftest.$ac_ext <<_ACEOF
9521
cat confdefs.h >>conftest.$ac_ext
9522
cat >>conftest.$ac_ext <<_ACEOF
9523
/* end confdefs.h. */
9528
static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
9535
rm -f conftest.$ac_objext
9536
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9537
(eval $ac_compile) 2>conftest.er1
9539
grep -v '^ *+' conftest.er1 >conftest.err
9541
cat conftest.err >&5
9542
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543
(exit $ac_status); } &&
9544
{ ac_try='test -z "$ac_c_werror_flag"
9545
|| test ! -s conftest.err'
9546
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9549
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550
(exit $ac_status); }; } &&
9551
{ ac_try='test -s conftest.$ac_objext'
9552
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9555
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556
(exit $ac_status); }; }; then
9559
cat >conftest.$ac_ext <<_ACEOF
9562
cat confdefs.h >>conftest.$ac_ext
9563
cat >>conftest.$ac_ext <<_ACEOF
9564
/* end confdefs.h. */
9569
static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
9576
rm -f conftest.$ac_objext
9577
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9578
(eval $ac_compile) 2>conftest.er1
9580
grep -v '^ *+' conftest.er1 >conftest.err
9582
cat conftest.err >&5
9583
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584
(exit $ac_status); } &&
9585
{ ac_try='test -z "$ac_c_werror_flag"
9586
|| test ! -s conftest.err'
9587
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9590
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591
(exit $ac_status); }; } &&
9592
{ ac_try='test -s conftest.$ac_objext'
9593
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9596
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597
(exit $ac_status); }; }; then
9598
ac_hi=$ac_mid; break
9600
echo "$as_me: failed program was:" >&5
9601
sed 's/^/| /' conftest.$ac_ext >&5
9603
ac_lo=`expr $ac_mid + 1`
9604
if test $ac_lo -le $ac_mid; then
9608
ac_mid=`expr 2 '*' $ac_mid + 1`
9610
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9613
echo "$as_me: failed program was:" >&5
9614
sed 's/^/| /' conftest.$ac_ext >&5
9616
cat >conftest.$ac_ext <<_ACEOF
9619
cat confdefs.h >>conftest.$ac_ext
9620
cat >>conftest.$ac_ext <<_ACEOF
9621
/* end confdefs.h. */
9626
static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
9633
rm -f conftest.$ac_objext
9634
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9635
(eval $ac_compile) 2>conftest.er1
9637
grep -v '^ *+' conftest.er1 >conftest.err
9639
cat conftest.err >&5
9640
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641
(exit $ac_status); } &&
9642
{ ac_try='test -z "$ac_c_werror_flag"
9643
|| test ! -s conftest.err'
9644
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9647
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648
(exit $ac_status); }; } &&
9649
{ ac_try='test -s conftest.$ac_objext'
9650
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9653
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9654
(exit $ac_status); }; }; then
9657
cat >conftest.$ac_ext <<_ACEOF
9660
cat confdefs.h >>conftest.$ac_ext
9661
cat >>conftest.$ac_ext <<_ACEOF
9662
/* end confdefs.h. */
9667
static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
9674
rm -f conftest.$ac_objext
9675
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9676
(eval $ac_compile) 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"
9684
|| test ! -s conftest.err'
9685
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9688
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689
(exit $ac_status); }; } &&
9690
{ ac_try='test -s conftest.$ac_objext'
9691
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9694
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695
(exit $ac_status); }; }; then
9696
ac_lo=$ac_mid; break
9698
echo "$as_me: failed program was:" >&5
9699
sed 's/^/| /' conftest.$ac_ext >&5
9701
ac_hi=`expr '(' $ac_mid ')' - 1`
9702
if test $ac_mid -le $ac_hi; then
9706
ac_mid=`expr 2 '*' $ac_mid`
9708
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9711
echo "$as_me: failed program was:" >&5
9712
sed 's/^/| /' conftest.$ac_ext >&5
9716
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9718
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9719
# Binary search between lo and hi bounds.
9720
while test "x$ac_lo" != "x$ac_hi"; do
9721
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9722
cat >conftest.$ac_ext <<_ACEOF
9725
cat confdefs.h >>conftest.$ac_ext
9726
cat >>conftest.$ac_ext <<_ACEOF
9727
/* end confdefs.h. */
9732
static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
9739
rm -f conftest.$ac_objext
9740
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9741
(eval $ac_compile) 2>conftest.er1
9743
grep -v '^ *+' conftest.er1 >conftest.err
9745
cat conftest.err >&5
9746
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747
(exit $ac_status); } &&
9748
{ ac_try='test -z "$ac_c_werror_flag"
9749
|| test ! -s conftest.err'
9750
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9753
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754
(exit $ac_status); }; } &&
9755
{ ac_try='test -s conftest.$ac_objext'
9756
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9759
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760
(exit $ac_status); }; }; then
9763
echo "$as_me: failed program was:" >&5
9764
sed 's/^/| /' conftest.$ac_ext >&5
9766
ac_lo=`expr '(' $ac_mid ')' + 1`
9768
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9775
if test "$cross_compiling" = yes; then
9776
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9777
See \`config.log' for more details." >&5
9778
echo "$as_me: error: cannot run test program while cross compiling
9779
See \`config.log' for more details." >&2;}
9780
{ (exit 1); exit 1; }; }
9782
cat >conftest.$ac_ext <<_ACEOF
9785
cat confdefs.h >>conftest.$ac_ext
9786
cat >>conftest.$ac_ext <<_ACEOF
9787
/* end confdefs.h. */
9789
long longval () { return ~(size_t)0 / 10; }
9790
unsigned long ulongval () { return ~(size_t)0 / 10; }
9797
FILE *f = fopen ("conftest.val", "w");
9800
if ((~(size_t)0 / 10) < 0)
9802
long i = longval ();
9803
if (i != (~(size_t)0 / 10))
9805
fprintf (f, "%ld\n", i);
9809
unsigned long i = ulongval ();
9810
if (i != (~(size_t)0 / 10))
9812
fprintf (f, "%lu\n", i);
9814
exit (ferror (f) || fclose (f) != 0);
9820
rm -f conftest$ac_exeext
9821
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9822
(eval $ac_link) 2>&5
9824
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9826
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9829
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830
(exit $ac_status); }; }; then
9831
res_hi=`cat conftest.val`
9833
echo "$as_me: program exited with status $ac_status" >&5
9834
echo "$as_me: failed program was:" >&5
9835
sed 's/^/| /' conftest.$ac_ext >&5
9840
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9844
if test "$cross_compiling" = yes; then
9845
# Depending upon the size, compute the lo and hi bounds.
9846
cat >conftest.$ac_ext <<_ACEOF
9849
cat confdefs.h >>conftest.$ac_ext
9850
cat >>conftest.$ac_ext <<_ACEOF
9851
/* end confdefs.h. */
9856
static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
9863
rm -f conftest.$ac_objext
9864
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9865
(eval $ac_compile) 2>conftest.er1
9867
grep -v '^ *+' conftest.er1 >conftest.err
9869
cat conftest.err >&5
9870
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871
(exit $ac_status); } &&
9872
{ ac_try='test -z "$ac_c_werror_flag"
9873
|| test ! -s conftest.err'
9874
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9877
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878
(exit $ac_status); }; } &&
9879
{ ac_try='test -s conftest.$ac_objext'
9880
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9883
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884
(exit $ac_status); }; }; then
9887
cat >conftest.$ac_ext <<_ACEOF
9890
cat confdefs.h >>conftest.$ac_ext
9891
cat >>conftest.$ac_ext <<_ACEOF
9892
/* end confdefs.h. */
9897
static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
9904
rm -f conftest.$ac_objext
9905
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9906
(eval $ac_compile) 2>conftest.er1
9908
grep -v '^ *+' conftest.er1 >conftest.err
9910
cat conftest.err >&5
9911
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9912
(exit $ac_status); } &&
9913
{ ac_try='test -z "$ac_c_werror_flag"
9914
|| test ! -s conftest.err'
9915
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9918
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919
(exit $ac_status); }; } &&
9920
{ ac_try='test -s conftest.$ac_objext'
9921
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9924
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925
(exit $ac_status); }; }; then
9926
ac_hi=$ac_mid; break
9928
echo "$as_me: failed program was:" >&5
9929
sed 's/^/| /' conftest.$ac_ext >&5
9931
ac_lo=`expr $ac_mid + 1`
9932
if test $ac_lo -le $ac_mid; then
9936
ac_mid=`expr 2 '*' $ac_mid + 1`
9938
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9941
echo "$as_me: failed program was:" >&5
9942
sed 's/^/| /' conftest.$ac_ext >&5
9944
cat >conftest.$ac_ext <<_ACEOF
9947
cat confdefs.h >>conftest.$ac_ext
9948
cat >>conftest.$ac_ext <<_ACEOF
9949
/* end confdefs.h. */
9954
static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
9961
rm -f conftest.$ac_objext
9962
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9963
(eval $ac_compile) 2>conftest.er1
9965
grep -v '^ *+' conftest.er1 >conftest.err
9967
cat conftest.err >&5
9968
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969
(exit $ac_status); } &&
9970
{ ac_try='test -z "$ac_c_werror_flag"
9971
|| test ! -s conftest.err'
9972
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9975
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9976
(exit $ac_status); }; } &&
9977
{ ac_try='test -s conftest.$ac_objext'
9978
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9981
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982
(exit $ac_status); }; }; then
9985
cat >conftest.$ac_ext <<_ACEOF
9988
cat confdefs.h >>conftest.$ac_ext
9989
cat >>conftest.$ac_ext <<_ACEOF
9990
/* end confdefs.h. */
9995
static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
10002
rm -f conftest.$ac_objext
10003
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10004
(eval $ac_compile) 2>conftest.er1
10006
grep -v '^ *+' conftest.er1 >conftest.err
10008
cat conftest.err >&5
10009
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010
(exit $ac_status); } &&
10011
{ ac_try='test -z "$ac_c_werror_flag"
10012
|| test ! -s conftest.err'
10013
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10014
(eval $ac_try) 2>&5
10016
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017
(exit $ac_status); }; } &&
10018
{ ac_try='test -s conftest.$ac_objext'
10019
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10020
(eval $ac_try) 2>&5
10022
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023
(exit $ac_status); }; }; then
10024
ac_lo=$ac_mid; break
10026
echo "$as_me: failed program was:" >&5
10027
sed 's/^/| /' conftest.$ac_ext >&5
10029
ac_hi=`expr '(' $ac_mid ')' - 1`
10030
if test $ac_mid -le $ac_hi; then
10034
ac_mid=`expr 2 '*' $ac_mid`
10036
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10039
echo "$as_me: failed program was:" >&5
10040
sed 's/^/| /' conftest.$ac_ext >&5
10044
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10046
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10047
# Binary search between lo and hi bounds.
10048
while test "x$ac_lo" != "x$ac_hi"; do
10049
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10050
cat >conftest.$ac_ext <<_ACEOF
10053
cat confdefs.h >>conftest.$ac_ext
10054
cat >>conftest.$ac_ext <<_ACEOF
10055
/* end confdefs.h. */
10056
#include <stddef.h>
10060
static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10067
rm -f conftest.$ac_objext
10068
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10069
(eval $ac_compile) 2>conftest.er1
10071
grep -v '^ *+' conftest.er1 >conftest.err
10073
cat conftest.err >&5
10074
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075
(exit $ac_status); } &&
10076
{ ac_try='test -z "$ac_c_werror_flag"
10077
|| test ! -s conftest.err'
10078
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10079
(eval $ac_try) 2>&5
10081
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082
(exit $ac_status); }; } &&
10083
{ ac_try='test -s conftest.$ac_objext'
10084
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10085
(eval $ac_try) 2>&5
10087
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088
(exit $ac_status); }; }; then
10091
echo "$as_me: failed program was:" >&5
10092
sed 's/^/| /' conftest.$ac_ext >&5
10094
ac_lo=`expr '(' $ac_mid ')' + 1`
10096
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10099
?*) res_lo=$ac_lo;;
10103
if test "$cross_compiling" = yes; then
10104
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10105
See \`config.log' for more details." >&5
10106
echo "$as_me: error: cannot run test program while cross compiling
10107
See \`config.log' for more details." >&2;}
10108
{ (exit 1); exit 1; }; }
10110
cat >conftest.$ac_ext <<_ACEOF
10113
cat confdefs.h >>conftest.$ac_ext
10114
cat >>conftest.$ac_ext <<_ACEOF
10115
/* end confdefs.h. */
10116
#include <stddef.h>
10117
long longval () { return ~(size_t)0 % 10; }
10118
unsigned long ulongval () { return ~(size_t)0 % 10; }
10120
#include <stdlib.h>
10125
FILE *f = fopen ("conftest.val", "w");
10128
if ((~(size_t)0 % 10) < 0)
10130
long i = longval ();
10131
if (i != (~(size_t)0 % 10))
10133
fprintf (f, "%ld\n", i);
10137
unsigned long i = ulongval ();
10138
if (i != (~(size_t)0 % 10))
10140
fprintf (f, "%lu\n", i);
10142
exit (ferror (f) || fclose (f) != 0);
10148
rm -f conftest$ac_exeext
10149
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10150
(eval $ac_link) 2>&5
10152
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10154
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10155
(eval $ac_try) 2>&5
10157
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158
(exit $ac_status); }; }; then
10159
res_lo=`cat conftest.val`
10161
echo "$as_me: program exited with status $ac_status" >&5
10162
echo "$as_me: failed program was:" >&5
10163
sed 's/^/| /' conftest.$ac_ext >&5
10165
( exit $ac_status )
10168
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10172
if test "$cross_compiling" = yes; then
10173
# Depending upon the size, compute the lo and hi bounds.
10174
cat >conftest.$ac_ext <<_ACEOF
10177
cat confdefs.h >>conftest.$ac_ext
10178
cat >>conftest.$ac_ext <<_ACEOF
10179
/* end confdefs.h. */
10180
#include <stddef.h>
10184
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
10191
rm -f conftest.$ac_objext
10192
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10193
(eval $ac_compile) 2>conftest.er1
10195
grep -v '^ *+' conftest.er1 >conftest.err
10197
cat conftest.err >&5
10198
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199
(exit $ac_status); } &&
10200
{ ac_try='test -z "$ac_c_werror_flag"
10201
|| test ! -s conftest.err'
10202
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10203
(eval $ac_try) 2>&5
10205
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206
(exit $ac_status); }; } &&
10207
{ ac_try='test -s conftest.$ac_objext'
10208
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10209
(eval $ac_try) 2>&5
10211
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212
(exit $ac_status); }; }; then
10215
cat >conftest.$ac_ext <<_ACEOF
10218
cat confdefs.h >>conftest.$ac_ext
10219
cat >>conftest.$ac_ext <<_ACEOF
10220
/* end confdefs.h. */
10221
#include <stddef.h>
10225
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10232
rm -f conftest.$ac_objext
10233
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10234
(eval $ac_compile) 2>conftest.er1
10236
grep -v '^ *+' conftest.er1 >conftest.err
10238
cat conftest.err >&5
10239
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240
(exit $ac_status); } &&
10241
{ ac_try='test -z "$ac_c_werror_flag"
10242
|| test ! -s conftest.err'
10243
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10244
(eval $ac_try) 2>&5
10246
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10247
(exit $ac_status); }; } &&
10248
{ ac_try='test -s conftest.$ac_objext'
10249
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10250
(eval $ac_try) 2>&5
10252
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253
(exit $ac_status); }; }; then
10254
ac_hi=$ac_mid; break
10256
echo "$as_me: failed program was:" >&5
10257
sed 's/^/| /' conftest.$ac_ext >&5
10259
ac_lo=`expr $ac_mid + 1`
10260
if test $ac_lo -le $ac_mid; then
10264
ac_mid=`expr 2 '*' $ac_mid + 1`
10266
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10269
echo "$as_me: failed program was:" >&5
10270
sed 's/^/| /' conftest.$ac_ext >&5
10272
cat >conftest.$ac_ext <<_ACEOF
10275
cat confdefs.h >>conftest.$ac_ext
10276
cat >>conftest.$ac_ext <<_ACEOF
10277
/* end confdefs.h. */
10278
#include <stddef.h>
10282
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
10289
rm -f conftest.$ac_objext
10290
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10291
(eval $ac_compile) 2>conftest.er1
10293
grep -v '^ *+' conftest.er1 >conftest.err
10295
cat conftest.err >&5
10296
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297
(exit $ac_status); } &&
10298
{ ac_try='test -z "$ac_c_werror_flag"
10299
|| test ! -s conftest.err'
10300
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10301
(eval $ac_try) 2>&5
10303
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304
(exit $ac_status); }; } &&
10305
{ ac_try='test -s conftest.$ac_objext'
10306
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10307
(eval $ac_try) 2>&5
10309
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310
(exit $ac_status); }; }; then
10313
cat >conftest.$ac_ext <<_ACEOF
10316
cat confdefs.h >>conftest.$ac_ext
10317
cat >>conftest.$ac_ext <<_ACEOF
10318
/* end confdefs.h. */
10319
#include <stddef.h>
10323
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
10330
rm -f conftest.$ac_objext
10331
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10332
(eval $ac_compile) 2>conftest.er1
10334
grep -v '^ *+' conftest.er1 >conftest.err
10336
cat conftest.err >&5
10337
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338
(exit $ac_status); } &&
10339
{ ac_try='test -z "$ac_c_werror_flag"
10340
|| test ! -s conftest.err'
10341
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10342
(eval $ac_try) 2>&5
10344
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345
(exit $ac_status); }; } &&
10346
{ ac_try='test -s conftest.$ac_objext'
10347
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10348
(eval $ac_try) 2>&5
10350
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351
(exit $ac_status); }; }; then
10352
ac_lo=$ac_mid; break
10354
echo "$as_me: failed program was:" >&5
10355
sed 's/^/| /' conftest.$ac_ext >&5
10357
ac_hi=`expr '(' $ac_mid ')' - 1`
10358
if test $ac_mid -le $ac_hi; then
10362
ac_mid=`expr 2 '*' $ac_mid`
10364
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10367
echo "$as_me: failed program was:" >&5
10368
sed 's/^/| /' conftest.$ac_ext >&5
10372
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10374
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10375
# Binary search between lo and hi bounds.
10376
while test "x$ac_lo" != "x$ac_hi"; do
10377
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10378
cat >conftest.$ac_ext <<_ACEOF
10381
cat confdefs.h >>conftest.$ac_ext
10382
cat >>conftest.$ac_ext <<_ACEOF
10383
/* end confdefs.h. */
10384
#include <stddef.h>
10388
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10395
rm -f conftest.$ac_objext
10396
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10397
(eval $ac_compile) 2>conftest.er1
10399
grep -v '^ *+' conftest.er1 >conftest.err
10401
cat conftest.err >&5
10402
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10403
(exit $ac_status); } &&
10404
{ ac_try='test -z "$ac_c_werror_flag"
10405
|| test ! -s conftest.err'
10406
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10407
(eval $ac_try) 2>&5
10409
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10410
(exit $ac_status); }; } &&
10411
{ ac_try='test -s conftest.$ac_objext'
10412
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10413
(eval $ac_try) 2>&5
10415
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416
(exit $ac_status); }; }; then
10419
echo "$as_me: failed program was:" >&5
10420
sed 's/^/| /' conftest.$ac_ext >&5
10422
ac_lo=`expr '(' $ac_mid ')' + 1`
10424
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10427
?*) fits_in_uint=$ac_lo;;
10431
if test "$cross_compiling" = yes; then
10432
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10433
See \`config.log' for more details." >&5
10434
echo "$as_me: error: cannot run test program while cross compiling
10435
See \`config.log' for more details." >&2;}
10436
{ (exit 1); exit 1; }; }
10438
cat >conftest.$ac_ext <<_ACEOF
10441
cat confdefs.h >>conftest.$ac_ext
10442
cat >>conftest.$ac_ext <<_ACEOF
10443
/* end confdefs.h. */
10444
#include <stddef.h>
10445
long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
10446
unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
10448
#include <stdlib.h>
10453
FILE *f = fopen ("conftest.val", "w");
10456
if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
10458
long i = longval ();
10459
if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10461
fprintf (f, "%ld\n", i);
10465
unsigned long i = ulongval ();
10466
if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10468
fprintf (f, "%lu\n", i);
10470
exit (ferror (f) || fclose (f) != 0);
10476
rm -f conftest$ac_exeext
10477
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10478
(eval $ac_link) 2>&5
10480
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10482
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10483
(eval $ac_try) 2>&5
10485
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486
(exit $ac_status); }; }; then
10487
fits_in_uint=`cat conftest.val`
10489
echo "$as_me: program exited with status $ac_status" >&5
10490
echo "$as_me: failed program was:" >&5
10491
sed 's/^/| /' conftest.$ac_ext >&5
10493
( exit $ac_status )
10496
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10500
if test "$fits_in_uint" = 1; then
10501
cat >conftest.$ac_ext <<_ACEOF
10504
cat confdefs.h >>conftest.$ac_ext
10505
cat >>conftest.$ac_ext <<_ACEOF
10506
/* end confdefs.h. */
10507
#include <stddef.h>
10509
extern unsigned long foo;
10519
rm -f conftest.$ac_objext
10520
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10521
(eval $ac_compile) 2>conftest.er1
10523
grep -v '^ *+' conftest.er1 >conftest.err
10525
cat conftest.err >&5
10526
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527
(exit $ac_status); } &&
10528
{ ac_try='test -z "$ac_c_werror_flag"
10529
|| test ! -s conftest.err'
10530
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10531
(eval $ac_try) 2>&5
10533
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534
(exit $ac_status); }; } &&
10535
{ ac_try='test -s conftest.$ac_objext'
10536
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10537
(eval $ac_try) 2>&5
10539
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540
(exit $ac_status); }; }; then
10543
echo "$as_me: failed program was:" >&5
10544
sed 's/^/| /' conftest.$ac_ext >&5
10547
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10549
if test -z "$result"; then
10550
if test "$fits_in_uint" = 1; then
10551
result="$res_hi$res_lo"U
10553
result="$res_hi$res_lo"UL
10556
result='~(size_t)0'
10559
echo "$as_me:$LINENO: result: $result" >&5
10560
echo "${ECHO_T}$result" >&6
10561
if test "$result" != yes; then
10563
cat >>confdefs.h <<_ACEOF
10564
#define SIZE_MAX $result
10572
for ac_header in stdint.h
10574
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10575
if eval "test \"\${$as_ac_Header+set}\" = set"; then
10576
echo "$as_me:$LINENO: checking for $ac_header" >&5
10577
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10578
if eval "test \"\${$as_ac_Header+set}\" = set"; then
10579
echo $ECHO_N "(cached) $ECHO_C" >&6
10581
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10582
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10584
# Is the header compilable?
10585
echo "$as_me:$LINENO: checking $ac_header usability" >&5
10586
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10587
cat >conftest.$ac_ext <<_ACEOF
10590
cat confdefs.h >>conftest.$ac_ext
10591
cat >>conftest.$ac_ext <<_ACEOF
10592
/* end confdefs.h. */
10593
$ac_includes_default
10594
#include <$ac_header>
10596
rm -f conftest.$ac_objext
10597
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10598
(eval $ac_compile) 2>conftest.er1
10600
grep -v '^ *+' conftest.er1 >conftest.err
10602
cat conftest.err >&5
10603
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604
(exit $ac_status); } &&
10605
{ ac_try='test -z "$ac_c_werror_flag"
10606
|| test ! -s conftest.err'
10607
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10608
(eval $ac_try) 2>&5
10610
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611
(exit $ac_status); }; } &&
10612
{ ac_try='test -s conftest.$ac_objext'
10613
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10614
(eval $ac_try) 2>&5
10616
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617
(exit $ac_status); }; }; then
10618
ac_header_compiler=yes
10620
echo "$as_me: failed program was:" >&5
10621
sed 's/^/| /' conftest.$ac_ext >&5
10623
ac_header_compiler=no
10625
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10626
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10627
echo "${ECHO_T}$ac_header_compiler" >&6
10629
# Is the header present?
10630
echo "$as_me:$LINENO: checking $ac_header presence" >&5
10631
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10632
cat >conftest.$ac_ext <<_ACEOF
10635
cat confdefs.h >>conftest.$ac_ext
10636
cat >>conftest.$ac_ext <<_ACEOF
10637
/* end confdefs.h. */
10638
#include <$ac_header>
10640
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10641
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10643
grep -v '^ *+' conftest.er1 >conftest.err
10645
cat conftest.err >&5
10646
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647
(exit $ac_status); } >/dev/null; then
10648
if test -s conftest.err; then
10649
ac_cpp_err=$ac_c_preproc_warn_flag
10650
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10657
if test -z "$ac_cpp_err"; then
10658
ac_header_preproc=yes
10660
echo "$as_me: failed program was:" >&5
10661
sed 's/^/| /' conftest.$ac_ext >&5
10663
ac_header_preproc=no
10665
rm -f conftest.err conftest.$ac_ext
10666
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10667
echo "${ECHO_T}$ac_header_preproc" >&6
10669
# So? What about this header?
10670
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10672
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10673
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10674
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10675
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10676
ac_header_preproc=yes
10679
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10680
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10681
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10682
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10683
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10684
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10685
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10686
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10687
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10688
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10689
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10690
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10693
## -------------------------------------- ##
10694
## Report this to the GNU Texinfo lists. ##
10695
## -------------------------------------- ##
10698
sed "s/^/$as_me: WARNING: /" >&2
10701
echo "$as_me:$LINENO: checking for $ac_header" >&5
10702
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10703
if eval "test \"\${$as_ac_Header+set}\" = set"; then
10704
echo $ECHO_N "(cached) $ECHO_C" >&6
10706
eval "$as_ac_Header=\$ac_header_preproc"
10708
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10709
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10712
if test `eval echo '${'$as_ac_Header'}'` = yes; then
10713
cat >>confdefs.h <<_ACEOF
10714
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5275
10723
if test "X$prefix" = "XNONE"; then
5276
10724
acl_final_prefix="$ac_default_prefix"
11273
echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
11274
echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
11275
if test "${ac_cv_type_ptrdiff_t+set}" = set; then
11276
echo $ECHO_N "(cached) $ECHO_C" >&6
11278
cat >conftest.$ac_ext <<_ACEOF
11281
cat confdefs.h >>conftest.$ac_ext
11282
cat >>conftest.$ac_ext <<_ACEOF
11283
/* end confdefs.h. */
11284
$ac_includes_default
11288
if ((ptrdiff_t *) 0)
11290
if (sizeof (ptrdiff_t))
11296
rm -f conftest.$ac_objext
11297
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11298
(eval $ac_compile) 2>conftest.er1
11300
grep -v '^ *+' conftest.er1 >conftest.err
11302
cat conftest.err >&5
11303
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304
(exit $ac_status); } &&
11305
{ ac_try='test -z "$ac_c_werror_flag"
11306
|| test ! -s conftest.err'
11307
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11308
(eval $ac_try) 2>&5
11310
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311
(exit $ac_status); }; } &&
11312
{ ac_try='test -s conftest.$ac_objext'
11313
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11314
(eval $ac_try) 2>&5
11316
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11317
(exit $ac_status); }; }; then
11318
ac_cv_type_ptrdiff_t=yes
11320
echo "$as_me: failed program was:" >&5
11321
sed 's/^/| /' conftest.$ac_ext >&5
11323
ac_cv_type_ptrdiff_t=no
11325
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11327
echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
11328
echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
11329
if test $ac_cv_type_ptrdiff_t = yes; then
11333
cat >>confdefs.h <<\_ACEOF
11334
#define ptrdiff_t long
11350
for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
11351
stdlib.h string.h unistd.h sys/param.h
11353
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11354
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11355
echo "$as_me:$LINENO: checking for $ac_header" >&5
11356
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11357
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11358
echo $ECHO_N "(cached) $ECHO_C" >&6
11360
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11361
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11363
# Is the header compilable?
11364
echo "$as_me:$LINENO: checking $ac_header usability" >&5
11365
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11366
cat >conftest.$ac_ext <<_ACEOF
11369
cat confdefs.h >>conftest.$ac_ext
11370
cat >>conftest.$ac_ext <<_ACEOF
11371
/* end confdefs.h. */
11372
$ac_includes_default
11373
#include <$ac_header>
11375
rm -f conftest.$ac_objext
11376
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11377
(eval $ac_compile) 2>conftest.er1
11379
grep -v '^ *+' conftest.er1 >conftest.err
11381
cat conftest.err >&5
11382
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11383
(exit $ac_status); } &&
11384
{ ac_try='test -z "$ac_c_werror_flag"
11385
|| test ! -s conftest.err'
11386
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11387
(eval $ac_try) 2>&5
11389
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11390
(exit $ac_status); }; } &&
11391
{ ac_try='test -s conftest.$ac_objext'
11392
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11393
(eval $ac_try) 2>&5
11395
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396
(exit $ac_status); }; }; then
11397
ac_header_compiler=yes
11399
echo "$as_me: failed program was:" >&5
11400
sed 's/^/| /' conftest.$ac_ext >&5
11402
ac_header_compiler=no
11404
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11405
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11406
echo "${ECHO_T}$ac_header_compiler" >&6
11408
# Is the header present?
11409
echo "$as_me:$LINENO: checking $ac_header presence" >&5
11410
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11411
cat >conftest.$ac_ext <<_ACEOF
11414
cat confdefs.h >>conftest.$ac_ext
11415
cat >>conftest.$ac_ext <<_ACEOF
11416
/* end confdefs.h. */
11417
#include <$ac_header>
11419
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11420
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11422
grep -v '^ *+' conftest.er1 >conftest.err
11424
cat conftest.err >&5
11425
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11426
(exit $ac_status); } >/dev/null; then
11427
if test -s conftest.err; then
11428
ac_cpp_err=$ac_c_preproc_warn_flag
11429
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11436
if test -z "$ac_cpp_err"; then
11437
ac_header_preproc=yes
11439
echo "$as_me: failed program was:" >&5
11440
sed 's/^/| /' conftest.$ac_ext >&5
11442
ac_header_preproc=no
11444
rm -f conftest.err conftest.$ac_ext
11445
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11446
echo "${ECHO_T}$ac_header_preproc" >&6
11448
# So? What about this header?
11449
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11451
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11452
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11453
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11454
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11455
ac_header_preproc=yes
11458
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11459
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11460
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11461
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11462
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11463
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11464
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11465
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11466
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11467
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11468
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11469
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11472
## -------------------------------------- ##
11473
## Report this to the GNU Texinfo lists. ##
11474
## -------------------------------------- ##
11477
sed "s/^/$as_me: WARNING: /" >&2
11480
echo "$as_me:$LINENO: checking for $ac_header" >&5
11481
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11482
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11483
echo $ECHO_N "(cached) $ECHO_C" >&6
11485
eval "$as_ac_Header=\$ac_header_preproc"
11487
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11488
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11491
if test `eval echo '${'$as_ac_Header'}'` = yes; then
11492
cat >>confdefs.h <<_ACEOF
11493
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11523
for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
11524
mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
11525
strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
11528
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11529
echo "$as_me:$LINENO: checking for $ac_func" >&5
11530
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11531
if eval "test \"\${$as_ac_var+set}\" = set"; then
11532
echo $ECHO_N "(cached) $ECHO_C" >&6
11534
cat >conftest.$ac_ext <<_ACEOF
11537
cat confdefs.h >>conftest.$ac_ext
11538
cat >>conftest.$ac_ext <<_ACEOF
11539
/* end confdefs.h. */
11540
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11541
For example, HP-UX 11i <limits.h> declares gettimeofday. */
11542
#define $ac_func innocuous_$ac_func
11544
/* System header to define __stub macros and hopefully few prototypes,
11545
which can conflict with char $ac_func (); below.
11546
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11547
<limits.h> exists even on freestanding compilers. */
11550
# include <limits.h>
11552
# include <assert.h>
11557
/* Override any gcc2 internal prototype to avoid an error. */
11562
/* We use char because int might match the return type of a gcc2
11563
builtin and then its argument prototype would still apply. */
11565
/* The GNU C library defines this for functions which it implements
11566
to always fail with ENOSYS. Some functions are actually named
11567
something starting with __ and the normal name is an alias. */
11568
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11571
char (*f) () = $ac_func;
11580
return f != $ac_func;
11585
rm -f conftest.$ac_objext conftest$ac_exeext
11586
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11587
(eval $ac_link) 2>conftest.er1
11589
grep -v '^ *+' conftest.er1 >conftest.err
11591
cat conftest.err >&5
11592
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593
(exit $ac_status); } &&
11594
{ ac_try='test -z "$ac_c_werror_flag"
11595
|| test ! -s conftest.err'
11596
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11597
(eval $ac_try) 2>&5
11599
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11600
(exit $ac_status); }; } &&
11601
{ ac_try='test -s conftest$ac_exeext'
11602
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11603
(eval $ac_try) 2>&5
11605
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606
(exit $ac_status); }; }; then
11607
eval "$as_ac_var=yes"
11609
echo "$as_me: failed program was:" >&5
11610
sed 's/^/| /' conftest.$ac_ext >&5
11612
eval "$as_ac_var=no"
11614
rm -f conftest.err conftest.$ac_objext \
11615
conftest$ac_exeext conftest.$ac_ext
11617
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11618
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11619
if test `eval echo '${'$as_ac_var'}'` = yes; then
11620
cat >>confdefs.h <<_ACEOF
11621
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11629
echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
11630
echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
11631
if test "${ac_cv_have_decl__snprintf+set}" = set; then
11632
echo $ECHO_N "(cached) $ECHO_C" >&6
11634
cat >conftest.$ac_ext <<_ACEOF
11637
cat confdefs.h >>conftest.$ac_ext
11638
cat >>conftest.$ac_ext <<_ACEOF
11639
/* end confdefs.h. */
11646
char *p = (char *) _snprintf;
11653
rm -f conftest.$ac_objext
11654
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11655
(eval $ac_compile) 2>conftest.er1
11657
grep -v '^ *+' conftest.er1 >conftest.err
11659
cat conftest.err >&5
11660
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661
(exit $ac_status); } &&
11662
{ ac_try='test -z "$ac_c_werror_flag"
11663
|| test ! -s conftest.err'
11664
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11665
(eval $ac_try) 2>&5
11667
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668
(exit $ac_status); }; } &&
11669
{ ac_try='test -s conftest.$ac_objext'
11670
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11671
(eval $ac_try) 2>&5
11673
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674
(exit $ac_status); }; }; then
11675
ac_cv_have_decl__snprintf=yes
11677
echo "$as_me: failed program was:" >&5
11678
sed 's/^/| /' conftest.$ac_ext >&5
11680
ac_cv_have_decl__snprintf=no
11682
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11684
echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
11685
echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
11686
if test $ac_cv_have_decl__snprintf = yes; then
11692
cat >>confdefs.h <<_ACEOF
11693
#define HAVE_DECL__SNPRINTF $gt_value
11698
echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
11699
echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
11700
if test "${ac_cv_have_decl__snwprintf+set}" = set; then
11701
echo $ECHO_N "(cached) $ECHO_C" >&6
11703
cat >conftest.$ac_ext <<_ACEOF
11706
cat confdefs.h >>conftest.$ac_ext
11707
cat >>conftest.$ac_ext <<_ACEOF
11708
/* end confdefs.h. */
11715
char *p = (char *) _snwprintf;
11722
rm -f conftest.$ac_objext
11723
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11724
(eval $ac_compile) 2>conftest.er1
11726
grep -v '^ *+' conftest.er1 >conftest.err
11728
cat conftest.err >&5
11729
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11730
(exit $ac_status); } &&
11731
{ ac_try='test -z "$ac_c_werror_flag"
11732
|| test ! -s conftest.err'
11733
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11734
(eval $ac_try) 2>&5
11736
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737
(exit $ac_status); }; } &&
11738
{ ac_try='test -s conftest.$ac_objext'
11739
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11740
(eval $ac_try) 2>&5
11742
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743
(exit $ac_status); }; }; then
11744
ac_cv_have_decl__snwprintf=yes
11746
echo "$as_me: failed program was:" >&5
11747
sed 's/^/| /' conftest.$ac_ext >&5
11749
ac_cv_have_decl__snwprintf=no
11751
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11753
echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
11754
echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
11755
if test $ac_cv_have_decl__snwprintf = yes; then
11761
cat >>confdefs.h <<_ACEOF
11762
#define HAVE_DECL__SNWPRINTF $gt_value
11768
echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
11769
echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
11770
if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
11771
echo $ECHO_N "(cached) $ECHO_C" >&6
11773
cat >conftest.$ac_ext <<_ACEOF
11776
cat confdefs.h >>conftest.$ac_ext
11777
cat >>conftest.$ac_ext <<_ACEOF
11778
/* end confdefs.h. */
11784
#ifndef feof_unlocked
11785
char *p = (char *) feof_unlocked;
11792
rm -f conftest.$ac_objext
11793
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11794
(eval $ac_compile) 2>conftest.er1
11796
grep -v '^ *+' conftest.er1 >conftest.err
11798
cat conftest.err >&5
11799
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11800
(exit $ac_status); } &&
11801
{ ac_try='test -z "$ac_c_werror_flag"
11802
|| test ! -s conftest.err'
11803
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11804
(eval $ac_try) 2>&5
11806
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807
(exit $ac_status); }; } &&
11808
{ ac_try='test -s conftest.$ac_objext'
11809
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11810
(eval $ac_try) 2>&5
11812
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11813
(exit $ac_status); }; }; then
11814
ac_cv_have_decl_feof_unlocked=yes
11816
echo "$as_me: failed program was:" >&5
11817
sed 's/^/| /' conftest.$ac_ext >&5
11819
ac_cv_have_decl_feof_unlocked=no
11821
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11823
echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
11824
echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
11825
if test $ac_cv_have_decl_feof_unlocked = yes; then
11831
cat >>confdefs.h <<_ACEOF
11832
#define HAVE_DECL_FEOF_UNLOCKED $gt_value
11837
echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
11838
echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
11839
if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
11840
echo $ECHO_N "(cached) $ECHO_C" >&6
11842
cat >conftest.$ac_ext <<_ACEOF
11845
cat confdefs.h >>conftest.$ac_ext
11846
cat >>conftest.$ac_ext <<_ACEOF
11847
/* end confdefs.h. */
11853
#ifndef fgets_unlocked
11854
char *p = (char *) fgets_unlocked;
11861
rm -f conftest.$ac_objext
11862
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11863
(eval $ac_compile) 2>conftest.er1
11865
grep -v '^ *+' conftest.er1 >conftest.err
11867
cat conftest.err >&5
11868
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869
(exit $ac_status); } &&
11870
{ ac_try='test -z "$ac_c_werror_flag"
11871
|| test ! -s conftest.err'
11872
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11873
(eval $ac_try) 2>&5
11875
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876
(exit $ac_status); }; } &&
11877
{ ac_try='test -s conftest.$ac_objext'
11878
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11879
(eval $ac_try) 2>&5
11881
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882
(exit $ac_status); }; }; then
11883
ac_cv_have_decl_fgets_unlocked=yes
11885
echo "$as_me: failed program was:" >&5
11886
sed 's/^/| /' conftest.$ac_ext >&5
11888
ac_cv_have_decl_fgets_unlocked=no
11890
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11892
echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
11893
echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
11894
if test $ac_cv_have_decl_fgets_unlocked = yes; then
11900
cat >>confdefs.h <<_ACEOF
11901
#define HAVE_DECL_FGETS_UNLOCKED $gt_value
11906
echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
11907
echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
11908
if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
11909
echo $ECHO_N "(cached) $ECHO_C" >&6
11911
cat >conftest.$ac_ext <<_ACEOF
11914
cat confdefs.h >>conftest.$ac_ext
11915
cat >>conftest.$ac_ext <<_ACEOF
11916
/* end confdefs.h. */
11922
#ifndef getc_unlocked
11923
char *p = (char *) getc_unlocked;
11930
rm -f conftest.$ac_objext
11931
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11932
(eval $ac_compile) 2>conftest.er1
11934
grep -v '^ *+' conftest.er1 >conftest.err
11936
cat conftest.err >&5
11937
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938
(exit $ac_status); } &&
11939
{ ac_try='test -z "$ac_c_werror_flag"
11940
|| test ! -s conftest.err'
11941
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11942
(eval $ac_try) 2>&5
11944
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945
(exit $ac_status); }; } &&
11946
{ ac_try='test -s conftest.$ac_objext'
11947
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11948
(eval $ac_try) 2>&5
11950
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951
(exit $ac_status); }; }; then
11952
ac_cv_have_decl_getc_unlocked=yes
11954
echo "$as_me: failed program was:" >&5
11955
sed 's/^/| /' conftest.$ac_ext >&5
11957
ac_cv_have_decl_getc_unlocked=no
11959
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11961
echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
11962
echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
11963
if test $ac_cv_have_decl_getc_unlocked = yes; then
11969
cat >>confdefs.h <<_ACEOF
11970
#define HAVE_DECL_GETC_UNLOCKED $gt_value
11975
case $gt_cv_func_printf_posix in
11976
*yes) HAVE_POSIX_PRINTF=1 ;;
11977
*) HAVE_POSIX_PRINTF=0 ;;
11980
if test "$ac_cv_func_asprintf" = yes; then
11986
if test "$ac_cv_func_snprintf" = yes; then
11992
if test "$ac_cv_func_wprintf" = yes; then
5763
12004
am_save_CPPFLAGS="$CPPFLAGS"
5765
12006
for element in $INCICONV; do
6909
13269
# trailing colons and then remove the whole line if VPATH becomes empty
6910
13270
# (actually we leave an empty line to preserve line numbers).
6911
13271
if test "x$srcdir" = x.; then
6912
ac_vpsub='/^[ ]*VPATH[ ]*=/{
13272
ac_vpsub='/^[ ]*VPATH[ ]*=/{
6913
13273
s/:*\$(srcdir):*/:/;
6914
13274
s/:*\${srcdir}:*/:/;
6915
13275
s/:*@srcdir@:*/:/;
6916
s/^\([^=]*=[ ]*\):*/\1/;
13276
s/^\([^=]*=[ ]*\):*/\1/;
6922
13282
DEFS=-DHAVE_CONFIG_H
13286
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13287
# 1. Remove the extension, and $U if already installed.
13288
ac_i=`echo "$ac_i" |
13289
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13291
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
13292
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
13294
LIBOBJS=$ac_libobjs
13296
LTLIBOBJS=$ac_ltlibobjs
13299
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13300
{ { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
13301
Usually this means the macro was only invoked conditionally." >&5
13302
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
13303
Usually this means the macro was only invoked conditionally." >&2;}
13304
{ (exit 1); exit 1; }; }
13306
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13307
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13308
Usually this means the macro was only invoked conditionally." >&5
13309
echo "$as_me: error: conditional \"AMDEP\" was never defined.
13310
Usually this means the macro was only invoked conditionally." >&2;}
13311
{ (exit 1); exit 1; }; }
13313
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13314
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13315
Usually this means the macro was only invoked conditionally." >&5
13316
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13317
Usually this means the macro was only invoked conditionally." >&2;}
13318
{ (exit 1); exit 1; }; }
13320
if test -z "${TOOLS_ONLY_TRUE}" && test -z "${TOOLS_ONLY_FALSE}"; then
13321
{ { echo "$as_me:$LINENO: error: conditional \"TOOLS_ONLY\" was never defined.
13322
Usually this means the macro was only invoked conditionally." >&5
13323
echo "$as_me: error: conditional \"TOOLS_ONLY\" was never defined.
13324
Usually this means the macro was only invoked conditionally." >&2;}
13325
{ (exit 1); exit 1; }; }
13327
if test -z "${INSTALL_WARNINGS_TRUE}" && test -z "${INSTALL_WARNINGS_FALSE}"; then
13328
{ { echo "$as_me:$LINENO: error: conditional \"INSTALL_WARNINGS\" was never defined.
13329
Usually this means the macro was only invoked conditionally." >&5
13330
echo "$as_me: error: conditional \"INSTALL_WARNINGS\" was never defined.
13331
Usually this means the macro was only invoked conditionally." >&2;}
13332
{ (exit 1); exit 1; }; }
6924
13335
: ${CONFIG_STATUS=./config.status}
6925
13336
ac_clean_files_save=$ac_clean_files
6926
13337
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6927
{ echo "$as_me:6927: creating $CONFIG_STATUS" >&5
13338
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6928
13339
echo "$as_me: creating $CONFIG_STATUS" >&6;}
6929
13340
cat >$CONFIG_STATUS <<_ACEOF
6931
# Generated automatically by configure.
13342
# Generated by $as_me.
6932
13343
# Run this file to recreate the current configuration.
6933
13344
# Compiler output produced by configure, useful for debugging
6934
13345
# configure, is in config.log if it exists.
13348
ac_cs_recheck=false
6937
13350
SHELL=\${CONFIG_SHELL-$SHELL}
6938
ac_cs_invocation="\$0 \$@"
6942
13353
cat >>$CONFIG_STATUS <<\_ACEOF
13354
## --------------------- ##
13355
## M4sh Initialization. ##
13356
## --------------------- ##
6943
13358
# Be Bourne compatible
6944
13359
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13362
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13363
# is contrary to our usage. Disable this feature.
13364
alias -g '${1+"$@"}'='"$@"'
6947
13365
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13368
DUALCASE=1; export DUALCASE # for MKS sh
13370
# Support unset when possible.
13371
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13378
# Work around bugs in pre-3.0 UWIN ksh.
13379
$as_unset ENV MAIL MAILPATH
13386
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13387
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13388
LC_TELEPHONE LC_TIME
13390
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13391
eval $as_var=C; export $as_var
13397
# Required to use basename.
13398
if expr a : '\(a\)' >/dev/null 2>&1; then
13404
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
13405
as_basename=basename
6951
13411
# Name of the executable.
6952
as_me=`echo "$0" |sed 's,.*[\\/],,'`
13412
as_me=`$as_basename "$0" ||
13413
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13414
X"$0" : 'X\(//\)$' \| \
13415
X"$0" : 'X\(/\)$' \| \
13416
. : '\(.\)' 2>/dev/null ||
13418
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13419
/^X\/\(\/\/\)$/{ s//\1/; q; }
13420
/^X\/\(\/\).*/{ s//\1/; q; }
13424
# PATH needs CR, and LINENO needs CR and PATH.
13425
# Avoid depending upon Character Ranges.
13426
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13427
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13428
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13429
as_cr_digits='0123456789'
13430
as_cr_alnum=$as_cr_Letters$as_cr_digits
13432
# The user is always right.
13433
if test "${PATH_SEPARATOR+set}" != set; then
13434
echo "#! /bin/sh" >conf$$.sh
13435
echo "exit 0" >>conf$$.sh
13437
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13446
as_lineno_1=$LINENO
13447
as_lineno_2=$LINENO
13448
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13449
test "x$as_lineno_1" != "x$as_lineno_2" &&
13450
test "x$as_lineno_3" = "x$as_lineno_2" || {
13451
# Find who we are. Look in the path if we contain no path at all
13454
*[\\/]* ) as_myself=$0 ;;
13455
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13456
for as_dir in $PATH
13459
test -z "$as_dir" && as_dir=.
13460
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13465
# We did not find ourselves, most probably we were run as `sh COMMAND'
13466
# in which case we are not to be found in the path.
13467
if test "x$as_myself" = x; then
13470
if test ! -f "$as_myself"; then
13471
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13472
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13473
{ (exit 1); exit 1; }; }
13475
case $CONFIG_SHELL in
13477
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13478
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13481
test -z "$as_dir" && as_dir=.
13482
for as_base in sh bash ksh sh5; do
13485
if ("$as_dir/$as_base" -c '
13486
as_lineno_1=$LINENO
13487
as_lineno_2=$LINENO
13488
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13489
test "x$as_lineno_1" != "x$as_lineno_2" &&
13490
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
13491
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
13492
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
13493
CONFIG_SHELL=$as_dir/$as_base
13494
export CONFIG_SHELL
13495
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13503
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13504
# uniformly replaced by the line number. The first 'sed' inserts a
13505
# line-number line before each line; the second 'sed' does the real
13506
# work. The second script uses 'N' to pair each line-number line
13507
# with the numbered line, and appends trailing '-' during
13508
# substitution so that $LINENO is not a special case at line end.
13509
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13510
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
13511
sed '=' <$as_myself |
13516
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13519
s,^['$as_cr_digits']*\n,,
13520
' >$as_me.lineno &&
13521
chmod +x $as_me.lineno ||
13522
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13523
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13524
{ (exit 1); exit 1; }; }
13526
# Don't try to exec as it changes $[0], causing all sort of problems
13527
# (the dirname of $[0] is not the place where we might find the
13528
# original and so on. Autoconf is especially sensible to this).
13530
# Exit status is that of the last command.
13535
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13536
*c*,-n*) ECHO_N= ECHO_C='
13538
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13539
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6954
13542
if expr a : '\(a\)' >/dev/null 2>&1; then
7251
13872
s,@oldincludedir@,$oldincludedir,;t t
7252
13873
s,@infodir@,$infodir,;t t
7253
13874
s,@mandir@,$mandir,;t t
7254
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7255
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7256
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7257
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7258
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7259
13875
s,@build_alias@,$build_alias,;t t
7260
13876
s,@host_alias@,$host_alias,;t t
7261
13877
s,@target_alias@,$target_alias,;t t
13878
s,@DEFS@,$DEFS,;t t
7262
13879
s,@ECHO_C@,$ECHO_C,;t t
7263
13880
s,@ECHO_N@,$ECHO_N,;t t
7264
13881
s,@ECHO_T@,$ECHO_T,;t t
7265
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7267
13882
s,@LIBS@,$LIBS,;t t
7268
13883
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7269
13884
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7270
13885
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13886
s,@CYGPATH_W@,$CYGPATH_W,;t t
7271
13887
s,@PACKAGE@,$PACKAGE,;t t
7272
13888
s,@VERSION@,$VERSION,;t t
7273
s,@EXEEXT@,$EXEEXT,;t t
7274
s,@OBJEXT@,$OBJEXT,;t t
7275
13889
s,@ACLOCAL@,$ACLOCAL,;t t
7276
13890
s,@AUTOCONF@,$AUTOCONF,;t t
7277
13891
s,@AUTOMAKE@,$AUTOMAKE,;t t
7278
13892
s,@AUTOHEADER@,$AUTOHEADER,;t t
7279
13893
s,@MAKEINFO@,$MAKEINFO,;t t
7280
s,@AMTAR@,$AMTAR,;t t
7281
13894
s,@install_sh@,$install_sh,;t t
13895
s,@STRIP@,$STRIP,;t t
13896
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
7282
13897
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
13898
s,@mkdir_p@,$mkdir_p,;t t
7283
13899
s,@AWK@,$AWK,;t t
7284
13900
s,@SET_MAKE@,$SET_MAKE,;t t
7285
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
7286
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
7287
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
7288
s,@DEPDIR@,$DEPDIR,;t t
7289
s,@TEXINFO_MAINT_TRUE@,$TEXINFO_MAINT_TRUE,;t t
7290
s,@TEXINFO_MAINT_FALSE@,$TEXINFO_MAINT_FALSE,;t t
13901
s,@am__leading_dot@,$am__leading_dot,;t t
13902
s,@AMTAR@,$AMTAR,;t t
13903
s,@am__tar@,$am__tar,;t t
13904
s,@am__untar@,$am__untar,;t t
13905
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13906
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13907
s,@MAINT@,$MAINT,;t t
7291
13908
s,@CC@,$CC,;t t
7292
13909
s,@CFLAGS@,$CFLAGS,;t t
7293
13910
s,@LDFLAGS@,$LDFLAGS,;t t
7294
13911
s,@CPPFLAGS@,$CPPFLAGS,;t t
7295
13912
s,@ac_ct_CC@,$ac_ct_CC,;t t
13913
s,@EXEEXT@,$EXEEXT,;t t
13914
s,@OBJEXT@,$OBJEXT,;t t
13915
s,@DEPDIR@,$DEPDIR,;t t
7296
13916
s,@am__include@,$am__include,;t t
7297
13917
s,@am__quote@,$am__quote,;t t
13918
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
13919
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
13920
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
7298
13921
s,@CCDEPMODE@,$CCDEPMODE,;t t
13922
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
13923
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
7299
13924
s,@CPP@,$CPP,;t t
13925
s,@EGREP@,$EGREP,;t t
7300
13926
s,@RANLIB@,$RANLIB,;t t
7301
13927
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13928
s,@HELP2MAN@,$HELP2MAN,;t t
7302
13929
s,@ALLOCA@,$ALLOCA,;t t
7303
13930
s,@LIBOBJS@,$LIBOBJS,;t t
7304
s,@TERMLIBS@,$TERMLIBS,;t t
7305
s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
7306
s,@MSGFMT@,$MSGFMT,;t t
7307
s,@GMSGFMT@,$GMSGFMT,;t t
7308
s,@XGETTEXT@,$XGETTEXT,;t t
7309
s,@MSGMERGE@,$MSGMERGE,;t t
7310
13931
s,@build@,$build,;t t
7311
13932
s,@build_cpu@,$build_cpu,;t t
7312
13933
s,@build_vendor@,$build_vendor,;t t
7313
13934
s,@build_os@,$build_os,;t t
13935
s,@native_tools@,$native_tools,;t t
13936
s,@TOOLS_ONLY_TRUE@,$TOOLS_ONLY_TRUE,;t t
13937
s,@TOOLS_ONLY_FALSE@,$TOOLS_ONLY_FALSE,;t t
13938
s,@TERMLIBS@,$TERMLIBS,;t t
7314
13939
s,@host@,$host,;t t
7315
13940
s,@host_cpu@,$host_cpu,;t t
7316
13941
s,@host_vendor@,$host_vendor,;t t
7317
13942
s,@host_os@,$host_os,;t t
13943
s,@INSTALL_WARNINGS_TRUE@,$INSTALL_WARNINGS_TRUE,;t t
13944
s,@INSTALL_WARNINGS_FALSE@,$INSTALL_WARNINGS_FALSE,;t t
13945
s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
13946
s,@USE_NLS@,$USE_NLS,;t t
13947
s,@MSGFMT@,$MSGFMT,;t t
13948
s,@GMSGFMT@,$GMSGFMT,;t t
13949
s,@XGETTEXT@,$XGETTEXT,;t t
13950
s,@MSGMERGE@,$MSGMERGE,;t t
7318
13951
s,@GLIBC21@,$GLIBC21,;t t
13952
s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
13953
s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
13954
s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
13955
s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
7319
13956
s,@LIBICONV@,$LIBICONV,;t t
7320
13957
s,@LTLIBICONV@,$LTLIBICONV,;t t
7321
13958
s,@INTLBISON@,$INTLBISON,;t t
7322
s,@USE_NLS@,$USE_NLS,;t t
7323
13959
s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
7324
13960
s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
7325
13961
s,@CATOBJEXT@,$CATOBJEXT,;t t
7326
s,@INTLOBJS@,$INTLOBJS,;t t
7327
13962
s,@DATADIRNAME@,$DATADIRNAME,;t t
7328
13963
s,@INSTOBJEXT@,$INSTOBJEXT,;t t
7329
13964
s,@GENCAT@,$GENCAT,;t t
13965
s,@INTLOBJS@,$INTLOBJS,;t t
7330
13966
s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
7331
13967
s,@INTLLIBS@,$INTLLIBS,;t t
7332
13968
s,@LIBINTL@,$LIBINTL,;t t
7333
13969
s,@LTLIBINTL@,$LTLIBINTL,;t t
7334
13970
s,@POSUB@,$POSUB,;t t
13971
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7339
cat >>$CONFIG_STATUS <<\EOF
13976
cat >>$CONFIG_STATUS <<\_ACEOF
7340
13977
# Split the substitutions into bite-sized pieces for seds with
7341
13978
# small command number limits, like on Digital OSF/1 and HP-UX.
7342
13979
ac_max_sed_lines=48