~ubuntu-branches/ubuntu/raring/gnutls26/raring

« back to all changes in this revision

Viewing changes to .pc/16_unnecessarydep.diff/lib/configure

  • Committer: Package Import Robot
  • Author(s): Andreas Metzler, 20_tests-select.diff
  • Date: 2011-11-15 19:10:06 UTC
  • mfrom: (12.1.24 sid)
  • Revision ID: package-import@ubuntu.com-20111115191006-ewpl0pfwe6et0mra
Tags: 2.12.14-3
[20_tests-select.diff] Do not run gnulib test-select test anymore. The
test fails on kfreebsd-i386, the gnutls library does not use select().
Closes: #648247

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by GNU Autoconf 2.68 for libgnutls 2.12.11.
 
3
# Generated by GNU Autoconf 2.68 for libgnutls 2.12.14.
4
4
#
5
5
# Report bugs to <bug-gnutls@gnu.org>.
6
6
#
570
570
# Identity of this package.
571
571
PACKAGE_NAME='libgnutls'
572
572
PACKAGE_TARNAME='libgnutls'
573
 
PACKAGE_VERSION='2.12.11'
574
 
PACKAGE_STRING='libgnutls 2.12.11'
 
573
PACKAGE_VERSION='2.12.14'
 
574
PACKAGE_STRING='libgnutls 2.12.14'
575
575
PACKAGE_BUGREPORT='bug-gnutls@gnu.org'
576
576
PACKAGE_URL=''
577
577
 
612
612
#endif"
613
613
 
614
614
gt_needs=
 
615
ac_func_list=
615
616
ac_header_list=
616
 
ac_func_list=
617
617
ac_subst_vars='lgltests_LTLIBOBJS
618
618
lgltests_LIBOBJS
619
619
lgl_LTLIBOBJS
788
788
HAVE_SYS_UIO_H
789
789
NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H
790
790
NEXT_SYS_UIO_H
 
791
NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
 
792
NEXT_SYS_TYPES_H
791
793
NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
792
794
NEXT_SYS_STAT_H
793
 
REPLACE_UTIMENSAT
794
 
REPLACE_STAT
795
 
REPLACE_MKNOD
796
 
REPLACE_MKFIFO
797
 
REPLACE_MKDIR
798
 
REPLACE_LSTAT
799
 
REPLACE_FUTIMENS
800
 
REPLACE_FSTATAT
801
 
REPLACE_FSTAT
802
 
HAVE_UTIMENSAT
803
 
HAVE_MKNODAT
804
 
HAVE_MKNOD
805
 
HAVE_MKFIFOAT
806
 
HAVE_MKFIFO
807
 
HAVE_MKDIRAT
808
 
HAVE_LSTAT
809
 
HAVE_LCHMOD
810
 
HAVE_FUTIMENS
811
 
HAVE_FSTATAT
812
 
HAVE_FCHMODAT
813
 
GNULIB_UTIMENSAT
814
 
GNULIB_STAT
815
 
GNULIB_MKNODAT
816
 
GNULIB_MKNOD
817
 
GNULIB_MKFIFOAT
818
 
GNULIB_MKFIFO
819
 
GNULIB_MKDIRAT
820
 
GNULIB_LSTAT
821
 
GNULIB_LCHMOD
822
 
GNULIB_FUTIMENS
823
 
GNULIB_FSTATAT
824
 
GNULIB_FCHMODAT
825
795
HAVE_WS2TCPIP_H
826
796
HAVE_SYS_SOCKET_H
827
797
NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H
845
815
GNULIB_ACCEPT
846
816
GNULIB_CONNECT
847
817
GNULIB_SOCKET
 
818
HAVE_STRINGS_H
848
819
NEXT_AS_FIRST_DIRECTIVE_STRINGS_H
849
820
NEXT_STRINGS_H
850
821
NEXT_AS_FIRST_DIRECTIVE_STRING_H
1045
1016
GNULIB_CALLOC_POSIX
1046
1017
GNULIB_ATOLL
1047
1018
GNULIB__EXIT
 
1019
HAVE_LD_VERSION_SCRIPT_FALSE
 
1020
HAVE_LD_VERSION_SCRIPT_TRUE
 
1021
HAVE_LD_OUTPUT_DEF_FALSE
 
1022
HAVE_LD_OUTPUT_DEF_TRUE
 
1023
HAVE_MSVC_INVALID_PARAMETER_HANDLER
 
1024
REPLACE_UTIMENSAT
 
1025
REPLACE_STAT
 
1026
REPLACE_MKNOD
 
1027
REPLACE_MKFIFO
 
1028
REPLACE_MKDIR
 
1029
REPLACE_LSTAT
 
1030
REPLACE_FUTIMENS
 
1031
REPLACE_FSTATAT
 
1032
REPLACE_FSTAT
 
1033
HAVE_UTIMENSAT
 
1034
HAVE_MKNODAT
 
1035
HAVE_MKNOD
 
1036
HAVE_MKFIFOAT
 
1037
HAVE_MKFIFO
 
1038
HAVE_MKDIRAT
 
1039
HAVE_LSTAT
 
1040
HAVE_LCHMOD
 
1041
HAVE_FUTIMENS
 
1042
HAVE_FSTATAT
 
1043
HAVE_FCHMODAT
 
1044
GNULIB_UTIMENSAT
 
1045
GNULIB_STAT
 
1046
GNULIB_MKNODAT
 
1047
GNULIB_MKNOD
 
1048
GNULIB_MKFIFOAT
 
1049
GNULIB_MKFIFO
 
1050
GNULIB_MKDIRAT
 
1051
GNULIB_LSTAT
 
1052
GNULIB_LCHMOD
 
1053
GNULIB_FUTIMENS
 
1054
GNULIB_FSTATAT
 
1055
GNULIB_FSTAT
 
1056
GNULIB_FCHMODAT
1048
1057
UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1049
1058
UNISTD_H_HAVE_WINSOCK2_H
1050
1059
REPLACE_WRITE
1080
1089
HAVE_DECL_GETPAGESIZE
1081
1090
HAVE_DECL_GETLOGIN_R
1082
1091
HAVE_DECL_GETDOMAINNAME
 
1092
HAVE_DECL_FDATASYNC
1083
1093
HAVE_DECL_FCHDIR
1084
1094
HAVE_DECL_ENVIRON
1085
1095
HAVE_USLEEP
1104
1114
HAVE_GETDTABLESIZE
1105
1115
HAVE_FTRUNCATE
1106
1116
HAVE_FSYNC
 
1117
HAVE_FDATASYNC
1107
1118
HAVE_FCHOWNAT
1108
1119
HAVE_FCHDIR
1109
1120
HAVE_FACCESSAT
1146
1157
GNULIB_GETCWD
1147
1158
GNULIB_FTRUNCATE
1148
1159
GNULIB_FSYNC
 
1160
GNULIB_FDATASYNC
1149
1161
GNULIB_FCHOWNAT
1150
1162
GNULIB_FCHDIR
1151
1163
GNULIB_FACCESSAT
1153
1165
GNULIB_ENVIRON
1154
1166
GNULIB_DUP3
1155
1167
GNULIB_DUP2
 
1168
GNULIB_DUP
1156
1169
GNULIB_CLOSE
1157
1170
GNULIB_CHOWN
1158
 
HAVE_LD_VERSION_SCRIPT_FALSE
1159
 
HAVE_LD_VERSION_SCRIPT_TRUE
1160
 
HAVE_LD_OUTPUT_DEF_FALSE
1161
 
HAVE_LD_OUTPUT_DEF_TRUE
 
1171
GNULIB_CHDIR
1162
1172
REPLACE_VSPRINTF
1163
1173
REPLACE_VSNPRINTF
1164
1174
REPLACE_VPRINTF
1188
1198
REPLACE_FPRINTF
1189
1199
REPLACE_FOPEN
1190
1200
REPLACE_FFLUSH
 
1201
REPLACE_FDOPEN
1191
1202
REPLACE_FCLOSE
1192
1203
REPLACE_DPRINTF
1193
1204
HAVE_VDPRINTF
1194
1205
HAVE_VASPRINTF
1195
1206
HAVE_RENAMEAT
 
1207
HAVE_POPEN
 
1208
HAVE_PCLOSE
1196
1209
HAVE_FTELLO
1197
1210
HAVE_FSEEKO
1198
1211
HAVE_DPRINTF
1230
1243
GNULIB_PRINTF
1231
1244
GNULIB_POPEN
1232
1245
GNULIB_PERROR
 
1246
GNULIB_PCLOSE
1233
1247
GNULIB_OBSTACK_PRINTF_POSIX
1234
1248
GNULIB_OBSTACK_PRINTF
1235
1249
GNULIB_GETS
1254
1268
GNULIB_FGETS
1255
1269
GNULIB_FGETC
1256
1270
GNULIB_FFLUSH
 
1271
GNULIB_FDOPEN
1257
1272
GNULIB_FCLOSE
1258
1273
GNULIB_DPRINTF
 
1274
REPLACE_ITOLD
1259
1275
GL_GENERATE_FLOAT_H_FALSE
1260
1276
GL_GENERATE_FLOAT_H_TRUE
1261
1277
FLOAT_H
1390
1406
build_vendor
1391
1407
build_cpu
1392
1408
build
 
1409
RANLIB
1393
1410
ARFLAGS
1394
1411
AR
1395
 
RANLIB
1396
1412
EGREP
1397
1413
GREP
1398
1414
CPP
2073
2089
  # Omit some internal or obsolete options to make the list less imposing.
2074
2090
  # This message is too long to be a string in the A/UX 3.1 sh.
2075
2091
  cat <<_ACEOF
2076
 
