~ubuntu-branches/ubuntu/raring/findutils/raring

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt
  • Date: 2008-05-06 11:32:24 UTC
  • mfrom: (1.2.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 23.
  • Revision ID: james.westby@ubuntu.com-20080506113224-gy4ecmxu48tnvva4
Tags: upstream-4.4.0
ImportĀ upstreamĀ versionĀ 4.4.0

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.61 for GNU findutils 4.2.32.
 
3
# Generated by GNU Autoconf 2.61 for GNU findutils 4.4.0.
4
4
#
5
5
# Report bugs to <bug-findutils@gnu.org>.
6
6
#
574
574
# Identity of this package.
575
575
PACKAGE_NAME='GNU findutils'
576
576
PACKAGE_TARNAME='findutils'
577
 
PACKAGE_VERSION='4.2.32'
578
 
PACKAGE_STRING='GNU findutils 4.2.32'
 
577
PACKAGE_VERSION='4.4.0'
 
578
PACKAGE_STRING='GNU findutils 4.4.0'
579
579
PACKAGE_BUGREPORT='bug-findutils@gnu.org'
580
580
 
581
581
ac_unique_file="find/pred.c"
686
686
host_vendor
687
687
host_os
688
688
INCLUDES
 
689
AUXDIR
 
690
WITH_FTS_TRUE
 
691
WITH_FTS_FALSE
 
692
DEFAULT_ARG_SIZE
689
693
CC
690
694
CFLAGS
691
695
LDFLAGS
736
740
REPLACE_GETCWD
737
741
REPLACE_LCHOWN
738
742
REPLACE_LSEEK
 
743
LIB_CLOCK_GETTIME
739
744
INCLUDE_NEXT
740
745
NEXT_DIRENT_H
741
746
DIRENT_H
786
791
HAVE_DECL_GETLINE
787
792
REPLACE_GETLINE
788
793
FNMATCH_H
 
794
STDBOOL_H
 
795
HAVE__BOOL
 
796
YACC
 
797
YFLAGS
789
798
GETOPT_H
790
799
LIBINTL
791
800
LTLIBINTL
792
 
STDBOOL_H
793
 
HAVE__BOOL
 
801
NEXT_SYS_TIME_H
 
802
HAVE_SYS_TIME_H
 
803
HAVE_STRUCT_TIMEVAL
 
804
REPLACE_GETTIMEOFDAY
 
805
SYS_TIME_H
794
806
HAVE_LONG_LONG_INT
795
807
HAVE_UNSIGNED_LONG_LONG_INT
796
808
HAVE_INTTYPES_H
888
900
HAVE_DECL_STRTOK_R
889
901
HAVE_DECL_STRERROR
890
902
REPLACE_STRERROR
 
903
REPLACE_MEMMEM
891
904
NEXT_STDIO_H
892
905
NEXT_STDLIB_H
893
906
NEXT_STRING_H
916
929
NEXT_WCTYPE_H
917
930
HAVE_WCTYPE_H
918
931
WCTYPE_H
 
932
LOCALE_FR_UTF8
 
933
LOCALE_TR_UTF8
 
934
LOCALE_ZH_CN
919
935
LIBGNULIB_LIBDEPS
920
936
LIBGNULIB_LTLIBDEPS
 
937
LIBTESTS_LIBDEPS
921
938
MKINSTALLDIRS
922
939
CROSS_COMPILING_TRUE
923
940
CROSS_COMPILING_FALSE
 
941
FINDLIBS
924
942
LIBOBJS
925
943
FINDLIBOBJS
926
944
SORT
927
945
SORT_SUPPORTS_Z
 
946
HAVE_ATTRIBUTE_NORETURN
928
947
USE_NLS
929
948
GETTEXT_MACRO_VERSION
930
949
MSGFMT
942
961
POSUB
943
962
LTLIBOBJS
944
963
gl_LIBOBJS
945
 
gl_LTLIBOBJS'
 
964
gl_LTLIBOBJS
 
965
gltests_LIBOBJS
 
966
gltests_LTLIBOBJS'
946
967
ac_subst_files=''
947
968
      ac_precious_vars='build_alias
948
969
host_alias
949
970
target_alias
 
971
DEFAULT_ARG_SIZE
950
972
CC
951
973
CFLAGS
952
974
LDFLAGS
953
975
LIBS
954
976
CPPFLAGS
955
 
CPP'
 
977
CPP
 
978
YACC
 
979
YFLAGS'
956
980
 
957
981
 
958
982
# Initialize some variables set by options.
1455
1479
  # Omit some internal or obsolete options to make the list less imposing.
1456
1480
  # This message is too long to be a string in the A/UX 3.1 sh.
1457
1481
  cat <<_ACEOF
1458
 
\`configure' configures GNU findutils 4.2.32 to adapt to many kinds of systems.
 
1482
\`configure' configures GNU findutils 4.4.0 to adapt to many kinds of systems.
1459
1483
 
1460
1484
Usage: $0 [OPTION]... [VAR=VALUE]...
1461
1485
 
1525
1549
 
1526
1550
if test -n "$ac_init_help"; then
1527
1551
  case $ac_init_help in
1528
 
     short | recursive ) echo "Configuration of GNU findutils 4.2.32:";;
 
1552
     short | recursive ) echo "Configuration of GNU findutils 4.4.0:";;
1529
1553
   esac
1530
1554
  cat <<\_ACEOF
1531
1555
 
1547
1571
  --disable-dependency-tracking  speeds up one-time build
1548
1572
  --enable-dependency-tracking   do not reject slow dependency extractors
1549
1573
  --disable-largefile     omit support for large files
 
1574
  --disable-assert        turn off assertions
1550
1575
  --disable-nls           do not use Native Language Support
1551
1576
  --disable-rpath         do not hardcode runtime library paths
1552
1577
 
1553
1578
Optional Packages:
1554
1579
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1555
1580
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1581
  --without-fts           Use an older mechanism for searching the filesystem, instead of using fts()
1556
1582
  --without-included-regex
1557
1583
                          don't compile regex; this is the default on 32-bit
1558
1584
                          systems with recent-enough versions of the GNU C
1567
1593
  --without-libintl-prefix     don't search for libintl in includedir and libdir
1568
1594
 
1569
1595
Some influential environment variables:
 
1596
  DEFAULT_ARG_SIZE
 
1597
              Default size of arguments to child processes of find and xargs,
 
1598
              128k if unspecified
1570
1599
  CC          C compiler command
1571
1600
  CFLAGS      C compiler flags
1572
1601
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1575
1604
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1576
1605
              you have headers in a nonstandard directory <include dir>
1577
1606
  CPP         C preprocessor
 
1607
  YACC        The `Yet Another C Compiler' implementation to use. Defaults to
 
1608
              `bison -y'. Values other than `bison -y' will most likely break
 
1609
              on most systems.
 
1610
  YFLAGS      YFLAGS contains the list arguments that will be passed by
 
1611
              default to Bison. This script will default YFLAGS to the empty
 
1612
              string to avoid a default value of `-d' given by some make
 
1613
              applications.
1578
1614
 
1579
1615
Use these variables to override the choices made by `configure' or to help
1580
1616
it to find libraries and programs with nonstandard names/locations.
1640
1676
test -n "$ac_init_help" && exit $ac_status
1641
1677
if $ac_init_version; then
1642
1678
  cat <<\_ACEOF
1643
 
GNU findutils configure 4.2.32
 
1679
GNU findutils configure 4.4.0
1644
1680
generated by GNU Autoconf 2.61
1645
1681
 
1646
1682
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1654
1690
This file contains any messages produced by compilers while
1655
1691
running configure, to aid debugging if configure makes a mistake.
1656
1692
 
1657
 
It was created by GNU findutils $as_me 4.2.32, which was
 
1693
It was created by GNU findutils $as_me 4.4.0, which was
1658
1694
generated by GNU Autoconf 2.61.  Invocation command line was
1659
1695
 
1660
1696
  $ $0 $@
1951
1987
gl_func_list="$gl_func_list fpurge"
1952
1988
gl_func_list="$gl_func_list __fpurge"
1953
1989
gl_func_list="$gl_func_list __freading"
 
1990
gl_func_list="$gl_func_list lchmod"
 
1991
gl_func_list="$gl_func_list fdopendir"
 
1992
gl_func_list="$gl_func_list gettimeofday"
 
1993
gl_func_list="$gl_func_list nanotime"
 
1994
gl_header_list="$gl_header_list sys/time.h"
1954
1995
gl_header_list="$gl_header_list stdint.h"
1955
1996
gl_header_list="$gl_header_list wchar.h"
1956
1997
gl_header_list="$gl_header_list inttypes.h"
1957
1998
gl_func_list="$gl_func_list alarm"
1958
1999
gl_header_list="$gl_header_list sys/statvfs.h"
1959
 
gl_func_list="$gl_func_list lchmod"
1960
 
gl_func_list="$gl_func_list fdopendir"
1961
2000
gl_func_list="$gl_func_list mbsinit"
1962
2001
gl_header_list="$gl_header_list locale.h"
1963
2002
gl_func_list="$gl_func_list mbrtowc"
1964
2003
gl_func_list="$gl_func_list wcrtomb"
1965
2004
gl_func_list="$gl_func_list wcscoll"
1966
2005
gl_func_list="$gl_func_list pathconf"
 
2006
gl_func_list="$gl_func_list setenv"
1967
2007
gl_header_list="$gl_header_list stdio.h"
1968
2008
gl_header_list="$gl_header_list stdlib.h"
1969
2009
gl_func_list="$gl_func_list mblen"
1973
2013
gl_func_list="$gl_func_list lstat"
1974
2014
gl_header_list="$gl_header_list sys/stat.h"
1975
2015
gl_header_list="$gl_header_list time.h"
1976
 
gl_header_list="$gl_header_list sys/time.h"
1977
2016
gl_func_list="$gl_func_list pipe"
1978
2017
gl_func_list="$gl_func_list iswcntrl"
 
2018
gl_func_list="$gl_func_list wcwidth"
1979
2019
gt_needs="$gt_needs "
1980
2020
# Check that the precious variables saved in the cache have kept the same
1981
2021
# value.
2057
2097
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2058
2098
 
2059
2099
 
2060
 
am__api_version='1.10'
2061
 
 
2062
2100
ac_aux_dir=
2063
 
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
 
2101
for ac_dir in build-aux "$srcdir"/build-aux; do
2064
2102
  if test -f "$ac_dir/install-sh"; then
2065
2103
    ac_aux_dir=$ac_dir
2066
2104
    ac_install_sh="$ac_aux_dir/install-sh -c"
2076
2114
  fi
2077
2115
done
2078
2116
if test -z "$ac_aux_dir"; then
2079
 
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2080
 
echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
 
2117
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&5
 
2118
echo "$as_me: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&2;}
2081
2119
   { (exit 1); exit 1; }; }
2082
2120
fi
2083
2121
 
2090
2128
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2091
2129
 
2092
2130
 
 
2131
am__api_version='1.10'
 
2132
 
2093
2133
# Find a good install program.  We prefer a C program (faster),
2094
2134
# so one script is as good as another.  But avoid the broken or
2095
2135
# incompatible versions:
2394
2434
 
2395
2435
# Define the identity of the package.
2396
2436
 PACKAGE='findutils'
2397
 
 VERSION='4.2.32'
 
2437
 VERSION='4.4.0'
2398
2438
 
2399
2439
 
2400
2440
cat >>confdefs.h <<_ACEOF
2629
2669
 
2630
2670
 
2631
2671
 
2632
 
ALL_LINGUAS="be bg ca da de el eo es et fi fr ga gl hr hu id it ja ko lg ms nl pl pt pt_BR ro ru sk sl sr sv tr vi zh_CN zh_TW rw"
 
2672
ALL_LINGUAS="be bg ca da de el eo es et fi fr ga gl hr hu id it ja ko lg ms nl pl pt pt_BR ro ru rw sk sl sr sv tr uk vi zh_CN zh_TW"
 
2673
 
 
2674
AUXDIR=$ac_aux_dir
 
2675
 
 
2676
 
 
2677
# Check whether --with-fts was given.
 
2678
if test "${with_fts+set}" = set; then
 
2679
  withval=$with_fts; with_fts=$withval
 
2680
fi
 
2681
 
 
2682
  case $with_fts in
 
2683
        yes|no) ;;
 
2684
        '')     with_fts=yes ;;
 
2685
        *) { { echo "$as_me:$LINENO: error: Invalid value for --with-fts: $with_fts" >&5
 
2686
echo "$as_me: error: Invalid value for --with-fts: $with_fts" >&2;}
 
2687
   { (exit 1); exit 1; }; }
 
2688
  esac
 
2689
   if test x"${with_fts-no}" != xno; then
 
2690
  WITH_FTS_TRUE=
 
2691
  WITH_FTS_FALSE='#'
 
2692
else
 
2693
  WITH_FTS_TRUE='#'
 
2694
  WITH_FTS_FALSE=
 
2695
fi
 
2696
 
 
2697
  if test x"${with_fts-no}" != xno ; then
 
2698
 
 
2699
cat >>confdefs.h <<\_ACEOF
 
2700
#define WITH_FTS 1
 
2701
_ACEOF
 
2702
 
 
2703
  fi
 
2704
 
2633
2705
 
2634
2706
# Check whether --enable-id-cache was given.
2635
2707
if test "${enable_id_cache+set}" = set; then
2708
2780
fi
2709
2781
 
2710
2782
 
 
2783
if test -n "$DEFAULT_ARG_SIZE"; then
 
2784
 
 
2785
cat >>confdefs.h <<_ACEOF
 
2786
#define DEFAULT_ARG_SIZE $DEFAULT_ARG_SIZE
 
2787
_ACEOF
 
2788
 
 
2789
fi
 
2790
 
 
2791
 
2711
2792
 
2712
2793
ac_ext=c
2713
2794
ac_cpp='$CPP $CPPFLAGS'
4125
4206
  RANLIB="$ac_cv_prog_RANLIB"
4126
4207
fi
4127
4208
 
 
4209
if test "x$CC" != xcc; then
 
4210
  { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
 
4211
echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
 
4212
else
 
4213
  { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
 
4214
echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
 
4215
fi
 
4216
set dummy $CC; ac_cc=`echo $2 |
 
4217
                      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
 
4218
if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
 
4219
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4220
else
 
4221
  cat >conftest.$ac_ext <<_ACEOF
 
4222
/* confdefs.h.  */
 
4223
_ACEOF
 
4224
cat confdefs.h >>conftest.$ac_ext
 
4225
cat >>conftest.$ac_ext <<_ACEOF
 
4226
/* end confdefs.h.  */
 
4227
 
 
4228
int
 
4229
main ()
 
4230
{
 
4231
 
 
4232
  ;
 
4233
  return 0;
 
4234
}
 
4235
_ACEOF
 
4236
# Make sure it works both with $CC and with simple cc.
 
4237
# We do the test twice because some compilers refuse to overwrite an
 
4238
# existing .o file with -o, though they will create one.
 
4239
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
 
4240
rm -f conftest2.*
 
4241
if { (case "(($ac_try" in
 
4242
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4243
  *) ac_try_echo=$ac_try;;
 
4244
esac
 
4245
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4246
  (eval "$ac_try") 2>&5
 
4247
  ac_status=$?
 
4248
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4249
  (exit $ac_status); } &&
 
4250
   test -f conftest2.$ac_objext && { (case "(($ac_try" in
 
4251
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4252
  *) ac_try_echo=$ac_try;;
 
4253
esac
 
4254
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4255
  (eval "$ac_try") 2>&5
 
4256
  ac_status=$?
 
4257
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4258
  (exit $ac_status); };
 
4259
then
 
4260
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
 
4261
  if test "x$CC" != xcc; then
 
4262
    # Test first that cc exists at all.
 
4263
    if { ac_try='cc -c conftest.$ac_ext >&5'
 
4264
  { (case "(($ac_try" in
 
4265
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4266
  *) ac_try_echo=$ac_try;;
 
4267
esac
 
4268
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4269
  (eval "$ac_try") 2>&5
 
4270
  ac_status=$?
 
4271
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4272
  (exit $ac_status); }; }; then
 
4273
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
 
4274
      rm -f conftest2.*
 
4275
      if { (case "(($ac_try" in
 
4276
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4277
  *) ac_try_echo=$ac_try;;
 
4278
esac
 
4279
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4280
  (eval "$ac_try") 2>&5
 
4281
  ac_status=$?
 
4282
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4283
  (exit $ac_status); } &&
 
4284
         test -f conftest2.$ac_objext && { (case "(($ac_try" in
 
4285
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4286
  *) ac_try_echo=$ac_try;;
 
4287
esac
 
4288
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4289
  (eval "$ac_try") 2>&5
 
4290
  ac_status=$?
 
4291
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4292
  (exit $ac_status); };
 
4293
      then
 
4294
        # cc works too.
 
4295
        :
 
4296
      else
 
4297
        # cc exists but doesn't like -o.
 
4298
        eval ac_cv_prog_cc_${ac_cc}_c_o=no
 
4299
      fi
 
4300
    fi
 
4301
  fi
 
4302
else
 
4303
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
 
4304
fi
 
4305
rm -f core conftest*
 
4306
 
 
4307
fi
 
4308
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
 
4309
  { echo "$as_me:$LINENO: result: yes" >&5
 
4310
echo "${ECHO_T}yes" >&6; }
 
4311
else
 
4312
  { echo "$as_me:$LINENO: result: no" >&5
 
4313
echo "${ECHO_T}no" >&6; }
 
4314
 
 
4315
cat >>confdefs.h <<\_ACEOF
 
4316
#define NO_MINUS_C_MINUS_O 1
 
4317
_ACEOF
 
4318
 
 
4319
fi
 
4320
 
 
4321
# FIXME: we rely on the cache variable name because
 
4322
# there is no other way.
 
4323
set dummy $CC
 
4324
ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
 
4325
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
 
4326
   # Losing compiler, so override with the script.
 
4327
   # FIXME: It is wrong to rewrite CC.
 
4328
   # But if we don't then we get into trouble of one sort or another.
 
4329
   # A longer-term fix would be to have automake use am__CC in this case,
 
4330
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
 
4331
   CC="$am_aux_dir/compile $CC"
 
4332
fi
 
4333
 
 
4334
 
4128
4335
 
4129
4336
cat >>confdefs.h <<\_ACEOF
4130
4337
#define _GNU_SOURCE 1
4894
5101
 
4895
5102
fi
4896
5103
 
 
5104
   case $ac_cv_prog_cc_stdc in
 
5105
  no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
 
5106
  *) { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
 
5107
echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
 
5108
if test "${ac_cv_prog_cc_c99+set}" = set; then
 
5109
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5110
else
 
5111
  ac_cv_prog_cc_c99=no
 
5112
ac_save_CC=$CC
 
5113
cat >conftest.$ac_ext <<_ACEOF
 
5114
/* confdefs.h.  */
 
5115
_ACEOF
 
5116
cat confdefs.h >>conftest.$ac_ext
 
5117
cat >>conftest.$ac_ext <<_ACEOF
 
5118
/* end confdefs.h.  */
 
5119
#include <stdarg.h>
 
5120
#include <stdbool.h>
 
5121
#include <stdlib.h>
 
5122
#include <wchar.h>
 
5123
#include <stdio.h>
 
5124
 
 
5125
// Check varargs macros.  These examples are taken from C99 6.10.3.5.
 
5126
#define debug(...) fprintf (stderr, __VA_ARGS__)
 
5127
#define showlist(...) puts (#__VA_ARGS__)
 
5128
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
 
5129
static void
 
5130
test_varargs_macros (void)
 
5131
{
 
5132
  int x = 1234;
 
5133
  int y = 5678;
 
5134
  debug ("Flag");
 
5135
  debug ("X = %d\n", x);
 
5136
  showlist (The first, second, and third items.);
 
5137
  report (x>y, "x is %d but y is %d", x, y);
 
5138
}
 
5139
 
 
5140
// Check long long types.
 
5141
#define BIG64 18446744073709551615ull
 
5142
#define BIG32 4294967295ul
 
5143
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
 
5144
#if !BIG_OK
 
5145
  your preprocessor is broken;
 
5146
#endif
 
5147
#if BIG_OK
 
5148
#else
 
5149
  your preprocessor is broken;
 
5150
#endif
 
5151
static long long int bignum = -9223372036854775807LL;
 
5152
static unsigned long long int ubignum = BIG64;
 
5153
 
 
5154
struct incomplete_array
 
5155
{
 
5156
  int datasize;
 
5157
  double data[];
 
5158
};
 
5159
 
 
5160
struct named_init {
 
5161
  int number;
 
5162
  const wchar_t *name;
 
5163
  double average;
 
5164
};
 
5165
 
 
5166
typedef const char *ccp;
 
5167
 
 
5168
static inline int
 
5169
test_restrict (ccp restrict text)
 
5170
{
 
5171
  // See if C++-style comments work.
 
5172
  // Iterate through items via the restricted pointer.
 
5173
  // Also check for declarations in for loops.
 
5174
  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
 
5175
    continue;
 
5176
  return 0;
 
5177
}
 
5178
 
 
5179
// Check varargs and va_copy.
 
5180
static void
 
5181
test_varargs (const char *format, ...)
 
5182
{
 
5183
  va_list args;
 
5184
  va_start (args, format);
 
5185
  va_list args_copy;
 
5186
  va_copy (args_copy, args);
 
5187
 
 
5188
  const char *str;
 
5189
  int number;
 
5190
  float fnumber;
 
5191
 
 
5192
  while (*format)
 
5193
    {
 
5194
      switch (*format++)
 
5195
        {
 
5196
        case 's': // string
 
5197
          str = va_arg (args_copy, const char *);
 
5198
          break;
 
5199
        case 'd': // int
 
5200
          number = va_arg (args_copy, int);
 
5201
          break;
 
5202
        case 'f': // float
 
5203
          fnumber = va_arg (args_copy, double);
 
5204
          break;
 
5205
        default:
 
5206
          break;
 
5207
        }
 
5208
    }
 
5209
  va_end (args_copy);
 
5210
  va_end (args);
 
5211
}
 
5212
 
 
5213
int
 
5214
main ()
 
5215
{
 
5216
 
 
5217
  // Check bool.
 
5218
  _Bool success = false;
 
5219
 
 
5220
  // Check restrict.
 
5221
  if (test_restrict ("String literal") == 0)
 
5222
    success = true;
 
5223
  char *restrict newvar = "Another string";
 
5224
 
 
5225
  // Check varargs.
 
5226
  test_varargs ("s, d' f .", "string", 65, 34.234);
 
5227
  test_varargs_macros ();
 
5228
 
 
5229
  // Check flexible array members.
 
5230
  struct incomplete_array *ia =
 
5231
    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
 
5232
  ia->datasize = 10;
 
5233
  for (int i = 0; i < ia->datasize; ++i)
 
5234
    ia->data[i] = i * 1.234;
 
5235
 
 
5236
  // Check named initializers.
 
5237
  struct named_init ni = {
 
5238
    .number = 34,
 
5239
    .name = L"Test wide string",
 
5240
    .average = 543.34343,
 
5241
  };
 
5242
 
 
5243
  ni.number = 58;
 
5244
 
 
5245
  int dynamic_array[ni.number];
 
5246
  dynamic_array[ni.number - 1] = 543;
 
5247
 
 
5248
  // work around unused variable warnings
 
5249
  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
 
5250
          || dynamic_array[ni.number - 1] != 543);
 
5251
 
 
5252
  ;
 
5253
  return 0;
 
5254
}
 
5255
_ACEOF
 
5256
for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
 
5257
do
 
5258
  CC="$ac_save_CC $ac_arg"
 
5259
  rm -f conftest.$ac_objext
 
5260
if { (ac_try="$ac_compile"
 
5261
case "(($ac_try" in
 
5262
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5263
  *) ac_try_echo=$ac_try;;
 
5264
esac
 
5265
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5266
  (eval "$ac_compile") 2>conftest.er1
 
5267
  ac_status=$?
 
5268
  grep -v '^ *+' conftest.er1 >conftest.err
 
5269
  rm -f conftest.er1
 
5270
  cat conftest.err >&5
 
5271
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5272
  (exit $ac_status); } && {
 
5273
         test -z "$ac_c_werror_flag" ||
 
5274
         test ! -s conftest.err
 
5275
       } && test -s conftest.$ac_objext; then
 
5276
  ac_cv_prog_cc_c99=$ac_arg
 
5277
else
 
5278
  echo "$as_me: failed program was:" >&5
 
5279
sed 's/^/| /' conftest.$ac_ext >&5
 
5280
 
 
5281
 
 
5282
fi
 
5283
 
 
5284
rm -f core conftest.err conftest.$ac_objext
 
5285
  test "x$ac_cv_prog_cc_c99" != "xno" && break
 
5286
done
 
5287
rm -f conftest.$ac_ext
 
5288
CC=$ac_save_CC
 
5289
 
 
5290
fi
 
5291
# AC_CACHE_VAL
 
5292
case "x$ac_cv_prog_cc_c99" in
 
5293
  x)
 
5294
    { echo "$as_me:$LINENO: result: none needed" >&5
 
5295
echo "${ECHO_T}none needed" >&6; } ;;
 
5296
  xno)
 
5297
    { echo "$as_me:$LINENO: result: unsupported" >&5
 
5298
echo "${ECHO_T}unsupported" >&6; } ;;
 
5299
  *)
 
5300
    CC="$CC $ac_cv_prog_cc_c99"
 
5301
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
 
5302
echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
 
5303
esac
 
5304
if test "x$ac_cv_prog_cc_c99" != xno; then
 
5305
  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
 
5306
else
 
5307
  { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
 
5308
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
 
5309
if test "${ac_cv_prog_cc_c89+set}" = set; then
 
5310
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5311
else
 
5312
  ac_cv_prog_cc_c89=no
 
5313
ac_save_CC=$CC
 
5314
cat >conftest.$ac_ext <<_ACEOF
 
5315
/* confdefs.h.  */
 
5316
_ACEOF
 
5317
cat confdefs.h >>conftest.$ac_ext
 
5318
cat >>conftest.$ac_ext <<_ACEOF
 
5319
/* end confdefs.h.  */
 
5320
#include <stdarg.h>
 
5321
#include <stdio.h>
 
5322
#include <sys/types.h>
 
5323
#include <sys/stat.h>
 
5324
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
5325
struct buf { int x; };
 
5326
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
5327
static char *e (p, i)
 
5328
     char **p;
 
5329
     int i;
 
5330
{
 
5331
  return p[i];
 
5332
}
 
5333
static char *f (char * (*g) (char **, int), char **p, ...)
 
5334
{
 
5335
  char *s;
 
5336
  va_list v;
 
5337
  va_start (v,p);
 
5338
  s = g (p, va_arg (v,int));
 
5339
  va_end (v);
 
5340
  return s;
 
5341
}
 
5342
 
 
5343
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
5344
   function prototypes and stuff, but not '\xHH' hex character constants.
 
5345
   These don't provoke an error unfortunately, instead are silently treated
 
5346
   as 'x'.  The following induces an error, until -std is added to get
 
5347
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
5348
   array size at least.  It's necessary to write '\x00'==0 to get something
 
5349
   that's true only with -std.  */
 
5350
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
5351
 
 
5352
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
5353
   inside strings and character constants.  */
 
5354
#define FOO(x) 'x'
 
5355
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
5356
 
 
5357
int test (int i, double x);
 
5358
struct s1 {int (*f) (int a);};
 
5359
struct s2 {int (*f) (double a);};
 
5360
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
5361
int argc;
 
5362
char **argv;
 
5363
int
 
5364
main ()
 
5365
{
 
5366
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
5367
  ;
 
5368
  return 0;
 
5369
}
 
5370
_ACEOF
 
5371
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
5372
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
5373
do
 
5374
  CC="$ac_save_CC $ac_arg"
 
5375
  rm -f conftest.$ac_objext
 
5376
if { (ac_try="$ac_compile"
 
5377
case "(($ac_try" in
 
5378
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5379
  *) ac_try_echo=$ac_try;;
 
5380
esac
 
5381
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5382
  (eval "$ac_compile") 2>conftest.er1
 
5383
  ac_status=$?
 
5384
  grep -v '^ *+' conftest.er1 >conftest.err
 
5385
  rm -f conftest.er1
 
5386
  cat conftest.err >&5
 
5387
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5388
  (exit $ac_status); } && {
 
5389
         test -z "$ac_c_werror_flag" ||
 
5390
         test ! -s conftest.err
 
5391
       } && test -s conftest.$ac_objext; then
 
5392
  ac_cv_prog_cc_c89=$ac_arg
 
5393
else
 
5394
  echo "$as_me: failed program was:" >&5
 
5395
sed 's/^/| /' conftest.$ac_ext >&5
 
5396
 
 
5397
 
 
5398
fi
 
5399
 
 
5400
rm -f core conftest.err conftest.$ac_objext
 
5401
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
5402
done
 
5403
rm -f conftest.$ac_ext
 
5404
CC=$ac_save_CC
 
5405
 
 
5406
fi
 
5407
# AC_CACHE_VAL
 
5408
case "x$ac_cv_prog_cc_c89" in
 
5409
  x)
 
5410
    { echo "$as_me:$LINENO: result: none needed" >&5
 
5411
echo "${ECHO_T}none needed" >&6; } ;;
 
5412
  xno)
 
5413
    { echo "$as_me:$LINENO: result: unsupported" >&5
 
5414
echo "${ECHO_T}unsupported" >&6; } ;;
 
5415
  *)
 
5416
    CC="$CC $ac_cv_prog_cc_c89"
 
5417
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
 
5418
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
 
5419
esac
 
5420
if test "x$ac_cv_prog_cc_c89" != xno; then
 
5421
  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
 
5422
else
 
5423
  ac_cv_prog_cc_stdc=no
 
5424
fi
 
5425
 
 
5426
 
 
5427
fi
 
5428
 
 
5429
 ;;
 
5430
esac
 
5431
  { echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
 
5432
echo $ECHO_N "checking for $CC option to accept ISO Standard C... $ECHO_C" >&6; }
 
5433
  if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
5434
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5435
fi
 
5436
 
 
5437
  case $ac_cv_prog_cc_stdc in
 
5438
  no) { echo "$as_me:$LINENO: result: unsupported" >&5
 
5439
echo "${ECHO_T}unsupported" >&6; } ;;
 
5440
  '') { echo "$as_me:$LINENO: result: none needed" >&5
 
5441
echo "${ECHO_T}none needed" >&6; } ;;
 
5442
  *) { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
5443
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6; } ;;
 
5444
esac
 
5445
 
 
5446
 
 
5447
 
 
5448
 
4897
5449
 
4898
5450
 
4899
5451
 
6727
7279
 
6728
7280
  fi
6729
7281
 
 
7282
{ echo "$as_me:$LINENO: checking for inline" >&5
 
7283
echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
 
7284
if test "${ac_cv_c_inline+set}" = set; then
 
7285
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7286
else
 
7287
  ac_cv_c_inline=no
 
7288
for ac_kw in inline __inline__ __inline; do
 
7289
  cat >conftest.$ac_ext <<_ACEOF
 
7290
/* confdefs.h.  */
 
7291
_ACEOF
 
7292
cat confdefs.h >>conftest.$ac_ext
 
7293
cat >>conftest.$ac_ext <<_ACEOF
 
7294
/* end confdefs.h.  */
 
7295
#ifndef __cplusplus
 
7296
typedef int foo_t;
 
7297
static $ac_kw foo_t static_foo () {return 0; }
 
7298
$ac_kw foo_t foo () {return 0; }
 
7299
#endif
 
7300
 
 
7301
_ACEOF
 
7302
rm -f conftest.$ac_objext
 
7303
if { (ac_try="$ac_compile"
 
7304
case "(($ac_try" in
 
7305
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7306
  *) ac_try_echo=$ac_try;;
 
7307
esac
 
7308
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7309
  (eval "$ac_compile") 2>conftest.er1
 
7310
  ac_status=$?
 
7311
  grep -v '^ *+' conftest.er1 >conftest.err
 
7312
  rm -f conftest.er1
 
7313
  cat conftest.err >&5
 
7314
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7315
  (exit $ac_status); } && {
 
7316
         test -z "$ac_c_werror_flag" ||
 
7317
         test ! -s conftest.err
 
7318
       } && test -s conftest.$ac_objext; then
 
7319
  ac_cv_c_inline=$ac_kw
 
7320
else
 
7321
  echo "$as_me: failed program was:" >&5
 
7322
sed 's/^/| /' conftest.$ac_ext >&5
 
7323
 
 
7324
 
 
7325
fi
 
7326
 
 
7327
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7328
  test "$ac_cv_c_inline" != no && break
 
7329
done
 
7330
 
 
7331
fi
 
7332
{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
 
7333
echo "${ECHO_T}$ac_cv_c_inline" >&6; }
 
7334
 
 
7335
 
 
7336
case $ac_cv_c_inline in
 
7337
  inline | yes) ;;
 
7338
  *)
 
7339
    case $ac_cv_c_inline in
 
7340
      no) ac_val=;;
 
7341
      *) ac_val=$ac_cv_c_inline;;
 
7342
    esac
 
7343
    cat >>confdefs.h <<_ACEOF
 
7344
#ifndef __cplusplus
 
7345
#define inline $ac_val
 
7346
#endif
 
7347
_ACEOF
 
7348
    ;;
 
7349
esac
 
7350
 
6730
7351
 
6731
7352
    { echo "$as_me:$LINENO: checking whether system is Windows or MSDOS" >&5
6732
7353
echo $ECHO_N "checking whether system is Windows or MSDOS... $ECHO_C" >&6; }
7688
8309
echo "${ECHO_T}$gl_cv_var_stdin_large_offset" >&6; }
7689
8310
 
7690
8311
 
 
8312
 
 
8313
 
 
8314
 
 
8315
 
 
8316
 
 
8317
 
 
8318
 
 
8319
 
 
8320
 
 
8321
 
 
8322
 
 
8323
 
7691
8324
   { echo "$as_me:$LINENO: checking whether getcwd (NULL, 0) allocates memory for result" >&5
7692
8325
echo $ECHO_N "checking whether getcwd (NULL, 0) allocates memory for result... $ECHO_C" >&6; }
7693
8326
if test "${gl_cv_func_getcwd_null+set}" = set; then
7827
8460
 
7828
8461
 
7829
8462
 
7830
 
 
7831
 
      { echo "$as_me:$LINENO: checking whether getdelim is declared" >&5
7832
 
echo $ECHO_N "checking whether getdelim is declared... $ECHO_C" >&6; }
7833
 
if test "${ac_cv_have_decl_getdelim+set}" = set; then
7834
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7835
 
else
7836
 
  cat >conftest.$ac_ext <<_ACEOF
7837
 
/* confdefs.h.  */
7838
 
_ACEOF
7839
 
cat confdefs.h >>conftest.$ac_ext
7840
 
cat >>conftest.$ac_ext <<_ACEOF
7841
 
/* end confdefs.h.  */
7842
 
$ac_includes_default
7843
 
int
7844
 
main ()
7845
 
{
7846
 
#ifndef getdelim
7847
 
  (void) getdelim;
7848
 
#endif
7849
 
 
7850
 
  ;
7851
 
  return 0;
7852
 
}
7853
 
_ACEOF
7854
 
rm -f conftest.$ac_objext
7855
 
if { (ac_try="$ac_compile"
7856
 
case "(($ac_try" in
7857
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7858
 
  *) ac_try_echo=$ac_try;;
7859
 
esac
7860
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7861
 
  (eval "$ac_compile") 2>conftest.er1
7862
 
  ac_status=$?
7863
 
  grep -v '^ *+' conftest.er1 >conftest.err
7864
 
  rm -f conftest.er1
7865
 
  cat conftest.err >&5
7866
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867
 
  (exit $ac_status); } && {
7868
 
         test -z "$ac_c_werror_flag" ||
7869
 
         test ! -s conftest.err
7870
 
       } && test -s conftest.$ac_objext; then
7871
 
  ac_cv_have_decl_getdelim=yes
7872
 
else
7873
 
  echo "$as_me: failed program was:" >&5
7874
 
sed 's/^/| /' conftest.$ac_ext >&5
7875
 
 
7876
 
        ac_cv_have_decl_getdelim=no
7877
 
fi
7878
 
 
7879
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7880
 
fi
7881
 
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getdelim" >&5
7882
 
echo "${ECHO_T}$ac_cv_have_decl_getdelim" >&6; }
7883
 
if test $ac_cv_have_decl_getdelim = yes; then
7884
 
 
7885
 
cat >>confdefs.h <<_ACEOF
7886
 
#define HAVE_DECL_GETDELIM 1
7887
 
_ACEOF
7888
 
 
7889
 
 
7890
 
else
7891
 
  cat >>confdefs.h <<_ACEOF
7892
 
#define HAVE_DECL_GETDELIM 0
7893
 
_ACEOF
7894
 
 
7895
 
 
7896
 
fi
7897
 
 
7898
 
 
7899
 
 
7900
 
 
7901
 
      { echo "$as_me:$LINENO: checking whether getline is declared" >&5
7902
 
echo $ECHO_N "checking whether getline is declared... $ECHO_C" >&6; }
7903
 
if test "${ac_cv_have_decl_getline+set}" = set; then
7904
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7905
 
else
7906
 
  cat >conftest.$ac_ext <<_ACEOF
7907
 
/* confdefs.h.  */
7908
 
_ACEOF
7909
 
cat confdefs.h >>conftest.$ac_ext
7910
 
cat >>conftest.$ac_ext <<_ACEOF
7911
 
/* end confdefs.h.  */
7912
 
$ac_includes_default
7913
 
int
7914
 
main ()
7915
 
{
7916
 
#ifndef getline
7917
 
  (void) getline;
7918
 
#endif
7919
 
 
7920
 
  ;
7921
 
  return 0;
7922
 
}
7923
 
_ACEOF
7924
 
rm -f conftest.$ac_objext
7925
 
if { (ac_try="$ac_compile"
7926
 
case "(($ac_try" in
7927
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7928
 
  *) ac_try_echo=$ac_try;;
7929
 
esac
7930
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7931
 
  (eval "$ac_compile") 2>conftest.er1
7932
 
  ac_status=$?
7933
 
  grep -v '^ *+' conftest.er1 >conftest.err
7934
 
  rm -f conftest.er1
7935
 
  cat conftest.err >&5
7936
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937
 
  (exit $ac_status); } && {
7938
 
         test -z "$ac_c_werror_flag" ||
7939
 
         test ! -s conftest.err
7940
 
       } && test -s conftest.$ac_objext; then
7941
 
  ac_cv_have_decl_getline=yes
7942
 
else
7943
 
  echo "$as_me: failed program was:" >&5
7944
 
sed 's/^/| /' conftest.$ac_ext >&5
7945
 
 
7946
 
        ac_cv_have_decl_getline=no
7947
 
fi
7948
 
 
7949
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7950
 
fi
7951
 
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getline" >&5
7952
 
echo "${ECHO_T}$ac_cv_have_decl_getline" >&6; }
7953
 
if test $ac_cv_have_decl_getline = yes; then
7954
 
 
7955
 
cat >>confdefs.h <<_ACEOF
7956
 
#define HAVE_DECL_GETLINE 1
7957
 
_ACEOF
7958
 
 
7959
 
 
7960
 
else
7961
 
  cat >>confdefs.h <<_ACEOF
7962
 
#define HAVE_DECL_GETLINE 0
7963
 
_ACEOF
7964
 
 
7965
 
 
7966
 
fi
7967
 
 
7968
 
 
7969
 
 
7970
 
 
7971
 
  if test -z "$GETOPT_H"; then
7972
 
 
7973
 
for ac_header in getopt.h
7974
 
do
7975
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7976
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7977
 
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
7978
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7979
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7980
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7981
 
fi
7982
 
ac_res=`eval echo '${'$as_ac_Header'}'`
7983
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
7984
 
echo "${ECHO_T}$ac_res" >&6; }
7985
 
else
7986
 
  # Is the header compilable?
7987
 
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7988
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7989
 
cat >conftest.$ac_ext <<_ACEOF
7990
 
/* confdefs.h.  */
7991
 
_ACEOF
7992
 
cat confdefs.h >>conftest.$ac_ext
7993
 
cat >>conftest.$ac_ext <<_ACEOF
7994
 
/* end confdefs.h.  */
7995
 
$ac_includes_default
7996
 
#include <$ac_header>
7997
 
_ACEOF
7998
 
rm -f conftest.$ac_objext
7999
 
if { (ac_try="$ac_compile"
8000
 
case "(($ac_try" in
8001
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8002
 
  *) ac_try_echo=$ac_try;;
8003
 
esac
8004
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8005
 
  (eval "$ac_compile") 2>conftest.er1
8006
 
  ac_status=$?
8007
 
  grep -v '^ *+' conftest.er1 >conftest.err
8008
 
  rm -f conftest.er1
8009
 
  cat conftest.err >&5
8010
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011
 
  (exit $ac_status); } && {
8012
 
         test -z "$ac_c_werror_flag" ||
8013
 
         test ! -s conftest.err
8014
 
       } && test -s conftest.$ac_objext; then
8015
 
  ac_header_compiler=yes
8016
 
else
8017
 
  echo "$as_me: failed program was:" >&5
8018
 
sed 's/^/| /' conftest.$ac_ext >&5
8019
 
 
8020
 
        ac_header_compiler=no
8021
 
fi
8022
 
 
8023
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8024
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8025
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
8026
 
 
8027
 
# Is the header present?
8028
 
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8029
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8030
 
cat >conftest.$ac_ext <<_ACEOF
8031
 
/* confdefs.h.  */
8032
 
_ACEOF
8033
 
cat confdefs.h >>conftest.$ac_ext
8034
 
cat >>conftest.$ac_ext <<_ACEOF
8035
 
/* end confdefs.h.  */
8036
 
#include <$ac_header>
8037
 
_ACEOF
8038
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
8039
 
case "(($ac_try" in
8040
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8041
 
  *) ac_try_echo=$ac_try;;
8042
 
esac
8043
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8044
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8045
 
  ac_status=$?
8046
 
  grep -v '^ *+' conftest.er1 >conftest.err
8047
 
  rm -f conftest.er1
8048
 
  cat conftest.err >&5
8049
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050
 
  (exit $ac_status); } >/dev/null && {
8051
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8052
 
         test ! -s conftest.err
8053
 
       }; then
8054
 
  ac_header_preproc=yes
8055
 
else
8056
 
  echo "$as_me: failed program was:" >&5
8057
 
sed 's/^/| /' conftest.$ac_ext >&5
8058
 
 
8059
 
  ac_header_preproc=no
8060
 
fi
8061
 
 
8062
 
rm -f conftest.err conftest.$ac_ext
8063
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8064
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
8065
 
 
8066
 
# So?  What about this header?
8067
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8068
 
  yes:no: )
8069
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8070
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8071
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8072
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8073
 
    ac_header_preproc=yes
8074
 
    ;;
8075
 
  no:yes:* )
8076
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8077
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8078
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8079
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8080
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8081
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8082
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8083
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8084
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8085
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8086
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8087
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8088
 
    ( cat <<\_ASBOX
8089
 
## ------------------------------------ ##
8090
 
## Report this to bug-findutils@gnu.org ##
8091
 
## ------------------------------------ ##
8092
 
_ASBOX
8093
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
8094
 
    ;;
8095
 
esac
8096
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8097
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8098
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8099
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8100
 
else
8101
 
  eval "$as_ac_Header=\$ac_header_preproc"
8102
 
fi
8103
 
ac_res=`eval echo '${'$as_ac_Header'}'`
8104
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
8105
 
echo "${ECHO_T}$ac_res" >&6; }
8106
 
 
8107
 
fi
8108
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
8109
 
  cat >>confdefs.h <<_ACEOF
8110
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8111
 
_ACEOF
8112
 
 
8113
 
else
8114
 
  GETOPT_H=getopt.h
8115
 
fi
8116
 
 
8117
 
done
8118
 
 
8119
 
  fi
8120
 
 
8121
 
  if test -z "$GETOPT_H"; then
8122
 
 
8123
 
for ac_func in getopt_long_only
8124
 
do
8125
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8126
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8127
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8128
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8129
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8130
 
else
8131
 
  cat >conftest.$ac_ext <<_ACEOF
8132
 
/* confdefs.h.  */
8133
 
_ACEOF
8134
 
cat confdefs.h >>conftest.$ac_ext
8135
 
cat >>conftest.$ac_ext <<_ACEOF
8136
 
/* end confdefs.h.  */
8137
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8138
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8139
 
#define $ac_func innocuous_$ac_func
8140
 
 
8141
 
/* System header to define __stub macros and hopefully few prototypes,
8142
 
    which can conflict with char $ac_func (); below.
8143
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8144
 
    <limits.h> exists even on freestanding compilers.  */
8145
 
 
8146
 
#ifdef __STDC__
8147
 
# include <limits.h>
8148
 
#else
8149
 
# include <assert.h>
8150
 
#endif
8151
 
 
8152
 
#undef $ac_func
8153
 
 
8154
 
/* Override any GCC internal prototype to avoid an error.
8155
 
   Use char because int might match the return type of a GCC
8156
 
   builtin and then its argument prototype would still apply.  */
8157
 
#ifdef __cplusplus
8158
 
extern "C"
8159
 
#endif
8160
 
char $ac_func ();
8161
 
/* The GNU C library defines this for functions which it implements
8162
 
    to always fail with ENOSYS.  Some functions are actually named
8163
 
    something starting with __ and the normal name is an alias.  */
8164
 
#if defined __stub_$ac_func || defined __stub___$ac_func
8165
 
choke me
8166
 
#endif
8167
 
 
8168
 
int
8169
 
main ()
8170
 
{
8171
 
return $ac_func ();
8172
 
  ;
8173
 
  return 0;
8174
 
}
8175
 
_ACEOF
8176
 
rm -f conftest.$ac_objext conftest$ac_exeext
8177
 
if { (ac_try="$ac_link"
8178
 
case "(($ac_try" in
8179
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8180
 
  *) ac_try_echo=$ac_try;;
8181
 
esac
8182
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8183
 
  (eval "$ac_link") 2>conftest.er1
8184
 
  ac_status=$?
8185
 
  grep -v '^ *+' conftest.er1 >conftest.err
8186
 
  rm -f conftest.er1
8187
 
  cat conftest.err >&5
8188
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189
 
  (exit $ac_status); } && {
8190
 
         test -z "$ac_c_werror_flag" ||
8191
 
         test ! -s conftest.err
8192
 
       } && test -s conftest$ac_exeext &&
8193
 
       $as_test_x conftest$ac_exeext; then
8194
 
  eval "$as_ac_var=yes"
8195
 
else
8196
 
  echo "$as_me: failed program was:" >&5
8197
 
sed 's/^/| /' conftest.$ac_ext >&5
8198
 
 
8199
 
        eval "$as_ac_var=no"
8200
 
fi
8201
 
 
8202
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8203
 
      conftest$ac_exeext conftest.$ac_ext
8204
 
fi
8205
 
ac_res=`eval echo '${'$as_ac_var'}'`
8206
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
8207
 
echo "${ECHO_T}$ac_res" >&6; }
8208
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
8209
 
  cat >>confdefs.h <<_ACEOF
8210
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8211
 
_ACEOF
8212
 
 
8213
 
else
8214
 
  GETOPT_H=getopt.h
8215
 
fi
8216
 
done
8217
 
 
8218
 
  fi
8219
 
 
8220
 
      if test -z "$GETOPT_H"; then
8221
 
    { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
8222
 
echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
8223
 
if test "${ac_cv_have_decl_optreset+set}" = set; then
8224
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8225
 
else
8226
 
  cat >conftest.$ac_ext <<_ACEOF
8227
 
/* confdefs.h.  */
8228
 
_ACEOF
8229
 
cat confdefs.h >>conftest.$ac_ext
8230
 
cat >>conftest.$ac_ext <<_ACEOF
8231
 
/* end confdefs.h.  */
8232
 
#include <getopt.h>
8233
 
 
8234
 
int
8235
 
main ()
8236
 
{
8237
 
#ifndef optreset
8238
 
  (void) optreset;
8239
 
#endif
8240
 
 
8241
 
  ;
8242
 
  return 0;
8243
 
}
8244
 
_ACEOF
8245
 
rm -f conftest.$ac_objext
8246
 
if { (ac_try="$ac_compile"
8247
 
case "(($ac_try" in
8248
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8249
 
  *) ac_try_echo=$ac_try;;
8250
 
esac
8251
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8252
 
  (eval "$ac_compile") 2>conftest.er1
8253
 
  ac_status=$?
8254
 
  grep -v '^ *+' conftest.er1 >conftest.err
8255
 
  rm -f conftest.er1
8256
 
  cat conftest.err >&5
8257
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258
 
  (exit $ac_status); } && {
8259
 
         test -z "$ac_c_werror_flag" ||
8260
 
         test ! -s conftest.err
8261
 
       } && test -s conftest.$ac_objext; then
8262
 
  ac_cv_have_decl_optreset=yes
8263
 
else
8264
 
  echo "$as_me: failed program was:" >&5
8265
 
sed 's/^/| /' conftest.$ac_ext >&5
8266
 
 
8267
 
        ac_cv_have_decl_optreset=no
8268
 
fi
8269
 
 
8270
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8271
 
fi
8272
 
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
8273
 
echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
8274
 
if test $ac_cv_have_decl_optreset = yes; then
8275
 
  GETOPT_H=getopt.h
8276
 
fi
8277
 
 
8278
 
  fi
8279
 
 
8280
 
      if test -z "$GETOPT_H"; then
8281
 
    { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
8282
 
echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
8283
 
if test "${gl_cv_func_gnu_getopt+set}" = set; then
8284
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8285
 
else
8286
 
  if test "$cross_compiling" = yes; then
8287
 
                         { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
8288
 
echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
8289
 
if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
8290
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8291
 
else
8292
 
  cat >conftest.$ac_ext <<_ACEOF
8293
 
/* confdefs.h.  */
8294
 
_ACEOF
8295
 
cat confdefs.h >>conftest.$ac_ext
8296
 
cat >>conftest.$ac_ext <<_ACEOF
8297
 
/* end confdefs.h.  */
8298
 
#include <getopt.h>
8299
 
 
8300
 
int
8301
 
main ()
8302
 
{
8303
 
#ifndef getopt_clip
8304
 
  (void) getopt_clip;
8305
 
#endif
8306
 
 
8307
 
  ;
8308
 
  return 0;
8309
 
}
8310
 
_ACEOF
8311
 
rm -f conftest.$ac_objext
8312
 
if { (ac_try="$ac_compile"
8313
 
case "(($ac_try" in
8314
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8315
 
  *) ac_try_echo=$ac_try;;
8316
 
esac
8317
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8318
 
  (eval "$ac_compile") 2>conftest.er1
8319
 
  ac_status=$?
8320
 
  grep -v '^ *+' conftest.er1 >conftest.err
8321
 
  rm -f conftest.er1
8322
 
  cat conftest.err >&5
8323
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324
 
  (exit $ac_status); } && {
8325
 
         test -z "$ac_c_werror_flag" ||
8326
 
         test ! -s conftest.err
8327
 
       } && test -s conftest.$ac_objext; then
8328
 
  ac_cv_have_decl_getopt_clip=yes
8329
 
else
8330
 
  echo "$as_me: failed program was:" >&5
8331
 
sed 's/^/| /' conftest.$ac_ext >&5
8332
 
 
8333
 
        ac_cv_have_decl_getopt_clip=no
8334
 
fi
8335
 
 
8336
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8337
 
fi
8338
 
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
8339
 
echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
8340
 
if test $ac_cv_have_decl_getopt_clip = yes; then
8341
 
  gl_cv_func_gnu_getopt=no
8342
 
else
8343
 
  gl_cv_func_gnu_getopt=yes
8344
 
fi
8345
 
 
8346
 
else
8347
 
  cat >conftest.$ac_ext <<_ACEOF
8348
 
/* confdefs.h.  */
8349
 
_ACEOF
8350
 
cat confdefs.h >>conftest.$ac_ext
8351
 
cat >>conftest.$ac_ext <<_ACEOF
8352
 
/* end confdefs.h.  */
8353
 
#include <getopt.h>
8354
 
int
8355
 
main ()
8356
 
{
8357
 
 
8358
 
             char *myargv[3];
8359
 
             myargv[0] = "conftest";
8360
 
             myargv[1] = "-+";
8361
 
             myargv[2] = 0;
8362
 
             return getopt (2, myargv, "+a") != '?';
8363
 
 
8364
 
  ;
8365
 
  return 0;
8366
 
}
8367
 
_ACEOF
8368
 
rm -f conftest$ac_exeext
8369
 
if { (ac_try="$ac_link"
8370
 
case "(($ac_try" in
8371
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8372
 
  *) ac_try_echo=$ac_try;;
8373
 
esac
8374
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8375
 
  (eval "$ac_link") 2>&5
8376
 
  ac_status=$?
8377
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8379
 
  { (case "(($ac_try" in
8380
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8381
 
  *) ac_try_echo=$ac_try;;
8382
 
esac
8383
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8384
 
  (eval "$ac_try") 2>&5
8385
 
  ac_status=$?
8386
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387
 
  (exit $ac_status); }; }; then
8388
 
  gl_cv_func_gnu_getopt=yes
8389
 
else
8390
 
  echo "$as_me: program exited with status $ac_status" >&5
8391
 
echo "$as_me: failed program was:" >&5
8392
 
sed 's/^/| /' conftest.$ac_ext >&5
8393
 
 
8394
 
( exit $ac_status )
8395
 
gl_cv_func_gnu_getopt=no
8396
 
fi
8397
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8398
 
fi
8399
 
 
8400
 
 
8401
 
fi
8402
 
{ echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
8403
 
echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
8404
 
    if test "$gl_cv_func_gnu_getopt" = "no"; then
8405
 
      GETOPT_H=getopt.h
8406
 
    fi
8407
 
  fi
8408
 
 
8409
 
 
8410
 
      { echo "$as_me:$LINENO: checking whether getenv is declared" >&5
8411
 
echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6; }
8412
 
if test "${ac_cv_have_decl_getenv+set}" = set; then
8413
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8414
 
else
8415
 
  cat >conftest.$ac_ext <<_ACEOF
8416
 
/* confdefs.h.  */
8417
 
_ACEOF
8418
 
cat confdefs.h >>conftest.$ac_ext
8419
 
cat >>conftest.$ac_ext <<_ACEOF
8420
 
/* end confdefs.h.  */
8421
 
$ac_includes_default
8422
 
int
8423
 
main ()
8424
 
{
8425
 
#ifndef getenv
8426
 
  (void) getenv;
8427
 
#endif
8428
 
 
8429
 
  ;
8430
 
  return 0;
8431
 
}
8432
 
_ACEOF
8433
 
rm -f conftest.$ac_objext
8434
 
if { (ac_try="$ac_compile"
8435
 
case "(($ac_try" in
8436
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8437
 
  *) ac_try_echo=$ac_try;;
8438
 
esac
8439
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8440
 
  (eval "$ac_compile") 2>conftest.er1
8441
 
  ac_status=$?
8442
 
  grep -v '^ *+' conftest.er1 >conftest.err
8443
 
  rm -f conftest.er1
8444
 
  cat conftest.err >&5
8445
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446
 
  (exit $ac_status); } && {
8447
 
         test -z "$ac_c_werror_flag" ||
8448
 
         test ! -s conftest.err
8449
 
       } && test -s conftest.$ac_objext; then
8450
 
  ac_cv_have_decl_getenv=yes
8451
 
else
8452
 
  echo "$as_me: failed program was:" >&5
8453
 
sed 's/^/| /' conftest.$ac_ext >&5
8454
 
 
8455
 
        ac_cv_have_decl_getenv=no
8456
 
fi
8457
 
 
8458
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8459
 
fi
8460
 
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
8461
 
echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6; }
8462
 
if test $ac_cv_have_decl_getenv = yes; then
8463
 
 
8464
 
cat >>confdefs.h <<_ACEOF
8465
 
#define HAVE_DECL_GETENV 1
8466
 
_ACEOF
8467
 
 
8468
 
 
8469
 
else
8470
 
  cat >>confdefs.h <<_ACEOF
8471
 
#define HAVE_DECL_GETENV 0
8472
 
_ACEOF
8473
 
 
8474
 
 
8475
 
fi
8476
 
 
8477
 
 
8478
 
 
8479
8463
{ echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
8480
8464
echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
8481
8465
if test "${ac_cv_header_stdbool_h+set}" = set; then
8680
8664
  fi
8681
8665
 
8682
8666
 
8683
 
{ echo "$as_me:$LINENO: checking for inline" >&5
8684
 
echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
8685
 
if test "${ac_cv_c_inline+set}" = set; then
8686
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8687
 
else
8688
 
  ac_cv_c_inline=no
8689
 
for ac_kw in inline __inline__ __inline; do
8690
 
  cat >conftest.$ac_ext <<_ACEOF
8691
 
/* confdefs.h.  */
8692
 
_ACEOF
8693
 
cat confdefs.h >>conftest.$ac_ext
8694
 
cat >>conftest.$ac_ext <<_ACEOF
8695
 
/* end confdefs.h.  */
8696
 
#ifndef __cplusplus
8697
 
typedef int foo_t;
8698
 
static $ac_kw foo_t static_foo () {return 0; }
8699
 
$ac_kw foo_t foo () {return 0; }
8700
 
#endif
8701
 
 
8702
 
_ACEOF
8703
 
rm -f conftest.$ac_objext
8704
 
if { (ac_try="$ac_compile"
8705
 
case "(($ac_try" in
8706
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8707
 
  *) ac_try_echo=$ac_try;;
8708
 
esac
8709
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8710
 
  (eval "$ac_compile") 2>conftest.er1
8711
 
  ac_status=$?
8712
 
  grep -v '^ *+' conftest.er1 >conftest.err
8713
 
  rm -f conftest.er1
8714
 
  cat conftest.err >&5
8715
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716
 
  (exit $ac_status); } && {
8717
 
         test -z "$ac_c_werror_flag" ||
8718
 
         test ! -s conftest.err
8719
 
       } && test -s conftest.$ac_objext; then
8720
 
  ac_cv_c_inline=$ac_kw
8721
 
else
8722
 
  echo "$as_me: failed program was:" >&5
8723
 
sed 's/^/| /' conftest.$ac_ext >&5
8724
 
 
8725
 
 
8726
 
fi
8727
 
 
8728
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8729
 
  test "$ac_cv_c_inline" != no && break
8730
 
done
8731
 
 
8732
 
fi
8733
 
{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8734
 
echo "${ECHO_T}$ac_cv_c_inline" >&6; }
8735
 
 
8736
 
 
8737
 
case $ac_cv_c_inline in
8738
 
  inline | yes) ;;
8739
 
  *)
8740
 
    case $ac_cv_c_inline in
8741
 
      no) ac_val=;;
8742
 
      *) ac_val=$ac_cv_c_inline;;
8743
 
    esac
8744
 
    cat >>confdefs.h <<_ACEOF
8745
 
#ifndef __cplusplus
8746
 
#define inline $ac_val
8747
 
#endif
8748
 
_ACEOF
8749
 
    ;;
8750
 
esac
 
8667
 
 
8668
 
 
8669
 
 
8670
 
 
8671
  # getdate.y works with bison only.
 
8672
  : ${YACC='bison -y'}
 
8673
 
 
8674
 
 
8675
  { echo "$as_me:$LINENO: checking for compound literals" >&5
 
8676
echo $ECHO_N "checking for compound literals... $ECHO_C" >&6; }
 
8677
if test "${gl_cv_compound_literals+set}" = set; then
 
8678
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8679
else
 
8680
  cat >conftest.$ac_ext <<_ACEOF
 
8681
/* confdefs.h.  */
 
8682
_ACEOF
 
8683
cat confdefs.h >>conftest.$ac_ext
 
8684
cat >>conftest.$ac_ext <<_ACEOF
 
8685
/* end confdefs.h.  */
 
8686
struct s { int i, j; }; struct s s = (struct s) { 1, 2 };
 
8687
int
 
8688
main ()
 
8689
{
 
8690
struct s t = (struct s) { 3, 4 };
 
8691
     if (t.i != 0) return 0;
 
8692
  ;
 
8693
  return 0;
 
8694
}
 
8695
_ACEOF
 
8696
rm -f conftest.$ac_objext
 
8697
if { (ac_try="$ac_compile"
 
8698
case "(($ac_try" in
 
8699
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8700
  *) ac_try_echo=$ac_try;;
 
8701
esac
 
8702
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8703
  (eval "$ac_compile") 2>conftest.er1
 
8704
  ac_status=$?
 
8705
  grep -v '^ *+' conftest.er1 >conftest.err
 
8706
  rm -f conftest.er1
 
8707
  cat conftest.err >&5
 
8708
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8709
  (exit $ac_status); } && {
 
8710
         test -z "$ac_c_werror_flag" ||
 
8711
         test ! -s conftest.err
 
8712
       } && test -s conftest.$ac_objext; then
 
8713
  gl_cv_compound_literals=yes
 
8714
else
 
8715
  echo "$as_me: failed program was:" >&5
 
8716
sed 's/^/| /' conftest.$ac_ext >&5
 
8717
 
 
8718
        gl_cv_compound_literals=no
 
8719
fi
 
8720
 
 
8721
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8722
fi
 
8723
{ echo "$as_me:$LINENO: result: $gl_cv_compound_literals" >&5
 
8724
echo "${ECHO_T}$gl_cv_compound_literals" >&6; }
 
8725
  if test $gl_cv_compound_literals = yes; then
 
8726
 
 
8727
cat >>confdefs.h <<\_ACEOF
 
8728
#define HAVE_COMPOUND_LITERALS 1
 
8729
_ACEOF
 
8730
 
 
8731
  fi
 
8732
 
 
8733
{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
 
8734
echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
 
8735
if test "${ac_cv_struct_tm+set}" = set; then
 
8736
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8737
else
 
8738
  cat >conftest.$ac_ext <<_ACEOF
 
8739
/* confdefs.h.  */
 
8740
_ACEOF
 
8741
cat confdefs.h >>conftest.$ac_ext
 
8742
cat >>conftest.$ac_ext <<_ACEOF
 
8743
/* end confdefs.h.  */
 
8744
#include <sys/types.h>
 
8745
#include <time.h>
 
8746
 
 
8747
int
 
8748
main ()
 
8749
{
 
8750
struct tm tm;
 
8751
                                     int *p = &tm.tm_sec;
 
8752
                                     return !p;
 
8753
  ;
 
8754
  return 0;
 
8755
}
 
8756
_ACEOF
 
8757
rm -f conftest.$ac_objext
 
8758
if { (ac_try="$ac_compile"
 
8759
case "(($ac_try" in
 
8760
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8761
  *) ac_try_echo=$ac_try;;
 
8762
esac
 
8763
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8764
  (eval "$ac_compile") 2>conftest.er1
 
8765
  ac_status=$?
 
8766
  grep -v '^ *+' conftest.er1 >conftest.err
 
8767
  rm -f conftest.er1
 
8768
  cat conftest.err >&5
 
8769
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8770
  (exit $ac_status); } && {
 
8771
         test -z "$ac_c_werror_flag" ||
 
8772
         test ! -s conftest.err
 
8773
       } && test -s conftest.$ac_objext; then
 
8774
  ac_cv_struct_tm=time.h
 
8775
else
 
8776
  echo "$as_me: failed program was:" >&5
 
8777
sed 's/^/| /' conftest.$ac_ext >&5
 
8778
 
 
8779
        ac_cv_struct_tm=sys/time.h
 
8780
fi
 
8781
 
 
8782
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8783
fi
 
8784
{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
 
8785
echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
 
8786
if test $ac_cv_struct_tm = sys/time.h; then
 
8787
 
 
8788
cat >>confdefs.h <<\_ACEOF
 
8789
#define TM_IN_SYS_TIME 1
 
8790
_ACEOF
 
8791
 
 
8792
fi
 
8793
 
 
8794
 
 
8795
 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
 
8796
echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
 
8797
if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
 
8798
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8799
else
 
8800
  cat >conftest.$ac_ext <<_ACEOF
 
8801
/* confdefs.h.  */
 
8802
_ACEOF
 
8803
cat confdefs.h >>conftest.$ac_ext
 
8804
cat >>conftest.$ac_ext <<_ACEOF
 
8805
/* end confdefs.h.  */
 
8806
#include <time.h>
 
8807
 
 
8808
int
 
8809
main ()
 
8810
{
 
8811
static struct tm ac_aggr;
 
8812
if (ac_aggr.tm_gmtoff)
 
8813
return 0;
 
8814
  ;
 
8815
  return 0;
 
8816
}
 
8817
_ACEOF
 
8818
rm -f conftest.$ac_objext
 
8819
if { (ac_try="$ac_compile"
 
8820
case "(($ac_try" in
 
8821
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8822
  *) ac_try_echo=$ac_try;;
 
8823
esac
 
8824
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8825
  (eval "$ac_compile") 2>conftest.er1
 
8826
  ac_status=$?
 
8827
  grep -v '^ *+' conftest.er1 >conftest.err
 
8828
  rm -f conftest.er1
 
8829
  cat conftest.err >&5
 
8830
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8831
  (exit $ac_status); } && {
 
8832
         test -z "$ac_c_werror_flag" ||
 
8833
         test ! -s conftest.err
 
8834
       } && test -s conftest.$ac_objext; then
 
8835
  ac_cv_member_struct_tm_tm_gmtoff=yes
 
8836
else
 
8837
  echo "$as_me: failed program was:" >&5
 
8838
sed 's/^/| /' conftest.$ac_ext >&5
 
8839
 
 
8840
        cat >conftest.$ac_ext <<_ACEOF
 
8841
/* confdefs.h.  */
 
8842
_ACEOF
 
8843
cat confdefs.h >>conftest.$ac_ext
 
8844
cat >>conftest.$ac_ext <<_ACEOF
 
8845
/* end confdefs.h.  */
 
8846
#include <time.h>
 
8847
 
 
8848
int
 
8849
main ()
 
8850
{
 
8851
static struct tm ac_aggr;
 
8852
if (sizeof ac_aggr.tm_gmtoff)
 
8853
return 0;
 
8854
  ;
 
8855
  return 0;
 
8856
}
 
8857
_ACEOF
 
8858
rm -f conftest.$ac_objext
 
8859
if { (ac_try="$ac_compile"
 
8860
case "(($ac_try" in
 
8861
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8862
  *) ac_try_echo=$ac_try;;
 
8863
esac
 
8864
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8865
  (eval "$ac_compile") 2>conftest.er1
 
8866
  ac_status=$?
 
8867
  grep -v '^ *+' conftest.er1 >conftest.err
 
8868
  rm -f conftest.er1
 
8869
  cat conftest.err >&5
 
8870
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8871
  (exit $ac_status); } && {
 
8872
         test -z "$ac_c_werror_flag" ||
 
8873
         test ! -s conftest.err
 
8874
       } && test -s conftest.$ac_objext; then
 
8875
  ac_cv_member_struct_tm_tm_gmtoff=yes
 
8876
else
 
8877
  echo "$as_me: failed program was:" >&5
 
8878
sed 's/^/| /' conftest.$ac_ext >&5
 
8879
 
 
8880
        ac_cv_member_struct_tm_tm_gmtoff=no
 
8881
fi
 
8882
 
 
8883
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8884
fi
 
8885
 
 
8886
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8887
fi
 
8888
{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
 
8889
echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
 
8890
if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
 
8891
 
 
8892
cat >>confdefs.h <<\_ACEOF
 
8893
#define HAVE_TM_GMTOFF 1
 
8894
_ACEOF
 
8895
 
 
8896
fi
 
8897
 
 
8898
 
 
8899
 
 
8900
      { echo "$as_me:$LINENO: checking whether getdelim is declared" >&5
 
8901
echo $ECHO_N "checking whether getdelim is declared... $ECHO_C" >&6; }
 
8902
if test "${ac_cv_have_decl_getdelim+set}" = set; then
 
8903
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8904
else
 
8905
  cat >conftest.$ac_ext <<_ACEOF
 
8906
/* confdefs.h.  */
 
8907
_ACEOF
 
8908
cat confdefs.h >>conftest.$ac_ext
 
8909
cat >>conftest.$ac_ext <<_ACEOF
 
8910
/* end confdefs.h.  */
 
8911
$ac_includes_default
 
8912
int
 
8913
main ()
 
8914
{
 
8915
#ifndef getdelim
 
8916
  (void) getdelim;
 
8917
#endif
 
8918
 
 
8919
  ;
 
8920
  return 0;
 
8921
}
 
8922
_ACEOF
 
8923
rm -f conftest.$ac_objext
 
8924
if { (ac_try="$ac_compile"
 
8925
case "(($ac_try" in
 
8926
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8927
  *) ac_try_echo=$ac_try;;
 
8928
esac
 
8929
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8930
  (eval "$ac_compile") 2>conftest.er1
 
8931
  ac_status=$?
 
8932
  grep -v '^ *+' conftest.er1 >conftest.err
 
8933
  rm -f conftest.er1
 
8934
  cat conftest.err >&5
 
8935
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8936
  (exit $ac_status); } && {
 
8937
         test -z "$ac_c_werror_flag" ||
 
8938
         test ! -s conftest.err
 
8939
       } && test -s conftest.$ac_objext; then
 
8940
  ac_cv_have_decl_getdelim=yes
 
8941
else
 
8942
  echo "$as_me: failed program was:" >&5
 
8943
sed 's/^/| /' conftest.$ac_ext >&5
 
8944
 
 
8945
        ac_cv_have_decl_getdelim=no
 
8946
fi
 
8947
 
 
8948
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8949
fi
 
8950
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getdelim" >&5
 
8951
echo "${ECHO_T}$ac_cv_have_decl_getdelim" >&6; }
 
8952
if test $ac_cv_have_decl_getdelim = yes; then
 
8953
 
 
8954
cat >>confdefs.h <<_ACEOF
 
8955
#define HAVE_DECL_GETDELIM 1
 
8956
_ACEOF
 
8957
 
 
8958
 
 
8959
else
 
8960
  cat >>confdefs.h <<_ACEOF
 
8961
#define HAVE_DECL_GETDELIM 0
 
8962
_ACEOF
 
8963
 
 
8964
 
 
8965
fi
 
8966
 
 
8967
 
 
8968
 
 
8969
 
 
8970
      { echo "$as_me:$LINENO: checking whether getline is declared" >&5
 
8971
echo $ECHO_N "checking whether getline is declared... $ECHO_C" >&6; }
 
8972
if test "${ac_cv_have_decl_getline+set}" = set; then
 
8973
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8974
else
 
8975
  cat >conftest.$ac_ext <<_ACEOF
 
8976
/* confdefs.h.  */
 
8977
_ACEOF
 
8978
cat confdefs.h >>conftest.$ac_ext
 
8979
cat >>conftest.$ac_ext <<_ACEOF
 
8980
/* end confdefs.h.  */
 
8981
$ac_includes_default
 
8982
int
 
8983
main ()
 
8984
{
 
8985
#ifndef getline
 
8986
  (void) getline;
 
8987
#endif
 
8988
 
 
8989
  ;
 
8990
  return 0;
 
8991
}
 
8992
_ACEOF
 
8993
rm -f conftest.$ac_objext
 
8994
if { (ac_try="$ac_compile"
 
8995
case "(($ac_try" in
 
8996
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8997
  *) ac_try_echo=$ac_try;;
 
8998
esac
 
8999
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9000
  (eval "$ac_compile") 2>conftest.er1
 
9001
  ac_status=$?
 
9002
  grep -v '^ *+' conftest.er1 >conftest.err
 
9003
  rm -f conftest.er1
 
9004
  cat conftest.err >&5
 
9005
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9006
  (exit $ac_status); } && {
 
9007
         test -z "$ac_c_werror_flag" ||
 
9008
         test ! -s conftest.err
 
9009
       } && test -s conftest.$ac_objext; then
 
9010
  ac_cv_have_decl_getline=yes
 
9011
else
 
9012
  echo "$as_me: failed program was:" >&5
 
9013
sed 's/^/| /' conftest.$ac_ext >&5
 
9014
 
 
9015
        ac_cv_have_decl_getline=no
 
9016
fi
 
9017
 
 
9018
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9019
fi
 
9020
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getline" >&5
 
9021
echo "${ECHO_T}$ac_cv_have_decl_getline" >&6; }
 
9022
if test $ac_cv_have_decl_getline = yes; then
 
9023
 
 
9024
cat >>confdefs.h <<_ACEOF
 
9025
#define HAVE_DECL_GETLINE 1
 
9026
_ACEOF
 
9027
 
 
9028
 
 
9029
else
 
9030
  cat >>confdefs.h <<_ACEOF
 
9031
#define HAVE_DECL_GETLINE 0
 
9032
_ACEOF
 
9033
 
 
9034
 
 
9035
fi
 
9036
 
 
9037
 
 
9038
 
 
9039
 
 
9040
  if test -z "$GETOPT_H"; then
 
9041
 
 
9042
for ac_header in getopt.h
 
9043
do
 
9044
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
9045
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
9046
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
9047
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
9048
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
9049
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9050
fi
 
9051
ac_res=`eval echo '${'$as_ac_Header'}'`
 
9052
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
9053
echo "${ECHO_T}$ac_res" >&6; }
 
9054
else
 
9055
  # Is the header compilable?
 
9056
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
9057
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
9058
cat >conftest.$ac_ext <<_ACEOF
 
9059
/* confdefs.h.  */
 
9060
_ACEOF
 
9061
cat confdefs.h >>conftest.$ac_ext
 
9062
cat >>conftest.$ac_ext <<_ACEOF
 
9063
/* end confdefs.h.  */
 
9064
$ac_includes_default
 
9065
#include <$ac_header>
 
9066
_ACEOF
 
9067
rm -f conftest.$ac_objext
 
9068
if { (ac_try="$ac_compile"
 
9069
case "(($ac_try" in
 
9070
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9071
  *) ac_try_echo=$ac_try;;
 
9072
esac
 
9073
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9074
  (eval "$ac_compile") 2>conftest.er1
 
9075
  ac_status=$?
 
9076
  grep -v '^ *+' conftest.er1 >conftest.err
 
9077
  rm -f conftest.er1
 
9078
  cat conftest.err >&5
 
9079
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9080
  (exit $ac_status); } && {
 
9081
         test -z "$ac_c_werror_flag" ||
 
9082
         test ! -s conftest.err
 
9083
       } && test -s conftest.$ac_objext; then
 
9084
  ac_header_compiler=yes
 
9085
else
 
9086
  echo "$as_me: failed program was:" >&5
 
9087
sed 's/^/| /' conftest.$ac_ext >&5
 
9088
 
 
9089
        ac_header_compiler=no
 
9090
fi
 
9091
 
 
9092
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9093
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
9094
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
9095
 
 
9096
# Is the header present?
 
9097
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
9098
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
9099
cat >conftest.$ac_ext <<_ACEOF
 
9100
/* confdefs.h.  */
 
9101
_ACEOF
 
9102
cat confdefs.h >>conftest.$ac_ext
 
9103
cat >>conftest.$ac_ext <<_ACEOF
 
9104
/* end confdefs.h.  */
 
9105
#include <$ac_header>
 
9106
_ACEOF
 
9107
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
9108
case "(($ac_try" in
 
9109
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9110
  *) ac_try_echo=$ac_try;;
 
9111
esac
 
9112
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9113
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
9114
  ac_status=$?
 
9115
  grep -v '^ *+' conftest.er1 >conftest.err
 
9116
  rm -f conftest.er1
 
9117
  cat conftest.err >&5
 
9118
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9119
  (exit $ac_status); } >/dev/null && {
 
9120
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
9121
         test ! -s conftest.err
 
9122
       }; then
 
9123
  ac_header_preproc=yes
 
9124
else
 
9125
  echo "$as_me: failed program was:" >&5
 
9126
sed 's/^/| /' conftest.$ac_ext >&5
 
9127
 
 
9128
  ac_header_preproc=no
 
9129
fi
 
9130
 
 
9131
rm -f conftest.err conftest.$ac_ext
 
9132
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
9133
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
9134
 
 
9135
# So?  What about this header?
 
9136
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
9137
  yes:no: )
 
9138
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
9139
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
9140
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
9141
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
9142
    ac_header_preproc=yes
 
9143
    ;;
 
9144
  no:yes:* )
 
9145
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
9146
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
9147
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
9148
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
9149
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
9150
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
9151
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
9152
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
9153
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
9154
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
9155
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
9156
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
9157
    ( cat <<\_ASBOX
 
9158
## ------------------------------------ ##
 
9159
## Report this to bug-findutils@gnu.org ##
 
9160
## ------------------------------------ ##
 
9161
_ASBOX
 
9162
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
9163
    ;;
 
9164
esac
 
9165
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
9166
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
9167
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
9168
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9169
else
 
9170
  eval "$as_ac_Header=\$ac_header_preproc"
 
9171
fi
 
9172
ac_res=`eval echo '${'$as_ac_Header'}'`
 
9173
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
9174
echo "${ECHO_T}$ac_res" >&6; }
 
9175
 
 
9176
fi
 
9177
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
9178
  cat >>confdefs.h <<_ACEOF
 
9179
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
9180
_ACEOF
 
9181
 
 
9182
else
 
9183
  GETOPT_H=getopt.h
 
9184
fi
 
9185
 
 
9186
done
 
9187
 
 
9188
  fi
 
9189
 
 
9190
  if test -z "$GETOPT_H"; then
 
9191
 
 
9192
for ac_func in getopt_long_only
 
9193
do
 
9194
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
9195
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
9196
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
9197
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
9198
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9199
else
 
9200
  cat >conftest.$ac_ext <<_ACEOF
 
9201
/* confdefs.h.  */
 
9202
_ACEOF
 
9203
cat confdefs.h >>conftest.$ac_ext
 
9204
cat >>conftest.$ac_ext <<_ACEOF
 
9205
/* end confdefs.h.  */
 
9206
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
9207
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
9208
#define $ac_func innocuous_$ac_func
 
9209
 
 
9210
/* System header to define __stub macros and hopefully few prototypes,
 
9211
    which can conflict with char $ac_func (); below.
 
9212
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
9213
    <limits.h> exists even on freestanding compilers.  */
 
9214
 
 
9215
#ifdef __STDC__
 
9216
# include <limits.h>
 
9217
#else
 
9218
# include <assert.h>
 
9219
#endif
 
9220
 
 
9221
#undef $ac_func
 
9222
 
 
9223
/* Override any GCC internal prototype to avoid an error.
 
9224
   Use char because int might match the return type of a GCC
 
9225
   builtin and then its argument prototype would still apply.  */
 
9226
#ifdef __cplusplus
 
9227
extern "C"
 
9228
#endif
 
9229
char $ac_func ();
 
9230
/* The GNU C library defines this for functions which it implements
 
9231
    to always fail with ENOSYS.  Some functions are actually named
 
9232
    something starting with __ and the normal name is an alias.  */
 
9233
#if defined __stub_$ac_func || defined __stub___$ac_func
 
9234
choke me
 
9235
#endif
 
9236
 
 
9237
int
 
9238
main ()
 
9239
{
 
9240
return $ac_func ();
 
9241
  ;
 
9242
  return 0;
 
9243
}
 
9244
_ACEOF
 
9245
rm -f conftest.$ac_objext conftest$ac_exeext
 
9246
if { (ac_try="$ac_link"
 
9247
case "(($ac_try" in
 
9248
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9249
  *) ac_try_echo=$ac_try;;
 
9250
esac
 
9251
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9252
  (eval "$ac_link") 2>conftest.er1
 
9253
  ac_status=$?
 
9254
  grep -v '^ *+' conftest.er1 >conftest.err
 
9255
  rm -f conftest.er1
 
9256
  cat conftest.err >&5
 
9257
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9258
  (exit $ac_status); } && {
 
9259
         test -z "$ac_c_werror_flag" ||
 
9260
         test ! -s conftest.err
 
9261
       } && test -s conftest$ac_exeext &&
 
9262
       $as_test_x conftest$ac_exeext; then
 
9263
  eval "$as_ac_var=yes"
 
9264
else
 
9265
  echo "$as_me: failed program was:" >&5
 
9266
sed 's/^/| /' conftest.$ac_ext >&5
 
9267
 
 
9268
        eval "$as_ac_var=no"
 
9269
fi
 
9270
 
 
9271
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9272
      conftest$ac_exeext conftest.$ac_ext
 
9273
fi
 
9274
ac_res=`eval echo '${'$as_ac_var'}'`
 
9275
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
9276
echo "${ECHO_T}$ac_res" >&6; }
 
9277
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
9278
  cat >>confdefs.h <<_ACEOF
 
9279
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
9280
_ACEOF
 
9281
 
 
9282
else
 
9283
  GETOPT_H=getopt.h
 
9284
fi
 
9285
done
 
9286
 
 
9287
  fi
 
9288
 
 
9289
      if test -z "$GETOPT_H"; then
 
9290
    { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
 
9291
echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
 
9292
if test "${ac_cv_have_decl_optreset+set}" = set; then
 
9293
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9294
else
 
9295
  cat >conftest.$ac_ext <<_ACEOF
 
9296
/* confdefs.h.  */
 
9297
_ACEOF
 
9298
cat confdefs.h >>conftest.$ac_ext
 
9299
cat >>conftest.$ac_ext <<_ACEOF
 
9300
/* end confdefs.h.  */
 
9301
#include <getopt.h>
 
9302
 
 
9303
int
 
9304
main ()
 
9305
{
 
9306
#ifndef optreset
 
9307
  (void) optreset;
 
9308
#endif
 
9309
 
 
9310
  ;
 
9311
  return 0;
 
9312
}
 
9313
_ACEOF
 
9314
rm -f conftest.$ac_objext
 
9315
if { (ac_try="$ac_compile"
 
9316
case "(($ac_try" in
 
9317
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9318
  *) ac_try_echo=$ac_try;;
 
9319
esac
 
9320
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9321
  (eval "$ac_compile") 2>conftest.er1
 
9322
  ac_status=$?
 
9323
  grep -v '^ *+' conftest.er1 >conftest.err
 
9324
  rm -f conftest.er1
 
9325
  cat conftest.err >&5
 
9326
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9327
  (exit $ac_status); } && {
 
9328
         test -z "$ac_c_werror_flag" ||
 
9329
         test ! -s conftest.err
 
9330
       } && test -s conftest.$ac_objext; then
 
9331
  ac_cv_have_decl_optreset=yes
 
9332
else
 
9333
  echo "$as_me: failed program was:" >&5
 
9334
sed 's/^/| /' conftest.$ac_ext >&5
 
9335
 
 
9336
        ac_cv_have_decl_optreset=no
 
9337
fi
 
9338
 
 
9339
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9340
fi
 
9341
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
 
9342
echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
 
9343
if test $ac_cv_have_decl_optreset = yes; then
 
9344
  GETOPT_H=getopt.h
 
9345
fi
 
9346
 
 
9347
  fi
 
9348
 
 
9349
      if test -z "$GETOPT_H"; then
 
9350
    { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
 
9351
echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
 
9352
if test "${gl_cv_func_gnu_getopt+set}" = set; then
 
9353
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9354
else
 
9355
  if test "$cross_compiling" = yes; then
 
9356
                         { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
 
9357
echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
 
9358
if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
 
9359
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9360
else
 
9361
  cat >conftest.$ac_ext <<_ACEOF
 
9362
/* confdefs.h.  */
 
9363
_ACEOF
 
9364
cat confdefs.h >>conftest.$ac_ext
 
9365
cat >>conftest.$ac_ext <<_ACEOF
 
9366
/* end confdefs.h.  */
 
9367
#include <getopt.h>
 
9368
 
 
9369
int
 
9370
main ()
 
9371
{
 
9372
#ifndef getopt_clip
 
9373
  (void) getopt_clip;
 
9374
#endif
 
9375
 
 
9376
  ;
 
9377
  return 0;
 
9378
}
 
9379
_ACEOF
 
9380
rm -f conftest.$ac_objext
 
9381
if { (ac_try="$ac_compile"
 
9382
case "(($ac_try" in
 
9383
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9384
  *) ac_try_echo=$ac_try;;
 
9385
esac
 
9386
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9387
  (eval "$ac_compile") 2>conftest.er1
 
9388
  ac_status=$?
 
9389
  grep -v '^ *+' conftest.er1 >conftest.err
 
9390
  rm -f conftest.er1
 
9391
  cat conftest.err >&5
 
9392
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9393
  (exit $ac_status); } && {
 
9394
         test -z "$ac_c_werror_flag" ||
 
9395
         test ! -s conftest.err
 
9396
       } && test -s conftest.$ac_objext; then
 
9397
  ac_cv_have_decl_getopt_clip=yes
 
9398
else
 
9399
  echo "$as_me: failed program was:" >&5
 
9400
sed 's/^/| /' conftest.$ac_ext >&5
 
9401
 
 
9402
        ac_cv_have_decl_getopt_clip=no
 
9403
fi
 
9404
 
 
9405
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9406
fi
 
9407
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
 
9408
echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
 
9409
if test $ac_cv_have_decl_getopt_clip = yes; then
 
9410
  gl_cv_func_gnu_getopt=no
 
9411
else
 
9412
  gl_cv_func_gnu_getopt=yes
 
9413
fi
 
9414
 
 
9415
else
 
9416
  cat >conftest.$ac_ext <<_ACEOF
 
9417
/* confdefs.h.  */
 
9418
_ACEOF
 
9419
cat confdefs.h >>conftest.$ac_ext
 
9420
cat >>conftest.$ac_ext <<_ACEOF
 
9421
/* end confdefs.h.  */
 
9422
#include <getopt.h>
 
9423
int
 
9424
main ()
 
9425
{
 
9426
 
 
9427
             char *myargv[3];
 
9428
             myargv[0] = "conftest";
 
9429
             myargv[1] = "-+";
 
9430
             myargv[2] = 0;
 
9431
             return getopt (2, myargv, "+a") != '?';
 
9432
 
 
9433
  ;
 
9434
  return 0;
 
9435
}
 
9436
_ACEOF
 
9437
rm -f conftest$ac_exeext
 
9438
if { (ac_try="$ac_link"
 
9439
case "(($ac_try" in
 
9440
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9441
  *) ac_try_echo=$ac_try;;
 
9442
esac
 
9443
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9444
  (eval "$ac_link") 2>&5
 
9445
  ac_status=$?
 
9446
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9447
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
9448
  { (case "(($ac_try" in
 
9449
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9450
  *) ac_try_echo=$ac_try;;
 
9451
esac
 
9452
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9453
  (eval "$ac_try") 2>&5
 
9454
  ac_status=$?
 
9455
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9456
  (exit $ac_status); }; }; then
 
9457
  gl_cv_func_gnu_getopt=yes
 
9458
else
 
9459
  echo "$as_me: program exited with status $ac_status" >&5
 
9460
echo "$as_me: failed program was:" >&5
 
9461
sed 's/^/| /' conftest.$ac_ext >&5
 
9462
 
 
9463
( exit $ac_status )
 
9464
gl_cv_func_gnu_getopt=no
 
9465
fi
 
9466
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
9467
fi
 
9468
 
 
9469
 
 
9470
fi
 
9471
{ echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
 
9472
echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
 
9473
    if test "$gl_cv_func_gnu_getopt" = "no"; then
 
9474
      GETOPT_H=getopt.h
 
9475
    fi
 
9476
  fi
 
9477
 
 
9478
 
 
9479
      { echo "$as_me:$LINENO: checking whether getenv is declared" >&5
 
9480
echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6; }
 
9481
if test "${ac_cv_have_decl_getenv+set}" = set; then
 
9482
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9483
else
 
9484
  cat >conftest.$ac_ext <<_ACEOF
 
9485
/* confdefs.h.  */
 
9486
_ACEOF
 
9487
cat confdefs.h >>conftest.$ac_ext
 
9488
cat >>conftest.$ac_ext <<_ACEOF
 
9489
/* end confdefs.h.  */
 
9490
$ac_includes_default
 
9491
int
 
9492
main ()
 
9493
{
 
9494
#ifndef getenv
 
9495
  (void) getenv;
 
9496
#endif
 
9497
 
 
9498
  ;
 
9499
  return 0;
 
9500
}
 
9501
_ACEOF
 
9502
rm -f conftest.$ac_objext
 
9503
if { (ac_try="$ac_compile"
 
9504
case "(($ac_try" in
 
9505
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9506
  *) ac_try_echo=$ac_try;;
 
9507
esac
 
9508
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9509
  (eval "$ac_compile") 2>conftest.er1
 
9510
  ac_status=$?
 
9511
  grep -v '^ *+' conftest.er1 >conftest.err
 
9512
  rm -f conftest.er1
 
9513
  cat conftest.err >&5
 
9514
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9515
  (exit $ac_status); } && {
 
9516
         test -z "$ac_c_werror_flag" ||
 
9517
         test ! -s conftest.err
 
9518
       } && test -s conftest.$ac_objext; then
 
9519
  ac_cv_have_decl_getenv=yes
 
9520
else
 
9521
  echo "$as_me: failed program was:" >&5
 
9522
sed 's/^/| /' conftest.$ac_ext >&5
 
9523
 
 
9524
        ac_cv_have_decl_getenv=no
 
9525
fi
 
9526
 
 
9527
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9528
fi
 
9529
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
 
9530
echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6; }
 
9531
if test $ac_cv_have_decl_getenv = yes; then
 
9532
 
 
9533
cat >>confdefs.h <<_ACEOF
 
9534
#define HAVE_DECL_GETENV 1
 
9535
_ACEOF
 
9536
 
 
9537
 
 
9538
else
 
9539
  cat >>confdefs.h <<_ACEOF
 
9540
#define HAVE_DECL_GETENV 0
 
9541
_ACEOF
 
9542
 
 
9543
 
 
9544
fi
 
9545
 
 
9546
 
 
9547
 
 
9548
 
 
9549
 
 
9550
 
 
9551
 
 
9552
 
 
9553
 
 
9554
 
 
9555
 
 
9556
 
 
9557
 
 
9558
 
 
9559
 
 
9560
{ echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
 
9561
echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6; }
 
9562
if test "${ac_cv_c_restrict+set}" = set; then
 
9563
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9564
else
 
9565
  ac_cv_c_restrict=no
 
9566
   # The order here caters to the fact that C++ does not require restrict.
 
9567
   for ac_kw in __restrict __restrict__ _Restrict restrict; do
 
9568
     cat >conftest.$ac_ext <<_ACEOF
 
9569
/* confdefs.h.  */
 
9570
_ACEOF
 
9571
cat confdefs.h >>conftest.$ac_ext
 
9572
cat >>conftest.$ac_ext <<_ACEOF
 
9573
/* end confdefs.h.  */
 
9574
typedef int * int_ptr;
 
9575
        int foo (int_ptr $ac_kw ip) {
 
9576
        return ip[0];
 
9577
       }
 
9578
int
 
9579
main ()
 
9580
{
 
9581
int s[1];
 
9582
        int * $ac_kw t = s;
 
9583
        t[0] = 0;
 
9584
        return foo(t)
 
9585
  ;
 
9586
  return 0;
 
9587
}
 
9588
_ACEOF
 
9589
rm -f conftest.$ac_objext
 
9590
if { (ac_try="$ac_compile"
 
9591
case "(($ac_try" in
 
9592
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9593
  *) ac_try_echo=$ac_try;;
 
9594
esac
 
9595
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9596
  (eval "$ac_compile") 2>conftest.er1
 
9597
  ac_status=$?
 
9598
  grep -v '^ *+' conftest.er1 >conftest.err
 
9599
  rm -f conftest.er1
 
9600
  cat conftest.err >&5
 
9601
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9602
  (exit $ac_status); } && {
 
9603
         test -z "$ac_c_werror_flag" ||
 
9604
         test ! -s conftest.err
 
9605
       } && test -s conftest.$ac_objext; then
 
9606
  ac_cv_c_restrict=$ac_kw
 
9607
else
 
9608
  echo "$as_me: failed program was:" >&5
 
9609
sed 's/^/| /' conftest.$ac_ext >&5
 
9610
 
 
9611
 
 
9612
fi
 
9613
 
 
9614
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9615
     test "$ac_cv_c_restrict" != no && break
 
9616
   done
 
9617
 
 
9618
fi
 
9619
{ echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
 
9620
echo "${ECHO_T}$ac_cv_c_restrict" >&6; }
 
9621
 
 
9622
 
 
9623
 case $ac_cv_c_restrict in
 
9624
   restrict) ;;
 
9625
   no) cat >>confdefs.h <<\_ACEOF
 
9626
#define restrict
 
9627
_ACEOF
 
9628
 ;;
 
9629
   *)  cat >>confdefs.h <<_ACEOF
 
9630
#define restrict $ac_cv_c_restrict
 
9631
_ACEOF
 
9632
 ;;
 
9633
 esac
 
9634
 
 
9635
 
 
9636
 
 
9637
 
 
9638
 
 
9639
 
 
9640
 
 
9641
 
 
9642
 
 
9643
 
 
9644
 
 
9645
 
 
9646
  :
 
9647
 
 
9648
 
 
9649
 
 
9650
 
 
9651
 
 
9652
 
 
9653
 
 
9654
     if test $gl_cv_have_include_next = yes; then
 
9655
       gl_cv_next_sys_time_h='<'sys/time.h'>'
 
9656
     else
 
9657
       { echo "$as_me:$LINENO: checking absolute name of <sys/time.h>" >&5
 
9658
echo $ECHO_N "checking absolute name of <sys/time.h>... $ECHO_C" >&6; }
 
9659
if test "${gl_cv_next_sys_time_h+set}" = set; then
 
9660
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9661
else
 
9662
 
 
9663
          if test $ac_cv_header_sys_time_h = yes; then
 
9664
            cat >conftest.$ac_ext <<_ACEOF
 
9665
/* confdefs.h.  */
 
9666
_ACEOF
 
9667
cat confdefs.h >>conftest.$ac_ext
 
9668
cat >>conftest.$ac_ext <<_ACEOF
 
9669
/* end confdefs.h.  */
 
9670
#include <sys/time.h>
 
9671
 
 
9672
_ACEOF
 
9673
                                    gl_cv_next_sys_time_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
9674
               sed -n '\#/sys/time.h#{
 
9675
                 s#.*"\(.*/sys/time.h\)".*#\1#
 
9676
                 s#^/[^/]#//&#
 
9677
                 p
 
9678
                 q
 
9679
               }'`'"'
 
9680
          else
 
9681
            gl_cv_next_sys_time_h='<'sys/time.h'>'
 
9682
          fi
 
9683
 
 
9684
fi
 
9685
{ echo "$as_me:$LINENO: result: $gl_cv_next_sys_time_h" >&5
 
9686
echo "${ECHO_T}$gl_cv_next_sys_time_h" >&6; }
 
9687
     fi
 
9688
     NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
 
9689
 
 
9690
 
 
9691
 
 
9692
 
 
9693
  if test $ac_cv_header_sys_time_h = yes; then
 
9694
    HAVE_SYS_TIME_H=1
 
9695
  else
 
9696
    HAVE_SYS_TIME_H=0
 
9697
  fi
 
9698
 
 
9699
 
 
9700
  { echo "$as_me:$LINENO: checking for struct timeval" >&5
 
9701
echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
 
9702
if test "${gl_cv_sys_struct_timeval+set}" = set; then
 
9703
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9704
else
 
9705
  cat >conftest.$ac_ext <<_ACEOF
 
9706
/* confdefs.h.  */
 
9707
_ACEOF
 
9708
cat confdefs.h >>conftest.$ac_ext
 
9709
cat >>conftest.$ac_ext <<_ACEOF
 
9710
/* end confdefs.h.  */
 
9711
#if HAVE_SYS_TIME_H
 
9712
             #include <sys/time.h>
 
9713
            #endif
 
9714
            #include <time.h>
 
9715
 
 
9716
int
 
9717
main ()
 
9718
{
 
9719
static struct timeval x; x.tv_sec = x.tv_usec;
 
9720
  ;
 
9721
  return 0;
 
9722
}
 
9723
_ACEOF
 
9724
rm -f conftest.$ac_objext
 
9725
if { (ac_try="$ac_compile"
 
9726
case "(($ac_try" in
 
9727
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9728
  *) ac_try_echo=$ac_try;;
 
9729
esac
 
9730
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9731
  (eval "$ac_compile") 2>conftest.er1
 
9732
  ac_status=$?
 
9733
  grep -v '^ *+' conftest.er1 >conftest.err
 
9734
  rm -f conftest.er1
 
9735
  cat conftest.err >&5
 
9736
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9737
  (exit $ac_status); } && {
 
9738
         test -z "$ac_c_werror_flag" ||
 
9739
         test ! -s conftest.err
 
9740
       } && test -s conftest.$ac_objext; then
 
9741
  gl_cv_sys_struct_timeval=yes
 
9742
else
 
9743
  echo "$as_me: failed program was:" >&5
 
9744
sed 's/^/| /' conftest.$ac_ext >&5
 
9745
 
 
9746
        gl_cv_sys_struct_timeval=no
 
9747
fi
 
9748
 
 
9749
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9750
fi
 
9751
{ echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timeval" >&5
 
9752
echo "${ECHO_T}$gl_cv_sys_struct_timeval" >&6; }
 
9753
  if test $gl_cv_sys_struct_timeval = yes; then
 
9754
    HAVE_STRUCT_TIMEVAL=1
 
9755
  else
 
9756
    HAVE_STRUCT_TIMEVAL=0
 
9757
  fi
 
9758
 
 
9759
 
 
9760
    REPLACE_GETTIMEOFDAY=0
 
9761
 
 
9762
  if test $HAVE_SYS_TIME_H = 0 || test $HAVE_STRUCT_TIMEVAL = 0; then
 
9763
    SYS_TIME_H=sys/time.h
 
9764
  else
 
9765
    SYS_TIME_H=
 
9766
  fi
 
9767
 
 
9768
 
 
9769
 
 
9770
 
8751
9771
 
8752
9772
 
8753
9773
  { echo "$as_me:$LINENO: checking for long long int" >&5
11024
12044
_ACEOF
11025
12045
 
11026
12046
 
11027
 
{ echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
11028
 
echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6; }
11029
 
if test "${ac_cv_c_restrict+set}" = set; then
 
12047
 
 
12048
    { echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
 
12049
echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6; }
 
12050
if test "${gl_cv_func_mbrtowc+set}" = set; then
11030
12051
  echo $ECHO_N "(cached) $ECHO_C" >&6
11031
12052
else
11032
 
  ac_cv_c_restrict=no
11033
 
   # The order here caters to the fact that C++ does not require restrict.
11034
 
   for ac_kw in __restrict __restrict__ _Restrict restrict; do
11035
 
     cat >conftest.$ac_ext <<_ACEOF
 
12053
  cat >conftest.$ac_ext <<_ACEOF
11036
12054
/* confdefs.h.  */
11037
12055
_ACEOF
11038
12056
cat confdefs.h >>conftest.$ac_ext
11039
12057
cat >>conftest.$ac_ext <<_ACEOF
11040
12058
/* end confdefs.h.  */
11041
 
typedef int * int_ptr;
11042
 
        int foo (int_ptr $ac_kw ip) {
11043
 
        return ip[0];
11044
 
       }
 
12059
#include <wchar.h>
11045
12060
int
11046
12061
main ()
11047
12062
{
11048
 
int s[1];
11049
 
        int * $ac_kw t = s;
11050
 
        t[0] = 0;
11051
 
        return foo(t)
 
12063
wchar_t wc;
 
12064
              char const s[] = "";
 
12065
              size_t n = 1;
 
12066
              mbstate_t state;
 
12067
              return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
11052
12068
  ;
11053
12069
  return 0;
11054
12070
}
11055
12071
_ACEOF
11056
 
rm -f conftest.$ac_objext
11057
 
if { (ac_try="$ac_compile"
 
12072
rm -f conftest.$ac_objext conftest$ac_exeext
 
12073
if { (ac_try="$ac_link"
11058
12074
case "(($ac_try" in
11059
12075
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11060
12076
  *) ac_try_echo=$ac_try;;
11061
12077
esac
11062
12078
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11063
 
  (eval "$ac_compile") 2>conftest.er1
 
12079
  (eval "$ac_link") 2>conftest.er1
11064
12080
  ac_status=$?
11065
12081
  grep -v '^ *+' conftest.er1 >conftest.err
11066
12082
  rm -f conftest.er1
11069
12085
  (exit $ac_status); } && {
11070
12086
         test -z "$ac_c_werror_flag" ||
11071
12087
         test ! -s conftest.err
11072
 
       } && test -s conftest.$ac_objext; then
11073
 
  ac_cv_c_restrict=$ac_kw
 
12088
       } && test -s conftest$ac_exeext &&
 
12089
       $as_test_x conftest$ac_exeext; then
 
12090
  gl_cv_func_mbrtowc=yes
11074
12091
else
11075
12092
  echo "$as_me: failed program was:" >&5
11076
12093
sed 's/^/| /' conftest.$ac_ext >&5
11077
12094
 
11078
 
 
11079
 
fi
11080
 
 
11081
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11082
 
     test "$ac_cv_c_restrict" != no && break
11083
 
   done
11084
 
 
11085
 
fi
11086
 
{ echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
11087
 
echo "${ECHO_T}$ac_cv_c_restrict" >&6; }
11088
 
 
11089
 
 
11090
 
 case $ac_cv_c_restrict in
11091
 
   restrict) ;;
11092
 
   no) cat >>confdefs.h <<\_ACEOF
11093
 
#define restrict
11094
 
_ACEOF
11095
 
 ;;
11096
 
   *)  cat >>confdefs.h <<_ACEOF
11097
 
#define restrict $ac_cv_c_restrict
11098
 
_ACEOF
11099
 
 ;;
11100
 
 esac
 
12095
        gl_cv_func_mbrtowc=no
 
12096
fi
 
12097
 
 
12098
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
12099
      conftest$ac_exeext conftest.$ac_ext
 
12100
fi
 
12101
{ echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc" >&5
 
12102
echo "${ECHO_T}$gl_cv_func_mbrtowc" >&6; }
 
12103
  if test $gl_cv_func_mbrtowc = yes; then
 
12104
 
 
12105
cat >>confdefs.h <<\_ACEOF
 
12106
#define HAVE_MBRTOWC 1
 
12107
_ACEOF
 
12108
 
 
12109
  fi
11101
12110
 
11102
12111
 
11103
12112
  GNULIB_MEMMEM=0;
11144
12153
  HAVE_DECL_STRTOK_R=1;
11145
12154
  HAVE_DECL_STRERROR=1;
11146
12155
  REPLACE_STRERROR=0;
 
12156
  REPLACE_MEMMEM=0;
11147
12157
 
11148
12158
 
11149
12159
      { echo "$as_me:$LINENO: checking whether memrchr is declared" >&5
11257
12267
 
11258
12268
 
11259
12269
 
11260
 
 
11261
 
 
11262
 
 
11263
 
 
11264
 
 
11265
 
 
11266
 
 
11267
 
 
11268
 
 
11269
 
 
11270
 
 
11271
 
 
11272
12270
{ echo "$as_me:$LINENO: checking for long file names" >&5
11273
12271
echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
11274
12272
if test "${ac_cv_sys_long_file_names+set}" = set; then
11330
12328
 
11331
12329
 
11332
12330
 
 
12331
 
 
12332
 
 
12333
 
 
12334
 
 
12335
 
 
12336
 
11333
12337
      { echo "$as_me:$LINENO: checking whether strdup is declared" >&5
11334
12338
echo $ECHO_N "checking whether strdup is declared... $ECHO_C" >&6; }
11335
12339
if test "${ac_cv_have_decl_strdup+set}" = set; then
11576
12580
 
11577
12581
  fi
11578
12582
 
11579
 
{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11580
 
echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
11581
 
if test "${ac_cv_struct_tm+set}" = set; then
11582
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11583
 
else
11584
 
  cat >conftest.$ac_ext <<_ACEOF
11585
 
/* confdefs.h.  */
11586
 
_ACEOF
11587
 
cat confdefs.h >>conftest.$ac_ext
11588
 
cat >>conftest.$ac_ext <<_ACEOF
11589
 
/* end confdefs.h.  */
11590
 
#include <sys/types.h>
11591
 
#include <time.h>
11592
 
 
11593
 
int
11594
 
main ()
11595
 
{
11596
 
struct tm tm;
11597
 
                                     int *p = &tm.tm_sec;
11598
 
                                     return !p;
11599
 
  ;
11600
 
  return 0;
11601
 
}
11602
 
_ACEOF
11603
 
rm -f conftest.$ac_objext
11604
 
if { (ac_try="$ac_compile"
11605
 
case "(($ac_try" in
11606
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11607
 
  *) ac_try_echo=$ac_try;;
11608
 
esac
11609
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11610
 
  (eval "$ac_compile") 2>conftest.er1
11611
 
  ac_status=$?
11612
 
  grep -v '^ *+' conftest.er1 >conftest.err
11613
 
  rm -f conftest.er1
11614
 
  cat conftest.err >&5
11615
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616
 
  (exit $ac_status); } && {
11617
 
         test -z "$ac_c_werror_flag" ||
11618
 
         test ! -s conftest.err
11619
 
       } && test -s conftest.$ac_objext; then
11620
 
  ac_cv_struct_tm=time.h
11621
 
else
11622
 
  echo "$as_me: failed program was:" >&5
11623
 
sed 's/^/| /' conftest.$ac_ext >&5
11624
 
 
11625
 
        ac_cv_struct_tm=sys/time.h
11626
 
fi
11627
 
 
11628
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11629
 
fi
11630
 
{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11631
 
echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
11632
 
if test $ac_cv_struct_tm = sys/time.h; then
11633
 
 
11634
 
cat >>confdefs.h <<\_ACEOF
11635
 
#define TM_IN_SYS_TIME 1
11636
 
_ACEOF
11637
 
 
11638
 
fi
11639
 
 
11640
 
{ echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
11641
 
echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
11642
 
if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
11643
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11644
 
else
11645
 
  cat >conftest.$ac_ext <<_ACEOF
11646
 
/* confdefs.h.  */
11647
 
_ACEOF
11648
 
cat confdefs.h >>conftest.$ac_ext
11649
 
cat >>conftest.$ac_ext <<_ACEOF
11650
 
/* end confdefs.h.  */
11651
 
#include <sys/types.h>
11652
 
#include <$ac_cv_struct_tm>
11653
 
 
11654
 
 
11655
 
int
11656
 
main ()
11657
 
{
11658
 
static struct tm ac_aggr;
11659
 
if (ac_aggr.tm_zone)
11660
 
return 0;
11661
 
  ;
11662
 
  return 0;
11663
 
}
11664
 
_ACEOF
11665
 
rm -f conftest.$ac_objext
11666
 
if { (ac_try="$ac_compile"
11667
 
case "(($ac_try" in
11668
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11669
 
  *) ac_try_echo=$ac_try;;
11670
 
esac
11671
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11672
 
  (eval "$ac_compile") 2>conftest.er1
11673
 
  ac_status=$?
11674
 
  grep -v '^ *+' conftest.er1 >conftest.err
11675
 
  rm -f conftest.er1
11676
 
  cat conftest.err >&5
11677
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678
 
  (exit $ac_status); } && {
11679
 
         test -z "$ac_c_werror_flag" ||
11680
 
         test ! -s conftest.err
11681
 
       } && test -s conftest.$ac_objext; then
11682
 
  ac_cv_member_struct_tm_tm_zone=yes
11683
 
else
11684
 
  echo "$as_me: failed program was:" >&5
11685
 
sed 's/^/| /' conftest.$ac_ext >&5
11686
 
 
11687
 
        cat >conftest.$ac_ext <<_ACEOF
11688
 
/* confdefs.h.  */
11689
 
_ACEOF
11690
 
cat confdefs.h >>conftest.$ac_ext
11691
 
cat >>conftest.$ac_ext <<_ACEOF
11692
 
/* end confdefs.h.  */
11693
 
#include <sys/types.h>
11694
 
#include <$ac_cv_struct_tm>
11695
 
 
11696
 
 
11697
 
int
11698
 
main ()
11699
 
{
11700
 
static struct tm ac_aggr;
11701
 
if (sizeof ac_aggr.tm_zone)
11702
 
return 0;
11703
 
  ;
11704
 
  return 0;
11705
 
}
11706
 
_ACEOF
11707
 
rm -f conftest.$ac_objext
11708
 
if { (ac_try="$ac_compile"
11709
 
case "(($ac_try" in
11710
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11711
 
  *) ac_try_echo=$ac_try;;
11712
 
esac
11713
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11714
 
  (eval "$ac_compile") 2>conftest.er1
11715
 
  ac_status=$?
11716
 
  grep -v '^ *+' conftest.er1 >conftest.err
11717
 
  rm -f conftest.er1
11718
 
  cat conftest.err >&5
11719
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11720
 
  (exit $ac_status); } && {
11721
 
         test -z "$ac_c_werror_flag" ||
11722
 
         test ! -s conftest.err
11723
 
       } && test -s conftest.$ac_objext; then
11724
 
  ac_cv_member_struct_tm_tm_zone=yes
11725
 
else
11726
 
  echo "$as_me: failed program was:" >&5
11727
 
sed 's/^/| /' conftest.$ac_ext >&5
11728
 
 
11729
 
        ac_cv_member_struct_tm_tm_zone=no
11730
 
fi
11731
 
 
11732
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11733
 
fi
11734
 
 
11735
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11736
 
fi
11737
 
{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
11738
 
echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
11739
 
if test $ac_cv_member_struct_tm_tm_zone = yes; then
11740
 
 
11741
 
cat >>confdefs.h <<_ACEOF
11742
 
#define HAVE_STRUCT_TM_TM_ZONE 1
11743
 
_ACEOF
11744
 
 
11745
 
 
11746
 
fi
11747
 
 
11748
 
if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11749
 
 
11750
 
cat >>confdefs.h <<\_ACEOF
11751
 
#define HAVE_TM_ZONE 1
11752
 
_ACEOF
11753
 
 
11754
 
else
11755
 
  { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
11756
 
echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
11757
 
if test "${ac_cv_have_decl_tzname+set}" = set; then
11758
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11759
 
else
11760
 
  cat >conftest.$ac_ext <<_ACEOF
11761
 
/* confdefs.h.  */
11762
 
_ACEOF
11763
 
cat confdefs.h >>conftest.$ac_ext
11764
 
cat >>conftest.$ac_ext <<_ACEOF
11765
 
/* end confdefs.h.  */
11766
 
#include <time.h>
11767
 
 
11768
 
int
11769
 
main ()
11770
 
{
11771
 
#ifndef tzname
11772
 
  (void) tzname;
11773
 
#endif
11774
 
 
11775
 
  ;
11776
 
  return 0;
11777
 
}
11778
 
_ACEOF
11779
 
rm -f conftest.$ac_objext
11780
 
if { (ac_try="$ac_compile"
11781
 
case "(($ac_try" in
11782
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11783
 
  *) ac_try_echo=$ac_try;;
11784
 
esac
11785
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11786
 
  (eval "$ac_compile") 2>conftest.er1
11787
 
  ac_status=$?
11788
 
  grep -v '^ *+' conftest.er1 >conftest.err
11789
 
  rm -f conftest.er1
11790
 
  cat conftest.err >&5
11791
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792
 
  (exit $ac_status); } && {
11793
 
         test -z "$ac_c_werror_flag" ||
11794
 
         test ! -s conftest.err
11795
 
       } && test -s conftest.$ac_objext; then
11796
 
  ac_cv_have_decl_tzname=yes
11797
 
else
11798
 
  echo "$as_me: failed program was:" >&5
11799
 
sed 's/^/| /' conftest.$ac_ext >&5
11800
 
 
11801
 
        ac_cv_have_decl_tzname=no
11802
 
fi
11803
 
 
11804
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11805
 
fi
11806
 
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
11807
 
echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
11808
 
if test $ac_cv_have_decl_tzname = yes; then
11809
 
 
11810
 
cat >>confdefs.h <<_ACEOF
11811
 
#define HAVE_DECL_TZNAME 1
11812
 
_ACEOF
11813
 
 
11814
 
 
11815
 
else
11816
 
  cat >>confdefs.h <<_ACEOF
11817
 
#define HAVE_DECL_TZNAME 0
11818
 
_ACEOF
11819
 
 
11820
 
 
11821
 
fi
11822
 
 
11823
 
 
11824
 
  { echo "$as_me:$LINENO: checking for tzname" >&5
11825
 
echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
11826
 
if test "${ac_cv_var_tzname+set}" = set; then
11827
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11828
 
else
11829
 
  cat >conftest.$ac_ext <<_ACEOF
11830
 
/* confdefs.h.  */
11831
 
_ACEOF
11832
 
cat confdefs.h >>conftest.$ac_ext
11833
 
cat >>conftest.$ac_ext <<_ACEOF
11834
 
/* end confdefs.h.  */
11835
 
#include <time.h>
11836
 
#if !HAVE_DECL_TZNAME
11837
 
extern char *tzname[];
11838
 
#endif
11839
 
 
11840
 
int
11841
 
main ()
11842
 
{
11843
 
return tzname[0][0];
11844
 
  ;
11845
 
  return 0;
11846
 
}
11847
 
_ACEOF
11848
 
rm -f conftest.$ac_objext conftest$ac_exeext
11849
 
if { (ac_try="$ac_link"
11850
 
case "(($ac_try" in
11851
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11852
 
  *) ac_try_echo=$ac_try;;
11853
 
esac
11854
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11855
 
  (eval "$ac_link") 2>conftest.er1
11856
 
  ac_status=$?
11857
 
  grep -v '^ *+' conftest.er1 >conftest.err
11858
 
  rm -f conftest.er1
11859
 
  cat conftest.err >&5
11860
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861
 
  (exit $ac_status); } && {
11862
 
         test -z "$ac_c_werror_flag" ||
11863
 
         test ! -s conftest.err
11864
 
       } && test -s conftest$ac_exeext &&
11865
 
       $as_test_x conftest$ac_exeext; then
11866
 
  ac_cv_var_tzname=yes
11867
 
else
11868
 
  echo "$as_me: failed program was:" >&5
11869
 
sed 's/^/| /' conftest.$ac_ext >&5
11870
 
 
11871
 
        ac_cv_var_tzname=no
11872
 
fi
11873
 
 
11874
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11875
 
      conftest$ac_exeext conftest.$ac_ext
11876
 
fi
11877
 
{ echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11878
 
echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
11879
 
  if test $ac_cv_var_tzname = yes; then
11880
 
 
11881
 
cat >>confdefs.h <<\_ACEOF
11882
 
#define HAVE_TZNAME 1
11883
 
_ACEOF
11884
 
 
11885
 
  fi
11886
 
fi
11887
 
 
11888
 
 
11889
 
 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
11890
 
echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
11891
 
if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
11892
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11893
 
else
11894
 
  cat >conftest.$ac_ext <<_ACEOF
11895
 
/* confdefs.h.  */
11896
 
_ACEOF
11897
 
cat confdefs.h >>conftest.$ac_ext
11898
 
cat >>conftest.$ac_ext <<_ACEOF
11899
 
/* end confdefs.h.  */
11900
 
#include <time.h>
11901
 
 
11902
 
int
11903
 
main ()
11904
 
{
11905
 
static struct tm ac_aggr;
11906
 
if (ac_aggr.tm_gmtoff)
11907
 
return 0;
11908
 
  ;
11909
 
  return 0;
11910
 
}
11911
 
_ACEOF
11912
 
rm -f conftest.$ac_objext
11913
 
if { (ac_try="$ac_compile"
11914
 
case "(($ac_try" in
11915
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11916
 
  *) ac_try_echo=$ac_try;;
11917
 
esac
11918
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11919
 
  (eval "$ac_compile") 2>conftest.er1
11920
 
  ac_status=$?
11921
 
  grep -v '^ *+' conftest.er1 >conftest.err
11922
 
  rm -f conftest.er1
11923
 
  cat conftest.err >&5
11924
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925
 
  (exit $ac_status); } && {
11926
 
         test -z "$ac_c_werror_flag" ||
11927
 
         test ! -s conftest.err
11928
 
       } && test -s conftest.$ac_objext; then
11929
 
  ac_cv_member_struct_tm_tm_gmtoff=yes
11930
 
else
11931
 
  echo "$as_me: failed program was:" >&5
11932
 
sed 's/^/| /' conftest.$ac_ext >&5
11933
 
 
11934
 
        cat >conftest.$ac_ext <<_ACEOF
11935
 
/* confdefs.h.  */
11936
 
_ACEOF
11937
 
cat confdefs.h >>conftest.$ac_ext
11938
 
cat >>conftest.$ac_ext <<_ACEOF
11939
 
/* end confdefs.h.  */
11940
 
#include <time.h>
11941
 
 
11942
 
int
11943
 
main ()
11944
 
{
11945
 
static struct tm ac_aggr;
11946
 
if (sizeof ac_aggr.tm_gmtoff)
11947
 
return 0;
11948
 
  ;
11949
 
  return 0;
11950
 
}
11951
 
_ACEOF
11952
 
rm -f conftest.$ac_objext
11953
 
if { (ac_try="$ac_compile"
11954
 
case "(($ac_try" in
11955
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11956
 
  *) ac_try_echo=$ac_try;;
11957
 
esac
11958
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11959
 
  (eval "$ac_compile") 2>conftest.er1
11960
 
  ac_status=$?
11961
 
  grep -v '^ *+' conftest.er1 >conftest.err
11962
 
  rm -f conftest.er1
11963
 
  cat conftest.err >&5
11964
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965
 
  (exit $ac_status); } && {
11966
 
         test -z "$ac_c_werror_flag" ||
11967
 
         test ! -s conftest.err
11968
 
       } && test -s conftest.$ac_objext; then
11969
 
  ac_cv_member_struct_tm_tm_gmtoff=yes
11970
 
else
11971
 
  echo "$as_me: failed program was:" >&5
11972
 
sed 's/^/| /' conftest.$ac_ext >&5
11973
 
 
11974
 
        ac_cv_member_struct_tm_tm_gmtoff=no
11975
 
fi
11976
 
 
11977
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11978
 
fi
11979
 
 
11980
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11981
 
fi
11982
 
{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
11983
 
echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
11984
 
if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
11985
 
 
11986
 
cat >>confdefs.h <<\_ACEOF
11987
 
#define HAVE_TM_GMTOFF 1
11988
 
_ACEOF
11989
 
 
11990
 
fi
11991
 
 
11992
 
 
11993
12583
 
11994
12584
 
11995
12585
 
12301
12891
 
12302
12892
 
12303
12893
 
12304
 
 
12305
 
 
12306
 
 
12307
 
 
12308
 
 
12309
 
 
12310
12894
  :
12311
12895
 
12312
12896
 
12500
13084
 
12501
13085
 
12502
13086
 
 
13087
  { echo "$as_me:$LINENO: checking for wint_t" >&5
 
13088
echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
 
13089
if test "${gt_cv_c_wint_t+set}" = set; then
 
13090
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13091
else
 
13092
  cat >conftest.$ac_ext <<_ACEOF
 
13093
/* confdefs.h.  */
 
13094
_ACEOF
 
13095
cat confdefs.h >>conftest.$ac_ext
 
13096
cat >>conftest.$ac_ext <<_ACEOF
 
13097
/* end confdefs.h.  */
 
13098
 
 
13099
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
 
13100
   <wchar.h>.
 
13101
   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
 
13102
   before <wchar.h>.  */
 
13103
#include <stddef.h>
 
13104
#include <stdio.h>
 
13105
#include <time.h>
 
13106
#include <wchar.h>
 
13107
       wint_t foo = (wchar_t)'\0';
 
13108
int
 
13109
main ()
 
13110
{
 
13111
 
 
13112
  ;
 
13113
  return 0;
 
13114
}
 
13115
_ACEOF
 
13116
rm -f conftest.$ac_objext
 
13117
if { (ac_try="$ac_compile"
 
13118
case "(($ac_try" in
 
13119
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13120
  *) ac_try_echo=$ac_try;;
 
13121
esac
 
13122
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13123
  (eval "$ac_compile") 2>conftest.er1
 
13124
  ac_status=$?
 
13125
  grep -v '^ *+' conftest.er1 >conftest.err
 
13126
  rm -f conftest.er1
 
13127
  cat conftest.err >&5
 
13128
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13129
  (exit $ac_status); } && {
 
13130
         test -z "$ac_c_werror_flag" ||
 
13131
         test ! -s conftest.err
 
13132
       } && test -s conftest.$ac_objext; then
 
13133
  gt_cv_c_wint_t=yes
 
13134
else
 
13135
  echo "$as_me: failed program was:" >&5
 
13136
sed 's/^/| /' conftest.$ac_ext >&5
 
13137
 
 
13138
        gt_cv_c_wint_t=no
 
13139
fi
 
13140
 
 
13141
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13142
fi
 
13143
{ echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
 
13144
echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
 
13145
  if test $gt_cv_c_wint_t = yes; then
 
13146
 
 
13147
cat >>confdefs.h <<\_ACEOF
 
13148
#define HAVE_WINT_T 1
 
13149
_ACEOF
 
13150
 
 
13151
  fi
 
13152
 
 
13153
 
 
13154
  { echo "$as_me:$LINENO: checking for wchar_t" >&5
 
13155
echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
 
13156
if test "${gt_cv_c_wchar_t+set}" = set; then
 
13157
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13158
else
 
13159
  cat >conftest.$ac_ext <<_ACEOF
 
13160
/* confdefs.h.  */
 
13161
_ACEOF
 
13162
cat confdefs.h >>conftest.$ac_ext
 
13163
cat >>conftest.$ac_ext <<_ACEOF
 
13164
/* end confdefs.h.  */
 
13165
#include <stddef.h>
 
13166
       wchar_t foo = (wchar_t)'\0';
 
13167
int
 
13168
main ()
 
13169
{
 
13170
 
 
13171
  ;
 
13172
  return 0;
 
13173
}
 
13174
_ACEOF
 
13175
rm -f conftest.$ac_objext
 
13176
if { (ac_try="$ac_compile"
 
13177
case "(($ac_try" in
 
13178
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13179
  *) ac_try_echo=$ac_try;;
 
13180
esac
 
13181
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13182
  (eval "$ac_compile") 2>conftest.er1
 
13183
  ac_status=$?
 
13184
  grep -v '^ *+' conftest.er1 >conftest.err
 
13185
  rm -f conftest.er1
 
13186
  cat conftest.err >&5
 
13187
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13188
  (exit $ac_status); } && {
 
13189
         test -z "$ac_c_werror_flag" ||
 
13190
         test ! -s conftest.err
 
13191
       } && test -s conftest.$ac_objext; then
 
13192
  gt_cv_c_wchar_t=yes
 
13193
else
 
13194
  echo "$as_me: failed program was:" >&5
 
13195
sed 's/^/| /' conftest.$ac_ext >&5
 
13196
 
 
13197
        gt_cv_c_wchar_t=no
 
13198
fi
 
13199
 
 
13200
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
13201
fi
 
13202
{ echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
 
13203
echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
 
13204
  if test $gt_cv_c_wchar_t = yes; then
 
13205
 
 
13206
cat >>confdefs.h <<\_ACEOF
 
13207
#define HAVE_WCHAR_T 1
 
13208
_ACEOF
 
13209
 
 
13210
  fi
 
13211
 
 
13212
 
 
13213
 
 
13214
 
 
13215
 
12503
13216
 
12504
13217
 
12505
13218
 
12514
13227
  gl_cond_libtool=false
12515
13228
  gl_libdeps=
12516
13229
  gl_ltlibdeps=
 
13230
 
 
13231
 
 
13232
 
12517
13233
  gl_source_base='gnulib/lib'
12518
13234
 
12519
13235
 
12589
13305
 
12590
13306
 
12591
13307
 
 
13308
  { echo "$as_me:$LINENO: checking whether to enable assertions" >&5
 
13309
echo $ECHO_N "checking whether to enable assertions... $ECHO_C" >&6; }
 
13310
  # Check whether --enable-assert was given.
 
13311
if test "${enable_assert+set}" = set; then
 
13312
  enableval=$enable_assert;  { echo "$as_me:$LINENO: result: no" >&5
 
13313
echo "${ECHO_T}no" >&6; }
 
13314
 
 
13315
cat >>confdefs.h <<\_ACEOF
 
13316
#define NDEBUG 1
 
13317
_ACEOF
 
13318
 
 
13319
else
 
13320
   { echo "$as_me:$LINENO: result: yes" >&5
 
13321
echo "${ECHO_T}yes" >&6; }
 
13322
 
 
13323
fi
 
13324
 
 
13325
 
 
13326
 
12592
13327
 
12593
13328
 
12594
13329
 
12864
13599
 
12865
13600
 
12866
13601
 
 
13602
  # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
 
13603
  # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
 
13604
 
 
13605
  # Save and restore LIBS so e.g., -lrt, isn't added to it.  Otherwise, *all*
 
13606
  # programs in the package would end up linked with that potentially-shared
 
13607
  # library, inducing unnecessary run-time overhead.
 
13608
  gl_saved_libs=$LIBS
 
13609
    { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
 
13610
echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
 
13611
if test "${ac_cv_search_clock_gettime+set}" = set; then
 
13612
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13613
else
 
13614
  ac_func_search_save_LIBS=$LIBS
 
13615
cat >conftest.$ac_ext <<_ACEOF
 
13616
/* confdefs.h.  */
 
13617
_ACEOF
 
13618
cat confdefs.h >>conftest.$ac_ext
 
13619
cat >>conftest.$ac_ext <<_ACEOF
 
13620
/* end confdefs.h.  */
 
13621
 
 
13622
/* Override any GCC internal prototype to avoid an error.
 
13623
   Use char because int might match the return type of a GCC
 
13624
   builtin and then its argument prototype would still apply.  */
 
13625
#ifdef __cplusplus
 
13626
extern "C"
 
13627
#endif
 
13628
char clock_gettime ();
 
13629
int
 
13630
main ()
 
13631
{
 
13632
return clock_gettime ();
 
13633
  ;
 
13634
  return 0;
 
13635
}
 
13636
_ACEOF
 
13637
for ac_lib in '' rt posix4; do
 
13638
  if test -z "$ac_lib"; then
 
13639
    ac_res="none required"
 
13640
  else
 
13641
    ac_res=-l$ac_lib
 
13642
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
13643
  fi
 
13644
  rm -f conftest.$ac_objext conftest$ac_exeext
 
13645
if { (ac_try="$ac_link"
 
13646
case "(($ac_try" in
 
13647
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13648
  *) ac_try_echo=$ac_try;;
 
13649
esac
 
13650
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13651
  (eval "$ac_link") 2>conftest.er1
 
13652
  ac_status=$?
 
13653
  grep -v '^ *+' conftest.er1 >conftest.err
 
13654
  rm -f conftest.er1
 
13655
  cat conftest.err >&5
 
13656
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13657
  (exit $ac_status); } && {
 
13658
         test -z "$ac_c_werror_flag" ||
 
13659
         test ! -s conftest.err
 
13660
       } && test -s conftest$ac_exeext &&
 
13661
       $as_test_x conftest$ac_exeext; then
 
13662
  ac_cv_search_clock_gettime=$ac_res
 
13663
else
 
13664
  echo "$as_me: failed program was:" >&5
 
13665
sed 's/^/| /' conftest.$ac_ext >&5
 
13666
 
 
13667
 
 
13668
fi
 
13669
 
 
13670
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
13671
      conftest$ac_exeext
 
13672
  if test "${ac_cv_search_clock_gettime+set}" = set; then
 
13673
  break
 
13674
fi
 
13675
done
 
13676
if test "${ac_cv_search_clock_gettime+set}" = set; then
 
13677
  :
 
13678
else
 
13679
  ac_cv_search_clock_gettime=no
 
13680
fi
 
13681
rm conftest.$ac_ext
 
13682
LIBS=$ac_func_search_save_LIBS
 
13683
fi
 
13684
{ echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
 
13685
echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
 
13686
ac_res=$ac_cv_search_clock_gettime
 
13687
if test "$ac_res" != no; then
 
13688
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
13689
  test "$ac_cv_search_clock_gettime" = "none required" ||
 
13690
                    LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
 
13691
fi
 
13692
 
 
13693
 
 
13694
 
 
13695
 
 
13696
for ac_func in clock_gettime clock_settime
 
13697
do
 
13698
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
13699
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
13700
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
13701
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
13702
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13703
else
 
13704
  cat >conftest.$ac_ext <<_ACEOF
 
13705
/* confdefs.h.  */
 
13706
_ACEOF
 
13707
cat confdefs.h >>conftest.$ac_ext
 
13708
cat >>conftest.$ac_ext <<_ACEOF
 
13709
/* end confdefs.h.  */
 
13710
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
13711
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
13712
#define $ac_func innocuous_$ac_func
 
13713
 
 
13714
/* System header to define __stub macros and hopefully few prototypes,
 
13715
    which can conflict with char $ac_func (); below.
 
13716
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
13717
    <limits.h> exists even on freestanding compilers.  */
 
13718
 
 
13719
#ifdef __STDC__
 
13720
# include <limits.h>
 
13721
#else
 
13722
# include <assert.h>
 
13723
#endif
 
13724
 
 
13725
#undef $ac_func
 
13726
 
 
13727
/* Override any GCC internal prototype to avoid an error.
 
13728
   Use char because int might match the return type of a GCC
 
13729
   builtin and then its argument prototype would still apply.  */
 
13730
#ifdef __cplusplus
 
13731
extern "C"
 
13732
#endif
 
13733
char $ac_func ();
 
13734
/* The GNU C library defines this for functions which it implements
 
13735
    to always fail with ENOSYS.  Some functions are actually named
 
13736
    something starting with __ and the normal name is an alias.  */
 
13737
#if defined __stub_$ac_func || defined __stub___$ac_func
 
13738
choke me
 
13739
#endif
 
13740
 
 
13741
int
 
13742
main ()
 
13743
{
 
13744
return $ac_func ();
 
13745
  ;
 
13746
  return 0;
 
13747
}
 
13748
_ACEOF
 
13749
rm -f conftest.$ac_objext conftest$ac_exeext
 
13750
if { (ac_try="$ac_link"
 
13751
case "(($ac_try" in
 
13752
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13753
  *) ac_try_echo=$ac_try;;
 
13754
esac
 
13755
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13756
  (eval "$ac_link") 2>conftest.er1
 
13757
  ac_status=$?
 
13758
  grep -v '^ *+' conftest.er1 >conftest.err
 
13759
  rm -f conftest.er1
 
13760
  cat conftest.err >&5
 
13761
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13762
  (exit $ac_status); } && {
 
13763
         test -z "$ac_c_werror_flag" ||
 
13764
         test ! -s conftest.err
 
13765
       } && test -s conftest$ac_exeext &&
 
13766
       $as_test_x conftest$ac_exeext; then
 
13767
  eval "$as_ac_var=yes"
 
13768
else
 
13769
  echo "$as_me: failed program was:" >&5
 
13770
sed 's/^/| /' conftest.$ac_ext >&5
 
13771
 
 
13772
        eval "$as_ac_var=no"
 
13773
fi
 
13774
 
 
13775
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
13776
      conftest$ac_exeext conftest.$ac_ext
 
13777
fi
 
13778
ac_res=`eval echo '${'$as_ac_var'}'`
 
13779
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
13780
echo "${ECHO_T}$ac_res" >&6; }
 
13781
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
13782
  cat >>confdefs.h <<_ACEOF
 
13783
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
13784
_ACEOF
 
13785
 
 
13786
fi
 
13787
done
 
13788
 
 
13789
  LIBS=$gl_saved_libs
 
13790
 
 
13791
 
 
13792
 
 
13793
 
12867
13794
 
12868
13795
 
12869
13796
 
12907
13834
 
12908
13835
    :
12909
13836
 
 
13837
 
 
13838
 
 
13839
 
 
13840
 
 
13841
 
 
13842
 
 
13843
 
 
13844
 
 
13845
 
 
13846
  gl_LIBOBJS="$gl_LIBOBJS cycle-check.$ac_objext"
 
13847
 
 
13848
 
12910
13849
  { echo "$as_me:$LINENO: checking for d_ino member in directory struct" >&5
12911
13850
echo $ECHO_N "checking for d_ino member in directory struct... $ECHO_C" >&6; }
12912
13851
if test "${gl_cv_struct_dirent_d_ino+set}" = set; then
12986
13925
   fi
12987
13926
 
12988
13927
 
 
13928
  { echo "$as_me:$LINENO: checking for d_type member in directory struct" >&5
 
13929
echo $ECHO_N "checking for d_type member in directory struct... $ECHO_C" >&6; }
 
13930
if test "${gl_cv_struct_dirent_d_type+set}" = set; then
 
13931
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13932
else
 
13933
  cat >conftest.$ac_ext <<_ACEOF
 
13934
/* confdefs.h.  */
 
13935
_ACEOF
 
13936
cat confdefs.h >>conftest.$ac_ext
 
13937
cat >>conftest.$ac_ext <<_ACEOF
 
13938
/* end confdefs.h.  */
 
13939
 
 
13940
#include <sys/types.h>
 
13941
#include <dirent.h>
 
13942
 
 
13943
int
 
13944
main ()
 
13945
{
 
13946
struct dirent dp; dp.d_type = 0;
 
13947
  ;
 
13948
  return 0;
 
13949
}
 
13950
_ACEOF
 
13951
rm -f conftest.$ac_objext conftest$ac_exeext
 
13952
if { (ac_try="$ac_link"
 
13953
case "(($ac_try" in
 
13954
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13955
  *) ac_try_echo=$ac_try;;
 
13956
esac
 
13957
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13958
  (eval "$ac_link") 2>conftest.er1
 
13959
  ac_status=$?
 
13960
  grep -v '^ *+' conftest.er1 >conftest.err
 
13961
  rm -f conftest.er1
 
13962
  cat conftest.err >&5
 
13963
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13964
  (exit $ac_status); } && {
 
13965
         test -z "$ac_c_werror_flag" ||
 
13966
         test ! -s conftest.err
 
13967
       } && test -s conftest$ac_exeext &&
 
13968
       $as_test_x conftest$ac_exeext; then
 
13969
  gl_cv_struct_dirent_d_type=yes
 
13970
else
 
13971
  echo "$as_me: failed program was:" >&5
 
13972
sed 's/^/| /' conftest.$ac_ext >&5
 
13973
 
 
13974
        gl_cv_struct_dirent_d_type=no
 
13975
fi
 
13976
 
 
13977
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
13978
      conftest$ac_exeext conftest.$ac_ext
 
13979
 
 
13980
 
 
13981
fi
 
13982
{ echo "$as_me:$LINENO: result: $gl_cv_struct_dirent_d_type" >&5
 
13983
echo "${ECHO_T}$gl_cv_struct_dirent_d_type" >&6; }
 
13984
   if test $gl_cv_struct_dirent_d_type = yes; then
 
13985
 
 
13986
cat >>confdefs.h <<\_ACEOF
 
13987
#define HAVE_STRUCT_DIRENT_D_TYPE 1
 
13988
_ACEOF
 
13989
 
 
13990
   fi
 
13991
 
 
13992
 
12989
13993
 
12990
13994
 
12991
13995
 
14938
15942
 
14939
15943
 
14940
15944
 
 
15945
 
 
15946
 
 
15947
 
 
15948
 
 
15949
 
 
15950
  gl_LIBOBJS="$gl_LIBOBJS fts.$ac_objext"
 
15951
 
 
15952
 
 
15953
 
 
15954
 
 
15955
 
 
15956
 
 
15957
 
 
15958
 
 
15959
 
 
15960
 
 
15961
  gl_LIBOBJS="$gl_LIBOBJS openat-proc.$ac_objext"
 
15962
 
 
15963
 
 
15964
 
 
15965
  :
 
15966
 
 
15967
 
 
15968
 
 
15969
 
 
15970
 
 
15971
 
 
15972
  :
 
15973
 
 
15974
 
 
15975
 
 
15976
 
 
15977
 
 
15978
 
 
15979
 
 
15980
 
 
15981
 
 
15982
 
 
15983
 
 
15984
 
 
15985
 
 
15986
 
 
15987
 
 
15988
 
 
15989
 
 
15990
 
 
15991
 
 
15992
 
 
15993
 
 
15994
 
 
15995
 
 
15996
 
 
15997
 
 
15998
 
 
15999
 
 
16000
for ac_func in fchmodat mkdirat openat
 
16001
do
 
16002
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
16003
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
16004
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
16005
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
16006
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16007
else
 
16008
  cat >conftest.$ac_ext <<_ACEOF
 
16009
/* confdefs.h.  */
 
16010
_ACEOF
 
16011
cat confdefs.h >>conftest.$ac_ext
 
16012
cat >>conftest.$ac_ext <<_ACEOF
 
16013
/* end confdefs.h.  */
 
16014
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
16015
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
16016
#define $ac_func innocuous_$ac_func
 
16017
 
 
16018
/* System header to define __stub macros and hopefully few prototypes,
 
16019
    which can conflict with char $ac_func (); below.
 
16020
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
16021
    <limits.h> exists even on freestanding compilers.  */
 
16022
 
 
16023
#ifdef __STDC__
 
16024
# include <limits.h>
 
16025
#else
 
16026
# include <assert.h>
 
16027
#endif
 
16028
 
 
16029
#undef $ac_func
 
16030
 
 
16031
/* Override any GCC internal prototype to avoid an error.
 
16032
   Use char because int might match the return type of a GCC
 
16033
   builtin and then its argument prototype would still apply.  */
 
16034
#ifdef __cplusplus
 
16035
extern "C"
 
16036
#endif
 
16037
char $ac_func ();
 
16038
/* The GNU C library defines this for functions which it implements
 
16039
    to always fail with ENOSYS.  Some functions are actually named
 
16040
    something starting with __ and the normal name is an alias.  */
 
16041
#if defined __stub_$ac_func || defined __stub___$ac_func
 
16042
choke me
 
16043
#endif
 
16044
 
 
16045
int
 
16046
main ()
 
16047
{
 
16048
return $ac_func ();
 
16049
  ;
 
16050
  return 0;
 
16051
}
 
16052
_ACEOF
 
16053
rm -f conftest.$ac_objext conftest$ac_exeext
 
16054
if { (ac_try="$ac_link"
 
16055
case "(($ac_try" in
 
16056
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16057
  *) ac_try_echo=$ac_try;;
 
16058
esac
 
16059
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16060
  (eval "$ac_link") 2>conftest.er1
 
16061
  ac_status=$?
 
16062
  grep -v '^ *+' conftest.er1 >conftest.err
 
16063
  rm -f conftest.er1
 
16064
  cat conftest.err >&5
 
16065
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16066
  (exit $ac_status); } && {
 
16067
         test -z "$ac_c_werror_flag" ||
 
16068
         test ! -s conftest.err
 
16069
       } && test -s conftest$ac_exeext &&
 
16070
       $as_test_x conftest$ac_exeext; then
 
16071
  eval "$as_ac_var=yes"
 
16072
else
 
16073
  echo "$as_me: failed program was:" >&5
 
16074
sed 's/^/| /' conftest.$ac_ext >&5
 
16075
 
 
16076
        eval "$as_ac_var=no"
 
16077
fi
 
16078
 
 
16079
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
16080
      conftest$ac_exeext conftest.$ac_ext
 
16081
fi
 
16082
ac_res=`eval echo '${'$as_ac_var'}'`
 
16083
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
16084
echo "${ECHO_T}$ac_res" >&6; }
 
16085
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
16086
  cat >>confdefs.h <<_ACEOF
 
16087
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
16088
_ACEOF
 
16089
 
 
16090
else
 
16091
 
 
16092
    gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
 
16093
 
 
16094
fi
 
16095
done
 
16096
 
 
16097
 
 
16098
  case $ac_cv_func_openat+$ac_cv_func_lstat_dereferences_slashed_symlink in
 
16099
  yes+yes) ;;
 
16100
  yes+*)
 
16101
 
 
16102
 
 
16103
 
 
16104
 
 
16105
 
 
16106
 
 
16107
  gl_LIBOBJS="$gl_LIBOBJS fstatat.$ac_objext"
 
16108
;;
 
16109
  *)
 
16110
 
 
16111
cat >>confdefs.h <<\_ACEOF
 
16112
#define __OPENAT_PREFIX rpl_
 
16113
_ACEOF
 
16114
 
 
16115
 
 
16116
  :
 
16117
;;
 
16118
  esac
 
16119
 
 
16120
  # Assume we'll use the replacement function.
 
16121
  # The only case in which we won't is when we have fchownat, and it works.
 
16122
  use_replacement_fchownat=yes
 
16123
 
 
16124
  { echo "$as_me:$LINENO: checking for fchownat" >&5
 
16125
echo $ECHO_N "checking for fchownat... $ECHO_C" >&6; }
 
16126
if test "${ac_cv_func_fchownat+set}" = set; then
 
16127
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16128
else
 
16129
  cat >conftest.$ac_ext <<_ACEOF
 
16130
/* confdefs.h.  */
 
16131
_ACEOF
 
16132
cat confdefs.h >>conftest.$ac_ext
 
16133
cat >>conftest.$ac_ext <<_ACEOF
 
16134
/* end confdefs.h.  */
 
16135
/* Define fchownat to an innocuous variant, in case <limits.h> declares fchownat.
 
16136
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
16137
#define fchownat innocuous_fchownat
 
16138
 
 
16139
/* System header to define __stub macros and hopefully few prototypes,
 
16140
    which can conflict with char fchownat (); below.
 
16141
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
16142
    <limits.h> exists even on freestanding compilers.  */
 
16143
 
 
16144
#ifdef __STDC__
 
16145
# include <limits.h>
 
16146
#else
 
16147
# include <assert.h>
 
16148
#endif
 
16149
 
 
16150
#undef fchownat
 
16151
 
 
16152
/* Override any GCC internal prototype to avoid an error.
 
16153
   Use char because int might match the return type of a GCC
 
16154
   builtin and then its argument prototype would still apply.  */
 
16155
#ifdef __cplusplus
 
16156
extern "C"
 
16157
#endif
 
16158
char fchownat ();
 
16159
/* The GNU C library defines this for functions which it implements
 
16160
    to always fail with ENOSYS.  Some functions are actually named
 
16161
    something starting with __ and the normal name is an alias.  */
 
16162
#if defined __stub_fchownat || defined __stub___fchownat
 
16163
choke me
 
16164
#endif
 
16165
 
 
16166
int
 
16167
main ()
 
16168
{
 
16169
return fchownat ();
 
16170
  ;
 
16171
  return 0;
 
16172
}
 
16173
_ACEOF
 
16174
rm -f conftest.$ac_objext conftest$ac_exeext
 
16175
if { (ac_try="$ac_link"
 
16176
case "(($ac_try" in
 
16177
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16178
  *) ac_try_echo=$ac_try;;
 
16179
esac
 
16180
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16181
  (eval "$ac_link") 2>conftest.er1
 
16182
  ac_status=$?
 
16183
  grep -v '^ *+' conftest.er1 >conftest.err
 
16184
  rm -f conftest.er1
 
16185
  cat conftest.err >&5
 
16186
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16187
  (exit $ac_status); } && {
 
16188
         test -z "$ac_c_werror_flag" ||
 
16189
         test ! -s conftest.err
 
16190
       } && test -s conftest$ac_exeext &&
 
16191
       $as_test_x conftest$ac_exeext; then
 
16192
  ac_cv_func_fchownat=yes
 
16193
else
 
16194
  echo "$as_me: failed program was:" >&5
 
16195
sed 's/^/| /' conftest.$ac_ext >&5
 
16196
 
 
16197
        ac_cv_func_fchownat=no
 
16198
fi
 
16199
 
 
16200
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
16201
      conftest$ac_exeext conftest.$ac_ext
 
16202
fi
 
16203
{ echo "$as_me:$LINENO: result: $ac_cv_func_fchownat" >&5
 
16204
echo "${ECHO_T}$ac_cv_func_fchownat" >&6; }
 
16205
if test $ac_cv_func_fchownat = yes; then
 
16206
  have_fchownat=yes
 
16207
else
 
16208
  have_fchownat=no
 
16209
fi
 
16210
 
 
16211
  if test $have_fchownat = yes; then
 
16212
 
 
16213
  { echo "$as_me:$LINENO: checking whether fchownat works with AT_SYMLINK_NOFOLLOW" >&5
 
16214
echo $ECHO_N "checking whether fchownat works with AT_SYMLINK_NOFOLLOW... $ECHO_C" >&6; }
 
16215
if test "${gl_cv_func_fchownat_nofollow_works+set}" = set; then
 
16216
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16217
else
 
16218
 
 
16219
     gl_dangle=conftest.dangle
 
16220
     # Remove any remnants of a previous test.
 
16221
     rm -f $gl_dangle
 
16222
     # Arrange for deletion of the temporary file this test creates.
 
16223
     ac_clean_files="$ac_clean_files $gl_dangle"
 
16224
     ln -s conftest.no-such $gl_dangle
 
16225
     if test "$cross_compiling" = yes; then
 
16226
  gl_cv_func_fchownat_nofollow_works=no
 
16227
else
 
16228
  cat >conftest.$ac_ext <<_ACEOF
 
16229
/* confdefs.h.  */
 
16230
_ACEOF
 
16231
cat confdefs.h >>conftest.$ac_ext
 
16232
cat >>conftest.$ac_ext <<_ACEOF
 
16233
/* end confdefs.h.  */
 
16234
 
 
16235
#include <fcntl.h>
 
16236
#include <unistd.h>
 
16237
#include <stdlib.h>
 
16238
#include <errno.h>
 
16239
#include <sys/types.h>
 
16240
int
 
16241
main ()
 
16242
{
 
16243
  return (fchownat (AT_FDCWD, "$gl_dangle", -1, getgid (),
 
16244
                    AT_SYMLINK_NOFOLLOW) != 0
 
16245
          && errno == ENOENT);
 
16246
}
 
16247
 
 
16248
_ACEOF
 
16249
rm -f conftest$ac_exeext
 
16250
if { (ac_try="$ac_link"
 
16251
case "(($ac_try" in
 
16252
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16253
  *) ac_try_echo=$ac_try;;
 
16254
esac
 
16255
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16256
  (eval "$ac_link") 2>&5
 
16257
  ac_status=$?
 
16258
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16259
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
16260
  { (case "(($ac_try" in
 
16261
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16262
  *) ac_try_echo=$ac_try;;
 
16263
esac
 
16264
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16265
  (eval "$ac_try") 2>&5
 
16266
  ac_status=$?
 
16267
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16268
  (exit $ac_status); }; }; then
 
16269
  gl_cv_func_fchownat_nofollow_works=yes
 
16270
else
 
16271
  echo "$as_me: program exited with status $ac_status" >&5
 
16272
echo "$as_me: failed program was:" >&5
 
16273
sed 's/^/| /' conftest.$ac_ext >&5
 
16274
 
 
16275
( exit $ac_status )
 
16276
gl_cv_func_fchownat_nofollow_works=no
 
16277
fi
 
16278
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
16279
fi
 
16280
 
 
16281
 
 
16282
 
 
16283
fi
 
16284
{ echo "$as_me:$LINENO: result: $gl_cv_func_fchownat_nofollow_works" >&5
 
16285
echo "${ECHO_T}$gl_cv_func_fchownat_nofollow_works" >&6; }
 
16286
  if test $gl_cv_func_fchownat_nofollow_works = no; then
 
16287
  :
 
16288
else
 
16289
  use_replacement_fchownat=no
 
16290
fi
 
16291
 
 
16292
 
 
16293
  fi
 
16294
 
 
16295
  if test $use_replacement_fchownat = yes; then
 
16296
 
 
16297
 
 
16298
 
 
16299
 
 
16300
 
 
16301
 
 
16302
 
 
16303
  gl_LIBOBJS="$gl_LIBOBJS fchownat.$ac_objext"
 
16304
 
 
16305
 
 
16306
cat >>confdefs.h <<\_ACEOF
 
16307
#define fchownat rpl_fchownat
 
16308
_ACEOF
 
16309
 
 
16310
  fi
 
16311
 
 
16312
 
 
16313
 
 
16314
  # Checks for header files.
 
16315
 
 
16316
  :
 
16317
 
 
16318
 
 
16319
 
 
16320
 
 
16321
 
 
16322
 
 
16323
 
 
16324
 
 
16325
cat >>confdefs.h <<\_ACEOF
 
16326
#define GNULIB_FTS 1
 
16327
_ACEOF
 
16328
 
 
16329
 
 
16330
 
 
16331
 
 
16332
 
 
16333
 
14941
16334
  gl_abort_bug=no
14942
16335
  case $gl_cv_func_getcwd_null in
14943
16336
  yes)
15435
16828
 
15436
16829
 
15437
16830
 
 
16831
  { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
 
16832
echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
 
16833
if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
 
16834
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16835
else
 
16836
  cat >conftest.$ac_ext <<_ACEOF
 
16837
/* confdefs.h.  */
 
16838
_ACEOF
 
16839
cat confdefs.h >>conftest.$ac_ext
 
16840
cat >>conftest.$ac_ext <<_ACEOF
 
16841
/* end confdefs.h.  */
 
16842
#include <sys/types.h>
 
16843
#include <$ac_cv_struct_tm>
 
16844
 
 
16845
 
 
16846
int
 
16847
main ()
 
16848
{
 
16849
static struct tm ac_aggr;
 
16850
if (ac_aggr.tm_zone)
 
16851
return 0;
 
16852
  ;
 
16853
  return 0;
 
16854
}
 
16855
_ACEOF
 
16856
rm -f conftest.$ac_objext
 
16857
if { (ac_try="$ac_compile"
 
16858
case "(($ac_try" in
 
16859
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16860
  *) ac_try_echo=$ac_try;;
 
16861
esac
 
16862
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16863
  (eval "$ac_compile") 2>conftest.er1
 
16864
  ac_status=$?
 
16865
  grep -v '^ *+' conftest.er1 >conftest.err
 
16866
  rm -f conftest.er1
 
16867
  cat conftest.err >&5
 
16868
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16869
  (exit $ac_status); } && {
 
16870
         test -z "$ac_c_werror_flag" ||
 
16871
         test ! -s conftest.err
 
16872
       } && test -s conftest.$ac_objext; then
 
16873
  ac_cv_member_struct_tm_tm_zone=yes
 
16874
else
 
16875
  echo "$as_me: failed program was:" >&5
 
16876
sed 's/^/| /' conftest.$ac_ext >&5
 
16877
 
 
16878
        cat >conftest.$ac_ext <<_ACEOF
 
16879
/* confdefs.h.  */
 
16880
_ACEOF
 
16881
cat confdefs.h >>conftest.$ac_ext
 
16882
cat >>conftest.$ac_ext <<_ACEOF
 
16883
/* end confdefs.h.  */
 
16884
#include <sys/types.h>
 
16885
#include <$ac_cv_struct_tm>
 
16886
 
 
16887
 
 
16888
int
 
16889
main ()
 
16890
{
 
16891
static struct tm ac_aggr;
 
16892
if (sizeof ac_aggr.tm_zone)
 
16893
return 0;
 
16894
  ;
 
16895
  return 0;
 
16896
}
 
16897
_ACEOF
 
16898
rm -f conftest.$ac_objext
 
16899
if { (ac_try="$ac_compile"
 
16900
case "(($ac_try" in
 
16901
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16902
  *) ac_try_echo=$ac_try;;
 
16903
esac
 
16904
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16905
  (eval "$ac_compile") 2>conftest.er1
 
16906
  ac_status=$?
 
16907
  grep -v '^ *+' conftest.er1 >conftest.err
 
16908
  rm -f conftest.er1
 
16909
  cat conftest.err >&5
 
16910
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16911
  (exit $ac_status); } && {
 
16912
         test -z "$ac_c_werror_flag" ||
 
16913
         test ! -s conftest.err
 
16914
       } && test -s conftest.$ac_objext; then
 
16915
  ac_cv_member_struct_tm_tm_zone=yes
 
16916
else
 
16917
  echo "$as_me: failed program was:" >&5
 
16918
sed 's/^/| /' conftest.$ac_ext >&5
 
16919
 
 
16920
        ac_cv_member_struct_tm_tm_zone=no
 
16921
fi
 
16922
 
 
16923
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16924
fi
 
16925
 
 
16926
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16927
fi
 
16928
{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
 
16929
echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
 
16930
if test $ac_cv_member_struct_tm_tm_zone = yes; then
 
16931
 
 
16932
cat >>confdefs.h <<_ACEOF
 
16933
#define HAVE_STRUCT_TM_TM_ZONE 1
 
16934
_ACEOF
 
16935
 
 
16936
 
 
16937
fi
 
16938
 
 
16939
if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
 
16940
 
 
16941
cat >>confdefs.h <<\_ACEOF
 
16942
#define HAVE_TM_ZONE 1
 
16943
_ACEOF
 
16944
 
 
16945
else
 
16946
  { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
 
16947
echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
 
16948
if test "${ac_cv_have_decl_tzname+set}" = set; then
 
16949
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16950
else
 
16951
  cat >conftest.$ac_ext <<_ACEOF
 
16952
/* confdefs.h.  */
 
16953
_ACEOF
 
16954
cat confdefs.h >>conftest.$ac_ext
 
16955
cat >>conftest.$ac_ext <<_ACEOF
 
16956
/* end confdefs.h.  */
 
16957
#include <time.h>
 
16958
 
 
16959
int
 
16960
main ()
 
16961
{
 
16962
#ifndef tzname
 
16963
  (void) tzname;
 
16964
#endif
 
16965
 
 
16966
  ;
 
16967
  return 0;
 
16968
}
 
16969
_ACEOF
 
16970
rm -f conftest.$ac_objext
 
16971
if { (ac_try="$ac_compile"
 
16972
case "(($ac_try" in
 
16973
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16974
  *) ac_try_echo=$ac_try;;
 
16975
esac
 
16976
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16977
  (eval "$ac_compile") 2>conftest.er1
 
16978
  ac_status=$?
 
16979
  grep -v '^ *+' conftest.er1 >conftest.err
 
16980
  rm -f conftest.er1
 
16981
  cat conftest.err >&5
 
16982
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16983
  (exit $ac_status); } && {
 
16984
         test -z "$ac_c_werror_flag" ||
 
16985
         test ! -s conftest.err
 
16986
       } && test -s conftest.$ac_objext; then
 
16987
  ac_cv_have_decl_tzname=yes
 
16988
else
 
16989
  echo "$as_me: failed program was:" >&5
 
16990
sed 's/^/| /' conftest.$ac_ext >&5
 
16991
 
 
16992
        ac_cv_have_decl_tzname=no
 
16993
fi
 
16994
 
 
16995
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16996
fi
 
16997
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
 
16998
echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
 
16999
if test $ac_cv_have_decl_tzname = yes; then
 
17000
 
 
17001
cat >>confdefs.h <<_ACEOF
 
17002
#define HAVE_DECL_TZNAME 1
 
17003
_ACEOF
 
17004
 
 
17005
 
 
17006
else
 
17007
  cat >>confdefs.h <<_ACEOF
 
17008
#define HAVE_DECL_TZNAME 0
 
17009
_ACEOF
 
17010
 
 
17011
 
 
17012
fi
 
17013
 
 
17014
 
 
17015
  { echo "$as_me:$LINENO: checking for tzname" >&5
 
17016
echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
 
17017
if test "${ac_cv_var_tzname+set}" = set; then
 
17018
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17019
else
 
17020
  cat >conftest.$ac_ext <<_ACEOF
 
17021
/* confdefs.h.  */
 
17022
_ACEOF
 
17023
cat confdefs.h >>conftest.$ac_ext
 
17024
cat >>conftest.$ac_ext <<_ACEOF
 
17025
/* end confdefs.h.  */
 
17026
#include <time.h>
 
17027
#if !HAVE_DECL_TZNAME
 
17028
extern char *tzname[];
 
17029
#endif
 
17030
 
 
17031
int
 
17032
main ()
 
17033
{
 
17034
return tzname[0][0];
 
17035
  ;
 
17036
  return 0;
 
17037
}
 
17038
_ACEOF
 
17039
rm -f conftest.$ac_objext conftest$ac_exeext
 
17040
if { (ac_try="$ac_link"
 
17041
case "(($ac_try" in
 
17042
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17043
  *) ac_try_echo=$ac_try;;
 
17044
esac
 
17045
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17046
  (eval "$ac_link") 2>conftest.er1
 
17047
  ac_status=$?
 
17048
  grep -v '^ *+' conftest.er1 >conftest.err
 
17049
  rm -f conftest.er1
 
17050
  cat conftest.err >&5
 
17051
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17052
  (exit $ac_status); } && {
 
17053
         test -z "$ac_c_werror_flag" ||
 
17054
         test ! -s conftest.err
 
17055
       } && test -s conftest$ac_exeext &&
 
17056
       $as_test_x conftest$ac_exeext; then
 
17057
  ac_cv_var_tzname=yes
 
17058
else
 
17059
  echo "$as_me: failed program was:" >&5
 
17060
sed 's/^/| /' conftest.$ac_ext >&5
 
17061
 
 
17062
        ac_cv_var_tzname=no
 
17063
fi
 
17064
 
 
17065
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17066
      conftest$ac_exeext conftest.$ac_ext
 
17067
fi
 
17068
{ echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
 
17069
echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
 
17070
  if test $ac_cv_var_tzname = yes; then
 
17071
 
 
17072
cat >>confdefs.h <<\_ACEOF
 
17073
#define HAVE_TZNAME 1
 
17074
_ACEOF
 
17075
 
 
17076
  fi
 
17077
fi
 
17078
 
 
17079
 
 
17080
 
 
17081
 
 
17082
 
 
17083
 
 
17084
 
 
17085
 
 
17086
 
 
17087
 
15438
17088
 
15439
17089
 
15440
17090
 
16153
17803
 
16154
17804
 
16155
17805
 
 
17806
  gl_LIBOBJS="$gl_LIBOBJS gettime.$ac_objext"
 
17807
 
 
17808
 
 
17809
 
 
17810
 
 
17811
 
 
17812
  :
 
17813
 
 
17814
 
 
17815
 
 
17816
 
 
17817
 
 
17818
 
 
17819
 
 
17820
 
 
17821
 
 
17822
 
 
17823
 
 
17824
 
 
17825
 
 
17826
  :
 
17827
 
 
17828
 
 
17829
 
 
17830
 
 
17831
 
 
17832
 
 
17833
  { echo "$as_me:$LINENO: checking for gettimeofday with POSIX signature" >&5
 
17834
echo $ECHO_N "checking for gettimeofday with POSIX signature... $ECHO_C" >&6; }
 
17835
if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then
 
17836
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17837
else
 
17838
  cat >conftest.$ac_ext <<_ACEOF
 
17839
/* confdefs.h.  */
 
17840
_ACEOF
 
17841
cat confdefs.h >>conftest.$ac_ext
 
17842
cat >>conftest.$ac_ext <<_ACEOF
 
17843
/* end confdefs.h.  */
 
17844
#include <sys/time.h>
 
17845
            struct timeval c;
 
17846
 
 
17847
int
 
17848
main ()
 
17849
{
 
17850
 
 
17851
            int (*f) (struct timeval *restrict, void *restrict) = gettimeofday;
 
17852
            int x = f (&c, 0);
 
17853
            return !(x | c.tv_sec | c.tv_usec);
 
17854
 
 
17855
  ;
 
17856
  return 0;
 
17857
}
 
17858
_ACEOF
 
17859
rm -f conftest.$ac_objext
 
17860
if { (ac_try="$ac_compile"
 
17861
case "(($ac_try" in
 
17862
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17863
  *) ac_try_echo=$ac_try;;
 
17864
esac
 
17865
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17866
  (eval "$ac_compile") 2>conftest.er1
 
17867
  ac_status=$?
 
17868
  grep -v '^ *+' conftest.er1 >conftest.err
 
17869
  rm -f conftest.er1
 
17870
  cat conftest.err >&5
 
17871
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17872
  (exit $ac_status); } && {
 
17873
         test -z "$ac_c_werror_flag" ||
 
17874
         test ! -s conftest.err
 
17875
       } && test -s conftest.$ac_objext; then
 
17876
  gl_cv_func_gettimeofday_posix_signature=yes
 
17877
else
 
17878
  echo "$as_me: failed program was:" >&5
 
17879
sed 's/^/| /' conftest.$ac_ext >&5
 
17880
 
 
17881
        gl_cv_func_gettimeofday_posix_signature=no
 
17882
fi
 
17883
 
 
17884
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17885
fi
 
17886
{ echo "$as_me:$LINENO: result: $gl_cv_func_gettimeofday_posix_signature" >&5
 
17887
echo "${ECHO_T}$gl_cv_func_gettimeofday_posix_signature" >&6; }
 
17888
 
 
17889
 
 
17890
 
 
17891
 
 
17892
 { echo "$as_me:$LINENO: checking whether gettimeofday clobbers localtime buffer" >&5
 
17893
echo $ECHO_N "checking whether gettimeofday clobbers localtime buffer... $ECHO_C" >&6; }
 
17894
if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then
 
17895
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17896
else
 
17897
  if test "$cross_compiling" = yes; then
 
17898
       gl_cv_func_gettimeofday_clobber=yes
 
17899
else
 
17900
  cat >conftest.$ac_ext <<_ACEOF
 
17901
/* confdefs.h.  */
 
17902
_ACEOF
 
17903
cat confdefs.h >>conftest.$ac_ext
 
17904
cat >>conftest.$ac_ext <<_ACEOF
 
17905
/* end confdefs.h.  */
 
17906
#include <string.h>
 
17907
          #include <sys/time.h>
 
17908
          #include <time.h>
 
17909
          #include <stdlib.h>
 
17910
 
 
17911
int
 
17912
main ()
 
17913
{
 
17914
 
 
17915
          time_t t = 0;
 
17916
          struct tm *lt;
 
17917
          struct tm saved_lt;
 
17918
          struct timeval tv;
 
17919
          lt = localtime (&t);
 
17920
          saved_lt = *lt;
 
17921
          gettimeofday (&tv, NULL);
 
17922
          return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
 
17923
 
 
17924
  ;
 
17925
  return 0;
 
17926
}
 
17927
_ACEOF
 
17928
rm -f conftest$ac_exeext
 
17929
if { (ac_try="$ac_link"
 
17930
case "(($ac_try" in
 
17931
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17932
  *) ac_try_echo=$ac_try;;
 
17933
esac
 
17934
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17935
  (eval "$ac_link") 2>&5
 
17936
  ac_status=$?
 
17937
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17938
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
17939
  { (case "(($ac_try" in
 
17940
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17941
  *) ac_try_echo=$ac_try;;
 
17942
esac
 
17943
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17944
  (eval "$ac_try") 2>&5
 
17945
  ac_status=$?
 
17946
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17947
  (exit $ac_status); }; }; then
 
17948
  gl_cv_func_gettimeofday_clobber=no
 
17949
else
 
17950
  echo "$as_me: program exited with status $ac_status" >&5
 
17951
echo "$as_me: failed program was:" >&5
 
17952
sed 's/^/| /' conftest.$ac_ext >&5
 
17953
 
 
17954
( exit $ac_status )
 
17955
gl_cv_func_gettimeofday_clobber=yes
 
17956
fi
 
17957
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
17958
fi
 
17959
 
 
17960
 
 
17961
fi
 
17962
{ echo "$as_me:$LINENO: result: $gl_cv_func_gettimeofday_clobber" >&5
 
17963
echo "${ECHO_T}$gl_cv_func_gettimeofday_clobber" >&6; }
 
17964
 
 
17965
 if test $gl_cv_func_gettimeofday_clobber = yes; then
 
17966
   REPLACE_GETTIMEOFDAY=1
 
17967
   SYS_TIME_H=sys/time.h
 
17968
 
 
17969
 
 
17970
 
 
17971
 
 
17972
 
 
17973
 
 
17974
 
 
17975
 
 
17976
  gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
 
17977
 
 
17978
 
 
17979
 
 
17980
for ac_header in sys/timeb.h
 
17981
do
 
17982
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
17983
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
17984
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
17985
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
17986
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
17987
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17988
fi
 
17989
ac_res=`eval echo '${'$as_ac_Header'}'`
 
17990
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
17991
echo "${ECHO_T}$ac_res" >&6; }
 
17992
else
 
17993
  # Is the header compilable?
 
17994
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
17995
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
17996
cat >conftest.$ac_ext <<_ACEOF
 
17997
/* confdefs.h.  */
 
17998
_ACEOF
 
17999
cat confdefs.h >>conftest.$ac_ext
 
18000
cat >>conftest.$ac_ext <<_ACEOF
 
18001
/* end confdefs.h.  */
 
18002
$ac_includes_default
 
18003
#include <$ac_header>
 
18004
_ACEOF
 
18005
rm -f conftest.$ac_objext
 
18006
if { (ac_try="$ac_compile"
 
18007
case "(($ac_try" in
 
18008
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18009
  *) ac_try_echo=$ac_try;;
 
18010
esac
 
18011
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18012
  (eval "$ac_compile") 2>conftest.er1
 
18013
  ac_status=$?
 
18014
  grep -v '^ *+' conftest.er1 >conftest.err
 
18015
  rm -f conftest.er1
 
18016
  cat conftest.err >&5
 
18017
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18018
  (exit $ac_status); } && {
 
18019
         test -z "$ac_c_werror_flag" ||
 
18020
         test ! -s conftest.err
 
18021
       } && test -s conftest.$ac_objext; then
 
18022
  ac_header_compiler=yes
 
18023
else
 
18024
  echo "$as_me: failed program was:" >&5
 
18025
sed 's/^/| /' conftest.$ac_ext >&5
 
18026
 
 
18027
        ac_header_compiler=no
 
18028
fi
 
18029
 
 
18030
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
18031
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
18032
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
18033
 
 
18034
# Is the header present?
 
18035
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
18036
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
18037
cat >conftest.$ac_ext <<_ACEOF
 
18038
/* confdefs.h.  */
 
18039
_ACEOF
 
18040
cat confdefs.h >>conftest.$ac_ext
 
18041
cat >>conftest.$ac_ext <<_ACEOF
 
18042
/* end confdefs.h.  */
 
18043
#include <$ac_header>
 
18044
_ACEOF
 
18045
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
18046
case "(($ac_try" in
 
18047
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18048
  *) ac_try_echo=$ac_try;;
 
18049
esac
 
18050
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18051
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
18052
  ac_status=$?
 
18053
  grep -v '^ *+' conftest.er1 >conftest.err
 
18054
  rm -f conftest.er1
 
18055
  cat conftest.err >&5
 
18056
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18057
  (exit $ac_status); } >/dev/null && {
 
18058
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
18059
         test ! -s conftest.err
 
18060
       }; then
 
18061
  ac_header_preproc=yes
 
18062
else
 
18063
  echo "$as_me: failed program was:" >&5
 
18064
sed 's/^/| /' conftest.$ac_ext >&5
 
18065
 
 
18066
  ac_header_preproc=no
 
18067
fi
 
18068
 
 
18069
rm -f conftest.err conftest.$ac_ext
 
18070
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
18071
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
18072
 
 
18073
# So?  What about this header?
 
18074
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
18075
  yes:no: )
 
18076
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
18077
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
18078
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
18079
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
18080
    ac_header_preproc=yes
 
18081
    ;;
 
18082
  no:yes:* )
 
18083
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
18084
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
18085
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
18086
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
18087
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
18088
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
18089
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
18090
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
18091
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
18092
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
18093
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
18094
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
18095
    ( cat <<\_ASBOX
 
18096
## ------------------------------------ ##
 
18097
## Report this to bug-findutils@gnu.org ##
 
18098
## ------------------------------------ ##
 
18099
_ASBOX
 
18100
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
18101
    ;;
 
18102
esac
 
18103
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
18104
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
18105
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
18106
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18107
else
 
18108
  eval "$as_ac_Header=\$ac_header_preproc"
 
18109
fi
 
18110
ac_res=`eval echo '${'$as_ac_Header'}'`
 
18111
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
18112
echo "${ECHO_T}$ac_res" >&6; }
 
18113
 
 
18114
fi
 
18115
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
18116
  cat >>confdefs.h <<_ACEOF
 
18117
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
18118
_ACEOF
 
18119
 
 
18120
fi
 
18121
 
 
18122
done
 
18123
 
 
18124
 
 
18125
for ac_func in _ftime
 
18126
do
 
18127
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
18128
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
18129
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
18130
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
18131
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18132
else
 
18133
  cat >conftest.$ac_ext <<_ACEOF
 
18134
/* confdefs.h.  */
 
18135
_ACEOF
 
18136
cat confdefs.h >>conftest.$ac_ext
 
18137
cat >>conftest.$ac_ext <<_ACEOF
 
18138
/* end confdefs.h.  */
 
18139
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
18140
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
18141
#define $ac_func innocuous_$ac_func
 
18142
 
 
18143
/* System header to define __stub macros and hopefully few prototypes,
 
18144
    which can conflict with char $ac_func (); below.
 
18145
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
18146
    <limits.h> exists even on freestanding compilers.  */
 
18147
 
 
18148
#ifdef __STDC__
 
18149
# include <limits.h>
 
18150
#else
 
18151
# include <assert.h>
 
18152
#endif
 
18153
 
 
18154
#undef $ac_func
 
18155
 
 
18156
/* Override any GCC internal prototype to avoid an error.
 
18157
   Use char because int might match the return type of a GCC
 
18158
   builtin and then its argument prototype would still apply.  */
 
18159
#ifdef __cplusplus
 
18160
extern "C"
 
18161
#endif
 
18162
char $ac_func ();
 
18163
/* The GNU C library defines this for functions which it implements
 
18164
    to always fail with ENOSYS.  Some functions are actually named
 
18165
    something starting with __ and the normal name is an alias.  */
 
18166
#if defined __stub_$ac_func || defined __stub___$ac_func
 
18167
choke me
 
18168
#endif
 
18169
 
 
18170
int
 
18171
main ()
 
18172
{
 
18173
return $ac_func ();
 
18174
  ;
 
18175
  return 0;
 
18176
}
 
18177
_ACEOF
 
18178
rm -f conftest.$ac_objext conftest$ac_exeext
 
18179
if { (ac_try="$ac_link"
 
18180
case "(($ac_try" in
 
18181
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18182
  *) ac_try_echo=$ac_try;;
 
18183
esac
 
18184
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18185
  (eval "$ac_link") 2>conftest.er1
 
18186
  ac_status=$?
 
18187
  grep -v '^ *+' conftest.er1 >conftest.err
 
18188
  rm -f conftest.er1
 
18189
  cat conftest.err >&5
 
18190
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18191
  (exit $ac_status); } && {
 
18192
         test -z "$ac_c_werror_flag" ||
 
18193
         test ! -s conftest.err
 
18194
       } && test -s conftest$ac_exeext &&
 
18195
       $as_test_x conftest$ac_exeext; then
 
18196
  eval "$as_ac_var=yes"
 
18197
else
 
18198
  echo "$as_me: failed program was:" >&5
 
18199
sed 's/^/| /' conftest.$ac_ext >&5
 
18200
 
 
18201
        eval "$as_ac_var=no"
 
18202
fi
 
18203
 
 
18204
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
18205
      conftest$ac_exeext conftest.$ac_ext
 
18206
fi
 
18207
ac_res=`eval echo '${'$as_ac_var'}'`
 
18208
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
18209
echo "${ECHO_T}$ac_res" >&6; }
 
18210
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
18211
  cat >>confdefs.h <<_ACEOF
 
18212
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
18213
_ACEOF
 
18214
 
 
18215
fi
 
18216
done
 
18217
 
 
18218
 
 
18219
 
 
18220
cat >>confdefs.h <<\_ACEOF
 
18221
#define gmtime rpl_gmtime
 
18222
_ACEOF
 
18223
 
 
18224
 
 
18225
cat >>confdefs.h <<\_ACEOF
 
18226
#define localtime rpl_localtime
 
18227
_ACEOF
 
18228
 
 
18229
 
 
18230
 
 
18231
cat >>confdefs.h <<\_ACEOF
 
18232
#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1
 
18233
_ACEOF
 
18234
 
 
18235
 fi
 
18236
 
 
18237
 
 
18238
  if test $gl_cv_func_gettimeofday_posix_signature != yes; then
 
18239
    REPLACE_GETTIMEOFDAY=1
 
18240
    SYS_TIME_H=sys/time.h
 
18241
    if test $gl_cv_func_gettimeofday_clobber != yes; then
 
18242
 
 
18243
 
 
18244
 
 
18245
 
 
18246
 
 
18247
 
 
18248
 
 
18249
  gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
 
18250
 
 
18251
 
 
18252
 
 
18253
for ac_header in sys/timeb.h
 
18254
do
 
18255
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
18256
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
18257
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
18258
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
18259
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
18260
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18261
fi
 
18262
ac_res=`eval echo '${'$as_ac_Header'}'`
 
18263
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
18264
echo "${ECHO_T}$ac_res" >&6; }
 
18265
else
 
18266
  # Is the header compilable?
 
18267
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
18268
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
18269
cat >conftest.$ac_ext <<_ACEOF
 
18270
/* confdefs.h.  */
 
18271
_ACEOF
 
18272
cat confdefs.h >>conftest.$ac_ext
 
18273
cat >>conftest.$ac_ext <<_ACEOF
 
18274
/* end confdefs.h.  */
 
18275
$ac_includes_default
 
18276
#include <$ac_header>
 
18277
_ACEOF
 
18278
rm -f conftest.$ac_objext
 
18279
if { (ac_try="$ac_compile"
 
18280
case "(($ac_try" in
 
18281
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18282
  *) ac_try_echo=$ac_try;;
 
18283
esac
 
18284
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18285
  (eval "$ac_compile") 2>conftest.er1
 
18286
  ac_status=$?
 
18287
  grep -v '^ *+' conftest.er1 >conftest.err
 
18288
  rm -f conftest.er1
 
18289
  cat conftest.err >&5
 
18290
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18291
  (exit $ac_status); } && {
 
18292
         test -z "$ac_c_werror_flag" ||
 
18293
         test ! -s conftest.err
 
18294
       } && test -s conftest.$ac_objext; then
 
18295
  ac_header_compiler=yes
 
18296
else
 
18297
  echo "$as_me: failed program was:" >&5
 
18298
sed 's/^/| /' conftest.$ac_ext >&5
 
18299
 
 
18300
        ac_header_compiler=no
 
18301
fi
 
18302
 
 
18303
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
18304
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
18305
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
18306
 
 
18307
# Is the header present?
 
18308
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
18309
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
18310
cat >conftest.$ac_ext <<_ACEOF
 
18311
/* confdefs.h.  */
 
18312
_ACEOF
 
18313
cat confdefs.h >>conftest.$ac_ext
 
18314
cat >>conftest.$ac_ext <<_ACEOF
 
18315
/* end confdefs.h.  */
 
18316
#include <$ac_header>
 
18317
_ACEOF
 
18318
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
18319
case "(($ac_try" in
 
18320
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18321
  *) ac_try_echo=$ac_try;;
 
18322
esac
 
18323
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18324
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
18325
  ac_status=$?
 
18326
  grep -v '^ *+' conftest.er1 >conftest.err
 
18327
  rm -f conftest.er1
 
18328
  cat conftest.err >&5
 
18329
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18330
  (exit $ac_status); } >/dev/null && {
 
18331
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
18332
         test ! -s conftest.err
 
18333
       }; then
 
18334
  ac_header_preproc=yes
 
18335
else
 
18336
  echo "$as_me: failed program was:" >&5
 
18337
sed 's/^/| /' conftest.$ac_ext >&5
 
18338
 
 
18339
  ac_header_preproc=no
 
18340
fi
 
18341
 
 
18342
rm -f conftest.err conftest.$ac_ext
 
18343
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
18344
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
18345
 
 
18346
# So?  What about this header?
 
18347
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
18348
  yes:no: )
 
18349
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
18350
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
18351
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
18352
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
18353
    ac_header_preproc=yes
 
18354
    ;;
 
18355
  no:yes:* )
 
18356
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
18357
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
18358
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
18359
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
18360
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
18361
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
18362
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
18363
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
18364
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
18365
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
18366
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
18367
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
18368
    ( cat <<\_ASBOX
 
18369
## ------------------------------------ ##
 
18370
## Report this to bug-findutils@gnu.org ##
 
18371
## ------------------------------------ ##
 
18372
_ASBOX
 
18373
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
18374
    ;;
 
18375
esac
 
18376
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
18377
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
18378
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
18379
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18380
else
 
18381
  eval "$as_ac_Header=\$ac_header_preproc"
 
18382
fi
 
18383
ac_res=`eval echo '${'$as_ac_Header'}'`
 
18384
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
18385
echo "${ECHO_T}$ac_res" >&6; }
 
18386
 
 
18387
fi
 
18388
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
18389
  cat >>confdefs.h <<_ACEOF
 
18390
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
18391
_ACEOF
 
18392
 
 
18393
fi
 
18394
 
 
18395
done
 
18396
 
 
18397
 
 
18398
for ac_func in _ftime
 
18399
do
 
18400
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
18401
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
18402
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
18403
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
18404
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18405
else
 
18406
  cat >conftest.$ac_ext <<_ACEOF
 
18407
/* confdefs.h.  */
 
18408
_ACEOF
 
18409
cat confdefs.h >>conftest.$ac_ext
 
18410
cat >>conftest.$ac_ext <<_ACEOF
 
18411
/* end confdefs.h.  */
 
18412
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
18413
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
18414
#define $ac_func innocuous_$ac_func
 
18415
 
 
18416
/* System header to define __stub macros and hopefully few prototypes,
 
18417
    which can conflict with char $ac_func (); below.
 
18418
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
18419
    <limits.h> exists even on freestanding compilers.  */
 
18420
 
 
18421
#ifdef __STDC__
 
18422
# include <limits.h>
 
18423
#else
 
18424
# include <assert.h>
 
18425
#endif
 
18426
 
 
18427
#undef $ac_func
 
18428
 
 
18429
/* Override any GCC internal prototype to avoid an error.
 
18430
   Use char because int might match the return type of a GCC
 
18431
   builtin and then its argument prototype would still apply.  */
 
18432
#ifdef __cplusplus
 
18433
extern "C"
 
18434
#endif
 
18435
char $ac_func ();
 
18436
/* The GNU C library defines this for functions which it implements
 
18437
    to always fail with ENOSYS.  Some functions are actually named
 
18438
    something starting with __ and the normal name is an alias.  */
 
18439
#if defined __stub_$ac_func || defined __stub___$ac_func
 
18440
choke me
 
18441
#endif
 
18442
 
 
18443
int
 
18444
main ()
 
18445
{
 
18446
return $ac_func ();
 
18447
  ;
 
18448
  return 0;
 
18449
}
 
18450
_ACEOF
 
18451
rm -f conftest.$ac_objext conftest$ac_exeext
 
18452
if { (ac_try="$ac_link"
 
18453
case "(($ac_try" in
 
18454
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18455
  *) ac_try_echo=$ac_try;;
 
18456
esac
 
18457
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18458
  (eval "$ac_link") 2>conftest.er1
 
18459
  ac_status=$?
 
18460
  grep -v '^ *+' conftest.er1 >conftest.err
 
18461
  rm -f conftest.er1
 
18462
  cat conftest.err >&5
 
18463
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18464
  (exit $ac_status); } && {
 
18465
         test -z "$ac_c_werror_flag" ||
 
18466
         test ! -s conftest.err
 
18467
       } && test -s conftest$ac_exeext &&
 
18468
       $as_test_x conftest$ac_exeext; then
 
18469
  eval "$as_ac_var=yes"
 
18470
else
 
18471
  echo "$as_me: failed program was:" >&5
 
18472
sed 's/^/| /' conftest.$ac_ext >&5
 
18473
 
 
18474
        eval "$as_ac_var=no"
 
18475
fi
 
18476
 
 
18477
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
18478
      conftest$ac_exeext conftest.$ac_ext
 
18479
fi
 
18480
ac_res=`eval echo '${'$as_ac_var'}'`
 
18481
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
18482
echo "${ECHO_T}$ac_res" >&6; }
 
18483
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
18484
  cat >>confdefs.h <<_ACEOF
 
18485
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
18486
_ACEOF
 
18487
 
 
18488
fi
 
18489
done
 
18490
 
 
18491
 
 
18492
    fi
 
18493
  fi
 
18494
 
 
18495
 
 
18496
 
 
18497
 
 
18498
 
 
18499
 
 
18500
 
 
18501
 
 
18502
 
16156
18503
  gl_LIBOBJS="$gl_LIBOBJS hash.$ac_objext"
16157
18504
 
16158
18505
 
16179
18526
 
16180
18527
 
16181
18528
 
 
18529
  gl_LIBOBJS="$gl_LIBOBJS i-ring.$ac_objext"
 
18530
 
 
18531
 
 
18532
 
 
18533
 
 
18534
 
 
18535
 
 
18536
 
 
18537
 
 
18538
 
 
18539
 
16182
18540
  gl_LIBOBJS="$gl_LIBOBJS idcache.$ac_objext"
16183
18541
 
16184
18542
 
17507
19865
 
17508
19866
 
17509
19867
 
 
19868
 
 
19869
 
 
19870
 
 
19871
 
 
19872
 
 
19873
  :
 
19874
 
 
19875
 
 
19876
 
 
19877
 
 
19878
  GNULIB_MBSCASESTR=1
 
19879
 
 
19880
 
 
19881
 
 
19882
 
 
19883
  :
 
19884
 
 
19885
 
 
19886
 
 
19887
 
 
19888
  GNULIB_MBSLEN=1
 
19889
 
 
19890
 
 
19891
 
 
19892
 
 
19893
  :
 
19894
 
 
19895
 
 
19896
 
 
19897
 
 
19898
  GNULIB_MBSSTR=1
 
19899
 
 
19900
 
 
19901
 
 
19902
 
 
19903
  :
 
19904
 
 
19905
 
 
19906
 
 
19907
 
 
19908
 
 
19909
 
 
19910
 
 
19911
 
 
19912
 
 
19913
 
 
19914
for ac_func in memchr
 
19915
do
 
19916
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
19917
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
19918
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
19919
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
19920
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19921
else
 
19922
  cat >conftest.$ac_ext <<_ACEOF
 
19923
/* confdefs.h.  */
 
19924
_ACEOF
 
19925
cat confdefs.h >>conftest.$ac_ext
 
19926
cat >>conftest.$ac_ext <<_ACEOF
 
19927
/* end confdefs.h.  */
 
19928
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
19929
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
19930
#define $ac_func innocuous_$ac_func
 
19931
 
 
19932
/* System header to define __stub macros and hopefully few prototypes,
 
19933
    which can conflict with char $ac_func (); below.
 
19934
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
19935
    <limits.h> exists even on freestanding compilers.  */
 
19936
 
 
19937
#ifdef __STDC__
 
19938
# include <limits.h>
 
19939
#else
 
19940
# include <assert.h>
 
19941
#endif
 
19942
 
 
19943
#undef $ac_func
 
19944
 
 
19945
/* Override any GCC internal prototype to avoid an error.
 
19946
   Use char because int might match the return type of a GCC
 
19947
   builtin and then its argument prototype would still apply.  */
 
19948
#ifdef __cplusplus
 
19949
extern "C"
 
19950
#endif
 
19951
char $ac_func ();
 
19952
/* The GNU C library defines this for functions which it implements
 
19953
    to always fail with ENOSYS.  Some functions are actually named
 
19954
    something starting with __ and the normal name is an alias.  */
 
19955
#if defined __stub_$ac_func || defined __stub___$ac_func
 
19956
choke me
 
19957
#endif
 
19958
 
 
19959
int
 
19960
main ()
 
19961
{
 
19962
return $ac_func ();
 
19963
  ;
 
19964
  return 0;
 
19965
}
 
19966
_ACEOF
 
19967
rm -f conftest.$ac_objext conftest$ac_exeext
 
19968
if { (ac_try="$ac_link"
 
19969
case "(($ac_try" in
 
19970
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19971
  *) ac_try_echo=$ac_try;;
 
19972
esac
 
19973
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19974
  (eval "$ac_link") 2>conftest.er1
 
19975
  ac_status=$?
 
19976
  grep -v '^ *+' conftest.er1 >conftest.err
 
19977
  rm -f conftest.er1
 
19978
  cat conftest.err >&5
 
19979
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19980
  (exit $ac_status); } && {
 
19981
         test -z "$ac_c_werror_flag" ||
 
19982
         test ! -s conftest.err
 
19983
       } && test -s conftest$ac_exeext &&
 
19984
       $as_test_x conftest$ac_exeext; then
 
19985
  eval "$as_ac_var=yes"
 
19986
else
 
19987
  echo "$as_me: failed program was:" >&5
 
19988
sed 's/^/| /' conftest.$ac_ext >&5
 
19989
 
 
19990
        eval "$as_ac_var=no"
 
19991
fi
 
19992
 
 
19993
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
19994
      conftest$ac_exeext conftest.$ac_ext
 
19995
fi
 
19996
ac_res=`eval echo '${'$as_ac_var'}'`
 
19997
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
19998
echo "${ECHO_T}$ac_res" >&6; }
 
19999
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
20000
  cat >>confdefs.h <<_ACEOF
 
20001
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
20002
_ACEOF
 
20003
 
 
20004
else
 
20005
 
 
20006
    gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
 
20007
 
 
20008
fi
 
20009
done
 
20010
 
 
20011
 
 
20012
  if test $ac_cv_func_memchr = no; then
 
20013
 
 
20014
 
 
20015
for ac_header in bp-sym.h
 
20016
do
 
20017
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
20018
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
20019
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20020
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
20021
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
20022
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20023
fi
 
20024
ac_res=`eval echo '${'$as_ac_Header'}'`
 
20025
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
20026
echo "${ECHO_T}$ac_res" >&6; }
 
20027
else
 
20028
  # Is the header compilable?
 
20029
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
20030
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
20031
cat >conftest.$ac_ext <<_ACEOF
 
20032
/* confdefs.h.  */
 
20033
_ACEOF
 
20034
cat confdefs.h >>conftest.$ac_ext
 
20035
cat >>conftest.$ac_ext <<_ACEOF
 
20036
/* end confdefs.h.  */
 
20037
$ac_includes_default
 
20038
#include <$ac_header>
 
20039
_ACEOF
 
20040
rm -f conftest.$ac_objext
 
20041
if { (ac_try="$ac_compile"
 
20042
case "(($ac_try" in
 
20043
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20044
  *) ac_try_echo=$ac_try;;
 
20045
esac
 
20046
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20047
  (eval "$ac_compile") 2>conftest.er1
 
20048
  ac_status=$?
 
20049
  grep -v '^ *+' conftest.er1 >conftest.err
 
20050
  rm -f conftest.er1
 
20051
  cat conftest.err >&5
 
20052
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20053
  (exit $ac_status); } && {
 
20054
         test -z "$ac_c_werror_flag" ||
 
20055
         test ! -s conftest.err
 
20056
       } && test -s conftest.$ac_objext; then
 
20057
  ac_header_compiler=yes
 
20058
else
 
20059
  echo "$as_me: failed program was:" >&5
 
20060
sed 's/^/| /' conftest.$ac_ext >&5
 
20061
 
 
20062
        ac_header_compiler=no
 
20063
fi
 
20064
 
 
20065
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20066
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
20067
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
20068
 
 
20069
# Is the header present?
 
20070
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
20071
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
20072
cat >conftest.$ac_ext <<_ACEOF
 
20073
/* confdefs.h.  */
 
20074
_ACEOF
 
20075
cat confdefs.h >>conftest.$ac_ext
 
20076
cat >>conftest.$ac_ext <<_ACEOF
 
20077
/* end confdefs.h.  */
 
20078
#include <$ac_header>
 
20079
_ACEOF
 
20080
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
20081
case "(($ac_try" in
 
20082
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20083
  *) ac_try_echo=$ac_try;;
 
20084
esac
 
20085
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20086
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
20087
  ac_status=$?
 
20088
  grep -v '^ *+' conftest.er1 >conftest.err
 
20089
  rm -f conftest.er1
 
20090
  cat conftest.err >&5
 
20091
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20092
  (exit $ac_status); } >/dev/null && {
 
20093
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
20094
         test ! -s conftest.err
 
20095
       }; then
 
20096
  ac_header_preproc=yes
 
20097
else
 
20098
  echo "$as_me: failed program was:" >&5
 
20099
sed 's/^/| /' conftest.$ac_ext >&5
 
20100
 
 
20101
  ac_header_preproc=no
 
20102
fi
 
20103
 
 
20104
rm -f conftest.err conftest.$ac_ext
 
20105
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
20106
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
20107
 
 
20108
# So?  What about this header?
 
20109
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
20110
  yes:no: )
 
20111
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
20112
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
20113
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
20114
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
20115
    ac_header_preproc=yes
 
20116
    ;;
 
20117
  no:yes:* )
 
20118
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
20119
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
20120
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
20121
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
20122
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
20123
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
20124
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
20125
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
20126
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
20127
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
20128
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
20129
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
20130
    ( cat <<\_ASBOX
 
20131
## ------------------------------------ ##
 
20132
## Report this to bug-findutils@gnu.org ##
 
20133
## ------------------------------------ ##
 
20134
_ASBOX
 
20135
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
20136
    ;;
 
20137
esac
 
20138
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20139
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
20140
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
20141
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20142
else
 
20143
  eval "$as_ac_Header=\$ac_header_preproc"
 
20144
fi
 
20145
ac_res=`eval echo '${'$as_ac_Header'}'`
 
20146
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
20147
echo "${ECHO_T}$ac_res" >&6; }
 
20148
 
 
20149
fi
 
20150
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
20151
  cat >>confdefs.h <<_ACEOF
 
20152
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
20153
_ACEOF
 
20154
 
 
20155
fi
 
20156
 
 
20157
done
 
20158
 
 
20159
 
 
20160
  fi
 
20161
 
 
20162
 
17510
20163
  { echo "$as_me:$LINENO: checking for working memcmp" >&5
17511
20164
echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
17512
20165
if test "${ac_cv_func_memcmp_working+set}" = set; then
21547
24200
 
21548
24201
 
21549
24202
 
 
24203
 
 
24204
  :
 
24205
 
 
24206
 
 
24207
 
 
24208
 
 
24209
 
 
24210
  if test $ac_cv_func_setenv = no; then
 
24211
 
 
24212
 
 
24213
 
 
24214
 
 
24215
 
 
24216
 
 
24217
 
 
24218
  gl_LIBOBJS="$gl_LIBOBJS setenv.$ac_objext"
 
24219
 
 
24220
 
 
24221
 
 
24222
 
 
24223
  :
 
24224
 
 
24225
 
 
24226
 
 
24227
 
 
24228
 
 
24229
 
 
24230
for ac_header in search.h
 
24231
do
 
24232
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
24233
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
24234
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
24235
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
24236
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
24237
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24238
fi
 
24239
ac_res=`eval echo '${'$as_ac_Header'}'`
 
24240
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
24241
echo "${ECHO_T}$ac_res" >&6; }
 
24242
else
 
24243
  # Is the header compilable?
 
24244
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
24245
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
24246
cat >conftest.$ac_ext <<_ACEOF
 
24247
/* confdefs.h.  */
 
24248
_ACEOF
 
24249
cat confdefs.h >>conftest.$ac_ext
 
24250
cat >>conftest.$ac_ext <<_ACEOF
 
24251
/* end confdefs.h.  */
 
24252
$ac_includes_default
 
24253
#include <$ac_header>
 
24254
_ACEOF
 
24255
rm -f conftest.$ac_objext
 
24256
if { (ac_try="$ac_compile"
 
24257
case "(($ac_try" in
 
24258
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24259
  *) ac_try_echo=$ac_try;;
 
24260
esac
 
24261
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24262
  (eval "$ac_compile") 2>conftest.er1
 
24263
  ac_status=$?
 
24264
  grep -v '^ *+' conftest.er1 >conftest.err
 
24265
  rm -f conftest.er1
 
24266
  cat conftest.err >&5
 
24267
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24268
  (exit $ac_status); } && {
 
24269
         test -z "$ac_c_werror_flag" ||
 
24270
         test ! -s conftest.err
 
24271
       } && test -s conftest.$ac_objext; then
 
24272
  ac_header_compiler=yes
 
24273
else
 
24274
  echo "$as_me: failed program was:" >&5
 
24275
sed 's/^/| /' conftest.$ac_ext >&5
 
24276
 
 
24277
        ac_header_compiler=no
 
24278
fi
 
24279
 
 
24280
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
24281
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
24282
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
24283
 
 
24284
# Is the header present?
 
24285
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
24286
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
24287
cat >conftest.$ac_ext <<_ACEOF
 
24288
/* confdefs.h.  */
 
24289
_ACEOF
 
24290
cat confdefs.h >>conftest.$ac_ext
 
24291
cat >>conftest.$ac_ext <<_ACEOF
 
24292
/* end confdefs.h.  */
 
24293
#include <$ac_header>
 
24294
_ACEOF
 
24295
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
24296
case "(($ac_try" in
 
24297
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24298
  *) ac_try_echo=$ac_try;;
 
24299
esac
 
24300
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24301
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
24302
  ac_status=$?
 
24303
  grep -v '^ *+' conftest.er1 >conftest.err
 
24304
  rm -f conftest.er1
 
24305
  cat conftest.err >&5
 
24306
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24307
  (exit $ac_status); } >/dev/null && {
 
24308
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
24309
         test ! -s conftest.err
 
24310
       }; then
 
24311
  ac_header_preproc=yes
 
24312
else
 
24313
  echo "$as_me: failed program was:" >&5
 
24314
sed 's/^/| /' conftest.$ac_ext >&5
 
24315
 
 
24316
  ac_header_preproc=no
 
24317
fi
 
24318
 
 
24319
rm -f conftest.err conftest.$ac_ext
 
24320
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
24321
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
24322
 
 
24323
# So?  What about this header?
 
24324
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
24325
  yes:no: )
 
24326
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
24327
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
24328
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
24329
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
24330
    ac_header_preproc=yes
 
24331
    ;;
 
24332
  no:yes:* )
 
24333
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
24334
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
24335
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
24336
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
24337
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
24338
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
24339
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
24340
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
24341
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
24342
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
24343
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
24344
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
24345
    ( cat <<\_ASBOX
 
24346
## ------------------------------------ ##
 
24347
## Report this to bug-findutils@gnu.org ##
 
24348
## ------------------------------------ ##
 
24349
_ASBOX
 
24350
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
24351
    ;;
 
24352
esac
 
24353
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
24354
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
24355
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
24356
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24357
else
 
24358
  eval "$as_ac_Header=\$ac_header_preproc"
 
24359
fi
 
24360
ac_res=`eval echo '${'$as_ac_Header'}'`
 
24361
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
24362
echo "${ECHO_T}$ac_res" >&6; }
 
24363
 
 
24364
fi
 
24365
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
24366
  cat >>confdefs.h <<_ACEOF
 
24367
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
24368
_ACEOF
 
24369
 
 
24370
fi
 
24371
 
 
24372
done
 
24373
 
 
24374
 
 
24375
for ac_func in tsearch
 
24376
do
 
24377
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
24378
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
24379
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
24380
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
24381
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24382
else
 
24383
  cat >conftest.$ac_ext <<_ACEOF
 
24384
/* confdefs.h.  */
 
24385
_ACEOF
 
24386
cat confdefs.h >>conftest.$ac_ext
 
24387
cat >>conftest.$ac_ext <<_ACEOF
 
24388
/* end confdefs.h.  */
 
24389
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
24390
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
24391
#define $ac_func innocuous_$ac_func
 
24392
 
 
24393
/* System header to define __stub macros and hopefully few prototypes,
 
24394
    which can conflict with char $ac_func (); below.
 
24395
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
24396
    <limits.h> exists even on freestanding compilers.  */
 
24397
 
 
24398
#ifdef __STDC__
 
24399
# include <limits.h>
 
24400
#else
 
24401
# include <assert.h>
 
24402
#endif
 
24403
 
 
24404
#undef $ac_func
 
24405
 
 
24406
/* Override any GCC internal prototype to avoid an error.
 
24407
   Use char because int might match the return type of a GCC
 
24408
   builtin and then its argument prototype would still apply.  */
 
24409
#ifdef __cplusplus
 
24410
extern "C"
 
24411
#endif
 
24412
char $ac_func ();
 
24413
/* The GNU C library defines this for functions which it implements
 
24414
    to always fail with ENOSYS.  Some functions are actually named
 
24415
    something starting with __ and the normal name is an alias.  */
 
24416
#if defined __stub_$ac_func || defined __stub___$ac_func
 
24417
choke me
 
24418
#endif
 
24419
 
 
24420
int
 
24421
main ()
 
24422
{
 
24423
return $ac_func ();
 
24424
  ;
 
24425
  return 0;
 
24426
}
 
24427
_ACEOF
 
24428
rm -f conftest.$ac_objext conftest$ac_exeext
 
24429
if { (ac_try="$ac_link"
 
24430
case "(($ac_try" in
 
24431
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24432
  *) ac_try_echo=$ac_try;;
 
24433
esac
 
24434
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24435
  (eval "$ac_link") 2>conftest.er1
 
24436
  ac_status=$?
 
24437
  grep -v '^ *+' conftest.er1 >conftest.err
 
24438
  rm -f conftest.er1
 
24439
  cat conftest.err >&5
 
24440
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24441
  (exit $ac_status); } && {
 
24442
         test -z "$ac_c_werror_flag" ||
 
24443
         test ! -s conftest.err
 
24444
       } && test -s conftest$ac_exeext &&
 
24445
       $as_test_x conftest$ac_exeext; then
 
24446
  eval "$as_ac_var=yes"
 
24447
else
 
24448
  echo "$as_me: failed program was:" >&5
 
24449
sed 's/^/| /' conftest.$ac_ext >&5
 
24450
 
 
24451
        eval "$as_ac_var=no"
 
24452
fi
 
24453
 
 
24454
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
24455
      conftest$ac_exeext conftest.$ac_ext
 
24456
fi
 
24457
ac_res=`eval echo '${'$as_ac_var'}'`
 
24458
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
24459
echo "${ECHO_T}$ac_res" >&6; }
 
24460
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
24461
  cat >>confdefs.h <<_ACEOF
 
24462
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
24463
_ACEOF
 
24464
 
 
24465
fi
 
24466
done
 
24467
 
 
24468
 
 
24469
 
 
24470
  { echo "$as_me:$LINENO: checking if environ is properly declared" >&5
 
24471
echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6; }
 
24472
  if test "${gt_cv_var_environ_declaration+set}" = set; then
 
24473
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24474
else
 
24475
 
 
24476
    cat >conftest.$ac_ext <<_ACEOF
 
24477
/* confdefs.h.  */
 
24478
_ACEOF
 
24479
cat confdefs.h >>conftest.$ac_ext
 
24480
cat >>conftest.$ac_ext <<_ACEOF
 
24481
/* end confdefs.h.  */
 
24482
#include <unistd.h>
 
24483
      extern struct { int foo; } environ;
 
24484
int
 
24485
main ()
 
24486
{
 
24487
environ.foo = 1;
 
24488
  ;
 
24489
  return 0;
 
24490
}
 
24491
_ACEOF
 
24492
rm -f conftest.$ac_objext
 
24493
if { (ac_try="$ac_compile"
 
24494
case "(($ac_try" in
 
24495
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24496
  *) ac_try_echo=$ac_try;;
 
24497
esac
 
24498
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24499
  (eval "$ac_compile") 2>conftest.er1
 
24500
  ac_status=$?
 
24501
  grep -v '^ *+' conftest.er1 >conftest.err
 
24502
  rm -f conftest.er1
 
24503
  cat conftest.err >&5
 
24504
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24505
  (exit $ac_status); } && {
 
24506
         test -z "$ac_c_werror_flag" ||
 
24507
         test ! -s conftest.err
 
24508
       } && test -s conftest.$ac_objext; then
 
24509
  gt_cv_var_environ_declaration=no
 
24510
else
 
24511
  echo "$as_me: failed program was:" >&5
 
24512
sed 's/^/| /' conftest.$ac_ext >&5
 
24513
 
 
24514
        gt_cv_var_environ_declaration=yes
 
24515
fi
 
24516
 
 
24517
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
24518
fi
 
24519
 
 
24520
  { echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5
 
24521
echo "${ECHO_T}$gt_cv_var_environ_declaration" >&6; }
 
24522
  if test $gt_cv_var_environ_declaration = yes; then
 
24523
 
 
24524
cat >>confdefs.h <<\_ACEOF
 
24525
#define HAVE_ENVIRON_DECL 1
 
24526
_ACEOF
 
24527
 
 
24528
  fi
 
24529
 
 
24530
 
 
24531
  fi
 
24532
 
 
24533
 
 
24534
 
 
24535
for ac_func in unsetenv
 
24536
do
 
24537
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
24538
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
24539
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
24540
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
24541
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24542
else
 
24543
  cat >conftest.$ac_ext <<_ACEOF
 
24544
/* confdefs.h.  */
 
24545
_ACEOF
 
24546
cat confdefs.h >>conftest.$ac_ext
 
24547
cat >>conftest.$ac_ext <<_ACEOF
 
24548
/* end confdefs.h.  */
 
24549
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
24550
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
24551
#define $ac_func innocuous_$ac_func
 
24552
 
 
24553
/* System header to define __stub macros and hopefully few prototypes,
 
24554
    which can conflict with char $ac_func (); below.
 
24555
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
24556
    <limits.h> exists even on freestanding compilers.  */
 
24557
 
 
24558
#ifdef __STDC__
 
24559
# include <limits.h>
 
24560
#else
 
24561
# include <assert.h>
 
24562
#endif
 
24563
 
 
24564
#undef $ac_func
 
24565
 
 
24566
/* Override any GCC internal prototype to avoid an error.
 
24567
   Use char because int might match the return type of a GCC
 
24568
   builtin and then its argument prototype would still apply.  */
 
24569
#ifdef __cplusplus
 
24570
extern "C"
 
24571
#endif
 
24572
char $ac_func ();
 
24573
/* The GNU C library defines this for functions which it implements
 
24574
    to always fail with ENOSYS.  Some functions are actually named
 
24575
    something starting with __ and the normal name is an alias.  */
 
24576
#if defined __stub_$ac_func || defined __stub___$ac_func
 
24577
choke me
 
24578
#endif
 
24579
 
 
24580
int
 
24581
main ()
 
24582
{
 
24583
return $ac_func ();
 
24584
  ;
 
24585
  return 0;
 
24586
}
 
24587
_ACEOF
 
24588
rm -f conftest.$ac_objext conftest$ac_exeext
 
24589
if { (ac_try="$ac_link"
 
24590
case "(($ac_try" in
 
24591
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24592
  *) ac_try_echo=$ac_try;;
 
24593
esac
 
24594
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24595
  (eval "$ac_link") 2>conftest.er1
 
24596
  ac_status=$?
 
24597
  grep -v '^ *+' conftest.er1 >conftest.err
 
24598
  rm -f conftest.er1
 
24599
  cat conftest.err >&5
 
24600
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24601
  (exit $ac_status); } && {
 
24602
         test -z "$ac_c_werror_flag" ||
 
24603
         test ! -s conftest.err
 
24604
       } && test -s conftest$ac_exeext &&
 
24605
       $as_test_x conftest$ac_exeext; then
 
24606
  eval "$as_ac_var=yes"
 
24607
else
 
24608
  echo "$as_me: failed program was:" >&5
 
24609
sed 's/^/| /' conftest.$ac_ext >&5
 
24610
 
 
24611
        eval "$as_ac_var=no"
 
24612
fi
 
24613
 
 
24614
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
24615
      conftest$ac_exeext conftest.$ac_ext
 
24616
fi
 
24617
ac_res=`eval echo '${'$as_ac_var'}'`
 
24618
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
24619
echo "${ECHO_T}$ac_res" >&6; }
 
24620
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
24621
  cat >>confdefs.h <<_ACEOF
 
24622
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
24623
_ACEOF
 
24624
 
 
24625
fi
 
24626
done
 
24627
 
 
24628
  if test $ac_cv_func_unsetenv = no; then
 
24629
 
 
24630
 
 
24631
 
 
24632
 
 
24633
 
 
24634
 
 
24635
 
 
24636
  gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
 
24637
 
 
24638
 
 
24639
 
 
24640
  :
 
24641
 
 
24642
 
 
24643
 
 
24644
 
 
24645
 
 
24646
 
 
24647
 
 
24648
  { echo "$as_me:$LINENO: checking if environ is properly declared" >&5
 
24649
echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6; }
 
24650
  if test "${gt_cv_var_environ_declaration+set}" = set; then
 
24651
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24652
else
 
24653
 
 
24654
    cat >conftest.$ac_ext <<_ACEOF
 
24655
/* confdefs.h.  */
 
24656
_ACEOF
 
24657
cat confdefs.h >>conftest.$ac_ext
 
24658
cat >>conftest.$ac_ext <<_ACEOF
 
24659
/* end confdefs.h.  */
 
24660
#include <unistd.h>
 
24661
      extern struct { int foo; } environ;
 
24662
int
 
24663
main ()
 
24664
{
 
24665
environ.foo = 1;
 
24666
  ;
 
24667
  return 0;
 
24668
}
 
24669
_ACEOF
 
24670
rm -f conftest.$ac_objext
 
24671
if { (ac_try="$ac_compile"
 
24672
case "(($ac_try" in
 
24673
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24674
  *) ac_try_echo=$ac_try;;
 
24675
esac
 
24676
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24677
  (eval "$ac_compile") 2>conftest.er1
 
24678
  ac_status=$?
 
24679
  grep -v '^ *+' conftest.er1 >conftest.err
 
24680
  rm -f conftest.er1
 
24681
  cat conftest.err >&5
 
24682
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24683
  (exit $ac_status); } && {
 
24684
         test -z "$ac_c_werror_flag" ||
 
24685
         test ! -s conftest.err
 
24686
       } && test -s conftest.$ac_objext; then
 
24687
  gt_cv_var_environ_declaration=no
 
24688
else
 
24689
  echo "$as_me: failed program was:" >&5
 
24690
sed 's/^/| /' conftest.$ac_ext >&5
 
24691
 
 
24692
        gt_cv_var_environ_declaration=yes
 
24693
fi
 
24694
 
 
24695
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
24696
fi
 
24697
 
 
24698
  { echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5
 
24699
echo "${ECHO_T}$gt_cv_var_environ_declaration" >&6; }
 
24700
  if test $gt_cv_var_environ_declaration = yes; then
 
24701
 
 
24702
cat >>confdefs.h <<\_ACEOF
 
24703
#define HAVE_ENVIRON_DECL 1
 
24704
_ACEOF
 
24705
 
 
24706
  fi
 
24707
 
 
24708
 
 
24709
  else
 
24710
    { echo "$as_me:$LINENO: checking for unsetenv() return type" >&5
 
24711
echo $ECHO_N "checking for unsetenv() return type... $ECHO_C" >&6; }
 
24712
if test "${gt_cv_func_unsetenv_ret+set}" = set; then
 
24713
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24714
else
 
24715
  cat >conftest.$ac_ext <<_ACEOF
 
24716
/* confdefs.h.  */
 
24717
_ACEOF
 
24718
cat confdefs.h >>conftest.$ac_ext
 
24719
cat >>conftest.$ac_ext <<_ACEOF
 
24720
/* end confdefs.h.  */
 
24721
#include <stdlib.h>
 
24722
extern
 
24723
#ifdef __cplusplus
 
24724
"C"
 
24725
#endif
 
24726
#if defined(__STDC__) || defined(__cplusplus)
 
24727
int unsetenv (const char *name);
 
24728
#else
 
24729
int unsetenv();
 
24730
#endif
 
24731
 
 
24732
int
 
24733
main ()
 
24734
{
 
24735
 
 
24736
  ;
 
24737
  return 0;
 
24738
}
 
24739
_ACEOF
 
24740
rm -f conftest.$ac_objext
 
24741
if { (ac_try="$ac_compile"
 
24742
case "(($ac_try" in
 
24743
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24744
  *) ac_try_echo=$ac_try;;
 
24745
esac
 
24746
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24747
  (eval "$ac_compile") 2>conftest.er1
 
24748
  ac_status=$?
 
24749
  grep -v '^ *+' conftest.er1 >conftest.err
 
24750
  rm -f conftest.er1
 
24751
  cat conftest.err >&5
 
24752
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24753
  (exit $ac_status); } && {
 
24754
         test -z "$ac_c_werror_flag" ||
 
24755
         test ! -s conftest.err
 
24756
       } && test -s conftest.$ac_objext; then
 
24757
  gt_cv_func_unsetenv_ret='int'
 
24758
else
 
24759
  echo "$as_me: failed program was:" >&5
 
24760
sed 's/^/| /' conftest.$ac_ext >&5
 
24761
 
 
24762
        gt_cv_func_unsetenv_ret='void'
 
24763
fi
 
24764
 
 
24765
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
24766
fi
 
24767
{ echo "$as_me:$LINENO: result: $gt_cv_func_unsetenv_ret" >&5
 
24768
echo "${ECHO_T}$gt_cv_func_unsetenv_ret" >&6; }
 
24769
    if test $gt_cv_func_unsetenv_ret = 'void'; then
 
24770
 
 
24771
cat >>confdefs.h <<\_ACEOF
 
24772
#define VOID_UNSETENV 1
 
24773
_ACEOF
 
24774
 
 
24775
    fi
 
24776
  fi
 
24777
 
 
24778
 
21550
24779
  { echo "$as_me:$LINENO: checking for ssize_t" >&5
21551
24780
echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
21552
24781
if test "${gt_cv_ssize_t+set}" = set; then
21608
24837
 
21609
24838
 
21610
24839
 
 
24840
 
 
24841
  :
 
24842
 
 
24843
 
 
24844
 
 
24845
 
 
24846
 
 
24847
 
 
24848
  { echo "$as_me:$LINENO: checking for struct stat.st_atim.tv_nsec" >&5
 
24849
echo $ECHO_N "checking for struct stat.st_atim.tv_nsec... $ECHO_C" >&6; }
 
24850
if test "${ac_cv_member_struct_stat_st_atim_tv_nsec+set}" = set; then
 
24851
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24852
else
 
24853
  cat >conftest.$ac_ext <<_ACEOF
 
24854
/* confdefs.h.  */
 
24855
_ACEOF
 
24856
cat confdefs.h >>conftest.$ac_ext
 
24857
cat >>conftest.$ac_ext <<_ACEOF
 
24858
/* end confdefs.h.  */
 
24859
#include <sys/types.h>
 
24860
     #include <sys/stat.h>
 
24861
 
 
24862
int
 
24863
main ()
 
24864
{
 
24865
static struct stat ac_aggr;
 
24866
if (ac_aggr.st_atim.tv_nsec)
 
24867
return 0;
 
24868
  ;
 
24869
  return 0;
 
24870
}
 
24871
_ACEOF
 
24872
rm -f conftest.$ac_objext
 
24873
if { (ac_try="$ac_compile"
 
24874
case "(($ac_try" in
 
24875
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24876
  *) ac_try_echo=$ac_try;;
 
24877
esac
 
24878
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24879
  (eval "$ac_compile") 2>conftest.er1
 
24880
  ac_status=$?
 
24881
  grep -v '^ *+' conftest.er1 >conftest.err
 
24882
  rm -f conftest.er1
 
24883
  cat conftest.err >&5
 
24884
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24885
  (exit $ac_status); } && {
 
24886
         test -z "$ac_c_werror_flag" ||
 
24887
         test ! -s conftest.err
 
24888
       } && test -s conftest.$ac_objext; then
 
24889
  ac_cv_member_struct_stat_st_atim_tv_nsec=yes
 
24890
else
 
24891
  echo "$as_me: failed program was:" >&5
 
24892
sed 's/^/| /' conftest.$ac_ext >&5
 
24893
 
 
24894
        cat >conftest.$ac_ext <<_ACEOF
 
24895
/* confdefs.h.  */
 
24896
_ACEOF
 
24897
cat confdefs.h >>conftest.$ac_ext
 
24898
cat >>conftest.$ac_ext <<_ACEOF
 
24899
/* end confdefs.h.  */
 
24900
#include <sys/types.h>
 
24901
     #include <sys/stat.h>
 
24902
 
 
24903
int
 
24904
main ()
 
24905
{
 
24906
static struct stat ac_aggr;
 
24907
if (sizeof ac_aggr.st_atim.tv_nsec)
 
24908
return 0;
 
24909
  ;
 
24910
  return 0;
 
24911
}
 
24912
_ACEOF
 
24913
rm -f conftest.$ac_objext
 
24914
if { (ac_try="$ac_compile"
 
24915
case "(($ac_try" in
 
24916
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24917
  *) ac_try_echo=$ac_try;;
 
24918
esac
 
24919
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24920
  (eval "$ac_compile") 2>conftest.er1
 
24921
  ac_status=$?
 
24922
  grep -v '^ *+' conftest.er1 >conftest.err
 
24923
  rm -f conftest.er1
 
24924
  cat conftest.err >&5
 
24925
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24926
  (exit $ac_status); } && {
 
24927
         test -z "$ac_c_werror_flag" ||
 
24928
         test ! -s conftest.err
 
24929
       } && test -s conftest.$ac_objext; then
 
24930
  ac_cv_member_struct_stat_st_atim_tv_nsec=yes
 
24931
else
 
24932
  echo "$as_me: failed program was:" >&5
 
24933
sed 's/^/| /' conftest.$ac_ext >&5
 
24934
 
 
24935
        ac_cv_member_struct_stat_st_atim_tv_nsec=no
 
24936
fi
 
24937
 
 
24938
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
24939
fi
 
24940
 
 
24941
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
24942
fi
 
24943
{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atim_tv_nsec" >&5
 
24944
echo "${ECHO_T}$ac_cv_member_struct_stat_st_atim_tv_nsec" >&6; }
 
24945
if test $ac_cv_member_struct_stat_st_atim_tv_nsec = yes; then
 
24946
 
 
24947
cat >>confdefs.h <<_ACEOF
 
24948
#define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
 
24949
_ACEOF
 
24950
 
 
24951
{ echo "$as_me:$LINENO: checking whether struct stat.st_atim is of type struct timespec" >&5
 
24952
echo $ECHO_N "checking whether struct stat.st_atim is of type struct timespec... $ECHO_C" >&6; }
 
24953
if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then
 
24954
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24955
else
 
24956
  cat >conftest.$ac_ext <<_ACEOF
 
24957
/* confdefs.h.  */
 
24958
_ACEOF
 
24959
cat confdefs.h >>conftest.$ac_ext
 
24960
cat >>conftest.$ac_ext <<_ACEOF
 
24961
/* end confdefs.h.  */
 
24962
 
 
24963
            #include <sys/types.h>
 
24964
            #include <sys/stat.h>
 
24965
            #if HAVE_SYS_TIME_H
 
24966
            # include <sys/time.h>
 
24967
            #endif
 
24968
            #include <time.h>
 
24969
            struct timespec ts;
 
24970
            struct stat st;
 
24971
 
 
24972
int
 
24973
main ()
 
24974
{
 
24975
 
 
24976
            st.st_atim = ts;
 
24977
 
 
24978
  ;
 
24979
  return 0;
 
24980
}
 
24981
_ACEOF
 
24982
rm -f conftest.$ac_objext
 
24983
if { (ac_try="$ac_compile"
 
24984
case "(($ac_try" in
 
24985
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24986
  *) ac_try_echo=$ac_try;;
 
24987
esac
 
24988
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24989
  (eval "$ac_compile") 2>conftest.er1
 
24990
  ac_status=$?
 
24991
  grep -v '^ *+' conftest.er1 >conftest.err
 
24992
  rm -f conftest.er1
 
24993
  cat conftest.err >&5
 
24994
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24995
  (exit $ac_status); } && {
 
24996
         test -z "$ac_c_werror_flag" ||
 
24997
         test ! -s conftest.err
 
24998
       } && test -s conftest.$ac_objext; then
 
24999
  ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
 
25000
else
 
25001
  echo "$as_me: failed program was:" >&5
 
25002
sed 's/^/| /' conftest.$ac_ext >&5
 
25003
 
 
25004
        ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
 
25005
fi
 
25006
 
 
25007
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
25008
fi
 
25009
{ echo "$as_me:$LINENO: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
 
25010
echo "${ECHO_T}$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
 
25011
     if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
 
25012
 
 
25013
cat >>confdefs.h <<\_ACEOF
 
25014
#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1
 
25015
_ACEOF
 
25016
 
 
25017
     fi
 
25018
else
 
25019
  { echo "$as_me:$LINENO: checking for struct stat.st_atimespec.tv_nsec" >&5
 
25020
echo $ECHO_N "checking for struct stat.st_atimespec.tv_nsec... $ECHO_C" >&6; }
 
25021
if test "${ac_cv_member_struct_stat_st_atimespec_tv_nsec+set}" = set; then
 
25022
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25023
else
 
25024
  cat >conftest.$ac_ext <<_ACEOF
 
25025
/* confdefs.h.  */
 
25026
_ACEOF
 
25027
cat confdefs.h >>conftest.$ac_ext
 
25028
cat >>conftest.$ac_ext <<_ACEOF
 
25029
/* end confdefs.h.  */
 
25030
#include <sys/types.h>
 
25031
        #include <sys/stat.h>
 
25032
 
 
25033
int
 
25034
main ()
 
25035
{
 
25036
static struct stat ac_aggr;
 
25037
if (ac_aggr.st_atimespec.tv_nsec)
 
25038
return 0;
 
25039
  ;
 
25040
  return 0;
 
25041
}
 
25042
_ACEOF
 
25043
rm -f conftest.$ac_objext
 
25044
if { (ac_try="$ac_compile"
 
25045
case "(($ac_try" in
 
25046
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25047
  *) ac_try_echo=$ac_try;;
 
25048
esac
 
25049
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25050
  (eval "$ac_compile") 2>conftest.er1
 
25051
  ac_status=$?
 
25052
  grep -v '^ *+' conftest.er1 >conftest.err
 
25053
  rm -f conftest.er1
 
25054
  cat conftest.err >&5
 
25055
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25056
  (exit $ac_status); } && {
 
25057
         test -z "$ac_c_werror_flag" ||
 
25058
         test ! -s conftest.err
 
25059
       } && test -s conftest.$ac_objext; then
 
25060
  ac_cv_member_struct_stat_st_atimespec_tv_nsec=yes
 
25061
else
 
25062
  echo "$as_me: failed program was:" >&5
 
25063
sed 's/^/| /' conftest.$ac_ext >&5
 
25064
 
 
25065
        cat >conftest.$ac_ext <<_ACEOF
 
25066
/* confdefs.h.  */
 
25067
_ACEOF
 
25068
cat confdefs.h >>conftest.$ac_ext
 
25069
cat >>conftest.$ac_ext <<_ACEOF
 
25070
/* end confdefs.h.  */
 
25071
#include <sys/types.h>
 
25072
        #include <sys/stat.h>
 
25073
 
 
25074
int
 
25075
main ()
 
25076
{
 
25077
static struct stat ac_aggr;
 
25078
if (sizeof ac_aggr.st_atimespec.tv_nsec)
 
25079
return 0;
 
25080
  ;
 
25081
  return 0;
 
25082
}
 
25083
_ACEOF
 
25084
rm -f conftest.$ac_objext
 
25085
if { (ac_try="$ac_compile"
 
25086
case "(($ac_try" in
 
25087
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25088
  *) ac_try_echo=$ac_try;;
 
25089
esac
 
25090
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25091
  (eval "$ac_compile") 2>conftest.er1
 
25092
  ac_status=$?
 
25093
  grep -v '^ *+' conftest.er1 >conftest.err
 
25094
  rm -f conftest.er1
 
25095
  cat conftest.err >&5
 
25096
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25097
  (exit $ac_status); } && {
 
25098
         test -z "$ac_c_werror_flag" ||
 
25099
         test ! -s conftest.err
 
25100
       } && test -s conftest.$ac_objext; then
 
25101
  ac_cv_member_struct_stat_st_atimespec_tv_nsec=yes
 
25102
else
 
25103
  echo "$as_me: failed program was:" >&5
 
25104
sed 's/^/| /' conftest.$ac_ext >&5
 
25105
 
 
25106
        ac_cv_member_struct_stat_st_atimespec_tv_nsec=no
 
25107
fi
 
25108
 
 
25109
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
25110
fi
 
25111
 
 
25112
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
25113
fi
 
25114
{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atimespec_tv_nsec" >&5
 
25115
echo "${ECHO_T}$ac_cv_member_struct_stat_st_atimespec_tv_nsec" >&6; }
 
25116
if test $ac_cv_member_struct_stat_st_atimespec_tv_nsec = yes; then
 
25117
 
 
25118
cat >>confdefs.h <<_ACEOF
 
25119
#define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
 
25120
_ACEOF
 
25121
 
 
25122
 
 
25123
else
 
25124
  { echo "$as_me:$LINENO: checking for struct stat.st_atimensec" >&5
 
25125
echo $ECHO_N "checking for struct stat.st_atimensec... $ECHO_C" >&6; }
 
25126
if test "${ac_cv_member_struct_stat_st_atimensec+set}" = set; then
 
25127
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25128
else
 
25129
  cat >conftest.$ac_ext <<_ACEOF
 
25130
/* confdefs.h.  */
 
25131
_ACEOF
 
25132
cat confdefs.h >>conftest.$ac_ext
 
25133
cat >>conftest.$ac_ext <<_ACEOF
 
25134
/* end confdefs.h.  */
 
25135
#include <sys/types.h>
 
25136
           #include <sys/stat.h>
 
25137
 
 
25138
int
 
25139
main ()
 
25140
{
 
25141
static struct stat ac_aggr;
 
25142
if (ac_aggr.st_atimensec)
 
25143
return 0;
 
25144
  ;
 
25145
  return 0;
 
25146
}
 
25147
_ACEOF
 
25148
rm -f conftest.$ac_objext
 
25149
if { (ac_try="$ac_compile"
 
25150
case "(($ac_try" in
 
25151
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25152
  *) ac_try_echo=$ac_try;;
 
25153
esac
 
25154
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25155
  (eval "$ac_compile") 2>conftest.er1
 
25156
  ac_status=$?
 
25157
  grep -v '^ *+' conftest.er1 >conftest.err
 
25158
  rm -f conftest.er1
 
25159
  cat conftest.err >&5
 
25160
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25161
  (exit $ac_status); } && {
 
25162
         test -z "$ac_c_werror_flag" ||
 
25163
         test ! -s conftest.err
 
25164
       } && test -s conftest.$ac_objext; then
 
25165
  ac_cv_member_struct_stat_st_atimensec=yes
 
25166
else
 
25167
  echo "$as_me: failed program was:" >&5
 
25168
sed 's/^/| /' conftest.$ac_ext >&5
 
25169
 
 
25170
        cat >conftest.$ac_ext <<_ACEOF
 
25171
/* confdefs.h.  */
 
25172
_ACEOF
 
25173
cat confdefs.h >>conftest.$ac_ext
 
25174
cat >>conftest.$ac_ext <<_ACEOF
 
25175
/* end confdefs.h.  */
 
25176
#include <sys/types.h>
 
25177
           #include <sys/stat.h>
 
25178
 
 
25179
int
 
25180
main ()
 
25181
{
 
25182
static struct stat ac_aggr;
 
25183
if (sizeof ac_aggr.st_atimensec)
 
25184
return 0;
 
25185
  ;
 
25186
  return 0;
 
25187
}
 
25188
_ACEOF
 
25189
rm -f conftest.$ac_objext
 
25190
if { (ac_try="$ac_compile"
 
25191
case "(($ac_try" in
 
25192
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25193
  *) ac_try_echo=$ac_try;;
 
25194
esac
 
25195
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25196
  (eval "$ac_compile") 2>conftest.er1
 
25197
  ac_status=$?
 
25198
  grep -v '^ *+' conftest.er1 >conftest.err
 
25199
  rm -f conftest.er1
 
25200
  cat conftest.err >&5
 
25201
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25202
  (exit $ac_status); } && {
 
25203
         test -z "$ac_c_werror_flag" ||
 
25204
         test ! -s conftest.err
 
25205
       } && test -s conftest.$ac_objext; then
 
25206
  ac_cv_member_struct_stat_st_atimensec=yes
 
25207
else
 
25208
  echo "$as_me: failed program was:" >&5
 
25209
sed 's/^/| /' conftest.$ac_ext >&5
 
25210
 
 
25211
        ac_cv_member_struct_stat_st_atimensec=no
 
25212
fi
 
25213
 
 
25214
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
25215
fi
 
25216
 
 
25217
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
25218
fi
 
25219
{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atimensec" >&5
 
25220
echo "${ECHO_T}$ac_cv_member_struct_stat_st_atimensec" >&6; }
 
25221
if test $ac_cv_member_struct_stat_st_atimensec = yes; then
 
25222
 
 
25223
cat >>confdefs.h <<_ACEOF
 
25224
#define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
 
25225
_ACEOF
 
25226
 
 
25227
 
 
25228
else
 
25229
  { echo "$as_me:$LINENO: checking for struct stat.st_atim.st__tim.tv_nsec" >&5
 
25230
echo $ECHO_N "checking for struct stat.st_atim.st__tim.tv_nsec... $ECHO_C" >&6; }
 
25231
if test "${ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec+set}" = set; then
 
25232
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25233
else
 
25234
  cat >conftest.$ac_ext <<_ACEOF
 
25235
/* confdefs.h.  */
 
25236
_ACEOF
 
25237
cat confdefs.h >>conftest.$ac_ext
 
25238
cat >>conftest.$ac_ext <<_ACEOF
 
25239
/* end confdefs.h.  */
 
25240
#include <sys/types.h>
 
25241
              #include <sys/stat.h>
 
25242
 
 
25243
int
 
25244
main ()
 
25245
{
 
25246
static struct stat ac_aggr;
 
25247
if (ac_aggr.st_atim.st__tim.tv_nsec)
 
25248
return 0;
 
25249
  ;
 
25250
  return 0;
 
25251
}
 
25252
_ACEOF
 
25253
rm -f conftest.$ac_objext
 
25254
if { (ac_try="$ac_compile"
 
25255
case "(($ac_try" in
 
25256
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25257
  *) ac_try_echo=$ac_try;;
 
25258
esac
 
25259
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25260
  (eval "$ac_compile") 2>conftest.er1
 
25261
  ac_status=$?
 
25262
  grep -v '^ *+' conftest.er1 >conftest.err
 
25263
  rm -f conftest.er1
 
25264
  cat conftest.err >&5
 
25265
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25266
  (exit $ac_status); } && {
 
25267
         test -z "$ac_c_werror_flag" ||
 
25268
         test ! -s conftest.err
 
25269
       } && test -s conftest.$ac_objext; then
 
25270
  ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec=yes
 
25271
else
 
25272
  echo "$as_me: failed program was:" >&5
 
25273
sed 's/^/| /' conftest.$ac_ext >&5
 
25274
 
 
25275
        cat >conftest.$ac_ext <<_ACEOF
 
25276
/* confdefs.h.  */
 
25277
_ACEOF
 
25278
cat confdefs.h >>conftest.$ac_ext
 
25279
cat >>conftest.$ac_ext <<_ACEOF
 
25280
/* end confdefs.h.  */
 
25281
#include <sys/types.h>
 
25282
              #include <sys/stat.h>
 
25283
 
 
25284
int
 
25285
main ()
 
25286
{
 
25287
static struct stat ac_aggr;
 
25288
if (sizeof ac_aggr.st_atim.st__tim.tv_nsec)
 
25289
return 0;
 
25290
  ;
 
25291
  return 0;
 
25292
}
 
25293
_ACEOF
 
25294
rm -f conftest.$ac_objext
 
25295
if { (ac_try="$ac_compile"
 
25296
case "(($ac_try" in
 
25297
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25298
  *) ac_try_echo=$ac_try;;
 
25299
esac
 
25300
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25301
  (eval "$ac_compile") 2>conftest.er1
 
25302
  ac_status=$?
 
25303
  grep -v '^ *+' conftest.er1 >conftest.err
 
25304
  rm -f conftest.er1
 
25305
  cat conftest.err >&5
 
25306
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25307
  (exit $ac_status); } && {
 
25308
         test -z "$ac_c_werror_flag" ||
 
25309
         test ! -s conftest.err
 
25310
       } && test -s conftest.$ac_objext; then
 
25311
  ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec=yes
 
25312
else
 
25313
  echo "$as_me: failed program was:" >&5
 
25314
sed 's/^/| /' conftest.$ac_ext >&5
 
25315
 
 
25316
        ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec=no
 
25317
fi
 
25318
 
 
25319
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
25320
fi
 
25321
 
 
25322
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
25323
fi
 
25324
{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" >&5
 
25325
echo "${ECHO_T}$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" >&6; }
 
25326
if test $ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec = yes; then
 
25327
 
 
25328
cat >>confdefs.h <<_ACEOF
 
25329
#define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
 
25330
_ACEOF
 
25331
 
 
25332
 
 
25333
fi
 
25334
 
 
25335
fi
 
25336
 
 
25337
fi
 
25338
 
 
25339
fi
 
25340
 
 
25341
 
 
25342
 
 
25343
 
 
25344
 
 
25345
 
 
25346
  :
 
25347
 
 
25348
 
 
25349
 
 
25350
 
 
25351
 
 
25352
  { echo "$as_me:$LINENO: checking for struct stat.st_birthtimespec.tv_nsec" >&5
 
25353
echo $ECHO_N "checking for struct stat.st_birthtimespec.tv_nsec... $ECHO_C" >&6; }
 
25354
if test "${ac_cv_member_struct_stat_st_birthtimespec_tv_nsec+set}" = set; then
 
25355
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25356
else
 
25357
  cat >conftest.$ac_ext <<_ACEOF
 
25358
/* confdefs.h.  */
 
25359
_ACEOF
 
25360
cat confdefs.h >>conftest.$ac_ext
 
25361
cat >>conftest.$ac_ext <<_ACEOF
 
25362
/* end confdefs.h.  */
 
25363
#include <sys/types.h>
 
25364
     #include <sys/stat.h>
 
25365
 
 
25366
int
 
25367
main ()
 
25368
{
 
25369
static struct stat ac_aggr;
 
25370
if (ac_aggr.st_birthtimespec.tv_nsec)
 
25371
return 0;
 
25372
  ;
 
25373
  return 0;
 
25374
}
 
25375
_ACEOF
 
25376
rm -f conftest.$ac_objext
 
25377
if { (ac_try="$ac_compile"
 
25378
case "(($ac_try" in
 
25379
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25380
  *) ac_try_echo=$ac_try;;
 
25381
esac
 
25382
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25383
  (eval "$ac_compile") 2>conftest.er1
 
25384
  ac_status=$?
 
25385
  grep -v '^ *+' conftest.er1 >conftest.err
 
25386
  rm -f conftest.er1
 
25387
  cat conftest.err >&5
 
25388
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25389
  (exit $ac_status); } && {
 
25390
         test -z "$ac_c_werror_flag" ||
 
25391
         test ! -s conftest.err
 
25392
       } && test -s conftest.$ac_objext; then
 
25393
  ac_cv_member_struct_stat_st_birthtimespec_tv_nsec=yes
 
25394
else
 
25395
  echo "$as_me: failed program was:" >&5
 
25396
sed 's/^/| /' conftest.$ac_ext >&5
 
25397
 
 
25398
        cat >conftest.$ac_ext <<_ACEOF
 
25399
/* confdefs.h.  */
 
25400
_ACEOF
 
25401
cat confdefs.h >>conftest.$ac_ext
 
25402
cat >>conftest.$ac_ext <<_ACEOF
 
25403
/* end confdefs.h.  */
 
25404
#include <sys/types.h>
 
25405
     #include <sys/stat.h>
 
25406
 
 
25407
int
 
25408
main ()
 
25409
{
 
25410
static struct stat ac_aggr;
 
25411
if (sizeof ac_aggr.st_birthtimespec.tv_nsec)
 
25412
return 0;
 
25413
  ;
 
25414
  return 0;
 
25415
}
 
25416
_ACEOF
 
25417
rm -f conftest.$ac_objext
 
25418
if { (ac_try="$ac_compile"
 
25419
case "(($ac_try" in
 
25420
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25421
  *) ac_try_echo=$ac_try;;
 
25422
esac
 
25423
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25424
  (eval "$ac_compile") 2>conftest.er1
 
25425
  ac_status=$?
 
25426
  grep -v '^ *+' conftest.er1 >conftest.err
 
25427
  rm -f conftest.er1
 
25428
  cat conftest.err >&5
 
25429
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25430
  (exit $ac_status); } && {
 
25431
         test -z "$ac_c_werror_flag" ||
 
25432
         test ! -s conftest.err
 
25433
       } && test -s conftest.$ac_objext; then
 
25434
  ac_cv_member_struct_stat_st_birthtimespec_tv_nsec=yes
 
25435
else
 
25436
  echo "$as_me: failed program was:" >&5
 
25437
sed 's/^/| /' conftest.$ac_ext >&5
 
25438
 
 
25439
        ac_cv_member_struct_stat_st_birthtimespec_tv_nsec=no
 
25440
fi
 
25441
 
 
25442
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
25443
fi
 
25444
 
 
25445
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
25446
fi
 
25447
{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" >&5
 
25448
echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" >&6; }
 
25449
if test $ac_cv_member_struct_stat_st_birthtimespec_tv_nsec = yes; then
 
25450
 
 
25451
cat >>confdefs.h <<_ACEOF
 
25452
#define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
 
25453
_ACEOF
 
25454
 
 
25455
 
 
25456
else
 
25457
  { echo "$as_me:$LINENO: checking for struct stat.st_birthtimensec" >&5
 
25458
echo $ECHO_N "checking for struct stat.st_birthtimensec... $ECHO_C" >&6; }
 
25459
if test "${ac_cv_member_struct_stat_st_birthtimensec+set}" = set; then
 
25460
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25461
else
 
25462
  cat >conftest.$ac_ext <<_ACEOF
 
25463
/* confdefs.h.  */
 
25464
_ACEOF
 
25465
cat confdefs.h >>conftest.$ac_ext
 
25466
cat >>conftest.$ac_ext <<_ACEOF
 
25467
/* end confdefs.h.  */
 
25468
#include <sys/types.h>
 
25469
        #include <sys/stat.h>
 
25470
 
 
25471
int
 
25472
main ()
 
25473
{
 
25474
static struct stat ac_aggr;
 
25475
if (ac_aggr.st_birthtimensec)
 
25476
return 0;
 
25477
  ;
 
25478
  return 0;
 
25479
}
 
25480
_ACEOF
 
25481
rm -f conftest.$ac_objext
 
25482
if { (ac_try="$ac_compile"
 
25483
case "(($ac_try" in
 
25484
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25485
  *) ac_try_echo=$ac_try;;
 
25486
esac
 
25487
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25488
  (eval "$ac_compile") 2>conftest.er1
 
25489
  ac_status=$?
 
25490
  grep -v '^ *+' conftest.er1 >conftest.err
 
25491
  rm -f conftest.er1
 
25492
  cat conftest.err >&5
 
25493
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25494
  (exit $ac_status); } && {
 
25495
         test -z "$ac_c_werror_flag" ||
 
25496
         test ! -s conftest.err
 
25497
       } && test -s conftest.$ac_objext; then
 
25498
  ac_cv_member_struct_stat_st_birthtimensec=yes
 
25499
else
 
25500
  echo "$as_me: failed program was:" >&5
 
25501
sed 's/^/| /' conftest.$ac_ext >&5
 
25502
 
 
25503
        cat >conftest.$ac_ext <<_ACEOF
 
25504
/* confdefs.h.  */
 
25505
_ACEOF
 
25506
cat confdefs.h >>conftest.$ac_ext
 
25507
cat >>conftest.$ac_ext <<_ACEOF
 
25508
/* end confdefs.h.  */
 
25509
#include <sys/types.h>
 
25510
        #include <sys/stat.h>
 
25511
 
 
25512
int
 
25513
main ()
 
25514
{
 
25515
static struct stat ac_aggr;
 
25516
if (sizeof ac_aggr.st_birthtimensec)
 
25517
return 0;
 
25518
  ;
 
25519
  return 0;
 
25520
}
 
25521
_ACEOF
 
25522
rm -f conftest.$ac_objext
 
25523
if { (ac_try="$ac_compile"
 
25524
case "(($ac_try" in
 
25525
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25526
  *) ac_try_echo=$ac_try;;
 
25527
esac
 
25528
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25529
  (eval "$ac_compile") 2>conftest.er1
 
25530
  ac_status=$?
 
25531
  grep -v '^ *+' conftest.er1 >conftest.err
 
25532
  rm -f conftest.er1
 
25533
  cat conftest.err >&5
 
25534
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25535
  (exit $ac_status); } && {
 
25536
         test -z "$ac_c_werror_flag" ||
 
25537
         test ! -s conftest.err
 
25538
       } && test -s conftest.$ac_objext; then
 
25539
  ac_cv_member_struct_stat_st_birthtimensec=yes
 
25540
else
 
25541
  echo "$as_me: failed program was:" >&5
 
25542
sed 's/^/| /' conftest.$ac_ext >&5
 
25543
 
 
25544
        ac_cv_member_struct_stat_st_birthtimensec=no
 
25545
fi
 
25546
 
 
25547
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
25548
fi
 
25549
 
 
25550
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
25551
fi
 
25552
{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtimensec" >&5
 
25553
echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtimensec" >&6; }
 
25554
if test $ac_cv_member_struct_stat_st_birthtimensec = yes; then
 
25555
 
 
25556
cat >>confdefs.h <<_ACEOF
 
25557
#define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
 
25558
_ACEOF
 
25559
 
 
25560
 
 
25561
else
 
25562
  { echo "$as_me:$LINENO: checking for struct stat.st_birthtim.tv_nsec" >&5
 
25563
echo $ECHO_N "checking for struct stat.st_birthtim.tv_nsec... $ECHO_C" >&6; }
 
25564
if test "${ac_cv_member_struct_stat_st_birthtim_tv_nsec+set}" = set; then
 
25565
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25566
else
 
25567
  cat >conftest.$ac_ext <<_ACEOF
 
25568
/* confdefs.h.  */
 
25569
_ACEOF
 
25570
cat confdefs.h >>conftest.$ac_ext
 
25571
cat >>conftest.$ac_ext <<_ACEOF
 
25572
/* end confdefs.h.  */
 
25573
#include <sys/types.h>
 
25574
          #include <sys/stat.h>
 
25575
 
 
25576
int
 
25577
main ()
 
25578
{
 
25579
static struct stat ac_aggr;
 
25580
if (ac_aggr.st_birthtim.tv_nsec)
 
25581
return 0;
 
25582
  ;
 
25583
  return 0;
 
25584
}
 
25585
_ACEOF
 
25586
rm -f conftest.$ac_objext
 
25587
if { (ac_try="$ac_compile"
 
25588
case "(($ac_try" in
 
25589
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25590
  *) ac_try_echo=$ac_try;;
 
25591
esac
 
25592
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25593
  (eval "$ac_compile") 2>conftest.er1
 
25594
  ac_status=$?
 
25595
  grep -v '^ *+' conftest.er1 >conftest.err
 
25596
  rm -f conftest.er1
 
25597
  cat conftest.err >&5
 
25598
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25599
  (exit $ac_status); } && {
 
25600
         test -z "$ac_c_werror_flag" ||
 
25601
         test ! -s conftest.err
 
25602
       } && test -s conftest.$ac_objext; then
 
25603
  ac_cv_member_struct_stat_st_birthtim_tv_nsec=yes
 
25604
else
 
25605
  echo "$as_me: failed program was:" >&5
 
25606
sed 's/^/| /' conftest.$ac_ext >&5
 
25607
 
 
25608
        cat >conftest.$ac_ext <<_ACEOF
 
25609
/* confdefs.h.  */
 
25610
_ACEOF
 
25611
cat confdefs.h >>conftest.$ac_ext
 
25612
cat >>conftest.$ac_ext <<_ACEOF
 
25613
/* end confdefs.h.  */
 
25614
#include <sys/types.h>
 
25615
          #include <sys/stat.h>
 
25616
 
 
25617
int
 
25618
main ()
 
25619
{
 
25620
static struct stat ac_aggr;
 
25621
if (sizeof ac_aggr.st_birthtim.tv_nsec)
 
25622
return 0;
 
25623
  ;
 
25624
  return 0;
 
25625
}
 
25626
_ACEOF
 
25627
rm -f conftest.$ac_objext
 
25628
if { (ac_try="$ac_compile"
 
25629
case "(($ac_try" in
 
25630
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25631
  *) ac_try_echo=$ac_try;;
 
25632
esac
 
25633
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25634
  (eval "$ac_compile") 2>conftest.er1
 
25635
  ac_status=$?
 
25636
  grep -v '^ *+' conftest.er1 >conftest.err
 
25637
  rm -f conftest.er1
 
25638
  cat conftest.err >&5
 
25639
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25640
  (exit $ac_status); } && {
 
25641
         test -z "$ac_c_werror_flag" ||
 
25642
         test ! -s conftest.err
 
25643
       } && test -s conftest.$ac_objext; then
 
25644
  ac_cv_member_struct_stat_st_birthtim_tv_nsec=yes
 
25645
else
 
25646
  echo "$as_me: failed program was:" >&5
 
25647
sed 's/^/| /' conftest.$ac_ext >&5
 
25648
 
 
25649
        ac_cv_member_struct_stat_st_birthtim_tv_nsec=no
 
25650
fi
 
25651
 
 
25652
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
25653
fi
 
25654
 
 
25655
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
25656
fi
 
25657
{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtim_tv_nsec" >&5
 
25658
echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtim_tv_nsec" >&6; }
 
25659
if test $ac_cv_member_struct_stat_st_birthtim_tv_nsec = yes; then
 
25660
 
 
25661
cat >>confdefs.h <<_ACEOF
 
25662
#define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
 
25663
_ACEOF
 
25664
 
 
25665
 
 
25666
fi
 
25667
 
 
25668
fi
 
25669
 
 
25670
fi
 
25671
 
 
25672
 
 
25673
 
 
25674
  { echo "$as_me:$LINENO: checking for va_copy" >&5
 
25675
echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
 
25676
  if test "${gl_cv_func_va_copy+set}" = set; then
 
25677
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25678
else
 
25679
 
 
25680
    cat >conftest.$ac_ext <<_ACEOF
 
25681
/* confdefs.h.  */
 
25682
_ACEOF
 
25683
cat confdefs.h >>conftest.$ac_ext
 
25684
cat >>conftest.$ac_ext <<_ACEOF
 
25685
/* end confdefs.h.  */
 
25686
#include <stdarg.h>
 
25687
int
 
25688
main ()
 
25689
{
 
25690
 
 
25691
#ifndef va_copy
 
25692
void (*func) (va_list, va_list) = va_copy;
 
25693
#endif
 
25694
 
 
25695
  ;
 
25696
  return 0;
 
25697
}
 
25698
_ACEOF
 
25699
rm -f conftest.$ac_objext
 
25700
if { (ac_try="$ac_compile"
 
25701
case "(($ac_try" in
 
25702
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25703
  *) ac_try_echo=$ac_try;;
 
25704
esac
 
25705
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25706
  (eval "$ac_compile") 2>conftest.er1
 
25707
  ac_status=$?
 
25708
  grep -v '^ *+' conftest.er1 >conftest.err
 
25709
  rm -f conftest.er1
 
25710
  cat conftest.err >&5
 
25711
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25712
  (exit $ac_status); } && {
 
25713
         test -z "$ac_c_werror_flag" ||
 
25714
         test ! -s conftest.err
 
25715
       } && test -s conftest.$ac_objext; then
 
25716
  gl_cv_func_va_copy=yes
 
25717
else
 
25718
  echo "$as_me: failed program was:" >&5
 
25719
sed 's/^/| /' conftest.$ac_ext >&5
 
25720
 
 
25721
        gl_cv_func_va_copy=no
 
25722
fi
 
25723
 
 
25724
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
25725
fi
 
25726
 
 
25727
  { echo "$as_me:$LINENO: result: $gl_cv_func_va_copy" >&5
 
25728
echo "${ECHO_T}$gl_cv_func_va_copy" >&6; }
 
25729
  if test $gl_cv_func_va_copy = no; then
 
25730
    # Provide a substitute, either __va_copy or as a simple assignment.
 
25731
    if test "${gl_cv_func___va_copy+set}" = set; then
 
25732
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25733
else
 
25734
 
 
25735
      cat >conftest.$ac_ext <<_ACEOF
 
25736
/* confdefs.h.  */
 
25737
_ACEOF
 
25738
cat confdefs.h >>conftest.$ac_ext
 
25739
cat >>conftest.$ac_ext <<_ACEOF
 
25740
/* end confdefs.h.  */
 
25741
#include <stdarg.h>
 
25742
int
 
25743
main ()
 
25744
{
 
25745
 
 
25746
#ifndef __va_copy
 
25747
error, bail out
 
25748
#endif
 
25749
 
 
25750
  ;
 
25751
  return 0;
 
25752
}
 
25753
_ACEOF
 
25754
rm -f conftest.$ac_objext
 
25755
if { (ac_try="$ac_compile"
 
25756
case "(($ac_try" in
 
25757
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
25758
  *) ac_try_echo=$ac_try;;
 
25759
esac
 
25760
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
25761
  (eval "$ac_compile") 2>conftest.er1
 
25762
  ac_status=$?
 
25763
  grep -v '^ *+' conftest.er1 >conftest.err
 
25764
  rm -f conftest.er1
 
25765
  cat conftest.err >&5
 
25766
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25767
  (exit $ac_status); } && {
 
25768
         test -z "$ac_c_werror_flag" ||
 
25769
         test ! -s conftest.err
 
25770
       } && test -s conftest.$ac_objext; then
 
25771
  gl_cv_func___va_copy=yes
 
25772
else
 
25773
  echo "$as_me: failed program was:" >&5
 
25774
sed 's/^/| /' conftest.$ac_ext >&5
 
25775
 
 
25776
        gl_cv_func___va_copy=no
 
25777
fi
 
25778
 
 
25779
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
25780
fi
 
25781
 
 
25782
    if test $gl_cv_func___va_copy = yes; then
 
25783
 
 
25784
cat >>confdefs.h <<\_ACEOF
 
25785
#define va_copy __va_copy
 
25786
_ACEOF
 
25787
 
 
25788
    else
 
25789
 
 
25790
 
 
25791
 
 
25792
cat >>confdefs.h <<\_ACEOF
 
25793
#define va_copy gl_va_copy
 
25794
_ACEOF
 
25795
 
 
25796
    fi
 
25797
  fi
 
25798
 
 
25799
 
 
25800
 
 
25801
 
21611
25802
  # Define two additional variables used in the Makefile substitution.
21612
25803
 
21613
25804
  if test "$ac_cv_header_stdbool_h" = yes; then
22686
26877
 
22687
26878
 
22688
26879
 
22689
 
  { echo "$as_me:$LINENO: checking for wchar_t" >&5
22690
 
echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
22691
 
if test "${gt_cv_c_wchar_t+set}" = set; then
22692
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
22693
 
else
22694
 
  cat >conftest.$ac_ext <<_ACEOF
22695
 
/* confdefs.h.  */
22696
 
_ACEOF
22697
 
cat confdefs.h >>conftest.$ac_ext
22698
 
cat >>conftest.$ac_ext <<_ACEOF
22699
 
/* end confdefs.h.  */
22700
 
#include <stddef.h>
22701
 
       wchar_t foo = (wchar_t)'\0';
22702
 
int
22703
 
main ()
22704
 
{
22705
 
 
22706
 
  ;
22707
 
  return 0;
22708
 
}
22709
 
_ACEOF
22710
 
rm -f conftest.$ac_objext
22711
 
if { (ac_try="$ac_compile"
22712
 
case "(($ac_try" in
22713
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22714
 
  *) ac_try_echo=$ac_try;;
22715
 
esac
22716
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22717
 
  (eval "$ac_compile") 2>conftest.er1
22718
 
  ac_status=$?
22719
 
  grep -v '^ *+' conftest.er1 >conftest.err
22720
 
  rm -f conftest.er1
22721
 
  cat conftest.err >&5
22722
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22723
 
  (exit $ac_status); } && {
22724
 
         test -z "$ac_c_werror_flag" ||
22725
 
         test ! -s conftest.err
22726
 
       } && test -s conftest.$ac_objext; then
22727
 
  gt_cv_c_wchar_t=yes
22728
 
else
22729
 
  echo "$as_me: failed program was:" >&5
22730
 
sed 's/^/| /' conftest.$ac_ext >&5
22731
 
 
22732
 
        gt_cv_c_wchar_t=no
22733
 
fi
22734
 
 
22735
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22736
 
fi
22737
 
{ echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
22738
 
echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
22739
 
  if test $gt_cv_c_wchar_t = yes; then
22740
 
 
22741
 
cat >>confdefs.h <<\_ACEOF
22742
 
#define HAVE_WCHAR_T 1
22743
 
_ACEOF
22744
 
 
22745
 
  fi
22746
 
 
22747
 
 
22748
 
  { echo "$as_me:$LINENO: checking for wint_t" >&5
22749
 
echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
22750
 
if test "${gt_cv_c_wint_t+set}" = set; then
22751
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
22752
 
else
22753
 
  cat >conftest.$ac_ext <<_ACEOF
22754
 
/* confdefs.h.  */
22755
 
_ACEOF
22756
 
cat confdefs.h >>conftest.$ac_ext
22757
 
cat >>conftest.$ac_ext <<_ACEOF
22758
 
/* end confdefs.h.  */
22759
 
 
22760
 
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22761
 
   <wchar.h>.
22762
 
   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
22763
 
   before <wchar.h>.  */
22764
 
#include <stddef.h>
22765
 
#include <stdio.h>
22766
 
#include <time.h>
22767
 
#include <wchar.h>
22768
 
       wint_t foo = (wchar_t)'\0';
22769
 
int
22770
 
main ()
22771
 
{
22772
 
 
22773
 
  ;
22774
 
  return 0;
22775
 
}
22776
 
_ACEOF
22777
 
rm -f conftest.$ac_objext
22778
 
if { (ac_try="$ac_compile"
22779
 
case "(($ac_try" in
22780
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22781
 
  *) ac_try_echo=$ac_try;;
22782
 
esac
22783
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22784
 
  (eval "$ac_compile") 2>conftest.er1
22785
 
  ac_status=$?
22786
 
  grep -v '^ *+' conftest.er1 >conftest.err
22787
 
  rm -f conftest.er1
22788
 
  cat conftest.err >&5
22789
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22790
 
  (exit $ac_status); } && {
22791
 
         test -z "$ac_c_werror_flag" ||
22792
 
         test ! -s conftest.err
22793
 
       } && test -s conftest.$ac_objext; then
22794
 
  gt_cv_c_wint_t=yes
22795
 
else
22796
 
  echo "$as_me: failed program was:" >&5
22797
 
sed 's/^/| /' conftest.$ac_ext >&5
22798
 
 
22799
 
        gt_cv_c_wint_t=no
22800
 
fi
22801
 
 
22802
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22803
 
fi
22804
 
{ echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
22805
 
echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
22806
 
  if test $gt_cv_c_wint_t = yes; then
22807
 
 
22808
 
cat >>confdefs.h <<\_ACEOF
22809
 
#define HAVE_WINT_T 1
22810
 
_ACEOF
22811
 
 
22812
 
  fi
22813
 
 
22814
 
 
22815
26880
 
22816
26881
 
22817
26882
 
23048
27113
 
23049
27114
 
23050
27115
 
 
27116
for ac_func in strcasestr
 
27117
do
 
27118
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
27119
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
27120
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
27121
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
27122
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
27123
else
 
27124
  cat >conftest.$ac_ext <<_ACEOF
 
27125
/* confdefs.h.  */
 
27126
_ACEOF
 
27127
cat confdefs.h >>conftest.$ac_ext
 
27128
cat >>conftest.$ac_ext <<_ACEOF
 
27129
/* end confdefs.h.  */
 
27130
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
27131
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
27132
#define $ac_func innocuous_$ac_func
 
27133
 
 
27134
/* System header to define __stub macros and hopefully few prototypes,
 
27135
    which can conflict with char $ac_func (); below.
 
27136
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
27137
    <limits.h> exists even on freestanding compilers.  */
 
27138
 
 
27139
#ifdef __STDC__
 
27140
# include <limits.h>
 
27141
#else
 
27142
# include <assert.h>
 
27143
#endif
 
27144
 
 
27145
#undef $ac_func
 
27146
 
 
27147
/* Override any GCC internal prototype to avoid an error.
 
27148
   Use char because int might match the return type of a GCC
 
27149
   builtin and then its argument prototype would still apply.  */
 
27150
#ifdef __cplusplus
 
27151
extern "C"
 
27152
#endif
 
27153
char $ac_func ();
 
27154
/* The GNU C library defines this for functions which it implements
 
27155
    to always fail with ENOSYS.  Some functions are actually named
 
27156
    something starting with __ and the normal name is an alias.  */
 
27157
#if defined __stub_$ac_func || defined __stub___$ac_func
 
27158
choke me
 
27159
#endif
 
27160
 
 
27161
int
 
27162
main ()
 
27163
{
 
27164
return $ac_func ();
 
27165
  ;
 
27166
  return 0;
 
27167
}
 
27168
_ACEOF
 
27169
rm -f conftest.$ac_objext conftest$ac_exeext
 
27170
if { (ac_try="$ac_link"
 
27171
case "(($ac_try" in
 
27172
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
27173
  *) ac_try_echo=$ac_try;;
 
27174
esac
 
27175
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
27176
  (eval "$ac_link") 2>conftest.er1
 
27177
  ac_status=$?
 
27178
  grep -v '^ *+' conftest.er1 >conftest.err
 
27179
  rm -f conftest.er1
 
27180
  cat conftest.err >&5
 
27181
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27182
  (exit $ac_status); } && {
 
27183
         test -z "$ac_c_werror_flag" ||
 
27184
         test ! -s conftest.err
 
27185
       } && test -s conftest$ac_exeext &&
 
27186
       $as_test_x conftest$ac_exeext; then
 
27187
  eval "$as_ac_var=yes"
 
27188
else
 
27189
  echo "$as_me: failed program was:" >&5
 
27190
sed 's/^/| /' conftest.$ac_ext >&5
 
27191
 
 
27192
        eval "$as_ac_var=no"
 
27193
fi
 
27194
 
 
27195
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
27196
      conftest$ac_exeext conftest.$ac_ext
 
27197
fi
 
27198
ac_res=`eval echo '${'$as_ac_var'}'`
 
27199
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
27200
echo "${ECHO_T}$ac_res" >&6; }
 
27201
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
27202
  cat >>confdefs.h <<_ACEOF
 
27203
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
27204
_ACEOF
 
27205
 
 
27206
else
 
27207
 
 
27208
    gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
 
27209
 
 
27210
fi
 
27211
done
 
27212
 
 
27213
 
 
27214
  if test $ac_cv_func_strcasestr = no; then
 
27215
    HAVE_STRCASESTR=0
 
27216
 
 
27217
  :
 
27218
 
 
27219
  fi
 
27220
 
 
27221
 
 
27222
 
 
27223
  GNULIB_STRCASESTR=1
 
27224
 
 
27225
 
 
27226
 
 
27227
 
 
27228
 
 
27229
 
 
27230
 
 
27231
 
 
27232
 
 
27233
 
 
27234
 
23051
27235
for ac_func in strdup
23052
27236
do
23053
27237
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24792
28976
 
24793
28977
 
24794
28978
 
 
28979
  { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
 
28980
echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
 
28981
if test -z "$MKDIR_P"; then
 
28982
  if test "${ac_cv_path_mkdir+set}" = set; then
 
28983
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
28984
else
 
28985
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
28986
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
 
28987
do
 
28988
  IFS=$as_save_IFS
 
28989
  test -z "$as_dir" && as_dir=.
 
28990
  for ac_prog in mkdir gmkdir; do
 
28991
         for ac_exec_ext in '' $ac_executable_extensions; do
 
28992
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
 
28993
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
 
28994
             'mkdir (GNU coreutils) '* | \
 
28995
             'mkdir (coreutils) '* | \
 
28996
             'mkdir (fileutils) '4.1*)
 
28997
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
 
28998
               break 3;;
 
28999
           esac
 
29000
         done
 
29001
       done
 
29002
done
 
29003
IFS=$as_save_IFS
 
29004
 
 
29005
fi
 
29006
 
 
29007
  if test "${ac_cv_path_mkdir+set}" = set; then
 
29008
    MKDIR_P="$ac_cv_path_mkdir -p"
 
29009
  else
 
29010
    # As a last resort, use the slow shell script.  Don't cache a
 
29011
    # value for MKDIR_P within a source directory, because that will
 
29012
    # break other packages using the cache if that directory is
 
29013
    # removed, or if the value is a relative name.
 
29014
    test -d ./--version && rmdir ./--version
 
29015
    MKDIR_P="$ac_install_sh -d"
 
29016
  fi
 
29017
fi
 
29018
{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
 
29019
echo "${ECHO_T}$MKDIR_P" >&6; }
 
29020
 
 
29021
 
 
29022
 
 
29023
 
24795
29024
 
24796
29025
 
24797
29026
 
24875
29104
 
24876
29105
 
24877
29106
 
 
29107
 
 
29108
 
 
29109
 
24878
29110
  :
24879
29111
 
24880
29112
 
25179
29411
 
25180
29412
 
25181
29413
 
 
29414
 
 
29415
  :
 
29416
 
 
29417
 
 
29418
 
 
29419
 
 
29420
 
 
29421
 
 
29422
  :
 
29423
 
 
29424
 
 
29425
 
 
29426
 
 
29427
 
 
29428
 
 
29429
  { echo "$as_me:$LINENO: checking whether wcwidth is declared" >&5
 
29430
echo $ECHO_N "checking whether wcwidth is declared... $ECHO_C" >&6; }
 
29431
if test "${ac_cv_have_decl_wcwidth+set}" = set; then
 
29432
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
29433
else
 
29434
  cat >conftest.$ac_ext <<_ACEOF
 
29435
/* confdefs.h.  */
 
29436
_ACEOF
 
29437
cat confdefs.h >>conftest.$ac_ext
 
29438
cat >>conftest.$ac_ext <<_ACEOF
 
29439
/* end confdefs.h.  */
 
29440
 
 
29441
/* AIX 3.2.5 declares wcwidth in <string.h>. */
 
29442
#include <string.h>
 
29443
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
 
29444
   <wchar.h>.
 
29445
   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
 
29446
   before <wchar.h>.  */
 
29447
#include <stddef.h>
 
29448
#include <stdio.h>
 
29449
#include <time.h>
 
29450
#include <wchar.h>
 
29451
 
 
29452
 
 
29453
int
 
29454
main ()
 
29455
{
 
29456
#ifndef wcwidth
 
29457
  (void) wcwidth;
 
29458
#endif
 
29459
 
 
29460
  ;
 
29461
  return 0;
 
29462
}
 
29463
_ACEOF
 
29464
rm -f conftest.$ac_objext
 
29465
if { (ac_try="$ac_compile"
 
29466
case "(($ac_try" in
 
29467
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
29468
  *) ac_try_echo=$ac_try;;
 
29469
esac
 
29470
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
29471
  (eval "$ac_compile") 2>conftest.er1
 
29472
  ac_status=$?
 
29473
  grep -v '^ *+' conftest.er1 >conftest.err
 
29474
  rm -f conftest.er1
 
29475
  cat conftest.err >&5
 
29476
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29477
  (exit $ac_status); } && {
 
29478
         test -z "$ac_c_werror_flag" ||
 
29479
         test ! -s conftest.err
 
29480
       } && test -s conftest.$ac_objext; then
 
29481
  ac_cv_have_decl_wcwidth=yes
 
29482
else
 
29483
  echo "$as_me: failed program was:" >&5
 
29484
sed 's/^/| /' conftest.$ac_ext >&5
 
29485
 
 
29486
        ac_cv_have_decl_wcwidth=no
 
29487
fi
 
29488
 
 
29489
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
29490
fi
 
29491
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_wcwidth" >&5
 
29492
echo "${ECHO_T}$ac_cv_have_decl_wcwidth" >&6; }
 
29493
if test $ac_cv_have_decl_wcwidth = yes; then
 
29494
 
 
29495
cat >>confdefs.h <<_ACEOF
 
29496
#define HAVE_DECL_WCWIDTH 1
 
29497
_ACEOF
 
29498
 
 
29499
 
 
29500
else
 
29501
  cat >>confdefs.h <<_ACEOF
 
29502
#define HAVE_DECL_WCWIDTH 0
 
29503
_ACEOF
 
29504
 
 
29505
 
 
29506
fi
 
29507
 
 
29508
 
 
29509
  if test $ac_cv_have_decl_wcwidth != yes; then
 
29510
    HAVE_DECL_WCWIDTH=0
 
29511
  fi
 
29512
 
 
29513
  if test $ac_cv_func_wcwidth = no; then
 
29514
    REPLACE_WCWIDTH=1
 
29515
  else
 
29516
                { echo "$as_me:$LINENO: checking whether wcwidth works reasonably in UTF-8 locales" >&5
 
29517
echo $ECHO_N "checking whether wcwidth works reasonably in UTF-8 locales... $ECHO_C" >&6; }
 
29518
if test "${gl_cv_func_wcwidth_works+set}" = set; then
 
29519
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
29520
else
 
29521
 
 
29522
        if test "$cross_compiling" = yes; then
 
29523
  gl_cv_func_wcwidth_works="guessing no"
 
29524
else
 
29525
  cat >conftest.$ac_ext <<_ACEOF
 
29526
/* confdefs.h.  */
 
29527
_ACEOF
 
29528
cat confdefs.h >>conftest.$ac_ext
 
29529
cat >>conftest.$ac_ext <<_ACEOF
 
29530
/* end confdefs.h.  */
 
29531
 
 
29532
#include <locale.h>
 
29533
/* AIX 3.2.5 declares wcwidth in <string.h>. */
 
29534
#include <string.h>
 
29535
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
 
29536
   <wchar.h>.
 
29537
   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
 
29538
   before <wchar.h>.  */
 
29539
#include <stddef.h>
 
29540
#include <stdio.h>
 
29541
#include <time.h>
 
29542
#include <wchar.h>
 
29543
#if !HAVE_DECL_WCWIDTH
 
29544
extern
 
29545
# ifdef __cplusplus
 
29546
"C"
 
29547
# endif
 
29548
int wcwidth (int);
 
29549
#endif
 
29550
int main ()
 
29551
{
 
29552
  if (setlocale (LC_ALL, "fr_FR.UTF-8") != NULL)
 
29553
    if (wcwidth (0x0301) > 0 || wcwidth (0x200B) > 0)
 
29554
      return 1;
 
29555
  return 0;
 
29556
}
 
29557
_ACEOF
 
29558
rm -f conftest$ac_exeext
 
29559
if { (ac_try="$ac_link"
 
29560
case "(($ac_try" in
 
29561
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
29562
  *) ac_try_echo=$ac_try;;
 
29563
esac
 
29564
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
29565
  (eval "$ac_link") 2>&5
 
29566
  ac_status=$?
 
29567
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29568
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
29569
  { (case "(($ac_try" in
 
29570
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
29571
  *) ac_try_echo=$ac_try;;
 
29572
esac
 
29573
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
29574
  (eval "$ac_try") 2>&5
 
29575
  ac_status=$?
 
29576
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29577
  (exit $ac_status); }; }; then
 
29578
  gl_cv_func_wcwidth_works=yes
 
29579
else
 
29580
  echo "$as_me: program exited with status $ac_status" >&5
 
29581
echo "$as_me: failed program was:" >&5
 
29582
sed 's/^/| /' conftest.$ac_ext >&5
 
29583
 
 
29584
( exit $ac_status )
 
29585
gl_cv_func_wcwidth_works=no
 
29586
fi
 
29587
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
29588
fi
 
29589
 
 
29590
 
 
29591
 
 
29592
fi
 
29593
{ echo "$as_me:$LINENO: result: $gl_cv_func_wcwidth_works" >&5
 
29594
echo "${ECHO_T}$gl_cv_func_wcwidth_works" >&6; }
 
29595
    case "$gl_cv_func_wcwidth_works" in
 
29596
      *yes) ;;
 
29597
      *no) REPLACE_WCWIDTH=1 ;;
 
29598
    esac
 
29599
  fi
 
29600
  if test $REPLACE_WCWIDTH = 1; then
 
29601
 
 
29602
 
 
29603
 
 
29604
 
 
29605
 
 
29606
 
 
29607
 
 
29608
  gl_LIBOBJS="$gl_LIBOBJS wcwidth.$ac_objext"
 
29609
 
 
29610
  fi
 
29611
 
 
29612
  if test $REPLACE_WCWIDTH = 1 || test $HAVE_DECL_WCWIDTH = 0; then
 
29613
    WCHAR_H=wchar.h
 
29614
  fi
 
29615
 
 
29616
 
 
29617
 
 
29618
  GNULIB_WCWIDTH=1
 
29619
 
 
29620
 
 
29621
 
 
29622
 
 
29623
 
 
29624
 
 
29625
 
 
29626
 
 
29627
 
25182
29628
  gl_LIBOBJS="$gl_LIBOBJS xmalloc.$ac_objext"
25183
29629
 
25184
29630
 
25216
29662
 
25217
29663
 
25218
29664
 
 
29665
  gl_LIBOBJS="$gl_LIBOBJS xstrtod.$ac_objext"
 
29666
 
 
29667
 
 
29668
 
 
29669
 
 
29670
 
 
29671
 
 
29672
 
 
29673
 
 
29674
 
 
29675
 
25219
29676
  gl_LIBOBJS="$gl_LIBOBJS xstrtol.$ac_objext"
25220
29677
 
25221
29678
 
25250
29707
 
25251
29708
    :
25252
29709
 
 
29710
 
 
29711
 
 
29712
 
 
29713
 
 
29714
  gltests_libdeps=
 
29715
  gltests_ltlibdeps=
 
29716
 
 
29717
 
 
29718
 
 
29719
  gl_source_base='tests'
 
29720
 
 
29721
 
 
29722
  { echo "$as_me:$LINENO: checking for a french Unicode locale" >&5
 
29723
echo $ECHO_N "checking for a french Unicode locale... $ECHO_C" >&6; }
 
29724
if test "${gt_cv_locale_fr_utf8+set}" = set; then
 
29725
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
29726
else
 
29727
 
 
29728
    cat >conftest.$ac_ext <<_ACEOF
 
29729
/* confdefs.h.  */
 
29730
_ACEOF
 
29731
cat confdefs.h >>conftest.$ac_ext
 
29732
cat >>conftest.$ac_ext <<_ACEOF
 
29733
/* end confdefs.h.  */
 
29734
 
 
29735
#include <locale.h>
 
29736
#include <time.h>
 
29737
#if HAVE_LANGINFO_CODESET
 
29738
# include <langinfo.h>
 
29739
#endif
 
29740
#include <stdlib.h>
 
29741
#include <string.h>
 
29742
struct tm t;
 
29743
char buf[16];
 
29744
int main () {
 
29745
  /* On BeOS, locales are not implemented in libc.  Rather, libintl
 
29746
     imitates locale dependent behaviour by looking at the environment
 
29747
     variables, and all locales use the UTF-8 encoding.  */
 
29748
#if !defined(__BEOS__)
 
29749
  /* Check whether the given locale name is recognized by the system.  */
 
29750
  if (setlocale (LC_ALL, "") == NULL) return 1;
 
29751
  /* Check whether nl_langinfo(CODESET) is nonempty.
 
29752
     On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
 
29753
     is empty, and the behaviour of Tcl 8.4 in this locale is not useful.  */
 
29754
# if HAVE_LANGINFO_CODESET
 
29755
  if (nl_langinfo (CODESET) [0] == '\0') return 1;
 
29756
# endif
 
29757
# ifdef __CYGWIN__
 
29758
  /* On Cygwin, avoid locale names without encoding suffix, because the
 
29759
     locale_charset() function relies on the encoding suffix.  Note that
 
29760
     LC_ALL is set on the command line.  */
 
29761
  if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
 
29762
# endif
 
29763
  /* Check whether in the abbreviation of the second month, the second
 
29764
     character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
 
29765
     two bytes long, with UTF-8 encoding.  */
 
29766
  t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
 
29767
  if (strftime (buf, sizeof (buf), "%b", &t) < 4
 
29768
      || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
 
29769
    return 1;
 
29770
#endif
 
29771
  /* Check whether the decimal separator is a comma.
 
29772
     On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
 
29773
     are nl_langinfo(RADIXCHAR) are both ".".  */
 
29774
  if (localeconv () ->decimal_point[0] != ',') return 1;
 
29775
  return 0;
 
29776
}
 
29777
 
 
29778
_ACEOF
 
29779
    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
29780
  (eval $ac_link) 2>&5
 
29781
  ac_status=$?
 
29782
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29783
  (exit $ac_status); } && test -s conftest$ac_exeext; then
 
29784
      # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
 
29785
      # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
 
29786
      # configure script would override the LC_ALL setting. Likewise for
 
29787
      # LC_CTYPE, which is also set at the beginning of the configure script.
 
29788
      # Test for the usual locale name.
 
29789
      if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
 
29790
        gt_cv_locale_fr_utf8=fr_FR
 
29791
      else
 
29792
        # Test for the locale name with explicit encoding suffix.
 
29793
        if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
 
29794
          gt_cv_locale_fr_utf8=fr_FR.UTF-8
 
29795
        else
 
29796
          # Test for the Solaris 7 locale name.
 
29797
          if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
 
29798
            gt_cv_locale_fr_utf8=fr.UTF-8
 
29799
          else
 
29800
            # None found.
 
29801
            gt_cv_locale_fr_utf8=none
 
29802
          fi
 
29803
        fi
 
29804
      fi
 
29805
    fi
 
29806
    rm -fr conftest*
 
29807
 
 
29808
fi
 
29809
{ echo "$as_me:$LINENO: result: $gt_cv_locale_fr_utf8" >&5
 
29810
echo "${ECHO_T}$gt_cv_locale_fr_utf8" >&6; }
 
29811
  LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
 
29812
 
 
29813
 
 
29814
 
 
29815
 
 
29816
  { echo "$as_me:$LINENO: checking for a turkish Unicode locale" >&5
 
29817
echo $ECHO_N "checking for a turkish Unicode locale... $ECHO_C" >&6; }
 
29818
if test "${gt_cv_locale_tr_utf8+set}" = set; then
 
29819
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
29820
else
 
29821
 
 
29822
    cat >conftest.$ac_ext <<_ACEOF
 
29823
/* confdefs.h.  */
 
29824
_ACEOF
 
29825
cat confdefs.h >>conftest.$ac_ext
 
29826
cat >>conftest.$ac_ext <<_ACEOF
 
29827
/* end confdefs.h.  */
 
29828
 
 
29829
#include <locale.h>
 
29830
#include <time.h>
 
29831
#if HAVE_LANGINFO_CODESET
 
29832
# include <langinfo.h>
 
29833
#endif
 
29834
#include <stdlib.h>
 
29835
#include <string.h>
 
29836
struct tm t;
 
29837
char buf[16];
 
29838
int main () {
 
29839
  /* On BeOS, locales are not implemented in libc.  Rather, libintl
 
29840
     imitates locale dependent behaviour by looking at the environment
 
29841
     variables, and all locales use the UTF-8 encoding.  But BeOS does not
 
29842
     implement the Turkish upper-/lowercase mappings.  Therefore, let this
 
29843
     program return 1 on BeOS.  */
 
29844
  /* Check whether the given locale name is recognized by the system.  */
 
29845
  if (setlocale (LC_ALL, "") == NULL) return 1;
 
29846
  /* Check whether nl_langinfo(CODESET) is nonempty.
 
29847
     On MacOS X 10.3.5 (Darwin 7.5) in the tr_TR locale, nl_langinfo(CODESET)
 
29848
     is empty, and the behaviour of Tcl 8.4 in this locale is not useful.  */
 
29849
#if HAVE_LANGINFO_CODESET
 
29850
  if (nl_langinfo (CODESET) [0] == '\0') return 1;
 
29851
#endif
 
29852
#ifdef __CYGWIN__
 
29853
  /* On Cygwin, avoid locale names without encoding suffix, because the
 
29854
     locale_charset() function relies on the encoding suffix.  Note that
 
29855
     LC_ALL is set on the command line.  */
 
29856
  if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
 
29857
#endif
 
29858
  /* Check whether in the abbreviation of the eighth month, the second
 
29859
     character (should be U+011F: LATIN SMALL LETTER G WITH BREVE) is
 
29860
     two bytes long, with UTF-8 encoding.  */
 
29861
  t.tm_year = 1992 - 1900; t.tm_mon = 8 - 1; t.tm_mday = 19;
 
29862
  if (strftime (buf, sizeof (buf), "%b", &t) < 4
 
29863
      || buf[1] != (char) 0xc4 || buf[2] != (char) 0x9f)
 
29864
    return 1;
 
29865
  /* Check whether the upper-/lowercase mappings are as expected for
 
29866
     Turkish.  */
 
29867
  if (towupper ('i') != 0x0130 || towlower (0x0130) != 'i'
 
29868
      || towupper(0x0131) != 'I' || towlower ('I') != 0x0131)
 
29869
    return 1;
 
29870
  return 0;
 
29871
}
 
29872
 
 
29873
_ACEOF
 
29874
    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
29875
  (eval $ac_link) 2>&5
 
29876
  ac_status=$?
 
29877
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29878
  (exit $ac_status); } && test -s conftest$ac_exeext; then
 
29879
      # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
 
29880
      # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
 
29881
      # configure script would override the LC_ALL setting. Likewise for
 
29882
      # LC_CTYPE, which is also set at the beginning of the configure script.
 
29883
      # Test for the usual locale name.
 
29884
      if (LC_ALL=tr_TR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
 
29885
        gt_cv_locale_tr_utf8=tr_TR
 
29886
      else
 
29887
        # Test for the locale name with explicit encoding suffix.
 
29888
        if (LC_ALL=tr_TR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
 
29889
          gt_cv_locale_tr_utf8=tr_TR.UTF-8
 
29890
        else
 
29891
          # Test for the Solaris 7 locale name.
 
29892
          if (LC_ALL=tr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
 
29893
            gt_cv_locale_tr_utf8=tr.UTF-8
 
29894
          else
 
29895
            # None found.
 
29896
            gt_cv_locale_tr_utf8=none
 
29897
          fi
 
29898
        fi
 
29899
      fi
 
29900
    else
 
29901
      gt_cv_locale_tr_utf8=none
 
29902
    fi
 
29903
    rm -fr conftest*
 
29904
 
 
29905
fi
 
29906
{ echo "$as_me:$LINENO: result: $gt_cv_locale_tr_utf8" >&5
 
29907
echo "${ECHO_T}$gt_cv_locale_tr_utf8" >&6; }
 
29908
  LOCALE_TR_UTF8=$gt_cv_locale_tr_utf8
 
29909
 
 
29910
 
 
29911
 
 
29912
 
 
29913
 
 
29914
  { echo "$as_me:$LINENO: checking for a transitional chinese locale" >&5
 
29915
echo $ECHO_N "checking for a transitional chinese locale... $ECHO_C" >&6; }
 
29916
if test "${gt_cv_locale_zh_CN+set}" = set; then
 
29917
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
29918
else
 
29919
 
 
29920
    macosx=
 
29921
    case "$host_os" in
 
29922
      darwin[56]*) ;;
 
29923
      darwin*) macosx=yes;;
 
29924
    esac
 
29925
    if test -n "$macosx"; then
 
29926
      # On Darwin 7 (MacOS X), the libc supports some locales in non-UTF-8
 
29927
      # encodings, but the kernel does not support them. The documentation
 
29928
      # says:
 
29929
      #   "... all code that calls BSD system routines should ensure
 
29930
      #    that the const *char parameters of these routines are in UTF-8
 
29931
      #    encoding. All BSD system functions expect their string
 
29932
      #    parameters to be in UTF-8 encoding and nothing else."
 
29933
      # See the comments in config.charset. Therefore we bypass the test.
 
29934
      gt_cv_locale_zh_CN=none
 
29935
    else
 
29936
      cat >conftest.$ac_ext <<_ACEOF
 
29937
/* confdefs.h.  */
 
29938
_ACEOF
 
29939
cat confdefs.h >>conftest.$ac_ext
 
29940
cat >>conftest.$ac_ext <<_ACEOF
 
29941
/* end confdefs.h.  */
 
29942
 
 
29943
#include <locale.h>
 
29944
#include <stdlib.h>
 
29945
#include <time.h>
 
29946
#if HAVE_LANGINFO_CODESET
 
29947
# include <langinfo.h>
 
29948
#endif
 
29949
#include <stdlib.h>
 
29950
#include <string.h>
 
29951
struct tm t;
 
29952
char buf[16];
 
29953
int main ()
 
29954
{
 
29955
  const char *p;
 
29956
  /* Check whether the given locale name is recognized by the system.  */
 
29957
  if (setlocale (LC_ALL, "") == NULL) return 1;
 
29958
  /* Check whether nl_langinfo(CODESET) is nonempty.
 
29959
     On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
 
29960
     is empty, and the behaviour of Tcl 8.4 in this locale is not useful.  */
 
29961
#if HAVE_LANGINFO_CODESET
 
29962
  if (nl_langinfo (CODESET) [0] == '\0') return 1;
 
29963
#endif
 
29964
#ifdef __CYGWIN__
 
29965
  /* On Cygwin, avoid locale names without encoding suffix, because the
 
29966
     locale_charset() function relies on the encoding suffix.  Note that
 
29967
     LC_ALL is set on the command line.  */
 
29968
  if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
 
29969
#endif
 
29970
  /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
 
29971
     This excludes the UTF-8 encoding.  */
 
29972
  t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
 
29973
  if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
 
29974
  for (p = buf; *p != '\0'; p++)
 
29975
    if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
 
29976
      return 1;
 
29977
  /* Check whether a typical GB18030 multibyte sequence is recognized as a
 
29978
     single wide character.  This excludes the GB2312 and GBK encodings.  */
 
29979
  if (mblen ("\203\062\332\066", 5) != 4)
 
29980
    return 1;
 
29981
  return 0;
 
29982
}
 
29983
 
 
29984
_ACEOF
 
29985
      if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
29986
  (eval $ac_link) 2>&5
 
29987
  ac_status=$?
 
29988
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29989
  (exit $ac_status); } && test -s conftest$ac_exeext; then
 
29990
        # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
 
29991
        # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
 
29992
        # configure script would override the LC_ALL setting. Likewise for
 
29993
        # LC_CTYPE, which is also set at the beginning of the configure script.
 
29994
        # Test for the locale name without encoding suffix.
 
29995
        if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
 
29996
          gt_cv_locale_zh_CN=zh_CN
 
29997
        else
 
29998
          # Test for the locale name with explicit encoding suffix.
 
29999
          if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
 
30000
            gt_cv_locale_zh_CN=zh_CN.GB18030
 
30001
          else
 
30002
            # None found.
 
30003
            gt_cv_locale_zh_CN=none
 
30004
          fi
 
30005
        fi
 
30006
      else
 
30007
        # If there was a link error, due to mblen(), the system is so old that
 
30008
        # it certainly doesn't have a chinese locale.
 
30009
        gt_cv_locale_zh_CN=none
 
30010
      fi
 
30011
      rm -fr conftest*
 
30012
    fi
 
30013
 
 
30014
fi
 
30015
{ echo "$as_me:$LINENO: result: $gt_cv_locale_zh_CN" >&5
 
30016
echo "${ECHO_T}$gt_cv_locale_zh_CN" >&6; }
 
30017
  LOCALE_ZH_CN=$gt_cv_locale_zh_CN
 
30018
 
 
30019
 
 
30020
 
 
30021
 
 
30022
  { echo "$as_me:$LINENO: checking for a french Unicode locale" >&5
 
30023
echo $ECHO_N "checking for a french Unicode locale... $ECHO_C" >&6; }
 
30024
if test "${gt_cv_locale_fr_utf8+set}" = set; then
 
30025
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
30026
else
 
30027
 
 
30028
    cat >conftest.$ac_ext <<_ACEOF
 
30029
/* confdefs.h.  */
 
30030
_ACEOF
 
30031
cat confdefs.h >>conftest.$ac_ext
 
30032
cat >>conftest.$ac_ext <<_ACEOF
 
30033
/* end confdefs.h.  */
 
30034
 
 
30035
#include <locale.h>
 
30036
#include <time.h>
 
30037
#if HAVE_LANGINFO_CODESET
 
30038
# include <langinfo.h>
 
30039
#endif
 
30040
#include <stdlib.h>
 
30041
#include <string.h>
 
30042
struct tm t;
 
30043
char buf[16];
 
30044
int main () {
 
30045
  /* On BeOS, locales are not implemented in libc.  Rather, libintl
 
30046
     imitates locale dependent behaviour by looking at the environment
 
30047
     variables, and all locales use the UTF-8 encoding.  */
 
30048
#if !defined(__BEOS__)
 
30049
  /* Check whether the given locale name is recognized by the system.  */
 
30050
  if (setlocale (LC_ALL, "") == NULL) return 1;
 
30051
  /* Check whether nl_langinfo(CODESET) is nonempty.
 
30052
     On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
 
30053
     is empty, and the behaviour of Tcl 8.4 in this locale is not useful.  */
 
30054
# if HAVE_LANGINFO_CODESET
 
30055
  if (nl_langinfo (CODESET) [0] == '\0') return 1;
 
30056
# endif
 
30057
# ifdef __CYGWIN__
 
30058
  /* On Cygwin, avoid locale names without encoding suffix, because the
 
30059
     locale_charset() function relies on the encoding suffix.  Note that
 
30060
     LC_ALL is set on the command line.  */
 
30061
  if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
 
30062
# endif
 
30063
  /* Check whether in the abbreviation of the second month, the second
 
30064
     character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
 
30065
     two bytes long, with UTF-8 encoding.  */
 
30066
  t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
 
30067
  if (strftime (buf, sizeof (buf), "%b", &t) < 4
 
30068
      || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
 
30069
    return 1;
 
30070
#endif
 
30071
  /* Check whether the decimal separator is a comma.
 
30072
     On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
 
30073
     are nl_langinfo(RADIXCHAR) are both ".".  */
 
30074
  if (localeconv () ->decimal_point[0] != ',') return 1;
 
30075
  return 0;
 
30076
}
 
30077
 
 
30078
_ACEOF
 
30079
    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
30080
  (eval $ac_link) 2>&5
 
30081
  ac_status=$?
 
30082
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30083
  (exit $ac_status); } && test -s conftest$ac_exeext; then
 
30084
      # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
 
30085
      # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
 
30086
      # configure script would override the LC_ALL setting. Likewise for
 
30087
      # LC_CTYPE, which is also set at the beginning of the configure script.
 
30088
      # Test for the usual locale name.
 
30089
      if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
 
30090
        gt_cv_locale_fr_utf8=fr_FR
 
30091
      else
 
30092
        # Test for the locale name with explicit encoding suffix.
 
30093
        if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
 
30094
          gt_cv_locale_fr_utf8=fr_FR.UTF-8
 
30095
        else
 
30096
          # Test for the Solaris 7 locale name.
 
30097
          if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
 
30098
            gt_cv_locale_fr_utf8=fr.UTF-8
 
30099
          else
 
30100
            # None found.
 
30101
            gt_cv_locale_fr_utf8=none
 
30102
          fi
 
30103
        fi
 
30104
      fi
 
30105
    fi
 
30106
    rm -fr conftest*
 
30107
 
 
30108
fi
 
30109
{ echo "$as_me:$LINENO: result: $gt_cv_locale_fr_utf8" >&5
 
30110
echo "${ECHO_T}$gt_cv_locale_fr_utf8" >&6; }
 
30111
  LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
 
30112
 
 
30113
 
 
30114
 
 
30115
 
 
30116
 
 
30117
  { echo "$as_me:$LINENO: checking for a transitional chinese locale" >&5
 
30118
echo $ECHO_N "checking for a transitional chinese locale... $ECHO_C" >&6; }
 
30119
if test "${gt_cv_locale_zh_CN+set}" = set; then
 
30120
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
30121
else
 
30122
 
 
30123
    macosx=
 
30124
    case "$host_os" in
 
30125
      darwin[56]*) ;;
 
30126
      darwin*) macosx=yes;;
 
30127
    esac
 
30128
    if test -n "$macosx"; then
 
30129
      # On Darwin 7 (MacOS X), the libc supports some locales in non-UTF-8
 
30130
      # encodings, but the kernel does not support them. The documentation
 
30131
      # says:
 
30132
      #   "... all code that calls BSD system routines should ensure
 
30133
      #    that the const *char parameters of these routines are in UTF-8
 
30134
      #    encoding. All BSD system functions expect their string
 
30135
      #    parameters to be in UTF-8 encoding and nothing else."
 
30136
      # See the comments in config.charset. Therefore we bypass the test.
 
30137
      gt_cv_locale_zh_CN=none
 
30138
    else
 
30139
      cat >conftest.$ac_ext <<_ACEOF
 
30140
/* confdefs.h.  */
 
30141
_ACEOF
 
30142
cat confdefs.h >>conftest.$ac_ext
 
30143
cat >>conftest.$ac_ext <<_ACEOF
 
30144
/* end confdefs.h.  */
 
30145
 
 
30146
#include <locale.h>
 
30147
#include <stdlib.h>
 
30148
#include <time.h>
 
30149
#if HAVE_LANGINFO_CODESET
 
30150
# include <langinfo.h>
 
30151
#endif
 
30152
#include <stdlib.h>
 
30153
#include <string.h>
 
30154
struct tm t;
 
30155
char buf[16];
 
30156
int main ()
 
30157
{
 
30158
  const char *p;
 
30159
  /* Check whether the given locale name is recognized by the system.  */
 
30160
  if (setlocale (LC_ALL, "") == NULL) return 1;
 
30161
  /* Check whether nl_langinfo(CODESET) is nonempty.
 
30162
     On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
 
30163
     is empty, and the behaviour of Tcl 8.4 in this locale is not useful.  */
 
30164
#if HAVE_LANGINFO_CODESET
 
30165
  if (nl_langinfo (CODESET) [0] == '\0') return 1;
 
30166
#endif
 
30167
#ifdef __CYGWIN__
 
30168
  /* On Cygwin, avoid locale names without encoding suffix, because the
 
30169
     locale_charset() function relies on the encoding suffix.  Note that
 
30170
     LC_ALL is set on the command line.  */
 
30171
  if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
 
30172
#endif
 
30173
  /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
 
30174
     This excludes the UTF-8 encoding.  */
 
30175
  t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
 
30176
  if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
 
30177
  for (p = buf; *p != '\0'; p++)
 
30178
    if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
 
30179
      return 1;
 
30180
  /* Check whether a typical GB18030 multibyte sequence is recognized as a
 
30181
     single wide character.  This excludes the GB2312 and GBK encodings.  */
 
30182
  if (mblen ("\203\062\332\066", 5) != 4)
 
30183
    return 1;
 
30184
  return 0;
 
30185
}
 
30186
 
 
30187
_ACEOF
 
30188
      if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
30189
  (eval $ac_link) 2>&5
 
30190
  ac_status=$?
 
30191
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30192
  (exit $ac_status); } && test -s conftest$ac_exeext; then
 
30193
        # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
 
30194
        # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
 
30195
        # configure script would override the LC_ALL setting. Likewise for
 
30196
        # LC_CTYPE, which is also set at the beginning of the configure script.
 
30197
        # Test for the locale name without encoding suffix.
 
30198
        if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
 
30199
          gt_cv_locale_zh_CN=zh_CN
 
30200
        else
 
30201
          # Test for the locale name with explicit encoding suffix.
 
30202
          if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
 
30203
            gt_cv_locale_zh_CN=zh_CN.GB18030
 
30204
          else
 
30205
            # None found.
 
30206
            gt_cv_locale_zh_CN=none
 
30207
          fi
 
30208
        fi
 
30209
      else
 
30210
        # If there was a link error, due to mblen(), the system is so old that
 
30211
        # it certainly doesn't have a chinese locale.
 
30212
        gt_cv_locale_zh_CN=none
 
30213
      fi
 
30214
      rm -fr conftest*
 
30215
    fi
 
30216
 
 
30217
fi
 
30218
{ echo "$as_me:$LINENO: result: $gt_cv_locale_zh_CN" >&5
 
30219
echo "${ECHO_T}$gt_cv_locale_zh_CN" >&6; }
 
30220
  LOCALE_ZH_CN=$gt_cv_locale_zh_CN
 
30221
 
 
30222
 
 
30223
 
 
30224
  { echo "$as_me:$LINENO: checking for wchar_t" >&5
 
30225
echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
 
30226
if test "${gt_cv_c_wchar_t+set}" = set; then
 
30227
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
30228
else
 
30229
  cat >conftest.$ac_ext <<_ACEOF
 
30230
/* confdefs.h.  */
 
30231
_ACEOF
 
30232
cat confdefs.h >>conftest.$ac_ext
 
30233
cat >>conftest.$ac_ext <<_ACEOF
 
30234
/* end confdefs.h.  */
 
30235
#include <stddef.h>
 
30236
       wchar_t foo = (wchar_t)'\0';
 
30237
int
 
30238
main ()
 
30239
{
 
30240
 
 
30241
  ;
 
30242
  return 0;
 
30243
}
 
30244
_ACEOF
 
30245
rm -f conftest.$ac_objext
 
30246
if { (ac_try="$ac_compile"
 
30247
case "(($ac_try" in
 
30248
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
30249
  *) ac_try_echo=$ac_try;;
 
30250
esac
 
30251
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
30252
  (eval "$ac_compile") 2>conftest.er1
 
30253
  ac_status=$?
 
30254
  grep -v '^ *+' conftest.er1 >conftest.err
 
30255
  rm -f conftest.er1
 
30256
  cat conftest.err >&5
 
30257
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30258
  (exit $ac_status); } && {
 
30259
         test -z "$ac_c_werror_flag" ||
 
30260
         test ! -s conftest.err
 
30261
       } && test -s conftest.$ac_objext; then
 
30262
  gt_cv_c_wchar_t=yes
 
30263
else
 
30264
  echo "$as_me: failed program was:" >&5
 
30265
sed 's/^/| /' conftest.$ac_ext >&5
 
30266
 
 
30267
        gt_cv_c_wchar_t=no
 
30268
fi
 
30269
 
 
30270
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
30271
fi
 
30272
{ echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
 
30273
echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
 
30274
  if test $gt_cv_c_wchar_t = yes; then
 
30275
 
 
30276
cat >>confdefs.h <<\_ACEOF
 
30277
#define HAVE_WCHAR_T 1
 
30278
_ACEOF
 
30279
 
 
30280
  fi
 
30281
 
 
30282
 
 
30283
  { echo "$as_me:$LINENO: checking for wint_t" >&5
 
30284
echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
 
30285
if test "${gt_cv_c_wint_t+set}" = set; then
 
30286
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
30287
else
 
30288
  cat >conftest.$ac_ext <<_ACEOF
 
30289
/* confdefs.h.  */
 
30290
_ACEOF
 
30291
cat confdefs.h >>conftest.$ac_ext
 
30292
cat >>conftest.$ac_ext <<_ACEOF
 
30293
/* end confdefs.h.  */
 
30294
 
 
30295
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
 
30296
   <wchar.h>.
 
30297
   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
 
30298
   before <wchar.h>.  */
 
30299
#include <stddef.h>
 
30300
#include <stdio.h>
 
30301
#include <time.h>
 
30302
#include <wchar.h>
 
30303
       wint_t foo = (wchar_t)'\0';
 
30304
int
 
30305
main ()
 
30306
{
 
30307
 
 
30308
  ;
 
30309
  return 0;
 
30310
}
 
30311
_ACEOF
 
30312
rm -f conftest.$ac_objext
 
30313
if { (ac_try="$ac_compile"
 
30314
case "(($ac_try" in
 
30315
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
30316
  *) ac_try_echo=$ac_try;;
 
30317
esac
 
30318
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
30319
  (eval "$ac_compile") 2>conftest.er1
 
30320
  ac_status=$?
 
30321
  grep -v '^ *+' conftest.er1 >conftest.err
 
30322
  rm -f conftest.er1
 
30323
  cat conftest.err >&5
 
30324
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30325
  (exit $ac_status); } && {
 
30326
         test -z "$ac_c_werror_flag" ||
 
30327
         test ! -s conftest.err
 
30328
       } && test -s conftest.$ac_objext; then
 
30329
  gt_cv_c_wint_t=yes
 
30330
else
 
30331
  echo "$as_me: failed program was:" >&5
 
30332
sed 's/^/| /' conftest.$ac_ext >&5
 
30333
 
 
30334
        gt_cv_c_wint_t=no
 
30335
fi
 
30336
 
 
30337
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
30338
fi
 
30339
{ echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
 
30340
echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
 
30341
  if test $gt_cv_c_wint_t = yes; then
 
30342
 
 
30343
cat >>confdefs.h <<\_ACEOF
 
30344
#define HAVE_WINT_T 1
 
30345
_ACEOF
 
30346
 
 
30347
  fi
 
30348
 
 
30349
 
 
30350
 
 
30351
 
 
30352
 
25253
30353
  LIBGNULIB_LIBDEPS="$gl_libdeps"
25254
30354
 
25255
30355
  LIBGNULIB_LTLIBDEPS="$gl_ltlibdeps"
25256
30356
 
25257
 
 
 
30357
  LIBTESTS_LIBDEPS="$gltests_libdeps"
25258
30358
 
25259
30359
 
25260
30360
 
25443
30543
fi
25444
30544
 
25445
30545
 
 
30546
{ echo "$as_me:$LINENO: checking for modf in -lm" >&5
 
30547
echo $ECHO_N "checking for modf in -lm... $ECHO_C" >&6; }
 
30548
if test "${ac_cv_lib_m_modf+set}" = set; then
 
30549
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
30550
else
 
30551
  ac_check_lib_save_LIBS=$LIBS
 
30552
LIBS="-lm  $LIBS"
 
30553
cat >conftest.$ac_ext <<_ACEOF
 
30554
/* confdefs.h.  */
 
30555
_ACEOF
 
30556
cat confdefs.h >>conftest.$ac_ext
 
30557
cat >>conftest.$ac_ext <<_ACEOF
 
30558
/* end confdefs.h.  */
 
30559
 
 
30560
/* Override any GCC internal prototype to avoid an error.
 
30561
   Use char because int might match the return type of a GCC
 
30562
   builtin and then its argument prototype would still apply.  */
 
30563
#ifdef __cplusplus
 
30564
extern "C"
 
30565
#endif
 
30566
char modf ();
 
30567
int
 
30568
main ()
 
30569
{
 
30570
return modf ();
 
30571
  ;
 
30572
  return 0;
 
30573
}
 
30574
_ACEOF
 
30575
rm -f conftest.$ac_objext conftest$ac_exeext
 
30576
if { (ac_try="$ac_link"
 
30577
case "(($ac_try" in
 
30578
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
30579
  *) ac_try_echo=$ac_try;;
 
30580
esac
 
30581
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
30582
  (eval "$ac_link") 2>conftest.er1
 
30583
  ac_status=$?
 
30584
  grep -v '^ *+' conftest.er1 >conftest.err
 
30585
  rm -f conftest.er1
 
30586
  cat conftest.err >&5
 
30587
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30588
  (exit $ac_status); } && {
 
30589
         test -z "$ac_c_werror_flag" ||
 
30590
         test ! -s conftest.err
 
30591
       } && test -s conftest$ac_exeext &&
 
30592
       $as_test_x conftest$ac_exeext; then
 
30593
  ac_cv_lib_m_modf=yes
 
30594
else
 
30595
  echo "$as_me: failed program was:" >&5
 
30596
sed 's/^/| /' conftest.$ac_ext >&5
 
30597
 
 
30598
        ac_cv_lib_m_modf=no
 
30599
fi
 
30600
 
 
30601
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
30602
      conftest$ac_exeext conftest.$ac_ext
 
30603
LIBS=$ac_check_lib_save_LIBS
 
30604
fi
 
30605
{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_modf" >&5
 
30606
echo "${ECHO_T}$ac_cv_lib_m_modf" >&6; }
 
30607
if test $ac_cv_lib_m_modf = yes; then
 
30608
  FINDLIBS="-lm $FINDLIBS"
 
30609
 
 
30610
cat >>confdefs.h <<_ACEOF
 
30611
#define HAVE_MODF_IN_LIBM 1
 
30612
_ACEOF
 
30613
 
 
30614
fi
 
30615
 
 
30616
{ echo "$as_me:$LINENO: checking for fabs in -lm" >&5
 
30617
echo $ECHO_N "checking for fabs in -lm... $ECHO_C" >&6; }
 
30618
if test "${ac_cv_lib_m_fabs+set}" = set; then
 
30619
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
30620
else
 
30621
  ac_check_lib_save_LIBS=$LIBS
 
30622
LIBS="-lm  $LIBS"
 
30623
cat >conftest.$ac_ext <<_ACEOF
 
30624
/* confdefs.h.  */
 
30625
_ACEOF
 
30626
cat confdefs.h >>conftest.$ac_ext
 
30627
cat >>conftest.$ac_ext <<_ACEOF
 
30628
/* end confdefs.h.  */
 
30629
 
 
30630
/* Override any GCC internal prototype to avoid an error.
 
30631
   Use char because int might match the return type of a GCC
 
30632
   builtin and then its argument prototype would still apply.  */
 
30633
#ifdef __cplusplus
 
30634
extern "C"
 
30635
#endif
 
30636
char fabs ();
 
30637
int
 
30638
main ()
 
30639
{
 
30640
return fabs ();
 
30641
  ;
 
30642
  return 0;
 
30643
}
 
30644
_ACEOF
 
30645
rm -f conftest.$ac_objext conftest$ac_exeext
 
30646
if { (ac_try="$ac_link"
 
30647
case "(($ac_try" in
 
30648
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
30649
  *) ac_try_echo=$ac_try;;
 
30650
esac
 
30651
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
30652
  (eval "$ac_link") 2>conftest.er1
 
30653
  ac_status=$?
 
30654
  grep -v '^ *+' conftest.er1 >conftest.err
 
30655
  rm -f conftest.er1
 
30656
  cat conftest.err >&5
 
30657
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30658
  (exit $ac_status); } && {
 
30659
         test -z "$ac_c_werror_flag" ||
 
30660
         test ! -s conftest.err
 
30661
       } && test -s conftest$ac_exeext &&
 
30662
       $as_test_x conftest$ac_exeext; then
 
30663
  ac_cv_lib_m_fabs=yes
 
30664
else
 
30665
  echo "$as_me: failed program was:" >&5
 
30666
sed 's/^/| /' conftest.$ac_ext >&5
 
30667
 
 
30668
        ac_cv_lib_m_fabs=no
 
30669
fi
 
30670
 
 
30671
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
30672
      conftest$ac_exeext conftest.$ac_ext
 
30673
LIBS=$ac_check_lib_save_LIBS
 
30674
fi
 
30675
{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_fabs" >&5
 
30676
echo "${ECHO_T}$ac_cv_lib_m_fabs" >&6; }
 
30677
if test $ac_cv_lib_m_fabs = yes; then
 
30678
  FINDLIBS="-lm $FINDLIBS"
 
30679
 
 
30680
cat >>confdefs.h <<_ACEOF
 
30681
#define HAVE_FABS_IN_LIBM 1
 
30682
_ACEOF
 
30683
 
 
30684
fi
 
30685
 
 
30686
 
 
30687
 
25446
30688
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
25447
30689
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
25448
30690
if test "${ac_cv_header_stdc+set}" = set; then
29655
34897
 
29656
34898
 
29657
34899
 
 
34900
# Check for common but not-POSIX functions.
 
34901
 
 
34902
for ac_func in setgroups
 
34903
do
 
34904
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
34905
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
34906
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
34907
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
34908
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
34909
else
 
34910
  cat >conftest.$ac_ext <<_ACEOF
 
34911
/* confdefs.h.  */
 
34912
_ACEOF
 
34913
cat confdefs.h >>conftest.$ac_ext
 
34914
cat >>conftest.$ac_ext <<_ACEOF
 
34915
/* end confdefs.h.  */
 
34916
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
34917
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
34918
#define $ac_func innocuous_$ac_func
 
34919
 
 
34920
/* System header to define __stub macros and hopefully few prototypes,
 
34921
    which can conflict with char $ac_func (); below.
 
34922
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
34923
    <limits.h> exists even on freestanding compilers.  */
 
34924
 
 
34925
#ifdef __STDC__
 
34926
# include <limits.h>
 
34927
#else
 
34928
# include <assert.h>
 
34929
#endif
 
34930
 
 
34931
#undef $ac_func
 
34932
 
 
34933
/* Override any GCC internal prototype to avoid an error.
 
34934
   Use char because int might match the return type of a GCC
 
34935
   builtin and then its argument prototype would still apply.  */
 
34936
#ifdef __cplusplus
 
34937
extern "C"
 
34938
#endif
 
34939
char $ac_func ();
 
34940
/* The GNU C library defines this for functions which it implements
 
34941
    to always fail with ENOSYS.  Some functions are actually named
 
34942
    something starting with __ and the normal name is an alias.  */
 
34943
#if defined __stub_$ac_func || defined __stub___$ac_func
 
34944
choke me
 
34945
#endif
 
34946
 
 
34947
int
 
34948
main ()
 
34949
{
 
34950
return $ac_func ();
 
34951
  ;
 
34952
  return 0;
 
34953
}
 
34954
_ACEOF
 
34955
rm -f conftest.$ac_objext conftest$ac_exeext
 
34956
if { (ac_try="$ac_link"
 
34957
case "(($ac_try" in
 
34958
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
34959
  *) ac_try_echo=$ac_try;;
 
34960
esac
 
34961
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
34962
  (eval "$ac_link") 2>conftest.er1
 
34963
  ac_status=$?
 
34964
  grep -v '^ *+' conftest.er1 >conftest.err
 
34965
  rm -f conftest.er1
 
34966
  cat conftest.err >&5
 
34967
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34968
  (exit $ac_status); } && {
 
34969
         test -z "$ac_c_werror_flag" ||
 
34970
         test ! -s conftest.err
 
34971
       } && test -s conftest$ac_exeext &&
 
34972
       $as_test_x conftest$ac_exeext; then
 
34973
  eval "$as_ac_var=yes"
 
34974
else
 
34975
  echo "$as_me: failed program was:" >&5
 
34976
sed 's/^/| /' conftest.$ac_ext >&5
 
34977
 
 
34978
        eval "$as_ac_var=no"
 
34979
fi
 
34980
 
 
34981
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
34982
      conftest$ac_exeext conftest.$ac_ext
 
34983
fi
 
34984
ac_res=`eval echo '${'$as_ac_var'}'`
 
34985
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
34986
echo "${ECHO_T}$ac_res" >&6; }
 
34987
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
34988
  cat >>confdefs.h <<_ACEOF
 
34989
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
34990
_ACEOF
 
34991
 
 
34992
fi
 
34993
done
 
34994
 
 
34995
 
 
34996
 
 
34997
 
29658
34998
 
29659
34999
 
29660
35000
 
30117
35457
 
30118
35458
 
30119
35459
 
30120
 
 
30121
35460
# Extract the first word of "sort", so it can be a program name with args.
30122
35461
set dummy sort; ac_word=$2
30123
35462
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
30311
35650
echo "${ECHO_T}$ac_cv_member_struct_dirent_d_type" >&6; }
30312
35651
 
30313
35652
 
 
35653
{ echo "$as_me:$LINENO: checking for __attribute__ ((__noreturn__)) support" >&5
 
35654
echo $ECHO_N "checking for __attribute__ ((__noreturn__)) support... $ECHO_C" >&6; }
 
35655
if test "${jy_cv_cc_attribute_noreturn+set}" = set; then
 
35656
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
35657
else
 
35658
  cat >conftest.$ac_ext <<_ACEOF
 
35659
/* confdefs.h.  */
 
35660
_ACEOF
 
35661
cat confdefs.h >>conftest.$ac_ext
 
35662
cat >>conftest.$ac_ext <<_ACEOF
 
35663
/* end confdefs.h.  */
 
35664
 
 
35665
int
 
35666
main ()
 
35667
{
 
35668
void report_fatal_error(void) __attribute__ ((__noreturn__));
 
35669
  ;
 
35670
  return 0;
 
35671
}
 
35672
_ACEOF
 
35673
rm -f conftest.$ac_objext
 
35674
if { (ac_try="$ac_compile"
 
35675
case "(($ac_try" in
 
35676
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
35677
  *) ac_try_echo=$ac_try;;
 
35678
esac
 
35679
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
35680
  (eval "$ac_compile") 2>conftest.er1
 
35681
  ac_status=$?
 
35682
  grep -v '^ *+' conftest.er1 >conftest.err
 
35683
  rm -f conftest.er1
 
35684
  cat conftest.err >&5
 
35685
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35686
  (exit $ac_status); } && {
 
35687
         test -z "$ac_c_werror_flag" ||
 
35688
         test ! -s conftest.err
 
35689
       } && test -s conftest.$ac_objext; then
 
35690
  jy_cv_cc_attribute_noreturn=yes
 
35691
else
 
35692
  echo "$as_me: failed program was:" >&5
 
35693
sed 's/^/| /' conftest.$ac_ext >&5
 
35694
 
 
35695
        jy_cv_cc_attribute_noreturn=no
 
35696
fi
 
35697
 
 
35698
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
35699
fi
 
35700
{ echo "$as_me:$LINENO: result: $jy_cv_cc_attribute_noreturn" >&5
 
35701
echo "${ECHO_T}$jy_cv_cc_attribute_noreturn" >&6; }
 
35702
if test $jy_cv_cc_attribute_noreturn = yes; then
 
35703
  HAVE_ATTRIBUTE_NORETURN=1
 
35704
else
 
35705
  HAVE_ATTRIBUTE_NORETURN=0
 
35706
fi
 
35707
 
 
35708
 
 
35709
cat >>confdefs.h <<_ACEOF
 
35710
#define HAVE_ATTRIBUTE_NORETURN $HAVE_ATTRIBUTE_NORETURN
 
35711
_ACEOF
 
35712
 
 
35713
 
30314
35714
 
30315
35715
 
30316
35716
  { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
32446
37846
_ACEOF
32447
37847
 
32448
37848
 
 
37849
cat >>confdefs.h <<\_ACEOF
 
37850
#define ALREADY_INCLUDED_CONFIG_H 1
 
37851
_ACEOF
 
37852
 
32449
37853
 
32450
37854
# This is necessary so that .o files in LIBOBJS are also built via
32451
37855
# the ANSI2KNR-filtering rules.
32455
37859
 
32456
37860
ac_config_files="$ac_config_files m4/Makefile"
32457
37861
 
32458
 
ac_config_files="$ac_config_files Makefile find/Makefile find/testsuite/Makefile xargs/Makefile xargs/testsuite/Makefile locate/Makefile locate/testsuite/Makefile po/Makefile.in po/Makefile doc/Makefile lib/Makefile"
 
37862
ac_config_files="$ac_config_files Makefile tests/Makefile build-aux/Makefile find/Makefile find/testsuite/Makefile xargs/Makefile xargs/testsuite/Makefile locate/Makefile locate/testsuite/Makefile po/Makefile.in po/Makefile doc/Makefile lib/Makefile"
32459
37863
 
32460
37864
cat >confcache <<\_ACEOF
32461
37865
# This file is a shell script that caches the results of configure
32553
37957
LTLIBOBJS=$ac_ltlibobjs
32554
37958
 
32555
37959
 
 
37960
if test -z "${WITH_FTS_TRUE}" && test -z "${WITH_FTS_FALSE}"; then
 
37961
  { { echo "$as_me:$LINENO: error: conditional \"WITH_FTS\" was never defined.
 
37962
Usually this means the macro was only invoked conditionally." >&5
 
37963
echo "$as_me: error: conditional \"WITH_FTS\" was never defined.
 
37964
Usually this means the macro was only invoked conditionally." >&2;}
 
37965
   { (exit 1); exit 1; }; }
 
37966
fi
32556
37967
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
32557
37968
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
32558
37969
Usually this means the macro was only invoked conditionally." >&5
32590
38001
    gl_LTLIBOBJS=$gl_ltlibobjs
32591
38002
 
32592
38003
 
 
38004
 
 
38005
    gltests_libobjs=
 
38006
    gltests_ltlibobjs=
 
38007
    if test -n "$gltests_LIBOBJS"; then
 
38008
      # Remove the extension.
 
38009
      sed_drop_objext='s/\.o$//;s/\.obj$//'
 
38010
      for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
 
38011
        gltests_libobjs="$gltests_libobjs $i.$ac_objext"
 
38012
        gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
 
38013
      done
 
38014
    fi
 
38015
    gltests_LIBOBJS=$gltests_libobjs
 
38016
 
 
38017
    gltests_LTLIBOBJS=$gltests_ltlibobjs
 
38018
 
 
38019
 
32593
38020
if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
32594
38021
  { { echo "$as_me:$LINENO: error: conditional \"CROSS_COMPILING\" was never defined.
32595
38022
Usually this means the macro was only invoked conditionally." >&5
32897
38324
# report actual input values of CONFIG_FILES etc. instead of their
32898
38325
# values after options handling.
32899
38326
ac_log="
32900
 
This file was extended by GNU findutils $as_me 4.2.32, which was
 
38327
This file was extended by GNU findutils $as_me 4.4.0, which was
32901
38328
generated by GNU Autoconf 2.61.  Invocation command line was
32902
38329
 
32903
38330
  CONFIG_FILES    = $CONFIG_FILES
32950
38377
_ACEOF
32951
38378
cat >>$CONFIG_STATUS <<_ACEOF
32952
38379
ac_cs_version="\\
32953
 
GNU findutils config.status 4.2.32
 
38380
GNU findutils config.status 4.4.0
32954
38381
configured by $0, generated by GNU Autoconf 2.61,
32955
38382
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
32956
38383
 
33078
38505
    "gnulib/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib/lib/Makefile" ;;
33079
38506
    "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
33080
38507
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
38508
    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
 
38509
    "build-aux/Makefile") CONFIG_FILES="$CONFIG_FILES build-aux/Makefile" ;;
33081
38510
    "find/Makefile") CONFIG_FILES="$CONFIG_FILES find/Makefile" ;;
33082
38511
    "find/testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES find/testsuite/Makefile" ;;
33083
38512
    "xargs/Makefile") CONFIG_FILES="$CONFIG_FILES xargs/Makefile" ;;
33218
38647
host_vendor!$host_vendor$ac_delim
33219
38648
host_os!$host_os$ac_delim
33220
38649
INCLUDES!$INCLUDES$ac_delim
 
38650
AUXDIR!$AUXDIR$ac_delim
 
38651
WITH_FTS_TRUE!$WITH_FTS_TRUE$ac_delim
 
38652
WITH_FTS_FALSE!$WITH_FTS_FALSE$ac_delim
 
38653
DEFAULT_ARG_SIZE!$DEFAULT_ARG_SIZE$ac_delim
33221
38654
CC!$CC$ac_delim
33222
38655
CFLAGS!$CFLAGS$ac_delim
33223
38656
LDFLAGS!$LDFLAGS$ac_delim
33243
38676
GL_COND_LIBTOOL_TRUE!$GL_COND_LIBTOOL_TRUE$ac_delim
33244
38677
GL_COND_LIBTOOL_FALSE!$GL_COND_LIBTOOL_FALSE$ac_delim
33245
38678
ALLOCA!$ALLOCA$ac_delim
 
38679
_ACEOF
 
38680
 
 
38681
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
 
38682
    break
 
38683
  elif $ac_last_try; then
 
38684
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
38685
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
38686
   { (exit 1); exit 1; }; }
 
38687
  else
 
38688
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
38689
  fi
 
38690
done
 
38691
 
 
38692
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
38693
if test -n "$ac_eof"; then
 
38694
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
38695
  ac_eof=`expr $ac_eof + 1`
 
38696
fi
 
38697
 
 
38698
cat >>$CONFIG_STATUS <<_ACEOF
 
38699
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
 
38700
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
38701
_ACEOF
 
38702
sed '
 
38703
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
38704
s/^/s,@/; s/!/@,|#_!!_#|/
 
38705
:n
 
38706
t n
 
38707
s/'"$ac_delim"'$/,g/; t
 
38708
s/$/\\/; p
 
38709
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
38710
' >>$CONFIG_STATUS <conf$$subs.sed
 
38711
rm -f conf$$subs.sed
 
38712
cat >>$CONFIG_STATUS <<_ACEOF
 
38713
CEOF$ac_eof
 
38714
_ACEOF
 
38715
 
 
38716
 
 
38717
ac_delim='%!_!# '
 
38718
for ac_last_try in false false false false false :; do
 
38719
  cat >conf$$subs.sed <<_ACEOF
33246
38720
ALLOCA_H!$ALLOCA_H$ac_delim
33247
38721
GNULIB_CHOWN!$GNULIB_CHOWN$ac_delim
33248
38722
GNULIB_DUP2!$GNULIB_DUP2$ac_delim
33249
38723
GNULIB_FCHDIR!$GNULIB_FCHDIR$ac_delim
33250
 
_ACEOF
33251
 
 
33252
 
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
33253
 
    break
33254
 
  elif $ac_last_try; then
33255
 
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
33256
 
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
33257
 
   { (exit 1); exit 1; }; }
33258
 
  else
33259
 
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33260
 
  fi
33261
 
done
33262
 
 
33263
 
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
33264
 
if test -n "$ac_eof"; then
33265
 
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
33266
 
  ac_eof=`expr $ac_eof + 1`
33267
 
fi
33268
 
 
33269
 
cat >>$CONFIG_STATUS <<_ACEOF
33270
 
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
33271
 
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33272
 
_ACEOF
33273
 
sed '
33274
 
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
33275
 
s/^/s,@/; s/!/@,|#_!!_#|/
33276
 
:n
33277
 
t n
33278
 
s/'"$ac_delim"'$/,g/; t
33279
 
s/$/\\/; p
33280
 
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
33281
 
' >>$CONFIG_STATUS <conf$$subs.sed
33282
 
rm -f conf$$subs.sed
33283
 
cat >>$CONFIG_STATUS <<_ACEOF
33284
 
CEOF$ac_eof
33285
 
_ACEOF
33286
 
 
33287
 
 
33288
 
ac_delim='%!_!# '
33289
 
for ac_last_try in false false false false false :; do
33290
 
  cat >conf$$subs.sed <<_ACEOF
33291
38724
GNULIB_FTRUNCATE!$GNULIB_FTRUNCATE$ac_delim
33292
38725
GNULIB_GETCWD!$GNULIB_GETCWD$ac_delim
33293
38726
GNULIB_GETLOGIN_R!$GNULIB_GETLOGIN_R$ac_delim
33309
38742
REPLACE_GETCWD!$REPLACE_GETCWD$ac_delim
33310
38743
REPLACE_LCHOWN!$REPLACE_LCHOWN$ac_delim
33311
38744
REPLACE_LSEEK!$REPLACE_LSEEK$ac_delim
 
38745
LIB_CLOCK_GETTIME!$LIB_CLOCK_GETTIME$ac_delim
33312
38746
INCLUDE_NEXT!$INCLUDE_NEXT$ac_delim
33313
38747
NEXT_DIRENT_H!$NEXT_DIRENT_H$ac_delim
33314
38748
DIRENT_H!$DIRENT_H$ac_delim
33359
38793
HAVE_DECL_GETLINE!$HAVE_DECL_GETLINE$ac_delim
33360
38794
REPLACE_GETLINE!$REPLACE_GETLINE$ac_delim
33361
38795
FNMATCH_H!$FNMATCH_H$ac_delim
 
38796
STDBOOL_H!$STDBOOL_H$ac_delim
 
38797
HAVE__BOOL!$HAVE__BOOL$ac_delim
 
38798
YACC!$YACC$ac_delim
 
38799
YFLAGS!$YFLAGS$ac_delim
33362
38800
GETOPT_H!$GETOPT_H$ac_delim
33363
38801
LIBINTL!$LIBINTL$ac_delim
33364
38802
LTLIBINTL!$LTLIBINTL$ac_delim
33365
 
STDBOOL_H!$STDBOOL_H$ac_delim
33366
 
HAVE__BOOL!$HAVE__BOOL$ac_delim
 
38803
NEXT_SYS_TIME_H!$NEXT_SYS_TIME_H$ac_delim
 
38804
HAVE_SYS_TIME_H!$HAVE_SYS_TIME_H$ac_delim
 
38805
HAVE_STRUCT_TIMEVAL!$HAVE_STRUCT_TIMEVAL$ac_delim
 
38806
REPLACE_GETTIMEOFDAY!$REPLACE_GETTIMEOFDAY$ac_delim
 
38807
SYS_TIME_H!$SYS_TIME_H$ac_delim
33367
38808
HAVE_LONG_LONG_INT!$HAVE_LONG_LONG_INT$ac_delim
33368
38809
HAVE_UNSIGNED_LONG_LONG_INT!$HAVE_UNSIGNED_LONG_LONG_INT$ac_delim
33369
38810
HAVE_INTTYPES_H!$HAVE_INTTYPES_H$ac_delim
33373
38814
HAVE_SYS_INTTYPES_H!$HAVE_SYS_INTTYPES_H$ac_delim
33374
38815
HAVE_SYS_BITYPES_H!$HAVE_SYS_BITYPES_H$ac_delim
33375
38816
BITSIZEOF_PTRDIFF_T!$BITSIZEOF_PTRDIFF_T$ac_delim
 
38817
_ACEOF
 
38818
 
 
38819
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
 
38820
    break
 
38821
  elif $ac_last_try; then
 
38822
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
38823
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
38824
   { (exit 1); exit 1; }; }
 
38825
  else
 
38826
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
38827
  fi
 
38828
done
 
38829
 
 
38830
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
38831
if test -n "$ac_eof"; then
 
38832
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
38833
  ac_eof=`expr $ac_eof + 1`
 
38834
fi
 
38835
 
 
38836
cat >>$CONFIG_STATUS <<_ACEOF
 
38837
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
 
38838
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
38839
_ACEOF
 
38840
sed '
 
38841
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
38842
s/^/s,@/; s/!/@,|#_!!_#|/
 
38843
:n
 
38844
t n
 
38845
s/'"$ac_delim"'$/,g/; t
 
38846
s/$/\\/; p
 
38847
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
38848
' >>$CONFIG_STATUS <conf$$subs.sed
 
38849
rm -f conf$$subs.sed
 
38850
cat >>$CONFIG_STATUS <<_ACEOF
 
38851
CEOF$ac_eof
 
38852
_ACEOF
 
38853
 
 
38854
 
 
38855
ac_delim='%!_!# '
 
38856
for ac_last_try in false false false false false :; do
 
38857
  cat >conf$$subs.sed <<_ACEOF
33376
38858
BITSIZEOF_SIG_ATOMIC_T!$BITSIZEOF_SIG_ATOMIC_T$ac_delim
33377
38859
BITSIZEOF_SIZE_T!$BITSIZEOF_SIZE_T$ac_delim
33378
38860
BITSIZEOF_WCHAR_T!$BITSIZEOF_WCHAR_T$ac_delim
33385
38867
SIZE_T_SUFFIX!$SIZE_T_SUFFIX$ac_delim
33386
38868
WCHAR_T_SUFFIX!$WCHAR_T_SUFFIX$ac_delim
33387
38869
WINT_T_SUFFIX!$WINT_T_SUFFIX$ac_delim
33388
 
_ACEOF
33389
 
 
33390
 
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
33391
 
    break
33392
 
  elif $ac_last_try; then
33393
 
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
33394
 
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
33395
 
   { (exit 1); exit 1; }; }
33396
 
  else
33397
 
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33398
 
  fi
33399
 
done
33400
 
 
33401
 
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
33402
 
if test -n "$ac_eof"; then
33403
 
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
33404
 
  ac_eof=`expr $ac_eof + 1`
33405
 
fi
33406
 
 
33407
 
cat >>$CONFIG_STATUS <<_ACEOF
33408
 
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
33409
 
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33410
 
_ACEOF
33411
 
sed '
33412
 
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
33413
 
s/^/s,@/; s/!/@,|#_!!_#|/
33414
 
:n
33415
 
t n
33416
 
s/'"$ac_delim"'$/,g/; t
33417
 
s/$/\\/; p
33418
 
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
33419
 
' >>$CONFIG_STATUS <conf$$subs.sed
33420
 
rm -f conf$$subs.sed
33421
 
cat >>$CONFIG_STATUS <<_ACEOF
33422
 
CEOF$ac_eof
33423
 
_ACEOF
33424
 
 
33425
 
 
33426
 
ac_delim='%!_!# '
33427
 
for ac_last_try in false false false false false :; do
33428
 
  cat >conf$$subs.sed <<_ACEOF
33429
38870
STDINT_H!$STDINT_H$ac_delim
33430
38871
PRI_MACROS_BROKEN!$PRI_MACROS_BROKEN$ac_delim
33431
38872
GNULIB_IMAXABS!$GNULIB_IMAXABS$ac_delim
33502
38943
HAVE_DECL_STRTOK_R!$HAVE_DECL_STRTOK_R$ac_delim
33503
38944
HAVE_DECL_STRERROR!$HAVE_DECL_STRERROR$ac_delim
33504
38945
REPLACE_STRERROR!$REPLACE_STRERROR$ac_delim
 
38946
REPLACE_MEMMEM!$REPLACE_MEMMEM$ac_delim
33505
38947
NEXT_STDIO_H!$NEXT_STDIO_H$ac_delim
33506
38948
NEXT_STDLIB_H!$NEXT_STDLIB_H$ac_delim
33507
38949
NEXT_STRING_H!$NEXT_STRING_H$ac_delim
33510
38952
HAVE_IO_H!$HAVE_IO_H$ac_delim
33511
38953
NEXT_SYS_STAT_H!$NEXT_SYS_STAT_H$ac_delim
33512
38954
SYS_STAT_H!$SYS_STAT_H$ac_delim
 
38955
_ACEOF
 
38956
 
 
38957
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
 
38958
    break
 
38959
  elif $ac_last_try; then
 
38960
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
38961
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
38962
   { (exit 1); exit 1; }; }
 
38963
  else
 
38964
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
38965
  fi
 
38966
done
 
38967
 
 
38968
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
38969
if test -n "$ac_eof"; then
 
38970
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
38971
  ac_eof=`expr $ac_eof + 1`
 
38972
fi
 
38973
 
 
38974
cat >>$CONFIG_STATUS <<_ACEOF
 
38975
cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
 
38976
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
38977
_ACEOF
 
38978
sed '
 
38979
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
38980
s/^/s,@/; s/!/@,|#_!!_#|/
 
38981
:n
 
38982
t n
 
38983
s/'"$ac_delim"'$/,g/; t
 
38984
s/$/\\/; p
 
38985
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
38986
' >>$CONFIG_STATUS <conf$$subs.sed
 
38987
rm -f conf$$subs.sed
 
38988
cat >>$CONFIG_STATUS <<_ACEOF
 
38989
CEOF$ac_eof
 
38990
_ACEOF
 
38991
 
 
38992
 
 
38993
ac_delim='%!_!# '
 
38994
for ac_last_try in false false false false false :; do
 
38995
  cat >conf$$subs.sed <<_ACEOF
33513
38996
REPLACE_LOCALTIME_R!$REPLACE_LOCALTIME_R$ac_delim
33514
38997
REPLACE_NANOSLEEP!$REPLACE_NANOSLEEP$ac_delim
33515
38998
REPLACE_STRPTIME!$REPLACE_STRPTIME$ac_delim
33523
39006
HAVE_DECL_WCWIDTH!$HAVE_DECL_WCWIDTH$ac_delim
33524
39007
REPLACE_WCWIDTH!$REPLACE_WCWIDTH$ac_delim
33525
39008
WCHAR_H!$WCHAR_H$ac_delim
33526
 
_ACEOF
33527
 
 
33528
 
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
33529
 
    break
33530
 
  elif $ac_last_try; then
33531
 
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
33532
 
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
33533
 
   { (exit 1); exit 1; }; }
33534
 
  else
33535
 
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33536
 
  fi
33537
 
done
33538
 
 
33539
 
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
33540
 
if test -n "$ac_eof"; then
33541
 
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
33542
 
  ac_eof=`expr $ac_eof + 1`
33543
 
fi
33544
 
 
33545
 
cat >>$CONFIG_STATUS <<_ACEOF
33546
 
cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
33547
 
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33548
 
_ACEOF
33549
 
sed '
33550
 
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
33551
 
s/^/s,@/; s/!/@,|#_!!_#|/
33552
 
:n
33553
 
t n
33554
 
s/'"$ac_delim"'$/,g/; t
33555
 
s/$/\\/; p
33556
 
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
33557
 
' >>$CONFIG_STATUS <conf$$subs.sed
33558
 
rm -f conf$$subs.sed
33559
 
cat >>$CONFIG_STATUS <<_ACEOF
33560
 
CEOF$ac_eof
33561
 
_ACEOF
33562
 
 
33563
 
 
33564
 
ac_delim='%!_!# '
33565
 
for ac_last_try in false false false false false :; do
33566
 
  cat >conf$$subs.sed <<_ACEOF
33567
39009
HAVE_WCHAR_H!$HAVE_WCHAR_H$ac_delim
33568
39010
NEXT_WCHAR_H!$NEXT_WCHAR_H$ac_delim
33569
39011
HAVE_ISWCNTRL!$HAVE_ISWCNTRL$ac_delim
33571
39013
NEXT_WCTYPE_H!$NEXT_WCTYPE_H$ac_delim
33572
39014
HAVE_WCTYPE_H!$HAVE_WCTYPE_H$ac_delim
33573
39015
WCTYPE_H!$WCTYPE_H$ac_delim
 
39016
LOCALE_FR_UTF8!$LOCALE_FR_UTF8$ac_delim
 
39017
LOCALE_TR_UTF8!$LOCALE_TR_UTF8$ac_delim
 
39018
LOCALE_ZH_CN!$LOCALE_ZH_CN$ac_delim
33574
39019
LIBGNULIB_LIBDEPS!$LIBGNULIB_LIBDEPS$ac_delim
33575
39020
LIBGNULIB_LTLIBDEPS!$LIBGNULIB_LTLIBDEPS$ac_delim
 
39021
LIBTESTS_LIBDEPS!$LIBTESTS_LIBDEPS$ac_delim
33576
39022
MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
33577
39023
CROSS_COMPILING_TRUE!$CROSS_COMPILING_TRUE$ac_delim
33578
39024
CROSS_COMPILING_FALSE!$CROSS_COMPILING_FALSE$ac_delim
 
39025
FINDLIBS!$FINDLIBS$ac_delim
33579
39026
LIBOBJS!$LIBOBJS$ac_delim
33580
39027
FINDLIBOBJS!$FINDLIBOBJS$ac_delim
33581
39028
SORT!$SORT$ac_delim
33582
39029
SORT_SUPPORTS_Z!$SORT_SUPPORTS_Z$ac_delim
 
39030
HAVE_ATTRIBUTE_NORETURN!$HAVE_ATTRIBUTE_NORETURN$ac_delim
33583
39031
USE_NLS!$USE_NLS$ac_delim
33584
39032
GETTEXT_MACRO_VERSION!$GETTEXT_MACRO_VERSION$ac_delim
33585
39033
MSGFMT!$MSGFMT$ac_delim
33598
39046
LTLIBOBJS!$LTLIBOBJS$ac_delim
33599
39047
gl_LIBOBJS!$gl_LIBOBJS$ac_delim
33600
39048
gl_LTLIBOBJS!$gl_LTLIBOBJS$ac_delim
 
39049
gltests_LIBOBJS!$gltests_LIBOBJS$ac_delim
 
39050
gltests_LTLIBOBJS!$gltests_LTLIBOBJS$ac_delim
33601
39051
_ACEOF
33602
39052
 
33603
 
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 34; then
 
39053
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 55; then
33604
39054
    break
33605
39055
  elif $ac_last_try; then
33606
39056
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5