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
5111
ac_cv_prog_cc_c99=no
5113
cat >conftest.$ac_ext <<_ACEOF
5116
cat confdefs.h >>conftest.$ac_ext
5117
cat >>conftest.$ac_ext <<_ACEOF
5118
/* end confdefs.h. */
5120
#include <stdbool.h>
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__))
5130
test_varargs_macros (void)
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);
5140
// Check long long types.
5141
#define BIG64 18446744073709551615ull
5142
#define BIG32 4294967295ul
5143
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5145
your preprocessor is broken;
5149
your preprocessor is broken;
5151
static long long int bignum = -9223372036854775807LL;
5152
static unsigned long long int ubignum = BIG64;
5154
struct incomplete_array
5162
const wchar_t *name;
5166
typedef const char *ccp;
5169
test_restrict (ccp restrict text)
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)
5179
// Check varargs and va_copy.
5181
test_varargs (const char *format, ...)
5184
va_start (args, format);
5186
va_copy (args_copy, args);
5197
str = va_arg (args_copy, const char *);
5200
number = va_arg (args_copy, int);
5203
fnumber = va_arg (args_copy, double);
5218
_Bool success = false;
5221
if (test_restrict ("String literal") == 0)
5223
char *restrict newvar = "Another string";
5226
test_varargs ("s, d' f .", "string", 65, 34.234);
5227
test_varargs_macros ();
5229
// Check flexible array members.
5230
struct incomplete_array *ia =
5231
malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5233
for (int i = 0; i < ia->datasize; ++i)
5234
ia->data[i] = i * 1.234;
5236
// Check named initializers.
5237
struct named_init ni = {
5239
.name = L"Test wide string",
5240
.average = 543.34343,
5245
int dynamic_array[ni.number];
5246
dynamic_array[ni.number - 1] = 543;
5248
// work around unused variable warnings
5249
return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5250
|| dynamic_array[ni.number - 1] != 543);
5256
for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
5258
CC="$ac_save_CC $ac_arg"
5259
rm -f conftest.$ac_objext
5260
if { (ac_try="$ac_compile"
5262
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5263
*) ac_try_echo=$ac_try;;
5265
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5266
(eval "$ac_compile") 2>conftest.er1
5268
grep -v '^ *+' conftest.er1 >conftest.err
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
5278
echo "$as_me: failed program was:" >&5
5279
sed 's/^/| /' conftest.$ac_ext >&5
5284
rm -f core conftest.err conftest.$ac_objext
5285
test "x$ac_cv_prog_cc_c99" != "xno" && break
5287
rm -f conftest.$ac_ext
5292
case "x$ac_cv_prog_cc_c99" in
5294
{ echo "$as_me:$LINENO: result: none needed" >&5
5295
echo "${ECHO_T}none needed" >&6; } ;;
5297
{ echo "$as_me:$LINENO: result: unsupported" >&5
5298
echo "${ECHO_T}unsupported" >&6; } ;;
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; } ;;
5304
if test "x$ac_cv_prog_cc_c99" != xno; then
5305
ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
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
5312
ac_cv_prog_cc_c89=no
5314
cat >conftest.$ac_ext <<_ACEOF
5317
cat confdefs.h >>conftest.$ac_ext
5318
cat >>conftest.$ac_ext <<_ACEOF
5319
/* end confdefs.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)
5333
static char *f (char * (*g) (char **, int), char **p, ...)
5338
s = g (p, va_arg (v,int));
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];
5352
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5353
inside strings and character constants. */
5355
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
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);
5366
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5371
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5372
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5374
CC="$ac_save_CC $ac_arg"
5375
rm -f conftest.$ac_objext
5376
if { (ac_try="$ac_compile"
5378
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5379
*) ac_try_echo=$ac_try;;
5381
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5382
(eval "$ac_compile") 2>conftest.er1
5384
grep -v '^ *+' conftest.er1 >conftest.err
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
5394
echo "$as_me: failed program was:" >&5
5395
sed 's/^/| /' conftest.$ac_ext >&5
5400
rm -f core conftest.err conftest.$ac_objext
5401
test "x$ac_cv_prog_cc_c89" != "xno" && break
5403
rm -f conftest.$ac_ext
5408
case "x$ac_cv_prog_cc_c89" in
5410
{ echo "$as_me:$LINENO: result: none needed" >&5
5411
echo "${ECHO_T}none needed" >&6; } ;;
5413
{ echo "$as_me:$LINENO: result: unsupported" >&5
5414
echo "${ECHO_T}unsupported" >&6; } ;;
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; } ;;
5420
if test "x$ac_cv_prog_cc_c89" != xno; then
5421
ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5423
ac_cv_prog_cc_stdc=no
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
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; } ;;
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
7836
cat >conftest.$ac_ext <<_ACEOF
7839
cat confdefs.h >>conftest.$ac_ext
7840
cat >>conftest.$ac_ext <<_ACEOF
7841
/* end confdefs.h. */
7842
$ac_includes_default
7854
rm -f conftest.$ac_objext
7855
if { (ac_try="$ac_compile"
7857
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7858
*) ac_try_echo=$ac_try;;
7860
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7861
(eval "$ac_compile") 2>conftest.er1
7863
grep -v '^ *+' conftest.er1 >conftest.err
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
7873
echo "$as_me: failed program was:" >&5
7874
sed 's/^/| /' conftest.$ac_ext >&5
7876
ac_cv_have_decl_getdelim=no
7879
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
7885
cat >>confdefs.h <<_ACEOF
7886
#define HAVE_DECL_GETDELIM 1
7891
cat >>confdefs.h <<_ACEOF
7892
#define HAVE_DECL_GETDELIM 0
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
7906
cat >conftest.$ac_ext <<_ACEOF
7909
cat confdefs.h >>conftest.$ac_ext
7910
cat >>conftest.$ac_ext <<_ACEOF
7911
/* end confdefs.h. */
7912
$ac_includes_default
7924
rm -f conftest.$ac_objext
7925
if { (ac_try="$ac_compile"
7927
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7928
*) ac_try_echo=$ac_try;;
7930
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7931
(eval "$ac_compile") 2>conftest.er1
7933
grep -v '^ *+' conftest.er1 >conftest.err
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
7943
echo "$as_me: failed program was:" >&5
7944
sed 's/^/| /' conftest.$ac_ext >&5
7946
ac_cv_have_decl_getline=no
7949
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
7955
cat >>confdefs.h <<_ACEOF
7956
#define HAVE_DECL_GETLINE 1
7961
cat >>confdefs.h <<_ACEOF
7962
#define HAVE_DECL_GETLINE 0
7971
if test -z "$GETOPT_H"; then
7973
for ac_header in getopt.h
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
7982
ac_res=`eval echo '${'$as_ac_Header'}'`
7983
{ echo "$as_me:$LINENO: result: $ac_res" >&5
7984
echo "${ECHO_T}$ac_res" >&6; }
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
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>
7998
rm -f conftest.$ac_objext
7999
if { (ac_try="$ac_compile"
8001
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8002
*) ac_try_echo=$ac_try;;
8004
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8005
(eval "$ac_compile") 2>conftest.er1
8007
grep -v '^ *+' conftest.er1 >conftest.err
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
8017
echo "$as_me: failed program was:" >&5
8018
sed 's/^/| /' conftest.$ac_ext >&5
8020
ac_header_compiler=no
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; }
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
8033
cat confdefs.h >>conftest.$ac_ext
8034
cat >>conftest.$ac_ext <<_ACEOF
8035
/* end confdefs.h. */
8036
#include <$ac_header>
8038
if { (ac_try="$ac_cpp conftest.$ac_ext"
8040
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8041
*) ac_try_echo=$ac_try;;
8043
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8044
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8046
grep -v '^ *+' conftest.er1 >conftest.err
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
8054
ac_header_preproc=yes
8056
echo "$as_me: failed program was:" >&5
8057
sed 's/^/| /' conftest.$ac_ext >&5
8059
ac_header_preproc=no
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; }
8066
# So? What about this header?
8067
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
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
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;}
8089
## ------------------------------------ ##
8090
## Report this to bug-findutils@gnu.org ##
8091
## ------------------------------------ ##
8093
) | sed "s/^/$as_me: WARNING: /" >&2
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
8101
eval "$as_ac_Header=\$ac_header_preproc"
8103
ac_res=`eval echo '${'$as_ac_Header'}'`
8104
{ echo "$as_me:$LINENO: result: $ac_res" >&5
8105
echo "${ECHO_T}$ac_res" >&6; }
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
8121
if test -z "$GETOPT_H"; then
8123
for ac_func in getopt_long_only
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
8131
cat >conftest.$ac_ext <<_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
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. */
8147
# include <limits.h>
8149
# include <assert.h>
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. */
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
8176
rm -f conftest.$ac_objext conftest$ac_exeext
8177
if { (ac_try="$ac_link"
8179
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8180
*) ac_try_echo=$ac_try;;
8182
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8183
(eval "$ac_link") 2>conftest.er1
8185
grep -v '^ *+' conftest.er1 >conftest.err
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"
8196
echo "$as_me: failed program was:" >&5
8197
sed 's/^/| /' conftest.$ac_ext >&5
8199
eval "$as_ac_var=no"
8202
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8203
conftest$ac_exeext conftest.$ac_ext
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
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
8226
cat >conftest.$ac_ext <<_ACEOF
8229
cat confdefs.h >>conftest.$ac_ext
8230
cat >>conftest.$ac_ext <<_ACEOF
8231
/* end confdefs.h. */
8245
rm -f conftest.$ac_objext
8246
if { (ac_try="$ac_compile"
8248
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8249
*) ac_try_echo=$ac_try;;
8251
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8252
(eval "$ac_compile") 2>conftest.er1
8254
grep -v '^ *+' conftest.er1 >conftest.err
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
8264
echo "$as_me: failed program was:" >&5
8265
sed 's/^/| /' conftest.$ac_ext >&5
8267
ac_cv_have_decl_optreset=no
8270
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
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
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
8292
cat >conftest.$ac_ext <<_ACEOF
8295
cat confdefs.h >>conftest.$ac_ext
8296
cat >>conftest.$ac_ext <<_ACEOF
8297
/* end confdefs.h. */
8311
rm -f conftest.$ac_objext
8312
if { (ac_try="$ac_compile"
8314
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8315
*) ac_try_echo=$ac_try;;
8317
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8318
(eval "$ac_compile") 2>conftest.er1
8320
grep -v '^ *+' conftest.er1 >conftest.err
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
8330
echo "$as_me: failed program was:" >&5
8331
sed 's/^/| /' conftest.$ac_ext >&5
8333
ac_cv_have_decl_getopt_clip=no
8336
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
8343
gl_cv_func_gnu_getopt=yes
8347
cat >conftest.$ac_ext <<_ACEOF
8350
cat confdefs.h >>conftest.$ac_ext
8351
cat >>conftest.$ac_ext <<_ACEOF
8352
/* end confdefs.h. */
8359
myargv[0] = "conftest";
8362
return getopt (2, myargv, "+a") != '?';
8368
rm -f conftest$ac_exeext
8369
if { (ac_try="$ac_link"
8371
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8372
*) ac_try_echo=$ac_try;;
8374
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8375
(eval "$ac_link") 2>&5
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;;
8383
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8384
(eval "$ac_try") 2>&5
8386
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387
(exit $ac_status); }; }; then
8388
gl_cv_func_gnu_getopt=yes
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
8395
gl_cv_func_gnu_getopt=no
8397
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
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
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
8415
cat >conftest.$ac_ext <<_ACEOF
8418
cat confdefs.h >>conftest.$ac_ext
8419
cat >>conftest.$ac_ext <<_ACEOF
8420
/* end confdefs.h. */
8421
$ac_includes_default
8433
rm -f conftest.$ac_objext
8434
if { (ac_try="$ac_compile"
8436
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8437
*) ac_try_echo=$ac_try;;
8439
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8440
(eval "$ac_compile") 2>conftest.er1
8442
grep -v '^ *+' conftest.er1 >conftest.err
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
8452
echo "$as_me: failed program was:" >&5
8453
sed 's/^/| /' conftest.$ac_ext >&5
8455
ac_cv_have_decl_getenv=no
8458
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
8464
cat >>confdefs.h <<_ACEOF
8465
#define HAVE_DECL_GETENV 1
8470
cat >>confdefs.h <<_ACEOF
8471
#define HAVE_DECL_GETENV 0
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
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
8689
for ac_kw in inline __inline__ __inline; do
8690
cat >conftest.$ac_ext <<_ACEOF
8693
cat confdefs.h >>conftest.$ac_ext
8694
cat >>conftest.$ac_ext <<_ACEOF
8695
/* end confdefs.h. */
8698
static $ac_kw foo_t static_foo () {return 0; }
8699
$ac_kw foo_t foo () {return 0; }
8703
rm -f conftest.$ac_objext
8704
if { (ac_try="$ac_compile"
8706
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8707
*) ac_try_echo=$ac_try;;
8709
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8710
(eval "$ac_compile") 2>conftest.er1
8712
grep -v '^ *+' conftest.er1 >conftest.err
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
8722
echo "$as_me: failed program was:" >&5
8723
sed 's/^/| /' conftest.$ac_ext >&5
8728
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8729
test "$ac_cv_c_inline" != no && break
8733
{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8734
echo "${ECHO_T}$ac_cv_c_inline" >&6; }
8737
case $ac_cv_c_inline in
8740
case $ac_cv_c_inline in
8742
*) ac_val=$ac_cv_c_inline;;
8744
cat >>confdefs.h <<_ACEOF
8746
#define inline $ac_val
8671
# getdate.y works with bison only.
8672
: ${YACC='bison -y'}
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
8680
cat >conftest.$ac_ext <<_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 };
8690
struct s t = (struct s) { 3, 4 };
8691
if (t.i != 0) return 0;
8696
rm -f conftest.$ac_objext
8697
if { (ac_try="$ac_compile"
8699
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8700
*) ac_try_echo=$ac_try;;
8702
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8703
(eval "$ac_compile") 2>conftest.er1
8705
grep -v '^ *+' conftest.er1 >conftest.err
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
8715
echo "$as_me: failed program was:" >&5
8716
sed 's/^/| /' conftest.$ac_ext >&5
8718
gl_cv_compound_literals=no
8721
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
8727
cat >>confdefs.h <<\_ACEOF
8728
#define HAVE_COMPOUND_LITERALS 1
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
8738
cat >conftest.$ac_ext <<_ACEOF
8741
cat confdefs.h >>conftest.$ac_ext
8742
cat >>conftest.$ac_ext <<_ACEOF
8743
/* end confdefs.h. */
8744
#include <sys/types.h>
8751
int *p = &tm.tm_sec;
8757
rm -f conftest.$ac_objext
8758
if { (ac_try="$ac_compile"
8760
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8761
*) ac_try_echo=$ac_try;;
8763
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8764
(eval "$ac_compile") 2>conftest.er1
8766
grep -v '^ *+' conftest.er1 >conftest.err
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
8776
echo "$as_me: failed program was:" >&5
8777
sed 's/^/| /' conftest.$ac_ext >&5
8779
ac_cv_struct_tm=sys/time.h
8782
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
8788
cat >>confdefs.h <<\_ACEOF
8789
#define TM_IN_SYS_TIME 1
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
8800
cat >conftest.$ac_ext <<_ACEOF
8803
cat confdefs.h >>conftest.$ac_ext
8804
cat >>conftest.$ac_ext <<_ACEOF
8805
/* end confdefs.h. */
8811
static struct tm ac_aggr;
8812
if (ac_aggr.tm_gmtoff)
8818
rm -f conftest.$ac_objext
8819
if { (ac_try="$ac_compile"
8821
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8822
*) ac_try_echo=$ac_try;;
8824
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8825
(eval "$ac_compile") 2>conftest.er1
8827
grep -v '^ *+' conftest.er1 >conftest.err
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
8837
echo "$as_me: failed program was:" >&5
8838
sed 's/^/| /' conftest.$ac_ext >&5
8840
cat >conftest.$ac_ext <<_ACEOF
8843
cat confdefs.h >>conftest.$ac_ext
8844
cat >>conftest.$ac_ext <<_ACEOF
8845
/* end confdefs.h. */
8851
static struct tm ac_aggr;
8852
if (sizeof ac_aggr.tm_gmtoff)
8858
rm -f conftest.$ac_objext
8859
if { (ac_try="$ac_compile"
8861
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8862
*) ac_try_echo=$ac_try;;
8864
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8865
(eval "$ac_compile") 2>conftest.er1
8867
grep -v '^ *+' conftest.er1 >conftest.err
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
8877
echo "$as_me: failed program was:" >&5
8878
sed 's/^/| /' conftest.$ac_ext >&5
8880
ac_cv_member_struct_tm_tm_gmtoff=no
8883
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8886
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
8892
cat >>confdefs.h <<\_ACEOF
8893
#define HAVE_TM_GMTOFF 1
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
8905
cat >conftest.$ac_ext <<_ACEOF
8908
cat confdefs.h >>conftest.$ac_ext
8909
cat >>conftest.$ac_ext <<_ACEOF
8910
/* end confdefs.h. */
8911
$ac_includes_default
8923
rm -f conftest.$ac_objext
8924
if { (ac_try="$ac_compile"
8926
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8927
*) ac_try_echo=$ac_try;;
8929
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8930
(eval "$ac_compile") 2>conftest.er1
8932
grep -v '^ *+' conftest.er1 >conftest.err
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
8942
echo "$as_me: failed program was:" >&5
8943
sed 's/^/| /' conftest.$ac_ext >&5
8945
ac_cv_have_decl_getdelim=no
8948
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
8954
cat >>confdefs.h <<_ACEOF
8955
#define HAVE_DECL_GETDELIM 1
8960
cat >>confdefs.h <<_ACEOF
8961
#define HAVE_DECL_GETDELIM 0
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
8975
cat >conftest.$ac_ext <<_ACEOF
8978
cat confdefs.h >>conftest.$ac_ext
8979
cat >>conftest.$ac_ext <<_ACEOF
8980
/* end confdefs.h. */
8981
$ac_includes_default
8993
rm -f conftest.$ac_objext
8994
if { (ac_try="$ac_compile"
8996
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8997
*) ac_try_echo=$ac_try;;
8999
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9000
(eval "$ac_compile") 2>conftest.er1
9002
grep -v '^ *+' conftest.er1 >conftest.err
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
9012
echo "$as_me: failed program was:" >&5
9013
sed 's/^/| /' conftest.$ac_ext >&5
9015
ac_cv_have_decl_getline=no
9018
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
9024
cat >>confdefs.h <<_ACEOF
9025
#define HAVE_DECL_GETLINE 1
9030
cat >>confdefs.h <<_ACEOF
9031
#define HAVE_DECL_GETLINE 0
9040
if test -z "$GETOPT_H"; then
9042
for ac_header in getopt.h
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
9051
ac_res=`eval echo '${'$as_ac_Header'}'`
9052
{ echo "$as_me:$LINENO: result: $ac_res" >&5
9053
echo "${ECHO_T}$ac_res" >&6; }
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
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>
9067
rm -f conftest.$ac_objext
9068
if { (ac_try="$ac_compile"
9070
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9071
*) ac_try_echo=$ac_try;;
9073
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9074
(eval "$ac_compile") 2>conftest.er1
9076
grep -v '^ *+' conftest.er1 >conftest.err
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
9086
echo "$as_me: failed program was:" >&5
9087
sed 's/^/| /' conftest.$ac_ext >&5
9089
ac_header_compiler=no
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; }
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
9102
cat confdefs.h >>conftest.$ac_ext
9103
cat >>conftest.$ac_ext <<_ACEOF
9104
/* end confdefs.h. */
9105
#include <$ac_header>
9107
if { (ac_try="$ac_cpp conftest.$ac_ext"
9109
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9110
*) ac_try_echo=$ac_try;;
9112
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9113
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9115
grep -v '^ *+' conftest.er1 >conftest.err
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
9123
ac_header_preproc=yes
9125
echo "$as_me: failed program was:" >&5
9126
sed 's/^/| /' conftest.$ac_ext >&5
9128
ac_header_preproc=no
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; }
9135
# So? What about this header?
9136
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
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
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;}
9158
## ------------------------------------ ##
9159
## Report this to bug-findutils@gnu.org ##
9160
## ------------------------------------ ##
9162
) | sed "s/^/$as_me: WARNING: /" >&2
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
9170
eval "$as_ac_Header=\$ac_header_preproc"
9172
ac_res=`eval echo '${'$as_ac_Header'}'`
9173
{ echo "$as_me:$LINENO: result: $ac_res" >&5
9174
echo "${ECHO_T}$ac_res" >&6; }
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
9190
if test -z "$GETOPT_H"; then
9192
for ac_func in getopt_long_only
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
9200
cat >conftest.$ac_ext <<_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
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. */
9216
# include <limits.h>
9218
# include <assert.h>
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. */
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
9245
rm -f conftest.$ac_objext conftest$ac_exeext
9246
if { (ac_try="$ac_link"
9248
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9249
*) ac_try_echo=$ac_try;;
9251
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9252
(eval "$ac_link") 2>conftest.er1
9254
grep -v '^ *+' conftest.er1 >conftest.err
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"
9265
echo "$as_me: failed program was:" >&5
9266
sed 's/^/| /' conftest.$ac_ext >&5
9268
eval "$as_ac_var=no"
9271
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9272
conftest$ac_exeext conftest.$ac_ext
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
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
9295
cat >conftest.$ac_ext <<_ACEOF
9298
cat confdefs.h >>conftest.$ac_ext
9299
cat >>conftest.$ac_ext <<_ACEOF
9300
/* end confdefs.h. */
9314
rm -f conftest.$ac_objext
9315
if { (ac_try="$ac_compile"
9317
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9318
*) ac_try_echo=$ac_try;;
9320
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9321
(eval "$ac_compile") 2>conftest.er1
9323
grep -v '^ *+' conftest.er1 >conftest.err
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
9333
echo "$as_me: failed program was:" >&5
9334
sed 's/^/| /' conftest.$ac_ext >&5
9336
ac_cv_have_decl_optreset=no
9339
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
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
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
9361
cat >conftest.$ac_ext <<_ACEOF
9364
cat confdefs.h >>conftest.$ac_ext
9365
cat >>conftest.$ac_ext <<_ACEOF
9366
/* end confdefs.h. */
9380
rm -f conftest.$ac_objext
9381
if { (ac_try="$ac_compile"
9383
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9384
*) ac_try_echo=$ac_try;;
9386
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9387
(eval "$ac_compile") 2>conftest.er1
9389
grep -v '^ *+' conftest.er1 >conftest.err
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
9399
echo "$as_me: failed program was:" >&5
9400
sed 's/^/| /' conftest.$ac_ext >&5
9402
ac_cv_have_decl_getopt_clip=no
9405
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
9412
gl_cv_func_gnu_getopt=yes
9416
cat >conftest.$ac_ext <<_ACEOF
9419
cat confdefs.h >>conftest.$ac_ext
9420
cat >>conftest.$ac_ext <<_ACEOF
9421
/* end confdefs.h. */
9428
myargv[0] = "conftest";
9431
return getopt (2, myargv, "+a") != '?';
9437
rm -f conftest$ac_exeext
9438
if { (ac_try="$ac_link"
9440
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9441
*) ac_try_echo=$ac_try;;
9443
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9444
(eval "$ac_link") 2>&5
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;;
9452
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9453
(eval "$ac_try") 2>&5
9455
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456
(exit $ac_status); }; }; then
9457
gl_cv_func_gnu_getopt=yes
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
9464
gl_cv_func_gnu_getopt=no
9466
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
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
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
9484
cat >conftest.$ac_ext <<_ACEOF
9487
cat confdefs.h >>conftest.$ac_ext
9488
cat >>conftest.$ac_ext <<_ACEOF
9489
/* end confdefs.h. */
9490
$ac_includes_default
9502
rm -f conftest.$ac_objext
9503
if { (ac_try="$ac_compile"
9505
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9506
*) ac_try_echo=$ac_try;;
9508
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9509
(eval "$ac_compile") 2>conftest.er1
9511
grep -v '^ *+' conftest.er1 >conftest.err
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
9521
echo "$as_me: failed program was:" >&5
9522
sed 's/^/| /' conftest.$ac_ext >&5
9524
ac_cv_have_decl_getenv=no
9527
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
9533
cat >>confdefs.h <<_ACEOF
9534
#define HAVE_DECL_GETENV 1
9539
cat >>confdefs.h <<_ACEOF
9540
#define HAVE_DECL_GETENV 0
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
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
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) {
9589
rm -f conftest.$ac_objext
9590
if { (ac_try="$ac_compile"
9592
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9593
*) ac_try_echo=$ac_try;;
9595
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9596
(eval "$ac_compile") 2>conftest.er1
9598
grep -v '^ *+' conftest.er1 >conftest.err
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
9608
echo "$as_me: failed program was:" >&5
9609
sed 's/^/| /' conftest.$ac_ext >&5
9614
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9615
test "$ac_cv_c_restrict" != no && break
9619
{ echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
9620
echo "${ECHO_T}$ac_cv_c_restrict" >&6; }
9623
case $ac_cv_c_restrict in
9625
no) cat >>confdefs.h <<\_ACEOF
9629
*) cat >>confdefs.h <<_ACEOF
9630
#define restrict $ac_cv_c_restrict
9654
if test $gl_cv_have_include_next = yes; then
9655
gl_cv_next_sys_time_h='<'sys/time.h'>'
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
9663
if test $ac_cv_header_sys_time_h = yes; then
9664
cat >conftest.$ac_ext <<_ACEOF
9667
cat confdefs.h >>conftest.$ac_ext
9668
cat >>conftest.$ac_ext <<_ACEOF
9669
/* end confdefs.h. */
9670
#include <sys/time.h>
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#
9681
gl_cv_next_sys_time_h='<'sys/time.h'>'
9685
{ echo "$as_me:$LINENO: result: $gl_cv_next_sys_time_h" >&5
9686
echo "${ECHO_T}$gl_cv_next_sys_time_h" >&6; }
9688
NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
9693
if test $ac_cv_header_sys_time_h = yes; then
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
9705
cat >conftest.$ac_ext <<_ACEOF
9708
cat confdefs.h >>conftest.$ac_ext
9709
cat >>conftest.$ac_ext <<_ACEOF
9710
/* end confdefs.h. */
9712
#include <sys/time.h>
9719
static struct timeval x; x.tv_sec = x.tv_usec;
9724
rm -f conftest.$ac_objext
9725
if { (ac_try="$ac_compile"
9727
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9728
*) ac_try_echo=$ac_try;;
9730
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9731
(eval "$ac_compile") 2>conftest.er1
9733
grep -v '^ *+' conftest.er1 >conftest.err
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
9743
echo "$as_me: failed program was:" >&5
9744
sed 's/^/| /' conftest.$ac_ext >&5
9746
gl_cv_sys_struct_timeval=no
9749
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
9756
HAVE_STRUCT_TIMEVAL=0
9760
REPLACE_GETTIMEOFDAY=0
9762
if test $HAVE_SYS_TIME_H = 0 || test $HAVE_STRUCT_TIMEVAL = 0; then
9763
SYS_TIME_H=sys/time.h
8753
9773
{ echo "$as_me:$LINENO: checking for long long int" >&5
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
11584
cat >conftest.$ac_ext <<_ACEOF
11587
cat confdefs.h >>conftest.$ac_ext
11588
cat >>conftest.$ac_ext <<_ACEOF
11589
/* end confdefs.h. */
11590
#include <sys/types.h>
11597
int *p = &tm.tm_sec;
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;;
11609
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11610
(eval "$ac_compile") 2>conftest.er1
11612
grep -v '^ *+' conftest.er1 >conftest.err
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
11622
echo "$as_me: failed program was:" >&5
11623
sed 's/^/| /' conftest.$ac_ext >&5
11625
ac_cv_struct_tm=sys/time.h
11628
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
11634
cat >>confdefs.h <<\_ACEOF
11635
#define TM_IN_SYS_TIME 1
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
11645
cat >conftest.$ac_ext <<_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>
11658
static struct tm ac_aggr;
11659
if (ac_aggr.tm_zone)
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;;
11671
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11672
(eval "$ac_compile") 2>conftest.er1
11674
grep -v '^ *+' conftest.er1 >conftest.err
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
11684
echo "$as_me: failed program was:" >&5
11685
sed 's/^/| /' conftest.$ac_ext >&5
11687
cat >conftest.$ac_ext <<_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>
11700
static struct tm ac_aggr;
11701
if (sizeof ac_aggr.tm_zone)
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;;
11713
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11714
(eval "$ac_compile") 2>conftest.er1
11716
grep -v '^ *+' conftest.er1 >conftest.err
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
11726
echo "$as_me: failed program was:" >&5
11727
sed 's/^/| /' conftest.$ac_ext >&5
11729
ac_cv_member_struct_tm_tm_zone=no
11732
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11735
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
11741
cat >>confdefs.h <<_ACEOF
11742
#define HAVE_STRUCT_TM_TM_ZONE 1
11748
if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11750
cat >>confdefs.h <<\_ACEOF
11751
#define HAVE_TM_ZONE 1
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
11760
cat >conftest.$ac_ext <<_ACEOF
11763
cat confdefs.h >>conftest.$ac_ext
11764
cat >>conftest.$ac_ext <<_ACEOF
11765
/* end confdefs.h. */
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;;
11785
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11786
(eval "$ac_compile") 2>conftest.er1
11788
grep -v '^ *+' conftest.er1 >conftest.err
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
11798
echo "$as_me: failed program was:" >&5
11799
sed 's/^/| /' conftest.$ac_ext >&5
11801
ac_cv_have_decl_tzname=no
11804
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
11810
cat >>confdefs.h <<_ACEOF
11811
#define HAVE_DECL_TZNAME 1
11816
cat >>confdefs.h <<_ACEOF
11817
#define HAVE_DECL_TZNAME 0
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
11829
cat >conftest.$ac_ext <<_ACEOF
11832
cat confdefs.h >>conftest.$ac_ext
11833
cat >>conftest.$ac_ext <<_ACEOF
11834
/* end confdefs.h. */
11836
#if !HAVE_DECL_TZNAME
11837
extern char *tzname[];
11843
return tzname[0][0];
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;;
11854
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11855
(eval "$ac_link") 2>conftest.er1
11857
grep -v '^ *+' conftest.er1 >conftest.err
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
11868
echo "$as_me: failed program was:" >&5
11869
sed 's/^/| /' conftest.$ac_ext >&5
11871
ac_cv_var_tzname=no
11874
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11875
conftest$ac_exeext conftest.$ac_ext
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
11881
cat >>confdefs.h <<\_ACEOF
11882
#define HAVE_TZNAME 1
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
11894
cat >conftest.$ac_ext <<_ACEOF
11897
cat confdefs.h >>conftest.$ac_ext
11898
cat >>conftest.$ac_ext <<_ACEOF
11899
/* end confdefs.h. */
11905
static struct tm ac_aggr;
11906
if (ac_aggr.tm_gmtoff)
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;;
11918
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11919
(eval "$ac_compile") 2>conftest.er1
11921
grep -v '^ *+' conftest.er1 >conftest.err
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
11931
echo "$as_me: failed program was:" >&5
11932
sed 's/^/| /' conftest.$ac_ext >&5
11934
cat >conftest.$ac_ext <<_ACEOF
11937
cat confdefs.h >>conftest.$ac_ext
11938
cat >>conftest.$ac_ext <<_ACEOF
11939
/* end confdefs.h. */
11945
static struct tm ac_aggr;
11946
if (sizeof ac_aggr.tm_gmtoff)
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;;
11958
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11959
(eval "$ac_compile") 2>conftest.er1
11961
grep -v '^ *+' conftest.er1 >conftest.err
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
11971
echo "$as_me: failed program was:" >&5
11972
sed 's/^/| /' conftest.$ac_ext >&5
11974
ac_cv_member_struct_tm_tm_gmtoff=no
11977
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11980
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
11986
cat >>confdefs.h <<\_ACEOF
11987
#define HAVE_TM_GMTOFF 1
15950
gl_LIBOBJS="$gl_LIBOBJS fts.$ac_objext"
15961
gl_LIBOBJS="$gl_LIBOBJS openat-proc.$ac_objext"
16000
for ac_func in fchmodat mkdirat openat
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
16008
cat >conftest.$ac_ext <<_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
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. */
16024
# include <limits.h>
16026
# include <assert.h>
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. */
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
16048
return $ac_func ();
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;;
16059
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16060
(eval "$ac_link") 2>conftest.er1
16062
grep -v '^ *+' conftest.er1 >conftest.err
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"
16073
echo "$as_me: failed program was:" >&5
16074
sed 's/^/| /' conftest.$ac_ext >&5
16076
eval "$as_ac_var=no"
16079
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16080
conftest$ac_exeext conftest.$ac_ext
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
16092
gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
16098
case $ac_cv_func_openat+$ac_cv_func_lstat_dereferences_slashed_symlink in
16107
gl_LIBOBJS="$gl_LIBOBJS fstatat.$ac_objext"
16111
cat >>confdefs.h <<\_ACEOF
16112
#define __OPENAT_PREFIX rpl_
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
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
16129
cat >conftest.$ac_ext <<_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
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. */
16145
# include <limits.h>
16147
# include <assert.h>
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. */
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
16169
return fchownat ();
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;;
16180
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16181
(eval "$ac_link") 2>conftest.er1
16183
grep -v '^ *+' conftest.er1 >conftest.err
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
16194
echo "$as_me: failed program was:" >&5
16195
sed 's/^/| /' conftest.$ac_ext >&5
16197
ac_cv_func_fchownat=no
16200
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16201
conftest$ac_exeext conftest.$ac_ext
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
16211
if test $have_fchownat = yes; then
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
16219
gl_dangle=conftest.dangle
16220
# Remove any remnants of a previous test.
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
16228
cat >conftest.$ac_ext <<_ACEOF
16231
cat confdefs.h >>conftest.$ac_ext
16232
cat >>conftest.$ac_ext <<_ACEOF
16233
/* end confdefs.h. */
16236
#include <unistd.h>
16237
#include <stdlib.h>
16239
#include <sys/types.h>
16243
return (fchownat (AT_FDCWD, "$gl_dangle", -1, getgid (),
16244
AT_SYMLINK_NOFOLLOW) != 0
16245
&& errno == ENOENT);
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;;
16255
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16256
(eval "$ac_link") 2>&5
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;;
16264
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16265
(eval "$ac_try") 2>&5
16267
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16268
(exit $ac_status); }; }; then
16269
gl_cv_func_fchownat_nofollow_works=yes
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
16275
( exit $ac_status )
16276
gl_cv_func_fchownat_nofollow_works=no
16278
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
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
16289
use_replacement_fchownat=no
16295
if test $use_replacement_fchownat = yes; then
16303
gl_LIBOBJS="$gl_LIBOBJS fchownat.$ac_objext"
16306
cat >>confdefs.h <<\_ACEOF
16307
#define fchownat rpl_fchownat
16314
# Checks for header files.
16325
cat >>confdefs.h <<\_ACEOF
16326
#define GNULIB_FTS 1
14941
16334
gl_abort_bug=no
14942
16335
case $gl_cv_func_getcwd_null in
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
16836
cat >conftest.$ac_ext <<_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>
16849
static struct tm ac_aggr;
16850
if (ac_aggr.tm_zone)
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;;
16862
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16863
(eval "$ac_compile") 2>conftest.er1
16865
grep -v '^ *+' conftest.er1 >conftest.err
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
16875
echo "$as_me: failed program was:" >&5
16876
sed 's/^/| /' conftest.$ac_ext >&5
16878
cat >conftest.$ac_ext <<_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>
16891
static struct tm ac_aggr;
16892
if (sizeof ac_aggr.tm_zone)
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;;
16904
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16905
(eval "$ac_compile") 2>conftest.er1
16907
grep -v '^ *+' conftest.er1 >conftest.err
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
16917
echo "$as_me: failed program was:" >&5
16918
sed 's/^/| /' conftest.$ac_ext >&5
16920
ac_cv_member_struct_tm_tm_zone=no
16923
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16926
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
16932
cat >>confdefs.h <<_ACEOF
16933
#define HAVE_STRUCT_TM_TM_ZONE 1
16939
if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
16941
cat >>confdefs.h <<\_ACEOF
16942
#define HAVE_TM_ZONE 1
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
16951
cat >conftest.$ac_ext <<_ACEOF
16954
cat confdefs.h >>conftest.$ac_ext
16955
cat >>conftest.$ac_ext <<_ACEOF
16956
/* end confdefs.h. */
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;;
16976
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16977
(eval "$ac_compile") 2>conftest.er1
16979
grep -v '^ *+' conftest.er1 >conftest.err
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
16989
echo "$as_me: failed program was:" >&5
16990
sed 's/^/| /' conftest.$ac_ext >&5
16992
ac_cv_have_decl_tzname=no
16995
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
17001
cat >>confdefs.h <<_ACEOF
17002
#define HAVE_DECL_TZNAME 1
17007
cat >>confdefs.h <<_ACEOF
17008
#define HAVE_DECL_TZNAME 0
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
17020
cat >conftest.$ac_ext <<_ACEOF
17023
cat confdefs.h >>conftest.$ac_ext
17024
cat >>conftest.$ac_ext <<_ACEOF
17025
/* end confdefs.h. */
17027
#if !HAVE_DECL_TZNAME
17028
extern char *tzname[];
17034
return tzname[0][0];
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;;
17045
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17046
(eval "$ac_link") 2>conftest.er1
17048
grep -v '^ *+' conftest.er1 >conftest.err
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
17059
echo "$as_me: failed program was:" >&5
17060
sed 's/^/| /' conftest.$ac_ext >&5
17062
ac_cv_var_tzname=no
17065
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17066
conftest$ac_exeext conftest.$ac_ext
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
17072
cat >>confdefs.h <<\_ACEOF
17073
#define HAVE_TZNAME 1
17806
gl_LIBOBJS="$gl_LIBOBJS gettime.$ac_objext"
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
17838
cat >conftest.$ac_ext <<_ACEOF
17841
cat confdefs.h >>conftest.$ac_ext
17842
cat >>conftest.$ac_ext <<_ACEOF
17843
/* end confdefs.h. */
17844
#include <sys/time.h>
17851
int (*f) (struct timeval *restrict, void *restrict) = gettimeofday;
17853
return !(x | c.tv_sec | c.tv_usec);
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;;
17865
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17866
(eval "$ac_compile") 2>conftest.er1
17868
grep -v '^ *+' conftest.er1 >conftest.err
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
17878
echo "$as_me: failed program was:" >&5
17879
sed 's/^/| /' conftest.$ac_ext >&5
17881
gl_cv_func_gettimeofday_posix_signature=no
17884
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17886
{ echo "$as_me:$LINENO: result: $gl_cv_func_gettimeofday_posix_signature" >&5
17887
echo "${ECHO_T}$gl_cv_func_gettimeofday_posix_signature" >&6; }
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
17897
if test "$cross_compiling" = yes; then
17898
gl_cv_func_gettimeofday_clobber=yes
17900
cat >conftest.$ac_ext <<_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>
17909
#include <stdlib.h>
17917
struct tm saved_lt;
17919
lt = localtime (&t);
17921
gettimeofday (&tv, NULL);
17922
return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
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;;
17934
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17935
(eval "$ac_link") 2>&5
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;;
17943
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17944
(eval "$ac_try") 2>&5
17946
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947
(exit $ac_status); }; }; then
17948
gl_cv_func_gettimeofday_clobber=no
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
17954
( exit $ac_status )
17955
gl_cv_func_gettimeofday_clobber=yes
17957
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17962
{ echo "$as_me:$LINENO: result: $gl_cv_func_gettimeofday_clobber" >&5
17963
echo "${ECHO_T}$gl_cv_func_gettimeofday_clobber" >&6; }
17965
if test $gl_cv_func_gettimeofday_clobber = yes; then
17966
REPLACE_GETTIMEOFDAY=1
17967
SYS_TIME_H=sys/time.h
17976
gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
17980
for ac_header in sys/timeb.h
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
17989
ac_res=`eval echo '${'$as_ac_Header'}'`
17990
{ echo "$as_me:$LINENO: result: $ac_res" >&5
17991
echo "${ECHO_T}$ac_res" >&6; }
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
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>
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;;
18011
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18012
(eval "$ac_compile") 2>conftest.er1
18014
grep -v '^ *+' conftest.er1 >conftest.err
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
18024
echo "$as_me: failed program was:" >&5
18025
sed 's/^/| /' conftest.$ac_ext >&5
18027
ac_header_compiler=no
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; }
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
18040
cat confdefs.h >>conftest.$ac_ext
18041
cat >>conftest.$ac_ext <<_ACEOF
18042
/* end confdefs.h. */
18043
#include <$ac_header>
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;;
18050
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18051
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18053
grep -v '^ *+' conftest.er1 >conftest.err
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
18061
ac_header_preproc=yes
18063
echo "$as_me: failed program was:" >&5
18064
sed 's/^/| /' conftest.$ac_ext >&5
18066
ac_header_preproc=no
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; }
18073
# So? What about this header?
18074
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
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
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;}
18096
## ------------------------------------ ##
18097
## Report this to bug-findutils@gnu.org ##
18098
## ------------------------------------ ##
18100
) | sed "s/^/$as_me: WARNING: /" >&2
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
18108
eval "$as_ac_Header=\$ac_header_preproc"
18110
ac_res=`eval echo '${'$as_ac_Header'}'`
18111
{ echo "$as_me:$LINENO: result: $ac_res" >&5
18112
echo "${ECHO_T}$ac_res" >&6; }
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
18125
for ac_func in _ftime
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
18133
cat >conftest.$ac_ext <<_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
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. */
18149
# include <limits.h>
18151
# include <assert.h>
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. */
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
18173
return $ac_func ();
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;;
18184
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18185
(eval "$ac_link") 2>conftest.er1
18187
grep -v '^ *+' conftest.er1 >conftest.err
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"
18198
echo "$as_me: failed program was:" >&5
18199
sed 's/^/| /' conftest.$ac_ext >&5
18201
eval "$as_ac_var=no"
18204
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18205
conftest$ac_exeext conftest.$ac_ext
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
18220
cat >>confdefs.h <<\_ACEOF
18221
#define gmtime rpl_gmtime
18225
cat >>confdefs.h <<\_ACEOF
18226
#define localtime rpl_localtime
18231
cat >>confdefs.h <<\_ACEOF
18232
#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1
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
18249
gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
18253
for ac_header in sys/timeb.h
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
18262
ac_res=`eval echo '${'$as_ac_Header'}'`
18263
{ echo "$as_me:$LINENO: result: $ac_res" >&5
18264
echo "${ECHO_T}$ac_res" >&6; }
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
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>
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;;
18284
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18285
(eval "$ac_compile") 2>conftest.er1
18287
grep -v '^ *+' conftest.er1 >conftest.err
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
18297
echo "$as_me: failed program was:" >&5
18298
sed 's/^/| /' conftest.$ac_ext >&5
18300
ac_header_compiler=no
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; }
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
18313
cat confdefs.h >>conftest.$ac_ext
18314
cat >>conftest.$ac_ext <<_ACEOF
18315
/* end confdefs.h. */
18316
#include <$ac_header>
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;;
18323
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18324
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18326
grep -v '^ *+' conftest.er1 >conftest.err
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
18334
ac_header_preproc=yes
18336
echo "$as_me: failed program was:" >&5
18337
sed 's/^/| /' conftest.$ac_ext >&5
18339
ac_header_preproc=no
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; }
18346
# So? What about this header?
18347
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
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
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;}
18369
## ------------------------------------ ##
18370
## Report this to bug-findutils@gnu.org ##
18371
## ------------------------------------ ##
18373
) | sed "s/^/$as_me: WARNING: /" >&2
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
18381
eval "$as_ac_Header=\$ac_header_preproc"
18383
ac_res=`eval echo '${'$as_ac_Header'}'`
18384
{ echo "$as_me:$LINENO: result: $ac_res" >&5
18385
echo "${ECHO_T}$ac_res" >&6; }
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
18398
for ac_func in _ftime
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
18406
cat >conftest.$ac_ext <<_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
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. */
18422
# include <limits.h>
18424
# include <assert.h>
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. */
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
18446
return $ac_func ();
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;;
18457
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18458
(eval "$ac_link") 2>conftest.er1
18460
grep -v '^ *+' conftest.er1 >conftest.err
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"
18471
echo "$as_me: failed program was:" >&5
18472
sed 's/^/| /' conftest.$ac_ext >&5
18474
eval "$as_ac_var=no"
18477
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18478
conftest$ac_exeext conftest.$ac_ext
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
16156
18503
gl_LIBOBJS="$gl_LIBOBJS hash.$ac_objext"
19878
GNULIB_MBSCASESTR=1
19914
for ac_func in memchr
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
19922
cat >conftest.$ac_ext <<_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
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. */
19938
# include <limits.h>
19940
# include <assert.h>
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. */
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
19962
return $ac_func ();
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;;
19973
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19974
(eval "$ac_link") 2>conftest.er1
19976
grep -v '^ *+' conftest.er1 >conftest.err
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"
19987
echo "$as_me: failed program was:" >&5
19988
sed 's/^/| /' conftest.$ac_ext >&5
19990
eval "$as_ac_var=no"
19993
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19994
conftest$ac_exeext conftest.$ac_ext
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
20006
gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
20012
if test $ac_cv_func_memchr = no; then
20015
for ac_header in bp-sym.h
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
20024
ac_res=`eval echo '${'$as_ac_Header'}'`
20025
{ echo "$as_me:$LINENO: result: $ac_res" >&5
20026
echo "${ECHO_T}$ac_res" >&6; }
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
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>
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;;
20046
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20047
(eval "$ac_compile") 2>conftest.er1
20049
grep -v '^ *+' conftest.er1 >conftest.err
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
20059
echo "$as_me: failed program was:" >&5
20060
sed 's/^/| /' conftest.$ac_ext >&5
20062
ac_header_compiler=no
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; }
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
20075
cat confdefs.h >>conftest.$ac_ext
20076
cat >>conftest.$ac_ext <<_ACEOF
20077
/* end confdefs.h. */
20078
#include <$ac_header>
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;;
20085
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20086
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20088
grep -v '^ *+' conftest.er1 >conftest.err
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
20096
ac_header_preproc=yes
20098
echo "$as_me: failed program was:" >&5
20099
sed 's/^/| /' conftest.$ac_ext >&5
20101
ac_header_preproc=no
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; }
20108
# So? What about this header?
20109
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
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
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;}
20131
## ------------------------------------ ##
20132
## Report this to bug-findutils@gnu.org ##
20133
## ------------------------------------ ##
20135
) | sed "s/^/$as_me: WARNING: /" >&2
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
20143
eval "$as_ac_Header=\$ac_header_preproc"
20145
ac_res=`eval echo '${'$as_ac_Header'}'`
20146
{ echo "$as_me:$LINENO: result: $ac_res" >&5
20147
echo "${ECHO_T}$ac_res" >&6; }
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
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
24210
if test $ac_cv_func_setenv = no; then
24218
gl_LIBOBJS="$gl_LIBOBJS setenv.$ac_objext"
24230
for ac_header in search.h
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
24239
ac_res=`eval echo '${'$as_ac_Header'}'`
24240
{ echo "$as_me:$LINENO: result: $ac_res" >&5
24241
echo "${ECHO_T}$ac_res" >&6; }
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
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>
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;;
24261
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24262
(eval "$ac_compile") 2>conftest.er1
24264
grep -v '^ *+' conftest.er1 >conftest.err
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
24274
echo "$as_me: failed program was:" >&5
24275
sed 's/^/| /' conftest.$ac_ext >&5
24277
ac_header_compiler=no
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; }
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
24290
cat confdefs.h >>conftest.$ac_ext
24291
cat >>conftest.$ac_ext <<_ACEOF
24292
/* end confdefs.h. */
24293
#include <$ac_header>
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;;
24300
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24301
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24303
grep -v '^ *+' conftest.er1 >conftest.err
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
24311
ac_header_preproc=yes
24313
echo "$as_me: failed program was:" >&5
24314
sed 's/^/| /' conftest.$ac_ext >&5
24316
ac_header_preproc=no
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; }
24323
# So? What about this header?
24324
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
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
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;}
24346
## ------------------------------------ ##
24347
## Report this to bug-findutils@gnu.org ##
24348
## ------------------------------------ ##
24350
) | sed "s/^/$as_me: WARNING: /" >&2
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
24358
eval "$as_ac_Header=\$ac_header_preproc"
24360
ac_res=`eval echo '${'$as_ac_Header'}'`
24361
{ echo "$as_me:$LINENO: result: $ac_res" >&5
24362
echo "${ECHO_T}$ac_res" >&6; }
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
24375
for ac_func in tsearch
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
24383
cat >conftest.$ac_ext <<_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
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. */
24399
# include <limits.h>
24401
# include <assert.h>
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. */
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
24423
return $ac_func ();
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;;
24434
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24435
(eval "$ac_link") 2>conftest.er1
24437
grep -v '^ *+' conftest.er1 >conftest.err
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"
24448
echo "$as_me: failed program was:" >&5
24449
sed 's/^/| /' conftest.$ac_ext >&5
24451
eval "$as_ac_var=no"
24454
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24455
conftest$ac_exeext conftest.$ac_ext
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
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
24476
cat >conftest.$ac_ext <<_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;
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;;
24498
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24499
(eval "$ac_compile") 2>conftest.er1
24501
grep -v '^ *+' conftest.er1 >conftest.err
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
24511
echo "$as_me: failed program was:" >&5
24512
sed 's/^/| /' conftest.$ac_ext >&5
24514
gt_cv_var_environ_declaration=yes
24517
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
24524
cat >>confdefs.h <<\_ACEOF
24525
#define HAVE_ENVIRON_DECL 1
24535
for ac_func in unsetenv
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
24543
cat >conftest.$ac_ext <<_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
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. */
24559
# include <limits.h>
24561
# include <assert.h>
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. */
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
24583
return $ac_func ();
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;;
24594
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24595
(eval "$ac_link") 2>conftest.er1
24597
grep -v '^ *+' conftest.er1 >conftest.err
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"
24608
echo "$as_me: failed program was:" >&5
24609
sed 's/^/| /' conftest.$ac_ext >&5
24611
eval "$as_ac_var=no"
24614
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24615
conftest$ac_exeext conftest.$ac_ext
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
24628
if test $ac_cv_func_unsetenv = no; then
24636
gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
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
24654
cat >conftest.$ac_ext <<_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;
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;;
24676
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24677
(eval "$ac_compile") 2>conftest.er1
24679
grep -v '^ *+' conftest.er1 >conftest.err
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
24689
echo "$as_me: failed program was:" >&5
24690
sed 's/^/| /' conftest.$ac_ext >&5
24692
gt_cv_var_environ_declaration=yes
24695
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
24702
cat >>confdefs.h <<\_ACEOF
24703
#define HAVE_ENVIRON_DECL 1
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
24715
cat >conftest.$ac_ext <<_ACEOF
24718
cat confdefs.h >>conftest.$ac_ext
24719
cat >>conftest.$ac_ext <<_ACEOF
24720
/* end confdefs.h. */
24721
#include <stdlib.h>
24726
#if defined(__STDC__) || defined(__cplusplus)
24727
int unsetenv (const char *name);
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;;
24746
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24747
(eval "$ac_compile") 2>conftest.er1
24749
grep -v '^ *+' conftest.er1 >conftest.err
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'
24759
echo "$as_me: failed program was:" >&5
24760
sed 's/^/| /' conftest.$ac_ext >&5
24762
gt_cv_func_unsetenv_ret='void'
24765
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
24771
cat >>confdefs.h <<\_ACEOF
24772
#define VOID_UNSETENV 1
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
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
24853
cat >conftest.$ac_ext <<_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>
24865
static struct stat ac_aggr;
24866
if (ac_aggr.st_atim.tv_nsec)
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;;
24878
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24879
(eval "$ac_compile") 2>conftest.er1
24881
grep -v '^ *+' conftest.er1 >conftest.err
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
24891
echo "$as_me: failed program was:" >&5
24892
sed 's/^/| /' conftest.$ac_ext >&5
24894
cat >conftest.$ac_ext <<_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>
24906
static struct stat ac_aggr;
24907
if (sizeof ac_aggr.st_atim.tv_nsec)
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;;
24919
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24920
(eval "$ac_compile") 2>conftest.er1
24922
grep -v '^ *+' conftest.er1 >conftest.err
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
24932
echo "$as_me: failed program was:" >&5
24933
sed 's/^/| /' conftest.$ac_ext >&5
24935
ac_cv_member_struct_stat_st_atim_tv_nsec=no
24938
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24941
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
24947
cat >>confdefs.h <<_ACEOF
24948
#define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
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
24956
cat >conftest.$ac_ext <<_ACEOF
24959
cat confdefs.h >>conftest.$ac_ext
24960
cat >>conftest.$ac_ext <<_ACEOF
24961
/* end confdefs.h. */
24963
#include <sys/types.h>
24964
#include <sys/stat.h>
24965
#if HAVE_SYS_TIME_H
24966
# include <sys/time.h>
24969
struct timespec ts;
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;;
24988
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24989
(eval "$ac_compile") 2>conftest.er1
24991
grep -v '^ *+' conftest.er1 >conftest.err
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
25001
echo "$as_me: failed program was:" >&5
25002
sed 's/^/| /' conftest.$ac_ext >&5
25004
ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
25007
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
25013
cat >>confdefs.h <<\_ACEOF
25014
#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1
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
25024
cat >conftest.$ac_ext <<_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>
25036
static struct stat ac_aggr;
25037
if (ac_aggr.st_atimespec.tv_nsec)
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;;
25049
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25050
(eval "$ac_compile") 2>conftest.er1
25052
grep -v '^ *+' conftest.er1 >conftest.err
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
25062
echo "$as_me: failed program was:" >&5
25063
sed 's/^/| /' conftest.$ac_ext >&5
25065
cat >conftest.$ac_ext <<_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>
25077
static struct stat ac_aggr;
25078
if (sizeof ac_aggr.st_atimespec.tv_nsec)
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;;
25090
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25091
(eval "$ac_compile") 2>conftest.er1
25093
grep -v '^ *+' conftest.er1 >conftest.err
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
25103
echo "$as_me: failed program was:" >&5
25104
sed 's/^/| /' conftest.$ac_ext >&5
25106
ac_cv_member_struct_stat_st_atimespec_tv_nsec=no
25109
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25112
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
25118
cat >>confdefs.h <<_ACEOF
25119
#define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
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
25129
cat >conftest.$ac_ext <<_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>
25141
static struct stat ac_aggr;
25142
if (ac_aggr.st_atimensec)
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;;
25154
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25155
(eval "$ac_compile") 2>conftest.er1
25157
grep -v '^ *+' conftest.er1 >conftest.err
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
25167
echo "$as_me: failed program was:" >&5
25168
sed 's/^/| /' conftest.$ac_ext >&5
25170
cat >conftest.$ac_ext <<_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>
25182
static struct stat ac_aggr;
25183
if (sizeof ac_aggr.st_atimensec)
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;;
25195
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25196
(eval "$ac_compile") 2>conftest.er1
25198
grep -v '^ *+' conftest.er1 >conftest.err
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
25208
echo "$as_me: failed program was:" >&5
25209
sed 's/^/| /' conftest.$ac_ext >&5
25211
ac_cv_member_struct_stat_st_atimensec=no
25214
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25217
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
25223
cat >>confdefs.h <<_ACEOF
25224
#define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
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
25234
cat >conftest.$ac_ext <<_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>
25246
static struct stat ac_aggr;
25247
if (ac_aggr.st_atim.st__tim.tv_nsec)
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;;
25259
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25260
(eval "$ac_compile") 2>conftest.er1
25262
grep -v '^ *+' conftest.er1 >conftest.err
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
25272
echo "$as_me: failed program was:" >&5
25273
sed 's/^/| /' conftest.$ac_ext >&5
25275
cat >conftest.$ac_ext <<_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>
25287
static struct stat ac_aggr;
25288
if (sizeof ac_aggr.st_atim.st__tim.tv_nsec)
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;;
25300
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25301
(eval "$ac_compile") 2>conftest.er1
25303
grep -v '^ *+' conftest.er1 >conftest.err
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
25313
echo "$as_me: failed program was:" >&5
25314
sed 's/^/| /' conftest.$ac_ext >&5
25316
ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec=no
25319
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25322
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
25328
cat >>confdefs.h <<_ACEOF
25329
#define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
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
25357
cat >conftest.$ac_ext <<_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>
25369
static struct stat ac_aggr;
25370
if (ac_aggr.st_birthtimespec.tv_nsec)
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;;
25382
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25383
(eval "$ac_compile") 2>conftest.er1
25385
grep -v '^ *+' conftest.er1 >conftest.err
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
25395
echo "$as_me: failed program was:" >&5
25396
sed 's/^/| /' conftest.$ac_ext >&5
25398
cat >conftest.$ac_ext <<_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>
25410
static struct stat ac_aggr;
25411
if (sizeof ac_aggr.st_birthtimespec.tv_nsec)
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;;
25423
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25424
(eval "$ac_compile") 2>conftest.er1
25426
grep -v '^ *+' conftest.er1 >conftest.err
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
25436
echo "$as_me: failed program was:" >&5
25437
sed 's/^/| /' conftest.$ac_ext >&5
25439
ac_cv_member_struct_stat_st_birthtimespec_tv_nsec=no
25442
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25445
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
25451
cat >>confdefs.h <<_ACEOF
25452
#define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
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
25462
cat >conftest.$ac_ext <<_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>
25474
static struct stat ac_aggr;
25475
if (ac_aggr.st_birthtimensec)
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;;
25487
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25488
(eval "$ac_compile") 2>conftest.er1
25490
grep -v '^ *+' conftest.er1 >conftest.err
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
25500
echo "$as_me: failed program was:" >&5
25501
sed 's/^/| /' conftest.$ac_ext >&5
25503
cat >conftest.$ac_ext <<_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>
25515
static struct stat ac_aggr;
25516
if (sizeof ac_aggr.st_birthtimensec)
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;;
25528
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25529
(eval "$ac_compile") 2>conftest.er1
25531
grep -v '^ *+' conftest.er1 >conftest.err
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
25541
echo "$as_me: failed program was:" >&5
25542
sed 's/^/| /' conftest.$ac_ext >&5
25544
ac_cv_member_struct_stat_st_birthtimensec=no
25547
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25550
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
25556
cat >>confdefs.h <<_ACEOF
25557
#define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
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
25567
cat >conftest.$ac_ext <<_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>
25579
static struct stat ac_aggr;
25580
if (ac_aggr.st_birthtim.tv_nsec)
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;;
25592
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25593
(eval "$ac_compile") 2>conftest.er1
25595
grep -v '^ *+' conftest.er1 >conftest.err
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
25605
echo "$as_me: failed program was:" >&5
25606
sed 's/^/| /' conftest.$ac_ext >&5
25608
cat >conftest.$ac_ext <<_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>
25620
static struct stat ac_aggr;
25621
if (sizeof ac_aggr.st_birthtim.tv_nsec)
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;;
25633
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25634
(eval "$ac_compile") 2>conftest.er1
25636
grep -v '^ *+' conftest.er1 >conftest.err
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
25646
echo "$as_me: failed program was:" >&5
25647
sed 's/^/| /' conftest.$ac_ext >&5
25649
ac_cv_member_struct_stat_st_birthtim_tv_nsec=no
25652
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25655
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
25661
cat >>confdefs.h <<_ACEOF
25662
#define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
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
25680
cat >conftest.$ac_ext <<_ACEOF
25683
cat confdefs.h >>conftest.$ac_ext
25684
cat >>conftest.$ac_ext <<_ACEOF
25685
/* end confdefs.h. */
25686
#include <stdarg.h>
25692
void (*func) (va_list, va_list) = va_copy;
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;;
25705
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25706
(eval "$ac_compile") 2>conftest.er1
25708
grep -v '^ *+' conftest.er1 >conftest.err
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
25718
echo "$as_me: failed program was:" >&5
25719
sed 's/^/| /' conftest.$ac_ext >&5
25721
gl_cv_func_va_copy=no
25724
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
25735
cat >conftest.$ac_ext <<_ACEOF
25738
cat confdefs.h >>conftest.$ac_ext
25739
cat >>conftest.$ac_ext <<_ACEOF
25740
/* end confdefs.h. */
25741
#include <stdarg.h>
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;;
25760
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25761
(eval "$ac_compile") 2>conftest.er1
25763
grep -v '^ *+' conftest.er1 >conftest.err
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
25773
echo "$as_me: failed program was:" >&5
25774
sed 's/^/| /' conftest.$ac_ext >&5
25776
gl_cv_func___va_copy=no
25779
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25782
if test $gl_cv_func___va_copy = yes; then
25784
cat >>confdefs.h <<\_ACEOF
25785
#define va_copy __va_copy
25792
cat >>confdefs.h <<\_ACEOF
25793
#define va_copy gl_va_copy
21611
25802
# Define two additional variables used in the Makefile substitution.
21613
25804
if test "$ac_cv_header_stdbool_h" = yes; then
29719
gl_source_base='tests'
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
29728
cat >conftest.$ac_ext <<_ACEOF
29731
cat confdefs.h >>conftest.$ac_ext
29732
cat >>conftest.$ac_ext <<_ACEOF
29733
/* end confdefs.h. */
29735
#include <locale.h>
29737
#if HAVE_LANGINFO_CODESET
29738
# include <langinfo.h>
29740
#include <stdlib.h>
29741
#include <string.h>
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;
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;
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')
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;
29779
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29780
(eval $ac_link) 2>&5
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
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
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
29801
gt_cv_locale_fr_utf8=none
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
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
29822
cat >conftest.$ac_ext <<_ACEOF
29825
cat confdefs.h >>conftest.$ac_ext
29826
cat >>conftest.$ac_ext <<_ACEOF
29827
/* end confdefs.h. */
29829
#include <locale.h>
29831
#if HAVE_LANGINFO_CODESET
29832
# include <langinfo.h>
29834
#include <stdlib.h>
29835
#include <string.h>
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;
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;
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)
29865
/* Check whether the upper-/lowercase mappings are as expected for
29867
if (towupper ('i') != 0x0130 || towlower (0x0130) != 'i'
29868
|| towupper(0x0131) != 'I' || towlower ('I') != 0x0131)
29874
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29875
(eval $ac_link) 2>&5
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
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
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
29896
gt_cv_locale_tr_utf8=none
29901
gt_cv_locale_tr_utf8=none
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
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
29923
darwin*) macosx=yes;;
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
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
29936
cat >conftest.$ac_ext <<_ACEOF
29939
cat confdefs.h >>conftest.$ac_ext
29940
cat >>conftest.$ac_ext <<_ACEOF
29941
/* end confdefs.h. */
29943
#include <locale.h>
29944
#include <stdlib.h>
29946
#if HAVE_LANGINFO_CODESET
29947
# include <langinfo.h>
29949
#include <stdlib.h>
29950
#include <string.h>
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;
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;
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)
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)
29985
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29986
(eval $ac_link) 2>&5
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
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
30003
gt_cv_locale_zh_CN=none
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
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
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
30028
cat >conftest.$ac_ext <<_ACEOF
30031
cat confdefs.h >>conftest.$ac_ext
30032
cat >>conftest.$ac_ext <<_ACEOF
30033
/* end confdefs.h. */
30035
#include <locale.h>
30037
#if HAVE_LANGINFO_CODESET
30038
# include <langinfo.h>
30040
#include <stdlib.h>
30041
#include <string.h>
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;
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;
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')
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;
30079
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30080
(eval $ac_link) 2>&5
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
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
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
30101
gt_cv_locale_fr_utf8=none
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
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
30126
darwin*) macosx=yes;;
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
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
30139
cat >conftest.$ac_ext <<_ACEOF
30142
cat confdefs.h >>conftest.$ac_ext
30143
cat >>conftest.$ac_ext <<_ACEOF
30144
/* end confdefs.h. */
30146
#include <locale.h>
30147
#include <stdlib.h>
30149
#if HAVE_LANGINFO_CODESET
30150
# include <langinfo.h>
30152
#include <stdlib.h>
30153
#include <string.h>
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;
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;
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)
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)
30188
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30189
(eval $ac_link) 2>&5
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
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
30206
gt_cv_locale_zh_CN=none
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
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
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
30229
cat >conftest.$ac_ext <<_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';
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;;
30251
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30252
(eval "$ac_compile") 2>conftest.er1
30254
grep -v '^ *+' conftest.er1 >conftest.err
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
30264
echo "$as_me: failed program was:" >&5
30265
sed 's/^/| /' conftest.$ac_ext >&5
30270
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
30276
cat >>confdefs.h <<\_ACEOF
30277
#define HAVE_WCHAR_T 1
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
30288
cat >conftest.$ac_ext <<_ACEOF
30291
cat confdefs.h >>conftest.$ac_ext
30292
cat >>conftest.$ac_ext <<_ACEOF
30293
/* end confdefs.h. */
30295
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
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>
30303
wint_t foo = (wchar_t)'\0';
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;;
30318
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30319
(eval "$ac_compile") 2>conftest.er1
30321
grep -v '^ *+' conftest.er1 >conftest.err
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
30331
echo "$as_me: failed program was:" >&5
30332
sed 's/^/| /' conftest.$ac_ext >&5
30337
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
30343
cat >>confdefs.h <<\_ACEOF
30344
#define HAVE_WINT_T 1
25253
30353
LIBGNULIB_LIBDEPS="$gl_libdeps"
25255
30355
LIBGNULIB_LTLIBDEPS="$gl_ltlibdeps"
30357
LIBTESTS_LIBDEPS="$gltests_libdeps"