\`configure' configures libgnutls 2.12.11 to adapt to many kinds of systems.
 
2092
\`configure' configures libgnutls 2.12.14 to adapt to many kinds of systems.
2077
2093
 
2078
2094
Usage: $0 [OPTION]... [VAR=VALUE]...
2079
2095
 
2143
2159
 
2144
2160
if test -n "$ac_init_help"; then
2145
2161
  case $ac_init_help in
2146
 
     short | recursive ) echo "Configuration of libgnutls 2.12.11:";;
 
2162
     short | recursive ) echo "Configuration of libgnutls 2.12.14:";;
2147
2163
   esac
2148
2164
  cat <<\_ACEOF
2149
2165
 
2300
2316
test -n "$ac_init_help" && exit $ac_status
2301
2317
if $ac_init_version; then
2302
2318
  cat <<\_ACEOF
2303
 
libgnutls configure 2.12.11
 
2319
libgnutls configure 2.12.14
2304
2320
generated by GNU Autoconf 2.68
2305
2321
 
2306
2322
Copyright (C) 2010 Free Software Foundation, Inc.
3125
3141
This file contains any messages produced by compilers while
3126
3142
running configure, to aid debugging if configure makes a mistake.
3127
3143
 
3128
 
It was created by libgnutls $as_me 2.12.11, which was
 
3144
It was created by libgnutls $as_me 2.12.14, which was
3129
3145
generated by GNU Autoconf 2.68.  Invocation command line was
3130
3146
 
3131
3147
  $ $0 $@
3406
3422
fi
3407
3423
 
3408
3424
gt_needs="$gt_needs "
 
3425
as_fn_append ac_func_list " _set_invalid_parameter_handler"
 
3426
as_fn_append ac_header_list " unistd.h"
3409
3427
as_fn_append ac_header_list " sys/mman.h"
3410
3428
as_fn_append ac_func_list " mprotect"
3411
3429
as_fn_append ac_header_list " netdb.h"
 
3430
as_fn_append ac_func_list " snprintf"
3412
3431
as_fn_append ac_header_list " sys/socket.h"
3413
3432
as_fn_append ac_header_list " wchar.h"
3414
3433
as_fn_append ac_header_list " stdint.h"
3417
3436
as_fn_append ac_header_list " sys/uio.h"
3418
3437
as_fn_append ac_header_list " sys/time.h"
3419
3438
as_fn_append ac_func_list " localtime_r"
3420
 
as_fn_append ac_header_list " unistd.h"
3421
3439
as_fn_append ac_func_list " vasnprintf"
3422
3440
as_fn_append ac_header_list " features.h"
 
3441
as_fn_append ac_func_list " symlink"
3423
3442
as_fn_append ac_header_list " inttypes.h"
3424
3443
as_fn_append ac_func_list " shutdown"
3425
3444
# Check that the precious variables saved in the cache have kept the same
3960
3979
 
3961
3980
# Define the identity of the package.
3962
3981
 PACKAGE='libgnutls'
3963
 
 VERSION='2.12.11'
 
3982
 VERSION='2.12.14'
3964
3983
 
3965
3984
 
3966
3985
cat >>confdefs.h <<_ACEOF
5265
5284
 
5266
5285
 
5267
5286
 
5268
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5287
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
 
5288
$as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
 
5289
if ${gl_cv_c_amsterdam_compiler+:} false; then :
 
5290
  $as_echo_n "(cached) " >&6
 
5291
else
 
5292
 
 
5293
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5269
5294
/* end confdefs.h.  */
5270
5295
 
5271
5296
#ifdef __ACK__
5275
5300
_ACEOF
5276
5301
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5277
5302
  $EGREP "Amsterdam" >/dev/null 2>&1; then :
5278
 
  AR='cc -c.a'
5279
 
     ARFLAGS='-o'
5280
 
     RANLIB=':'
5281
 
 
5282
 
else
5283
 
       AR='ar'
5284
 
     ARFLAGS='cru'
5285
 
          if test -n "$ac_tool_prefix"; then
 
5303
  gl_cv_c_amsterdam_compiler=yes
 
5304
else
 
5305
  gl_cv_c_amsterdam_compiler=no
 
5306
fi
 
5307
rm -f conftest*
 
5308
 
 
5309
 
 
5310
fi
 
5311
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
 
5312
$as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
 
5313
  if test -z "$AR"; then
 
5314
    if test $gl_cv_c_amsterdam_compiler = yes; then
 
5315
      AR='cc -c.a'
 
5316
      if test -z "$ARFLAGS"; then
 
5317
        ARFLAGS='-o'
 
5318
      fi
 
5319
    else
 
5320
                  if test -n "$ac_tool_prefix"; then
 
5321
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
5322
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
5323
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5324
$as_echo_n "checking for $ac_word... " >&6; }
 
5325
if ${ac_cv_prog_AR+:} false; then :
 
5326
  $as_echo_n "(cached) " >&6
 
5327
else
 
5328
  if test -n "$AR"; then
 
5329
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
5330
else
 
5331
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5332
for as_dir in $PATH
 
5333
do
 
5334
  IFS=$as_save_IFS
 
5335
  test -z "$as_dir" && as_dir=.
 
5336
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5337
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5338
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
5339
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5340
    break 2
 
5341
  fi
 
5342
done
 
5343
  done
 
5344
IFS=$as_save_IFS
 
5345
 
 
5346
fi
 
5347
fi
 
5348
AR=$ac_cv_prog_AR
 
5349
if test -n "$AR"; then
 
5350
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
 
5351
$as_echo "$AR" >&6; }
 
5352
else
 
5353
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5354
$as_echo "no" >&6; }
 
5355
fi
 
5356
 
 
5357
 
 
5358
fi
 
5359
if test -z "$ac_cv_prog_AR"; then
 
5360
  ac_ct_AR=$AR
 
5361
  # Extract the first word of "ar", so it can be a program name with args.
 
5362
set dummy ar; ac_word=$2
 
5363
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5364
$as_echo_n "checking for $ac_word... " >&6; }
 
5365
if ${ac_cv_prog_ac_ct_AR+:} false; then :
 
5366
  $as_echo_n "(cached) " >&6
 
5367
else
 
5368
  if test -n "$ac_ct_AR"; then
 
5369
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
5370
else
 
5371
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5372
for as_dir in $PATH
 
5373
do
 
5374
  IFS=$as_save_IFS
 
5375
  test -z "$as_dir" && as_dir=.
 
5376
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5377
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5378
    ac_cv_prog_ac_ct_AR="ar"
 
5379
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5380
    break 2
 
5381
  fi
 
5382
done
 
5383
  done
 
5384
IFS=$as_save_IFS
 
5385
 
 
5386
fi
 
5387
fi
 
5388
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
5389
if test -n "$ac_ct_AR"; then
 
5390
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
 
5391
$as_echo "$ac_ct_AR" >&6; }
 
5392
else
 
5393
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5394
$as_echo "no" >&6; }
 
5395
fi
 
5396
 
 
5397
  if test "x$ac_ct_AR" = x; then
 
5398
    AR="ar"
 
5399
  else
 
5400
    case $cross_compiling:$ac_tool_warned in
 
5401
yes:)
 
5402
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5403
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5404
ac_tool_warned=yes ;;
 
5405
esac
 
5406
    AR=$ac_ct_AR
 
5407
  fi
 
5408
else
 
5409
  AR="$ac_cv_prog_AR"
 
5410
fi
 
5411
 
 
5412
      if test -z "$ARFLAGS"; then
 
5413
        ARFLAGS='cru'
 
5414
      fi
 
5415
    fi
 
5416
  else
 
5417
    if test -z "$ARFLAGS"; then
 
5418
      ARFLAGS='cru'
 
5419
    fi
 
5420
  fi
 
5421
 
 
5422
 
 
5423
  if test -z "$RANLIB"; then
 
5424
    if test $gl_cv_c_amsterdam_compiler = yes; then
 
5425
      RANLIB=':'
 
5426
    else
 
5427
            if test -n "$ac_tool_prefix"; then
5286
5428
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5287
5429
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5288
5430
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5374
5516
  RANLIB="$ac_cv_prog_RANLIB"
5375
5517
fi
5376
5518
 
5377
 
 
5378
 
fi
5379
 
rm -f conftest*
5380
 
 
5381
 
 
 
5519
    fi
 
5520
  fi
5382
5521
 
5383
5522
 
5384
5523
# Make sure we can run config.sub.
5771
5910
     if test "$GCC" != yes; then
5772
5911
       ac_save_CC=$CC
5773
5912
       while :; do
5774
 
         # IRIX 6.2 and later do not support large files by default,
5775
 
         # so use the C compiler's -n32 option if that helps.
5776
 
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5913
         # IRIX 6.2 and later do not support large files by default,
 
5914
         # so use the C compiler's -n32 option if that helps.
 
5915
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5777
5916
/* end confdefs.h.  */
5778
5917
#include <sys/types.h>
5779
5918
 /* Check that off_t can represent 2**63 - 1 correctly.
5782
5921
    incorrectly reject 9223372036854775807.  */
5783
5922
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5784
5923
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5785
 
                       && LARGE_OFF_T % 2147483647 == 1)
5786
 
                      ? 1 : -1];
 
5924
                       && LARGE_OFF_T % 2147483647 == 1)
 
5925
                      ? 1 : -1];
5787
5926
int
5788
5927
main ()
5789
5928
{
5792
5931
  return 0;
5793
5932
}
5794
5933
_ACEOF
5795
 
         if ac_fn_c_try_compile "$LINENO"; then :
 
5934
         if ac_fn_c_try_compile "$LINENO"; then :
5796
5935
  break
5797
5936
fi
5798
5937
rm -f core conftest.err conftest.$ac_objext
5799
 
         CC="$CC -n32"
5800
 
         if ac_fn_c_try_compile "$LINENO"; then :
 
5938
         CC="$CC -n32"
 
5939
         if ac_fn_c_try_compile "$LINENO"; then :
5801
5940
  ac_cv_sys_largefile_CC=' -n32'; break
5802
5941
fi
5803
5942
rm -f core conftest.err conftest.$ac_objext
5804
 
         break
 
5943
         break
5805
5944
       done
5806
5945
       CC=$ac_save_CC
5807
5946
       rm -f conftest.$ac_ext
5828
5967
    incorrectly reject 9223372036854775807.  */
5829
5968
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5830
5969
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5831
 
                       && LARGE_OFF_T % 2147483647 == 1)
5832
 
                      ? 1 : -1];
 
5970
                       && LARGE_OFF_T % 2147483647 == 1)
 
5971
                      ? 1 : -1];
5833
5972
int
5834
5973
main ()
5835
5974
{
5852
5991
    incorrectly reject 9223372036854775807.  */
5853
5992
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5854
5993
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5855
 
                       && LARGE_OFF_T % 2147483647 == 1)
5856
 
                      ? 1 : -1];
 
5994
                       && LARGE_OFF_T % 2147483647 == 1)
 
5995
                      ? 1 : -1];
5857
5996
int
5858
5997
main ()
5859
5998
{
5897
6036
    incorrectly reject 9223372036854775807.  */
5898
6037
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5899
6038
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5900
 
                       && LARGE_OFF_T % 2147483647 == 1)
5901
 
                      ? 1 : -1];
 
6039
                       && LARGE_OFF_T % 2147483647 == 1)
 
6040
                      ? 1 : -1];
5902
6041
int
5903
6042
main ()
5904
6043
{
5921
6060
    incorrectly reject 9223372036854775807.  */
5922
6061
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5923
6062
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5924
 
                       && LARGE_OFF_T % 2147483647 == 1)
5925
 
                      ? 1 : -1];
 
6063
                       && LARGE_OFF_T % 2147483647 == 1)
 
6064
                      ? 1 : -1];
5926
6065
int
5927
6066
main ()
5928
6067
{
5973
6112
  # Code from module fcntl-h:
5974
6113
  # Code from module fcntl-h-tests:
5975
6114
  # Code from module fd-hook:
 
6115
  # Code from module fdopen:
 
6116
  # Code from module fdopen-tests:
 
6117
  # Code from module fgetc-tests:
5976
6118
  # Code from module float:
5977
6119
  # Code from module float-tests:
5978
6120
  # Code from module fpieee:
5979
6121
 
5980
6122
  # Code from module fpucw:
 
6123
  # Code from module fputc-tests:
 
6124
  # Code from module fread-tests:
5981
6125
  # Code from module fseek:
5982
6126
  # Code from module fseek-tests:
5983
6127
  # Code from module fseeko:
5984
6128
 
5985
6129
  # Code from module fseeko-tests:
 
6130
  # Code from module fstat:
 
6131
  # Code from module fstat-tests:
5986
6132
  # Code from module ftell:
5987
6133
  # Code from module ftell-tests:
5988
6134
  # Code from module ftello:
5990
6136
  # Code from module ftello-tests:
5991
6137
  # Code from module func:
5992
6138
  # Code from module func-tests:
 
6139
  # Code from module fwrite-tests:
5993
6140
  # Code from module getpagesize:
5994
6141
  # Code from module gettext:
5995
6142
  # Code from module gettext-h:
6010
6157
  # Code from module memchr-tests:
6011
6158
  # Code from module memmem-simple:
6012
6159
  # Code from module minmax:
 
6160
  # Code from module msvc-inval:
 
6161
  # Code from module msvc-nothrow:
6013
6162
  # Code from module multiarch:
6014
6163
  # Code from module netdb:
6015
6164
  # Code from module netdb-tests:
6027
6176
  # Code from module sockets:
6028
6177
  # Code from module sockets-tests:
6029
6178
  # Code from module socklen:
 
6179
  # Code from module ssize_t:
6030
6180
  # Code from module stdbool:
6031
6181
  # Code from module stdbool-tests:
6032
6182
  # Code from module stddef:
6048
6198
  # Code from module sys_socket-tests:
6049
6199
  # Code from module sys_stat:
6050
6200
  # Code from module sys_stat-tests:
 
6201
  # Code from module sys_types:
 
6202
  # Code from module sys_types-tests:
6051
6203
  # Code from module sys_uio:
6052
6204
  # Code from module sys_uio-tests:
6053
6205
  # Code from module time:
13629
13781
  # Interfaces removed:                           AGE=0
13630
13782
  LT_CURRENT=47
13631
13783
 
13632
 
  LT_REVISION=5
 
13784
  LT_REVISION=8
13633
13785
 
13634
13786
  LT_AGE=21
13635
13787
 
19119
19271
                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19120
19272
                 *)    gl_absname_cpp="$ac_cpp" ;;
19121
19273
               esac
 
19274
 
 
19275
               case "$host_os" in
 
19276
                 mingw*)
 
19277
                                                                                                                                     gl_dirsep_regex='[/\\]'
 
19278
                   ;;
 
19279
                 *)
 
19280
                   gl_dirsep_regex='/'
 
19281
                   ;;
 
19282
               esac
 
19283
 
 
19284
               gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'errno.h|{
 
19285
                   s|.*"\(.*'"${gl_dirsep_regex}"'errno.h\)".*|\1|
 
19286
                   s|^/[^/]|//&|
 
19287
                   p
 
19288
                   q
 
19289
                 }'
19122
19290
                                                            gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19123
 
                  sed -n '\#/errno.h#{
19124
 
                    s#.*"\(.*/errno.h\)".*#\1#
19125
 
                    s#^/[^/]#//&#
19126
 
                    p
19127
 
                    q
19128
 
                  }'`'"'
 
