3482
# Check whether --with-ipv6 was given.
3483
if test "${with_ipv6+set}" = set; then
3484
withval=$with_ipv6; if test "$withval" != "no" ; then
3485
{ $as_echo "$as_me:$LINENO: checking whether AI_ADDRCONFIG is declared" >&5
3486
$as_echo_n "checking whether AI_ADDRCONFIG is declared... " >&6; }
3487
if test "${ac_cv_have_decl_AI_ADDRCONFIG+set}" = set; then
3488
$as_echo_n "(cached) " >&6
3490
cat >conftest.$ac_ext <<_ACEOF
3493
cat confdefs.h >>conftest.$ac_ext
3494
cat >>conftest.$ac_ext <<_ACEOF
3495
/* end confdefs.h. */
3501
#ifndef AI_ADDRCONFIG
3502
(void) AI_ADDRCONFIG;
3509
rm -f conftest.$ac_objext
3510
if { (ac_try="$ac_compile"
3512
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3513
*) ac_try_echo=$ac_try;;
3515
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3516
$as_echo "$ac_try_echo") >&5
3517
(eval "$ac_compile") 2>conftest.er1
3519
grep -v '^ *+' conftest.er1 >conftest.err
3521
cat conftest.err >&5
3522
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523
(exit $ac_status); } && {
3524
test -z "$ac_c_werror_flag" ||
3525
test ! -s conftest.err
3526
} && test -s conftest.$ac_objext; then
3527
ac_cv_have_decl_AI_ADDRCONFIG=yes
3529
$as_echo "$as_me: failed program was:" >&5
3530
sed 's/^/| /' conftest.$ac_ext >&5
3532
ac_cv_have_decl_AI_ADDRCONFIG=no
3535
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3537
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_AI_ADDRCONFIG" >&5
3538
$as_echo "$ac_cv_have_decl_AI_ADDRCONFIG" >&6; }
3539
if test "x$ac_cv_have_decl_AI_ADDRCONFIG" = x""yes; then
3543
cat >>confdefs.h <<\_ACEOF
3544
#define AI_ADDRCONFIG 0
3550
cat >>confdefs.h <<\_ACEOF
3560
# Check whether --with-confdir was given.
3561
if test "${with_confdir+set}" = set; then
3562
withval=$with_confdir; { { $as_echo "$as_me:$LINENO: error: --with-confdir=D is obsolete. Please use --sysconfdir=D." >&5
3563
$as_echo "$as_me: error: --with-confdir=D is obsolete. Please use --sysconfdir=D." >&2;}
3564
{ (exit 1); exit 1; }; }
3567
if test "$sysconfdir" = '${prefix}/etc' && test "x$prefix" = "xNONE" ; then
3568
CONFDIR='/etc/leafnode'
3570
CONFDIR="$sysconfdir"
3573
if test "$CONFDIR" != "$sysconfdir"; then
3574
{ $as_echo "$as_me:$LINENO: WARNING: ***" >&5
3575
$as_echo "$as_me: WARNING: ***" >&2;}
3576
{ $as_echo "$as_me:$LINENO: WARNING: *** overriding sysconfdir to $CONFDIR" >&5
3577
$as_echo "$as_me: WARNING: *** overriding sysconfdir to $CONFDIR" >&2;}
3578
{ $as_echo "$as_me:$LINENO: WARNING: *** use --sysconfdir to fix" >&5
3579
$as_echo "$as_me: WARNING: *** use --sysconfdir to fix" >&2;}
3580
{ $as_echo "$as_me:$LINENO: WARNING: *** use --sysconfdir='\$prefix/etc' to get default autoconf behaviour" >&5
3581
$as_echo "$as_me: WARNING: *** use --sysconfdir='\$prefix/etc' to get default autoconf behaviour" >&2;}
3582
{ $as_echo "$as_me:$LINENO: WARNING: ***" >&5
3583
$as_echo "$as_me: WARNING: ***" >&2;}
3589
if test "$localstatedir" = '${prefix}/var' && test "$prefix" = NONE ; then
3592
myvar="$localstatedir"
3595
{ $as_echo "$as_me:$LINENO: checking spooldir" >&5
3596
$as_echo_n "checking spooldir... " >&6; }
3598
# Check whether --with-spooldir was given.
3599
if test "${with_spooldir+set}" = set; then
3600
withval=$with_spooldir; case "${withval-}" in
3602
*) { { $as_echo "$as_me:$LINENO: error: you must give an absolute path" >&5
3603
$as_echo "$as_me: error: you must give an absolute path" >&2;}
3604
{ (exit 1); exit 1; }; }
3607
withval=`echo "$withval" | sed 'sx/*$xx;'`
3610
withval="$myvar/spool/news"
3615
{ $as_echo "$as_me:$LINENO: result: $SPOOLDIR" >&5
3616
$as_echo "$SPOOLDIR" >&6; }
3619
{ $as_echo "$as_me:$LINENO: checking lockfile" >&5
3620
$as_echo_n "checking lockfile... " >&6; }
3622
# Check whether --with-lockfile was given.
3623
if test "${with_lockfile+set}" = set; then
3624
withval=$with_lockfile;
3625
case "${withval-}" in
3627
*) { { $as_echo "$as_me:$LINENO: error: you must give an absolute path" >&5
3628
$as_echo "$as_me: error: you must give an absolute path" >&2;}
3629
{ (exit 1); exit 1; }; }
3634
withval="$SPOOLDIR/leaf.node/lock.file"
3639
{ $as_echo "$as_me:$LINENO: result: $LOCKFILE" >&5
3640
$as_echo "$LOCKFILE" >&6; }
3643
for ac_prog in gawk mawk nawk awk
3645
# Extract the first word of "$ac_prog", so it can be a program name with args.
3646
set dummy $ac_prog; ac_word=$2
3647
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3648
$as_echo_n "checking for $ac_word... " >&6; }
3649
if test "${ac_cv_prog_AWK+set}" = set; then
3650
$as_echo_n "(cached) " >&6
3652
if test -n "$AWK"; then
3653
ac_cv_prog_AWK="$AWK" # Let the user override the test.
3655
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3659
test -z "$as_dir" && as_dir=.
3660
for ac_exec_ext in '' $ac_executable_extensions; do
3661
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3662
ac_cv_prog_AWK="$ac_prog"
3663
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3673
if test -n "$AWK"; then
3674
{ $as_echo "$as_me:$LINENO: result: $AWK" >&5
3675
$as_echo "$AWK" >&6; }
3677
{ $as_echo "$as_me:$LINENO: result: no" >&5
3678
$as_echo "no" >&6; }
3682
test -n "$AWK" && break
3686
ac_cpp='$CPP $CPPFLAGS'
3687
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3688
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3689
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3690
if test -n "$ac_tool_prefix"; then
3691
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3692
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3693
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3694
$as_echo_n "checking for $ac_word... " >&6; }
3695
if test "${ac_cv_prog_CC+set}" = set; then
3696
$as_echo_n "(cached) " >&6
3698
if test -n "$CC"; then
3699
ac_cv_prog_CC="$CC" # Let the user override the test.
3701
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3705
test -z "$as_dir" && as_dir=.
3706
for ac_exec_ext in '' $ac_executable_extensions; do
3707
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3708
ac_cv_prog_CC="${ac_tool_prefix}gcc"
3709
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3719
if test -n "$CC"; then
3720
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
3721
$as_echo "$CC" >&6; }
3723
{ $as_echo "$as_me:$LINENO: result: no" >&5
3724
$as_echo "no" >&6; }
3729
if test -z "$ac_cv_prog_CC"; then
3731
# Extract the first word of "gcc", so it can be a program name with args.
3732
set dummy gcc; ac_word=$2
3733
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3734
$as_echo_n "checking for $ac_word... " >&6; }
3735
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3736
$as_echo_n "(cached) " >&6
3738
if test -n "$ac_ct_CC"; then
3739
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3741
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3745
test -z "$as_dir" && as_dir=.
3746
for ac_exec_ext in '' $ac_executable_extensions; do
3747
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3748
ac_cv_prog_ac_ct_CC="gcc"
3749
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3758
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3759
if test -n "$ac_ct_CC"; then
3760
{ $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3761
$as_echo "$ac_ct_CC" >&6; }
3763
{ $as_echo "$as_me:$LINENO: result: no" >&5
3764
$as_echo "no" >&6; }
3767
if test "x$ac_ct_CC" = x; then
3770
case $cross_compiling:$ac_tool_warned in
3772
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3773
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3774
ac_tool_warned=yes ;;
3782
if test -z "$CC"; then
3783
if test -n "$ac_tool_prefix"; then
3784
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3785
set dummy ${ac_tool_prefix}cc; ac_word=$2
3786
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3787
$as_echo_n "checking for $ac_word... " >&6; }
3788
if test "${ac_cv_prog_CC+set}" = set; then
3789
$as_echo_n "(cached) " >&6
3791
if test -n "$CC"; then
3792
ac_cv_prog_CC="$CC" # Let the user override the test.
3794
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3798
test -z "$as_dir" && as_dir=.
3799
for ac_exec_ext in '' $ac_executable_extensions; do
3800
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3801
ac_cv_prog_CC="${ac_tool_prefix}cc"
3802
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3812
if test -n "$CC"; then
3813
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
3814
$as_echo "$CC" >&6; }
3816
{ $as_echo "$as_me:$LINENO: result: no" >&5
3817
$as_echo "no" >&6; }
3823
if test -z "$CC"; then
3824
# Extract the first word of "cc", so it can be a program name with args.
3825
set dummy cc; ac_word=$2
3826
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3827
$as_echo_n "checking for $ac_word... " >&6; }
3828
if test "${ac_cv_prog_CC+set}" = set; then
3829
$as_echo_n "(cached) " >&6
3831
if test -n "$CC"; then
3832
ac_cv_prog_CC="$CC" # Let the user override the test.
3835
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3839
test -z "$as_dir" && as_dir=.
3840
for ac_exec_ext in '' $ac_executable_extensions; do
3841
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3842
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3843
ac_prog_rejected=yes
3847
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3854
if test $ac_prog_rejected = yes; then
3855
# We found a bogon in the path, so make sure we never use it.
3856
set dummy $ac_cv_prog_CC
3858
if test $# != 0; then
3859
# We chose a different compiler from the bogus one.
3860
# However, it has the same basename, so the bogon will be chosen
3861
# first if we set CC to just the basename; use the full file name.
3863
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3869
if test -n "$CC"; then
3870
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
3871
$as_echo "$CC" >&6; }
3873
{ $as_echo "$as_me:$LINENO: result: no" >&5
3874
$as_echo "no" >&6; }
3879
if test -z "$CC"; then
3880
if test -n "$ac_tool_prefix"; then
3881
for ac_prog in cl.exe
3883
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3884
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3885
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3886
$as_echo_n "checking for $ac_word... " >&6; }
3887
if test "${ac_cv_prog_CC+set}" = set; then
3888
$as_echo_n "(cached) " >&6
3890
if test -n "$CC"; then
3891
ac_cv_prog_CC="$CC" # Let the user override the test.
3893
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3897
test -z "$as_dir" && as_dir=.
3898
for ac_exec_ext in '' $ac_executable_extensions; do
3899
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3900
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3901
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3911
if test -n "$CC"; then
3912
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
3913
$as_echo "$CC" >&6; }
3915
{ $as_echo "$as_me:$LINENO: result: no" >&5
3916
$as_echo "no" >&6; }
3920
test -n "$CC" && break
3923
if test -z "$CC"; then
3925
for ac_prog in cl.exe
3927
# Extract the first word of "$ac_prog", so it can be a program name with args.
3928
set dummy $ac_prog; ac_word=$2
3929
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3930
$as_echo_n "checking for $ac_word... " >&6; }
3931
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3932
$as_echo_n "(cached) " >&6
3934
if test -n "$ac_ct_CC"; then
3935
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3937
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3941
test -z "$as_dir" && as_dir=.
3942
for ac_exec_ext in '' $ac_executable_extensions; do
3943
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3944
ac_cv_prog_ac_ct_CC="$ac_prog"
3945
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3954
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3955
if test -n "$ac_ct_CC"; then
3956
{ $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3957
$as_echo "$ac_ct_CC" >&6; }
3959
{ $as_echo "$as_me:$LINENO: result: no" >&5
3960
$as_echo "no" >&6; }
3964
test -n "$ac_ct_CC" && break
3967
if test "x$ac_ct_CC" = x; then
3970
case $cross_compiling:$ac_tool_warned in
3972
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3973
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3974
ac_tool_warned=yes ;;
3983
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3984
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3985
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3986
See \`config.log' for more details." >&5
3987
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3988
See \`config.log' for more details." >&2;}
3989
{ (exit 1); exit 1; }; }; }
3991
# Provide some information about the compiler.
3992
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3995
{ (ac_try="$ac_compiler --version >&5"
3997
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3998
*) ac_try_echo=$ac_try;;
4000
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4001
$as_echo "$ac_try_echo") >&5
4002
(eval "$ac_compiler --version >&5") 2>&5
4004
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005
(exit $ac_status); }
4006
{ (ac_try="$ac_compiler -v >&5"
4008
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4009
*) ac_try_echo=$ac_try;;
4011
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4012
$as_echo "$ac_try_echo") >&5
4013
(eval "$ac_compiler -v >&5") 2>&5
4015
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016
(exit $ac_status); }
4017
{ (ac_try="$ac_compiler -V >&5"
4019
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4020
*) ac_try_echo=$ac_try;;
4022
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4023
$as_echo "$ac_try_echo") >&5
4024
(eval "$ac_compiler -V >&5") 2>&5
4026
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027
(exit $ac_status); }
4029
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4030
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4031
if test "${ac_cv_c_compiler_gnu+set}" = set; then
4032
$as_echo_n "(cached) " >&6
4034
cat >conftest.$ac_ext <<_ACEOF
4037
cat confdefs.h >>conftest.$ac_ext
4038
cat >>conftest.$ac_ext <<_ACEOF
4039
/* end confdefs.h. */
4052
rm -f conftest.$ac_objext
4053
if { (ac_try="$ac_compile"
4055
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4056
*) ac_try_echo=$ac_try;;
4058
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4059
$as_echo "$ac_try_echo") >&5
4060
(eval "$ac_compile") 2>conftest.er1
4062
grep -v '^ *+' conftest.er1 >conftest.err
4064
cat conftest.err >&5
4065
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066
(exit $ac_status); } && {
4067
test -z "$ac_c_werror_flag" ||
4068
test ! -s conftest.err
4069
} && test -s conftest.$ac_objext; then
4072
$as_echo "$as_me: failed program was:" >&5
4073
sed 's/^/| /' conftest.$ac_ext >&5
4078
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4079
ac_cv_c_compiler_gnu=$ac_compiler_gnu
4082
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4083
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4084
if test $ac_compiler_gnu = yes; then
4089
ac_test_CFLAGS=${CFLAGS+set}
4090
ac_save_CFLAGS=$CFLAGS
4091
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4092
$as_echo_n "checking whether $CC accepts -g... " >&6; }
4093
if test "${ac_cv_prog_cc_g+set}" = set; then
4094
$as_echo_n "(cached) " >&6
4096
ac_save_c_werror_flag=$ac_c_werror_flag
4097
ac_c_werror_flag=yes
4100
cat >conftest.$ac_ext <<_ACEOF
4103
cat confdefs.h >>conftest.$ac_ext
4104
cat >>conftest.$ac_ext <<_ACEOF
4105
/* end confdefs.h. */
4115
rm -f conftest.$ac_objext
4116
if { (ac_try="$ac_compile"
4118
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4119
*) ac_try_echo=$ac_try;;
4121
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4122
$as_echo "$ac_try_echo") >&5
4123
(eval "$ac_compile") 2>conftest.er1
4125
grep -v '^ *+' conftest.er1 >conftest.err
4127
cat conftest.err >&5
4128
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129
(exit $ac_status); } && {
4130
test -z "$ac_c_werror_flag" ||
4131
test ! -s conftest.err
4132
} && test -s conftest.$ac_objext; then
4135
$as_echo "$as_me: failed program was:" >&5
4136
sed 's/^/| /' conftest.$ac_ext >&5
4139
cat >conftest.$ac_ext <<_ACEOF
4142
cat confdefs.h >>conftest.$ac_ext
4143
cat >>conftest.$ac_ext <<_ACEOF
4144
/* end confdefs.h. */
4154
rm -f conftest.$ac_objext
4155
if { (ac_try="$ac_compile"
4157
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4158
*) ac_try_echo=$ac_try;;
4160
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4161
$as_echo "$ac_try_echo") >&5
4162
(eval "$ac_compile") 2>conftest.er1
4164
grep -v '^ *+' conftest.er1 >conftest.err
4166
cat conftest.err >&5
4167
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168
(exit $ac_status); } && {
4169
test -z "$ac_c_werror_flag" ||
4170
test ! -s conftest.err
4171
} && test -s conftest.$ac_objext; then
4174
$as_echo "$as_me: failed program was:" >&5
4175
sed 's/^/| /' conftest.$ac_ext >&5
4177
ac_c_werror_flag=$ac_save_c_werror_flag
4179
cat >conftest.$ac_ext <<_ACEOF
4182
cat confdefs.h >>conftest.$ac_ext
4183
cat >>conftest.$ac_ext <<_ACEOF
4184
/* end confdefs.h. */
4194
rm -f conftest.$ac_objext
4195
if { (ac_try="$ac_compile"
4197
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4198
*) ac_try_echo=$ac_try;;
4200
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4201
$as_echo "$ac_try_echo") >&5
4202
(eval "$ac_compile") 2>conftest.er1
4204
grep -v '^ *+' conftest.er1 >conftest.err
4206
cat conftest.err >&5
4207
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208
(exit $ac_status); } && {
4209
test -z "$ac_c_werror_flag" ||
4210
test ! -s conftest.err
4211
} && test -s conftest.$ac_objext; then
4214
$as_echo "$as_me: failed program was:" >&5
4215
sed 's/^/| /' conftest.$ac_ext >&5
4220
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4223
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4226
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4227
ac_c_werror_flag=$ac_save_c_werror_flag
4229
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4230
$as_echo "$ac_cv_prog_cc_g" >&6; }
4231
if test "$ac_test_CFLAGS" = set; then
4232
CFLAGS=$ac_save_CFLAGS
4233
elif test $ac_cv_prog_cc_g = yes; then
4234
if test "$GCC" = yes; then
4240
if test "$GCC" = yes; then
4246
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3544
case $ac_cv_prog_cc_stdc in
3545
no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
3546
*) { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
3547
$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3548
if test "${ac_cv_prog_cc_c99+set}" = set; then
3549
$as_echo_n "(cached) " >&6
3551
ac_cv_prog_cc_c99=no
3553
cat >conftest.$ac_ext <<_ACEOF
3556
cat confdefs.h >>conftest.$ac_ext
3557
cat >>conftest.$ac_ext <<_ACEOF
3558
/* end confdefs.h. */
3560
#include <stdbool.h>
3565
// Check varargs macros. These examples are taken from C99 6.10.3.5.
3566
#define debug(...) fprintf (stderr, __VA_ARGS__)
3567
#define showlist(...) puts (#__VA_ARGS__)
3568
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3570
test_varargs_macros (void)
3575
debug ("X = %d\n", x);
3576
showlist (The first, second, and third items.);
3577
report (x>y, "x is %d but y is %d", x, y);
3580
// Check long long types.
3581
#define BIG64 18446744073709551615ull
3582
#define BIG32 4294967295ul
3583
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3585
your preprocessor is broken;
3589
your preprocessor is broken;
3591
static long long int bignum = -9223372036854775807LL;
3592
static unsigned long long int ubignum = BIG64;
3594
struct incomplete_array
3602
const wchar_t *name;
3606
typedef const char *ccp;
3609
test_restrict (ccp restrict text)
3611
// See if C++-style comments work.
3612
// Iterate through items via the restricted pointer.
3613
// Also check for declarations in for loops.
3614
for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3619
// Check varargs and va_copy.
3621
test_varargs (const char *format, ...)
3624
va_start (args, format);
3626
va_copy (args_copy, args);
3637
str = va_arg (args_copy, const char *);
3640
number = va_arg (args_copy, int);
3643
fnumber = va_arg (args_copy, double);
3658
_Bool success = false;
3661
if (test_restrict ("String literal") == 0)
3663
char *restrict newvar = "Another string";
3666
test_varargs ("s, d' f .", "string", 65, 34.234);
3667
test_varargs_macros ();
3669
// Check flexible array members.
3670
struct incomplete_array *ia =
3671
malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3673
for (int i = 0; i < ia->datasize; ++i)
3674
ia->data[i] = i * 1.234;
3676
// Check named initializers.
3677
struct named_init ni = {
3679
.name = L"Test wide string",
3680
.average = 543.34343,
3685
int dynamic_array[ni.number];
3686
dynamic_array[ni.number - 1] = 543;
3688
// work around unused variable warnings
3689
return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3690
|| dynamic_array[ni.number - 1] != 543);
3696
for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3698
CC="$ac_save_CC $ac_arg"
3699
rm -f conftest.$ac_objext
3700
if { (ac_try="$ac_compile"
3702
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3703
*) ac_try_echo=$ac_try;;
3705
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3706
$as_echo "$ac_try_echo") >&5
3707
(eval "$ac_compile") 2>conftest.er1
3709
grep -v '^ *+' conftest.er1 >conftest.err
3711
cat conftest.err >&5
3712
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713
(exit $ac_status); } && {
3714
test -z "$ac_c_werror_flag" ||
3715
test ! -s conftest.err
3716
} && test -s conftest.$ac_objext; then
3717
ac_cv_prog_cc_c99=$ac_arg
3719
$as_echo "$as_me: failed program was:" >&5
3720
sed 's/^/| /' conftest.$ac_ext >&5
3725
rm -f core conftest.err conftest.$ac_objext
3726
test "x$ac_cv_prog_cc_c99" != "xno" && break
3728
rm -f conftest.$ac_ext
3733
case "x$ac_cv_prog_cc_c99" in
3735
{ $as_echo "$as_me:$LINENO: result: none needed" >&5
3736
$as_echo "none needed" >&6; } ;;
3738
{ $as_echo "$as_me:$LINENO: result: unsupported" >&5
3739
$as_echo "unsupported" >&6; } ;;
3741
CC="$CC $ac_cv_prog_cc_c99"
3742
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
3743
$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3745
if test "x$ac_cv_prog_cc_c99" != xno; then
3746
ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3748
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4247
3749
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4248
3750
if test "${ac_cv_prog_cc_c89+set}" = set; then
4249
3751
$as_echo_n "(cached) " >&6
4357
3859
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4358
3860
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4363
ac_cpp='$CPP $CPPFLAGS'
4364
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4365
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4366
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4368
depcc="$CC" am_compiler_list=
4370
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4371
$as_echo_n "checking dependency style of $depcc... " >&6; }
4372
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4373
$as_echo_n "(cached) " >&6
4375
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4376
# We make a subdir and do the tests there. Otherwise we can end up
4377
# making bogus files that we don't know about and never remove. For
4378
# instance it was reported that on HP-UX the gcc test will end up
4379
# making a dummy file named `D' -- because `-MD' means `put the output
4382
# Copy depcomp to subdir because otherwise we won't find it if we're
4383
# using a relative directory.
4384
cp "$am_depcomp" conftest.dir
4386
# We will build objects and dependencies in a subdirectory because
4387
# it helps to detect inapplicable dependency modes. For instance
4388
# both Tru64's cc and ICC support -MD to output dependencies as a
4389
# side effect of compilation, but ICC will put the dependencies in
4390
# the current directory while Tru64 will put them in the object
4394
am_cv_CC_dependencies_compiler_type=none
4395
if test "$am_compiler_list" = ""; then
4396
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4398
for depmode in $am_compiler_list; do
4399
# Setup a source with many dependencies, because some compilers
4400
# like to wrap large dependency lists on column 80 (with \), and
4401
# we should not choose a depcomp mode which is confused by this.
4403
# We need to recreate these files for each test, as the compiler may
4404
# overwrite some of them when testing with obscure command lines.
4405
# This happens at least with the AIX C compiler.
4407
for i in 1 2 3 4 5 6; do
4408
echo '#include "conftst'$i'.h"' >> sub/conftest.c
4409
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4410
# Solaris 8's {/usr,}/bin/sh.
4411
touch sub/conftst$i.h
4413
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4417
# after this tag, mechanisms are not by side-effect, so they'll
4418
# only be used when explicitly requested
4419
if test "x$enable_dependency_tracking" = xyes; then
4427
# We check with `-c' and `-o' for the sake of the "dashmstdout"
4428
# mode. It turns out that the SunPro C++ compiler does not properly
4429
# handle `-M -o', and we need to detect this.
4430
if depmode=$depmode \
4431
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4432
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4433
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4434
>/dev/null 2>conftest.err &&
4435
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4436
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4437
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4438
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4439
# icc doesn't choke on unknown options, it will just issue warnings
4440
# or remarks (even with -Werror). So we grep stderr for any message
4441
# that says an option was ignored or not supported.
4442
# When given -MP, icc 7.0 and 7.1 complain thusly:
4443
# icc: Command line warning: ignoring option '-M'; no argument required
4444
# The diagnosis changed in icc 8.0:
4445
# icc: Command line remark: option '-MP' not supported
4446
if (grep 'ignoring option' conftest.err ||
4447
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4448
am_cv_CC_dependencies_compiler_type=$depmode
4457
am_cv_CC_dependencies_compiler_type=none
4461
{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4462
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4463
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4466
test "x$enable_dependency_tracking" != xno \
4467
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4469
am__fastdepCC_FALSE='#'
4471
am__fastdepCC_TRUE='#'
4472
am__fastdepCC_FALSE=
4477
{ $as_echo "$as_me:$LINENO: checking for inline" >&5
4478
$as_echo_n "checking for inline... " >&6; }
4479
if test "${ac_cv_c_inline+set}" = set; then
4480
$as_echo_n "(cached) " >&6
4483
for ac_kw in inline __inline__ __inline; do
4484
cat >conftest.$ac_ext <<_ACEOF
4487
cat confdefs.h >>conftest.$ac_ext
4488
cat >>conftest.$ac_ext <<_ACEOF
4489
/* end confdefs.h. */
4492
static $ac_kw foo_t static_foo () {return 0; }
4493
$ac_kw foo_t foo () {return 0; }
4497
rm -f conftest.$ac_objext
4498
if { (ac_try="$ac_compile"
4500
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4501
*) ac_try_echo=$ac_try;;
4503
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4504
$as_echo "$ac_try_echo") >&5
4505
(eval "$ac_compile") 2>conftest.er1
4507
grep -v '^ *+' conftest.er1 >conftest.err
4509
cat conftest.err >&5
4510
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511
(exit $ac_status); } && {
4512
test -z "$ac_c_werror_flag" ||
4513
test ! -s conftest.err
4514
} && test -s conftest.$ac_objext; then
4515
ac_cv_c_inline=$ac_kw
4517
$as_echo "$as_me: failed program was:" >&5
4518
sed 's/^/| /' conftest.$ac_ext >&5
4523
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4524
test "$ac_cv_c_inline" != no && break
4528
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4529
$as_echo "$ac_cv_c_inline" >&6; }
4532
case $ac_cv_c_inline in
4535
case $ac_cv_c_inline in
4537
*) ac_val=$ac_cv_c_inline;;
4539
cat >>confdefs.h <<_ACEOF
4541
#define inline $ac_val
4547
{ $as_echo "$as_me:$LINENO: checking for working volatile" >&5
4548
$as_echo_n "checking for working volatile... " >&6; }
4549
if test "${ac_cv_c_volatile+set}" = set; then
4550
$as_echo_n "(cached) " >&6
4552
cat >conftest.$ac_ext <<_ACEOF
4555
cat confdefs.h >>conftest.$ac_ext
4556
cat >>conftest.$ac_ext <<_ACEOF
4557
/* end confdefs.h. */
4564
int * volatile y = (int *) 0;
4570
rm -f conftest.$ac_objext
4571
if { (ac_try="$ac_compile"
4573
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4574
*) ac_try_echo=$ac_try;;
4576
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4577
$as_echo "$ac_try_echo") >&5
4578
(eval "$ac_compile") 2>conftest.er1
4580
grep -v '^ *+' conftest.er1 >conftest.err
4582
cat conftest.err >&5
4583
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584
(exit $ac_status); } && {
4585
test -z "$ac_c_werror_flag" ||
4586
test ! -s conftest.err
4587
} && test -s conftest.$ac_objext; then
4588
ac_cv_c_volatile=yes
4590
$as_echo "$as_me: failed program was:" >&5
4591
sed 's/^/| /' conftest.$ac_ext >&5
4596
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4598
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
4599
$as_echo "$ac_cv_c_volatile" >&6; }
4600
if test $ac_cv_c_volatile = no; then
4602
cat >>confdefs.h <<\_ACEOF
4603
#define volatile /**/
3862
if test "x$ac_cv_prog_cc_c89" != xno; then
3863
ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3865
ac_cv_prog_cc_stdc=no
3873
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
3874
$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
3875
if test "${ac_cv_prog_cc_stdc+set}" = set; then
3876
$as_echo_n "(cached) " >&6
3879
case $ac_cv_prog_cc_stdc in
3880
no) { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3881
$as_echo "unsupported" >&6; } ;;
3882
'') { $as_echo "$as_me:$LINENO: result: none needed" >&5
3883
$as_echo "none needed" >&6; } ;;
3884
*) { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3885
$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4609
3892
ac_cpp='$CPP $CPPFLAGS'
4976
4259
EGREP="$ac_cv_path_EGREP"
4979
if test $ac_cv_c_compiler_gnu = yes; then
4980
{ $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4981
$as_echo_n "checking whether $CC needs -traditional... " >&6; }
4982
if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4983
$as_echo_n "(cached) " >&6
4985
ac_pattern="Autoconf.*'x'"
4986
cat >conftest.$ac_ext <<_ACEOF
4989
cat confdefs.h >>conftest.$ac_ext
4990
cat >>conftest.$ac_ext <<_ACEOF
4991
/* end confdefs.h. */
4995
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4996
$EGREP "$ac_pattern" >/dev/null 2>&1; then
4997
ac_cv_prog_gcc_traditional=yes
4999
ac_cv_prog_gcc_traditional=no
5004
if test $ac_cv_prog_gcc_traditional = no; then
5005
cat >conftest.$ac_ext <<_ACEOF
5008
cat confdefs.h >>conftest.$ac_ext
5009
cat >>conftest.$ac_ext <<_ACEOF
5010
/* end confdefs.h. */
5014
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5015
$EGREP "$ac_pattern" >/dev/null 2>&1; then
5016
ac_cv_prog_gcc_traditional=yes
5022
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
5023
$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
5024
if test $ac_cv_prog_gcc_traditional = yes; then
5025
CC="$CC -traditional"
4262
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4263
$as_echo_n "checking for ANSI C header files... " >&6; }
4264
if test "${ac_cv_header_stdc+set}" = set; then
4265
$as_echo_n "(cached) " >&6
4267
cat >conftest.$ac_ext <<_ACEOF
4270
cat confdefs.h >>conftest.$ac_ext
4271
cat >>conftest.$ac_ext <<_ACEOF
4272
/* end confdefs.h. */
4286
rm -f conftest.$ac_objext
4287
if { (ac_try="$ac_compile"
4289
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4290
*) ac_try_echo=$ac_try;;
4292
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4293
$as_echo "$ac_try_echo") >&5
4294
(eval "$ac_compile") 2>conftest.er1
4296
grep -v '^ *+' conftest.er1 >conftest.err
4298
cat conftest.err >&5
4299
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300
(exit $ac_status); } && {
4301
test -z "$ac_c_werror_flag" ||
4302
test ! -s conftest.err
4303
} && test -s conftest.$ac_objext; then
4304
ac_cv_header_stdc=yes
4306
$as_echo "$as_me: failed program was:" >&5
4307
sed 's/^/| /' conftest.$ac_ext >&5
4309
ac_cv_header_stdc=no
4312
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4314
if test $ac_cv_header_stdc = yes; then
4315
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4316
cat >conftest.$ac_ext <<_ACEOF
4319
cat confdefs.h >>conftest.$ac_ext
4320
cat >>conftest.$ac_ext <<_ACEOF
4321
/* end confdefs.h. */
4325
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4326
$EGREP "memchr" >/dev/null 2>&1; then
4329
ac_cv_header_stdc=no
4335
if test $ac_cv_header_stdc = yes; then
4336
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4337
cat >conftest.$ac_ext <<_ACEOF
4340
cat confdefs.h >>conftest.$ac_ext
4341
cat >>conftest.$ac_ext <<_ACEOF
4342
/* end confdefs.h. */
4346
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4347
$EGREP "free" >/dev/null 2>&1; then
4350
ac_cv_header_stdc=no
4356
if test $ac_cv_header_stdc = yes; then
4357
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4358
if test "$cross_compiling" = yes; then
4361
cat >conftest.$ac_ext <<_ACEOF
4364
cat confdefs.h >>conftest.$ac_ext
4365
cat >>conftest.$ac_ext <<_ACEOF
4366
/* end confdefs.h. */
4369
#if ((' ' & 0x0FF) == 0x020)
4370
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4371
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4373
# define ISLOWER(c) \
4374
(('a' <= (c) && (c) <= 'i') \
4375
|| ('j' <= (c) && (c) <= 'r') \
4376
|| ('s' <= (c) && (c) <= 'z'))
4377
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4380
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4385
for (i = 0; i < 256; i++)
4386
if (XOR (islower (i), ISLOWER (i))
4387
|| toupper (i) != TOUPPER (i))
4392
rm -f conftest$ac_exeext
4393
if { (ac_try="$ac_link"
4395
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4396
*) ac_try_echo=$ac_try;;
4398
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4399
$as_echo "$ac_try_echo") >&5
4400
(eval "$ac_link") 2>&5
4402
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4404
{ (case "(($ac_try" in
4405
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4406
*) ac_try_echo=$ac_try;;
4408
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4409
$as_echo "$ac_try_echo") >&5
4410
(eval "$ac_try") 2>&5
4412
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413
(exit $ac_status); }; }; then
4416
$as_echo "$as_me: program exited with status $ac_status" >&5
4417
$as_echo "$as_me: failed program was:" >&5
4418
sed 's/^/| /' conftest.$ac_ext >&5
4421
ac_cv_header_stdc=no
4423
rm -rf conftest.dSYM
4424
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4430
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4431
$as_echo "$ac_cv_header_stdc" >&6; }
4432
if test $ac_cv_header_stdc = yes; then
4434
cat >>confdefs.h <<\_ACEOF
4435
#define STDC_HEADERS 1
4440
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4450
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4451
inttypes.h stdint.h unistd.h
4453
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4454
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4455
$as_echo_n "checking for $ac_header... " >&6; }
4456
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4457
$as_echo_n "(cached) " >&6
4459
cat >conftest.$ac_ext <<_ACEOF
4462
cat confdefs.h >>conftest.$ac_ext
4463
cat >>conftest.$ac_ext <<_ACEOF
4464
/* end confdefs.h. */
4465
$ac_includes_default
4467
#include <$ac_header>
4469
rm -f conftest.$ac_objext
4470
if { (ac_try="$ac_compile"
4472
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4473
*) ac_try_echo=$ac_try;;
4475
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4476
$as_echo "$ac_try_echo") >&5
4477
(eval "$ac_compile") 2>conftest.er1
4479
grep -v '^ *+' conftest.er1 >conftest.err
4481
cat conftest.err >&5
4482
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483
(exit $ac_status); } && {
4484
test -z "$ac_c_werror_flag" ||
4485
test ! -s conftest.err
4486
} && test -s conftest.$ac_objext; then
4487
eval "$as_ac_Header=yes"
4489
$as_echo "$as_me: failed program was:" >&5
4490
sed 's/^/| /' conftest.$ac_ext >&5
4492
eval "$as_ac_Header=no"
4495
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4497
ac_res=`eval 'as_val=${'$as_ac_Header'}
4498
$as_echo "$as_val"'`
4499
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4500
$as_echo "$ac_res" >&6; }
4501
as_val=`eval 'as_val=${'$as_ac_Header'}
4502
$as_echo "$as_val"'`
4503
if test "x$as_val" = x""yes; then
4504
cat >>confdefs.h <<_ACEOF
4505
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4514
if test "${ac_cv_header_minix_config_h+set}" = set; then
4515
{ $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4516
$as_echo_n "checking for minix/config.h... " >&6; }
4517
if test "${ac_cv_header_minix_config_h+set}" = set; then
4518
$as_echo_n "(cached) " >&6
4520
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4521
$as_echo "$ac_cv_header_minix_config_h" >&6; }
4523
# Is the header compilable?
4524
{ $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4525
$as_echo_n "checking minix/config.h usability... " >&6; }
4526
cat >conftest.$ac_ext <<_ACEOF
4529
cat confdefs.h >>conftest.$ac_ext
4530
cat >>conftest.$ac_ext <<_ACEOF
4531
/* end confdefs.h. */
4532
$ac_includes_default
4533
#include <minix/config.h>
4535
rm -f conftest.$ac_objext
4536
if { (ac_try="$ac_compile"
4538
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4539
*) ac_try_echo=$ac_try;;
4541
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4542
$as_echo "$ac_try_echo") >&5
4543
(eval "$ac_compile") 2>conftest.er1
4545
grep -v '^ *+' conftest.er1 >conftest.err
4547
cat conftest.err >&5
4548
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549
(exit $ac_status); } && {
4550
test -z "$ac_c_werror_flag" ||
4551
test ! -s conftest.err
4552
} && test -s conftest.$ac_objext; then
4553
ac_header_compiler=yes
4555
$as_echo "$as_me: failed program was:" >&5
4556
sed 's/^/| /' conftest.$ac_ext >&5
4558
ac_header_compiler=no
4561
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4562
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4563
$as_echo "$ac_header_compiler" >&6; }
4565
# Is the header present?
4566
{ $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4567
$as_echo_n "checking minix/config.h presence... " >&6; }
4568
cat >conftest.$ac_ext <<_ACEOF
4571
cat confdefs.h >>conftest.$ac_ext
4572
cat >>conftest.$ac_ext <<_ACEOF
4573
/* end confdefs.h. */
4574
#include <minix/config.h>
4576
if { (ac_try="$ac_cpp conftest.$ac_ext"
4578
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4579
*) ac_try_echo=$ac_try;;
4581
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4582
$as_echo "$ac_try_echo") >&5
4583
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4585
grep -v '^ *+' conftest.er1 >conftest.err
4587
cat conftest.err >&5
4588
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589
(exit $ac_status); } >/dev/null && {
4590
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4591
test ! -s conftest.err
4593
ac_header_preproc=yes
4595
$as_echo "$as_me: failed program was:" >&5
4596
sed 's/^/| /' conftest.$ac_ext >&5
4598
ac_header_preproc=no
4601
rm -f conftest.err conftest.$ac_ext
4602
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4603
$as_echo "$ac_header_preproc" >&6; }
4605
# So? What about this header?
4606
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4608
{ $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4609
$as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4610
{ $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4611
$as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4612
ac_header_preproc=yes
4615
{ $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4616
$as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4617
{ $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4618
$as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4619
{ $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4620
$as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4621
{ $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4622
$as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4623
{ $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4624
$as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4625
{ $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4626
$as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4630
{ $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4631
$as_echo_n "checking for minix/config.h... " >&6; }
4632
if test "${ac_cv_header_minix_config_h+set}" = set; then
4633
$as_echo_n "(cached) " >&6
4635
ac_cv_header_minix_config_h=$ac_header_preproc
4637
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4638
$as_echo "$ac_cv_header_minix_config_h" >&6; }
4641
if test "x$ac_cv_header_minix_config_h" = x""yes; then
4648
if test "$MINIX" = yes; then
4650
cat >>confdefs.h <<\_ACEOF
4651
#define _POSIX_SOURCE 1
4655
cat >>confdefs.h <<\_ACEOF
4656
#define _POSIX_1_SOURCE 2
4660
cat >>confdefs.h <<\_ACEOF
4668
{ $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4669
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4670
if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4671
$as_echo_n "(cached) " >&6
4673
cat >conftest.$ac_ext <<_ACEOF
4676
cat confdefs.h >>conftest.$ac_ext
4677
cat >>conftest.$ac_ext <<_ACEOF
4678
/* end confdefs.h. */
4680
# define __EXTENSIONS__ 1
4681
$ac_includes_default
4690
rm -f conftest.$ac_objext
4691
if { (ac_try="$ac_compile"
4693
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4694
*) ac_try_echo=$ac_try;;
4696
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4697
$as_echo "$ac_try_echo") >&5
4698
(eval "$ac_compile") 2>conftest.er1
4700
grep -v '^ *+' conftest.er1 >conftest.err
4702
cat conftest.err >&5
4703
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4704
(exit $ac_status); } && {
4705
test -z "$ac_c_werror_flag" ||
4706
test ! -s conftest.err
4707
} && test -s conftest.$ac_objext; then
4708
ac_cv_safe_to_define___extensions__=yes
4710
$as_echo "$as_me: failed program was:" >&5
4711
sed 's/^/| /' conftest.$ac_ext >&5
4713
ac_cv_safe_to_define___extensions__=no
4716
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4718
{ $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4719
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4720
test $ac_cv_safe_to_define___extensions__ = yes &&
4721
cat >>confdefs.h <<\_ACEOF
4722
#define __EXTENSIONS__ 1
4725
cat >>confdefs.h <<\_ACEOF
4726
#define _ALL_SOURCE 1
4729
cat >>confdefs.h <<\_ACEOF
4730
#define _GNU_SOURCE 1
4733
cat >>confdefs.h <<\_ACEOF
4734
#define _POSIX_PTHREAD_SEMANTICS 1
4737
cat >>confdefs.h <<\_ACEOF
4738
#define _TANDEM_SOURCE 1
4743
{ $as_echo "$as_me:$LINENO: checking for inline" >&5
4744
$as_echo_n "checking for inline... " >&6; }
4745
if test "${ac_cv_c_inline+set}" = set; then
4746
$as_echo_n "(cached) " >&6
4749
for ac_kw in inline __inline__ __inline; do
4750
cat >conftest.$ac_ext <<_ACEOF
4753
cat confdefs.h >>conftest.$ac_ext
4754
cat >>conftest.$ac_ext <<_ACEOF
4755
/* end confdefs.h. */
4758
static $ac_kw foo_t static_foo () {return 0; }
4759
$ac_kw foo_t foo () {return 0; }
4763
rm -f conftest.$ac_objext
4764
if { (ac_try="$ac_compile"
4766
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4767
*) ac_try_echo=$ac_try;;
4769
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4770
$as_echo "$ac_try_echo") >&5
4771
(eval "$ac_compile") 2>conftest.er1
4773
grep -v '^ *+' conftest.er1 >conftest.err
4775
cat conftest.err >&5
4776
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777
(exit $ac_status); } && {
4778
test -z "$ac_c_werror_flag" ||
4779
test ! -s conftest.err
4780
} && test -s conftest.$ac_objext; then
4781
ac_cv_c_inline=$ac_kw
4783
$as_echo "$as_me: failed program was:" >&5
4784
sed 's/^/| /' conftest.$ac_ext >&5
4789
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4790
test "$ac_cv_c_inline" != no && break
4794
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4795
$as_echo "$ac_cv_c_inline" >&6; }
4798
case $ac_cv_c_inline in
4801
case $ac_cv_c_inline in
4803
*) ac_val=$ac_cv_c_inline;;
4805
cat >>confdefs.h <<_ACEOF
4807
#define inline $ac_val
4813
{ $as_echo "$as_me:$LINENO: checking for working volatile" >&5
4814
$as_echo_n "checking for working volatile... " >&6; }
4815
if test "${ac_cv_c_volatile+set}" = set; then
4816
$as_echo_n "(cached) " >&6
4818
cat >conftest.$ac_ext <<_ACEOF
4821
cat confdefs.h >>conftest.$ac_ext
4822
cat >>conftest.$ac_ext <<_ACEOF
4823
/* end confdefs.h. */
4830
int * volatile y = (int *) 0;
4836
rm -f conftest.$ac_objext
4837
if { (ac_try="$ac_compile"
4839
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4840
*) ac_try_echo=$ac_try;;
4842
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4843
$as_echo "$ac_try_echo") >&5
4844
(eval "$ac_compile") 2>conftest.er1
4846
grep -v '^ *+' conftest.er1 >conftest.err
4848
cat conftest.err >&5
4849
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850
(exit $ac_status); } && {
4851
test -z "$ac_c_werror_flag" ||
4852
test ! -s conftest.err
4853
} && test -s conftest.$ac_objext; then
4854
ac_cv_c_volatile=yes
4856
$as_echo "$as_me: failed program was:" >&5
4857
sed 's/^/| /' conftest.$ac_ext >&5
4862
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4864
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
4865
$as_echo "$ac_cv_c_volatile" >&6; }
4866
if test $ac_cv_c_volatile = no; then
4868
cat >>confdefs.h <<\_ACEOF
4869
#define volatile /**/
5677
5539
test -z "$ac_c_werror_flag" ||
5678
5540
test ! -s conftest.err
5679
5541
} && test -s conftest.$ac_objext; then
5680
ac_cv_header_stdc=yes
5542
ac_cv_have_decl_AI_ADDRCONFIG=yes
5682
5544
$as_echo "$as_me: failed program was:" >&5
5683
5545
sed 's/^/| /' conftest.$ac_ext >&5
5685
ac_cv_header_stdc=no
5547
ac_cv_have_decl_AI_ADDRCONFIG=no
5688
5550
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5690
if test $ac_cv_header_stdc = yes; then
5691
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5692
cat >conftest.$ac_ext <<_ACEOF
5695
cat confdefs.h >>conftest.$ac_ext
5696
cat >>conftest.$ac_ext <<_ACEOF
5697
/* end confdefs.h. */
5701
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5702
$EGREP "memchr" >/dev/null 2>&1; then
5705
ac_cv_header_stdc=no
5711
if test $ac_cv_header_stdc = yes; then
5712
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5713
cat >conftest.$ac_ext <<_ACEOF
5716
cat confdefs.h >>conftest.$ac_ext
5717
cat >>conftest.$ac_ext <<_ACEOF
5718
/* end confdefs.h. */
5722
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5723
$EGREP "free" >/dev/null 2>&1; then
5726
ac_cv_header_stdc=no
5732
if test $ac_cv_header_stdc = yes; then
5733
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5734
if test "$cross_compiling" = yes; then
5737
cat >conftest.$ac_ext <<_ACEOF
5740
cat confdefs.h >>conftest.$ac_ext
5741
cat >>conftest.$ac_ext <<_ACEOF
5742
/* end confdefs.h. */
5745
#if ((' ' & 0x0FF) == 0x020)
5746
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5747
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5749
# define ISLOWER(c) \
5750
(('a' <= (c) && (c) <= 'i') \
5751
|| ('j' <= (c) && (c) <= 'r') \
5752
|| ('s' <= (c) && (c) <= 'z'))
5753
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5756
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5761
for (i = 0; i < 256; i++)
5762
if (XOR (islower (i), ISLOWER (i))
5763
|| toupper (i) != TOUPPER (i))
5768
rm -f conftest$ac_exeext
5769
if { (ac_try="$ac_link"
5771
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5772
*) ac_try_echo=$ac_try;;
5774
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5775
$as_echo "$ac_try_echo") >&5
5776
(eval "$ac_link") 2>&5
5778
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5780
{ (case "(($ac_try" in
5781
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5782
*) ac_try_echo=$ac_try;;
5784
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5785
$as_echo "$ac_try_echo") >&5
5786
(eval "$ac_try") 2>&5
5788
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789
(exit $ac_status); }; }; then
5792
$as_echo "$as_me: program exited with status $ac_status" >&5
5793
$as_echo "$as_me: failed program was:" >&5
5794
sed 's/^/| /' conftest.$ac_ext >&5
5797
ac_cv_header_stdc=no
5799
rm -rf conftest.dSYM
5800
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5806
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5807
$as_echo "$ac_cv_header_stdc" >&6; }
5808
if test $ac_cv_header_stdc = yes; then
5552
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_AI_ADDRCONFIG" >&5
5553
$as_echo "$ac_cv_have_decl_AI_ADDRCONFIG" >&6; }
5554
if test "x$ac_cv_have_decl_AI_ADDRCONFIG" = x""yes; then
5810
5558
cat >>confdefs.h <<\_ACEOF
5811
#define STDC_HEADERS 1
5816
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5826
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5827
inttypes.h stdint.h unistd.h
5829
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5830
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5831
$as_echo_n "checking for $ac_header... " >&6; }
5832
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5833
$as_echo_n "(cached) " >&6
5835
cat >conftest.$ac_ext <<_ACEOF
5838
cat confdefs.h >>conftest.$ac_ext
5839
cat >>conftest.$ac_ext <<_ACEOF
5840
/* end confdefs.h. */
5841
$ac_includes_default
5843
#include <$ac_header>
5845
rm -f conftest.$ac_objext
5846
if { (ac_try="$ac_compile"
5848
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5849
*) ac_try_echo=$ac_try;;
5851
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5852
$as_echo "$ac_try_echo") >&5
5853
(eval "$ac_compile") 2>conftest.er1
5855
grep -v '^ *+' conftest.er1 >conftest.err
5857
cat conftest.err >&5
5858
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859
(exit $ac_status); } && {
5860
test -z "$ac_c_werror_flag" ||
5861
test ! -s conftest.err
5862
} && test -s conftest.$ac_objext; then
5863
eval "$as_ac_Header=yes"
5865
$as_echo "$as_me: failed program was:" >&5
5866
sed 's/^/| /' conftest.$ac_ext >&5
5868
eval "$as_ac_Header=no"
5871
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5873
ac_res=`eval 'as_val=${'$as_ac_Header'}
5874
$as_echo "$as_val"'`
5875
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5876
$as_echo "$ac_res" >&6; }
5877
as_val=`eval 'as_val=${'$as_ac_Header'}
5878
$as_echo "$as_val"'`
5879
if test "x$as_val" = x""yes; then
5880
cat >>confdefs.h <<_ACEOF
5881
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5559
#define AI_ADDRCONFIG 0
5566
# Check whether --with-confdir was given.
5567
if test "${with_confdir+set}" = set; then
5568
withval=$with_confdir; { { $as_echo "$as_me:$LINENO: error: --with-confdir=D is obsolete. Please use --sysconfdir=D." >&5
5569
$as_echo "$as_me: error: --with-confdir=D is obsolete. Please use --sysconfdir=D." >&2;}
5570
{ (exit 1); exit 1; }; }
5573
if test "$sysconfdir" = '${prefix}/etc' && test "x$prefix" = "xNONE" ; then
5574
CONFDIR='/etc/leafnode'
5576
CONFDIR="$sysconfdir"
5579
if test "$CONFDIR" != "$sysconfdir"; then
5580
{ $as_echo "$as_me:$LINENO: WARNING: ***" >&5
5581
$as_echo "$as_me: WARNING: ***" >&2;}
5582
{ $as_echo "$as_me:$LINENO: WARNING: *** overriding sysconfdir to $CONFDIR" >&5
5583
$as_echo "$as_me: WARNING: *** overriding sysconfdir to $CONFDIR" >&2;}
5584
{ $as_echo "$as_me:$LINENO: WARNING: *** use --sysconfdir to fix" >&5
5585
$as_echo "$as_me: WARNING: *** use --sysconfdir to fix" >&2;}
5586
{ $as_echo "$as_me:$LINENO: WARNING: *** use --sysconfdir='\$prefix/etc' to get default autoconf behaviour" >&5
5587
$as_echo "$as_me: WARNING: *** use --sysconfdir='\$prefix/etc' to get default autoconf behaviour" >&2;}
5588
{ $as_echo "$as_me:$LINENO: WARNING: ***" >&5
5589
$as_echo "$as_me: WARNING: ***" >&2;}
5595
if test "$localstatedir" = '${prefix}/var' && test "$prefix" = NONE ; then
5598
myvar="$localstatedir"
5601
{ $as_echo "$as_me:$LINENO: checking spooldir" >&5
5602
$as_echo_n "checking spooldir... " >&6; }
5604
# Check whether --with-spooldir was given.
5605
if test "${with_spooldir+set}" = set; then
5606
withval=$with_spooldir; case "${withval-}" in
5608
*) { { $as_echo "$as_me:$LINENO: error: you must give an absolute path" >&5
5609
$as_echo "$as_me: error: you must give an absolute path" >&2;}
5610
{ (exit 1); exit 1; }; }
5613
withval=`echo "$withval" | sed 'sx/*$xx;'`
5616
withval="$myvar/spool/news"
5621
{ $as_echo "$as_me:$LINENO: result: $SPOOLDIR" >&5
5622
$as_echo "$SPOOLDIR" >&6; }
5625
{ $as_echo "$as_me:$LINENO: checking lockfile" >&5
5626
$as_echo_n "checking lockfile... " >&6; }
5628
# Check whether --with-lockfile was given.
5629
if test "${with_lockfile+set}" = set; then
5630
withval=$with_lockfile;
5631
case "${withval-}" in
5633
*) { { $as_echo "$as_me:$LINENO: error: you must give an absolute path" >&5
5634
$as_echo "$as_me: error: you must give an absolute path" >&2;}
5635
{ (exit 1); exit 1; }; }
5640
withval="$SPOOLDIR/leaf.node/lock.file"
5645
{ $as_echo "$as_me:$LINENO: result: $LOCKFILE" >&5
5646
$as_echo "$LOCKFILE" >&6; }
5889
5649
{ $as_echo "$as_me:$LINENO: checking for mode_t" >&5
7623
# The cast to long int works around a bug in the HP C Compiler
7624
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7625
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7626
# This bug is HP SR number 8606223364.
7627
{ $as_echo "$as_me:$LINENO: checking size of long" >&5
7628
$as_echo_n "checking size of long... " >&6; }
7629
if test "${ac_cv_sizeof_long+set}" = set; then
7630
$as_echo_n "(cached) " >&6
7632
if test "$cross_compiling" = yes; then
7633
# Depending upon the size, compute the lo and hi bounds.
7634
cat >conftest.$ac_ext <<_ACEOF
7637
cat confdefs.h >>conftest.$ac_ext
7638
cat >>conftest.$ac_ext <<_ACEOF
7639
/* end confdefs.h. */
7640
$ac_includes_default
7644
static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
7651
rm -f conftest.$ac_objext
7652
if { (ac_try="$ac_compile"
7654
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7655
*) ac_try_echo=$ac_try;;
7657
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7658
$as_echo "$ac_try_echo") >&5
7659
(eval "$ac_compile") 2>conftest.er1
7661
grep -v '^ *+' conftest.er1 >conftest.err
7663
cat conftest.err >&5
7664
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665
(exit $ac_status); } && {
7666
test -z "$ac_c_werror_flag" ||
7667
test ! -s conftest.err
7668
} && test -s conftest.$ac_objext; then
7671
cat >conftest.$ac_ext <<_ACEOF
7674
cat confdefs.h >>conftest.$ac_ext
7675
cat >>conftest.$ac_ext <<_ACEOF
7676
/* end confdefs.h. */
7677
$ac_includes_default
7681
static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
7688
rm -f conftest.$ac_objext
7689
if { (ac_try="$ac_compile"
7691
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7692
*) ac_try_echo=$ac_try;;
7694
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7695
$as_echo "$ac_try_echo") >&5
7696
(eval "$ac_compile") 2>conftest.er1
7698
grep -v '^ *+' conftest.er1 >conftest.err
7700
cat conftest.err >&5
7701
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702
(exit $ac_status); } && {
7703
test -z "$ac_c_werror_flag" ||
7704
test ! -s conftest.err
7705
} && test -s conftest.$ac_objext; then
7706
ac_hi=$ac_mid; break
7708
$as_echo "$as_me: failed program was:" >&5
7709
sed 's/^/| /' conftest.$ac_ext >&5
7711
ac_lo=`expr $ac_mid + 1`
7712
if test $ac_lo -le $ac_mid; then
7716
ac_mid=`expr 2 '*' $ac_mid + 1`
7719
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7722
$as_echo "$as_me: failed program was:" >&5
7723
sed 's/^/| /' conftest.$ac_ext >&5
7725
cat >conftest.$ac_ext <<_ACEOF
7728
cat confdefs.h >>conftest.$ac_ext
7729
cat >>conftest.$ac_ext <<_ACEOF
7730
/* end confdefs.h. */
7731
$ac_includes_default
7735
static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
7742
rm -f conftest.$ac_objext
7743
if { (ac_try="$ac_compile"
7745
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7746
*) ac_try_echo=$ac_try;;
7748
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7749
$as_echo "$ac_try_echo") >&5
7750
(eval "$ac_compile") 2>conftest.er1
7752
grep -v '^ *+' conftest.er1 >conftest.err
7754
cat conftest.err >&5
7755
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756
(exit $ac_status); } && {
7757
test -z "$ac_c_werror_flag" ||
7758
test ! -s conftest.err
7759
} && test -s conftest.$ac_objext; then
7762
cat >conftest.$ac_ext <<_ACEOF
7765
cat confdefs.h >>conftest.$ac_ext
7766
cat >>conftest.$ac_ext <<_ACEOF
7767
/* end confdefs.h. */
7768
$ac_includes_default
7772
static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
7779
rm -f conftest.$ac_objext
7780
if { (ac_try="$ac_compile"
7782
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7783
*) ac_try_echo=$ac_try;;
7785
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7786
$as_echo "$ac_try_echo") >&5
7787
(eval "$ac_compile") 2>conftest.er1
7789
grep -v '^ *+' conftest.er1 >conftest.err
7791
cat conftest.err >&5
7792
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793
(exit $ac_status); } && {
7794
test -z "$ac_c_werror_flag" ||
7795
test ! -s conftest.err
7796
} && test -s conftest.$ac_objext; then
7797
ac_lo=$ac_mid; break
7799
$as_echo "$as_me: failed program was:" >&5
7800
sed 's/^/| /' conftest.$ac_ext >&5
7802
ac_hi=`expr '(' $ac_mid ')' - 1`
7803
if test $ac_mid -le $ac_hi; then
7807
ac_mid=`expr 2 '*' $ac_mid`
7810
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7813
$as_echo "$as_me: failed program was:" >&5
7814
sed 's/^/| /' conftest.$ac_ext >&5
7819
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7822
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7823
# Binary search between lo and hi bounds.
7824
while test "x$ac_lo" != "x$ac_hi"; do
7825
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7826
cat >conftest.$ac_ext <<_ACEOF
7829
cat confdefs.h >>conftest.$ac_ext
7830
cat >>conftest.$ac_ext <<_ACEOF
7831
/* end confdefs.h. */
7832
$ac_includes_default
7836
static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
7843
rm -f conftest.$ac_objext
7844
if { (ac_try="$ac_compile"
7846
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7847
*) ac_try_echo=$ac_try;;
7849
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7850
$as_echo "$ac_try_echo") >&5
7851
(eval "$ac_compile") 2>conftest.er1
7853
grep -v '^ *+' conftest.er1 >conftest.err
7855
cat conftest.err >&5
7856
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7857
(exit $ac_status); } && {
7858
test -z "$ac_c_werror_flag" ||
7859
test ! -s conftest.err
7860
} && test -s conftest.$ac_objext; then
7863
$as_echo "$as_me: failed program was:" >&5
7864
sed 's/^/| /' conftest.$ac_ext >&5
7866
ac_lo=`expr '(' $ac_mid ')' + 1`
7869
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7872
?*) ac_cv_sizeof_long=$ac_lo;;
7873
'') if test "$ac_cv_type_long" = yes; then
7874
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7875
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7876
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
7877
See \`config.log' for more details." >&5
7878
$as_echo "$as_me: error: cannot compute sizeof (long)
7879
See \`config.log' for more details." >&2;}
7880
{ (exit 77); exit 77; }; }; }
7886
cat >conftest.$ac_ext <<_ACEOF
7889
cat confdefs.h >>conftest.$ac_ext
7890
cat >>conftest.$ac_ext <<_ACEOF
7891
/* end confdefs.h. */
7892
$ac_includes_default
7893
static long int longval () { return (long int) (sizeof (long)); }
7894
static unsigned long int ulongval () { return (long int) (sizeof (long)); }
7901
FILE *f = fopen ("conftest.val", "w");
7904
if (((long int) (sizeof (long))) < 0)
7906
long int i = longval ();
7907
if (i != ((long int) (sizeof (long))))
7909
fprintf (f, "%ld", i);
7913
unsigned long int i = ulongval ();
7914
if (i != ((long int) (sizeof (long))))
7916
fprintf (f, "%lu", i);
7918
/* Do not output a trailing newline, as this causes \r\n confusion
7919
on some platforms. */
7920
return ferror (f) || fclose (f) != 0;
7926
rm -f conftest$ac_exeext
7927
if { (ac_try="$ac_link"
7929
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7930
*) ac_try_echo=$ac_try;;
7932
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7933
$as_echo "$ac_try_echo") >&5
7934
(eval "$ac_link") 2>&5
7936
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7938
{ (case "(($ac_try" in
7939
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7940
*) ac_try_echo=$ac_try;;
7942
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7943
$as_echo "$ac_try_echo") >&5
7944
(eval "$ac_try") 2>&5
7946
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947
(exit $ac_status); }; }; then
7948
ac_cv_sizeof_long=`cat conftest.val`
7950
$as_echo "$as_me: program exited with status $ac_status" >&5
7951
$as_echo "$as_me: failed program was:" >&5
7952
sed 's/^/| /' conftest.$ac_ext >&5
7955
if test "$ac_cv_type_long" = yes; then
7956
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7957
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7958
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
7959
See \`config.log' for more details." >&5
7960
$as_echo "$as_me: error: cannot compute sizeof (long)
7961
See \`config.log' for more details." >&2;}
7962
{ (exit 77); exit 77; }; }; }
7967
rm -rf conftest.dSYM
7968
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7972
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7973
$as_echo "$ac_cv_sizeof_long" >&6; }
7977
cat >>confdefs.h <<_ACEOF
7978
#define SIZEOF_LONG $ac_cv_sizeof_long
7982
# The cast to long int works around a bug in the HP C Compiler
7983
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7984
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7985
# This bug is HP SR number 8606223364.
7986
{ $as_echo "$as_me:$LINENO: checking size of time_t" >&5
7987
$as_echo_n "checking size of time_t... " >&6; }
7988
if test "${ac_cv_sizeof_time_t+set}" = set; then
7989
$as_echo_n "(cached) " >&6
7991
if test "$cross_compiling" = yes; then
7992
# Depending upon the size, compute the lo and hi bounds.
7993
cat >conftest.$ac_ext <<_ACEOF
7996
cat confdefs.h >>conftest.$ac_ext
7997
cat >>conftest.$ac_ext <<_ACEOF
7998
/* end confdefs.h. */
7999
$ac_includes_default
8003
static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) >= 0)];
8010
rm -f conftest.$ac_objext
8011
if { (ac_try="$ac_compile"
8013
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8014
*) ac_try_echo=$ac_try;;
8016
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8017
$as_echo "$ac_try_echo") >&5
8018
(eval "$ac_compile") 2>conftest.er1
8020
grep -v '^ *+' conftest.er1 >conftest.err
8022
cat conftest.err >&5
8023
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024
(exit $ac_status); } && {
8025
test -z "$ac_c_werror_flag" ||
8026
test ! -s conftest.err
8027
} && test -s conftest.$ac_objext; then
8030
cat >conftest.$ac_ext <<_ACEOF
8033
cat confdefs.h >>conftest.$ac_ext
8034
cat >>conftest.$ac_ext <<_ACEOF
8035
/* end confdefs.h. */
8036
$ac_includes_default
8040
static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) <= $ac_mid)];
8047
rm -f conftest.$ac_objext
8048
if { (ac_try="$ac_compile"
8050
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8051
*) ac_try_echo=$ac_try;;
8053
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8054
$as_echo "$ac_try_echo") >&5
8055
(eval "$ac_compile") 2>conftest.er1
8057
grep -v '^ *+' conftest.er1 >conftest.err
8059
cat conftest.err >&5
8060
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061
(exit $ac_status); } && {
8062
test -z "$ac_c_werror_flag" ||
8063
test ! -s conftest.err
8064
} && test -s conftest.$ac_objext; then
8065
ac_hi=$ac_mid; break
8067
$as_echo "$as_me: failed program was:" >&5
8068
sed 's/^/| /' conftest.$ac_ext >&5
8070
ac_lo=`expr $ac_mid + 1`
8071
if test $ac_lo -le $ac_mid; then
8075
ac_mid=`expr 2 '*' $ac_mid + 1`
8078
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8081
$as_echo "$as_me: failed program was:" >&5
8082
sed 's/^/| /' conftest.$ac_ext >&5
8084
cat >conftest.$ac_ext <<_ACEOF
8087
cat confdefs.h >>conftest.$ac_ext
8088
cat >>conftest.$ac_ext <<_ACEOF
8089
/* end confdefs.h. */
8090
$ac_includes_default
8094
static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) < 0)];
8101
rm -f conftest.$ac_objext
8102
if { (ac_try="$ac_compile"
8104
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8105
*) ac_try_echo=$ac_try;;
8107
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8108
$as_echo "$ac_try_echo") >&5
8109
(eval "$ac_compile") 2>conftest.er1
8111
grep -v '^ *+' conftest.er1 >conftest.err
8113
cat conftest.err >&5
8114
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8115
(exit $ac_status); } && {
8116
test -z "$ac_c_werror_flag" ||
8117
test ! -s conftest.err
8118
} && test -s conftest.$ac_objext; then
8121
cat >conftest.$ac_ext <<_ACEOF
8124
cat confdefs.h >>conftest.$ac_ext
8125
cat >>conftest.$ac_ext <<_ACEOF
8126
/* end confdefs.h. */
8127
$ac_includes_default
8131
static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) >= $ac_mid)];
8138
rm -f conftest.$ac_objext
8139
if { (ac_try="$ac_compile"
8141
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8142
*) ac_try_echo=$ac_try;;
8144
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8145
$as_echo "$ac_try_echo") >&5
8146
(eval "$ac_compile") 2>conftest.er1
8148
grep -v '^ *+' conftest.er1 >conftest.err
8150
cat conftest.err >&5
8151
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152
(exit $ac_status); } && {
8153
test -z "$ac_c_werror_flag" ||
8154
test ! -s conftest.err
8155
} && test -s conftest.$ac_objext; then
8156
ac_lo=$ac_mid; break
8158
$as_echo "$as_me: failed program was:" >&5
8159
sed 's/^/| /' conftest.$ac_ext >&5
8161
ac_hi=`expr '(' $ac_mid ')' - 1`
8162
if test $ac_mid -le $ac_hi; then
8166
ac_mid=`expr 2 '*' $ac_mid`
8169
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8172
$as_echo "$as_me: failed program was:" >&5
8173
sed 's/^/| /' conftest.$ac_ext >&5
8178
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8181
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8182
# Binary search between lo and hi bounds.
8183
while test "x$ac_lo" != "x$ac_hi"; do
8184
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8185
cat >conftest.$ac_ext <<_ACEOF
8188
cat confdefs.h >>conftest.$ac_ext
8189
cat >>conftest.$ac_ext <<_ACEOF
8190
/* end confdefs.h. */
8191
$ac_includes_default
8195
static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) <= $ac_mid)];
8202
rm -f conftest.$ac_objext
8203
if { (ac_try="$ac_compile"
8205
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8206
*) ac_try_echo=$ac_try;;
8208
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8209
$as_echo "$ac_try_echo") >&5
8210
(eval "$ac_compile") 2>conftest.er1
8212
grep -v '^ *+' conftest.er1 >conftest.err
8214
cat conftest.err >&5
8215
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216
(exit $ac_status); } && {
8217
test -z "$ac_c_werror_flag" ||
8218
test ! -s conftest.err
8219
} && test -s conftest.$ac_objext; then
8222
$as_echo "$as_me: failed program was:" >&5
8223
sed 's/^/| /' conftest.$ac_ext >&5
8225
ac_lo=`expr '(' $ac_mid ')' + 1`
8228
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8231
?*) ac_cv_sizeof_time_t=$ac_lo;;
8232
'') if test "$ac_cv_type_time_t" = yes; then
8233
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8234
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8235
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
8236
See \`config.log' for more details." >&5
8237
$as_echo "$as_me: error: cannot compute sizeof (time_t)
8238
See \`config.log' for more details." >&2;}
8239
{ (exit 77); exit 77; }; }; }
8241
ac_cv_sizeof_time_t=0
8245
cat >conftest.$ac_ext <<_ACEOF
8248
cat confdefs.h >>conftest.$ac_ext
8249
cat >>conftest.$ac_ext <<_ACEOF
8250
/* end confdefs.h. */
8251
$ac_includes_default
8252
static long int longval () { return (long int) (sizeof (time_t)); }
8253
static unsigned long int ulongval () { return (long int) (sizeof (time_t)); }
8260
FILE *f = fopen ("conftest.val", "w");
8263
if (((long int) (sizeof (time_t))) < 0)
8265
long int i = longval ();
8266
if (i != ((long int) (sizeof (time_t))))
8268
fprintf (f, "%ld", i);
8272
unsigned long int i = ulongval ();
8273
if (i != ((long int) (sizeof (time_t))))
8275
fprintf (f, "%lu", i);
8277
/* Do not output a trailing newline, as this causes \r\n confusion
8278
on some platforms. */
8279
return ferror (f) || fclose (f) != 0;
8285
rm -f conftest$ac_exeext
8286
if { (ac_try="$ac_link"
8288
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8289
*) ac_try_echo=$ac_try;;
8291
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8292
$as_echo "$ac_try_echo") >&5
8293
(eval "$ac_link") 2>&5
8295
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8296
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8297
{ (case "(($ac_try" in
8298
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8299
*) ac_try_echo=$ac_try;;
8301
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8302
$as_echo "$ac_try_echo") >&5
8303
(eval "$ac_try") 2>&5
8305
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306
(exit $ac_status); }; }; then
8307
ac_cv_sizeof_time_t=`cat conftest.val`
8309
$as_echo "$as_me: program exited with status $ac_status" >&5
8310
$as_echo "$as_me: failed program was:" >&5
8311
sed 's/^/| /' conftest.$ac_ext >&5
8314
if test "$ac_cv_type_time_t" = yes; then
8315
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8316
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8317
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
8318
See \`config.log' for more details." >&5
8319
$as_echo "$as_me: error: cannot compute sizeof (time_t)
8320
See \`config.log' for more details." >&2;}
8321
{ (exit 77); exit 77; }; }; }
8323
ac_cv_sizeof_time_t=0
8326
rm -rf conftest.dSYM
8327
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8331
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
8332
$as_echo "$ac_cv_sizeof_time_t" >&6; }
8336
cat >>confdefs.h <<_ACEOF
8337
#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
7864
8343
cat >>confdefs.h <<\_ACEOF
7865
8344
#define __NO_CTYPE 1