19291
                      sed -n "$gl_absolute_header_sed"`'"'
19129
19292
 
19130
19293
 
19131
19294
fi
19374
19537
 
19375
19538
  GNULIB_DPRINTF=0;
19376
19539
  GNULIB_FCLOSE=0;
 
19540
  GNULIB_FDOPEN=0;
19377
19541
  GNULIB_FFLUSH=0;
19378
19542
  GNULIB_FGETC=0;
19379
19543
  GNULIB_FGETS=0;
19398
19562
  GNULIB_GETS=0;
19399
19563
  GNULIB_OBSTACK_PRINTF=0;
19400
19564
  GNULIB_OBSTACK_PRINTF_POSIX=0;
 
19565
  GNULIB_PCLOSE=0;
19401
19566
  GNULIB_PERROR=0;
19402
19567
  GNULIB_POPEN=0;
19403
19568
  GNULIB_PRINTF=0;
19435
19600
  HAVE_DPRINTF=1;
19436
19601
  HAVE_FSEEKO=1;
19437
19602
  HAVE_FTELLO=1;
 
19603
  HAVE_PCLOSE=1;
 
19604
  HAVE_POPEN=1;
19438
19605
  HAVE_RENAMEAT=1;
19439
19606
  HAVE_VASPRINTF=1;
19440
19607
  HAVE_VDPRINTF=1;
19441
19608
  REPLACE_DPRINTF=0;
19442
19609
  REPLACE_FCLOSE=0;
 
19610
  REPLACE_FDOPEN=0;
19443
19611
  REPLACE_FFLUSH=0;
19444
19612
  REPLACE_FOPEN=0;
19445
19613
  REPLACE_FPRINTF=0;
19568
19736
 
19569
19737
  fi
19570
19738
 
19571
 
ac_fn_c_check_decl "$LINENO" "ftello" "ac_cv_have_decl_ftello" "$ac_includes_default"
19572
 
if test "x$ac_cv_have_decl_ftello" = xyes; then :
19573
 
  ac_have_decl=1
19574
 
else
19575
 
  ac_have_decl=0
19576
 
fi
19577
 
 
19578
 
cat >>confdefs.h <<_ACEOF
19579
 
#define HAVE_DECL_FTELLO $ac_have_decl
19580
 
_ACEOF
19581
 
 
19582
 
 
19583
 
 
19584
 
 
19585
 
 
19586
 
 
19587
 
 
19588
 
 
19589
 
 
19590
 
  if test $ac_cv_have_decl_ftello = no; then
19591
 
    HAVE_DECL_FTELLO=0
19592
 
  fi
19593
 
 
19594
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ftello" >&5
19595
 
$as_echo_n "checking for ftello... " >&6; }
19596
 
if ${gl_cv_func_ftello+:} false; then :
19597
 
  $as_echo_n "(cached) " >&6
19598
 
else
19599
 
 
19600
 
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19601
 
/* end confdefs.h.  */
19602
 
#include <stdio.h>
19603
 
int
19604
 
main ()
19605
 
{
19606
 
ftello (stdin);
19607
 
  ;
19608
 
  return 0;
19609
 
}
19610
 
_ACEOF
19611
 
if ac_fn_c_try_link "$LINENO"; then :
19612
 
  gl_cv_func_ftello=yes
19613
 
else
19614
 
  gl_cv_func_ftello=no
19615
 
fi
19616
 
rm -f core conftest.err conftest.$ac_objext \
19617
 
    conftest$ac_exeext conftest.$ac_ext
19618
 
 
19619
 
fi
19620
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello" >&5
19621
 
$as_echo "$gl_cv_func_ftello" >&6; }
19622
 
  if test $gl_cv_func_ftello = no; then
19623
 
    HAVE_FTELLO=0
19624
 
  else
19625
 
    if test $gl_cv_var_stdin_large_offset = no; then
19626
 
      REPLACE_FTELLO=1
19627
 
    else
19628
 
 
19629
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ftello works" >&5
19630
 
$as_echo_n "checking whether ftello works... " >&6; }
19631
 
if ${gl_cv_func_ftello_works+:} false; then :
19632
 
  $as_echo_n "(cached) " >&6
19633
 
else
19634
 
 
19635
 
                              case "$host_os" in
19636
 
                      # Guess no on Solaris.
19637
 
            solaris*) gl_cv_func_ftello_works="guessing no" ;;
19638
 
                      # Guess yes otherwise.
19639
 
            *)        gl_cv_func_ftello_works="guessing yes" ;;
19640
 
          esac
19641
 
          if test "$cross_compiling" = yes; then :
19642
 
  :
19643
 
else
19644
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19645
 
/* end confdefs.h.  */
19646
 
 
19647
 
#include <stdio.h>
19648
 
#include <stdlib.h>
19649
 
#include <string.h>
19650
 
#define TESTFILE "conftest.tmp"
19651
 
int
19652
 
main (void)
19653
 
{
19654
 
  FILE *fp;
19655
 
 
19656
 
  /* Create a file with some contents.  */
19657
 
  fp = fopen (TESTFILE, "w");
19658
 
  if (fp == NULL)
19659
 
    return 70;
19660
 
  if (fwrite ("foogarsh", 1, 8, fp) < 8)
19661
 
    return 71;
19662
 
  if (fclose (fp))
19663
 
    return 72;
19664
 
 
19665
 
  /* The file's contents is now "foogarsh".  */
19666
 
 
19667
 
  /* Try writing after reading to EOF.  */
19668
 
  fp = fopen (TESTFILE, "r+");
19669
 
  if (fp == NULL)
19670
 
    return 73;
19671
 
  if (fseek (fp, -1, SEEK_END))
19672
 
    return 74;
19673
 
  if (!(getc (fp) == 'h'))
19674
 
    return 1;
19675
 
  if (!(getc (fp) == EOF))
19676
 
    return 2;
19677
 
  if (!(ftell (fp) == 8))
19678
 
    return 3;
19679
 
  if (!(ftell (fp) == 8))
19680
 
    return 4;
19681
 
  if (!(putc ('!', fp) == '!'))
19682
 
    return 5;
19683
 
  if (!(ftell (fp) == 9))
19684
 
    return 6;
19685
 
  if (!(fclose (fp) == 0))
19686
 
    return 7;
19687
 
  fp = fopen (TESTFILE, "r");
19688
 
  if (fp == NULL)
19689
 
    return 75;
19690
 
  {
19691
 
    char buf[10];
19692
 
    if (!(fread (buf, 1, 10, fp) == 9))
19693
 
      return 10;
19694
 
    if (!(memcmp (buf, "foogarsh!", 9) == 0))
19695
 
      return 11;
19696
 
  }
19697
 
  if (!(fclose (fp) == 0))
19698
 
    return 12;
19699
 
 
19700
 
  /* The file's contents is now "foogarsh!".  */
19701
 
 
19702
 
  return 0;
19703
 
}
19704
 
_ACEOF
19705
 
if ac_fn_c_try_run "$LINENO"; then :
19706
 
  gl_cv_func_ftello_works=yes
19707
 
else
19708
 
  gl_cv_func_ftello_works=no
19709
 
fi
19710
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19711
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
19712
 
fi
19713
 
 
19714
 
 
19715
 
fi
19716
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello_works" >&5
19717
 
$as_echo "$gl_cv_func_ftello_works" >&6; }
19718
 
      case "$gl_cv_func_ftello_works" in
19719
 
        *yes) ;;
19720
 
        *)
19721
 
          REPLACE_FTELLO=1
19722
 
 
19723
 
$as_echo "#define FTELLO_BROKEN_AFTER_SWITCHING_FROM_READ_TO_WRITE 1" >>confdefs.h
19724
 
 
19725
 
          ;;
19726
 
      esac
19727
 
    fi
19728
 
  fi
19729
 
 
19730
 
 
 
19739
 
 
19740
  GNULIB_CHDIR=0;
19731
19741
  GNULIB_CHOWN=0;
19732
19742
  GNULIB_CLOSE=0;
 
19743
  GNULIB_DUP=0;
19733
19744
  GNULIB_DUP2=0;
19734
19745
  GNULIB_DUP3=0;
19735
19746
  GNULIB_ENVIRON=0;
19737
19748
  GNULIB_FACCESSAT=0;
19738
19749
  GNULIB_FCHDIR=0;
19739
19750
  GNULIB_FCHOWNAT=0;
 
19751
  GNULIB_FDATASYNC=0;
19740
19752
  GNULIB_FSYNC=0;
19741
19753
  GNULIB_FTRUNCATE=0;
19742
19754
  GNULIB_GETCWD=0;
19779
19791
  HAVE_FACCESSAT=1;
19780
19792
  HAVE_FCHDIR=1;
19781
19793
  HAVE_FCHOWNAT=1;
 
19794
  HAVE_FDATASYNC=1;
19782
19795
  HAVE_FSYNC=1;
19783
19796
  HAVE_FTRUNCATE=1;
19784
19797
  HAVE_GETDTABLESIZE=1;
19803
19816
  HAVE_USLEEP=1;
19804
19817
  HAVE_DECL_ENVIRON=1;
19805
19818
  HAVE_DECL_FCHDIR=1;
 
19819
  HAVE_DECL_FDATASYNC=1;
19806
19820
  HAVE_DECL_GETDOMAINNAME=1;
19807
19821
  HAVE_DECL_GETLOGIN_R=1;
19808
19822
  HAVE_DECL_GETPAGESIZE=1;
19841
19855
 
19842
19856
 
19843
19857
 
 
19858
     GNULIB_FCHMODAT=0;
 
19859
  GNULIB_FSTAT=0;
 
19860
  GNULIB_FSTATAT=0;
 
19861
  GNULIB_FUTIMENS=0;
 
19862
  GNULIB_LCHMOD=0;
 
19863
  GNULIB_LSTAT=0;
 
19864
  GNULIB_MKDIRAT=0;
 
19865
  GNULIB_MKFIFO=0;
 
19866
  GNULIB_MKFIFOAT=0;
 
19867
  GNULIB_MKNOD=0;
 
19868
  GNULIB_MKNODAT=0;
 
19869
  GNULIB_STAT=0;
 
19870
  GNULIB_UTIMENSAT=0;
 
19871
    HAVE_FCHMODAT=1;
 
19872
  HAVE_FSTATAT=1;
 
19873
  HAVE_FUTIMENS=1;
 
19874
  HAVE_LCHMOD=1;
 
19875
  HAVE_LSTAT=1;
 
19876
  HAVE_MKDIRAT=1;
 
19877
  HAVE_MKFIFO=1;
 
19878
  HAVE_MKFIFOAT=1;
 
19879
  HAVE_MKNOD=1;
 
19880
  HAVE_MKNODAT=1;
 
19881
  HAVE_UTIMENSAT=1;
 
19882
  REPLACE_FSTAT=0;
 
19883
  REPLACE_FSTATAT=0;
 
19884
  REPLACE_FUTIMENS=0;
 
19885
  REPLACE_LSTAT=0;
 
19886
  REPLACE_MKDIR=0;
 
19887
  REPLACE_MKFIFO=0;
 
19888
  REPLACE_MKNOD=0;
 
19889
  REPLACE_STAT=0;
 
19890
  REPLACE_UTIMENSAT=0;
 
19891
 
 
19892
 
 
19893
 
 
19894
 
 
19895
  for ac_func in $ac_func_list
 
19896
do :
 
19897
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
19898
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
19899
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
 
19900
  cat >>confdefs.h <<_ACEOF
 
19901
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
19902
_ACEOF
 
19903
 
 
19904
fi
 
19905
done
 
19906
 
 
19907
 
 
19908
 
 
19909
 
 
19910
 
 
19911
  if test $ac_cv_func__set_invalid_parameter_handler = yes; then
 
19912
    HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
 
19913
 
 
19914
$as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
 
19915
 
 
19916
  else
 
19917
    HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
 
19918
  fi
 
19919
 
 
19920
 
 
19921
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
 
19922
$as_echo_n "checking for inline... " >&6; }
 
19923
if ${ac_cv_c_inline+:} false; then :
 
19924
  $as_echo_n "(cached) " >&6
 
19925
else
 
19926
  ac_cv_c_inline=no
 
19927
for ac_kw in inline __inline__ __inline; do
 
19928
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
19929
/* end confdefs.h.  */
 
19930
#ifndef __cplusplus
 
19931
typedef int foo_t;
 
19932
static $ac_kw foo_t static_foo () {return 0; }
 
19933
$ac_kw foo_t foo () {return 0; }
 
19934
#endif
 
19935
 
 
19936
_ACEOF
 
19937
if ac_fn_c_try_compile "$LINENO"; then :
 
19938
  ac_cv_c_inline=$ac_kw
 
19939
fi
 
19940
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19941
  test "$ac_cv_c_inline" != no && break
 
19942
done
 
19943
 
 
19944
fi
 
19945
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
 
19946
$as_echo "$ac_cv_c_inline" >&6; }
 
19947
 
 
19948
case $ac_cv_c_inline in
 
19949
  inline | yes) ;;
 
19950
  *)
 
19951
    case $ac_cv_c_inline in
 
19952
      no) ac_val=;;
 
19953
      *) ac_val=$ac_cv_c_inline;;
 
19954
    esac
 
19955
    cat >>confdefs.h <<_ACEOF
 
19956
#ifndef __cplusplus
 
19957
#define inline $ac_val
 
19958
#endif
 
19959
_ACEOF
 
19960
    ;;
 
19961
esac
 
19962
 
 
19963
ac_fn_c_check_decl "$LINENO" "ftello" "ac_cv_have_decl_ftello" "$ac_includes_default"
 
19964
if test "x$ac_cv_have_decl_ftello" = xyes; then :
 
19965
  ac_have_decl=1
 
19966
else
 
19967
  ac_have_decl=0
 
19968
fi
 
19969
 
 
19970
cat >>confdefs.h <<_ACEOF
 
19971
#define HAVE_DECL_FTELLO $ac_have_decl
 
19972
_ACEOF
 
19973
 
 
19974
 
 
19975
 
 
19976
 
 
19977
 
 
19978
 
 
19979
 
 
19980
 
 
19981
 
 
19982
  if test $ac_cv_have_decl_ftello = no; then
 
19983
    HAVE_DECL_FTELLO=0
 
19984
  fi
 
19985
 
 
19986
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ftello" >&5
 
19987
$as_echo_n "checking for ftello... " >&6; }
 
19988
if ${gl_cv_func_ftello+:} false; then :
 
19989
  $as_echo_n "(cached) " >&6
 
19990
else
 
19991
 
 
19992
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
19993
/* end confdefs.h.  */
 
19994
#include <stdio.h>
 
19995
int
 
19996
main ()
 
19997
{
 
19998
ftello (stdin);
 
19999
  ;
 
20000
  return 0;
 
20001
}
 
20002
_ACEOF
 
20003
if ac_fn_c_try_link "$LINENO"; then :
 
20004
  gl_cv_func_ftello=yes
 
20005
else
 
20006
  gl_cv_func_ftello=no
 
20007
fi
 
20008
rm -f core conftest.err conftest.$ac_objext \
 
20009
    conftest$ac_exeext conftest.$ac_ext
 
20010
 
 
20011
fi
 
20012
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello" >&5
 
20013
$as_echo "$gl_cv_func_ftello" >&6; }
 
20014
  if test $gl_cv_func_ftello = no; then
 
20015
    HAVE_FTELLO=0
 
20016
  else
 
20017
    if test $gl_cv_var_stdin_large_offset = no; then
 
20018
      REPLACE_FTELLO=1
 
20019
    else
 
20020
 
 
20021
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ftello works" >&5
 
20022
$as_echo_n "checking whether ftello works... " >&6; }
 
20023
if ${gl_cv_func_ftello_works+:} false; then :
 
20024
  $as_echo_n "(cached) " >&6
 
20025
else
 
20026
 
 
20027
                              case "$host_os" in
 
20028
                      # Guess no on Solaris.
 
20029
            solaris*) gl_cv_func_ftello_works="guessing no" ;;
 
20030
                      # Guess yes otherwise.
 
20031
            *)        gl_cv_func_ftello_works="guessing yes" ;;
 
20032
          esac
 
20033
          if test "$cross_compiling" = yes; then :
 
20034
  :
 
20035
else
 
20036
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
20037
/* end confdefs.h.  */
 
20038
 
 
20039
#include <stdio.h>
 
20040
#include <stdlib.h>
 
20041
#include <string.h>
 
20042
#define TESTFILE "conftest.tmp"
 
20043
int
 
20044
main (void)
 
20045
{
 
20046
  FILE *fp;
 
20047
 
 
20048
  /* Create a file with some contents.  */
 
20049
  fp = fopen (TESTFILE, "w");
 
20050
  if (fp == NULL)
 
20051
    return 70;
 
20052
  if (fwrite ("foogarsh", 1, 8, fp) < 8)
 
20053
    return 71;
 
20054
  if (fclose (fp))
 
20055
    return 72;
 
20056
 
 
20057
  /* The file's contents is now "foogarsh".  */
 
20058
 
 
20059
  /* Try writing after reading to EOF.  */
 
20060
  fp = fopen (TESTFILE, "r+");
 
20061
  if (fp == NULL)
 
20062
    return 73;
 
20063
  if (fseek (fp, -1, SEEK_END))
 
20064
    return 74;
 
20065
  if (!(getc (fp) == 'h'))
 
20066
    return 1;
 
20067
  if (!(getc (fp) == EOF))
 
20068
    return 2;
 
20069
  if (!(ftell (fp) == 8))
 
20070
    return 3;
 
20071
  if (!(ftell (fp) == 8))
 
20072
    return 4;
 
20073
  if (!(putc ('!', fp) == '!'))
 
20074
    return 5;
 
20075
  if (!(ftell (fp) == 9))
 
20076
    return 6;
 
20077
  if (!(fclose (fp) == 0))
 
20078
    return 7;
 
20079
  fp = fopen (TESTFILE, "r");
 
20080
  if (fp == NULL)
 
20081
    return 75;
 
20082
  {
 
20083
    char buf[10];
 
20084
    if (!(fread (buf, 1, 10, fp) == 9))
 
20085
      return 10;
 
20086
    if (!(memcmp (buf, "foogarsh!", 9) == 0))
 
20087
      return 11;
 
20088
  }
 
20089
  if (!(fclose (fp) == 0))
 
20090
    return 12;
 
20091
 
 
20092
  /* The file's contents is now "foogarsh!".  */
 
20093
 
 
20094
  return 0;
 
20095
}
 
20096
_ACEOF
 
20097
if ac_fn_c_try_run "$LINENO"; then :
 
20098
  gl_cv_func_ftello_works=yes
 
20099
else
 
20100
  gl_cv_func_ftello_works=no
 
20101
fi
 
20102
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
20103
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
20104
fi
 
20105
 
 
20106
 
 
20107
fi
 
20108
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello_works" >&5
 
20109
$as_echo "$gl_cv_func_ftello_works" >&6; }
 
20110
      case "$gl_cv_func_ftello_works" in
 
20111
        *yes) ;;
 
20112
        *)
 
20113
          REPLACE_FTELLO=1
 
20114
 
 
20115
$as_echo "#define FTELLO_BROKEN_AFTER_SWITCHING_FROM_READ_TO_WRITE 1" >>confdefs.h
 
20116
 
 
20117
          ;;
 
20118
      esac
 
20119
    fi
 
20120
  fi
 
20121
 
 
20122
 
 
20123
 
 
20124
 
 
20125
  for ac_header in $ac_header_list
 
20126
do :
 
20127
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
20128
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 
20129
"
 
20130
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 
20131
  cat >>confdefs.h <<_ACEOF
 
20132
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
20133
_ACEOF
 
20134
 
 
20135
fi
 
20136
 
 
20137
done
 
20138
 
 
20139
 
 
20140
 
 
20141
 
19844
20142
  GNULIB__EXIT=0;
19845
20143
  GNULIB_ATOLL=0;
19846
20144
  GNULIB_CALLOC_POSIX=0;
19942
20240
 
19943
20241
 
19944
20242
 
19945
 
  for ac_header in $ac_header_list
19946
 
do :
19947
 
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19948
 
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19949
 
"
19950
 
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19951
 
  cat >>confdefs.h <<_ACEOF
19952
 
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19953
 
_ACEOF
19954
 
 
19955
 
fi
19956
 
 
19957
 
done
19958
 
 
19959
 
 
19960
 
 
19961
 
 
19962
 
 
19963
 
 
19964
 
  for ac_func in $ac_func_list
19965
 
do :
19966
 
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19967
 
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19968
 
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19969
 
  cat >>confdefs.h <<_ACEOF
19970
 
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19971
 
_ACEOF
19972
 
 
19973
 
fi
19974
 
done
19975
 
 
19976
 
 
19977
20243
 
19978
20244
 
19979
20245
  GNULIB_FFSL=0;
20349
20615
 
20350
20616
 
20351
20617
 
20352
 
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
 
20618
 
 
20619
 
 
20620
 
 
20621
 
 
20622
 
 
20623
 
 
20624
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
20353
20625
$as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
20354
20626
if ${gl_cv_func_snprintf_retval_c99+:} false; then :
20355
20627
  $as_echo_n "(cached) " >&6
20392
20664
 
20393
20665
#include <stdio.h>
20394
20666
#include <string.h>
 
20667
#if HAVE_SNPRINTF
 
20668
# define my_snprintf snprintf
 
20669
#else
 
20670
# include <stdarg.h>
 
20671
static int my_snprintf (char *buf, int size, const char *format, ...)
 
20672
{
 
20673
  va_list args;
 
20674
  int ret;
 
20675
  va_start (args, format);
 
20676
  ret = vsnprintf (buf, size, format, args);
 
20677
  va_end (args);
 
20678
  return ret;
 
20679
}
 
20680
#endif
20395
20681
static char buf[100];
20396
20682
int main ()
20397
20683
{
20398
20684
  strcpy (buf, "ABCDEF");
20399
 
  if (snprintf (buf, 3, "%d %d", 4567, 89) != 7)
 
20685
  if (my_snprintf (buf, 3, "%d %d", 4567, 89) != 7)
20400
20686
    return 1;
20401
 
  if (snprintf (buf, 0, "%d %d", 4567, 89) != 7)
 
20687
  if (my_snprintf (buf, 0, "%d %d", 4567, 89) != 7)
20402
20688
    return 2;
20403
 
  if (snprintf (NULL, 0, "%d %d", 4567, 89) != 7)
 
20689
  if (my_snprintf (NULL, 0, "%d %d", 4567, 89) != 7)
20404
20690
    return 3;
20405
20691
  return 0;
20406
20692
}
20432
20718
 
20433
20719
 
20434
20720
 
20435
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
20436
 
$as_echo_n "checking for inline... " >&6; }
20437
 
if ${ac_cv_c_inline+:} false; then :
20438
 
  $as_echo_n "(cached) " >&6
20439
 
else
20440
 
  ac_cv_c_inline=no
20441
 
for ac_kw in inline __inline__ __inline; do
20442
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20443
 
/* end confdefs.h.  */
20444
 
#ifndef __cplusplus
20445
 
typedef int foo_t;
20446
 
static $ac_kw foo_t static_foo () {return 0; }
20447
 
$ac_kw foo_t foo () {return 0; }
20448
 
#endif
20449
 
 
20450
 
_ACEOF
20451
 
if ac_fn_c_try_compile "$LINENO"; then :
20452
 
  ac_cv_c_inline=$ac_kw
20453
 
fi
20454
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20455
 
  test "$ac_cv_c_inline" != no && break
20456
 
done
20457
 
 
20458
 
fi
20459
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
20460
 
$as_echo "$ac_cv_c_inline" >&6; }
20461
 
 
20462
 
case $ac_cv_c_inline in
20463
 
  inline | yes) ;;
20464
 
  *)
20465
 
    case $ac_cv_c_inline in
20466
 
      no) ac_val=;;
20467
 
      *) ac_val=$ac_cv_c_inline;;
20468
 
    esac
20469
 
    cat >>confdefs.h <<_ACEOF
20470
 
#ifndef __cplusplus
20471
 
#define inline $ac_val
20472
 
#endif
20473
 
_ACEOF
20474
 
    ;;
20475
 
esac
20476
 
 
20477
20721
 
20478
20722
   if test $ac_cv_header_sys_socket_h = no; then
20479
20723
                         for ac_header in ws2tcpip.h
20838
21082
                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20839
21083
                 *)    gl_absname_cpp="$ac_cpp" ;;
20840
21084
               esac
 
21085
 
 
21086
               case "$host_os" in
 
21087
                 mingw*)
 
21088
                                                                                                                                     gl_dirsep_regex='[/\\]'
 
21089
                   ;;
 
21090
                 *)
 
21091
                   gl_dirsep_regex='/'
 
21092
                   ;;
 
21093
               esac
 
21094
 
 
21095
               gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'stdint.h|{
 
21096
                   s|.*"\(.*'"${gl_dirsep_regex}"'stdint.h\)".*|\1|
 
21097
                   s|^/[^/]|//&|
 
21098
                   p
 
21099
                   q
 
21100
                 }'
20841
21101
                                                            gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20842
 
                  sed -n '\#/stdint.h#{
20843
 
                    s#.*"\(.*/stdint.h\)".*#\1#
20844
 
                    s#^/[^/]#//&#
20845
 
                    p
20846
 
                    q
20847
 
                  }'`'"'
 
21102
                      sed -n "$gl_absolute_header_sed"`'"'
20848
21103
          else
20849
21104
               gl_cv_next_stdint_h='<'stdint.h'>'
20850
21105
             fi
21468
21723
 
21469
21724
 
21470
21725
 
 
21726
          if test $BITSIZEOF_WINT_T -lt 32; then
 
21727
    BITSIZEOF_WINT_T=32
 
21728
  fi
 
21729
 
21471
21730
    STDINT_H=stdint.h
21472
21731
  fi
21473
21732
 
21561
21820
                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21562
21821
                 *)    gl_absname_cpp="$ac_cpp" ;;
21563
21822
               esac
 
21823
 
 
21824
               case "$host_os" in
 
21825
                 mingw*)
 
21826
                                                                                                                                     gl_dirsep_regex='[/\\]'
 
21827
                   ;;
 
21828
                 *)
 
21829
                   gl_dirsep_regex='/'
 
21830
                   ;;
 
21831
               esac
 
21832
 
 
21833
               gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'string.h|{
 
21834
                   s|.*"\(.*'"${gl_dirsep_regex}"'string.h\)".*|\1|
 
21835
                   s|^/[^/]|//&|
 
21836
                   p
 
21837
                   q
 
21838
                 }'
21564
21839
                                                            gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21565
 
                  sed -n '\#/string.h#{
21566
 
                    s#.*"\(.*/string.h\)".*#\1#
21567
 
                    s#^/[^/]#//&#
21568
 
                    p
21569
 
                    q
21570
 
                  }'`'"'
 
21840
                      sed -n "$gl_absolute_header_sed"`'"'
21571
21841
 
21572
21842
 
21573
21843
fi
21643
21913
 
21644
21914
 
21645
21915
 
 
21916
 
21646
21917
     if test $gl_cv_have_include_next = yes; then
21647
21918
       gl_cv_next_strings_h='<'strings.h'>'
21648
21919
     else
21664
21935
                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21665
21936
                 *)    gl_absname_cpp="$ac_cpp" ;;
21666
21937
               esac
 
21938
 
 
21939
               case "$host_os" in
 
21940
                 mingw*)
 
21941
                                                                                                                                     gl_dirsep_regex='[/\\]'
 
21942
                   ;;
 
21943
                 *)
 
21944
                   gl_dirsep_regex='/'
 
21945
                   ;;
 
21946
               esac
 
21947
 
 
21948
               gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'strings.h|{
 
21949
                   s|.*"\(.*'"${gl_dirsep_regex}"'strings.h\)".*|\1|
 
21950
                   s|^/[^/]|//&|
 
21951
                   p
 
21952
                   q
 
21953
                 }'
21667
21954
                                                            gl_cv_next_strings_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21668
 
                  sed -n '\#/strings.h#{
21669
 
                    s#.*"\(.*/strings.h\)".*#\1#
21670
 
                    s#^/[^/]#//&#
21671
 
                    p
21672
 
                    q
21673
 
                  }'`'"'
 
21955
                      sed -n "$gl_absolute_header_sed"`'"'
21674
21956
          else
21675
21957
               gl_cv_next_strings_h='<'strings.h'>'
21676
21958
             fi
21694
21976
 
21695
21977
 
21696
21978
 
 
21979
  if test $ac_cv_header_strings_h = yes; then
 
21980
    HAVE_STRINGS_H=1
 
21981
  else
 
21982
    HAVE_STRINGS_H=0
 
21983
  fi
 
21984
 
21697
21985
 
21698
21986
 
21699
21987
    for gl_func in ffs strcasecmp strncasecmp; do
21762
22050
  HAVE_SA_FAMILY_T=1;
21763
22051
  HAVE_ACCEPT4=1;
21764
22052
 
21765
 
 
21766
 
     GNULIB_FCHMODAT=0;
21767
 
  GNULIB_FSTATAT=0;
21768
 
  GNULIB_FUTIMENS=0;
21769
 
  GNULIB_LCHMOD=0;
21770
 
  GNULIB_LSTAT=0;
21771
 
  GNULIB_MKDIRAT=0;
21772
 
  GNULIB_MKFIFO=0;
21773
 
  GNULIB_MKFIFOAT=0;
21774
 
  GNULIB_MKNOD=0;
21775
 
  GNULIB_MKNODAT=0;
21776
 
  GNULIB_STAT=0;
21777
 
  GNULIB_UTIMENSAT=0;
21778
 
    HAVE_FCHMODAT=1;
21779
 
  HAVE_FSTATAT=1;
21780
 
  HAVE_FUTIMENS=1;
21781
 
  HAVE_LCHMOD=1;
21782
 
  HAVE_LSTAT=1;
21783
 
  HAVE_MKDIRAT=1;
21784
 
  HAVE_MKFIFO=1;
21785
 
  HAVE_MKFIFOAT=1;
21786
 
  HAVE_MKNOD=1;
21787
 
  HAVE_MKNODAT=1;
21788
 
  HAVE_UTIMENSAT=1;
21789
 
  REPLACE_FSTAT=0;
21790
 
  REPLACE_FSTATAT=0;
21791
 
  REPLACE_FUTIMENS=0;
21792
 
  REPLACE_LSTAT=0;
21793
 
  REPLACE_MKDIR=0;
21794
 
  REPLACE_MKFIFO=0;
21795
 
  REPLACE_MKNOD=0;
21796
 
  REPLACE_STAT=0;
21797
 
  REPLACE_UTIMENSAT=0;
21798
 
 
21799
22053
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
21800
22054
$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
21801
22055
if ${ac_cv_header_stat_broken+:} false; then :
21840
22094
 
21841
22095
 
21842
22096
 
 
22097
ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
 
22098
if test "x$ac_cv_type_mode_t" = xyes; then :
 
22099
 
 
22100
else
 
22101
 
 
22102
cat >>confdefs.h <<_ACEOF
 
22103
#define mode_t int
 
22104
_ACEOF
 
22105
 
 
22106
fi
 
22107
 
 
22108
 
 
22109
 
 
22110
ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
 
22111
if test "x$ac_cv_type_pid_t" = xyes; then :
 
22112
 
 
22113
else
 
22114
 
 
22115
cat >>confdefs.h <<_ACEOF
 
22116
#define pid_t int
 
22117
_ACEOF
 
22118
 
 
22119
fi
 
22120
 
21843
22121
 
21844
22122
 
21845
22123
 
21989
22267
                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21990
22268
                 *)    gl_absname_cpp="$ac_cpp" ;;
21991
22269
               esac
 
22270
 
 
22271
               case "$host_os" in
 
22272
                 mingw*)
 
22273
                                                                                                                                     gl_dirsep_regex='[/\\]'
 
22274
                   ;;
 
22275
                 *)
 
22276
                   gl_dirsep_regex='/'
 
22277
                   ;;
 
22278
               esac
 
22279
 
 
22280
               gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'time.h|{
 
22281
                   s|.*"\(.*'"${gl_dirsep_regex}"'time.h\)".*|\1|
 
22282
                   s|^/[^/]|//&|
 
22283
                   p
 
22284
                   q
 
22285
                 }'
21992
22286
                                                            gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21993
 
                  sed -n '\#/time.h#{
21994
 
                    s#.*"\(.*/time.h\)".*#\1#
21995
 
                    s#^/[^/]#//&#
21996
 
                    p
21997
 
                    q
21998
 
                  }'`'"'
 
22287
                      sed -n "$gl_absolute_header_sed"`'"'
21999
22288
 
22000
22289
 
22001
22290
fi
22034
22323
 
22035
22324
 
22036
22325
 
22037
 
 
22038
 
 
22039
22326
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
22040
22327
$as_echo_n "checking for wint_t... " >&6; }
22041
22328
if ${gt_cv_c_wint_t+:} false; then :
22443
22730
 
22444
22731
 
22445
22732
 
 
22733
 
 
22734
 
 
22735
 
 
22736
 
 
22737
 
22446
22738
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
22447
22739
$as_echo_n "checking for working fcntl.h... " >&6; }
22448
22740
if ${gl_cv_header_working_fcntl_h+:} false; then :
22455
22747
/* end confdefs.h.  */
22456
22748
#include <sys/types.h>
22457
22749
           #include <sys/stat.h>
22458
 
           #include <unistd.h>
 
22750
           #if HAVE_UNISTD_H
 
22751
           # include <unistd.h>
 
22752
           #else /* on Windows with MSVC */
 
22753
           # include <io.h>
 
22754
           # include <stdlib.h>
 
22755
           # defined sleep(n) _sleep ((n) * 1000)
 
22756
           #endif
22459
22757
           #include <fcntl.h>
22460
22758
           #ifndef O_NOATIME
22461
22759
            #define O_NOATIME 0
22474
22772
{
22475
22773
 
22476
22774
            int result = !constants;
 
22775
            #if HAVE_SYMLINK
22477
22776
            {
22478
22777
              static char const sym[] = "conftest.sym";
22479
22778
              if (symlink (".", sym) != 0)
22489
22788
                }
22490
22789
              unlink (sym);
22491
22790
            }
 
22791
            #endif
22492
22792
            {
22493
22793
              static char const file[] = "confdefs.h";
22494
22794
              int fd = open (file, O_RDONLY | O_NOATIME);
22674
22974
                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22675
22975
                 *)    gl_absname_cpp="$ac_cpp" ;;
22676
22976
               esac
 
22977
 
 
22978
               case "$host_os" in
 
22979
                 mingw*)
 
22980
                                                                                                                                     gl_dirsep_regex='[/\\]'
 
22981
                   ;;
 
22982
                 *)
 
22983
                   gl_dirsep_regex='/'
 
22984
                   ;;
 
22985
               esac
 
22986
 
 
22987
               gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'inttypes.h|{
 
22988
                   s|.*"\(.*'"${gl_dirsep_regex}"'inttypes.h\)".*|\1|
 
22989
                   s|^/[^/]|//&|
 
22990
                   p
 
22991
                   q
 
22992
                 }'
22677
22993
                                                            gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22678
 
                  sed -n '\#/inttypes.h#{
22679
 
                    s#.*"\(.*/inttypes.h\)".*#\1#
22680
 
                    s#^/[^/]#//&#
22681
 
                    p
22682
 
                    q
22683
 
                  }'`'"'
 
22994
                      sed -n "$gl_absolute_header_sed"`'"'
22684
22995
          else
22685
22996
               gl_cv_next_inttypes_h='<'inttypes.h'>'
22686
22997
             fi
22953
23264
          ;;
22954
23265
      esac
22955
23266
      ;;
 
23267
    linux*)
 
23268
      case "$host_cpu" in
 
23269
        powerpc*)
 
23270
          FLOAT_H=float.h
 
23271
          ;;
 
23272
      esac
 
23273
      ;;
22956
23274
  esac
22957
23275
  case "$host_os" in
22958
 
    aix* | freebsd*)
 
23276
    aix* | freebsd* | linux*)
22959
23277
      if test -n "$FLOAT_H"; then
22960
23278
        REPLACE_FLOAT_LDBL=1
22961
23279
      fi
22962
23280
      ;;
22963
23281
  esac
 
23282
 
 
23283
    REPLACE_ITOLD=0
 
23284
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
 
23285
$as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
 
23286
if ${gl_cv_func_itold_works+:} false; then :
 
23287
  $as_echo_n "(cached) " >&6
 
23288
else
 
23289
 
 
23290
      if test "$cross_compiling" = yes; then :
 
23291
  case "$host" in
 
23292
           sparc*-*-linux*)
 
23293
             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
23294
/* end confdefs.h.  */
 
23295
#if defined __LP64__ || defined __arch64__
 
23296
                yes
 
23297
                #endif
 
23298
_ACEOF
 
23299
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
23300
  $EGREP "yes" >/dev/null 2>&1; then :
 
23301
  gl_cv_func_itold_works="guessing no"
 
23302
else
 
23303
  gl_cv_func_itold_works="guessing yes"
 
23304
fi
 
23305
rm -f conftest*
 
23306
 
 
23307
             ;;
 
23308
           *) gl_cv_func_itold_works="guessing yes" ;;
 
23309
         esac
 
23310
 
 
23311
else
 
23312
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
23313
/* end confdefs.h.  */
 
23314
 
 
23315
int i = -1;
 
23316
volatile long double ld;
 
23317
int main ()
 
23318
{
 
23319
  ld += i * 1.0L;
 
23320
  if (ld > 0)
 
23321
    return 1;
 
23322
  return 0;
 
23323
}
 
23324
_ACEOF
 
23325
if ac_fn_c_try_run "$LINENO"; then :
 
23326
  gl_cv_func_itold_works=yes
 
23327
else
 
23328
  gl_cv_func_itold_works=no
 
23329
fi
 
23330
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
23331
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
23332
fi
 
23333
 
 
23334
 
 
23335
fi
 
23336
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
 
23337
$as_echo "$gl_cv_func_itold_works" >&6; }
 
23338
  case "$gl_cv_func_itold_works" in
 
23339
    *no)
 
23340
      REPLACE_ITOLD=1
 
23341
                  FLOAT_H=float.h
 
23342
      ;;
 
23343
  esac
 
23344
 
22964
23345
  if test -n "$FLOAT_H"; then
22965
23346
 
22966
23347
 
22988
23369
                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22989
23370
                 *)    gl_absname_cpp="$ac_cpp" ;;
22990
23371
               esac
 
23372
 
 
23373
               case "$host_os" in
 
23374
                 mingw*)
 
23375
                                                                                                                                     gl_dirsep_regex='[/\\]'
 
23376
                   ;;
 
23377
                 *)
 
23378
                   gl_dirsep_regex='/'
 
23379
                   ;;
 
23380
               esac
 
23381
 
 
23382
               gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'float.h|{
 
23383
                   s|.*"\(.*'"${gl_dirsep_regex}"'float.h\)".*|\1|
 
23384
                   s|^/[^/]|//&|
 
23385
                   p
 
23386
                   q
 
23387
                 }'
22991
23388
                                                            gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22992
 
                  sed -n '\#/float.h#{
22993
 
                    s#.*"\(.*/float.h\)".*#\1#
22994
 
                    s#^/[^/]#//&#
22995
 
                    p
22996
 
                    q
22997
 
                  }'`'"'
 
23389
                      sed -n "$gl_absolute_header_sed"`'"'
22998
23390
 
22999
23391
 
23000
23392
fi
23026
23418
fi
23027
23419
 
23028
23420
 
 
23421
 
23029
23422
if test $REPLACE_FLOAT_LDBL = 1; then
23030
23423
 
23031
23424
 
23038
23431
  lgl_LIBOBJS="$lgl_LIBOBJS float.$ac_objext"
23039
23432
 
23040
23433
fi
 
23434
if test $REPLACE_ITOLD = 1; then
 
23435
 
 
23436
 
 
23437
 
 
23438
 
 
23439
 
 
23440
 
 
23441
 
 
23442
 
 
23443
  lgl_LIBOBJS="$lgl_LIBOBJS itold.$ac_objext"
 
23444
 
 
23445
fi
23041
23446
 
23042
23447
 
23043
23448
 
23153
23558
 
23154
23559
 
23155
23560
 
 
23561
  if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
 
23562
    REPLACE_FSTAT=1
 
23563
  fi
 
23564
 
 
23565
 
 
23566
if test $REPLACE_FSTAT = 1; then
 
23567
 
 
23568
 
 
23569
 
 
23570
 
 
23571
 
 
23572
 
 
23573
 
 
23574
 
 
23575
  lgl_LIBOBJS="$lgl_LIBOBJS fstat.$ac_objext"
 
23576
 
 
23577
 
 
23578
 
 
23579
 
 
23580
fi
 
23581
 
 
23582
 
 
23583
 
 
23584
 
 
23585
 
 
23586
          GNULIB_FSTAT=1
 
23587
 
 
23588
 
 
23589
 
 
23590
 
 
23591
 
 
23592
$as_echo "#define GNULIB_TEST_FSTAT 1" >>confdefs.h
 
23593
 
 
23594
 
 
23595
 
 
23596
 
 
23597
 
 
23598
 
23156
23599
    if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
23157
23600
    REPLACE_FTELL=1
23158
23601
  fi
23493
23936
 
23494
23937
 
23495
23938
 
 
23939
 
23496
23940
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek detects pipes" >&5
23497
23941
$as_echo_n "checking whether lseek detects pipes... " >&6; }
23498
23942
if ${gl_cv_func_lseek_pipe+:} false; then :
23504
23948
 
23505
23949
#include <sys/types.h> /* for off_t */
23506
23950
#include <stdio.h> /* for SEEK_CUR */
23507
 
#include <unistd.h>
 
23951
#if HAVE_UNISTD_H
 
23952
# include <unistd.h>
 
23953
#else /* on Windows with MSVC */
 
23954
# include <io.h>
 
23955
#endif
 
23956
 
23508
23957
int
23509
23958
main ()
23510
23959
{
23802
24251
 
23803
24252
 
23804
24253
 
 
24254
  if test $ac_cv_func__set_invalid_parameter_handler = yes; then
 
24255
    HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
 
24256
 
 
24257
$as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
 
24258
 
 
24259
  else
 
24260
    HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
 
24261
  fi
 
24262
 
 
24263
 
 
24264
if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
 
24265
 
 
24266
 
 
24267
 
 
24268
 
 
24269
 
 
24270
 
 
24271
 
 
24272
 
 
24273
  lgl_LIBOBJS="$lgl_LIBOBJS msvc-inval.$ac_objext"
 
24274
 
 
24275
fi
 
24276
 
 
24277
 
 
24278
 
 
24279
if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
 
24280
 
 
24281
 
 
24282
 
 
24283
 
 
24284
 
 
24285
 
 
24286
 
 
24287
 
 
24288
  lgl_LIBOBJS="$lgl_LIBOBJS msvc-nothrow.$ac_objext"
 
24289
 
 
24290
fi
 
24291
 
 
24292
 
23805
24293
 
23806
24294
 
23807
24295
 
23833
24321
                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23834
24322
                 *)    gl_absname_cpp="$ac_cpp" ;;
23835
24323
               esac
 
24324
 
 
24325
               case "$host_os" in
 
24326
                 mingw*)
 
24327
                                                                                                                                     gl_dirsep_regex='[/\\]'
 
24328
                   ;;
 
24329
                 *)
 
24330
                   gl_dirsep_regex='/'
 
24331
                   ;;
 
24332
               esac
 
24333
 
 
24334
               gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'netdb.h|{
 
24335
                   s|.*"\(.*'"${gl_dirsep_regex}"'netdb.h\)".*|\1|
 
24336
                   s|^/[^/]|//&|
 
24337
                   p
 
24338
                   q
 
24339
                 }'
23836
24340
                                                            gl_cv_next_netdb_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23837
 
                  sed -n '\#/netdb.h#{
23838
 
                    s#.*"\(.*/netdb.h\)".*#\1#
23839
 
                    s#^/[^/]#//&#
23840
 
                    p
23841
 
                    q
23842
 
                  }'`'"'
 
24341
                      sed -n "$gl_absolute_header_sed"`'"'
23843
24342
          else
23844
24343
               gl_cv_next_netdb_h='<'netdb.h'>'
23845
24344
             fi
24061
24560
  if test $ac_cv_func_snprintf = yes; then
24062
24561
 
24063
24562
 
 
24563
 
24064
24564
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
24065
24565
$as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
24066
24566
if ${gl_cv_func_snprintf_size1+:} false; then :
24074
24574
/* end confdefs.h.  */
24075
24575
 
24076
24576
#include <stdio.h>
 
24577
#if HAVE_SNPRINTF
 
24578
# define my_snprintf snprintf
 
24579
#else
 
24580
# include <stdarg.h>
 
24581
static int my_snprintf (char *buf, int size, const char *format, ...)
 
24582
{
 
24583
  va_list args;
 
24584
  int ret;
 
24585
  va_start (args, format);
 
24586
  ret = vsnprintf (buf, size, format, args);
 
24587
  va_end (args);
 
24588
  return ret;
 
24589
}
 
24590
#endif
24077
24591
int main()
24078
24592
{
24079
24593
  static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
24080
 
  snprintf (buf, 1, "%d", 12345);
 
24594
  my_snprintf (buf, 1, "%d", 12345);
24081
24595
  return buf[1] != 'E';
24082
24596
}
24083
24597
_ACEOF
24460
24974
fi
24461
24975
 
24462
24976
 
 
24977
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
 
24978
$as_echo_n "checking for ssize_t... " >&6; }
 
24979
if ${gt_cv_ssize_t+:} false; then :
 
24980
  $as_echo_n "(cached) " >&6
 
24981
else
 
24982
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
24983
/* end confdefs.h.  */
 
24984
#include <sys/types.h>
 
24985
int
 
24986
main ()
 
24987
{
 
24988
int x = sizeof (ssize_t *) + sizeof (ssize_t);
 
24989
            return !x;
 
24990
  ;
 
24991
  return 0;
 
24992
}
 
24993
_ACEOF
 
24994
if ac_fn_c_try_compile "$LINENO"; then :
 
24995
  gt_cv_ssize_t=yes
 
24996
else
 
24997
  gt_cv_ssize_t=no
 
24998
fi
 
24999
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
25000
fi
 
25001
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
 
25002
$as_echo "$gt_cv_ssize_t" >&6; }
 
25003
  if test $gt_cv_ssize_t = no; then
 
25004
 
 
25005
$as_echo "#define ssize_t int" >>confdefs.h
 
25006
 
 
25007
  fi
 
25008
 
 
25009
 
24463
25010
 
24464
25011
 
24465
25012
  # Define two additional variables used in the Makefile substitution.
24561
25108
                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24562
25109
                 *)    gl_absname_cpp="$ac_cpp" ;;
24563
25110
               esac
 
25111
 
 
25112
               case "$host_os" in
 
25113
                 mingw*)
 
25114
                                                                                                                                     gl_dirsep_regex='[/\\]'
 
25115
                   ;;
 
25116
                 *)
 
25117
                   gl_dirsep_regex='/'
 
25118
                   ;;
 
25119
               esac
 
25120
 
 
25121
               gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'stddef.h|{
 
25122
                   s|.*"\(.*'"${gl_dirsep_regex}"'stddef.h\)".*|\1|
 
25123
                   s|^/[^/]|//&|
 
25124
                   p
 
25125
                   q
 
25126
                 }'
24564
25127
                                                            gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24565
 
                  sed -n '\#/stddef.h#{
24566
 
                    s#.*"\(.*/stddef.h\)".*#\1#
24567
 
                    s#^/[^/]#//&#
24568
 
                    p
24569
 
                    q
24570
 
                  }'`'"'
 
25128
                      sed -n "$gl_absolute_header_sed"`'"'
24571
25129
 
24572
25130
 
24573
25131
fi
24620
25178
                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24621
25179
                 *)    gl_absname_cpp="$ac_cpp" ;;
24622
25180
               esac
 
25181
 
 
25182
               case "$host_os" in
 
25183
                 mingw*)
 
25184
                                                                                                                                     gl_dirsep_regex='[/\\]'
 
25185
                   ;;
 
25186
                 *)
 
25187
                   gl_dirsep_regex='/'
 
25188
                   ;;
 
25189
               esac
 
25190
 
 
25191
               gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'stdio.h|{
 
25192
                   s|.*"\(.*'"${gl_dirsep_regex}"'stdio.h\)".*|\1|
 
25193
                   s|^/[^/]|//&|
 
25194
                   p
 
25195
                   q
 
25196
                 }'
24623
25197
                                                            gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24624
 
                  sed -n '\#/stdio.h#{
24625
 
                    s#.*"\(.*/stdio.h\)".*#\1#
24626
 
                    s#^/[^/]#//&#
24627
 
                    p
24628
 
                    q
24629
 
                  }'`'"'
 
25198
                      sed -n "$gl_absolute_header_sed"`'"'
24630
25199
 
24631
25200
 
24632
25201
fi
24672
25241
 
24673
25242
 
24674
25243
 
24675
 
    for gl_func in dprintf fpurge fseeko ftello getdelim getline popen renameat     snprintf tmpfile vdprintf vsnprintf; do
 
25244
    for gl_func in dprintf fpurge fseeko ftello getdelim getline pclose popen renameat     snprintf tmpfile vdprintf vsnprintf; do
24676
25245
    as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
24677
25246
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
24678
25247
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
24740
25309
                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24741
25310
                 *)    gl_absname_cpp="$ac_cpp" ;;
24742
25311
               esac
 
25312
 
 
25313
               case "$host_os" in
 
25314
                 mingw*)
 
25315
                                                                                                                                     gl_dirsep_regex='[/\\]'
 
25316
                   ;;
 
25317
                 *)
 
25318
                   gl_dirsep_regex='/'
 
25319
                   ;;
 
25320
               esac
 
25321
 
 
25322
               gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'stdlib.h|{
 
25323
                   s|.*"\(.*'"${gl_dirsep_regex}"'stdlib.h\)".*|\1|
 
25324
                   s|^/[^/]|//&|
 
25325
                   p
 
25326
                   q
 
25327
                 }'
24743
25328
                                                            gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24744
 
                  sed -n '\#/stdlib.h#{
24745
 
                    s#.*"\(.*/stdlib.h\)".*#\1#
24746
 
                    s#^/[^/]#//&#
24747
 
                    p
24748
 
                    q
24749
 
                  }'`'"'
 
25329
                      sed -n "$gl_absolute_header_sed"`'"'
24750
25330
 
24751
25331
 
24752
25332
fi
25070
25650
                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
25071
25651
                 *)    gl_absname_cpp="$ac_cpp" ;;
25072
25652
               esac
 
25653
 
 
25654
               case "$host_os" in
 
25655
                 mingw*)
 
25656
                                                                                                                                     gl_dirsep_regex='[/\\]'
 
25657
                   ;;
 
25658
                 *)
 
25659
                   gl_dirsep_regex='/'
 
25660
                   ;;
 
25661
               esac
 
25662
 
 
25663
               gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'sys/socket.h|{
 
25664
                   s|.*"\(.*'"${gl_dirsep_regex}"'sys/socket.h\)".*|\1|
 
25665
                   s|^/[^/]|//&|
 
25666
                   p
 
25667
                   q
 
25668
                 }'
25073
25669
                                                            gl_cv_next_sys_socket_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25074
 
                  sed -n '\#/sys/socket.h#{
25075
 
                    s#.*"\(.*/sys/socket.h\)".*#\1#
25076
 
                    s#^/[^/]#//&#
25077
 
                    p
25078
 
                    q
25079
 
                  }'`'"'
 
25670
                      sed -n "$gl_absolute_header_sed"`'"'
25080
25671
          else
25081
25672
               gl_cv_next_sys_socket_h='<'sys/socket.h'>'
25082
25673
             fi
25299
25890
                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
25300
25891
                 *)    gl_absname_cpp="$ac_cpp" ;;
25301
25892
               esac
 
25893
 
 
25894
               case "$host_os" in
 
25895
                 mingw*)
 
25896
                                                                                                                                     gl_dirsep_regex='[/\\]'
 
25897
                   ;;
 
25898
                 *)
 
25899
                   gl_dirsep_regex='/'
 
25900
                   ;;
 
25901
               esac
 
25902
 
 
25903
               gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'sys/stat.h|{
 
25904
                   s|.*"\(.*'"${gl_dirsep_regex}"'sys/stat.h\)".*|\1|
 
25905
                   s|^/[^/]|//&|
 
25906
                   p
 
25907
                   q
 
25908
                 }'
25302
25909
                                                            gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25303
 
                  sed -n '\#/sys/stat.h#{
25304
 
                    s#.*"\(.*/sys/stat.h\)".*#\1#
25305
 
                    s#^/[^/]#//&#
25306
 
                    p
25307
 
                    q
25308
 
                  }'`'"'
 
25910
                      sed -n "$gl_absolute_header_sed"`'"'
25309
25911
          else
25310
25912
               gl_cv_next_sys_stat_h='<'sys/stat.h'>'
25311
25913
             fi
25330
25932
 
25331
25933
 
25332
25934
 
 
25935
 
 
25936
 
25333
25937
      ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
25334
25938
     #include <sys/stat.h>
25335
25939
"
25343
25947
 
25344
25948
 
25345
25949
 
25346
 
    for gl_func in fchmodat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat     mknod mknodat stat utimensat; do
 
25950
    for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat     mknod mknodat stat utimensat; do
25347
25951
    as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25348
25952
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
25349
25953
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25394
25998
 
25395
25999
 
25396
26000
 
 
26001
     if test $gl_cv_have_include_next = yes; then
 
26002
       gl_cv_next_sys_types_h='<'sys/types.h'>'
 
26003
     else
 
26004
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
 
26005
$as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
 
26006
if ${gl_cv_next_sys_types_h+:} false; then :
 
26007
  $as_echo_n "(cached) " >&6
 
26008
else
 
26009
 
 
26010
               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
26011
/* end confdefs.h.  */
 
26012
#include <sys/types.h>
 
26013
 
 
26014
_ACEOF
 
26015
                                                                                                                        case "$host_os" in
 
26016
                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
 
26017
                 *)    gl_absname_cpp="$ac_cpp" ;;
 
26018
               esac
 
26019
 
 
26020
               case "$host_os" in
 
26021
                 mingw*)
 
26022
                                                                                                                                     gl_dirsep_regex='[/\\]'
 
26023
                   ;;
 
26024
                 *)
 
26025
                   gl_dirsep_regex='/'
 
26026
                   ;;
 
26027
               esac
 
26028
 
 
26029
               gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'sys/types.h|{
 
26030
                   s|.*"\(.*'"${gl_dirsep_regex}"'sys/types.h\)".*|\1|
 
26031
                   s|^/[^/]|//&|
 
26032
                   p
 
26033
                   q
 
26034
                 }'
 
26035
                                                            gl_cv_next_sys_types_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
 
26036
                      sed -n "$gl_absolute_header_sed"`'"'
 
26037
 
 
26038
 
 
26039
fi
 
26040
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
 
26041
$as_echo "$gl_cv_next_sys_types_h" >&6; }
 
26042
     fi
 
26043
     NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
 
26044
 
 
26045
     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
 
26046
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
 
26047
       gl_next_as_first_directive='<'sys/types.h'>'
 
26048
     else
 
26049
       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
 
26050
       gl_next_as_first_directive=$gl_cv_next_sys_types_h
 
26051
     fi
 
26052
     NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
 
26053
 
 
26054
 
 
26055
 
 
26056
 
 
26057
 
 
26058
 
 
26059
 
 
26060
 
 
26061
 
 
26062
 
 
26063
 
 
26064
 
 
26065
 
 
26066
 
 
26067
 
 
26068
 
 
26069
 
 
26070
 
 
26071
 
 
26072
 
25397
26073
 
25398
26074
     if test $gl_cv_have_include_next = yes; then
25399
26075
       gl_cv_next_sys_uio_h='<'sys/uio.h'>'
25416
26092
                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
25417
26093
                 *)    gl_absname_cpp="$ac_cpp" ;;
25418
26094
               esac
 
26095
 
 
26096
               case "$host_os" in
 
26097
                 mingw*)
 
26098
                                                                                                                                     gl_dirsep_regex='[/\\]'
 
26099
                   ;;
 
26100
                 *)
 
26101
                   gl_dirsep_regex='/'
 
26102
                   ;;
 
26103
               esac
 
26104
 
 
26105
               gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'sys/uio.h|{
 
26106
                   s|.*"\(.*'"${gl_dirsep_regex}"'sys/uio.h\)".*|\1|
 
26107
                   s|^/[^/]|//&|
 
26108
                   p
 
26109
                   q
 
26110
                 }'
25419
26111
                                                            gl_cv_next_sys_uio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25420
 
                  sed -n '\#/sys/uio.h#{
25421
 
                    s#.*"\(.*/sys/uio.h\)".*#\1#
25422
 
                    s#^/[^/]#//&#
25423
 
                    p
25424
 
                    q
25425
 
                  }'`'"'
 
26112
                      sed -n "$gl_absolute_header_sed"`'"'
25426
26113
          else
25427
26114
               gl_cv_next_sys_uio_h='<'sys/uio.h'>'
25428
26115
             fi
25578
26265
                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
25579
26266
                 *)    gl_absname_cpp="$ac_cpp" ;;
25580
26267
               esac
 
26268
 
 
26269
               case "$host_os" in
 
26270
                 mingw*)
 
26271
                                                                                                                                     gl_dirsep_regex='[/\\]'
 
26272
                   ;;
 
26273
                 *)
 
26274
                   gl_dirsep_regex='/'
 
26275
                   ;;
 
26276
               esac
 
26277
 
 
26278
               gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'unistd.h|{
 
26279
                   s|.*"\(.*'"${gl_dirsep_regex}"'unistd.h\)".*|\1|
 
26280
                   s|^/[^/]|//&|
 
26281
                   p
 
26282
                   q
 
26283
                 }'
25581
26284
                                                            gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25582
 
                  sed -n '\#/unistd.h#{
25583
 
                    s#.*"\(.*/unistd.h\)".*#\1#
25584
 
                    s#^/[^/]#//&#
25585
 
                    p
25586
 
                    q
25587
 
                  }'`'"'
 
26285
                      sed -n "$gl_absolute_header_sed"`'"'
25588
26286
          else
25589
26287
               gl_cv_next_unistd_h='<'unistd.h'>'
25590
26288
             fi
25616
26314
 
25617
26315
 
25618
26316
 
25619
 
    for gl_func in chown dup2 dup3 environ euidaccess faccessat fchdir fchownat     fsync ftruncate getcwd getdomainname getdtablesize getgroups     gethostname getlogin getlogin_r getpagesize getusershell setusershell     endusershell group_member lchown link linkat lseek pipe pipe2 pread pwrite     readlink readlinkat rmdir sleep symlink symlinkat ttyname_r unlink unlinkat     usleep; do
 
26317
 
 
26318
 
 
26319
    for gl_func in chdir chown dup dup2 dup3 environ euidaccess faccessat fchdir fchownat     fdatasync fsync ftruncate getcwd getdomainname getdtablesize getgroups     gethostname getlogin getlogin_r getpagesize getusershell setusershell     endusershell group_member lchown link linkat lseek pipe pipe2 pread pwrite     readlink readlinkat rmdir sleep symlink symlinkat ttyname_r unlink unlinkat     usleep; do
25620
26320
    as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25621
26321
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
25622
26322
$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25625
26325
else
25626
26326
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25627
26327
/* end confdefs.h.  */
25628
 
#include <unistd.h>
 
26328
 
 
26329
#if HAVE_UNISTD_H
 
26330
# include <unistd.h>
 
26331
#endif
25629
26332
/* Some systems declare various items in the wrong headers.  */
25630
26333
#if !(defined __GLIBC__ && !defined __UCLIBC__)
25631
26334
# include <fcntl.h>
25834
26537
  if test $ac_cv_func_vsnprintf = yes; then
25835
26538
 
25836
26539
 
 
26540
 
25837
26541
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
25838
26542
$as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
25839
26543
if ${gl_cv_func_snprintf_size1+:} false; then :
25847
26551
/* end confdefs.h.  */
25848
26552
 
25849
26553
#include <stdio.h>
 
26554
#if HAVE_SNPRINTF
 
26555
# define my_snprintf snprintf
 
26556
#else
 
26557
# include <stdarg.h>
 
26558
static int my_snprintf (char *buf, int size, const char *format, ...)
 
26559
{
 
26560
  va_list args;
 
26561
  int ret;
 
26562
  va_start (args, format);
 
26563
  ret = vsnprintf (buf, size, format, args);
 
26564
  va_end (args);
 
26565
  return ret;
 
26566
}
 
26567
#endif
25850
26568
int main()
25851
26569
{
25852
26570
  static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
25853
 
  snprintf (buf, 1, "%d", 12345);
 
26571
  my_snprintf (buf, 1, "%d", 12345);
25854
26572
  return buf[1] != 'E';
25855
26573
}
25856
26574
_ACEOF
26003
26721
                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26004
26722
                 *)    gl_absname_cpp="$ac_cpp" ;;
26005
26723
               esac
 
26724
 
 
26725
               case "$host_os" in
 
26726
                 mingw*)
 
26727
                                                                                                                                     gl_dirsep_regex='[/\\]'
 
26728
                   ;;
 
26729
                 *)
 
26730
                   gl_dirsep_regex='/'
 
26731
                   ;;
 
26732
               esac
 
26733
 
 
26734
               gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'wchar.h|{
 
26735
                   s|.*"\(.*'"${gl_dirsep_regex}"'wchar.h\)".*|\1|
 
26736
                   s|^/[^/]|//&|
 
26737
                   p
 
26738
                   q
 
26739
                 }'
26006
26740
                                                            gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26007
 
                  sed -n '\#/wchar.h#{
26008
 
                    s#.*"\(.*/wchar.h\)".*#\1#
26009
 
                    s#^/[^/]#//&#
26010
 
                    p
26011
 
                    q
26012
 
                  }'`'"'
 
26741
                      sed -n "$gl_absolute_header_sed"`'"'
26013
26742
          else
26014
26743
               gl_cv_next_wchar_h='<'wchar.h'>'
26015
26744
             fi
26172
26901
                 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26173
26902
                 *)    gl_absname_cpp="$ac_cpp" ;;
26174
26903
               esac
 
26904
 
 
26905
               case "$host_os" in
 
26906
                 mingw*)
 
26907
                                                                                                                                     gl_dirsep_regex='[/\\]'
 
26908
                   ;;
 
26909
                 *)
 
26910
                   gl_dirsep_regex='/'
 
26911
                   ;;
 
26912
               esac
 
26913
 
 
26914
               gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'fcntl.h|{
 
26915
                   s|.*"\(.*'"${gl_dirsep_regex}"'fcntl.h\)".*|\1|
 
26916
                   s|^/[^/]|//&|
 
26917
                   p
 
26918
                   q
 
26919
                 }'
26175
26920
                                                            gl_cv_next_fcntl_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26176
 
                  sed -n '\#/fcntl.h#{
26177
 
                    s#.*"\(.*/fcntl.h\)".*#\1#
26178
 
                    s#^/[^/]#//&#
26179
 
                    p
26180
 
                    q
26181
 
                  }'`'"'
 
26921
                      sed -n "$gl_absolute_header_sed"`'"'
26182
26922
 
26183
26923
 
26184
26924
fi
26201
26941
 
26202
26942
 
26203
26943
 
 
26944
 
 
26945
 
 
26946
 
 
26947
 
26204
26948
    for gl_func in fcntl openat; do
26205
26949
    as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
26206
26950
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
26244
26988
 
26245
26989
 
26246
26990
 
 
26991
  if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
 
26992
    REPLACE_FDOPEN=1
 
26993
  else
 
26994
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopen sets errno" >&5
 
26995
$as_echo_n "checking whether fdopen sets errno... " >&6; }
 
26996
if ${gl_cv_func_fdopen_works+:} false; then :
 
26997
  $as_echo_n "(cached) " >&6
 
26998
else
 
26999
 
 
27000
        if test "$cross_compiling" = yes; then :
 
27001
  case "$host_os" in
 
27002
             mingw*) gl_cv_func_fdopen_works="guessing no" ;;
 
27003
             *)      gl_cv_func_fdopen_works="guessing yes" ;;
 
27004
           esac
 
27005
 
 
27006
else
 
27007
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
27008
/* end confdefs.h.  */
 
27009
 
 
27010
#include <stdio.h>
 
27011
#include <errno.h>
 
27012
int
 
27013
main (void)
 
27014
{
 
27015
  FILE *fp;
 
27016
  errno = 0;
 
27017
  fp = fdopen (-1, "r");
 
27018
  if (fp != NULL)
 
27019
    return 1;
 
27020
  if (errno == 0)
 
27021
    return 2;
 
27022
  return 0;
 
27023
}
 
27024
_ACEOF
 
27025
if ac_fn_c_try_run "$LINENO"; then :
 
27026
  gl_cv_func_fdopen_works=yes
 
27027
else
 
27028
  gl_cv_func_fdopen_works=no
 
27029
fi
 
27030
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
27031
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
27032
fi
 
27033
 
 
27034
 
 
27035
fi
 
27036
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopen_works" >&5
 
27037
$as_echo "$gl_cv_func_fdopen_works" >&6; }
 
27038
    case "$gl_cv_func_fdopen_works" in
 
27039
      *no) REPLACE_FDOPEN=1 ;;
 
27040
    esac
 
27041
  fi
 
27042
 
 
27043
if test $REPLACE_FDOPEN = 1; then
 
27044
 
 
27045
 
 
27046
 
 
27047
 
 
27048
 
 
27049
 
 
27050
 
 
27051
 
 
27052
  lgltests_LIBOBJS="$lgltests_LIBOBJS fdopen.$ac_objext"
 
27053
 
 
27054
 
 
27055
fi
 
27056
 
 
27057
 
 
27058
 
 
27059
 
 
27060
 
 
27061
    if test "$GNULIB_FDOPEN" != 1; then
 
27062
        if test "$GNULIB_FDOPEN" = 0; then
 
27063
      GNULIB_FDOPEN=$gl_module_indicator_condition
 
27064
    else
 
27065
      GNULIB_FDOPEN="($GNULIB_FDOPEN || $gl_module_indicator_condition)"
 
27066
    fi
 
27067
  fi
 
27068
 
 
27069
 
 
27070
 
 
27071
 
 
27072
 
 
27073
$as_echo "#define GNULIB_TEST_FDOPEN 1" >>confdefs.h
 
27074
 
 
27075
 
 
27076
 
 
27077
 
 
27078
 
 
27079
 
26247
27080
 
26248
27081
 
26249
27082
 
31562
32395
# report actual input values of CONFIG_FILES etc. instead of their
31563
32396
# values after options handling.
31564
32397
ac_log="
31565
 
This file was extended by libgnutls $as_me 2.12.11, which was
 
32398
This file was extended by libgnutls $as_me 2.12.14, which was
31566
32399
generated by GNU Autoconf 2.68.  Invocation command line was
31567
32400
 
31568
32401
  CONFIG_FILES    = $CONFIG_FILES
31628
32461
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31629
32462
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31630
32463
ac_cs_version="\\
31631
 
libgnutls config.status 2.12.11
 
32464
libgnutls config.status 2.12.14
31632
32465
configured by $0, generated by GNU Autoconf 2.68,
31633
32466
  with options \\"\$ac_cs_config\\"
31634
32467