Import strtok_r gnulib module
[deliverable/binutils-gdb.git] / gdb / gnulib / configure
CommitLineData
c971b7fa
PA
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.64.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99IFS=$as_save_IFS
100
101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175else
176 as_have_required=no
177fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182as_found=false
183for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184do
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198fi
199fi
200 done;;
201 esac
202 as_found=false
203done
204$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207fi; }
208IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228 else
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230$0: including any error possibly output before this
231$0: message. Then install a modern shell, or manually run
232$0: the script under such a shell if you do have one."
233 fi
234 exit 1
235fi
236fi
237fi
238SHELL=${CONFIG_SHELL-/bin/sh}
239export SHELL
240# Unset more variables known to interfere with behavior of common tools.
241CLICOLOR_FORCE= GREP_OPTIONS=
242unset CLICOLOR_FORCE GREP_OPTIONS
243
244## --------------------- ##
245## M4sh Shell Functions. ##
246## --------------------- ##
247# as_fn_unset VAR
248# ---------------
249# Portably unset VAR.
250as_fn_unset ()
251{
252 { eval $1=; unset $1;}
253}
254as_unset=as_fn_unset
255
256# as_fn_set_status STATUS
257# -----------------------
258# Set $? to STATUS, without forking.
259as_fn_set_status ()
260{
261 return $1
262} # as_fn_set_status
263
264# as_fn_exit STATUS
265# -----------------
266# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267as_fn_exit ()
268{
269 set +e
270 as_fn_set_status $1
271 exit $1
272} # as_fn_exit
273
274# as_fn_mkdir_p
275# -------------
276# Create "$as_dir" as a directory, including parents if necessary.
277as_fn_mkdir_p ()
278{
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296$as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320} # as_fn_mkdir_p
321# as_fn_append VAR VALUE
322# ----------------------
323# Append the text in VALUE to the end of the definition contained in VAR. Take
324# advantage of any shell optimizations that allow amortized linear growth over
325# repeated appends, instead of the typical quadratic growth present in naive
326# implementations.
327if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337fi # as_fn_append
338
339# as_fn_arith ARG...
340# ------------------
341# Perform arithmetic evaluation on the ARGs, and store the result in the
342# global $as_val. Take advantage of shells that can avoid forks. The arguments
343# must be portable across $(()) and expr.
344if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354fi # as_fn_arith
355
356
357# as_fn_error ERROR [LINENO LOG_FD]
358# ---------------------------------
359# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361# script with status $?, using 1 if that was 0.
362as_fn_error ()
363{
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371} # as_fn_error
372
373if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376else
377 as_expr=false
378fi
379
380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382else
383 as_basename=false
384fi
385
386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388else
389 as_dirname=false
390fi
391
392as_me=`$as_basename -- "$0" ||
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396$as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
410
411# Avoid depending upon Character Ranges.
412as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415as_cr_digits='0123456789'
416as_cr_alnum=$as_cr_Letters$as_cr_digits
417
418
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
433 N
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436 t loop
437 s/-\n.*//
438 ' >$as_me.lineno &&
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
446 # Exit status is that of the last command.
447 exit
448}
449
450ECHO_C= ECHO_N= ECHO_T=
451case `echo -n x` in #(((((
452-n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459*)
460 ECHO_N='-n';;
461esac
462
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
469fi
470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
472 as_ln_s='ln -s'
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
483 fi
484else
485 as_ln_s='cp -p'
486fi
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
489
490if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495fi
496
497if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517fi
518as_executable_p=$as_test_x
519
520# Sed expression to map a string onto a valid CPP name.
521as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523# Sed expression to map a string onto a valid variable name.
524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
527exec 7<&0 </dev/null 6>&1
528
529# Name of the host.
530# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531# so uname gets run too.
532ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
534#
535# Initializations.
536#
537ac_default_prefix=/usr/local
538ac_clean_files=
539ac_config_libobj_dir=.
540LIBOBJS=
541cross_compiling=no
542subdirs=
543MFLAGS=
544MAKEFLAGS=
545
546# Identity of this package.
547PACKAGE_NAME=
548PACKAGE_TARNAME=
549PACKAGE_VERSION=
550PACKAGE_STRING=
551PACKAGE_BUGREPORT=
552PACKAGE_URL=
553
8690e634 554ac_unique_file="import/memmem.c"
c971b7fa
PA
555# Factoring default headers for most tests.
556ac_includes_default="\
557#include <stdio.h>
558#ifdef HAVE_SYS_TYPES_H
559# include <sys/types.h>
560#endif
561#ifdef HAVE_SYS_STAT_H
562# include <sys/stat.h>
563#endif
564#ifdef STDC_HEADERS
565# include <stdlib.h>
566# include <stddef.h>
567#else
568# ifdef HAVE_STDLIB_H
569# include <stdlib.h>
570# endif
571#endif
572#ifdef HAVE_STRING_H
573# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
574# include <memory.h>
575# endif
576# include <string.h>
577#endif
578#ifdef HAVE_STRINGS_H
579# include <strings.h>
580#endif
581#ifdef HAVE_INTTYPES_H
582# include <inttypes.h>
583#endif
584#ifdef HAVE_STDINT_H
585# include <stdint.h>
586#endif
587#ifdef HAVE_UNISTD_H
588# include <unistd.h>
589#endif"
590
98399780 591ac_func_list=
e26b6bb0 592ac_header_list=
8690e634 593gl_fnmatch_required=POSIX
c971b7fa
PA
594ac_subst_vars='am__EXEEXT_FALSE
595am__EXEEXT_TRUE
596gltests_LTLIBOBJS
597gltests_LIBOBJS
598gl_LTLIBOBJS
599gl_LIBOBJS
600LTLIBOBJS
601LIBOBJS
602LN_S
603am__fastdepCC_FALSE
604am__fastdepCC_TRUE
605CCDEPMODE
606AMDEPBACKSLASH
607AMDEP_FALSE
608AMDEP_TRUE
609am__quote
610am__include
611DEPDIR
612am__untar
613am__tar
614AMTAR
615am__leading_dot
616SET_MAKE
617AWK
618mkdir_p
c971b7fa
PA
619INSTALL_STRIP_PROGRAM
620STRIP
621install_sh
622MAKEINFO
623AUTOHEADER
624AUTOMAKE
625AUTOCONF
626ACLOCAL
627VERSION
628PACKAGE
629CYGPATH_W
630am__isrc
631INSTALL_DATA
632INSTALL_SCRIPT
633INSTALL_PROGRAM
634LIBGNU_LTLIBDEPS
635LIBGNU_LIBDEPS
636gltests_WITNESS
8690e634
JK
637REPLACE_TOWLOWER
638REPLACE_ISWCNTRL
639HAVE_WCTYPE_H
640NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
641NEXT_WCTYPE_H
642HAVE_ISWCNTRL
643REPLACE_ISWBLANK
644HAVE_WCTRANS_T
645HAVE_WCTYPE_T
646HAVE_ISWBLANK
647GNULIB_TOWCTRANS
648GNULIB_WCTRANS
649GNULIB_ISWCTYPE
650GNULIB_WCTYPE
651GNULIB_ISWBLANK
652HAVE_WINT_T
653HAVE_FEATURES_H
654NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
655NEXT_WCHAR_H
8839a007
PA
656HAVE_UNISTD_H
657NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
658NEXT_UNISTD_H
09607c9e
TT
659PTHREAD_H_DEFINES_STRUCT_TIMESPEC
660SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
661TIME_H_DEFINES_STRUCT_TIMESPEC
662NEXT_AS_FIRST_DIRECTIVE_TIME_H
663NEXT_TIME_H
664REPLACE_TIMEGM
665REPLACE_NANOSLEEP
666REPLACE_MKTIME
667REPLACE_LOCALTIME_R
668HAVE_TIMEGM
669HAVE_STRPTIME
670HAVE_NANOSLEEP
671HAVE_DECL_LOCALTIME_R
672GNULIB_TIME_R
673GNULIB_TIMEGM
674GNULIB_STRPTIME
675GNULIB_NANOSLEEP
676GNULIB_MKTIME
63ce7108
TT
677WINDOWS_64_BIT_OFF_T
678NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
679NEXT_SYS_TYPES_H
09607c9e
TT
680MKDIR_P
681WINDOWS_64_BIT_ST_SIZE
682NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
683NEXT_SYS_STAT_H
2196f55f
YQ
684NEXT_AS_FIRST_DIRECTIVE_STRING_H
685NEXT_STRING_H
98399780
YQ
686NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
687NEXT_STDLIB_H
6a29c58e
YQ
688NEXT_AS_FIRST_DIRECTIVE_STDIO_H
689NEXT_STDIO_H
2196f55f
YQ
690NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
691NEXT_STDDEF_H
692GL_GENERATE_STDDEF_H_FALSE
693GL_GENERATE_STDDEF_H_TRUE
694STDDEF_H
695HAVE_WCHAR_T
696REPLACE_NULL
697HAVE__BOOL
698GL_GENERATE_STDBOOL_H_FALSE
699GL_GENERATE_STDBOOL_H_TRUE
700STDBOOL_H
6a29c58e
YQ
701REPLACE_VSPRINTF
702REPLACE_VSNPRINTF
703REPLACE_VPRINTF
704REPLACE_VFPRINTF
705REPLACE_VDPRINTF
706REPLACE_VASPRINTF
707REPLACE_TMPFILE
708REPLACE_STDIO_WRITE_FUNCS
709REPLACE_STDIO_READ_FUNCS
710REPLACE_SPRINTF
711REPLACE_SNPRINTF
712REPLACE_RENAMEAT
713REPLACE_RENAME
714REPLACE_REMOVE
715REPLACE_PRINTF
716REPLACE_POPEN
717REPLACE_PERROR
718REPLACE_OBSTACK_PRINTF
719REPLACE_GETLINE
720REPLACE_GETDELIM
721REPLACE_FTELLO
722REPLACE_FTELL
723REPLACE_FSEEKO
724REPLACE_FSEEK
725REPLACE_FREOPEN
726REPLACE_FPURGE
727REPLACE_FPRINTF
728REPLACE_FOPEN
729REPLACE_FFLUSH
730REPLACE_FDOPEN
731REPLACE_FCLOSE
732REPLACE_DPRINTF
733HAVE_VDPRINTF
734HAVE_VASPRINTF
735HAVE_RENAMEAT
736HAVE_POPEN
737HAVE_PCLOSE
738HAVE_FTELLO
739HAVE_FSEEKO
740HAVE_DPRINTF
741HAVE_DECL_VSNPRINTF
742HAVE_DECL_SNPRINTF
743HAVE_DECL_OBSTACK_PRINTF
744HAVE_DECL_GETLINE
745HAVE_DECL_GETDELIM
746HAVE_DECL_FTELLO
747HAVE_DECL_FSEEKO
748HAVE_DECL_FPURGE
749GNULIB_VSPRINTF_POSIX
750GNULIB_VSNPRINTF
751GNULIB_VPRINTF_POSIX
752GNULIB_VPRINTF
753GNULIB_VFPRINTF_POSIX
754GNULIB_VFPRINTF
755GNULIB_VDPRINTF
756GNULIB_VSCANF
757GNULIB_VFSCANF
758GNULIB_VASPRINTF
759GNULIB_TMPFILE
760GNULIB_STDIO_H_SIGPIPE
761GNULIB_STDIO_H_NONBLOCKING
762GNULIB_SPRINTF_POSIX
763GNULIB_SNPRINTF
764GNULIB_SCANF
765GNULIB_RENAMEAT
766GNULIB_RENAME
767GNULIB_REMOVE
768GNULIB_PUTS
769GNULIB_PUTCHAR
770GNULIB_PUTC
771GNULIB_PRINTF_POSIX
772GNULIB_PRINTF
773GNULIB_POPEN
774GNULIB_PERROR
775GNULIB_PCLOSE
776GNULIB_OBSTACK_PRINTF_POSIX
777GNULIB_OBSTACK_PRINTF
778GNULIB_GETLINE
779GNULIB_GETDELIM
780GNULIB_GETCHAR
781GNULIB_GETC
782GNULIB_FWRITE
783GNULIB_FTELLO
784GNULIB_FTELL
785GNULIB_FSEEKO
786GNULIB_FSEEK
787GNULIB_FSCANF
788GNULIB_FREOPEN
789GNULIB_FREAD
790GNULIB_FPUTS
791GNULIB_FPUTC
792GNULIB_FPURGE
793GNULIB_FPRINTF_POSIX
794GNULIB_FPRINTF
795GNULIB_FOPEN
796GNULIB_FGETS
797GNULIB_FGETC
798GNULIB_FFLUSH
799GNULIB_FDOPEN
800GNULIB_FCLOSE
801GNULIB_DPRINTF
c971b7fa
PA
802UNDEFINE_STRTOK_R
803REPLACE_STRTOK_R
804REPLACE_STRSIGNAL
805REPLACE_STRNLEN
806REPLACE_STRNDUP
807REPLACE_STRNCAT
808REPLACE_STRERROR_R
809REPLACE_STRERROR
810REPLACE_STRCHRNUL
811REPLACE_STRCASESTR
812REPLACE_STRSTR
813REPLACE_STRDUP
814REPLACE_STPNCPY
815REPLACE_MEMMEM
816REPLACE_MEMCHR
817HAVE_STRVERSCMP
818HAVE_DECL_STRSIGNAL
819HAVE_DECL_STRERROR_R
820HAVE_DECL_STRTOK_R
821HAVE_STRCASESTR
822HAVE_STRSEP
823HAVE_STRPBRK
824HAVE_DECL_STRNLEN
825HAVE_DECL_STRNDUP
826HAVE_DECL_STRDUP
827HAVE_STRCHRNUL
828HAVE_STPNCPY
829HAVE_STPCPY
830HAVE_RAWMEMCHR
831HAVE_DECL_MEMRCHR
832HAVE_MEMPCPY
833HAVE_DECL_MEMMEM
834HAVE_MEMCHR
835HAVE_FFSLL
836HAVE_FFSL
837HAVE_MBSLEN
838GNULIB_STRVERSCMP
839GNULIB_STRSIGNAL
840GNULIB_STRERROR_R
841GNULIB_STRERROR
842GNULIB_MBSTOK_R
843GNULIB_MBSSEP
844GNULIB_MBSSPN
845GNULIB_MBSPBRK
846GNULIB_MBSCSPN
847GNULIB_MBSCASESTR
848GNULIB_MBSPCASECMP
849GNULIB_MBSNCASECMP
850GNULIB_MBSCASECMP
851GNULIB_MBSSTR
852GNULIB_MBSRCHR
853GNULIB_MBSCHR
854GNULIB_MBSNLEN
855GNULIB_MBSLEN
856GNULIB_STRTOK_R
857GNULIB_STRCASESTR
858GNULIB_STRSTR
859GNULIB_STRSEP
860GNULIB_STRPBRK
861GNULIB_STRNLEN
862GNULIB_STRNDUP
863GNULIB_STRNCAT
864GNULIB_STRDUP
865GNULIB_STRCHRNUL
866GNULIB_STPNCPY
867GNULIB_STPCPY
868GNULIB_RAWMEMCHR
869GNULIB_MEMRCHR
870GNULIB_MEMPCPY
871GNULIB_MEMMEM
872GNULIB_MEMCHR
873GNULIB_FFSLL
874GNULIB_FFSL
8690e634
JK
875LOCALE_FR
876LOCALE_FR_UTF8
877LOCALE_ZH_CN
878LOCALE_JA
879REPLACE_WCSWIDTH
880REPLACE_WCWIDTH
881REPLACE_WCSNRTOMBS
882REPLACE_WCSRTOMBS
883REPLACE_WCRTOMB
884REPLACE_MBSNRTOWCS
885REPLACE_MBSRTOWCS
886REPLACE_MBRLEN
887REPLACE_MBRTOWC
888REPLACE_MBSINIT
889REPLACE_WCTOB
890REPLACE_BTOWC
891REPLACE_MBSTATE_T
892HAVE_DECL_WCWIDTH
893HAVE_DECL_WCTOB
894HAVE_WCSWIDTH
895HAVE_WCSTOK
896HAVE_WCSSTR
897HAVE_WCSPBRK
898HAVE_WCSSPN
899HAVE_WCSCSPN
900HAVE_WCSRCHR
901HAVE_WCSCHR
902HAVE_WCSDUP
903HAVE_WCSXFRM
904HAVE_WCSCOLL
905HAVE_WCSNCASECMP
906HAVE_WCSCASECMP
907HAVE_WCSNCMP
908HAVE_WCSCMP
909HAVE_WCSNCAT
910HAVE_WCSCAT
911HAVE_WCPNCPY
912HAVE_WCSNCPY
913HAVE_WCPCPY
914HAVE_WCSCPY
915HAVE_WCSNLEN
916HAVE_WCSLEN
917HAVE_WMEMSET
918HAVE_WMEMMOVE
919HAVE_WMEMCPY
920HAVE_WMEMCMP
921HAVE_WMEMCHR
922HAVE_WCSNRTOMBS
923HAVE_WCSRTOMBS
924HAVE_WCRTOMB
925HAVE_MBSNRTOWCS
926HAVE_MBSRTOWCS
927HAVE_MBRLEN
928HAVE_MBRTOWC
929HAVE_MBSINIT
930HAVE_BTOWC
931GNULIB_WCSWIDTH
932GNULIB_WCSTOK
933GNULIB_WCSSTR
934GNULIB_WCSPBRK
935GNULIB_WCSSPN
936GNULIB_WCSCSPN
937GNULIB_WCSRCHR
938GNULIB_WCSCHR
939GNULIB_WCSDUP
940GNULIB_WCSXFRM
941GNULIB_WCSCOLL
942GNULIB_WCSNCASECMP
943GNULIB_WCSCASECMP
944GNULIB_WCSNCMP
945GNULIB_WCSCMP
946GNULIB_WCSNCAT
947GNULIB_WCSCAT
948GNULIB_WCPNCPY
949GNULIB_WCSNCPY
950GNULIB_WCPCPY
951GNULIB_WCSCPY
952GNULIB_WCSNLEN
953GNULIB_WCSLEN
954GNULIB_WMEMSET
955GNULIB_WMEMMOVE
956GNULIB_WMEMCPY
957GNULIB_WMEMCMP
958GNULIB_WMEMCHR
959GNULIB_WCWIDTH
960GNULIB_WCSNRTOMBS
961GNULIB_WCSRTOMBS
962GNULIB_WCRTOMB
963GNULIB_MBSNRTOWCS
964GNULIB_MBSRTOWCS
965GNULIB_MBRLEN
966GNULIB_MBRTOWC
967GNULIB_MBSINIT
968GNULIB_WCTOB
969GNULIB_BTOWC
88b48903
WN
970NEXT_AS_FIRST_DIRECTIVE_MATH_H
971NEXT_MATH_H
f45c62c4
YQ
972REPLACE_UTIMENSAT
973REPLACE_STAT
974REPLACE_MKNOD
975REPLACE_MKFIFO
976REPLACE_MKDIR
977REPLACE_LSTAT
978REPLACE_FUTIMENS
979REPLACE_FSTATAT
980REPLACE_FSTAT
981HAVE_UTIMENSAT
982HAVE_MKNODAT
983HAVE_MKNOD
984HAVE_MKFIFOAT
985HAVE_MKFIFO
986HAVE_MKDIRAT
987HAVE_LSTAT
988HAVE_LCHMOD
989HAVE_FUTIMENS
990HAVE_FSTATAT
991HAVE_FCHMODAT
992GNULIB_UTIMENSAT
993GNULIB_STAT
994GNULIB_MKNODAT
995GNULIB_MKNOD
996GNULIB_MKFIFOAT
997GNULIB_MKFIFO
998GNULIB_MKDIRAT
999GNULIB_LSTAT
1000GNULIB_LCHMOD
1001GNULIB_FUTIMENS
1002GNULIB_FSTATAT
1003GNULIB_FSTAT
1004GNULIB_FCHMODAT
8690e634
JK
1005LOCALCHARSET_TESTS_ENVIRONMENT
1006GLIBC21
c971b7fa
PA
1007NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
1008NEXT_INTTYPES_H
1009UINT64_MAX_EQ_ULONG_MAX
1010UINT32_MAX_LT_UINTMAX_MAX
1011PRIPTR_PREFIX
1012PRI_MACROS_BROKEN
1013INT64_MAX_EQ_LONG_MAX
1014INT32_MAX_LT_INTMAX_MAX
1015REPLACE_STRTOIMAX
1016HAVE_DECL_STRTOUMAX
1017HAVE_DECL_STRTOIMAX
1018HAVE_DECL_IMAXDIV
1019HAVE_DECL_IMAXABS
1020GNULIB_STRTOUMAX
1021GNULIB_STRTOIMAX
1022GNULIB_IMAXDIV
1023GNULIB_IMAXABS
1024GL_GENERATE_STDINT_H_FALSE
1025GL_GENERATE_STDINT_H_TRUE
1026STDINT_H
1027WINT_T_SUFFIX
1028WCHAR_T_SUFFIX
1029SIG_ATOMIC_T_SUFFIX
1030SIZE_T_SUFFIX
1031PTRDIFF_T_SUFFIX
1032HAVE_SIGNED_WINT_T
1033HAVE_SIGNED_WCHAR_T
1034HAVE_SIGNED_SIG_ATOMIC_T
1035BITSIZEOF_WINT_T
1036BITSIZEOF_WCHAR_T
1037BITSIZEOF_SIG_ATOMIC_T
1038BITSIZEOF_SIZE_T
1039BITSIZEOF_PTRDIFF_T
1040APPLE_UNIVERSAL_BUILD
1041HAVE_SYS_BITYPES_H
1042HAVE_SYS_INTTYPES_H
1043HAVE_STDINT_H
1044NEXT_AS_FIRST_DIRECTIVE_STDINT_H
1045NEXT_STDINT_H
c971b7fa
PA
1046HAVE_SYS_TYPES_H
1047HAVE_INTTYPES_H
1048HAVE_WCHAR_H
1049HAVE_UNSIGNED_LONG_LONG_INT
1050HAVE_LONG_LONG_INT
88b48903
WN
1051FREXPL_LIBM
1052HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
1053FREXP_LIBM
1054REPLACE_TRUNCL
1055REPLACE_TRUNCF
1056REPLACE_TRUNC
1057REPLACE_SQRTL
1058REPLACE_SIGNBIT_USING_GCC
1059REPLACE_SIGNBIT
1060REPLACE_ROUNDL
1061REPLACE_ROUNDF
1062REPLACE_ROUND
1063REPLACE_REMAINDERL
1064REPLACE_REMAINDERF
1065REPLACE_REMAINDER
1066REPLACE_NAN
1067REPLACE_MODFL
1068REPLACE_MODFF
1069REPLACE_MODF
1070REPLACE_LOGBL
1071REPLACE_LOGBF
1072REPLACE_LOGB
1073REPLACE_LOG2L
1074REPLACE_LOG2F
1075REPLACE_LOG2
1076REPLACE_LOG1PL
1077REPLACE_LOG1PF
1078REPLACE_LOG1P
1079REPLACE_LOG10L
1080REPLACE_LOG10F
1081REPLACE_LOG10
1082REPLACE_LOGL
1083REPLACE_LOGF
1084REPLACE_LOG
1085REPLACE_LDEXPL
1086REPLACE_ISNAN
1087REPLACE_ISINF
1088REPLACE_ISFINITE
1089REPLACE_ILOGBF
1090REPLACE_ILOGB
1091REPLACE_HYPOTL
1092REPLACE_HYPOTF
1093REPLACE_HYPOT
1094REPLACE_HUGE_VAL
1095REPLACE_FREXPL
1096REPLACE_FREXP
1097REPLACE_FREXPF
1098REPLACE_FMODL
1099REPLACE_FMODF
1100REPLACE_FMOD
1101REPLACE_FMAL
1102REPLACE_FMAF
1103REPLACE_FMA
1104REPLACE_FLOORL
1105REPLACE_FLOORF
1106REPLACE_FLOOR
1107REPLACE_FABSL
1108REPLACE_EXP2L
1109REPLACE_EXP2
1110REPLACE_EXPM1F
1111REPLACE_EXPM1
1112REPLACE_CEILL
1113REPLACE_CEILF
1114REPLACE_CEIL
1115REPLACE_CBRTL
1116REPLACE_CBRTF
1117HAVE_DECL_TRUNCL
1118HAVE_DECL_TRUNCF
1119HAVE_DECL_TRUNC
1120HAVE_DECL_TANL
1121HAVE_DECL_SQRTL
1122HAVE_DECL_SINL
1123HAVE_DECL_ROUNDL
1124HAVE_DECL_ROUNDF
1125HAVE_DECL_ROUND
1126HAVE_DECL_RINTF
1127HAVE_DECL_REMAINDERL
1128HAVE_DECL_REMAINDER
1129HAVE_DECL_LOGB
1130HAVE_DECL_LOG2L
1131HAVE_DECL_LOG2F
1132HAVE_DECL_LOG2
1133HAVE_DECL_LOG10L
1134HAVE_DECL_LOGL
1135HAVE_DECL_LDEXPL
1136HAVE_DECL_FREXPL
1137HAVE_DECL_FLOORL
1138HAVE_DECL_FLOORF
1139HAVE_DECL_EXPM1L
1140HAVE_DECL_EXP2L
1141HAVE_DECL_EXP2F
1142HAVE_DECL_EXP2
1143HAVE_DECL_EXPL
1144HAVE_DECL_COSL
1145HAVE_DECL_COPYSIGNF
1146HAVE_DECL_CEILL
1147HAVE_DECL_CEILF
1148HAVE_DECL_CBRTL
1149HAVE_DECL_CBRTF
1150HAVE_DECL_ATANL
1151HAVE_DECL_ASINL
1152HAVE_DECL_ACOSL
1153HAVE_TANHF
1154HAVE_TANL
1155HAVE_TANF
1156HAVE_SQRTL
1157HAVE_SQRTF
1158HAVE_SINHF
1159HAVE_SINL
1160HAVE_SINF
1161HAVE_RINTL
1162HAVE_RINT
1163HAVE_REMAINDERF
1164HAVE_REMAINDER
1165HAVE_POWF
1166HAVE_MODFL
1167HAVE_MODFF
1168HAVE_LOGBL
1169HAVE_LOGBF
1170HAVE_LOG1PL
1171HAVE_LOG1PF
1172HAVE_LOG1P
1173HAVE_LOG10L
1174HAVE_LOG10F
1175HAVE_LOGL
1176HAVE_LOGF
1177HAVE_LDEXPF
1178HAVE_ISNANL
1179HAVE_ISNAND
1180HAVE_ISNANF
1181HAVE_ILOGBL
1182HAVE_ILOGBF
1183HAVE_ILOGB
1184HAVE_HYPOTL
1185HAVE_HYPOTF
1186HAVE_FREXPF
1187HAVE_FMODL
1188HAVE_FMODF
1189HAVE_FMAL
1190HAVE_FMAF
1191HAVE_FMA
1192HAVE_FABSL
1193HAVE_FABSF
1194HAVE_EXPM1F
1195HAVE_EXPM1
1196HAVE_EXPL
1197HAVE_EXPF
1198HAVE_COSHF
1199HAVE_COSL
1200HAVE_COSF
1201HAVE_COPYSIGNL
1202HAVE_COPYSIGN
1203HAVE_CBRTL
1204HAVE_CBRTF
1205HAVE_CBRT
1206HAVE_ATAN2F
1207HAVE_ATANL
1208HAVE_ATANF
1209HAVE_ASINL
1210HAVE_ASINF
1211HAVE_ACOSL
1212HAVE_ACOSF
1213GNULIB_TRUNCL
1214GNULIB_TRUNCF
1215GNULIB_TRUNC
1216GNULIB_TANHF
1217GNULIB_TANL
1218GNULIB_TANF
1219GNULIB_SQRTL
1220GNULIB_SQRTF
1221GNULIB_SINHF
1222GNULIB_SINL
1223GNULIB_SINF
1224GNULIB_SIGNBIT
1225GNULIB_ROUNDL
1226GNULIB_ROUNDF
1227GNULIB_ROUND
1228GNULIB_RINTL
1229GNULIB_RINTF
1230GNULIB_RINT
1231GNULIB_REMAINDERL
1232GNULIB_REMAINDERF
1233GNULIB_REMAINDER
1234GNULIB_POWF
1235GNULIB_MODFL
1236GNULIB_MODFF
1237GNULIB_MODF
1238GNULIB_LOGBL
1239GNULIB_LOGBF
1240GNULIB_LOGB
1241GNULIB_LOG2L
1242GNULIB_LOG2F
1243GNULIB_LOG2
1244GNULIB_LOG1PL
1245GNULIB_LOG1PF
1246GNULIB_LOG1P
1247GNULIB_LOG10L
1248GNULIB_LOG10F
1249GNULIB_LOG10
1250GNULIB_LOGL
1251GNULIB_LOGF
1252GNULIB_LOG
1253GNULIB_LDEXPL
1254GNULIB_LDEXPF
1255GNULIB_ISNANL
1256GNULIB_ISNAND
1257GNULIB_ISNANF
1258GNULIB_ISNAN
1259GNULIB_ISINF
1260GNULIB_ISFINITE
1261GNULIB_ILOGBL
1262GNULIB_ILOGBF
1263GNULIB_ILOGB
1264GNULIB_HYPOTL
1265GNULIB_HYPOTF
1266GNULIB_HYPOT
1267GNULIB_FREXPL
1268GNULIB_FREXP
1269GNULIB_FREXPF
1270GNULIB_FMODL
1271GNULIB_FMODF
1272GNULIB_FMOD
1273GNULIB_FMAL
1274GNULIB_FMAF
1275GNULIB_FMA
1276GNULIB_FLOORL
1277GNULIB_FLOORF
1278GNULIB_FLOOR
1279GNULIB_FABSL
1280GNULIB_FABSF
1281GNULIB_EXPM1L
1282GNULIB_EXPM1F
1283GNULIB_EXPM1
1284GNULIB_EXP2L
1285GNULIB_EXP2F
1286GNULIB_EXP2
1287GNULIB_EXPL
1288GNULIB_EXPF
1289GNULIB_COSHF
1290GNULIB_COSL
1291GNULIB_COSF
1292GNULIB_COPYSIGNL
1293GNULIB_COPYSIGNF
1294GNULIB_COPYSIGN
1295GNULIB_CEILL
1296GNULIB_CEILF
1297GNULIB_CEIL
1298GNULIB_CBRTL
1299GNULIB_CBRTF
1300GNULIB_CBRT
1301GNULIB_ATAN2F
1302GNULIB_ATANL
1303GNULIB_ATANF
1304GNULIB_ASINL
1305GNULIB_ASINF
1306GNULIB_ACOSL
1307GNULIB_ACOSF
8690e634
JK
1308GL_GENERATE_FNMATCH_H_FALSE
1309GL_GENERATE_FNMATCH_H_TRUE
1310FNMATCH_H
88b48903
WN
1311REPLACE_ITOLD
1312GL_GENERATE_FLOAT_H_FALSE
1313GL_GENERATE_FLOAT_H_TRUE
1314FLOAT_H
1315NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1316NEXT_FLOAT_H
18848e28
GF
1317EOVERFLOW_VALUE
1318EOVERFLOW_HIDDEN
1319ENOLINK_VALUE
1320ENOLINK_HIDDEN
1321EMULTIHOP_VALUE
1322EMULTIHOP_HIDDEN
1323GL_GENERATE_ERRNO_H_FALSE
1324GL_GENERATE_ERRNO_H_TRUE
1325ERRNO_H
1326NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1327NEXT_ERRNO_H
e26b6bb0
TT
1328HAVE_DIRENT_H
1329NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1330NEXT_DIRENT_H
88b48903
WN
1331PRAGMA_COLUMNS
1332PRAGMA_SYSTEM_HEADER
1333INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1334INCLUDE_NEXT
e26b6bb0
TT
1335REPLACE_FDOPENDIR
1336REPLACE_DIRFD
1337REPLACE_CLOSEDIR
1338REPLACE_OPENDIR
1339HAVE_ALPHASORT
1340HAVE_SCANDIR
1341HAVE_FDOPENDIR
1342HAVE_DECL_FDOPENDIR
1343HAVE_DECL_DIRFD
1344HAVE_CLOSEDIR
1345HAVE_REWINDDIR
1346HAVE_READDIR
1347HAVE_OPENDIR
1348GNULIB_ALPHASORT
1349GNULIB_SCANDIR
1350GNULIB_FDOPENDIR
1351GNULIB_DIRFD
1352GNULIB_CLOSEDIR
1353GNULIB_REWINDDIR
1354GNULIB_READDIR
1355GNULIB_OPENDIR
6a29c58e
YQ
1356pkglibexecdir
1357lispdir
e26b6bb0
TT
1358UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1359UNISTD_H_HAVE_WINSOCK2_H
1360REPLACE_WRITE
1361REPLACE_USLEEP
1362REPLACE_UNLINKAT
1363REPLACE_UNLINK
1364REPLACE_TTYNAME_R
1365REPLACE_SYMLINK
1366REPLACE_SLEEP
1367REPLACE_RMDIR
1368REPLACE_READLINK
1369REPLACE_READ
1370REPLACE_PWRITE
1371REPLACE_PREAD
1372REPLACE_LSEEK
1373REPLACE_LINKAT
1374REPLACE_LINK
1375REPLACE_LCHOWN
1376REPLACE_ISATTY
1377REPLACE_GETPAGESIZE
1378REPLACE_GETGROUPS
1379REPLACE_GETLOGIN_R
1380REPLACE_GETDOMAINNAME
1381REPLACE_GETCWD
1382REPLACE_FTRUNCATE
1383REPLACE_FCHOWNAT
1384REPLACE_DUP2
1385REPLACE_DUP
1386REPLACE_CLOSE
1387REPLACE_CHOWN
1388HAVE_SYS_PARAM_H
1389HAVE_OS_H
1390HAVE_DECL_TTYNAME_R
1391HAVE_DECL_SETHOSTNAME
1392HAVE_DECL_GETUSERSHELL
1393HAVE_DECL_GETPAGESIZE
1394HAVE_DECL_GETLOGIN_R
1395HAVE_DECL_GETDOMAINNAME
1396HAVE_DECL_FDATASYNC
1397HAVE_DECL_FCHDIR
1398HAVE_DECL_ENVIRON
1399HAVE_USLEEP
1400HAVE_UNLINKAT
1401HAVE_SYMLINKAT
1402HAVE_SYMLINK
1403HAVE_SLEEP
1404HAVE_SETHOSTNAME
1405HAVE_READLINKAT
1406HAVE_READLINK
1407HAVE_PWRITE
1408HAVE_PREAD
1409HAVE_PIPE2
1410HAVE_PIPE
1411HAVE_LINKAT
1412HAVE_LINK
1413HAVE_LCHOWN
1414HAVE_GROUP_MEMBER
1415HAVE_GETPAGESIZE
1416HAVE_GETLOGIN
1417HAVE_GETHOSTNAME
1418HAVE_GETGROUPS
1419HAVE_GETDTABLESIZE
1420HAVE_FTRUNCATE
1421HAVE_FSYNC
1422HAVE_FDATASYNC
1423HAVE_FCHOWNAT
1424HAVE_FCHDIR
1425HAVE_FACCESSAT
1426HAVE_EUIDACCESS
1427HAVE_DUP3
1428HAVE_DUP2
1429HAVE_CHOWN
1430GNULIB_WRITE
1431GNULIB_USLEEP
1432GNULIB_UNLINKAT
1433GNULIB_UNLINK
1434GNULIB_UNISTD_H_SIGPIPE
1435GNULIB_UNISTD_H_NONBLOCKING
1436GNULIB_TTYNAME_R
1437GNULIB_SYMLINKAT
1438GNULIB_SYMLINK
1439GNULIB_SLEEP
1440GNULIB_SETHOSTNAME
1441GNULIB_RMDIR
1442GNULIB_READLINKAT
1443GNULIB_READLINK
1444GNULIB_READ
1445GNULIB_PWRITE
1446GNULIB_PREAD
1447GNULIB_PIPE2
1448GNULIB_PIPE
1449GNULIB_LSEEK
1450GNULIB_LINKAT
1451GNULIB_LINK
1452GNULIB_LCHOWN
1453GNULIB_ISATTY
1454GNULIB_GROUP_MEMBER
1455GNULIB_GETUSERSHELL
1456GNULIB_GETPAGESIZE
1457GNULIB_GETLOGIN_R
1458GNULIB_GETLOGIN
1459GNULIB_GETHOSTNAME
1460GNULIB_GETGROUPS
1461GNULIB_GETDTABLESIZE
1462GNULIB_GETDOMAINNAME
1463GNULIB_GETCWD
1464GNULIB_FTRUNCATE
1465GNULIB_FSYNC
1466GNULIB_FDATASYNC
1467GNULIB_FCHOWNAT
1468GNULIB_FCHDIR
1469GNULIB_FACCESSAT
1470GNULIB_EUIDACCESS
1471GNULIB_ENVIRON
1472GNULIB_DUP3
1473GNULIB_DUP2
1474GNULIB_DUP
1475GNULIB_CLOSE
1476GNULIB_CHOWN
1477GNULIB_CHDIR
98399780
YQ
1478REPLACE_WCTOMB
1479REPLACE_UNSETENV
1480REPLACE_STRTOD
1481REPLACE_SETENV
1482REPLACE_REALPATH
1483REPLACE_REALLOC
1484REPLACE_RANDOM_R
1485REPLACE_PUTENV
1486REPLACE_PTSNAME_R
1487REPLACE_PTSNAME
1488REPLACE_MKSTEMP
1489REPLACE_MBTOWC
1490REPLACE_MALLOC
1491REPLACE_CANONICALIZE_FILE_NAME
1492REPLACE_CALLOC
1493HAVE_DECL_UNSETENV
1494HAVE_UNLOCKPT
1495HAVE_SYS_LOADAVG_H
1496HAVE_STRUCT_RANDOM_DATA
1497HAVE_STRTOULL
1498HAVE_STRTOLL
1499HAVE_STRTOD
1500HAVE_DECL_SETENV
1501HAVE_SETENV
1502HAVE_RPMATCH
1503HAVE_REALPATH
1504HAVE_RANDOM_R
1505HAVE_RANDOM_H
1506HAVE_RANDOM
1507HAVE_PTSNAME_R
1508HAVE_PTSNAME
1509HAVE_POSIX_OPENPT
1510HAVE_MKSTEMPS
1511HAVE_MKSTEMP
1512HAVE_MKOSTEMPS
1513HAVE_MKOSTEMP
1514HAVE_MKDTEMP
1515HAVE_GRANTPT
1516HAVE_GETSUBOPT
1517HAVE_DECL_GETLOADAVG
1518HAVE_CANONICALIZE_FILE_NAME
1519HAVE_ATOLL
1520HAVE__EXIT
1521GNULIB_WCTOMB
1522GNULIB_UNSETENV
1523GNULIB_UNLOCKPT
1524GNULIB_SYSTEM_POSIX
1525GNULIB_STRTOULL
1526GNULIB_STRTOLL
1527GNULIB_STRTOD
1528GNULIB_SETENV
1529GNULIB_RPMATCH
1530GNULIB_REALPATH
1531GNULIB_REALLOC_POSIX
1532GNULIB_RANDOM_R
1533GNULIB_RANDOM
1534GNULIB_PUTENV
1535GNULIB_PTSNAME_R
1536GNULIB_PTSNAME
1537GNULIB_POSIX_OPENPT
1538GNULIB_MKSTEMPS
1539GNULIB_MKSTEMP
1540GNULIB_MKOSTEMPS
1541GNULIB_MKOSTEMP
1542GNULIB_MKDTEMP
1543GNULIB_MBTOWC
1544GNULIB_MALLOC_POSIX
1545GNULIB_GRANTPT
1546GNULIB_GETSUBOPT
1547GNULIB_GETLOADAVG
1548GNULIB_CANONICALIZE_FILE_NAME
1549GNULIB_CALLOC_POSIX
1550GNULIB_ATOLL
1551GNULIB__EXIT
8690e634
JK
1552GL_GENERATE_ALLOCA_H_FALSE
1553GL_GENERATE_ALLOCA_H_TRUE
1554ALLOCA_H
1555ALLOCA
c971b7fa
PA
1556GL_COND_LIBTOOL_FALSE
1557GL_COND_LIBTOOL_TRUE
1558target_os
1559target_vendor
1560target_cpu
1561target
1562RANLIB
1563ARFLAGS
1564AR
1565EGREP
1566GREP
1567CPP
1568host_os
1569host_vendor
1570host_cpu
1571host
1572build_os
1573build_vendor
1574build_cpu
1575build
1576OBJEXT
1577EXEEXT
1578ac_ct_CC
1579CPPFLAGS
1580LDFLAGS
1581CFLAGS
1582CC
1583MAINT
1584MAINTAINER_MODE_FALSE
1585MAINTAINER_MODE_TRUE
1586target_alias
1587host_alias
1588build_alias
1589LIBS
1590ECHO_T
1591ECHO_N
1592ECHO_C
1593DEFS
1594mandir
1595localedir
1596libdir
1597psdir
1598pdfdir
1599dvidir
1600htmldir
1601infodir
1602docdir
1603oldincludedir
1604includedir
1605localstatedir
1606sharedstatedir
1607sysconfdir
1608datadir
1609datarootdir
1610libexecdir
1611sbindir
1612bindir
1613program_transform_name
1614prefix
1615exec_prefix
1616PACKAGE_URL
1617PACKAGE_BUGREPORT
1618PACKAGE_STRING
1619PACKAGE_VERSION
1620PACKAGE_TARNAME
1621PACKAGE_NAME
1622PATH_SEPARATOR
1623SHELL'
1624ac_subst_files=''
1625ac_user_opts='
1626enable_option_checking
1627enable_maintainer_mode
2196f55f 1628enable_largefile
c971b7fa
PA
1629enable_dependency_tracking
1630'
1631 ac_precious_vars='build_alias
1632host_alias
1633target_alias
1634CC
1635CFLAGS
1636LDFLAGS
1637LIBS
1638CPPFLAGS
1639CPP'
1640
1641
1642# Initialize some variables set by options.
1643ac_init_help=
1644ac_init_version=false
1645ac_unrecognized_opts=
1646ac_unrecognized_sep=
1647# The variables have the same names as the options, with
1648# dashes changed to underlines.
1649cache_file=/dev/null
1650exec_prefix=NONE
1651no_create=
1652no_recursion=
1653prefix=NONE
1654program_prefix=NONE
1655program_suffix=NONE
1656program_transform_name=s,x,x,
1657silent=
1658site=
1659srcdir=
1660verbose=
1661x_includes=NONE
1662x_libraries=NONE
1663
1664# Installation directory options.
1665# These are left unexpanded so users can "make install exec_prefix=/foo"
1666# and all the variables that are supposed to be based on exec_prefix
1667# by default will actually change.
1668# Use braces instead of parens because sh, perl, etc. also accept them.
1669# (The list follows the same order as the GNU Coding Standards.)
1670bindir='${exec_prefix}/bin'
1671sbindir='${exec_prefix}/sbin'
1672libexecdir='${exec_prefix}/libexec'
1673datarootdir='${prefix}/share'
1674datadir='${datarootdir}'
1675sysconfdir='${prefix}/etc'
1676sharedstatedir='${prefix}/com'
1677localstatedir='${prefix}/var'
1678includedir='${prefix}/include'
1679oldincludedir='/usr/include'
1680docdir='${datarootdir}/doc/${PACKAGE}'
1681infodir='${datarootdir}/info'
1682htmldir='${docdir}'
1683dvidir='${docdir}'
1684pdfdir='${docdir}'
1685psdir='${docdir}'
1686libdir='${exec_prefix}/lib'
1687localedir='${datarootdir}/locale'
1688mandir='${datarootdir}/man'
1689
1690ac_prev=
1691ac_dashdash=
1692for ac_option
1693do
1694 # If the previous option needs an argument, assign it.
1695 if test -n "$ac_prev"; then
1696 eval $ac_prev=\$ac_option
1697 ac_prev=
1698 continue
1699 fi
1700
1701 case $ac_option in
1702 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1703 *) ac_optarg=yes ;;
1704 esac
1705
1706 # Accept the important Cygnus configure options, so we can diagnose typos.
1707
1708 case $ac_dashdash$ac_option in
1709 --)
1710 ac_dashdash=yes ;;
1711
1712 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1713 ac_prev=bindir ;;
1714 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1715 bindir=$ac_optarg ;;
1716
1717 -build | --build | --buil | --bui | --bu)
1718 ac_prev=build_alias ;;
1719 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1720 build_alias=$ac_optarg ;;
1721
1722 -cache-file | --cache-file | --cache-fil | --cache-fi \
1723 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1724 ac_prev=cache_file ;;
1725 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1726 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1727 cache_file=$ac_optarg ;;
1728
1729 --config-cache | -C)
1730 cache_file=config.cache ;;
1731
1732 -datadir | --datadir | --datadi | --datad)
1733 ac_prev=datadir ;;
1734 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1735 datadir=$ac_optarg ;;
1736
1737 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1738 | --dataroo | --dataro | --datar)
1739 ac_prev=datarootdir ;;
1740 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1741 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1742 datarootdir=$ac_optarg ;;
1743
1744 -disable-* | --disable-*)
1745 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1746 # Reject names that are not valid shell variable names.
1747 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1748 as_fn_error "invalid feature name: $ac_useropt"
1749 ac_useropt_orig=$ac_useropt
1750 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1751 case $ac_user_opts in
1752 *"
1753"enable_$ac_useropt"
1754"*) ;;
1755 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1756 ac_unrecognized_sep=', ';;
1757 esac
1758 eval enable_$ac_useropt=no ;;
1759
1760 -docdir | --docdir | --docdi | --doc | --do)
1761 ac_prev=docdir ;;
1762 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1763 docdir=$ac_optarg ;;
1764
1765 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1766 ac_prev=dvidir ;;
1767 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1768 dvidir=$ac_optarg ;;
1769
1770 -enable-* | --enable-*)
1771 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1772 # Reject names that are not valid shell variable names.
1773 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1774 as_fn_error "invalid feature name: $ac_useropt"
1775 ac_useropt_orig=$ac_useropt
1776 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1777 case $ac_user_opts in
1778 *"
1779"enable_$ac_useropt"
1780"*) ;;
1781 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1782 ac_unrecognized_sep=', ';;
1783 esac
1784 eval enable_$ac_useropt=\$ac_optarg ;;
1785
1786 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1787 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1788 | --exec | --exe | --ex)
1789 ac_prev=exec_prefix ;;
1790 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1791 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1792 | --exec=* | --exe=* | --ex=*)
1793 exec_prefix=$ac_optarg ;;
1794
1795 -gas | --gas | --ga | --g)
1796 # Obsolete; use --with-gas.
1797 with_gas=yes ;;
1798
1799 -help | --help | --hel | --he | -h)
1800 ac_init_help=long ;;
1801 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1802 ac_init_help=recursive ;;
1803 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1804 ac_init_help=short ;;
1805
1806 -host | --host | --hos | --ho)
1807 ac_prev=host_alias ;;
1808 -host=* | --host=* | --hos=* | --ho=*)
1809 host_alias=$ac_optarg ;;
1810
1811 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1812 ac_prev=htmldir ;;
1813 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1814 | --ht=*)
1815 htmldir=$ac_optarg ;;
1816
1817 -includedir | --includedir | --includedi | --included | --include \
1818 | --includ | --inclu | --incl | --inc)
1819 ac_prev=includedir ;;
1820 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1821 | --includ=* | --inclu=* | --incl=* | --inc=*)
1822 includedir=$ac_optarg ;;
1823
1824 -infodir | --infodir | --infodi | --infod | --info | --inf)
1825 ac_prev=infodir ;;
1826 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1827 infodir=$ac_optarg ;;
1828
1829 -libdir | --libdir | --libdi | --libd)
1830 ac_prev=libdir ;;
1831 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1832 libdir=$ac_optarg ;;
1833
1834 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1835 | --libexe | --libex | --libe)
1836 ac_prev=libexecdir ;;
1837 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1838 | --libexe=* | --libex=* | --libe=*)
1839 libexecdir=$ac_optarg ;;
1840
1841 -localedir | --localedir | --localedi | --localed | --locale)
1842 ac_prev=localedir ;;
1843 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1844 localedir=$ac_optarg ;;
1845
1846 -localstatedir | --localstatedir | --localstatedi | --localstated \
1847 | --localstate | --localstat | --localsta | --localst | --locals)
1848 ac_prev=localstatedir ;;
1849 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1850 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1851 localstatedir=$ac_optarg ;;
1852
1853 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1854 ac_prev=mandir ;;
1855 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1856 mandir=$ac_optarg ;;
1857
1858 -nfp | --nfp | --nf)
1859 # Obsolete; use --without-fp.
1860 with_fp=no ;;
1861
1862 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1863 | --no-cr | --no-c | -n)
1864 no_create=yes ;;
1865
1866 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1867 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1868 no_recursion=yes ;;
1869
1870 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1871 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1872 | --oldin | --oldi | --old | --ol | --o)
1873 ac_prev=oldincludedir ;;
1874 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1875 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1876 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1877 oldincludedir=$ac_optarg ;;
1878
1879 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1880 ac_prev=prefix ;;
1881 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1882 prefix=$ac_optarg ;;
1883
1884 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1885 | --program-pre | --program-pr | --program-p)
1886 ac_prev=program_prefix ;;
1887 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1888 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1889 program_prefix=$ac_optarg ;;
1890
1891 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1892 | --program-suf | --program-su | --program-s)
1893 ac_prev=program_suffix ;;
1894 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1895 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1896 program_suffix=$ac_optarg ;;
1897
1898 -program-transform-name | --program-transform-name \
1899 | --program-transform-nam | --program-transform-na \
1900 | --program-transform-n | --program-transform- \
1901 | --program-transform | --program-transfor \
1902 | --program-transfo | --program-transf \
1903 | --program-trans | --program-tran \
1904 | --progr-tra | --program-tr | --program-t)
1905 ac_prev=program_transform_name ;;
1906 -program-transform-name=* | --program-transform-name=* \
1907 | --program-transform-nam=* | --program-transform-na=* \
1908 | --program-transform-n=* | --program-transform-=* \
1909 | --program-transform=* | --program-transfor=* \
1910 | --program-transfo=* | --program-transf=* \
1911 | --program-trans=* | --program-tran=* \
1912 | --progr-tra=* | --program-tr=* | --program-t=*)
1913 program_transform_name=$ac_optarg ;;
1914
1915 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1916 ac_prev=pdfdir ;;
1917 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1918 pdfdir=$ac_optarg ;;
1919
1920 -psdir | --psdir | --psdi | --psd | --ps)
1921 ac_prev=psdir ;;
1922 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1923 psdir=$ac_optarg ;;
1924
1925 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1926 | -silent | --silent | --silen | --sile | --sil)
1927 silent=yes ;;
1928
1929 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1930 ac_prev=sbindir ;;
1931 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1932 | --sbi=* | --sb=*)
1933 sbindir=$ac_optarg ;;
1934
1935 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1936 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1937 | --sharedst | --shareds | --shared | --share | --shar \
1938 | --sha | --sh)
1939 ac_prev=sharedstatedir ;;
1940 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1941 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1942 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1943 | --sha=* | --sh=*)
1944 sharedstatedir=$ac_optarg ;;
1945
1946 -site | --site | --sit)
1947 ac_prev=site ;;
1948 -site=* | --site=* | --sit=*)
1949 site=$ac_optarg ;;
1950
1951 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1952 ac_prev=srcdir ;;
1953 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1954 srcdir=$ac_optarg ;;
1955
1956 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1957 | --syscon | --sysco | --sysc | --sys | --sy)
1958 ac_prev=sysconfdir ;;
1959 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1960 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1961 sysconfdir=$ac_optarg ;;
1962
1963 -target | --target | --targe | --targ | --tar | --ta | --t)
1964 ac_prev=target_alias ;;
1965 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1966 target_alias=$ac_optarg ;;
1967
1968 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1969 verbose=yes ;;
1970
1971 -version | --version | --versio | --versi | --vers | -V)
1972 ac_init_version=: ;;
1973
1974 -with-* | --with-*)
1975 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1976 # Reject names that are not valid shell variable names.
1977 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1978 as_fn_error "invalid package name: $ac_useropt"
1979 ac_useropt_orig=$ac_useropt
1980 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1981 case $ac_user_opts in
1982 *"
1983"with_$ac_useropt"
1984"*) ;;
1985 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1986 ac_unrecognized_sep=', ';;
1987 esac
1988 eval with_$ac_useropt=\$ac_optarg ;;
1989
1990 -without-* | --without-*)
1991 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1992 # Reject names that are not valid shell variable names.
1993 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1994 as_fn_error "invalid package name: $ac_useropt"
1995 ac_useropt_orig=$ac_useropt
1996 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1997 case $ac_user_opts in
1998 *"
1999"with_$ac_useropt"
2000"*) ;;
2001 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
2002 ac_unrecognized_sep=', ';;
2003 esac
2004 eval with_$ac_useropt=no ;;
2005
2006 --x)
2007 # Obsolete; use --with-x.
2008 with_x=yes ;;
2009
2010 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
2011 | --x-incl | --x-inc | --x-in | --x-i)
2012 ac_prev=x_includes ;;
2013 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
2014 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
2015 x_includes=$ac_optarg ;;
2016
2017 -x-libraries | --x-libraries | --x-librarie | --x-librari \
2018 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
2019 ac_prev=x_libraries ;;
2020 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
2021 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
2022 x_libraries=$ac_optarg ;;
2023
2024 -*) as_fn_error "unrecognized option: \`$ac_option'
2025Try \`$0 --help' for more information."
2026 ;;
2027
2028 *=*)
2029 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
2030 # Reject names that are not valid shell variable names.
2031 case $ac_envvar in #(
2032 '' | [0-9]* | *[!_$as_cr_alnum]* )
2033 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
2034 esac
2035 eval $ac_envvar=\$ac_optarg
2036 export $ac_envvar ;;
2037
2038 *)
2039 # FIXME: should be removed in autoconf 3.0.
2040 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2041 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
2042 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2043 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
2044 ;;
2045
2046 esac
2047done
2048
2049if test -n "$ac_prev"; then
2050 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
2051 as_fn_error "missing argument to $ac_option"
2052fi
2053
2054if test -n "$ac_unrecognized_opts"; then
2055 case $enable_option_checking in
2056 no) ;;
2057 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
2058 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2059 esac
2060fi
2061
2062# Check all directory arguments for consistency.
2063for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
2064 datadir sysconfdir sharedstatedir localstatedir includedir \
2065 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2066 libdir localedir mandir
2067do
2068 eval ac_val=\$$ac_var
2069 # Remove trailing slashes.
2070 case $ac_val in
2071 */ )
2072 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2073 eval $ac_var=\$ac_val;;
2074 esac
2075 # Be sure to have absolute directory names.
2076 case $ac_val in
2077 [\\/$]* | ?:[\\/]* ) continue;;
2078 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2079 esac
2080 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
2081done
2082
2083# There might be people who depend on the old broken behavior: `$host'
2084# used to hold the argument of --host etc.
2085# FIXME: To remove some day.
2086build=$build_alias
2087host=$host_alias
2088target=$target_alias
2089
2090# FIXME: To remove some day.
2091if test "x$host_alias" != x; then
2092 if test "x$build_alias" = x; then
2093 cross_compiling=maybe
2094 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
2095 If a cross compiler is detected then cross compile mode will be used." >&2
2096 elif test "x$build_alias" != "x$host_alias"; then
2097 cross_compiling=yes
2098 fi
2099fi
2100
2101ac_tool_prefix=
2102test -n "$host_alias" && ac_tool_prefix=$host_alias-
2103
2104test "$silent" = yes && exec 6>/dev/null
2105
2106
2107ac_pwd=`pwd` && test -n "$ac_pwd" &&
2108ac_ls_di=`ls -di .` &&
2109ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2110 as_fn_error "working directory cannot be determined"
2111test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2112 as_fn_error "pwd does not report name of working directory"
2113
2114
2115# Find the source files, if location was not specified.
2116if test -z "$srcdir"; then
2117 ac_srcdir_defaulted=yes
2118 # Try the directory containing this script, then the parent directory.
2119 ac_confdir=`$as_dirname -- "$as_myself" ||
2120$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2121 X"$as_myself" : 'X\(//\)[^/]' \| \
2122 X"$as_myself" : 'X\(//\)$' \| \
2123 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2124$as_echo X"$as_myself" |
2125 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2126 s//\1/
2127 q
2128 }
2129 /^X\(\/\/\)[^/].*/{
2130 s//\1/
2131 q
2132 }
2133 /^X\(\/\/\)$/{
2134 s//\1/
2135 q
2136 }
2137 /^X\(\/\).*/{
2138 s//\1/
2139 q
2140 }
2141 s/.*/./; q'`
2142 srcdir=$ac_confdir
2143 if test ! -r "$srcdir/$ac_unique_file"; then
2144 srcdir=..
2145 fi
2146else
2147 ac_srcdir_defaulted=no
2148fi
2149if test ! -r "$srcdir/$ac_unique_file"; then
2150 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2151 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
2152fi
2153ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2154ac_abs_confdir=`(
2155 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
2156 pwd)`
2157# When building in place, set srcdir=.
2158if test "$ac_abs_confdir" = "$ac_pwd"; then
2159 srcdir=.
2160fi
2161# Remove unnecessary trailing slashes from srcdir.
2162# Double slashes in file names in object file debugging info
2163# mess up M-x gdb in Emacs.
2164case $srcdir in
2165*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2166esac
2167for ac_var in $ac_precious_vars; do
2168 eval ac_env_${ac_var}_set=\${${ac_var}+set}
2169 eval ac_env_${ac_var}_value=\$${ac_var}
2170 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2171 eval ac_cv_env_${ac_var}_value=\$${ac_var}
2172done
2173
2174#
2175# Report the --help message.
2176#
2177if test "$ac_init_help" = "long"; then
2178 # Omit some internal or obsolete options to make the list less imposing.
2179 # This message is too long to be a string in the A/UX 3.1 sh.
2180 cat <<_ACEOF
2181\`configure' configures this package to adapt to many kinds of systems.
2182
2183Usage: $0 [OPTION]... [VAR=VALUE]...
2184
2185To assign environment variables (e.g., CC, CFLAGS...), specify them as
2186VAR=VALUE. See below for descriptions of some of the useful variables.
2187
2188Defaults for the options are specified in brackets.
2189
2190Configuration:
2191 -h, --help display this help and exit
2192 --help=short display options specific to this package
2193 --help=recursive display the short help of all the included packages
2194 -V, --version display version information and exit
2195 -q, --quiet, --silent do not print \`checking...' messages
2196 --cache-file=FILE cache test results in FILE [disabled]
2197 -C, --config-cache alias for \`--cache-file=config.cache'
2198 -n, --no-create do not create output files
2199 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2200
2201Installation directories:
2202 --prefix=PREFIX install architecture-independent files in PREFIX
2203 [$ac_default_prefix]
2204 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2205 [PREFIX]
2206
2207By default, \`make install' will install all the files in
2208\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2209an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2210for instance \`--prefix=\$HOME'.
2211
2212For better control, use the options below.
2213
2214Fine tuning of the installation directories:
2215 --bindir=DIR user executables [EPREFIX/bin]
2216 --sbindir=DIR system admin executables [EPREFIX/sbin]
2217 --libexecdir=DIR program executables [EPREFIX/libexec]
2218 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2219 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2220 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2221 --libdir=DIR object code libraries [EPREFIX/lib]
2222 --includedir=DIR C header files [PREFIX/include]
2223 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2224 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2225 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2226 --infodir=DIR info documentation [DATAROOTDIR/info]
2227 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2228 --mandir=DIR man documentation [DATAROOTDIR/man]
2229 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
2230 --htmldir=DIR html documentation [DOCDIR]
2231 --dvidir=DIR dvi documentation [DOCDIR]
2232 --pdfdir=DIR pdf documentation [DOCDIR]
2233 --psdir=DIR ps documentation [DOCDIR]
2234_ACEOF
2235
2236 cat <<\_ACEOF
2237
2238Program names:
2239 --program-prefix=PREFIX prepend PREFIX to installed program names
2240 --program-suffix=SUFFIX append SUFFIX to installed program names
2241 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2242
2243System types:
2244 --build=BUILD configure for building on BUILD [guessed]
2245 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2246 --target=TARGET configure for building compilers for TARGET [HOST]
2247_ACEOF
2248fi
2249
2250if test -n "$ac_init_help"; then
2251
2252 cat <<\_ACEOF
2253
2254Optional Features:
2255 --disable-option-checking ignore unrecognized --enable/--with options
2256 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2257 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2258 --enable-maintainer-mode enable make rules and dependencies not useful
2259 (and sometimes confusing) to the casual installer
2196f55f 2260 --disable-largefile omit support for large files
c971b7fa
PA
2261 --disable-dependency-tracking speeds up one-time build
2262 --enable-dependency-tracking do not reject slow dependency extractors
2263
2264Some influential environment variables:
2265 CC C compiler command
2266 CFLAGS C compiler flags
2267 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2268 nonstandard directory <lib dir>
2269 LIBS libraries to pass to the linker, e.g. -l<library>
2270 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
2271 you have headers in a nonstandard directory <include dir>
2272 CPP C preprocessor
2273
2274Use these variables to override the choices made by `configure' or to help
2275it to find libraries and programs with nonstandard names/locations.
2276
2277Report bugs to the package provider.
2278_ACEOF
2279ac_status=$?
2280fi
2281
2282if test "$ac_init_help" = "recursive"; then
2283 # If there are subdirs, report their specific --help.
2284 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2285 test -d "$ac_dir" ||
2286 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2287 continue
2288 ac_builddir=.
2289
2290case "$ac_dir" in
2291.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2292*)
2293 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2294 # A ".." for each directory in $ac_dir_suffix.
2295 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2296 case $ac_top_builddir_sub in
2297 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2298 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2299 esac ;;
2300esac
2301ac_abs_top_builddir=$ac_pwd
2302ac_abs_builddir=$ac_pwd$ac_dir_suffix
2303# for backward compatibility:
2304ac_top_builddir=$ac_top_build_prefix
2305
2306case $srcdir in
2307 .) # We are building in place.
2308 ac_srcdir=.
2309 ac_top_srcdir=$ac_top_builddir_sub
2310 ac_abs_top_srcdir=$ac_pwd ;;
2311 [\\/]* | ?:[\\/]* ) # Absolute name.
2312 ac_srcdir=$srcdir$ac_dir_suffix;
2313 ac_top_srcdir=$srcdir
2314 ac_abs_top_srcdir=$srcdir ;;
2315 *) # Relative name.
2316 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2317 ac_top_srcdir=$ac_top_build_prefix$srcdir
2318 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2319esac
2320ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2321
2322 cd "$ac_dir" || { ac_status=$?; continue; }
2323 # Check for guested configure.
2324 if test -f "$ac_srcdir/configure.gnu"; then
2325 echo &&
2326 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2327 elif test -f "$ac_srcdir/configure"; then
2328 echo &&
2329 $SHELL "$ac_srcdir/configure" --help=recursive
2330 else
2331 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2332 fi || ac_status=$?
2333 cd "$ac_pwd" || { ac_status=$?; break; }
2334 done
2335fi
2336
2337test -n "$ac_init_help" && exit $ac_status
2338if $ac_init_version; then
2339 cat <<\_ACEOF
2340configure
2341generated by GNU Autoconf 2.64
2342
2343Copyright (C) 2009 Free Software Foundation, Inc.
2344This configure script is free software; the Free Software Foundation
2345gives unlimited permission to copy, distribute and modify it.
2346_ACEOF
2347 exit
2348fi
2349
2350## ------------------------ ##
2351## Autoconf initialization. ##
2352## ------------------------ ##
2353
2354# ac_fn_c_try_compile LINENO
2355# --------------------------
2356# Try to compile conftest.$ac_ext, and return whether this succeeded.
2357ac_fn_c_try_compile ()
2358{
2359 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2360 rm -f conftest.$ac_objext
2361 if { { ac_try="$ac_compile"
2362case "(($ac_try" in
2363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2364 *) ac_try_echo=$ac_try;;
2365esac
2366eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2367$as_echo "$ac_try_echo"; } >&5
2368 (eval "$ac_compile") 2>conftest.err
2369 ac_status=$?
2370 if test -s conftest.err; then
2371 grep -v '^ *+' conftest.err >conftest.er1
2372 cat conftest.er1 >&5
2373 mv -f conftest.er1 conftest.err
2374 fi
2375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2376 test $ac_status = 0; } && {
2377 test -z "$ac_c_werror_flag" ||
2378 test ! -s conftest.err
2379 } && test -s conftest.$ac_objext; then :
2380 ac_retval=0
2381else
2382 $as_echo "$as_me: failed program was:" >&5
2383sed 's/^/| /' conftest.$ac_ext >&5
2384
2385 ac_retval=1
2386fi
2387 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2388 return $ac_retval
2389
2390} # ac_fn_c_try_compile
2391
2392# ac_fn_c_try_cpp LINENO
2393# ----------------------
2394# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2395ac_fn_c_try_cpp ()
2396{
2397 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2398 if { { ac_try="$ac_cpp conftest.$ac_ext"
2399case "(($ac_try" in
2400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2401 *) ac_try_echo=$ac_try;;
2402esac
2403eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2404$as_echo "$ac_try_echo"; } >&5
2405 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2406 ac_status=$?
2407 if test -s conftest.err; then
2408 grep -v '^ *+' conftest.err >conftest.er1
2409 cat conftest.er1 >&5
2410 mv -f conftest.er1 conftest.err
2411 fi
2412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2413 test $ac_status = 0; } >/dev/null && {
2414 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2415 test ! -s conftest.err
2416 }; then :
2417 ac_retval=0
2418else
2419 $as_echo "$as_me: failed program was:" >&5
2420sed 's/^/| /' conftest.$ac_ext >&5
2421
2422 ac_retval=1
2423fi
2424 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2425 return $ac_retval
2426
2427} # ac_fn_c_try_cpp
2428
2429# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2430# -------------------------------------------------------
2431# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2432# the include files in INCLUDES and setting the cache variable VAR
2433# accordingly.
2434ac_fn_c_check_header_mongrel ()
2435{
2436 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2437 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2439$as_echo_n "checking for $2... " >&6; }
2440if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2441 $as_echo_n "(cached) " >&6
2442fi
2443eval ac_res=\$$3
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2445$as_echo "$ac_res" >&6; }
2446else
2447 # Is the header compilable?
2448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2449$as_echo_n "checking $2 usability... " >&6; }
2450cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2451/* end confdefs.h. */
2452$4
2453#include <$2>
2454_ACEOF
2455if ac_fn_c_try_compile "$LINENO"; then :
2456 ac_header_compiler=yes
2457else
2458 ac_header_compiler=no
2459fi
2460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2462$as_echo "$ac_header_compiler" >&6; }
2463
2464# Is the header present?
2465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2466$as_echo_n "checking $2 presence... " >&6; }
2467cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2468/* end confdefs.h. */
2469#include <$2>
2470_ACEOF
2471if ac_fn_c_try_cpp "$LINENO"; then :
2472 ac_header_preproc=yes
2473else
2474 ac_header_preproc=no
2475fi
2476rm -f conftest.err conftest.$ac_ext
2477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2478$as_echo "$ac_header_preproc" >&6; }
2479
2480# So? What about this header?
2481case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2482 yes:no: )
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2484$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2486$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2487 ;;
2488 no:yes:* )
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2490$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2492$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2494$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2496$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2498$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2499 ;;
2500esac
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2502$as_echo_n "checking for $2... " >&6; }
2503if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2504 $as_echo_n "(cached) " >&6
2505else
2506 eval "$3=\$ac_header_compiler"
2507fi
2508eval ac_res=\$$3
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2510$as_echo "$ac_res" >&6; }
2511fi
2512 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2513
2514} # ac_fn_c_check_header_mongrel
2515
2516# ac_fn_c_try_run LINENO
2517# ----------------------
2518# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2519# that executables *can* be run.
2520ac_fn_c_try_run ()
2521{
2522 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2523 if { { ac_try="$ac_link"
2524case "(($ac_try" in
2525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2526 *) ac_try_echo=$ac_try;;
2527esac
2528eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2529$as_echo "$ac_try_echo"; } >&5
2530 (eval "$ac_link") 2>&5
2531 ac_status=$?
2532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2533 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2534 { { case "(($ac_try" in
2535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2536 *) ac_try_echo=$ac_try;;
2537esac
2538eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2539$as_echo "$ac_try_echo"; } >&5
2540 (eval "$ac_try") 2>&5
2541 ac_status=$?
2542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2543 test $ac_status = 0; }; }; then :
2544 ac_retval=0
2545else
2546 $as_echo "$as_me: program exited with status $ac_status" >&5
2547 $as_echo "$as_me: failed program was:" >&5
2548sed 's/^/| /' conftest.$ac_ext >&5
2549
2550 ac_retval=$ac_status
2551fi
2552 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2553 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2554 return $ac_retval
2555
2556} # ac_fn_c_try_run
2557
2558# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2559# -------------------------------------------------------
2560# Tests whether HEADER exists and can be compiled using the include files in
2561# INCLUDES, setting the cache variable VAR accordingly.
2562ac_fn_c_check_header_compile ()
2563{
2564 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2566$as_echo_n "checking for $2... " >&6; }
2567if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2568 $as_echo_n "(cached) " >&6
2569else
2570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2571/* end confdefs.h. */
2572$4
2573#include <$2>
2574_ACEOF
2575if ac_fn_c_try_compile "$LINENO"; then :
2576 eval "$3=yes"
2577else
2578 eval "$3=no"
2579fi
2580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2581fi
2582eval ac_res=\$$3
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2584$as_echo "$ac_res" >&6; }
2585 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2586
2587} # ac_fn_c_check_header_compile
2588
2589# ac_fn_c_try_link LINENO
2590# -----------------------
2591# Try to link conftest.$ac_ext, and return whether this succeeded.
2592ac_fn_c_try_link ()
2593{
2594 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2595 rm -f conftest.$ac_objext conftest$ac_exeext
2596 if { { ac_try="$ac_link"
2597case "(($ac_try" in
2598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2599 *) ac_try_echo=$ac_try;;
2600esac
2601eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2602$as_echo "$ac_try_echo"; } >&5
2603 (eval "$ac_link") 2>conftest.err
2604 ac_status=$?
2605 if test -s conftest.err; then
2606 grep -v '^ *+' conftest.err >conftest.er1
2607 cat conftest.er1 >&5
2608 mv -f conftest.er1 conftest.err
2609 fi
2610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2611 test $ac_status = 0; } && {
2612 test -z "$ac_c_werror_flag" ||
2613 test ! -s conftest.err
2614 } && test -s conftest$ac_exeext && {
2615 test "$cross_compiling" = yes ||
2616 $as_test_x conftest$ac_exeext
2617 }; then :
2618 ac_retval=0
2619else
2620 $as_echo "$as_me: failed program was:" >&5
2621sed 's/^/| /' conftest.$ac_ext >&5
2622
2623 ac_retval=1
2624fi
2625 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2626 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2627 # interfere with the next link command; also delete a directory that is
2628 # left behind by Apple's compiler. We do this before executing the actions.
2629 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2630 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2631 return $ac_retval
2632
2633} # ac_fn_c_try_link
2634
8690e634
JK
2635# ac_fn_c_check_func LINENO FUNC VAR
2636# ----------------------------------
2637# Tests whether FUNC exists, setting the cache variable VAR accordingly
2638ac_fn_c_check_func ()
2639{
2640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2642$as_echo_n "checking for $2... " >&6; }
2643if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2644 $as_echo_n "(cached) " >&6
2645else
2646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2647/* end confdefs.h. */
2648/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2649 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2650#define $2 innocuous_$2
2651
2652/* System header to define __stub macros and hopefully few prototypes,
2653 which can conflict with char $2 (); below.
2654 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2655 <limits.h> exists even on freestanding compilers. */
2656
2657#ifdef __STDC__
2658# include <limits.h>
2659#else
2660# include <assert.h>
2661#endif
2662
2663#undef $2
2664
2665/* Override any GCC internal prototype to avoid an error.
2666 Use char because int might match the return type of a GCC
2667 builtin and then its argument prototype would still apply. */
2668#ifdef __cplusplus
2669extern "C"
2670#endif
2671char $2 ();
2672/* The GNU C library defines this for functions which it implements
2673 to always fail with ENOSYS. Some functions are actually named
2674 something starting with __ and the normal name is an alias. */
2675#if defined __stub_$2 || defined __stub___$2
2676choke me
2677#endif
2678
2679int
2680main ()
2681{
2682return $2 ();
2683 ;
2684 return 0;
2685}
2686_ACEOF
2687if ac_fn_c_try_link "$LINENO"; then :
2688 eval "$3=yes"
2689else
2690 eval "$3=no"
2691fi
2692rm -f core conftest.err conftest.$ac_objext \
2693 conftest$ac_exeext conftest.$ac_ext
2694fi
2695eval ac_res=\$$3
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2697$as_echo "$ac_res" >&6; }
2698 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2699
2700} # ac_fn_c_check_func
2701
8986e351
TT
2702# ac_fn_c_check_decl LINENO SYMBOL VAR
2703# ------------------------------------
2704# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2705ac_fn_c_check_decl ()
2706{
2707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2709$as_echo_n "checking whether $2 is declared... " >&6; }
2710if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2711 $as_echo_n "(cached) " >&6
2712else
2713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2714/* end confdefs.h. */
2715$4
2716int
2717main ()
2718{
2719#ifndef $2
2720 (void) $2;
2721#endif
2722
2723 ;
2724 return 0;
2725}
2726_ACEOF
2727if ac_fn_c_try_compile "$LINENO"; then :
2728 eval "$3=yes"
2729else
2730 eval "$3=no"
2731fi
2732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2733fi
2734eval ac_res=\$$3
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2736$as_echo "$ac_res" >&6; }
2737 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2738
2739} # ac_fn_c_check_decl
2740
c971b7fa
PA
2741# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2742# --------------------------------------------
2743# Tries to find the compile-time value of EXPR in a program that includes
2744# INCLUDES, setting VAR accordingly. Returns whether the value could be
2745# computed
2746ac_fn_c_compute_int ()
2747{
2748 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2749 if test "$cross_compiling" = yes; then
2750 # Depending upon the size, compute the lo and hi bounds.
2751cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2752/* end confdefs.h. */
2753$4
2754int
2755main ()
2756{
2757static int test_array [1 - 2 * !(($2) >= 0)];
2758test_array [0] = 0
2759
2760 ;
2761 return 0;
2762}
2763_ACEOF
2764if ac_fn_c_try_compile "$LINENO"; then :
2765 ac_lo=0 ac_mid=0
2766 while :; do
2767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2768/* end confdefs.h. */
2769$4
2770int
2771main ()
2772{
2773static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2774test_array [0] = 0
2775
2776 ;
2777 return 0;
2778}
2779_ACEOF
2780if ac_fn_c_try_compile "$LINENO"; then :
2781 ac_hi=$ac_mid; break
2782else
2783 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2784 if test $ac_lo -le $ac_mid; then
2785 ac_lo= ac_hi=
2786 break
2787 fi
2788 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2789fi
2790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2791 done
2792else
2793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2794/* end confdefs.h. */
2795$4
2796int
2797main ()
2798{
2799static int test_array [1 - 2 * !(($2) < 0)];
2800test_array [0] = 0
2801
2802 ;
2803 return 0;
2804}
2805_ACEOF
2806if ac_fn_c_try_compile "$LINENO"; then :
2807 ac_hi=-1 ac_mid=-1
2808 while :; do
2809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2810/* end confdefs.h. */
2811$4
2812int
2813main ()
2814{
2815static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2816test_array [0] = 0
2817
2818 ;
2819 return 0;
2820}
2821_ACEOF
2822if ac_fn_c_try_compile "$LINENO"; then :
2823 ac_lo=$ac_mid; break
2824else
2825 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2826 if test $ac_mid -le $ac_hi; then
2827 ac_lo= ac_hi=
2828 break
2829 fi
2830 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2831fi
2832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2833 done
2834else
2835 ac_lo= ac_hi=
2836fi
2837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2838fi
2839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2840# Binary search between lo and hi bounds.
2841while test "x$ac_lo" != "x$ac_hi"; do
2842 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2844/* end confdefs.h. */
2845$4
2846int
2847main ()
2848{
2849static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2850test_array [0] = 0
2851
2852 ;
2853 return 0;
2854}
2855_ACEOF
2856if ac_fn_c_try_compile "$LINENO"; then :
2857 ac_hi=$ac_mid
2858else
2859 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2860fi
2861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2862done
2863case $ac_lo in #((
2864?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2865'') ac_retval=1 ;;
2866esac
2867 else
2868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2869/* end confdefs.h. */
2870$4
2871static long int longval () { return $2; }
2872static unsigned long int ulongval () { return $2; }
2873#include <stdio.h>
2874#include <stdlib.h>
2875int
2876main ()
2877{
2878
2879 FILE *f = fopen ("conftest.val", "w");
2880 if (! f)
2881 return 1;
2882 if (($2) < 0)
2883 {
2884 long int i = longval ();
2885 if (i != ($2))
2886 return 1;
2887 fprintf (f, "%ld", i);
2888 }
2889 else
2890 {
2891 unsigned long int i = ulongval ();
2892 if (i != ($2))
2893 return 1;
2894 fprintf (f, "%lu", i);
2895 }
2896 /* Do not output a trailing newline, as this causes \r\n confusion
2897 on some platforms. */
2898 return ferror (f) || fclose (f) != 0;
2899
2900 ;
2901 return 0;
2902}
2903_ACEOF
2904if ac_fn_c_try_run "$LINENO"; then :
2905 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2906else
2907 ac_retval=1
2908fi
2909rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2910 conftest.$ac_objext conftest.beam conftest.$ac_ext
2911rm -f conftest.val
2912
2913 fi
2914 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2915 return $ac_retval
2916
2917} # ac_fn_c_compute_int
2918
8690e634
JK
2919# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2920# -------------------------------------------
2921# Tests whether TYPE exists after having included INCLUDES, setting cache
2922# variable VAR accordingly.
2923ac_fn_c_check_type ()
c971b7fa
PA
2924{
2925 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2927$as_echo_n "checking for $2... " >&6; }
2928if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2929 $as_echo_n "(cached) " >&6
2930else
8690e634 2931 eval "$3=no"
c971b7fa
PA
2932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2933/* end confdefs.h. */
8690e634 2934$4
c971b7fa
PA
2935int
2936main ()
2937{
8690e634
JK
2938if (sizeof ($2))
2939 return 0;
c971b7fa
PA
2940 ;
2941 return 0;
2942}
2943_ACEOF
8690e634 2944if ac_fn_c_try_compile "$LINENO"; then :
c971b7fa
PA
2945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2946/* end confdefs.h. */
2947$4
2948int
2949main ()
2950{
8690e634
JK
2951if (sizeof (($2)))
2952 return 0;
c971b7fa
PA
2953 ;
2954 return 0;
2955}
2956_ACEOF
2957if ac_fn_c_try_compile "$LINENO"; then :
8690e634 2958
c971b7fa 2959else
8690e634
JK
2960 eval "$3=yes"
2961fi
2962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c971b7fa
PA
2963fi
2964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2965fi
2966eval ac_res=\$$3
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2968$as_echo "$ac_res" >&6; }
2969 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2970
8690e634 2971} # ac_fn_c_check_type
c971b7fa
PA
2972cat >config.log <<_ACEOF
2973This file contains any messages produced by compilers while
2974running configure, to aid debugging if configure makes a mistake.
2975
2976It was created by $as_me, which was
2977generated by GNU Autoconf 2.64. Invocation command line was
2978
2979 $ $0 $@
2980
2981_ACEOF
2982exec 5>>config.log
2983{
2984cat <<_ASUNAME
2985## --------- ##
2986## Platform. ##
2987## --------- ##
2988
2989hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2990uname -m = `(uname -m) 2>/dev/null || echo unknown`
2991uname -r = `(uname -r) 2>/dev/null || echo unknown`
2992uname -s = `(uname -s) 2>/dev/null || echo unknown`
2993uname -v = `(uname -v) 2>/dev/null || echo unknown`
2994
2995/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2996/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2997
2998/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2999/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3000/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3001/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3002/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3003/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3004/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3005
3006_ASUNAME
3007
3008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3009for as_dir in $PATH
3010do
3011 IFS=$as_save_IFS
3012 test -z "$as_dir" && as_dir=.
3013 $as_echo "PATH: $as_dir"
3014 done
3015IFS=$as_save_IFS
3016
3017} >&5
3018
3019cat >&5 <<_ACEOF
3020
3021
3022## ----------- ##
3023## Core tests. ##
3024## ----------- ##
3025
3026_ACEOF
3027
3028
3029# Keep a trace of the command line.
3030# Strip out --no-create and --no-recursion so they do not pile up.
3031# Strip out --silent because we don't want to record it for future runs.
3032# Also quote any args containing shell meta-characters.
3033# Make two passes to allow for proper duplicate-argument suppression.
3034ac_configure_args=
3035ac_configure_args0=
3036ac_configure_args1=
3037ac_must_keep_next=false
3038for ac_pass in 1 2
3039do
3040 for ac_arg
3041 do
3042 case $ac_arg in
3043 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3044 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3045 | -silent | --silent | --silen | --sile | --sil)
3046 continue ;;
3047 *\'*)
3048 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3049 esac
3050 case $ac_pass in
3051 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3052 2)
3053 as_fn_append ac_configure_args1 " '$ac_arg'"
3054 if test $ac_must_keep_next = true; then
3055 ac_must_keep_next=false # Got value, back to normal.
3056 else
3057 case $ac_arg in
3058 *=* | --config-cache | -C | -disable-* | --disable-* \
3059 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3060 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3061 | -with-* | --with-* | -without-* | --without-* | --x)
3062 case "$ac_configure_args0 " in
3063 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3064 esac
3065 ;;
3066 -* ) ac_must_keep_next=true ;;
3067 esac
3068 fi
3069 as_fn_append ac_configure_args " '$ac_arg'"
3070 ;;
3071 esac
3072 done
3073done
3074{ ac_configure_args0=; unset ac_configure_args0;}
3075{ ac_configure_args1=; unset ac_configure_args1;}
3076
3077# When interrupted or exit'd, cleanup temporary files, and complete
3078# config.log. We remove comments because anyway the quotes in there
3079# would cause problems or look ugly.
3080# WARNING: Use '\'' to represent an apostrophe within the trap.
3081# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3082trap 'exit_status=$?
3083 # Save into config.log some information that might help in debugging.
3084 {
3085 echo
3086
3087 cat <<\_ASBOX
3088## ---------------- ##
3089## Cache variables. ##
3090## ---------------- ##
3091_ASBOX
3092 echo
3093 # The following way of writing the cache mishandles newlines in values,
3094(
3095 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3096 eval ac_val=\$$ac_var
3097 case $ac_val in #(
3098 *${as_nl}*)
3099 case $ac_var in #(
3100 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3101$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3102 esac
3103 case $ac_var in #(
3104 _ | IFS | as_nl) ;; #(
3105 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3106 *) { eval $ac_var=; unset $ac_var;} ;;
3107 esac ;;
3108 esac
3109 done
3110 (set) 2>&1 |
3111 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3112 *${as_nl}ac_space=\ *)
3113 sed -n \
3114 "s/'\''/'\''\\\\'\'''\''/g;
3115 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3116 ;; #(
3117 *)
3118 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3119 ;;
3120 esac |
3121 sort
3122)
3123 echo
3124
3125 cat <<\_ASBOX
3126## ----------------- ##
3127## Output variables. ##
3128## ----------------- ##
3129_ASBOX
3130 echo
3131 for ac_var in $ac_subst_vars
3132 do
3133 eval ac_val=\$$ac_var
3134 case $ac_val in
3135 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3136 esac
3137 $as_echo "$ac_var='\''$ac_val'\''"
3138 done | sort
3139 echo
3140
3141 if test -n "$ac_subst_files"; then
3142 cat <<\_ASBOX
3143## ------------------- ##
3144## File substitutions. ##
3145## ------------------- ##
3146_ASBOX
3147 echo
3148 for ac_var in $ac_subst_files
3149 do
3150 eval ac_val=\$$ac_var
3151 case $ac_val in
3152 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3153 esac
3154 $as_echo "$ac_var='\''$ac_val'\''"
3155 done | sort
3156 echo
3157 fi
3158
3159 if test -s confdefs.h; then
3160 cat <<\_ASBOX
3161## ----------- ##
3162## confdefs.h. ##
3163## ----------- ##
3164_ASBOX
3165 echo
3166 cat confdefs.h
3167 echo
3168 fi
3169 test "$ac_signal" != 0 &&
3170 $as_echo "$as_me: caught signal $ac_signal"
3171 $as_echo "$as_me: exit $exit_status"
3172 } >&5
3173 rm -f core *.core core.conftest.* &&
3174 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3175 exit $exit_status
3176' 0
3177for ac_signal in 1 2 13 15; do
3178 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3179done
3180ac_signal=0
3181
3182# confdefs.h avoids OS command line length limits that DEFS can exceed.
3183rm -f -r conftest* confdefs.h
3184
3185$as_echo "/* confdefs.h */" > confdefs.h
3186
3187# Predefined preprocessor variables.
3188
3189cat >>confdefs.h <<_ACEOF
3190#define PACKAGE_NAME "$PACKAGE_NAME"
3191_ACEOF
3192
3193cat >>confdefs.h <<_ACEOF
3194#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3195_ACEOF
3196
3197cat >>confdefs.h <<_ACEOF
3198#define PACKAGE_VERSION "$PACKAGE_VERSION"
3199_ACEOF
3200
3201cat >>confdefs.h <<_ACEOF
3202#define PACKAGE_STRING "$PACKAGE_STRING"
3203_ACEOF
3204
3205cat >>confdefs.h <<_ACEOF
3206#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3207_ACEOF
3208
3209cat >>confdefs.h <<_ACEOF
3210#define PACKAGE_URL "$PACKAGE_URL"
3211_ACEOF
3212
3213
3214# Let the site file select an alternate cache file if it wants to.
3215# Prefer an explicitly selected file to automatically selected ones.
3216ac_site_file1=NONE
3217ac_site_file2=NONE
3218if test -n "$CONFIG_SITE"; then
3219 ac_site_file1=$CONFIG_SITE
3220elif test "x$prefix" != xNONE; then
3221 ac_site_file1=$prefix/share/config.site
3222 ac_site_file2=$prefix/etc/config.site
3223else
3224 ac_site_file1=$ac_default_prefix/share/config.site
3225 ac_site_file2=$ac_default_prefix/etc/config.site
3226fi
3227for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3228do
3229 test "x$ac_site_file" = xNONE && continue
3230 if test -r "$ac_site_file"; then
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3232$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3233 sed 's/^/| /' "$ac_site_file" >&5
3234 . "$ac_site_file"
3235 fi
3236done
3237
3238if test -r "$cache_file"; then
3239 # Some versions of bash will fail to source /dev/null (special
3240 # files actually), so we avoid doing that.
3241 if test -f "$cache_file"; then
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3243$as_echo "$as_me: loading cache $cache_file" >&6;}
3244 case $cache_file in
3245 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3246 *) . "./$cache_file";;
3247 esac
3248 fi
3249else
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3251$as_echo "$as_me: creating cache $cache_file" >&6;}
3252 >$cache_file
3253fi
3254
98399780
YQ
3255as_fn_append ac_func_list " canonicalize_file_name"
3256as_fn_append ac_func_list " getcwd"
3257as_fn_append ac_func_list " readlink"
3258as_fn_append ac_func_list " realpath"
3259as_fn_append ac_header_list " sys/param.h"
e26b6bb0 3260as_fn_append ac_header_list " dirent.h"
3574124b
PA
3261as_fn_append ac_func_list " btowc"
3262as_fn_append ac_func_list " isblank"
3263as_fn_append ac_func_list " iswctype"
3264as_fn_append ac_func_list " mbsrtowcs"
3265as_fn_append ac_func_list " mempcpy"
3266as_fn_append ac_func_list " wmemchr"
3267as_fn_append ac_func_list " wmemcpy"
3268as_fn_append ac_func_list " wmempcpy"
3269as_fn_append ac_header_list " wctype.h"
8690e634 3270gl_fnmatch_required=GNU
3574124b
PA
3271as_fn_append ac_func_list " alarm"
3272as_fn_append ac_header_list " wchar.h"
3273as_fn_append ac_header_list " stdint.h"
3274as_fn_append ac_header_list " inttypes.h"
3275as_fn_append ac_header_list " unistd.h"
3276as_fn_append ac_func_list " symlink"
f45c62c4 3277as_fn_append ac_func_list " lstat"
3574124b
PA
3278as_fn_append ac_header_list " math.h"
3279as_fn_append ac_func_list " mbsinit"
3280as_fn_append ac_func_list " mbrtowc"
3281as_fn_append ac_header_list " sys/mman.h"
3282as_fn_append ac_func_list " mprotect"
6a29c58e 3283as_fn_append ac_func_list " link"
09607c9e
TT
3284as_fn_append ac_header_list " sys/stat.h"
3285as_fn_append ac_header_list " sys/time.h"
3574124b
PA
3286as_fn_append ac_header_list " features.h"
3287as_fn_append ac_func_list " iswcntrl"
c971b7fa
PA
3288# Check that the precious variables saved in the cache have kept the same
3289# value.
3290ac_cache_corrupted=false
3291for ac_var in $ac_precious_vars; do
3292 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3293 eval ac_new_set=\$ac_env_${ac_var}_set
3294 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3295 eval ac_new_val=\$ac_env_${ac_var}_value
3296 case $ac_old_set,$ac_new_set in
3297 set,)
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3299$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3300 ac_cache_corrupted=: ;;
3301 ,set)
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3303$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3304 ac_cache_corrupted=: ;;
3305 ,);;
3306 *)
3307 if test "x$ac_old_val" != "x$ac_new_val"; then
3308 # differences in whitespace do not lead to failure.
3309 ac_old_val_w=`echo x $ac_old_val`
3310 ac_new_val_w=`echo x $ac_new_val`
3311 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3313$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3314 ac_cache_corrupted=:
3315 else
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3317$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3318 eval $ac_var=\$ac_old_val
3319 fi
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3321$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3323$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3324 fi;;
3325 esac
3326 # Pass precious variables to config.status.
3327 if test "$ac_new_set" = set; then
3328 case $ac_new_val in
3329 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3330 *) ac_arg=$ac_var=$ac_new_val ;;
3331 esac
3332 case " $ac_configure_args " in
3333 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3334 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3335 esac
3336 fi
3337done
3338if $ac_cache_corrupted; then
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3340$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3342$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3343 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3344fi
3345## -------------------- ##
3346## Main body of script. ##
3347## -------------------- ##
3348
3349ac_ext=c
3350ac_cpp='$CPP $CPPFLAGS'
3351ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3352ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3353ac_compiler_gnu=$ac_cv_c_compiler_gnu
3354
3355
3356ac_config_headers="$ac_config_headers config.h:config.in"
3357
3358
3359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3360$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3361 # Check whether --enable-maintainer-mode was given.
3362if test "${enable_maintainer_mode+set}" = set; then :
3363 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3364else
3365 USE_MAINTAINER_MODE=no
3366fi
3367
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3369$as_echo "$USE_MAINTAINER_MODE" >&6; }
3370 if test $USE_MAINTAINER_MODE = yes; then
3371 MAINTAINER_MODE_TRUE=
3372 MAINTAINER_MODE_FALSE='#'
3373else
3374 MAINTAINER_MODE_TRUE='#'
3375 MAINTAINER_MODE_FALSE=
3376fi
3377
3378 MAINT=$MAINTAINER_MODE_TRUE
3379
3380
3381
3382ac_ext=c
3383ac_cpp='$CPP $CPPFLAGS'
3384ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3385ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3386ac_compiler_gnu=$ac_cv_c_compiler_gnu
3387if test -n "$ac_tool_prefix"; then
3388 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3389set dummy ${ac_tool_prefix}gcc; ac_word=$2
3390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3391$as_echo_n "checking for $ac_word... " >&6; }
3392if test "${ac_cv_prog_CC+set}" = set; then :
3393 $as_echo_n "(cached) " >&6
3394else
3395 if test -n "$CC"; then
3396 ac_cv_prog_CC="$CC" # Let the user override the test.
3397else
3398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3399for as_dir in $PATH
3400do
3401 IFS=$as_save_IFS
3402 test -z "$as_dir" && as_dir=.
3403 for ac_exec_ext in '' $ac_executable_extensions; do
3404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3405 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3407 break 2
3408 fi
3409done
3410 done
3411IFS=$as_save_IFS
3412
3413fi
3414fi
3415CC=$ac_cv_prog_CC
3416if test -n "$CC"; then
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3418$as_echo "$CC" >&6; }
3419else
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3421$as_echo "no" >&6; }
3422fi
3423
3424
3425fi
3426if test -z "$ac_cv_prog_CC"; then
3427 ac_ct_CC=$CC
3428 # Extract the first word of "gcc", so it can be a program name with args.
3429set dummy gcc; ac_word=$2
3430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3431$as_echo_n "checking for $ac_word... " >&6; }
3432if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3433 $as_echo_n "(cached) " >&6
3434else
3435 if test -n "$ac_ct_CC"; then
3436 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3437else
3438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3439for as_dir in $PATH
3440do
3441 IFS=$as_save_IFS
3442 test -z "$as_dir" && as_dir=.
3443 for ac_exec_ext in '' $ac_executable_extensions; do
3444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3445 ac_cv_prog_ac_ct_CC="gcc"
3446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3447 break 2
3448 fi
3449done
3450 done
3451IFS=$as_save_IFS
3452
3453fi
3454fi
3455ac_ct_CC=$ac_cv_prog_ac_ct_CC
3456if test -n "$ac_ct_CC"; then
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3458$as_echo "$ac_ct_CC" >&6; }
3459else
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3461$as_echo "no" >&6; }
3462fi
3463
3464 if test "x$ac_ct_CC" = x; then
3465 CC=""
3466 else
3467 case $cross_compiling:$ac_tool_warned in
3468yes:)
3469{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3470$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3471ac_tool_warned=yes ;;
3472esac
3473 CC=$ac_ct_CC
3474 fi
3475else
3476 CC="$ac_cv_prog_CC"
3477fi
3478
3479if test -z "$CC"; then
3480 if test -n "$ac_tool_prefix"; then
3481 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3482set dummy ${ac_tool_prefix}cc; ac_word=$2
3483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3484$as_echo_n "checking for $ac_word... " >&6; }
3485if test "${ac_cv_prog_CC+set}" = set; then :
3486 $as_echo_n "(cached) " >&6
3487else
3488 if test -n "$CC"; then
3489 ac_cv_prog_CC="$CC" # Let the user override the test.
3490else
3491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3492for as_dir in $PATH
3493do
3494 IFS=$as_save_IFS
3495 test -z "$as_dir" && as_dir=.
3496 for ac_exec_ext in '' $ac_executable_extensions; do
3497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3498 ac_cv_prog_CC="${ac_tool_prefix}cc"
3499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3500 break 2
3501 fi
3502done
3503 done
3504IFS=$as_save_IFS
3505
3506fi
3507fi
3508CC=$ac_cv_prog_CC
3509if test -n "$CC"; then
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3511$as_echo "$CC" >&6; }
3512else
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3514$as_echo "no" >&6; }
3515fi
3516
3517
3518 fi
3519fi
3520if test -z "$CC"; then
3521 # Extract the first word of "cc", so it can be a program name with args.
3522set dummy cc; ac_word=$2
3523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3524$as_echo_n "checking for $ac_word... " >&6; }
3525if test "${ac_cv_prog_CC+set}" = set; then :
3526 $as_echo_n "(cached) " >&6
3527else
3528 if test -n "$CC"; then
3529 ac_cv_prog_CC="$CC" # Let the user override the test.
3530else
3531 ac_prog_rejected=no
3532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3533for as_dir in $PATH
3534do
3535 IFS=$as_save_IFS
3536 test -z "$as_dir" && as_dir=.
3537 for ac_exec_ext in '' $ac_executable_extensions; do
3538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3539 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3540 ac_prog_rejected=yes
3541 continue
3542 fi
3543 ac_cv_prog_CC="cc"
3544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3545 break 2
3546 fi
3547done
3548 done
3549IFS=$as_save_IFS
3550
3551if test $ac_prog_rejected = yes; then
3552 # We found a bogon in the path, so make sure we never use it.
3553 set dummy $ac_cv_prog_CC
3554 shift
3555 if test $# != 0; then
3556 # We chose a different compiler from the bogus one.
3557 # However, it has the same basename, so the bogon will be chosen
3558 # first if we set CC to just the basename; use the full file name.
3559 shift
3560 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3561 fi
3562fi
3563fi
3564fi
3565CC=$ac_cv_prog_CC
3566if test -n "$CC"; then
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3568$as_echo "$CC" >&6; }
3569else
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3571$as_echo "no" >&6; }
3572fi
3573
3574
3575fi
3576if test -z "$CC"; then
3577 if test -n "$ac_tool_prefix"; then
3578 for ac_prog in cl.exe
3579 do
3580 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3581set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3583$as_echo_n "checking for $ac_word... " >&6; }
3584if test "${ac_cv_prog_CC+set}" = set; then :
3585 $as_echo_n "(cached) " >&6
3586else
3587 if test -n "$CC"; then
3588 ac_cv_prog_CC="$CC" # Let the user override the test.
3589else
3590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3591for as_dir in $PATH
3592do
3593 IFS=$as_save_IFS
3594 test -z "$as_dir" && as_dir=.
3595 for ac_exec_ext in '' $ac_executable_extensions; do
3596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3597 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3599 break 2
3600 fi
3601done
3602 done
3603IFS=$as_save_IFS
3604
3605fi
3606fi
3607CC=$ac_cv_prog_CC
3608if test -n "$CC"; then
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3610$as_echo "$CC" >&6; }
3611else
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3613$as_echo "no" >&6; }
3614fi
3615
3616
3617 test -n "$CC" && break
3618 done
3619fi
3620if test -z "$CC"; then
3621 ac_ct_CC=$CC
3622 for ac_prog in cl.exe
3623do
3624 # Extract the first word of "$ac_prog", so it can be a program name with args.
3625set dummy $ac_prog; ac_word=$2
3626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3627$as_echo_n "checking for $ac_word... " >&6; }
3628if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3629 $as_echo_n "(cached) " >&6
3630else
3631 if test -n "$ac_ct_CC"; then
3632 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3633else
3634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3635for as_dir in $PATH
3636do
3637 IFS=$as_save_IFS
3638 test -z "$as_dir" && as_dir=.
3639 for ac_exec_ext in '' $ac_executable_extensions; do
3640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3641 ac_cv_prog_ac_ct_CC="$ac_prog"
3642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3643 break 2
3644 fi
3645done
3646 done
3647IFS=$as_save_IFS
3648
3649fi
3650fi
3651ac_ct_CC=$ac_cv_prog_ac_ct_CC
3652if test -n "$ac_ct_CC"; then
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3654$as_echo "$ac_ct_CC" >&6; }
3655else
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3657$as_echo "no" >&6; }
3658fi
3659
3660
3661 test -n "$ac_ct_CC" && break
3662done
3663
3664 if test "x$ac_ct_CC" = x; then
3665 CC=""
3666 else
3667 case $cross_compiling:$ac_tool_warned in
3668yes:)
3669{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3670$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3671ac_tool_warned=yes ;;
3672esac
3673 CC=$ac_ct_CC
3674 fi
3675fi
3676
3677fi
3678
3679
3680test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3681$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3682as_fn_error "no acceptable C compiler found in \$PATH
3683See \`config.log' for more details." "$LINENO" 5; }
3684
3685# Provide some information about the compiler.
3686$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3687set X $ac_compile
3688ac_compiler=$2
3689for ac_option in --version -v -V -qversion; do
3690 { { ac_try="$ac_compiler $ac_option >&5"
3691case "(($ac_try" in
3692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3693 *) ac_try_echo=$ac_try;;
3694esac
3695eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3696$as_echo "$ac_try_echo"; } >&5
3697 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3698 ac_status=$?
3699 if test -s conftest.err; then
3700 sed '10a\
3701... rest of stderr output deleted ...
3702 10q' conftest.err >conftest.er1
3703 cat conftest.er1 >&5
3704 rm -f conftest.er1 conftest.err
3705 fi
3706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3707 test $ac_status = 0; }
3708done
3709
3710cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3711/* end confdefs.h. */
3712#include <stdio.h>
3713int
3714main ()
3715{
3716FILE *f = fopen ("conftest.out", "w");
3717 return ferror (f) || fclose (f) != 0;
3718
3719 ;
3720 return 0;
3721}
3722_ACEOF
3723ac_clean_files_save=$ac_clean_files
3724ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3725# Try to create an executable without -o first, disregard a.out.
3726# It will help us diagnose broken compilers, and finding out an intuition
3727# of exeext.
3728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3729$as_echo_n "checking for C compiler default output file name... " >&6; }
3730ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3731
3732# The possible output files:
3733ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3734
3735ac_rmfiles=
3736for ac_file in $ac_files
3737do
3738 case $ac_file in
3739 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3740 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3741 esac
3742done
3743rm -f $ac_rmfiles
3744
3745if { { ac_try="$ac_link_default"
3746case "(($ac_try" in
3747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3748 *) ac_try_echo=$ac_try;;
3749esac
3750eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3751$as_echo "$ac_try_echo"; } >&5
3752 (eval "$ac_link_default") 2>&5
3753 ac_status=$?
3754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3755 test $ac_status = 0; }; then :
3756 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3757# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3758# in a Makefile. We should not override ac_cv_exeext if it was cached,
3759# so that the user can short-circuit this test for compilers unknown to
3760# Autoconf.
3761for ac_file in $ac_files ''
3762do
3763 test -f "$ac_file" || continue
3764 case $ac_file in
3765 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3766 ;;
3767 [ab].out )
3768 # We found the default executable, but exeext='' is most
3769 # certainly right.
3770 break;;
3771 *.* )
3772 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3773 then :; else
3774 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3775 fi
3776 # We set ac_cv_exeext here because the later test for it is not
3777 # safe: cross compilers may not add the suffix if given an `-o'
3778 # argument, so we may need to know it at that point already.
3779 # Even if this section looks crufty: it has the advantage of
3780 # actually working.
3781 break;;
3782 * )
3783 break;;
3784 esac
3785done
3786test "$ac_cv_exeext" = no && ac_cv_exeext=
3787
3788else
3789 ac_file=''
3790fi
3791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3792$as_echo "$ac_file" >&6; }
3793if test -z "$ac_file"; then :
3794 $as_echo "$as_me: failed program was:" >&5
3795sed 's/^/| /' conftest.$ac_ext >&5
3796
3797{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3798$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3799{ as_fn_set_status 77
3800as_fn_error "C compiler cannot create executables
3801See \`config.log' for more details." "$LINENO" 5; }; }
3802fi
3803ac_exeext=$ac_cv_exeext
3804
3805# Check that the compiler produces executables we can run. If not, either
3806# the compiler is broken, or we cross compile.
3807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3808$as_echo_n "checking whether the C compiler works... " >&6; }
3809# If not cross compiling, check that we can run a simple program.
3810if test "$cross_compiling" != yes; then
3811 if { ac_try='./$ac_file'
3812 { { case "(($ac_try" in
3813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3814 *) ac_try_echo=$ac_try;;
3815esac
3816eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3817$as_echo "$ac_try_echo"; } >&5
3818 (eval "$ac_try") 2>&5
3819 ac_status=$?
3820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3821 test $ac_status = 0; }; }; then
3822 cross_compiling=no
3823 else
3824 if test "$cross_compiling" = maybe; then
3825 cross_compiling=yes
3826 else
3827 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3828$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3829as_fn_error "cannot run C compiled programs.
3830If you meant to cross compile, use \`--host'.
3831See \`config.log' for more details." "$LINENO" 5; }
3832 fi
3833 fi
3834fi
3835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3836$as_echo "yes" >&6; }
3837
3838rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3839ac_clean_files=$ac_clean_files_save
3840# Check that the compiler produces executables we can run. If not, either
3841# the compiler is broken, or we cross compile.
3842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3843$as_echo_n "checking whether we are cross compiling... " >&6; }
3844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3845$as_echo "$cross_compiling" >&6; }
3846
3847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3848$as_echo_n "checking for suffix of executables... " >&6; }
3849if { { ac_try="$ac_link"
3850case "(($ac_try" in
3851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3852 *) ac_try_echo=$ac_try;;
3853esac
3854eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3855$as_echo "$ac_try_echo"; } >&5
3856 (eval "$ac_link") 2>&5
3857 ac_status=$?
3858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3859 test $ac_status = 0; }; then :
3860 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3861# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3862# work properly (i.e., refer to `conftest.exe'), while it won't with
3863# `rm'.
3864for ac_file in conftest.exe conftest conftest.*; do
3865 test -f "$ac_file" || continue
3866 case $ac_file in
3867 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3868 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3869 break;;
3870 * ) break;;
3871 esac
3872done
3873else
3874 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3875$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3876as_fn_error "cannot compute suffix of executables: cannot compile and link
3877See \`config.log' for more details." "$LINENO" 5; }
3878fi
3879rm -f conftest$ac_cv_exeext
3880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3881$as_echo "$ac_cv_exeext" >&6; }
3882
3883rm -f conftest.$ac_ext
3884EXEEXT=$ac_cv_exeext
3885ac_exeext=$EXEEXT
3886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3887$as_echo_n "checking for suffix of object files... " >&6; }
3888if test "${ac_cv_objext+set}" = set; then :
3889 $as_echo_n "(cached) " >&6
3890else
3891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3892/* end confdefs.h. */
3893
3894int
3895main ()
3896{
3897
3898 ;
3899 return 0;
3900}
3901_ACEOF
3902rm -f conftest.o conftest.obj
3903if { { ac_try="$ac_compile"
3904case "(($ac_try" in
3905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3906 *) ac_try_echo=$ac_try;;
3907esac
3908eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3909$as_echo "$ac_try_echo"; } >&5
3910 (eval "$ac_compile") 2>&5
3911 ac_status=$?
3912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3913 test $ac_status = 0; }; then :
3914 for ac_file in conftest.o conftest.obj conftest.*; do
3915 test -f "$ac_file" || continue;
3916 case $ac_file in
3917 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3918 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3919 break;;
3920 esac
3921done
3922else
3923 $as_echo "$as_me: failed program was:" >&5
3924sed 's/^/| /' conftest.$ac_ext >&5
3925
3926{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3927$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3928as_fn_error "cannot compute suffix of object files: cannot compile
3929See \`config.log' for more details." "$LINENO" 5; }
3930fi
3931rm -f conftest.$ac_cv_objext conftest.$ac_ext
3932fi
3933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3934$as_echo "$ac_cv_objext" >&6; }
3935OBJEXT=$ac_cv_objext
3936ac_objext=$OBJEXT
3937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3938$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3939if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3940 $as_echo_n "(cached) " >&6
3941else
3942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3943/* end confdefs.h. */
3944
3945int
3946main ()
3947{
3948#ifndef __GNUC__
3949 choke me
3950#endif
3951
3952 ;
3953 return 0;
3954}
3955_ACEOF
3956if ac_fn_c_try_compile "$LINENO"; then :
3957 ac_compiler_gnu=yes
3958else
3959 ac_compiler_gnu=no
3960fi
3961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3962ac_cv_c_compiler_gnu=$ac_compiler_gnu
3963
3964fi
3965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3966$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3967if test $ac_compiler_gnu = yes; then
3968 GCC=yes
3969else
3970 GCC=
3971fi
3972ac_test_CFLAGS=${CFLAGS+set}
3973ac_save_CFLAGS=$CFLAGS
3974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3975$as_echo_n "checking whether $CC accepts -g... " >&6; }
3976if test "${ac_cv_prog_cc_g+set}" = set; then :
3977 $as_echo_n "(cached) " >&6
3978else
3979 ac_save_c_werror_flag=$ac_c_werror_flag
3980 ac_c_werror_flag=yes
3981 ac_cv_prog_cc_g=no
3982 CFLAGS="-g"
3983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3984/* end confdefs.h. */
3985
3986int
3987main ()
3988{
3989
3990 ;
3991 return 0;
3992}
3993_ACEOF
3994if ac_fn_c_try_compile "$LINENO"; then :
3995 ac_cv_prog_cc_g=yes
3996else
3997 CFLAGS=""
3998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3999/* end confdefs.h. */
4000
4001int
4002main ()
4003{
4004
4005 ;
4006 return 0;
4007}
4008_ACEOF
4009if ac_fn_c_try_compile "$LINENO"; then :
4010
4011else
4012 ac_c_werror_flag=$ac_save_c_werror_flag
4013 CFLAGS="-g"
4014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4015/* end confdefs.h. */
4016
4017int
4018main ()
4019{
4020
4021 ;
4022 return 0;
4023}
4024_ACEOF
4025if ac_fn_c_try_compile "$LINENO"; then :
4026 ac_cv_prog_cc_g=yes
4027fi
4028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4029fi
4030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4031fi
4032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4033 ac_c_werror_flag=$ac_save_c_werror_flag
4034fi
4035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4036$as_echo "$ac_cv_prog_cc_g" >&6; }
4037if test "$ac_test_CFLAGS" = set; then
4038 CFLAGS=$ac_save_CFLAGS
4039elif test $ac_cv_prog_cc_g = yes; then
4040 if test "$GCC" = yes; then
4041 CFLAGS="-g -O2"
4042 else
4043 CFLAGS="-g"
4044 fi
4045else
4046 if test "$GCC" = yes; then
4047 CFLAGS="-O2"
4048 else
4049 CFLAGS=
4050 fi
4051fi
4052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4053$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4054if test "${ac_cv_prog_cc_c89+set}" = set; then :
4055 $as_echo_n "(cached) " >&6
4056else
4057 ac_cv_prog_cc_c89=no
4058ac_save_CC=$CC
4059cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4060/* end confdefs.h. */
4061#include <stdarg.h>
4062#include <stdio.h>
4063#include <sys/types.h>
4064#include <sys/stat.h>
4065/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4066struct buf { int x; };
4067FILE * (*rcsopen) (struct buf *, struct stat *, int);
4068static char *e (p, i)
4069 char **p;
4070 int i;
4071{
4072 return p[i];
4073}
4074static char *f (char * (*g) (char **, int), char **p, ...)
4075{
4076 char *s;
4077 va_list v;
4078 va_start (v,p);
4079 s = g (p, va_arg (v,int));
4080 va_end (v);
4081 return s;
4082}
4083
4084/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4085 function prototypes and stuff, but not '\xHH' hex character constants.
4086 These don't provoke an error unfortunately, instead are silently treated
4087 as 'x'. The following induces an error, until -std is added to get
4088 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4089 array size at least. It's necessary to write '\x00'==0 to get something
4090 that's true only with -std. */
4091int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4092
4093/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4094 inside strings and character constants. */
4095#define FOO(x) 'x'
4096int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4097
4098int test (int i, double x);
4099struct s1 {int (*f) (int a);};
4100struct s2 {int (*f) (double a);};
4101int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4102int argc;
4103char **argv;
4104int
4105main ()
4106{
4107return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4108 ;
4109 return 0;
4110}
4111_ACEOF
4112for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4113 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4114do
4115 CC="$ac_save_CC $ac_arg"
4116 if ac_fn_c_try_compile "$LINENO"; then :
4117 ac_cv_prog_cc_c89=$ac_arg
4118fi
4119rm -f core conftest.err conftest.$ac_objext
4120 test "x$ac_cv_prog_cc_c89" != "xno" && break
4121done
4122rm -f conftest.$ac_ext
4123CC=$ac_save_CC
4124
4125fi
4126# AC_CACHE_VAL
4127case "x$ac_cv_prog_cc_c89" in
4128 x)
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4130$as_echo "none needed" >&6; } ;;
4131 xno)
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4133$as_echo "unsupported" >&6; } ;;
4134 *)
4135 CC="$CC $ac_cv_prog_cc_c89"
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4137$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4138esac
4139if test "x$ac_cv_prog_cc_c89" != xno; then :
4140
4141fi
4142
4143ac_ext=c
4144ac_cpp='$CPP $CPPFLAGS'
4145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4147ac_compiler_gnu=$ac_cv_c_compiler_gnu
4148
4149ac_aux_dir=
4150for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4151 for ac_t in install-sh install.sh shtool; do
4152 if test -f "$ac_dir/$ac_t"; then
4153 ac_aux_dir=$ac_dir
4154 ac_install_sh="$ac_aux_dir/$ac_t -c"
4155 break 2
4156 fi
4157 done
4158done
4159if test -z "$ac_aux_dir"; then
4160 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4161fi
4162
4163# These three variables are undocumented and unsupported,
4164# and are intended to be withdrawn in a future Autoconf release.
4165# They can cause serious problems if a builder's source tree is in a directory
4166# whose full name contains unusual characters.
4167ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4168ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4169ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4170
4171
4172# Make sure we can run config.sub.
4173$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4174 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4175
4176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4177$as_echo_n "checking build system type... " >&6; }
4178if test "${ac_cv_build+set}" = set; then :
4179 $as_echo_n "(cached) " >&6
4180else
4181 ac_build_alias=$build_alias
4182test "x$ac_build_alias" = x &&
4183 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4184test "x$ac_build_alias" = x &&
4185 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4186ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4187 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4188
4189fi
4190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4191$as_echo "$ac_cv_build" >&6; }
4192case $ac_cv_build in
4193*-*-*) ;;
4194*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4195esac
4196build=$ac_cv_build
4197ac_save_IFS=$IFS; IFS='-'
4198set x $ac_cv_build
4199shift
4200build_cpu=$1
4201build_vendor=$2
4202shift; shift
4203# Remember, the first character of IFS is used to create $*,
4204# except with old shells:
4205build_os=$*
4206IFS=$ac_save_IFS
4207case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4208
4209
4210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4211$as_echo_n "checking host system type... " >&6; }
4212if test "${ac_cv_host+set}" = set; then :
4213 $as_echo_n "(cached) " >&6
4214else
4215 if test "x$host_alias" = x; then
4216 ac_cv_host=$ac_cv_build
4217else
4218 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4219 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4220fi
4221
4222fi
4223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4224$as_echo "$ac_cv_host" >&6; }
4225case $ac_cv_host in
4226*-*-*) ;;
4227*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4228esac
4229host=$ac_cv_host
4230ac_save_IFS=$IFS; IFS='-'
4231set x $ac_cv_host
4232shift
4233host_cpu=$1
4234host_vendor=$2
4235shift; shift
4236# Remember, the first character of IFS is used to create $*,
4237# except with old shells:
4238host_os=$*
4239IFS=$ac_save_IFS
4240case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4241
4242
4243
4244ac_ext=c
4245ac_cpp='$CPP $CPPFLAGS'
4246ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4247ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4248ac_compiler_gnu=$ac_cv_c_compiler_gnu
4249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4250$as_echo_n "checking how to run the C preprocessor... " >&6; }
4251# On Suns, sometimes $CPP names a directory.
4252if test -n "$CPP" && test -d "$CPP"; then
4253 CPP=
4254fi
4255if test -z "$CPP"; then
4256 if test "${ac_cv_prog_CPP+set}" = set; then :
4257 $as_echo_n "(cached) " >&6
4258else
4259 # Double quotes because CPP needs to be expanded
4260 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4261 do
4262 ac_preproc_ok=false
4263for ac_c_preproc_warn_flag in '' yes
4264do
4265 # Use a header file that comes with gcc, so configuring glibc
4266 # with a fresh cross-compiler works.
4267 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4268 # <limits.h> exists even on freestanding compilers.
4269 # On the NeXT, cc -E runs the code through the compiler's parser,
4270 # not just through cpp. "Syntax error" is here to catch this case.
4271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4272/* end confdefs.h. */
4273#ifdef __STDC__
4274# include <limits.h>
4275#else
4276# include <assert.h>
4277#endif
4278 Syntax error
4279_ACEOF
4280if ac_fn_c_try_cpp "$LINENO"; then :
4281
4282else
4283 # Broken: fails on valid input.
4284continue
4285fi
4286rm -f conftest.err conftest.$ac_ext
4287
4288 # OK, works on sane cases. Now check whether nonexistent headers
4289 # can be detected and how.
4290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4291/* end confdefs.h. */
4292#include <ac_nonexistent.h>
4293_ACEOF
4294if ac_fn_c_try_cpp "$LINENO"; then :
4295 # Broken: success on invalid input.
4296continue
4297else
4298 # Passes both tests.
4299ac_preproc_ok=:
4300break
4301fi
4302rm -f conftest.err conftest.$ac_ext
4303
4304done
4305# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4306rm -f conftest.err conftest.$ac_ext
4307if $ac_preproc_ok; then :
4308 break
4309fi
4310
4311 done
4312 ac_cv_prog_CPP=$CPP
4313
4314fi
4315 CPP=$ac_cv_prog_CPP
4316else
4317 ac_cv_prog_CPP=$CPP
4318fi
4319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4320$as_echo "$CPP" >&6; }
4321ac_preproc_ok=false
4322for ac_c_preproc_warn_flag in '' yes
4323do
4324 # Use a header file that comes with gcc, so configuring glibc
4325 # with a fresh cross-compiler works.
4326 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4327 # <limits.h> exists even on freestanding compilers.
4328 # On the NeXT, cc -E runs the code through the compiler's parser,
4329 # not just through cpp. "Syntax error" is here to catch this case.
4330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4331/* end confdefs.h. */
4332#ifdef __STDC__
4333# include <limits.h>
4334#else
4335# include <assert.h>
4336#endif
4337 Syntax error
4338_ACEOF
4339if ac_fn_c_try_cpp "$LINENO"; then :
4340
4341else
4342 # Broken: fails on valid input.
4343continue
4344fi
4345rm -f conftest.err conftest.$ac_ext
4346
4347 # OK, works on sane cases. Now check whether nonexistent headers
4348 # can be detected and how.
4349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4350/* end confdefs.h. */
4351#include <ac_nonexistent.h>
4352_ACEOF
4353if ac_fn_c_try_cpp "$LINENO"; then :
4354 # Broken: success on invalid input.
4355continue
4356else
4357 # Passes both tests.
4358ac_preproc_ok=:
4359break
4360fi
4361rm -f conftest.err conftest.$ac_ext
4362
4363done
4364# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4365rm -f conftest.err conftest.$ac_ext
4366if $ac_preproc_ok; then :
4367
4368else
4369 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4370$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4371as_fn_error "C preprocessor \"$CPP\" fails sanity check
4372See \`config.log' for more details." "$LINENO" 5; }
4373fi
4374
4375ac_ext=c
4376ac_cpp='$CPP $CPPFLAGS'
4377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4379ac_compiler_gnu=$ac_cv_c_compiler_gnu
4380
4381
4382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4383$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4384if test "${ac_cv_path_GREP+set}" = set; then :
4385 $as_echo_n "(cached) " >&6
4386else
4387 if test -z "$GREP"; then
4388 ac_path_GREP_found=false
4389 # Loop through the user's path and test for each of PROGNAME-LIST
4390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4391for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4392do
4393 IFS=$as_save_IFS
4394 test -z "$as_dir" && as_dir=.
4395 for ac_prog in grep ggrep; do
4396 for ac_exec_ext in '' $ac_executable_extensions; do
4397 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4398 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4399# Check for GNU ac_path_GREP and select it if it is found.
4400 # Check for GNU $ac_path_GREP
4401case `"$ac_path_GREP" --version 2>&1` in
4402*GNU*)
4403 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4404*)
4405 ac_count=0
4406 $as_echo_n 0123456789 >"conftest.in"
4407 while :
4408 do
4409 cat "conftest.in" "conftest.in" >"conftest.tmp"
4410 mv "conftest.tmp" "conftest.in"
4411 cp "conftest.in" "conftest.nl"
4412 $as_echo 'GREP' >> "conftest.nl"
4413 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4414 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4415 as_fn_arith $ac_count + 1 && ac_count=$as_val
4416 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4417 # Best one so far, save it but keep looking for a better one
4418 ac_cv_path_GREP="$ac_path_GREP"
4419 ac_path_GREP_max=$ac_count
4420 fi
4421 # 10*(2^10) chars as input seems more than enough
4422 test $ac_count -gt 10 && break
4423 done
4424 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4425esac
4426
4427 $ac_path_GREP_found && break 3
4428 done
4429 done
4430 done
4431IFS=$as_save_IFS
4432 if test -z "$ac_cv_path_GREP"; then
4433 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4434 fi
4435else
4436 ac_cv_path_GREP=$GREP
4437fi
4438
4439fi
4440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4441$as_echo "$ac_cv_path_GREP" >&6; }
4442 GREP="$ac_cv_path_GREP"
4443
4444
4445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4446$as_echo_n "checking for egrep... " >&6; }
4447if test "${ac_cv_path_EGREP+set}" = set; then :
4448 $as_echo_n "(cached) " >&6
4449else
4450 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4451 then ac_cv_path_EGREP="$GREP -E"
4452 else
4453 if test -z "$EGREP"; then
4454 ac_path_EGREP_found=false
4455 # Loop through the user's path and test for each of PROGNAME-LIST
4456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4457for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4458do
4459 IFS=$as_save_IFS
4460 test -z "$as_dir" && as_dir=.
4461 for ac_prog in egrep; do
4462 for ac_exec_ext in '' $ac_executable_extensions; do
4463 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4464 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4465# Check for GNU ac_path_EGREP and select it if it is found.
4466 # Check for GNU $ac_path_EGREP
4467case `"$ac_path_EGREP" --version 2>&1` in
4468*GNU*)
4469 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4470*)
4471 ac_count=0
4472 $as_echo_n 0123456789 >"conftest.in"
4473 while :
4474 do
4475 cat "conftest.in" "conftest.in" >"conftest.tmp"
4476 mv "conftest.tmp" "conftest.in"
4477 cp "conftest.in" "conftest.nl"
4478 $as_echo 'EGREP' >> "conftest.nl"
4479 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4480 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4481 as_fn_arith $ac_count + 1 && ac_count=$as_val
4482 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4483 # Best one so far, save it but keep looking for a better one
4484 ac_cv_path_EGREP="$ac_path_EGREP"
4485 ac_path_EGREP_max=$ac_count
4486 fi
4487 # 10*(2^10) chars as input seems more than enough
4488 test $ac_count -gt 10 && break
4489 done
4490 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4491esac
4492
4493 $ac_path_EGREP_found && break 3
4494 done
4495 done
4496 done
4497IFS=$as_save_IFS
4498 if test -z "$ac_cv_path_EGREP"; then
4499 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4500 fi
4501else
4502 ac_cv_path_EGREP=$EGREP
4503fi
4504
4505 fi
4506fi
4507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4508$as_echo "$ac_cv_path_EGREP" >&6; }
4509 EGREP="$ac_cv_path_EGREP"
4510
4511
4512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4513$as_echo_n "checking for ANSI C header files... " >&6; }
4514if test "${ac_cv_header_stdc+set}" = set; then :
4515 $as_echo_n "(cached) " >&6
4516else
4517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4518/* end confdefs.h. */
4519#include <stdlib.h>
4520#include <stdarg.h>
4521#include <string.h>
4522#include <float.h>
4523
4524int
4525main ()
4526{
4527
4528 ;
4529 return 0;
4530}
4531_ACEOF
4532if ac_fn_c_try_compile "$LINENO"; then :
4533 ac_cv_header_stdc=yes
4534else
4535 ac_cv_header_stdc=no
4536fi
4537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4538
4539if test $ac_cv_header_stdc = yes; then
4540 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4542/* end confdefs.h. */
4543#include <string.h>
4544
4545_ACEOF
4546if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4547 $EGREP "memchr" >/dev/null 2>&1; then :
4548
4549else
4550 ac_cv_header_stdc=no
4551fi
4552rm -f conftest*
4553
4554fi
4555
4556if test $ac_cv_header_stdc = yes; then
4557 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4559/* end confdefs.h. */
4560#include <stdlib.h>
4561
4562_ACEOF
4563if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4564 $EGREP "free" >/dev/null 2>&1; then :
4565
4566else
4567 ac_cv_header_stdc=no
4568fi
4569rm -f conftest*
4570
4571fi
4572
4573if test $ac_cv_header_stdc = yes; then
4574 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4575 if test "$cross_compiling" = yes; then :
4576 :
4577else
4578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4579/* end confdefs.h. */
4580#include <ctype.h>
4581#include <stdlib.h>
4582#if ((' ' & 0x0FF) == 0x020)
4583# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4584# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4585#else
4586# define ISLOWER(c) \
4587 (('a' <= (c) && (c) <= 'i') \
4588 || ('j' <= (c) && (c) <= 'r') \
4589 || ('s' <= (c) && (c) <= 'z'))
4590# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4591#endif
4592
4593#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4594int
4595main ()
4596{
4597 int i;
4598 for (i = 0; i < 256; i++)
4599 if (XOR (islower (i), ISLOWER (i))
4600 || toupper (i) != TOUPPER (i))
4601 return 2;
4602 return 0;
4603}
4604_ACEOF
4605if ac_fn_c_try_run "$LINENO"; then :
4606
4607else
4608 ac_cv_header_stdc=no
4609fi
4610rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4611 conftest.$ac_objext conftest.beam conftest.$ac_ext
4612fi
4613
4614fi
4615fi
4616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4617$as_echo "$ac_cv_header_stdc" >&6; }
4618if test $ac_cv_header_stdc = yes; then
4619
4620$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4621
4622fi
4623
4624# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4625for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4626 inttypes.h stdint.h unistd.h
4627do :
4628 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4629ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4630"
4631eval as_val=\$$as_ac_Header
4632 if test "x$as_val" = x""yes; then :
4633 cat >>confdefs.h <<_ACEOF
4634#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4635_ACEOF
4636
4637fi
4638
4639done
4640
4641
4642
4643
4644
4645 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4646if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4647 MINIX=yes
4648else
4649 MINIX=
4650fi
4651
4652
4653 if test "$MINIX" = yes; then
4654
4655$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4656
4657
4658$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4659
4660
4661$as_echo "#define _MINIX 1" >>confdefs.h
4662
4663 fi
4664
4665 case "$host_os" in
4666 hpux*)
4667
4668$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4669
4670 ;;
4671 esac
4672
4673
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4675$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4676if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4677 $as_echo_n "(cached) " >&6
4678else
4679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4680/* end confdefs.h. */
4681
4682# define __EXTENSIONS__ 1
4683 $ac_includes_default
4684int
4685main ()
4686{
4687
4688 ;
4689 return 0;
4690}
4691_ACEOF
4692if ac_fn_c_try_compile "$LINENO"; then :
4693 ac_cv_safe_to_define___extensions__=yes
4694else
4695 ac_cv_safe_to_define___extensions__=no
4696fi
4697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4698fi
4699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4700$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4701 test $ac_cv_safe_to_define___extensions__ = yes &&
4702 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4703
4704 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4705
4706 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4707
4708 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4709
4710 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4711
4712 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4713
4714
4715
4716
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
4718$as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
4719if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
4720 $as_echo_n "(cached) " >&6
4721else
4722
4723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4724/* end confdefs.h. */
4725
4726#ifdef __ACK__
4727Amsterdam
4728#endif
4729
4730_ACEOF
4731if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4732 $EGREP "Amsterdam" >/dev/null 2>&1; then :
4733 gl_cv_c_amsterdam_compiler=yes
4734else
4735 gl_cv_c_amsterdam_compiler=no
4736fi
4737rm -f conftest*
4738
4739
4740fi
4741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
4742$as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
4743 if test -z "$AR"; then
4744 if test $gl_cv_c_amsterdam_compiler = yes; then
4745 AR='cc -c.a'
4746 if test -z "$ARFLAGS"; then
4747 ARFLAGS='-o'
4748 fi
4749 else
4750 if test -n "$ac_tool_prefix"; then
4751 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4752set dummy ${ac_tool_prefix}ar; ac_word=$2
4753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4754$as_echo_n "checking for $ac_word... " >&6; }
4755if test "${ac_cv_prog_AR+set}" = set; then :
4756 $as_echo_n "(cached) " >&6
4757else
4758 if test -n "$AR"; then
4759 ac_cv_prog_AR="$AR" # Let the user override the test.
4760else
4761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4762for as_dir in $PATH
4763do
4764 IFS=$as_save_IFS
4765 test -z "$as_dir" && as_dir=.
4766 for ac_exec_ext in '' $ac_executable_extensions; do
4767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4768 ac_cv_prog_AR="${ac_tool_prefix}ar"
4769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4770 break 2
4771 fi
4772done
4773 done
4774IFS=$as_save_IFS
4775
4776fi
4777fi
4778AR=$ac_cv_prog_AR
4779if test -n "$AR"; then
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4781$as_echo "$AR" >&6; }
4782else
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4784$as_echo "no" >&6; }
4785fi
4786
4787
4788fi
4789if test -z "$ac_cv_prog_AR"; then
4790 ac_ct_AR=$AR
4791 # Extract the first word of "ar", so it can be a program name with args.
4792set dummy ar; ac_word=$2
4793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4794$as_echo_n "checking for $ac_word... " >&6; }
4795if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4796 $as_echo_n "(cached) " >&6
4797else
4798 if test -n "$ac_ct_AR"; then
4799 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4800else
4801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4802for as_dir in $PATH
4803do
4804 IFS=$as_save_IFS
4805 test -z "$as_dir" && as_dir=.
4806 for ac_exec_ext in '' $ac_executable_extensions; do
4807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4808 ac_cv_prog_ac_ct_AR="ar"
4809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4810 break 2
4811 fi
4812done
4813 done
4814IFS=$as_save_IFS
4815
4816fi
4817fi
4818ac_ct_AR=$ac_cv_prog_ac_ct_AR
4819if test -n "$ac_ct_AR"; then
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4821$as_echo "$ac_ct_AR" >&6; }
4822else
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4824$as_echo "no" >&6; }
4825fi
4826
4827 if test "x$ac_ct_AR" = x; then
4828 AR="ar"
4829 else
4830 case $cross_compiling:$ac_tool_warned in
4831yes:)
4832{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4833$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4834ac_tool_warned=yes ;;
4835esac
4836 AR=$ac_ct_AR
4837 fi
4838else
4839 AR="$ac_cv_prog_AR"
4840fi
4841
4842 if test -z "$ARFLAGS"; then
4843 ARFLAGS='cru'
4844 fi
4845 fi
4846 else
4847 if test -z "$ARFLAGS"; then
4848 ARFLAGS='cru'
4849 fi
4850 fi
4851
4852
4853 if test -z "$RANLIB"; then
4854 if test $gl_cv_c_amsterdam_compiler = yes; then
4855 RANLIB=':'
4856 else
4857 if test -n "$ac_tool_prefix"; then
4858 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4859set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4861$as_echo_n "checking for $ac_word... " >&6; }
4862if test "${ac_cv_prog_RANLIB+set}" = set; then :
4863 $as_echo_n "(cached) " >&6
4864else
4865 if test -n "$RANLIB"; then
4866 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4867else
4868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4869for as_dir in $PATH
4870do
4871 IFS=$as_save_IFS
4872 test -z "$as_dir" && as_dir=.
4873 for ac_exec_ext in '' $ac_executable_extensions; do
4874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4875 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4877 break 2
4878 fi
4879done
4880 done
4881IFS=$as_save_IFS
4882
4883fi
4884fi
4885RANLIB=$ac_cv_prog_RANLIB
4886if test -n "$RANLIB"; then
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4888$as_echo "$RANLIB" >&6; }
4889else
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4891$as_echo "no" >&6; }
4892fi
4893
4894
4895fi
4896if test -z "$ac_cv_prog_RANLIB"; then
4897 ac_ct_RANLIB=$RANLIB
4898 # Extract the first word of "ranlib", so it can be a program name with args.
4899set dummy ranlib; ac_word=$2
4900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4901$as_echo_n "checking for $ac_word... " >&6; }
4902if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4903 $as_echo_n "(cached) " >&6
4904else
4905 if test -n "$ac_ct_RANLIB"; then
4906 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4907else
4908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4909for as_dir in $PATH
4910do
4911 IFS=$as_save_IFS
4912 test -z "$as_dir" && as_dir=.
4913 for ac_exec_ext in '' $ac_executable_extensions; do
4914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4915 ac_cv_prog_ac_ct_RANLIB="ranlib"
4916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4917 break 2
4918 fi
4919done
4920 done
4921IFS=$as_save_IFS
4922
4923fi
4924fi
4925ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4926if test -n "$ac_ct_RANLIB"; then
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4928$as_echo "$ac_ct_RANLIB" >&6; }
4929else
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4931$as_echo "no" >&6; }
4932fi
4933
4934 if test "x$ac_ct_RANLIB" = x; then
4935 RANLIB=":"
4936 else
4937 case $cross_compiling:$ac_tool_warned in
4938yes:)
4939{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4940$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4941ac_tool_warned=yes ;;
4942esac
4943 RANLIB=$ac_ct_RANLIB
4944 fi
4945else
4946 RANLIB="$ac_cv_prog_RANLIB"
4947fi
4948
4949 fi
4950 fi
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
88b48903
WN
4961
4962 # IEEE behaviour is the default on all CPUs except Alpha and SH
4963 # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
4964 # and the GCC 4.1.2 manual).
4965 case "$host_cpu" in
4966 alpha*)
4967 # On Alpha systems, a compiler option provides the behaviour.
4968 # See the ieee(3) manual page, also available at
4969 # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
4970 if test -n "$GCC"; then
4971 # GCC has the option -mieee.
4972 # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
4973 CPPFLAGS="$CPPFLAGS -mieee"
4974 else
4975 # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
4976 # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
4977 CPPFLAGS="$CPPFLAGS -ieee"
4978 fi
4979 ;;
4980 sh*)
4981 if test -n "$GCC"; then
4982 # GCC has the option -mieee.
4983 CPPFLAGS="$CPPFLAGS -mieee"
4984 fi
4985 ;;
4986 esac
4987
2196f55f
YQ
4988# Check whether --enable-largefile was given.
4989if test "${enable_largefile+set}" = set; then :
4990 enableval=$enable_largefile;
4991fi
4992
4993if test "$enable_largefile" != no; then
4994
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4996$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4997if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4998 $as_echo_n "(cached) " >&6
4999else
5000 ac_cv_sys_largefile_CC=no
5001 if test "$GCC" != yes; then
5002 ac_save_CC=$CC
5003 while :; do
5004 # IRIX 6.2 and later do not support large files by default,
5005 # so use the C compiler's -n32 option if that helps.
5006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5007/* end confdefs.h. */
5008#include <sys/types.h>
5009 /* Check that off_t can represent 2**63 - 1 correctly.
5010 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5011 since some C++ compilers masquerading as C compilers
5012 incorrectly reject 9223372036854775807. */
5013#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5014 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5015 && LARGE_OFF_T % 2147483647 == 1)
5016 ? 1 : -1];
5017int
5018main ()
5019{
5020
5021 ;
5022 return 0;
5023}
5024_ACEOF
5025 if ac_fn_c_try_compile "$LINENO"; then :
5026 break
5027fi
5028rm -f core conftest.err conftest.$ac_objext
5029 CC="$CC -n32"
5030 if ac_fn_c_try_compile "$LINENO"; then :
5031 ac_cv_sys_largefile_CC=' -n32'; break
5032fi
5033rm -f core conftest.err conftest.$ac_objext
5034 break
5035 done
5036 CC=$ac_save_CC
5037 rm -f conftest.$ac_ext
5038 fi
5039fi
5040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5041$as_echo "$ac_cv_sys_largefile_CC" >&6; }
5042 if test "$ac_cv_sys_largefile_CC" != no; then
5043 CC=$CC$ac_cv_sys_largefile_CC
5044 fi
5045
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5047$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5048if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5049 $as_echo_n "(cached) " >&6
5050else
5051 while :; do
5052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5053/* end confdefs.h. */
5054#include <sys/types.h>
5055 /* Check that off_t can represent 2**63 - 1 correctly.
5056 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5057 since some C++ compilers masquerading as C compilers
5058 incorrectly reject 9223372036854775807. */
5059#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5060 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5061 && LARGE_OFF_T % 2147483647 == 1)
5062 ? 1 : -1];
5063int
5064main ()
5065{
5066
5067 ;
5068 return 0;
5069}
5070_ACEOF
5071if ac_fn_c_try_compile "$LINENO"; then :
5072 ac_cv_sys_file_offset_bits=no; break
5073fi
5074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5076/* end confdefs.h. */
5077#define _FILE_OFFSET_BITS 64
5078#include <sys/types.h>
5079 /* Check that off_t can represent 2**63 - 1 correctly.
5080 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5081 since some C++ compilers masquerading as C compilers
5082 incorrectly reject 9223372036854775807. */
5083#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5084 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5085 && LARGE_OFF_T % 2147483647 == 1)
5086 ? 1 : -1];
5087int
5088main ()
5089{
5090
5091 ;
5092 return 0;
5093}
5094_ACEOF
5095if ac_fn_c_try_compile "$LINENO"; then :
5096 ac_cv_sys_file_offset_bits=64; break
5097fi
5098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5099 ac_cv_sys_file_offset_bits=unknown
5100 break
5101done
5102fi
5103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5104$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5105case $ac_cv_sys_file_offset_bits in #(
5106 no | unknown) ;;
5107 *)
5108cat >>confdefs.h <<_ACEOF
5109#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5110_ACEOF
5111;;
5112esac
5113rm -rf conftest*
5114 if test $ac_cv_sys_file_offset_bits = unknown; then
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5116$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5117if test "${ac_cv_sys_large_files+set}" = set; then :
5118 $as_echo_n "(cached) " >&6
5119else
5120 while :; do
5121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5122/* end confdefs.h. */
5123#include <sys/types.h>
5124 /* Check that off_t can represent 2**63 - 1 correctly.
5125 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5126 since some C++ compilers masquerading as C compilers
5127 incorrectly reject 9223372036854775807. */
5128#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5129 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5130 && LARGE_OFF_T % 2147483647 == 1)
5131 ? 1 : -1];
5132int
5133main ()
5134{
5135
5136 ;
5137 return 0;
5138}
5139_ACEOF
5140if ac_fn_c_try_compile "$LINENO"; then :
5141 ac_cv_sys_large_files=no; break
5142fi
5143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5145/* end confdefs.h. */
5146#define _LARGE_FILES 1
5147#include <sys/types.h>
5148 /* Check that off_t can represent 2**63 - 1 correctly.
5149 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5150 since some C++ compilers masquerading as C compilers
5151 incorrectly reject 9223372036854775807. */
5152#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5153 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5154 && LARGE_OFF_T % 2147483647 == 1)
5155 ? 1 : -1];
5156int
5157main ()
5158{
5159
5160 ;
5161 return 0;
5162}
5163_ACEOF
5164if ac_fn_c_try_compile "$LINENO"; then :
5165 ac_cv_sys_large_files=1; break
5166fi
5167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5168 ac_cv_sys_large_files=unknown
5169 break
5170done
5171fi
5172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5173$as_echo "$ac_cv_sys_large_files" >&6; }
5174case $ac_cv_sys_large_files in #(
5175 no | unknown) ;;
5176 *)
5177cat >>confdefs.h <<_ACEOF
5178#define _LARGE_FILES $ac_cv_sys_large_files
5179_ACEOF
5180;;
5181esac
5182rm -rf conftest*
5183 fi
5184
5185
5186fi
5187
88b48903
WN
5188
5189
8690e634
JK
5190 # Code from module alloca:
5191 # Code from module alloca-opt:
98399780 5192 # Code from module canonicalize-lgpl:
6a29c58e 5193 # Code from module chdir:
8690e634 5194 # Code from module configmake:
e26b6bb0 5195 # Code from module dirent:
18848e28 5196 # Code from module dirfd:
6a29c58e 5197 # Code from module dirname-lgpl:
2196f55f 5198 # Code from module dosname:
6a29c58e 5199 # Code from module double-slash-root:
18848e28 5200 # Code from module errno:
c971b7fa
PA
5201 # Code from module extensions:
5202
a512b375 5203 # Code from module extern-inline:
88b48903 5204 # Code from module float:
8690e634
JK
5205 # Code from module fnmatch:
5206 # Code from module fnmatch-gnu:
88b48903
WN
5207 # Code from module fpieee:
5208
5209 # Code from module fpucw:
5210 # Code from module frexp:
5211 # Code from module frexpl:
c971b7fa
PA
5212 # Code from module include_next:
5213 # Code from module inttypes:
5214 # Code from module inttypes-incomplete:
88b48903
WN
5215 # Code from module isnand-nolibm:
5216 # Code from module isnanl-nolibm:
2196f55f
YQ
5217 # Code from module largefile:
5218
8690e634 5219 # Code from module localcharset:
f45c62c4 5220 # Code from module lstat:
6a29c58e 5221 # Code from module malloc-posix:
98399780 5222 # Code from module malloca:
88b48903 5223 # Code from module math:
8690e634
JK
5224 # Code from module mbrtowc:
5225 # Code from module mbsinit:
5226 # Code from module mbsrtowcs:
c971b7fa
PA
5227 # Code from module memchr:
5228 # Code from module memmem:
5229 # Code from module memmem-simple:
5230 # Code from module multiarch:
98399780 5231 # Code from module nocrash:
38ec2207 5232 # Code from module pathmax:
2196f55f 5233 # Code from module readlink:
6a29c58e
YQ
5234 # Code from module rename:
5235 # Code from module rmdir:
5236 # Code from module same-inode:
98399780 5237 # Code from module snippet/_Noreturn:
c971b7fa
PA
5238 # Code from module snippet/arg-nonnull:
5239 # Code from module snippet/c++defs:
5240 # Code from module snippet/warn-on-use:
8839a007 5241 # Code from module ssize_t:
2196f55f 5242 # Code from module stat:
8690e634 5243 # Code from module stdbool:
c971b7fa
PA
5244 # Code from module stddef:
5245 # Code from module stdint:
6a29c58e 5246 # Code from module stdio:
98399780 5247 # Code from module stdlib:
8690e634 5248 # Code from module streq:
c971b7fa 5249 # Code from module string:
8690e634 5250 # Code from module strnlen1:
63ce7108
TT
5251 # Code from module strstr:
5252 # Code from module strstr-simple:
421693b0 5253 # Code from module strtok_r:
09607c9e 5254 # Code from module sys_stat:
8839a007 5255 # Code from module sys_types:
09607c9e 5256 # Code from module time:
8839a007 5257 # Code from module unistd:
c971b7fa 5258 # Code from module update-copyright:
8690e634
JK
5259 # Code from module verify:
5260 # Code from module wchar:
5261 # Code from module wctype-h:
c971b7fa
PA
5262
5263ac_ext=c
5264ac_cpp='$CPP $CPPFLAGS'
5265ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5266ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5267ac_compiler_gnu=$ac_cv_c_compiler_gnu
5268if test -n "$ac_tool_prefix"; then
5269 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5270set dummy ${ac_tool_prefix}gcc; ac_word=$2
5271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5272$as_echo_n "checking for $ac_word... " >&6; }
5273if test "${ac_cv_prog_CC+set}" = set; then :
5274 $as_echo_n "(cached) " >&6
5275else
5276 if test -n "$CC"; then
5277 ac_cv_prog_CC="$CC" # Let the user override the test.
5278else
5279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5280for as_dir in $PATH
5281do
5282 IFS=$as_save_IFS
5283 test -z "$as_dir" && as_dir=.
5284 for ac_exec_ext in '' $ac_executable_extensions; do
5285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5286 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5288 break 2
5289 fi
5290done
5291 done
5292IFS=$as_save_IFS
5293
5294fi
5295fi
5296CC=$ac_cv_prog_CC
5297if test -n "$CC"; then
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5299$as_echo "$CC" >&6; }
5300else
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5302$as_echo "no" >&6; }
5303fi
5304
5305
5306fi
5307if test -z "$ac_cv_prog_CC"; then
5308 ac_ct_CC=$CC
5309 # Extract the first word of "gcc", so it can be a program name with args.
5310set dummy gcc; ac_word=$2
5311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5312$as_echo_n "checking for $ac_word... " >&6; }
5313if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5314 $as_echo_n "(cached) " >&6
5315else
5316 if test -n "$ac_ct_CC"; then
5317 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5318else
5319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5320for as_dir in $PATH
5321do
5322 IFS=$as_save_IFS
5323 test -z "$as_dir" && as_dir=.
5324 for ac_exec_ext in '' $ac_executable_extensions; do
5325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5326 ac_cv_prog_ac_ct_CC="gcc"
5327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5328 break 2
5329 fi
5330done
5331 done
5332IFS=$as_save_IFS
5333
5334fi
5335fi
5336ac_ct_CC=$ac_cv_prog_ac_ct_CC
5337if test -n "$ac_ct_CC"; then
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5339$as_echo "$ac_ct_CC" >&6; }
5340else
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5342$as_echo "no" >&6; }
5343fi
5344
5345 if test "x$ac_ct_CC" = x; then
5346 CC=""
5347 else
5348 case $cross_compiling:$ac_tool_warned in
5349yes:)
5350{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5351$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5352ac_tool_warned=yes ;;
5353esac
5354 CC=$ac_ct_CC
5355 fi
5356else
5357 CC="$ac_cv_prog_CC"
5358fi
5359
5360if test -z "$CC"; then
5361 if test -n "$ac_tool_prefix"; then
5362 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5363set dummy ${ac_tool_prefix}cc; ac_word=$2
5364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5365$as_echo_n "checking for $ac_word... " >&6; }
5366if test "${ac_cv_prog_CC+set}" = set; then :
5367 $as_echo_n "(cached) " >&6
5368else
5369 if test -n "$CC"; then
5370 ac_cv_prog_CC="$CC" # Let the user override the test.
5371else
5372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5373for as_dir in $PATH
5374do
5375 IFS=$as_save_IFS
5376 test -z "$as_dir" && as_dir=.
5377 for ac_exec_ext in '' $ac_executable_extensions; do
5378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5379 ac_cv_prog_CC="${ac_tool_prefix}cc"
5380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5381 break 2
5382 fi
5383done
5384 done
5385IFS=$as_save_IFS
5386
5387fi
5388fi
5389CC=$ac_cv_prog_CC
5390if test -n "$CC"; then
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5392$as_echo "$CC" >&6; }
5393else
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5395$as_echo "no" >&6; }
5396fi
5397
5398
5399 fi
5400fi
5401if test -z "$CC"; then
5402 # Extract the first word of "cc", so it can be a program name with args.
5403set dummy cc; ac_word=$2
5404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5405$as_echo_n "checking for $ac_word... " >&6; }
5406if test "${ac_cv_prog_CC+set}" = set; then :
5407 $as_echo_n "(cached) " >&6
5408else
5409 if test -n "$CC"; then
5410 ac_cv_prog_CC="$CC" # Let the user override the test.
5411else
5412 ac_prog_rejected=no
5413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5414for as_dir in $PATH
5415do
5416 IFS=$as_save_IFS
5417 test -z "$as_dir" && as_dir=.
5418 for ac_exec_ext in '' $ac_executable_extensions; do
5419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5420 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5421 ac_prog_rejected=yes
5422 continue
5423 fi
5424 ac_cv_prog_CC="cc"
5425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5426 break 2
5427 fi
5428done
5429 done
5430IFS=$as_save_IFS
5431
5432if test $ac_prog_rejected = yes; then
5433 # We found a bogon in the path, so make sure we never use it.
5434 set dummy $ac_cv_prog_CC
5435 shift
5436 if test $# != 0; then
5437 # We chose a different compiler from the bogus one.
5438 # However, it has the same basename, so the bogon will be chosen
5439 # first if we set CC to just the basename; use the full file name.
5440 shift
5441 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5442 fi
5443fi
5444fi
5445fi
5446CC=$ac_cv_prog_CC
5447if test -n "$CC"; then
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5449$as_echo "$CC" >&6; }
5450else
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5452$as_echo "no" >&6; }
5453fi
5454
5455
5456fi
5457if test -z "$CC"; then
5458 if test -n "$ac_tool_prefix"; then
5459 for ac_prog in cl.exe
5460 do
5461 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5462set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5464$as_echo_n "checking for $ac_word... " >&6; }
5465if test "${ac_cv_prog_CC+set}" = set; then :
5466 $as_echo_n "(cached) " >&6
5467else
5468 if test -n "$CC"; then
5469 ac_cv_prog_CC="$CC" # Let the user override the test.
5470else
5471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5472for as_dir in $PATH
5473do
5474 IFS=$as_save_IFS
5475 test -z "$as_dir" && as_dir=.
5476 for ac_exec_ext in '' $ac_executable_extensions; do
5477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5478 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5480 break 2
5481 fi
5482done
5483 done
5484IFS=$as_save_IFS
5485
5486fi
5487fi
5488CC=$ac_cv_prog_CC
5489if test -n "$CC"; then
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5491$as_echo "$CC" >&6; }
5492else
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5494$as_echo "no" >&6; }
5495fi
5496
5497
5498 test -n "$CC" && break
5499 done
5500fi
5501if test -z "$CC"; then
5502 ac_ct_CC=$CC
5503 for ac_prog in cl.exe
5504do
5505 # Extract the first word of "$ac_prog", so it can be a program name with args.
5506set dummy $ac_prog; ac_word=$2
5507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5508$as_echo_n "checking for $ac_word... " >&6; }
5509if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5510 $as_echo_n "(cached) " >&6
5511else
5512 if test -n "$ac_ct_CC"; then
5513 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5514else
5515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5516for as_dir in $PATH
5517do
5518 IFS=$as_save_IFS
5519 test -z "$as_dir" && as_dir=.
5520 for ac_exec_ext in '' $ac_executable_extensions; do
5521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5522 ac_cv_prog_ac_ct_CC="$ac_prog"
5523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5524 break 2
5525 fi
5526done
5527 done
5528IFS=$as_save_IFS
5529
5530fi
5531fi
5532ac_ct_CC=$ac_cv_prog_ac_ct_CC
5533if test -n "$ac_ct_CC"; then
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5535$as_echo "$ac_ct_CC" >&6; }
5536else
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5538$as_echo "no" >&6; }
5539fi
5540
5541
5542 test -n "$ac_ct_CC" && break
5543done
5544
5545 if test "x$ac_ct_CC" = x; then
5546 CC=""
5547 else
5548 case $cross_compiling:$ac_tool_warned in
5549yes:)
5550{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5551$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5552ac_tool_warned=yes ;;
5553esac
5554 CC=$ac_ct_CC
5555 fi
5556fi
5557
5558fi
5559
5560
5561test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5562$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5563as_fn_error "no acceptable C compiler found in \$PATH
5564See \`config.log' for more details." "$LINENO" 5; }
5565
5566# Provide some information about the compiler.
5567$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5568set X $ac_compile
5569ac_compiler=$2
5570for ac_option in --version -v -V -qversion; do
5571 { { ac_try="$ac_compiler $ac_option >&5"
5572case "(($ac_try" in
5573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5574 *) ac_try_echo=$ac_try;;
5575esac
5576eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5577$as_echo "$ac_try_echo"; } >&5
5578 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5579 ac_status=$?
5580 if test -s conftest.err; then
5581 sed '10a\
5582... rest of stderr output deleted ...
5583 10q' conftest.err >conftest.er1
5584 cat conftest.er1 >&5
5585 rm -f conftest.er1 conftest.err
5586 fi
5587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5588 test $ac_status = 0; }
5589done
5590
5591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5592$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5593if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5594 $as_echo_n "(cached) " >&6
5595else
5596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5597/* end confdefs.h. */
5598
5599int
5600main ()
5601{
5602#ifndef __GNUC__
5603 choke me
5604#endif
5605
5606 ;
5607 return 0;
5608}
5609_ACEOF
5610if ac_fn_c_try_compile "$LINENO"; then :
5611 ac_compiler_gnu=yes
5612else
5613 ac_compiler_gnu=no
5614fi
5615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5616ac_cv_c_compiler_gnu=$ac_compiler_gnu
5617
5618fi
5619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5620$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5621if test $ac_compiler_gnu = yes; then
5622 GCC=yes
5623else
5624 GCC=
5625fi
5626ac_test_CFLAGS=${CFLAGS+set}
5627ac_save_CFLAGS=$CFLAGS
5628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5629$as_echo_n "checking whether $CC accepts -g... " >&6; }
5630if test "${ac_cv_prog_cc_g+set}" = set; then :
5631 $as_echo_n "(cached) " >&6
5632else
5633 ac_save_c_werror_flag=$ac_c_werror_flag
5634 ac_c_werror_flag=yes
5635 ac_cv_prog_cc_g=no
5636 CFLAGS="-g"
5637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5638/* end confdefs.h. */
5639
5640int
5641main ()
5642{
5643
5644 ;
5645 return 0;
5646}
5647_ACEOF
5648if ac_fn_c_try_compile "$LINENO"; then :
5649 ac_cv_prog_cc_g=yes
5650else
5651 CFLAGS=""
5652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5653/* end confdefs.h. */
5654
5655int
5656main ()
5657{
5658
5659 ;
5660 return 0;
5661}
5662_ACEOF
5663if ac_fn_c_try_compile "$LINENO"; then :
5664
5665else
5666 ac_c_werror_flag=$ac_save_c_werror_flag
5667 CFLAGS="-g"
5668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5669/* end confdefs.h. */
5670
5671int
5672main ()
5673{
5674
5675 ;
5676 return 0;
5677}
5678_ACEOF
5679if ac_fn_c_try_compile "$LINENO"; then :
5680 ac_cv_prog_cc_g=yes
5681fi
5682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5683fi
5684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5685fi
5686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5687 ac_c_werror_flag=$ac_save_c_werror_flag
5688fi
5689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5690$as_echo "$ac_cv_prog_cc_g" >&6; }
5691if test "$ac_test_CFLAGS" = set; then
5692 CFLAGS=$ac_save_CFLAGS
5693elif test $ac_cv_prog_cc_g = yes; then
5694 if test "$GCC" = yes; then
5695 CFLAGS="-g -O2"
5696 else
5697 CFLAGS="-g"
5698 fi
5699else
5700 if test "$GCC" = yes; then
5701 CFLAGS="-O2"
5702 else
5703 CFLAGS=
5704 fi
5705fi
5706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5707$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5708if test "${ac_cv_prog_cc_c89+set}" = set; then :
5709 $as_echo_n "(cached) " >&6
5710else
5711 ac_cv_prog_cc_c89=no
5712ac_save_CC=$CC
5713cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5714/* end confdefs.h. */
5715#include <stdarg.h>
5716#include <stdio.h>
5717#include <sys/types.h>
5718#include <sys/stat.h>
5719/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5720struct buf { int x; };
5721FILE * (*rcsopen) (struct buf *, struct stat *, int);
5722static char *e (p, i)
5723 char **p;
5724 int i;
5725{
5726 return p[i];
5727}
5728static char *f (char * (*g) (char **, int), char **p, ...)
5729{
5730 char *s;
5731 va_list v;
5732 va_start (v,p);
5733 s = g (p, va_arg (v,int));
5734 va_end (v);
5735 return s;
5736}
5737
5738/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5739 function prototypes and stuff, but not '\xHH' hex character constants.
5740 These don't provoke an error unfortunately, instead are silently treated
5741 as 'x'. The following induces an error, until -std is added to get
5742 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5743 array size at least. It's necessary to write '\x00'==0 to get something
5744 that's true only with -std. */
5745int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5746
5747/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5748 inside strings and character constants. */
5749#define FOO(x) 'x'
5750int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5751
5752int test (int i, double x);
5753struct s1 {int (*f) (int a);};
5754struct s2 {int (*f) (double a);};
5755int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5756int argc;
5757char **argv;
5758int
5759main ()
5760{
5761return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5762 ;
5763 return 0;
5764}
5765_ACEOF
5766for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5767 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5768do
5769 CC="$ac_save_CC $ac_arg"
5770 if ac_fn_c_try_compile "$LINENO"; then :
5771 ac_cv_prog_cc_c89=$ac_arg
5772fi
5773rm -f core conftest.err conftest.$ac_objext
5774 test "x$ac_cv_prog_cc_c89" != "xno" && break
5775done
5776rm -f conftest.$ac_ext
5777CC=$ac_save_CC
5778
5779fi
5780# AC_CACHE_VAL
5781case "x$ac_cv_prog_cc_c89" in
5782 x)
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5784$as_echo "none needed" >&6; } ;;
5785 xno)
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5787$as_echo "unsupported" >&6; } ;;
5788 *)
5789 CC="$CC $ac_cv_prog_cc_c89"
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5791$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5792esac
5793if test "x$ac_cv_prog_cc_c89" != xno; then :
5794
5795fi
5796
5797ac_ext=c
5798ac_cpp='$CPP $CPPFLAGS'
5799ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5800ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5801ac_compiler_gnu=$ac_cv_c_compiler_gnu
5802
5803
5804am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5805
5806
5807ac_aux_dir=
5808for ac_dir in ../.. "$srcdir"/../..; do
5809 for ac_t in install-sh install.sh shtool; do
5810 if test -f "$ac_dir/$ac_t"; then
5811 ac_aux_dir=$ac_dir
5812 ac_install_sh="$ac_aux_dir/$ac_t -c"
5813 break 2
5814 fi
5815 done
5816done
5817if test -z "$ac_aux_dir"; then
5818 as_fn_error "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
5819fi
5820
5821# These three variables are undocumented and unsupported,
5822# and are intended to be withdrawn in a future Autoconf release.
5823# They can cause serious problems if a builder's source tree is in a directory
5824# whose full name contains unusual characters.
5825ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5826ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5827ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5828
5829
5830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
5831$as_echo_n "checking target system type... " >&6; }
5832if test "${ac_cv_target+set}" = set; then :
5833 $as_echo_n "(cached) " >&6
5834else
5835 if test "x$target_alias" = x; then
5836 ac_cv_target=$ac_cv_host
5837else
5838 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
5839 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5840fi
5841
5842fi
5843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
5844$as_echo "$ac_cv_target" >&6; }
5845case $ac_cv_target in
5846*-*-*) ;;
5847*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
5848esac
5849target=$ac_cv_target
5850ac_save_IFS=$IFS; IFS='-'
5851set x $ac_cv_target
5852shift
5853target_cpu=$1
5854target_vendor=$2
5855shift; shift
5856# Remember, the first character of IFS is used to create $*,
5857# except with old shells:
5858target_os=$*
5859IFS=$ac_save_IFS
5860case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
5861
5862
5863# The aliases save the names the user supplied, while $host etc.
5864# will get canonicalized.
5865test -n "$target_alias" &&
5866 test "$program_prefix$program_suffix$program_transform_name" = \
5867 NONENONEs,x,x, &&
5868 program_prefix=${target_alias}-
5869
5870
5871
5872
5873
5874
5875
5876 LIBC_FATAL_STDERR_=1
5877 export LIBC_FATAL_STDERR_
5878
8690e634
JK
5879# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5880# for constant arguments. Useless!
5881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5882$as_echo_n "checking for working alloca.h... " >&6; }
5883if test "${ac_cv_working_alloca_h+set}" = set; then :
c971b7fa
PA
5884 $as_echo_n "(cached) " >&6
5885else
8690e634 5886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa 5887/* end confdefs.h. */
8690e634 5888#include <alloca.h>
c971b7fa
PA
5889int
5890main ()
5891{
8690e634
JK
5892char *p = (char *) alloca (2 * sizeof (int));
5893 if (p) return 0;
c971b7fa
PA
5894 ;
5895 return 0;
5896}
c971b7fa
PA
5897_ACEOF
5898if ac_fn_c_try_link "$LINENO"; then :
8690e634 5899 ac_cv_working_alloca_h=yes
c971b7fa 5900else
8690e634 5901 ac_cv_working_alloca_h=no
c971b7fa
PA
5902fi
5903rm -f core conftest.err conftest.$ac_objext \
5904 conftest$ac_exeext conftest.$ac_ext
c971b7fa 5905fi
8690e634
JK
5906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5907$as_echo "$ac_cv_working_alloca_h" >&6; }
5908if test $ac_cv_working_alloca_h = yes; then
c971b7fa 5909
8690e634 5910$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
c971b7fa 5911
8690e634 5912fi
c971b7fa 5913
8690e634
JK
5914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5915$as_echo_n "checking for alloca... " >&6; }
5916if test "${ac_cv_func_alloca_works+set}" = set; then :
c971b7fa 5917 $as_echo_n "(cached) " >&6
c971b7fa
PA
5918else
5919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5920/* end confdefs.h. */
8690e634
JK
5921#ifdef __GNUC__
5922# define alloca __builtin_alloca
5923#else
5924# ifdef _MSC_VER
5925# include <malloc.h>
5926# define alloca _alloca
5927# else
5928# ifdef HAVE_ALLOCA_H
5929# include <alloca.h>
5930# else
5931# ifdef _AIX
5932 #pragma alloca
5933# else
5934# ifndef alloca /* predefined by HP cc +Olibcalls */
5935char *alloca ();
5936# endif
5937# endif
5938# endif
5939# endif
5940#endif
5941
c971b7fa
PA
5942int
5943main ()
5944{
8690e634
JK
5945char *p = (char *) alloca (1);
5946 if (p) return 0;
c971b7fa
PA
5947 ;
5948 return 0;
5949}
5950_ACEOF
8690e634
JK
5951if ac_fn_c_try_link "$LINENO"; then :
5952 ac_cv_func_alloca_works=yes
c971b7fa 5953else
8690e634 5954 ac_cv_func_alloca_works=no
c971b7fa 5955fi
8690e634
JK
5956rm -f core conftest.err conftest.$ac_objext \
5957 conftest$ac_exeext conftest.$ac_ext
c971b7fa 5958fi
a143c6de
JB
5959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5960$as_echo "$ac_cv_func_alloca_works" >&6; }
c971b7fa 5961
a143c6de 5962if test $ac_cv_func_alloca_works = yes; then
c971b7fa 5963
a143c6de 5964$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
c971b7fa 5965
a143c6de
JB
5966else
5967 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5968# that cause trouble. Some versions do not even contain alloca or
5969# contain a buggy version. If you still want to use their alloca,
5970# use ar to extract alloca.o from them instead of compiling alloca.c.
c971b7fa
PA
5971
5972
5973
5974
5975
a143c6de 5976ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
c971b7fa 5977
a143c6de 5978$as_echo "#define C_ALLOCA 1" >>confdefs.h
c971b7fa 5979
c971b7fa 5980
a143c6de
JB
5981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
5982$as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
5983if test "${ac_cv_os_cray+set}" = set; then :
8690e634
JK
5984 $as_echo_n "(cached) " >&6
5985else
a143c6de 5986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690e634 5987/* end confdefs.h. */
a143c6de
JB
5988#if defined CRAY && ! defined CRAY2
5989webecray
5990#else
5991wenotbecray
8690e634 5992#endif
c971b7fa 5993
8690e634
JK
5994_ACEOF
5995if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
a143c6de
JB
5996 $EGREP "webecray" >/dev/null 2>&1; then :
5997 ac_cv_os_cray=yes
8690e634 5998else
a143c6de 5999 ac_cv_os_cray=no
8690e634
JK
6000fi
6001rm -f conftest*
c971b7fa 6002
c0fc7f8b 6003fi
a143c6de
JB
6004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6005$as_echo "$ac_cv_os_cray" >&6; }
6006if test $ac_cv_os_cray = yes; then
6007 for ac_func in _getb67 GETB67 getb67; do
6008 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6009ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6010eval as_val=\$$as_ac_var
6011 if test "x$as_val" = x""yes; then :
c0fc7f8b 6012
a143c6de
JB
6013cat >>confdefs.h <<_ACEOF
6014#define CRAY_STACKSEG_END $ac_func
6015_ACEOF
c971b7fa 6016
a143c6de 6017 break
8690e634 6018fi
c971b7fa 6019
a143c6de 6020 done
8690e634 6021fi
c0fc7f8b 6022
a143c6de
JB
6023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6024$as_echo_n "checking stack direction for C alloca... " >&6; }
6025if test "${ac_cv_c_stack_direction+set}" = set; then :
c971b7fa
PA
6026 $as_echo_n "(cached) " >&6
6027else
a143c6de
JB
6028 if test "$cross_compiling" = yes; then :
6029 ac_cv_c_stack_direction=0
6030else
6031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa 6032/* end confdefs.h. */
a143c6de
JB
6033$ac_includes_default
6034int
6035find_stack_direction (int *addr, int depth)
6036{
6037 int dir, dummy = 0;
6038 if (! addr)
6039 addr = &dummy;
6040 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6041 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6042 return dir + dummy;
6043}
8690e634 6044
a143c6de
JB
6045int
6046main (int argc, char **argv)
6047{
6048 return find_stack_direction (0, argc + !argv + 20) < 0;
6049}
c971b7fa 6050_ACEOF
a143c6de
JB
6051if ac_fn_c_try_run "$LINENO"; then :
6052 ac_cv_c_stack_direction=1
c971b7fa 6053else
a143c6de 6054 ac_cv_c_stack_direction=-1
8690e634 6055fi
a143c6de
JB
6056rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6057 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 6058fi
c971b7fa
PA
6059
6060fi
a143c6de
JB
6061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6062$as_echo "$ac_cv_c_stack_direction" >&6; }
6063cat >>confdefs.h <<_ACEOF
6064#define STACK_DIRECTION $ac_cv_c_stack_direction
6065_ACEOF
8690e634 6066
c971b7fa
PA
6067
6068fi
c971b7fa
PA
6069
6070
98399780
YQ
6071 GNULIB__EXIT=0;
6072 GNULIB_ATOLL=0;
6073 GNULIB_CALLOC_POSIX=0;
6074 GNULIB_CANONICALIZE_FILE_NAME=0;
6075 GNULIB_GETLOADAVG=0;
6076 GNULIB_GETSUBOPT=0;
6077 GNULIB_GRANTPT=0;
6078 GNULIB_MALLOC_POSIX=0;
6079 GNULIB_MBTOWC=0;
6080 GNULIB_MKDTEMP=0;
6081 GNULIB_MKOSTEMP=0;
6082 GNULIB_MKOSTEMPS=0;
6083 GNULIB_MKSTEMP=0;
6084 GNULIB_MKSTEMPS=0;
6085 GNULIB_POSIX_OPENPT=0;
6086 GNULIB_PTSNAME=0;
6087 GNULIB_PTSNAME_R=0;
6088 GNULIB_PUTENV=0;
6089 GNULIB_RANDOM=0;
6090 GNULIB_RANDOM_R=0;
6091 GNULIB_REALLOC_POSIX=0;
6092 GNULIB_REALPATH=0;
6093 GNULIB_RPMATCH=0;
6094 GNULIB_SETENV=0;
6095 GNULIB_STRTOD=0;
6096 GNULIB_STRTOLL=0;
6097 GNULIB_STRTOULL=0;
6098 GNULIB_SYSTEM_POSIX=0;
6099 GNULIB_UNLOCKPT=0;
6100 GNULIB_UNSETENV=0;
6101 GNULIB_WCTOMB=0;
6102 HAVE__EXIT=1;
6103 HAVE_ATOLL=1;
6104 HAVE_CANONICALIZE_FILE_NAME=1;
6105 HAVE_DECL_GETLOADAVG=1;
6106 HAVE_GETSUBOPT=1;
6107 HAVE_GRANTPT=1;
6108 HAVE_MKDTEMP=1;
6109 HAVE_MKOSTEMP=1;
6110 HAVE_MKOSTEMPS=1;
6111 HAVE_MKSTEMP=1;
6112 HAVE_MKSTEMPS=1;
6113 HAVE_POSIX_OPENPT=1;
6114 HAVE_PTSNAME=1;
6115 HAVE_PTSNAME_R=1;
6116 HAVE_RANDOM=1;
6117 HAVE_RANDOM_H=1;
6118 HAVE_RANDOM_R=1;
6119 HAVE_REALPATH=1;
6120 HAVE_RPMATCH=1;
6121 HAVE_SETENV=1;
6122 HAVE_DECL_SETENV=1;
6123 HAVE_STRTOD=1;
6124 HAVE_STRTOLL=1;
6125 HAVE_STRTOULL=1;
6126 HAVE_STRUCT_RANDOM_DATA=1;
6127 HAVE_SYS_LOADAVG_H=0;
6128 HAVE_UNLOCKPT=1;
6129 HAVE_DECL_UNSETENV=1;
6130 REPLACE_CALLOC=0;
6131 REPLACE_CANONICALIZE_FILE_NAME=0;
6132 REPLACE_MALLOC=0;
6133 REPLACE_MBTOWC=0;
6134 REPLACE_MKSTEMP=0;
6135 REPLACE_PTSNAME=0;
6136 REPLACE_PTSNAME_R=0;
6137 REPLACE_PUTENV=0;
6138 REPLACE_RANDOM_R=0;
6139 REPLACE_REALLOC=0;
6140 REPLACE_REALPATH=0;
6141 REPLACE_SETENV=0;
6142 REPLACE_STRTOD=0;
6143 REPLACE_UNSETENV=0;
6144 REPLACE_WCTOMB=0;
6145
6146
6147
6148
6149 for ac_func in $ac_func_list
6150do :
6151 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6152ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6153eval as_val=\$$as_ac_var
6154 if test "x$as_val" = x""yes; then :
6155 cat >>confdefs.h <<_ACEOF
6156#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6157_ACEOF
6158
6159fi
6160done
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
6171$as_echo_n "checking whether // is distinct from /... " >&6; }
6172if test "${gl_cv_double_slash_root+set}" = set; then :
6173 $as_echo_n "(cached) " >&6
6174else
6175 if test x"$cross_compiling" = xyes ; then
6176 # When cross-compiling, there is no way to tell whether // is special
6177 # short of a list of hosts. However, the only known hosts to date
6178 # that have a distinct // are Apollo DomainOS (too old to port to),
6179 # Cygwin, and z/OS. If anyone knows of another system for which // has
6180 # special semantics and is distinct from /, please report it to
6181 # <bug-gnulib@gnu.org>.
6182 case $host in
6183 *-cygwin | i370-ibm-openedition)
6184 gl_cv_double_slash_root=yes ;;
6185 *)
6186 # Be optimistic and assume that / and // are the same when we
6187 # don't know.
6188 gl_cv_double_slash_root='unknown, assuming no' ;;
6189 esac
6190 else
6191 set x `ls -di / // 2>/dev/null`
6192 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
6193 gl_cv_double_slash_root=no
6194 else
6195 gl_cv_double_slash_root=yes
6196 fi
6197 fi
6198fi
6199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
6200$as_echo "$gl_cv_double_slash_root" >&6; }
6201 if test "$gl_cv_double_slash_root" = yes; then
6202
6203$as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
6204
6205 fi
6206
6207
6208
6209
6210
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether realpath works" >&5
6212$as_echo_n "checking whether realpath works... " >&6; }
6213if test "${gl_cv_func_realpath_works+set}" = set; then :
6214 $as_echo_n "(cached) " >&6
6215else
6216
6217 touch conftest.a
6218 mkdir conftest.d
6219 if test "$cross_compiling" = yes; then :
6220 case "$host_os" in
6221 # Guess yes on glibc systems.
6222 *-gnu* | gnu*) gl_cv_func_realpath_works="guessing yes" ;;
6223 # If we don't know, assume the worst.
6224 *) gl_cv_func_realpath_works="guessing no" ;;
6225 esac
6226
6227else
6228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6229/* end confdefs.h. */
6230
6231
6232
6233#include <stdlib.h>
6234#if defined __MACH__ && defined __APPLE__
6235/* Avoid a crash on Mac OS X. */
6236#include <mach/mach.h>
6237#include <mach/mach_error.h>
6238#include <mach/thread_status.h>
6239#include <mach/exception.h>
6240#include <mach/task.h>
6241#include <pthread.h>
6242/* The exception port on which our thread listens. */
6243static mach_port_t our_exception_port;
6244/* The main function of the thread listening for exceptions of type
6245 EXC_BAD_ACCESS. */
6246static void *
6247mach_exception_thread (void *arg)
6248{
6249 /* Buffer for a message to be received. */
6250 struct {
6251 mach_msg_header_t head;
6252 mach_msg_body_t msgh_body;
6253 char data[1024];
6254 } msg;
6255 mach_msg_return_t retval;
6256 /* Wait for a message on the exception port. */
6257 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
6258 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
6259 if (retval != MACH_MSG_SUCCESS)
6260 abort ();
6261 exit (1);
6262}
6263static void
6264nocrash_init (void)
6265{
6266 mach_port_t self = mach_task_self ();
6267 /* Allocate a port on which the thread shall listen for exceptions. */
6268 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
6269 == KERN_SUCCESS) {
6270 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
6271 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
6272 MACH_MSG_TYPE_MAKE_SEND)
6273 == KERN_SUCCESS) {
6274 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
6275 for us. */
6276 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
6277 /* Create the thread listening on the exception port. */
6278 pthread_attr_t attr;
6279 pthread_t thread;
6280 if (pthread_attr_init (&attr) == 0
6281 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
6282 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
6283 pthread_attr_destroy (&attr);
6284 /* Replace the exception port info for these exceptions with our own.
6285 Note that we replace the exception port for the entire task, not only
6286 for a particular thread. This has the effect that when our exception
6287 port gets the message, the thread specific exception port has already
6288 been asked, and we don't need to bother about it.
6289 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
6290 task_set_exception_ports (self, mask, our_exception_port,
6291 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
6292 }
6293 }
6294 }
6295}
6296#elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
6297/* Avoid a crash on native Windows. */
6298#define WIN32_LEAN_AND_MEAN
6299#include <windows.h>
6300#include <winerror.h>
6301static LONG WINAPI
6302exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
6303{
6304 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
6305 {
6306 case EXCEPTION_ACCESS_VIOLATION:
6307 case EXCEPTION_IN_PAGE_ERROR:
6308 case EXCEPTION_STACK_OVERFLOW:
6309 case EXCEPTION_GUARD_PAGE:
6310 case EXCEPTION_PRIV_INSTRUCTION:
6311 case EXCEPTION_ILLEGAL_INSTRUCTION:
6312 case EXCEPTION_DATATYPE_MISALIGNMENT:
6313 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
6314 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
6315 exit (1);
6316 }
6317 return EXCEPTION_CONTINUE_SEARCH;
6318}
6319static void
6320nocrash_init (void)
6321{
6322 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
6323}
6324#else
6325/* Avoid a crash on POSIX systems. */
6326#include <signal.h>
6327/* A POSIX signal handler. */
6328static void
6329exception_handler (int sig)
6330{
6331 exit (1);
6332}
6333static void
6334nocrash_init (void)
6335{
6336#ifdef SIGSEGV
6337 signal (SIGSEGV, exception_handler);
6338#endif
6339#ifdef SIGBUS
6340 signal (SIGBUS, exception_handler);
6341#endif
6342}
6343#endif
6344
6345 #include <stdlib.h>
6346 #include <string.h>
6347
6348int
6349main ()
6350{
6351
6352 int result = 0;
6353 {
6354 char *name = realpath ("conftest.a", NULL);
6355 if (!(name && *name == '/'))
6356 result |= 1;
6357 }
6358 {
6359 char *name = realpath ("conftest.b/../conftest.a", NULL);
6360 if (name != NULL)
6361 result |= 2;
6362 }
6363 {
6364 char *name = realpath ("conftest.a/", NULL);
6365 if (name != NULL)
6366 result |= 4;
6367 }
6368 {
6369 char *name1 = realpath (".", NULL);
6370 char *name2 = realpath ("conftest.d//./..", NULL);
6371 if (strcmp (name1, name2) != 0)
6372 result |= 8;
6373 }
6374 return result;
6375
6376 ;
6377 return 0;
6378}
6379
6380_ACEOF
6381if ac_fn_c_try_run "$LINENO"; then :
6382 gl_cv_func_realpath_works=yes
6383else
6384 gl_cv_func_realpath_works=no
6385fi
6386rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6387 conftest.$ac_objext conftest.beam conftest.$ac_ext
6388fi
6389
6390 rm -rf conftest.a conftest.d
6391
6392fi
6393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_realpath_works" >&5
6394$as_echo "$gl_cv_func_realpath_works" >&6; }
6395 case "$gl_cv_func_realpath_works" in
6396 *yes)
6397
6398$as_echo "#define FUNC_REALPATH_WORKS 1" >>confdefs.h
6399
6400 ;;
6401 esac
6402
6403
6404
6405
6406 for ac_header in $ac_header_list
6407do :
6408 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6409ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6410"
6411eval as_val=\$$as_ac_Header
6412 if test "x$as_val" = x""yes; then :
6413 cat >>confdefs.h <<_ACEOF
6414#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6415_ACEOF
6416
6417fi
6418
6419done
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
e26b6bb0
TT
6431 GNULIB_CHDIR=0;
6432 GNULIB_CHOWN=0;
6433 GNULIB_CLOSE=0;
6434 GNULIB_DUP=0;
6435 GNULIB_DUP2=0;
6436 GNULIB_DUP3=0;
6437 GNULIB_ENVIRON=0;
6438 GNULIB_EUIDACCESS=0;
6439 GNULIB_FACCESSAT=0;
6440 GNULIB_FCHDIR=0;
6441 GNULIB_FCHOWNAT=0;
6442 GNULIB_FDATASYNC=0;
6443 GNULIB_FSYNC=0;
6444 GNULIB_FTRUNCATE=0;
6445 GNULIB_GETCWD=0;
6446 GNULIB_GETDOMAINNAME=0;
6447 GNULIB_GETDTABLESIZE=0;
6448 GNULIB_GETGROUPS=0;
6449 GNULIB_GETHOSTNAME=0;
6450 GNULIB_GETLOGIN=0;
6451 GNULIB_GETLOGIN_R=0;
6452 GNULIB_GETPAGESIZE=0;
6453 GNULIB_GETUSERSHELL=0;
6454 GNULIB_GROUP_MEMBER=0;
6455 GNULIB_ISATTY=0;
6456 GNULIB_LCHOWN=0;
6457 GNULIB_LINK=0;
6458 GNULIB_LINKAT=0;
6459 GNULIB_LSEEK=0;
6460 GNULIB_PIPE=0;
6461 GNULIB_PIPE2=0;
6462 GNULIB_PREAD=0;
6463 GNULIB_PWRITE=0;
6464 GNULIB_READ=0;
6465 GNULIB_READLINK=0;
6466 GNULIB_READLINKAT=0;
6467 GNULIB_RMDIR=0;
6468 GNULIB_SETHOSTNAME=0;
6469 GNULIB_SLEEP=0;
6470 GNULIB_SYMLINK=0;
6471 GNULIB_SYMLINKAT=0;
6472 GNULIB_TTYNAME_R=0;
6473 GNULIB_UNISTD_H_NONBLOCKING=0;
6474 GNULIB_UNISTD_H_SIGPIPE=0;
6475 GNULIB_UNLINK=0;
6476 GNULIB_UNLINKAT=0;
6477 GNULIB_USLEEP=0;
6478 GNULIB_WRITE=0;
6479 HAVE_CHOWN=1;
6480 HAVE_DUP2=1;
6481 HAVE_DUP3=1;
6482 HAVE_EUIDACCESS=1;
6483 HAVE_FACCESSAT=1;
6484 HAVE_FCHDIR=1;
6485 HAVE_FCHOWNAT=1;
6486 HAVE_FDATASYNC=1;
6487 HAVE_FSYNC=1;
6488 HAVE_FTRUNCATE=1;
6489 HAVE_GETDTABLESIZE=1;
6490 HAVE_GETGROUPS=1;
6491 HAVE_GETHOSTNAME=1;
6492 HAVE_GETLOGIN=1;
6493 HAVE_GETPAGESIZE=1;
6494 HAVE_GROUP_MEMBER=1;
6495 HAVE_LCHOWN=1;
6496 HAVE_LINK=1;
6497 HAVE_LINKAT=1;
6498 HAVE_PIPE=1;
6499 HAVE_PIPE2=1;
6500 HAVE_PREAD=1;
6501 HAVE_PWRITE=1;
6502 HAVE_READLINK=1;
6503 HAVE_READLINKAT=1;
6504 HAVE_SETHOSTNAME=1;
6505 HAVE_SLEEP=1;
6506 HAVE_SYMLINK=1;
6507 HAVE_SYMLINKAT=1;
6508 HAVE_UNLINKAT=1;
6509 HAVE_USLEEP=1;
6510 HAVE_DECL_ENVIRON=1;
6511 HAVE_DECL_FCHDIR=1;
6512 HAVE_DECL_FDATASYNC=1;
6513 HAVE_DECL_GETDOMAINNAME=1;
6514 HAVE_DECL_GETLOGIN_R=1;
6515 HAVE_DECL_GETPAGESIZE=1;
6516 HAVE_DECL_GETUSERSHELL=1;
6517 HAVE_DECL_SETHOSTNAME=1;
6518 HAVE_DECL_TTYNAME_R=1;
6519 HAVE_OS_H=0;
6520 HAVE_SYS_PARAM_H=0;
6521 REPLACE_CHOWN=0;
6522 REPLACE_CLOSE=0;
6523 REPLACE_DUP=0;
6524 REPLACE_DUP2=0;
6525 REPLACE_FCHOWNAT=0;
6526 REPLACE_FTRUNCATE=0;
6527 REPLACE_GETCWD=0;
6528 REPLACE_GETDOMAINNAME=0;
6529 REPLACE_GETLOGIN_R=0;
6530 REPLACE_GETGROUPS=0;
6531 REPLACE_GETPAGESIZE=0;
6532 REPLACE_ISATTY=0;
6533 REPLACE_LCHOWN=0;
6534 REPLACE_LINK=0;
6535 REPLACE_LINKAT=0;
6536 REPLACE_LSEEK=0;
6537 REPLACE_PREAD=0;
6538 REPLACE_PWRITE=0;
6539 REPLACE_READ=0;
6540 REPLACE_READLINK=0;
6541 REPLACE_RMDIR=0;
6542 REPLACE_SLEEP=0;
6543 REPLACE_SYMLINK=0;
6544 REPLACE_TTYNAME_R=0;
6545 REPLACE_UNLINK=0;
6546 REPLACE_UNLINKAT=0;
6547 REPLACE_USLEEP=0;
6548 REPLACE_WRITE=0;
6549 UNISTD_H_HAVE_WINSOCK2_H=0;
6550 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
6551
6552
6553
6554 GNULIB_OPENDIR=0;
6555 GNULIB_READDIR=0;
6556 GNULIB_REWINDDIR=0;
6557 GNULIB_CLOSEDIR=0;
6558 GNULIB_DIRFD=0;
6559 GNULIB_FDOPENDIR=0;
6560 GNULIB_SCANDIR=0;
6561 GNULIB_ALPHASORT=0;
6562 HAVE_OPENDIR=1;
6563 HAVE_READDIR=1;
6564 HAVE_REWINDDIR=1;
6565 HAVE_CLOSEDIR=1;
6566 HAVE_DECL_DIRFD=1;
6567 HAVE_DECL_FDOPENDIR=1;
6568 HAVE_FDOPENDIR=1;
6569 HAVE_SCANDIR=1;
6570 HAVE_ALPHASORT=1;
6571 REPLACE_OPENDIR=0;
6572 REPLACE_CLOSEDIR=0;
6573 REPLACE_DIRFD=0;
6574 REPLACE_FDOPENDIR=0;
6575
6576
6577
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
6579$as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
6580if test "${gl_cv_have_include_next+set}" = set; then :
6581 $as_echo_n "(cached) " >&6
6582else
6583 rm -rf conftestd1a conftestd1b conftestd2
6584 mkdir conftestd1a conftestd1b conftestd2
6585 cat <<EOF > conftestd1a/conftest.h
6586#define DEFINED_IN_CONFTESTD1
6587#include_next <conftest.h>
6588#ifdef DEFINED_IN_CONFTESTD2
6589int foo;
6590#else
88b48903
WN
6591#error "include_next doesn't work"
6592#endif
6593EOF
6594 cat <<EOF > conftestd1b/conftest.h
6595#define DEFINED_IN_CONFTESTD1
6596#include <stdio.h>
6597#include_next <conftest.h>
6598#ifdef DEFINED_IN_CONFTESTD2
6599int foo;
6600#else
6601#error "include_next doesn't work"
6602#endif
6603EOF
6604 cat <<EOF > conftestd2/conftest.h
6605#ifndef DEFINED_IN_CONFTESTD1
6606#error "include_next test doesn't work"
6607#endif
6608#define DEFINED_IN_CONFTESTD2
6609EOF
6610 gl_save_CPPFLAGS="$CPPFLAGS"
6611 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
6612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6613/* end confdefs.h. */
6614#include <conftest.h>
6615_ACEOF
6616if ac_fn_c_try_compile "$LINENO"; then :
6617 gl_cv_have_include_next=yes
6618else
6619 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
6620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6621/* end confdefs.h. */
6622#include <conftest.h>
6623_ACEOF
6624if ac_fn_c_try_compile "$LINENO"; then :
6625 gl_cv_have_include_next=buggy
6626else
6627 gl_cv_have_include_next=no
6628fi
6629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6630
6631fi
6632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6633 CPPFLAGS="$gl_save_CPPFLAGS"
6634 rm -rf conftestd1a conftestd1b conftestd2
6635
6636fi
6637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
6638$as_echo "$gl_cv_have_include_next" >&6; }
6639 PRAGMA_SYSTEM_HEADER=
6640 if test $gl_cv_have_include_next = yes; then
6641 INCLUDE_NEXT=include_next
6642 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6643 if test -n "$GCC"; then
6644 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
6645 fi
6646 else
6647 if test $gl_cv_have_include_next = buggy; then
6648 INCLUDE_NEXT=include
6649 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6650 else
6651 INCLUDE_NEXT=include
6652 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
6653 fi
6654 fi
6655
6656
6657
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
6659$as_echo_n "checking whether system header files limit the line length... " >&6; }
6660if test "${gl_cv_pragma_columns+set}" = set; then :
6661 $as_echo_n "(cached) " >&6
6662else
6663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6664/* end confdefs.h. */
6665
6666#ifdef __TANDEM
6667choke me
6668#endif
6669
6670_ACEOF
6671if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6672 $EGREP "choke me" >/dev/null 2>&1; then :
6673 gl_cv_pragma_columns=yes
6674else
6675 gl_cv_pragma_columns=no
6676fi
6677rm -f conftest*
6678
6679
6680fi
6681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
6682$as_echo "$gl_cv_pragma_columns" >&6; }
6683 if test $gl_cv_pragma_columns = yes; then
6684 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
6685 else
6686 PRAGMA_COLUMNS=
6687 fi
6688
6689
6690
6691
e26b6bb0 6692
e26b6bb0 6693
18848e28
GF
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
6695$as_echo_n "checking for complete errno.h... " >&6; }
6696if test "${gl_cv_header_errno_h_complete+set}" = set; then :
6697 $as_echo_n "(cached) " >&6
6698else
6699
6700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6701/* end confdefs.h. */
6702
6703#include <errno.h>
6704#if !defined ETXTBSY
6705booboo
6706#endif
6707#if !defined ENOMSG
6708booboo
6709#endif
6710#if !defined EIDRM
6711booboo
6712#endif
6713#if !defined ENOLINK
6714booboo
6715#endif
6716#if !defined EPROTO
6717booboo
6718#endif
6719#if !defined EMULTIHOP
6720booboo
6721#endif
6722#if !defined EBADMSG
6723booboo
6724#endif
6725#if !defined EOVERFLOW
6726booboo
6727#endif
6728#if !defined ENOTSUP
6729booboo
6730#endif
6731#if !defined ENETRESET
6732booboo
6733#endif
6734#if !defined ECONNABORTED
6735booboo
6736#endif
6737#if !defined ESTALE
6738booboo
6739#endif
6740#if !defined EDQUOT
6741booboo
6742#endif
6743#if !defined ECANCELED
6744booboo
6745#endif
6746#if !defined EOWNERDEAD
6747booboo
6748#endif
6749#if !defined ENOTRECOVERABLE
6750booboo
6751#endif
6752#if !defined EILSEQ
6753booboo
6754#endif
6755
6756_ACEOF
6757if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6758 $EGREP "booboo" >/dev/null 2>&1; then :
6759 gl_cv_header_errno_h_complete=no
6760else
6761 gl_cv_header_errno_h_complete=yes
6762fi
6763rm -f conftest*
6764
6765
6766fi
6767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
6768$as_echo "$gl_cv_header_errno_h_complete" >&6; }
6769 if test $gl_cv_header_errno_h_complete = yes; then
6770 ERRNO_H=''
6771 else
6772
6773
6774
6775
6776
6777
6778
6779
6780 if test $gl_cv_have_include_next = yes; then
6781 gl_cv_next_errno_h='<'errno.h'>'
6782 else
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
6784$as_echo_n "checking absolute name of <errno.h>... " >&6; }
6785if test "${gl_cv_next_errno_h+set}" = set; then :
6786 $as_echo_n "(cached) " >&6
6787else
6788
6789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6790/* end confdefs.h. */
6791#include <errno.h>
6792
6793_ACEOF
6794 case "$host_os" in
6795 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6796 *) gl_absname_cpp="$ac_cpp" ;;
6797 esac
6798
6799 case "$host_os" in
6800 mingw*)
6801 gl_dirsep_regex='[/\\]'
6802 ;;
6803 *)
6804 gl_dirsep_regex='\/'
6805 ;;
6806 esac
6807 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
6808
6809 gl_header_literal_regex=`echo 'errno.h' \
6810 | sed -e "$gl_make_literal_regex_sed"`
6811 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
6812 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
6813 s|^/[^/]|//&|
6814 p
6815 q
6816 }'
6817 gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6818 sed -n "$gl_absolute_header_sed"`'"'
6819
6820
6821fi
6822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
6823$as_echo "$gl_cv_next_errno_h" >&6; }
6824 fi
6825 NEXT_ERRNO_H=$gl_cv_next_errno_h
6826
6827 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6828 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6829 gl_next_as_first_directive='<'errno.h'>'
6830 else
6831 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6832 gl_next_as_first_directive=$gl_cv_next_errno_h
6833 fi
6834 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
6835
6836
6837
6838
6839 ERRNO_H='errno.h'
6840 fi
6841
6842 if test -n "$ERRNO_H"; then
6843 GL_GENERATE_ERRNO_H_TRUE=
6844 GL_GENERATE_ERRNO_H_FALSE='#'
6845else
6846 GL_GENERATE_ERRNO_H_TRUE='#'
6847 GL_GENERATE_ERRNO_H_FALSE=
6848fi
6849
6850
6851 if test -n "$ERRNO_H"; then
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
6853$as_echo_n "checking for EMULTIHOP value... " >&6; }
6854if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then :
6855 $as_echo_n "(cached) " >&6
6856else
6857
6858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6859/* end confdefs.h. */
6860
6861#include <errno.h>
6862#ifdef EMULTIHOP
6863yes
6864#endif
6865
6866_ACEOF
6867if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6868 $EGREP "yes" >/dev/null 2>&1; then :
6869 gl_cv_header_errno_h_EMULTIHOP=yes
6870else
6871 gl_cv_header_errno_h_EMULTIHOP=no
6872fi
6873rm -f conftest*
6874
6875 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
6876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6877/* end confdefs.h. */
6878
6879#define _XOPEN_SOURCE_EXTENDED 1
6880#include <errno.h>
6881#ifdef EMULTIHOP
6882yes
6883#endif
6884
6885_ACEOF
6886if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6887 $EGREP "yes" >/dev/null 2>&1; then :
6888 gl_cv_header_errno_h_EMULTIHOP=hidden
6889fi
6890rm -f conftest*
6891
6892 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
6893 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
6894#define _XOPEN_SOURCE_EXTENDED 1
6895#include <errno.h>
6896/* The following two lines are a workaround against an autoconf-2.52 bug. */
6897#include <stdio.h>
6898#include <stdlib.h>
6899"; then :
6900
6901fi
6902
6903 fi
6904 fi
6905
6906fi
6907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
6908$as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
6909 case $gl_cv_header_errno_h_EMULTIHOP in
6910 yes | no)
6911 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
6912 ;;
6913 *)
6914 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
6915 ;;
6916 esac
6917
6918
6919 fi
6920
6921
6922 if test -n "$ERRNO_H"; then
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
6924$as_echo_n "checking for ENOLINK value... " >&6; }
6925if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then :
6926 $as_echo_n "(cached) " >&6
6927else
6928
6929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6930/* end confdefs.h. */
6931
6932#include <errno.h>
6933#ifdef ENOLINK
6934yes
6935#endif
6936
6937_ACEOF
6938if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6939 $EGREP "yes" >/dev/null 2>&1; then :
6940 gl_cv_header_errno_h_ENOLINK=yes
6941else
6942 gl_cv_header_errno_h_ENOLINK=no
6943fi
6944rm -f conftest*
6945
6946 if test $gl_cv_header_errno_h_ENOLINK = no; then
6947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6948/* end confdefs.h. */
6949
6950#define _XOPEN_SOURCE_EXTENDED 1
6951#include <errno.h>
6952#ifdef ENOLINK
6953yes
6954#endif
6955
6956_ACEOF
6957if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6958 $EGREP "yes" >/dev/null 2>&1; then :
6959 gl_cv_header_errno_h_ENOLINK=hidden
6960fi
6961rm -f conftest*
6962
6963 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
6964 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
6965#define _XOPEN_SOURCE_EXTENDED 1
6966#include <errno.h>
6967/* The following two lines are a workaround against an autoconf-2.52 bug. */
6968#include <stdio.h>
6969#include <stdlib.h>
6970"; then :
6971
6972fi
6973
6974 fi
6975 fi
6976
6977fi
6978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
6979$as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
6980 case $gl_cv_header_errno_h_ENOLINK in
6981 yes | no)
6982 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
6983 ;;
6984 *)
6985 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
6986 ;;
6987 esac
6988
6989
6990 fi
6991
6992
6993 if test -n "$ERRNO_H"; then
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
6995$as_echo_n "checking for EOVERFLOW value... " >&6; }
6996if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then :
6997 $as_echo_n "(cached) " >&6
6998else
6999
7000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7001/* end confdefs.h. */
7002
7003#include <errno.h>
7004#ifdef EOVERFLOW
7005yes
7006#endif
7007
7008_ACEOF
7009if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7010 $EGREP "yes" >/dev/null 2>&1; then :
7011 gl_cv_header_errno_h_EOVERFLOW=yes
7012else
7013 gl_cv_header_errno_h_EOVERFLOW=no
7014fi
7015rm -f conftest*
7016
7017 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
7018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7019/* end confdefs.h. */
7020
7021#define _XOPEN_SOURCE_EXTENDED 1
7022#include <errno.h>
7023#ifdef EOVERFLOW
7024yes
7025#endif
7026
7027_ACEOF
7028if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7029 $EGREP "yes" >/dev/null 2>&1; then :
7030 gl_cv_header_errno_h_EOVERFLOW=hidden
7031fi
7032rm -f conftest*
7033
7034 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
7035 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
7036#define _XOPEN_SOURCE_EXTENDED 1
7037#include <errno.h>
7038/* The following two lines are a workaround against an autoconf-2.52 bug. */
7039#include <stdio.h>
7040#include <stdlib.h>
7041"; then :
7042
7043fi
7044
7045 fi
7046 fi
7047
7048fi
7049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
7050$as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
7051 case $gl_cv_header_errno_h_EOVERFLOW in
7052 yes | no)
7053 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
7054 ;;
7055 *)
7056 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
7057 ;;
7058 esac
7059
7060
7061 fi
7062
7063
7064
7065
63ce7108
TT
7066
7067
7068
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
7070$as_echo_n "checking for mbstate_t... " >&6; }
7071if test "${ac_cv_type_mbstate_t+set}" = set; then :
7072 $as_echo_n "(cached) " >&6
7073else
7074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7075/* end confdefs.h. */
7076$ac_includes_default
7077/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
7078 <wchar.h>.
7079 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7080 included before <wchar.h>. */
7081#include <stddef.h>
7082#include <stdio.h>
7083#include <time.h>
7084#include <wchar.h>
7085int
7086main ()
7087{
7088mbstate_t x; return sizeof x;
7089 ;
7090 return 0;
7091}
7092_ACEOF
7093if ac_fn_c_try_compile "$LINENO"; then :
7094 ac_cv_type_mbstate_t=yes
7095else
7096 ac_cv_type_mbstate_t=no
7097fi
7098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7099fi
7100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
7101$as_echo "$ac_cv_type_mbstate_t" >&6; }
7102 if test $ac_cv_type_mbstate_t = yes; then
7103
7104$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
7105
7106 else
7107
7108$as_echo "#define mbstate_t int" >>confdefs.h
7109
7110 fi
7111
7112
7113
7114
63ce7108
TT
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
63ce7108
TT
7131 GNULIB_ACOSF=0;
7132 GNULIB_ACOSL=0;
7133 GNULIB_ASINF=0;
7134 GNULIB_ASINL=0;
7135 GNULIB_ATANF=0;
7136 GNULIB_ATANL=0;
7137 GNULIB_ATAN2F=0;
7138 GNULIB_CBRT=0;
7139 GNULIB_CBRTF=0;
7140 GNULIB_CBRTL=0;
7141 GNULIB_CEIL=0;
7142 GNULIB_CEILF=0;
7143 GNULIB_CEILL=0;
7144 GNULIB_COPYSIGN=0;
7145 GNULIB_COPYSIGNF=0;
88b48903
WN
7146 GNULIB_COPYSIGNL=0;
7147 GNULIB_COSF=0;
7148 GNULIB_COSL=0;
7149 GNULIB_COSHF=0;
7150 GNULIB_EXPF=0;
7151 GNULIB_EXPL=0;
7152 GNULIB_EXP2=0;
7153 GNULIB_EXP2F=0;
7154 GNULIB_EXP2L=0;
7155 GNULIB_EXPM1=0;
7156 GNULIB_EXPM1F=0;
7157 GNULIB_EXPM1L=0;
7158 GNULIB_FABSF=0;
7159 GNULIB_FABSL=0;
7160 GNULIB_FLOOR=0;
7161 GNULIB_FLOORF=0;
7162 GNULIB_FLOORL=0;
7163 GNULIB_FMA=0;
7164 GNULIB_FMAF=0;
7165 GNULIB_FMAL=0;
7166 GNULIB_FMOD=0;
7167 GNULIB_FMODF=0;
7168 GNULIB_FMODL=0;
7169 GNULIB_FREXPF=0;
7170 GNULIB_FREXP=0;
7171 GNULIB_FREXPL=0;
7172 GNULIB_HYPOT=0;
7173 GNULIB_HYPOTF=0;
7174 GNULIB_HYPOTL=0;
7175 GNULIB_ILOGB=0;
7176 GNULIB_ILOGBF=0;
7177 GNULIB_ILOGBL=0;
7178 GNULIB_ISFINITE=0;
7179 GNULIB_ISINF=0;
7180 GNULIB_ISNAN=0;
7181 GNULIB_ISNANF=0;
7182 GNULIB_ISNAND=0;
7183 GNULIB_ISNANL=0;
7184 GNULIB_LDEXPF=0;
7185 GNULIB_LDEXPL=0;
7186 GNULIB_LOG=0;
7187 GNULIB_LOGF=0;
7188 GNULIB_LOGL=0;
7189 GNULIB_LOG10=0;
7190 GNULIB_LOG10F=0;
7191 GNULIB_LOG10L=0;
7192 GNULIB_LOG1P=0;
7193 GNULIB_LOG1PF=0;
7194 GNULIB_LOG1PL=0;
7195 GNULIB_LOG2=0;
7196 GNULIB_LOG2F=0;
7197 GNULIB_LOG2L=0;
7198 GNULIB_LOGB=0;
7199 GNULIB_LOGBF=0;
7200 GNULIB_LOGBL=0;
7201 GNULIB_MODF=0;
7202 GNULIB_MODFF=0;
7203 GNULIB_MODFL=0;
7204 GNULIB_POWF=0;
7205 GNULIB_REMAINDER=0;
7206 GNULIB_REMAINDERF=0;
7207 GNULIB_REMAINDERL=0;
7208 GNULIB_RINT=0;
7209 GNULIB_RINTF=0;
7210 GNULIB_RINTL=0;
7211 GNULIB_ROUND=0;
7212 GNULIB_ROUNDF=0;
7213 GNULIB_ROUNDL=0;
7214 GNULIB_SIGNBIT=0;
7215 GNULIB_SINF=0;
7216 GNULIB_SINL=0;
7217 GNULIB_SINHF=0;
7218 GNULIB_SQRTF=0;
7219 GNULIB_SQRTL=0;
7220 GNULIB_TANF=0;
7221 GNULIB_TANL=0;
7222 GNULIB_TANHF=0;
7223 GNULIB_TRUNC=0;
7224 GNULIB_TRUNCF=0;
7225 GNULIB_TRUNCL=0;
7226 HAVE_ACOSF=1;
7227 HAVE_ACOSL=1;
7228 HAVE_ASINF=1;
7229 HAVE_ASINL=1;
7230 HAVE_ATANF=1;
7231 HAVE_ATANL=1;
7232 HAVE_ATAN2F=1;
7233 HAVE_CBRT=1;
7234 HAVE_CBRTF=1;
7235 HAVE_CBRTL=1;
7236 HAVE_COPYSIGN=1;
7237 HAVE_COPYSIGNL=1;
7238 HAVE_COSF=1;
7239 HAVE_COSL=1;
7240 HAVE_COSHF=1;
7241 HAVE_EXPF=1;
7242 HAVE_EXPL=1;
7243 HAVE_EXPM1=1;
7244 HAVE_EXPM1F=1;
7245 HAVE_FABSF=1;
7246 HAVE_FABSL=1;
7247 HAVE_FMA=1;
7248 HAVE_FMAF=1;
7249 HAVE_FMAL=1;
7250 HAVE_FMODF=1;
7251 HAVE_FMODL=1;
7252 HAVE_FREXPF=1;
7253 HAVE_HYPOTF=1;
7254 HAVE_HYPOTL=1;
7255 HAVE_ILOGB=1;
7256 HAVE_ILOGBF=1;
7257 HAVE_ILOGBL=1;
7258 HAVE_ISNANF=1;
7259 HAVE_ISNAND=1;
7260 HAVE_ISNANL=1;
7261 HAVE_LDEXPF=1;
7262 HAVE_LOGF=1;
7263 HAVE_LOGL=1;
7264 HAVE_LOG10F=1;
7265 HAVE_LOG10L=1;
7266 HAVE_LOG1P=1;
7267 HAVE_LOG1PF=1;
7268 HAVE_LOG1PL=1;
7269 HAVE_LOGBF=1;
7270 HAVE_LOGBL=1;
7271 HAVE_MODFF=1;
7272 HAVE_MODFL=1;
7273 HAVE_POWF=1;
7274 HAVE_REMAINDER=1;
7275 HAVE_REMAINDERF=1;
7276 HAVE_RINT=1;
7277 HAVE_RINTL=1;
7278 HAVE_SINF=1;
7279 HAVE_SINL=1;
7280 HAVE_SINHF=1;
7281 HAVE_SQRTF=1;
7282 HAVE_SQRTL=1;
7283 HAVE_TANF=1;
7284 HAVE_TANL=1;
7285 HAVE_TANHF=1;
7286 HAVE_DECL_ACOSL=1;
7287 HAVE_DECL_ASINL=1;
7288 HAVE_DECL_ATANL=1;
7289 HAVE_DECL_CBRTF=1;
7290 HAVE_DECL_CBRTL=1;
7291 HAVE_DECL_CEILF=1;
7292 HAVE_DECL_CEILL=1;
7293 HAVE_DECL_COPYSIGNF=1;
7294 HAVE_DECL_COSL=1;
7295 HAVE_DECL_EXPL=1;
7296 HAVE_DECL_EXP2=1;
7297 HAVE_DECL_EXP2F=1;
7298 HAVE_DECL_EXP2L=1;
7299 HAVE_DECL_EXPM1L=1;
7300 HAVE_DECL_FLOORF=1;
7301 HAVE_DECL_FLOORL=1;
7302 HAVE_DECL_FREXPL=1;
7303 HAVE_DECL_LDEXPL=1;
7304 HAVE_DECL_LOGL=1;
7305 HAVE_DECL_LOG10L=1;
7306 HAVE_DECL_LOG2=1;
7307 HAVE_DECL_LOG2F=1;
7308 HAVE_DECL_LOG2L=1;
7309 HAVE_DECL_LOGB=1;
7310 HAVE_DECL_REMAINDER=1;
7311 HAVE_DECL_REMAINDERL=1;
7312 HAVE_DECL_RINTF=1;
7313 HAVE_DECL_ROUND=1;
7314 HAVE_DECL_ROUNDF=1;
7315 HAVE_DECL_ROUNDL=1;
7316 HAVE_DECL_SINL=1;
7317 HAVE_DECL_SQRTL=1;
7318 HAVE_DECL_TANL=1;
7319 HAVE_DECL_TRUNC=1;
7320 HAVE_DECL_TRUNCF=1;
7321 HAVE_DECL_TRUNCL=1;
7322 REPLACE_CBRTF=0;
7323 REPLACE_CBRTL=0;
7324 REPLACE_CEIL=0;
7325 REPLACE_CEILF=0;
7326 REPLACE_CEILL=0;
7327 REPLACE_EXPM1=0;
7328 REPLACE_EXPM1F=0;
7329 REPLACE_EXP2=0;
7330 REPLACE_EXP2L=0;
7331 REPLACE_FABSL=0;
7332 REPLACE_FLOOR=0;
7333 REPLACE_FLOORF=0;
7334 REPLACE_FLOORL=0;
7335 REPLACE_FMA=0;
7336 REPLACE_FMAF=0;
7337 REPLACE_FMAL=0;
7338 REPLACE_FMOD=0;
7339 REPLACE_FMODF=0;
7340 REPLACE_FMODL=0;
7341 REPLACE_FREXPF=0;
7342 REPLACE_FREXP=0;
7343 REPLACE_FREXPL=0;
7344 REPLACE_HUGE_VAL=0;
7345 REPLACE_HYPOT=0;
7346 REPLACE_HYPOTF=0;
7347 REPLACE_HYPOTL=0;
7348 REPLACE_ILOGB=0;
7349 REPLACE_ILOGBF=0;
7350 REPLACE_ISFINITE=0;
7351 REPLACE_ISINF=0;
7352 REPLACE_ISNAN=0;
7353 REPLACE_LDEXPL=0;
7354 REPLACE_LOG=0;
7355 REPLACE_LOGF=0;
7356 REPLACE_LOGL=0;
7357 REPLACE_LOG10=0;
7358 REPLACE_LOG10F=0;
7359 REPLACE_LOG10L=0;
7360 REPLACE_LOG1P=0;
7361 REPLACE_LOG1PF=0;
7362 REPLACE_LOG1PL=0;
7363 REPLACE_LOG2=0;
7364 REPLACE_LOG2F=0;
7365 REPLACE_LOG2L=0;
7366 REPLACE_LOGB=0;
7367 REPLACE_LOGBF=0;
7368 REPLACE_LOGBL=0;
7369 REPLACE_MODF=0;
7370 REPLACE_MODFF=0;
7371 REPLACE_MODFL=0;
7372 REPLACE_NAN=0;
7373 REPLACE_REMAINDER=0;
7374 REPLACE_REMAINDERF=0;
7375 REPLACE_REMAINDERL=0;
7376 REPLACE_ROUND=0;
7377 REPLACE_ROUNDF=0;
7378 REPLACE_ROUNDL=0;
7379 REPLACE_SIGNBIT=0;
7380 REPLACE_SIGNBIT_USING_GCC=0;
7381 REPLACE_SQRTL=0;
7382 REPLACE_TRUNC=0;
7383 REPLACE_TRUNCF=0;
7384 REPLACE_TRUNCL=0;
7385
7386
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used without linking with libm" >&5
7388$as_echo_n "checking whether frexp() can be used without linking with libm... " >&6; }
7389if test "${gl_cv_func_frexp_no_libm+set}" = set; then :
7390 $as_echo_n "(cached) " >&6
7391else
7392
7393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7394/* end confdefs.h. */
7395#include <math.h>
7396 double x;
7397int
7398main ()
7399{
7400int e; return frexp (x, &e) > 0;
7401 ;
7402 return 0;
7403}
7404_ACEOF
7405if ac_fn_c_try_link "$LINENO"; then :
7406 gl_cv_func_frexp_no_libm=yes
7407else
7408 gl_cv_func_frexp_no_libm=no
7409fi
7410rm -f core conftest.err conftest.$ac_objext \
7411 conftest$ac_exeext conftest.$ac_ext
7412
7413fi
7414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
7415$as_echo "$gl_cv_func_frexp_no_libm" >&6; }
7416
7417
7418
7419
88b48903
WN
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double and double are the same" >&5
7421$as_echo_n "checking whether long double and double are the same... " >&6; }
7422if test "${gl_cv_long_double_equals_double+set}" = set; then :
7423 $as_echo_n "(cached) " >&6
7424else
7425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7426/* end confdefs.h. */
7427#include <float.h>
7428int
7429main ()
7430{
7431typedef int check[sizeof (long double) == sizeof (double)
7432 && LDBL_MANT_DIG == DBL_MANT_DIG
7433 && LDBL_MAX_EXP == DBL_MAX_EXP
7434 && LDBL_MIN_EXP == DBL_MIN_EXP
7435 ? 1 : -1];
7436
7437 ;
7438 return 0;
7439}
7440_ACEOF
7441if ac_fn_c_try_compile "$LINENO"; then :
7442 gl_cv_long_double_equals_double=yes
7443else
7444 gl_cv_long_double_equals_double=no
7445fi
7446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7447
7448fi
7449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_double_equals_double" >&5
7450$as_echo "$gl_cv_long_double_equals_double" >&6; }
7451 if test $gl_cv_long_double_equals_double = yes; then
7452
7453$as_echo "#define HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1" >>confdefs.h
7454
7455 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=1
7456 else
7457 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=0
7458 fi
7459
7460
7461
8690e634
JK
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7463$as_echo_n "checking for unsigned long long int... " >&6; }
7464if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
7465 $as_echo_n "(cached) " >&6
7466else
7467 ac_cv_type_unsigned_long_long_int=yes
7468 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7470/* end confdefs.h. */
7471
7472 /* For now, do not test the preprocessor; as of 2007 there are too many
7473 implementations with broken preprocessors. Perhaps this can
7474 be revisited in 2012. In the meantime, code should not expect
7475 #if to work with literals wider than 32 bits. */
7476 /* Test literals. */
7477 long long int ll = 9223372036854775807ll;
7478 long long int nll = -9223372036854775807LL;
7479 unsigned long long int ull = 18446744073709551615ULL;
7480 /* Test constant expressions. */
7481 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7482 ? 1 : -1)];
7483 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7484 ? 1 : -1)];
7485 int i = 63;
7486int
7487main ()
7488{
7489/* Test availability of runtime routines for shift and division. */
7490 long long int llmax = 9223372036854775807ll;
7491 unsigned long long int ullmax = 18446744073709551615ull;
7492 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7493 | (llmax / ll) | (llmax % ll)
7494 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7495 | (ullmax / ull) | (ullmax % ull));
7496 ;
7497 return 0;
7498}
7499
7500_ACEOF
7501if ac_fn_c_try_link "$LINENO"; then :
7502
7503else
7504 ac_cv_type_unsigned_long_long_int=no
7505fi
7506rm -f core conftest.err conftest.$ac_objext \
7507 conftest$ac_exeext conftest.$ac_ext
7508 fi
7509fi
7510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7511$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7512 if test $ac_cv_type_unsigned_long_long_int = yes; then
7513
7514$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
7515
7516 fi
7517
7518
7519
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
7521$as_echo_n "checking for long long int... " >&6; }
7522if test "${ac_cv_type_long_long_int+set}" = set; then :
7523 $as_echo_n "(cached) " >&6
7524else
7525 ac_cv_type_long_long_int=yes
7526 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7527 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
7528 if test $ac_cv_type_long_long_int = yes; then
7529 if test "$cross_compiling" = yes; then :
7530 :
7531else
7532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7533/* end confdefs.h. */
7534#include <limits.h>
7535 #ifndef LLONG_MAX
7536 # define HALF \
7537 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
7538 # define LLONG_MAX (HALF - 1 + HALF)
7539 #endif
7540int
7541main ()
7542{
7543long long int n = 1;
7544 int i;
7545 for (i = 0; ; i++)
7546 {
7547 long long int m = n << i;
7548 if (m >> i != n)
7549 return 1;
7550 if (LLONG_MAX / 2 < m)
7551 break;
7552 }
7553 return 0;
7554 ;
7555 return 0;
7556}
7557_ACEOF
7558if ac_fn_c_try_run "$LINENO"; then :
7559
7560else
7561 ac_cv_type_long_long_int=no
7562fi
7563rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7564 conftest.$ac_objext conftest.beam conftest.$ac_ext
7565fi
7566
7567 fi
7568 fi
7569fi
7570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
7571$as_echo "$ac_cv_type_long_long_int" >&6; }
7572 if test $ac_cv_type_long_long_int = yes; then
7573
7574$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
7575
7576 fi
7577
7578
7579
7580
7581
7582
88b48903
WN
7583 gl_cv_c_multiarch=no
7584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a143c6de 7585/* end confdefs.h. */
88b48903
WN
7586#ifndef __APPLE_CC__
7587 not a universal capable compiler
7588 #endif
7589 typedef int dummy;
7590
8690e634
JK
7591_ACEOF
7592if ac_fn_c_try_compile "$LINENO"; then :
7593
7594 arch=
7595 prev=
7596 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
7597 if test -n "$prev"; then
7598 case $word in
7599 i?86 | x86_64 | ppc | ppc64)
7600 if test -z "$arch" || test "$arch" = "$word"; then
7601 arch="$word"
7602 else
7603 gl_cv_c_multiarch=yes
7604 fi
7605 ;;
7606 esac
7607 prev=
7608 else
7609 if test "x$word" = "x-arch"; then
7610 prev=arch
7611 fi
7612 fi
7613 done
7614
7615fi
7616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7617 if test $gl_cv_c_multiarch = yes; then
7618 APPLE_UNIVERSAL_BUILD=1
7619 else
7620 APPLE_UNIVERSAL_BUILD=0
7621 fi
7622
7623
7624
7625
7626
7627 if test $ac_cv_type_long_long_int = yes; then
7628 HAVE_LONG_LONG_INT=1
7629 else
7630 HAVE_LONG_LONG_INT=0
7631 fi
7632
7633
7634 if test $ac_cv_type_unsigned_long_long_int = yes; then
7635 HAVE_UNSIGNED_LONG_LONG_INT=1
7636 else
7637 HAVE_UNSIGNED_LONG_LONG_INT=0
7638 fi
7639
7640
7641
8690e634
JK
7642 if test $ac_cv_header_wchar_h = yes; then
7643 HAVE_WCHAR_H=1
7644 else
7645 HAVE_WCHAR_H=0
7646 fi
7647
7648
7649 if test $ac_cv_header_inttypes_h = yes; then
7650 HAVE_INTTYPES_H=1
7651 else
7652 HAVE_INTTYPES_H=0
7653 fi
7654
7655
7656 if test $ac_cv_header_sys_types_h = yes; then
7657 HAVE_SYS_TYPES_H=1
7658 else
7659 HAVE_SYS_TYPES_H=0
7660 fi
7661
7662
7663
7664
7665
7666
7667
7668
8690e634
JK
7669
7670
7671
7672 if test $gl_cv_have_include_next = yes; then
7673 gl_cv_next_stdint_h='<'stdint.h'>'
7674 else
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
7676$as_echo_n "checking absolute name of <stdint.h>... " >&6; }
7677if test "${gl_cv_next_stdint_h+set}" = set; then :
7678 $as_echo_n "(cached) " >&6
7679else
7680
7681 if test $ac_cv_header_stdint_h = yes; then
7682
7683
7684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7685/* end confdefs.h. */
7686#include <stdint.h>
7687
7688_ACEOF
7689 case "$host_os" in
7690 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7691 *) gl_absname_cpp="$ac_cpp" ;;
7692 esac
7693
7694 case "$host_os" in
7695 mingw*)
7696 gl_dirsep_regex='[/\\]'
7697 ;;
7698 *)
7699 gl_dirsep_regex='\/'
7700 ;;
7701 esac
7702 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
7703
7704 gl_header_literal_regex=`echo 'stdint.h' \
7705 | sed -e "$gl_make_literal_regex_sed"`
7706 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7707 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7708 s|^/[^/]|//&|
7709 p
7710 q
7711 }'
7712 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7713 sed -n "$gl_absolute_header_sed"`'"'
7714 else
7715 gl_cv_next_stdint_h='<'stdint.h'>'
7716 fi
7717
7718
7719fi
7720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
7721$as_echo "$gl_cv_next_stdint_h" >&6; }
7722 fi
7723 NEXT_STDINT_H=$gl_cv_next_stdint_h
7724
7725 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7726 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7727 gl_next_as_first_directive='<'stdint.h'>'
7728 else
7729 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7730 gl_next_as_first_directive=$gl_cv_next_stdint_h
7731 fi
7732 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
7733
7734
7735
7736
7737 if test $ac_cv_header_stdint_h = yes; then
7738 HAVE_STDINT_H=1
7739 else
7740 HAVE_STDINT_H=0
7741 fi
7742
7743
7744 if test $ac_cv_header_stdint_h = yes; then
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
7746$as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
7747if test "${gl_cv_header_working_stdint_h+set}" = set; then :
7748 $as_echo_n "(cached) " >&6
7749else
7750 gl_cv_header_working_stdint_h=no
7751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7752/* end confdefs.h. */
7753
7754
7755#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
7756#include <stdint.h>
7757/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
7758#if !(defined WCHAR_MIN && defined WCHAR_MAX)
7759#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
7760#endif
7761
7762
7763 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7764 included before <wchar.h>. */
7765 #include <stddef.h>
7766 #include <signal.h>
7767 #if HAVE_WCHAR_H
7768 # include <stdio.h>
7769 # include <time.h>
7770 # include <wchar.h>
7771 #endif
7772
7773
7774#ifdef INT8_MAX
7775int8_t a1 = INT8_MAX;
7776int8_t a1min = INT8_MIN;
7777#endif
7778#ifdef INT16_MAX
7779int16_t a2 = INT16_MAX;
7780int16_t a2min = INT16_MIN;
7781#endif
7782#ifdef INT32_MAX
7783int32_t a3 = INT32_MAX;
7784int32_t a3min = INT32_MIN;
7785#endif
7786#ifdef INT64_MAX
7787int64_t a4 = INT64_MAX;
7788int64_t a4min = INT64_MIN;
7789#endif
7790#ifdef UINT8_MAX
7791uint8_t b1 = UINT8_MAX;
7792#else
7793typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
7794#endif
7795#ifdef UINT16_MAX
7796uint16_t b2 = UINT16_MAX;
7797#endif
7798#ifdef UINT32_MAX
7799uint32_t b3 = UINT32_MAX;
7800#endif
7801#ifdef UINT64_MAX
7802uint64_t b4 = UINT64_MAX;
7803#endif
7804int_least8_t c1 = INT8_C (0x7f);
7805int_least8_t c1max = INT_LEAST8_MAX;
7806int_least8_t c1min = INT_LEAST8_MIN;
7807int_least16_t c2 = INT16_C (0x7fff);
7808int_least16_t c2max = INT_LEAST16_MAX;
7809int_least16_t c2min = INT_LEAST16_MIN;
7810int_least32_t c3 = INT32_C (0x7fffffff);
7811int_least32_t c3max = INT_LEAST32_MAX;
7812int_least32_t c3min = INT_LEAST32_MIN;
7813int_least64_t c4 = INT64_C (0x7fffffffffffffff);
7814int_least64_t c4max = INT_LEAST64_MAX;
7815int_least64_t c4min = INT_LEAST64_MIN;
7816uint_least8_t d1 = UINT8_C (0xff);
7817uint_least8_t d1max = UINT_LEAST8_MAX;
7818uint_least16_t d2 = UINT16_C (0xffff);
7819uint_least16_t d2max = UINT_LEAST16_MAX;
7820uint_least32_t d3 = UINT32_C (0xffffffff);
7821uint_least32_t d3max = UINT_LEAST32_MAX;
7822uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
7823uint_least64_t d4max = UINT_LEAST64_MAX;
7824int_fast8_t e1 = INT_FAST8_MAX;
7825int_fast8_t e1min = INT_FAST8_MIN;
7826int_fast16_t e2 = INT_FAST16_MAX;
7827int_fast16_t e2min = INT_FAST16_MIN;
7828int_fast32_t e3 = INT_FAST32_MAX;
7829int_fast32_t e3min = INT_FAST32_MIN;
7830int_fast64_t e4 = INT_FAST64_MAX;
7831int_fast64_t e4min = INT_FAST64_MIN;
7832uint_fast8_t f1 = UINT_FAST8_MAX;
7833uint_fast16_t f2 = UINT_FAST16_MAX;
7834uint_fast32_t f3 = UINT_FAST32_MAX;
7835uint_fast64_t f4 = UINT_FAST64_MAX;
7836#ifdef INTPTR_MAX
7837intptr_t g = INTPTR_MAX;
7838intptr_t gmin = INTPTR_MIN;
7839#endif
7840#ifdef UINTPTR_MAX
7841uintptr_t h = UINTPTR_MAX;
7842#endif
7843intmax_t i = INTMAX_MAX;
7844uintmax_t j = UINTMAX_MAX;
7845
7846#include <limits.h> /* for CHAR_BIT */
7847#define TYPE_MINIMUM(t) \
7848 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
7849#define TYPE_MAXIMUM(t) \
7850 ((t) ((t) 0 < (t) -1 \
7851 ? (t) -1 \
7852 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
7853struct s {
7854 int check_PTRDIFF:
7855 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
7856 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
7857 ? 1 : -1;
7858 /* Detect bug in FreeBSD 6.0 / ia64. */
7859 int check_SIG_ATOMIC:
7860 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
7861 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
7862 ? 1 : -1;
7863 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
7864 int check_WCHAR:
7865 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
7866 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
7867 ? 1 : -1;
7868 /* Detect bug in mingw. */
7869 int check_WINT:
7870 WINT_MIN == TYPE_MINIMUM (wint_t)
7871 && WINT_MAX == TYPE_MAXIMUM (wint_t)
7872 ? 1 : -1;
7873
7874 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
7875 int check_UINT8_C:
7876 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
7877 int check_UINT16_C:
7878 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
7879
7880 /* Detect bugs in OpenBSD 3.9 stdint.h. */
7881#ifdef UINT8_MAX
7882 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
7883#endif
7884#ifdef UINT16_MAX
7885 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
7886#endif
7887#ifdef UINT32_MAX
7888 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
7889#endif
7890#ifdef UINT64_MAX
7891 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
7892#endif
7893 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
7894 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
7895 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
7896 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
7897 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
7898 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
7899 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
7900 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
7901 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
7902 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
7903 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
7904};
7905
7906int
7907main ()
7908{
7909
7910 ;
7911 return 0;
7912}
7913_ACEOF
7914if ac_fn_c_try_compile "$LINENO"; then :
7915 if test "$cross_compiling" = yes; then :
7916 gl_cv_header_working_stdint_h=yes
7917
7918else
7919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7920/* end confdefs.h. */
7921
7922
7923#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
7924#include <stdint.h>
7925
7926
7927 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7928 included before <wchar.h>. */
7929 #include <stddef.h>
7930 #include <signal.h>
7931 #if HAVE_WCHAR_H
7932 # include <stdio.h>
7933 # include <time.h>
7934 # include <wchar.h>
7935 #endif
7936
7937
7938#include <stdio.h>
7939#include <string.h>
7940#define MVAL(macro) MVAL1(macro)
7941#define MVAL1(expression) #expression
7942static const char *macro_values[] =
7943 {
7944#ifdef INT8_MAX
7945 MVAL (INT8_MAX),
7946#endif
7947#ifdef INT16_MAX
7948 MVAL (INT16_MAX),
7949#endif
7950#ifdef INT32_MAX
7951 MVAL (INT32_MAX),
7952#endif
7953#ifdef INT64_MAX
7954 MVAL (INT64_MAX),
7955#endif
7956#ifdef UINT8_MAX
7957 MVAL (UINT8_MAX),
7958#endif
7959#ifdef UINT16_MAX
7960 MVAL (UINT16_MAX),
7961#endif
7962#ifdef UINT32_MAX
7963 MVAL (UINT32_MAX),
7964#endif
7965#ifdef UINT64_MAX
7966 MVAL (UINT64_MAX),
7967#endif
7968 NULL
7969 };
7970
7971int
7972main ()
7973{
7974
7975 const char **mv;
7976 for (mv = macro_values; *mv != NULL; mv++)
7977 {
7978 const char *value = *mv;
7979 /* Test whether it looks like a cast expression. */
7980 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
7981 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
7982 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
7983 || strncmp (value, "((int)"/*)*/, 6) == 0
7984 || strncmp (value, "((signed short)"/*)*/, 15) == 0
7985 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
7986 return mv - macro_values + 1;
7987 }
7988 return 0;
7989
7990 ;
7991 return 0;
7992}
7993_ACEOF
7994if ac_fn_c_try_run "$LINENO"; then :
7995 gl_cv_header_working_stdint_h=yes
7996fi
7997rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7998 conftest.$ac_objext conftest.beam conftest.$ac_ext
7999fi
8000
8001
8002fi
8003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8004
8005fi
8006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
8007$as_echo "$gl_cv_header_working_stdint_h" >&6; }
8008 fi
8009 if test "$gl_cv_header_working_stdint_h" = yes; then
8010 STDINT_H=
8011 else
8012 for ac_header in sys/inttypes.h sys/bitypes.h
8013do :
8014 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8015ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8016eval as_val=\$$as_ac_Header
8017 if test "x$as_val" = x""yes; then :
8018 cat >>confdefs.h <<_ACEOF
8019#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8020_ACEOF
8021
8022fi
8023
8024done
8025
8026 if test $ac_cv_header_sys_inttypes_h = yes; then
8027 HAVE_SYS_INTTYPES_H=1
8028 else
8029 HAVE_SYS_INTTYPES_H=0
8030 fi
8031
8032 if test $ac_cv_header_sys_bitypes_h = yes; then
8033 HAVE_SYS_BITYPES_H=1
8034 else
8035 HAVE_SYS_BITYPES_H=0
8036 fi
8037
8038
8039
8040
8041 if test $APPLE_UNIVERSAL_BUILD = 0; then
8042
8043
8044 for gltype in ptrdiff_t size_t ; do
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
8046$as_echo_n "checking for bit size of $gltype... " >&6; }
8047if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
8048 $as_echo_n "(cached) " >&6
8049else
8050 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
8051 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8052 included before <wchar.h>. */
8053 #include <stddef.h>
8054 #include <signal.h>
8055 #if HAVE_WCHAR_H
8056 # include <stdio.h>
8057 # include <time.h>
8058 # include <wchar.h>
8059 #endif
8060
8061#include <limits.h>"; then :
8062
8063else
8064 result=unknown
8065fi
8066
8067 eval gl_cv_bitsizeof_${gltype}=\$result
8068
8069fi
8070eval ac_res=\$gl_cv_bitsizeof_${gltype}
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8072$as_echo "$ac_res" >&6; }
8073 eval result=\$gl_cv_bitsizeof_${gltype}
8074 if test $result = unknown; then
8075 result=0
8076 fi
8077 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8078 cat >>confdefs.h <<_ACEOF
8079#define BITSIZEOF_${GLTYPE} $result
8080_ACEOF
8081
8082 eval BITSIZEOF_${GLTYPE}=\$result
8083 done
8084
8085
8086 fi
8087
8088
8089 for gltype in sig_atomic_t wchar_t wint_t ; do
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
8091$as_echo_n "checking for bit size of $gltype... " >&6; }
8092if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
8093 $as_echo_n "(cached) " >&6
8094else
8095 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
8096 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8097 included before <wchar.h>. */
8098 #include <stddef.h>
8099 #include <signal.h>
8100 #if HAVE_WCHAR_H
8101 # include <stdio.h>
8102 # include <time.h>
8103 # include <wchar.h>
8104 #endif
8105
8106#include <limits.h>"; then :
8107
8108else
8109 result=unknown
8110fi
8111
8112 eval gl_cv_bitsizeof_${gltype}=\$result
8113
8114fi
8115eval ac_res=\$gl_cv_bitsizeof_${gltype}
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8117$as_echo "$ac_res" >&6; }
8118 eval result=\$gl_cv_bitsizeof_${gltype}
8119 if test $result = unknown; then
8120 result=0
8121 fi
8122 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8123 cat >>confdefs.h <<_ACEOF
8124#define BITSIZEOF_${GLTYPE} $result
8125_ACEOF
8126
8127 eval BITSIZEOF_${GLTYPE}=\$result
8128 done
8129
8130
8131
8132
8133 for gltype in sig_atomic_t wchar_t wint_t ; do
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
8135$as_echo_n "checking whether $gltype is signed... " >&6; }
8136if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
8137 $as_echo_n "(cached) " >&6
8138else
8139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8140/* end confdefs.h. */
8141
8142 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8143 included before <wchar.h>. */
8144 #include <stddef.h>
8145 #include <signal.h>
8146 #if HAVE_WCHAR_H
8147 # include <stdio.h>
8148 # include <time.h>
8149 # include <wchar.h>
8150 #endif
8151
8152 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
8153int
8154main ()
8155{
8156
8157 ;
8158 return 0;
8159}
8160_ACEOF
8161if ac_fn_c_try_compile "$LINENO"; then :
8162 result=yes
8163else
8164 result=no
8165fi
8166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8167 eval gl_cv_type_${gltype}_signed=\$result
8168
8169fi
8170eval ac_res=\$gl_cv_type_${gltype}_signed
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8172$as_echo "$ac_res" >&6; }
8173 eval result=\$gl_cv_type_${gltype}_signed
8174 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8175 if test "$result" = yes; then
8176 cat >>confdefs.h <<_ACEOF
8177#define HAVE_SIGNED_${GLTYPE} 1
8178_ACEOF
8179
8180 eval HAVE_SIGNED_${GLTYPE}=1
8181 else
8182 eval HAVE_SIGNED_${GLTYPE}=0
8183 fi
8184 done
8185
8186
8187 gl_cv_type_ptrdiff_t_signed=yes
8188 gl_cv_type_size_t_signed=no
8189 if test $APPLE_UNIVERSAL_BUILD = 0; then
8190
8191
8192 for gltype in ptrdiff_t size_t ; do
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
8194$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
8195if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
8196 $as_echo_n "(cached) " >&6
8197else
8198 eval gl_cv_type_${gltype}_suffix=no
8199 eval result=\$gl_cv_type_${gltype}_signed
8200 if test "$result" = yes; then
8201 glsufu=
8202 else
8203 glsufu=u
8204 fi
8205 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
8206 case $glsuf in
8207 '') gltype1='int';;
8208 l) gltype1='long int';;
8209 ll) gltype1='long long int';;
8210 i64) gltype1='__int64';;
8211 u) gltype1='unsigned int';;
8212 ul) gltype1='unsigned long int';;
8213 ull) gltype1='unsigned long long int';;
8214 ui64)gltype1='unsigned __int64';;
8215 esac
8216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8217/* end confdefs.h. */
8218
8219 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8220 included before <wchar.h>. */
8221 #include <stddef.h>
8222 #include <signal.h>
8223 #if HAVE_WCHAR_H
8224 # include <stdio.h>
8225 # include <time.h>
8226 # include <wchar.h>
8227 #endif
8228
8229 extern $gltype foo;
8230 extern $gltype1 foo;
8231int
8232main ()
8233{
8234
8235 ;
8236 return 0;
8237}
8238_ACEOF
8239if ac_fn_c_try_compile "$LINENO"; then :
8240 eval gl_cv_type_${gltype}_suffix=\$glsuf
8241fi
8242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8243 eval result=\$gl_cv_type_${gltype}_suffix
8244 test "$result" != no && break
8245 done
8246fi
8247eval ac_res=\$gl_cv_type_${gltype}_suffix
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8249$as_echo "$ac_res" >&6; }
8250 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8251 eval result=\$gl_cv_type_${gltype}_suffix
8252 test "$result" = no && result=
8253 eval ${GLTYPE}_SUFFIX=\$result
8254 cat >>confdefs.h <<_ACEOF
8255#define ${GLTYPE}_SUFFIX $result
8256_ACEOF
8257
8258 done
8259
8260
8261 fi
8262
8263
8264 for gltype in sig_atomic_t wchar_t wint_t ; do
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
8266$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
8267if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
8268 $as_echo_n "(cached) " >&6
8269else
8270 eval gl_cv_type_${gltype}_suffix=no
8271 eval result=\$gl_cv_type_${gltype}_signed
8272 if test "$result" = yes; then
8273 glsufu=
8274 else
8275 glsufu=u
8276 fi
8277 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
8278 case $glsuf in
8279 '') gltype1='int';;
8280 l) gltype1='long int';;
8281 ll) gltype1='long long int';;
8282 i64) gltype1='__int64';;
8283 u) gltype1='unsigned int';;
8284 ul) gltype1='unsigned long int';;
8285 ull) gltype1='unsigned long long int';;
8286 ui64)gltype1='unsigned __int64';;
8287 esac
8288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8289/* end confdefs.h. */
8290
8291 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8292 included before <wchar.h>. */
8293 #include <stddef.h>
8294 #include <signal.h>
8295 #if HAVE_WCHAR_H
8296 # include <stdio.h>
8297 # include <time.h>
8298 # include <wchar.h>
8299 #endif
8300
8301 extern $gltype foo;
8302 extern $gltype1 foo;
8303int
8304main ()
8305{
8306
8307 ;
8308 return 0;
8309}
8310_ACEOF
8311if ac_fn_c_try_compile "$LINENO"; then :
8312 eval gl_cv_type_${gltype}_suffix=\$glsuf
8313fi
8314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8315 eval result=\$gl_cv_type_${gltype}_suffix
8316 test "$result" != no && break
8317 done
8318fi
8319eval ac_res=\$gl_cv_type_${gltype}_suffix
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8321$as_echo "$ac_res" >&6; }
8322 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8323 eval result=\$gl_cv_type_${gltype}_suffix
8324 test "$result" = no && result=
8325 eval ${GLTYPE}_SUFFIX=\$result
8326 cat >>confdefs.h <<_ACEOF
8327#define ${GLTYPE}_SUFFIX $result
8328_ACEOF
8329
8330 done
8331
8332
8333
8334 if test $BITSIZEOF_WINT_T -lt 32; then
8335 BITSIZEOF_WINT_T=32
8336 fi
8337
8338 STDINT_H=stdint.h
8339 fi
8340
8341 if test -n "$STDINT_H"; then
8342 GL_GENERATE_STDINT_H_TRUE=
8343 GL_GENERATE_STDINT_H_FALSE='#'
8344else
8345 GL_GENERATE_STDINT_H_TRUE='#'
8346 GL_GENERATE_STDINT_H_FALSE=
8347fi
8348
8349
8350
8351
8352
8690e634
JK
8353 GNULIB_IMAXABS=0;
8354 GNULIB_IMAXDIV=0;
8355 GNULIB_STRTOIMAX=0;
8356 GNULIB_STRTOUMAX=0;
8357 HAVE_DECL_IMAXABS=1;
8358 HAVE_DECL_IMAXDIV=1;
8359 HAVE_DECL_STRTOIMAX=1;
8360 HAVE_DECL_STRTOUMAX=1;
8361 REPLACE_STRTOIMAX=0;
8362 INT32_MAX_LT_INTMAX_MAX=1;
8363 INT64_MAX_EQ_LONG_MAX='defined _LP64';
8364 PRI_MACROS_BROKEN=0;
8365 PRIPTR_PREFIX=__PRIPTR_PREFIX;
8366 UINT32_MAX_LT_UINTMAX_MAX=1;
8367 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
8368
8369
8370
8371
8690e634
JK
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8690e634
JK
8383 if test $gl_cv_have_include_next = yes; then
8384 gl_cv_next_inttypes_h='<'inttypes.h'>'
8385 else
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
8387$as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
8388if test "${gl_cv_next_inttypes_h+set}" = set; then :
8389 $as_echo_n "(cached) " >&6
8390else
8391
8392 if test $ac_cv_header_inttypes_h = yes; then
8393
8394
8395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8396/* end confdefs.h. */
8397#include <inttypes.h>
8398
8399_ACEOF
8400 case "$host_os" in
8401 aix*) gl_absname_cpp="$ac_cpp -C" ;;
8402 *) gl_absname_cpp="$ac_cpp" ;;
8403 esac
8404
8405 case "$host_os" in
8406 mingw*)
8407 gl_dirsep_regex='[/\\]'
8408 ;;
8409 *)
8410 gl_dirsep_regex='\/'
8411 ;;
8412 esac
8413 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
8414
8415 gl_header_literal_regex=`echo 'inttypes.h' \
8416 | sed -e "$gl_make_literal_regex_sed"`
8417 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
8418 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
8419 s|^/[^/]|//&|
8420 p
8421 q
8422 }'
8423 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8424 sed -n "$gl_absolute_header_sed"`'"'
8425 else
8426 gl_cv_next_inttypes_h='<'inttypes.h'>'
8427 fi
8428
8429
8430fi
8431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
8432$as_echo "$gl_cv_next_inttypes_h" >&6; }
8433 fi
8434 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
8435
8436 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
8437 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8438 gl_next_as_first_directive='<'inttypes.h'>'
8439 else
8440 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8441 gl_next_as_first_directive=$gl_cv_next_inttypes_h
8442 fi
8443 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
8444
8445
8446
8447
8448
8449
8450
8451
8452 for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
8453 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
8455$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
8456if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
8457 $as_echo_n "(cached) " >&6
8458else
8459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8460/* end confdefs.h. */
8461#include <inttypes.h>
8462
8463int
8464main ()
8465{
8466#undef $gl_func
8467 (void) $gl_func;
8468 ;
8469 return 0;
8470}
8471_ACEOF
8472if ac_fn_c_try_compile "$LINENO"; then :
8473 eval "$as_gl_Symbol=yes"
8474else
8475 eval "$as_gl_Symbol=no"
8476fi
8477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8478fi
8479eval ac_res=\$$as_gl_Symbol
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8481$as_echo "$ac_res" >&6; }
8482 eval as_val=\$$as_gl_Symbol
8483 if test "x$as_val" = x""yes; then :
8484 cat >>confdefs.h <<_ACEOF
8485#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
8486_ACEOF
8487
8488 eval ac_cv_have_decl_$gl_func=yes
8489fi
8490 done
8491
8492
8493
8494 for ac_header in inttypes.h
8495do :
8496 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
8497if test "x$ac_cv_header_inttypes_h" = x""yes; then :
8498 cat >>confdefs.h <<_ACEOF
8499#define HAVE_INTTYPES_H 1
8500_ACEOF
8501
8502fi
8503
8504done
8505
8506 if test $ac_cv_header_inttypes_h = yes; then
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
8508$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
8509if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
8510 $as_echo_n "(cached) " >&6
8511else
8512
8513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8514/* end confdefs.h. */
8515
8516#include <inttypes.h>
8517#ifdef PRId32
8518char *p = PRId32;
8519#endif
8520
8521int
8522main ()
8523{
8524
8525 ;
8526 return 0;
8527}
8528_ACEOF
8529if ac_fn_c_try_compile "$LINENO"; then :
8530 gt_cv_inttypes_pri_broken=no
8531else
8532 gt_cv_inttypes_pri_broken=yes
8533fi
8534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8535
8536fi
8537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
8538$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
8539 fi
8540 if test "$gt_cv_inttypes_pri_broken" = yes; then
8541
8542cat >>confdefs.h <<_ACEOF
8543#define PRI_MACROS_BROKEN 1
8544_ACEOF
8545
8546 PRI_MACROS_BROKEN=1
8547 else
8548 PRI_MACROS_BROKEN=0
8549 fi
8550
8551
8552
88b48903
WN
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
8554$as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
8555if test "${gl_cv_cc_double_expbit0+set}" = set; then :
8690e634
JK
8556 $as_echo_n "(cached) " >&6
8557else
88b48903
WN
8558
8559 if test "$cross_compiling" = yes; then :
8560
8561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690e634 8562/* end confdefs.h. */
88b48903
WN
8563
8564#if defined arm || defined __arm || defined __arm__
8565 mixed_endianness
8566#endif
8567
8568_ACEOF
8569if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8570 $EGREP "mixed_endianness" >/dev/null 2>&1; then :
8571 gl_cv_cc_double_expbit0="unknown"
8572else
8573
8574 :
8575if test "${ac_cv_c_bigendian+set}" = set; then :
8576 $as_echo_n "(cached) " >&6
8577else
8578 ac_cv_c_bigendian=unknown
8579 # See if we're dealing with a universal compiler.
8580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8581/* end confdefs.h. */
8582#ifndef __APPLE_CC__
8583 not a universal capable compiler
8584 #endif
8585 typedef int dummy;
8586
8587_ACEOF
8588if ac_fn_c_try_compile "$LINENO"; then :
8589
8590 # Check for potential -arch flags. It is not universal unless
8591 # there are at least two -arch flags with different values.
8592 ac_arch=
8593 ac_prev=
8594 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8595 if test -n "$ac_prev"; then
8596 case $ac_word in
8597 i?86 | x86_64 | ppc | ppc64)
8598 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8599 ac_arch=$ac_word
8600 else
8601 ac_cv_c_bigendian=universal
8602 break
8603 fi
8604 ;;
8605 esac
8606 ac_prev=
8607 elif test "x$ac_word" = "x-arch"; then
8608 ac_prev=arch
8609 fi
8610 done
8611fi
8612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8613 if test $ac_cv_c_bigendian = unknown; then
8614 # See if sys/param.h defines the BYTE_ORDER macro.
8615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8616/* end confdefs.h. */
8617#include <sys/types.h>
8618 #include <sys/param.h>
8619
8690e634
JK
8620int
8621main ()
8622{
88b48903
WN
8623#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8624 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8625 && LITTLE_ENDIAN)
8626 bogus endian macros
8627 #endif
8628
8690e634
JK
8629 ;
8630 return 0;
8631}
8632_ACEOF
88b48903
WN
8633if ac_fn_c_try_compile "$LINENO"; then :
8634 # It does; now see whether it defined to BIG_ENDIAN or not.
8635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8636/* end confdefs.h. */
8637#include <sys/types.h>
8638 #include <sys/param.h>
8639
8640int
8641main ()
8642{
8643#if BYTE_ORDER != BIG_ENDIAN
8644 not big endian
8645 #endif
8646
8647 ;
8648 return 0;
8649}
8650_ACEOF
8651if ac_fn_c_try_compile "$LINENO"; then :
8652 ac_cv_c_bigendian=yes
8690e634 8653else
88b48903 8654 ac_cv_c_bigendian=no
8690e634 8655fi
88b48903 8656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8690e634 8657fi
88b48903
WN
8658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8659 fi
8660 if test $ac_cv_c_bigendian = unknown; then
8661 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8663/* end confdefs.h. */
8664#include <limits.h>
8690e634 8665
88b48903
WN
8666int
8667main ()
8668{
8669#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8670 bogus endian macros
8671 #endif
8690e634 8672
88b48903
WN
8673 ;
8674 return 0;
8675}
8676_ACEOF
8677if ac_fn_c_try_compile "$LINENO"; then :
8678 # It does; now see whether it defined to _BIG_ENDIAN or not.
8679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8680/* end confdefs.h. */
8681#include <limits.h>
8690e634 8682
88b48903
WN
8683int
8684main ()
8685{
8686#ifndef _BIG_ENDIAN
8687 not big endian
8688 #endif
8690e634 8689
88b48903
WN
8690 ;
8691 return 0;
8692}
8693_ACEOF
8694if ac_fn_c_try_compile "$LINENO"; then :
8695 ac_cv_c_bigendian=yes
8696else
8697 ac_cv_c_bigendian=no
8698fi
8699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8700fi
8701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8702 fi
8703 if test $ac_cv_c_bigendian = unknown; then
8704 # Compile a test program.
8705 if test "$cross_compiling" = yes; then :
8706 # Try to guess by grepping values from an object file.
8707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8708/* end confdefs.h. */
8709short int ascii_mm[] =
8710 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8711 short int ascii_ii[] =
8712 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8713 int use_ascii (int i) {
8714 return ascii_mm[i] + ascii_ii[i];
8715 }
8716 short int ebcdic_ii[] =
8717 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8718 short int ebcdic_mm[] =
8719 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8720 int use_ebcdic (int i) {
8721 return ebcdic_mm[i] + ebcdic_ii[i];
8722 }
8723 extern int foo;
8690e634 8724
88b48903
WN
8725int
8726main ()
8727{
8728return use_ascii (foo) == use_ebcdic (foo);
8729 ;
8730 return 0;
8731}
8732_ACEOF
8733if ac_fn_c_try_compile "$LINENO"; then :
8734 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8735 ac_cv_c_bigendian=yes
8736 fi
8737 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8738 if test "$ac_cv_c_bigendian" = unknown; then
8739 ac_cv_c_bigendian=no
8740 else
8741 # finding both strings is unlikely to happen, but who knows?
8742 ac_cv_c_bigendian=unknown
8743 fi
8744 fi
8745fi
8746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8747else
8748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8749/* end confdefs.h. */
8750$ac_includes_default
8751int
8752main ()
8753{
8690e634 8754
88b48903
WN
8755 /* Are we little or big endian? From Harbison&Steele. */
8756 union
8757 {
8758 long int l;
8759 char c[sizeof (long int)];
8760 } u;
8761 u.l = 1;
8762 return u.c[sizeof (long int) - 1] == 1;
8690e634 8763
88b48903
WN
8764 ;
8765 return 0;
8766}
8767_ACEOF
8768if ac_fn_c_try_run "$LINENO"; then :
8769 ac_cv_c_bigendian=no
8770else
8771 ac_cv_c_bigendian=yes
8772fi
8773rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8774 conftest.$ac_objext conftest.beam conftest.$ac_ext
8775fi
8690e634 8776
88b48903
WN
8777 fi
8778fi
8779:
8780 case $ac_cv_c_bigendian in #(
8781 yes)
8782 gl_cv_cc_double_expbit0="word 0 bit 20";; #(
8783 no)
8784 gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
8785 universal)
8690e634 8786
88b48903 8787$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8690e634 8788
88b48903
WN
8789 ;; #(
8790 *)
8791 gl_cv_cc_double_expbit0="unknown" ;;
8792 esac
8690e634
JK
8793
8794
88b48903
WN
8795fi
8796rm -f conftest*
8690e634 8797
8690e634 8798
88b48903
WN
8799else
8800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8801/* end confdefs.h. */
8690e634 8802
88b48903
WN
8803#include <float.h>
8804#include <stddef.h>
8805#include <stdio.h>
8806#include <string.h>
8807#define NWORDS \
8808 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
8809typedef union { double value; unsigned int word[NWORDS]; } memory_double;
8810static unsigned int ored_words[NWORDS];
8811static unsigned int anded_words[NWORDS];
8812static void add_to_ored_words (double x)
8813{
8814 memory_double m;
8815 size_t i;
8816 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
8817 memset (&m, 0, sizeof (memory_double));
8818 m.value = x;
8819 for (i = 0; i < NWORDS; i++)
8820 {
8821 ored_words[i] |= m.word[i];
8822 anded_words[i] &= m.word[i];
8823 }
8824}
8825int main ()
8826{
8827 size_t j;
8828 FILE *fp = fopen ("conftest.out", "w");
8829 if (fp == NULL)
8830 return 1;
8831 for (j = 0; j < NWORDS; j++)
8832 anded_words[j] = ~ (unsigned int) 0;
8833 add_to_ored_words (0.25);
8834 add_to_ored_words (0.5);
8835 add_to_ored_words (1.0);
8836 add_to_ored_words (2.0);
8837 add_to_ored_words (4.0);
8838 /* Remove bits that are common (e.g. if representation of the first mantissa
8839 bit is explicit). */
8840 for (j = 0; j < NWORDS; j++)
8841 ored_words[j] &= ~anded_words[j];
8842 /* Now find the nonzero word. */
8843 for (j = 0; j < NWORDS; j++)
8844 if (ored_words[j] != 0)
8845 break;
8846 if (j < NWORDS)
8847 {
8848 size_t i;
8849 for (i = j + 1; i < NWORDS; i++)
8850 if (ored_words[i] != 0)
8851 {
8852 fprintf (fp, "unknown");
8853 return (fclose (fp) != 0);
8854 }
8855 for (i = 0; ; i++)
8856 if ((ored_words[j] >> i) & 1)
8857 {
8858 fprintf (fp, "word %d bit %d", (int) j, (int) i);
8859 return (fclose (fp) != 0);
8860 }
8861 }
8862 fprintf (fp, "unknown");
8863 return (fclose (fp) != 0);
8864}
8690e634 8865
88b48903
WN
8866_ACEOF
8867if ac_fn_c_try_run "$LINENO"; then :
8868 gl_cv_cc_double_expbit0=`cat conftest.out`
8869else
8870 gl_cv_cc_double_expbit0="unknown"
8871fi
8872rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8873 conftest.$ac_objext conftest.beam conftest.$ac_ext
8874fi
8690e634 8875
88b48903 8876 rm -f conftest.out
8690e634 8877
88b48903
WN
8878fi
8879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
8880$as_echo "$gl_cv_cc_double_expbit0" >&6; }
8881 case "$gl_cv_cc_double_expbit0" in
8882 word*bit*)
8883 word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
8884 bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
8690e634 8885
88b48903
WN
8886cat >>confdefs.h <<_ACEOF
8887#define DBL_EXPBIT0_WORD $word
8888_ACEOF
8690e634
JK
8889
8890
88b48903
WN
8891cat >>confdefs.h <<_ACEOF
8892#define DBL_EXPBIT0_BIT $bit
8893_ACEOF
8690e634 8894
88b48903
WN
8895 ;;
8896 esac
8690e634
JK
8897
8898
88b48903
WN
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8900$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8901if test "${ac_cv_c_bigendian+set}" = set; then :
8690e634
JK
8902 $as_echo_n "(cached) " >&6
8903else
88b48903
WN
8904 ac_cv_c_bigendian=unknown
8905 # See if we're dealing with a universal compiler.
8906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8907/* end confdefs.h. */
8908#ifndef __APPLE_CC__
8909 not a universal capable compiler
8910 #endif
8911 typedef int dummy;
8912
8913_ACEOF
8914if ac_fn_c_try_compile "$LINENO"; then :
8915
8916 # Check for potential -arch flags. It is not universal unless
8917 # there are at least two -arch flags with different values.
8918 ac_arch=
8919 ac_prev=
8920 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8921 if test -n "$ac_prev"; then
8922 case $ac_word in
8923 i?86 | x86_64 | ppc | ppc64)
8924 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8925 ac_arch=$ac_word
8926 else
8927 ac_cv_c_bigendian=universal
8928 break
8929 fi
8930 ;;
8931 esac
8932 ac_prev=
8933 elif test "x$ac_word" = "x-arch"; then
8934 ac_prev=arch
8935 fi
8936 done
8937fi
8938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8939 if test $ac_cv_c_bigendian = unknown; then
8940 # See if sys/param.h defines the BYTE_ORDER macro.
8941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690e634
JK
8942/* end confdefs.h. */
8943#include <sys/types.h>
88b48903
WN
8944 #include <sys/param.h>
8945
8946int
8947main ()
8948{
8949#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8950 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8951 && LITTLE_ENDIAN)
8952 bogus endian macros
8953 #endif
8954
8955 ;
8956 return 0;
8957}
8958_ACEOF
8959if ac_fn_c_try_compile "$LINENO"; then :
8960 # It does; now see whether it defined to BIG_ENDIAN or not.
8961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8962/* end confdefs.h. */
8963#include <sys/types.h>
8964 #include <sys/param.h>
8965
8966int
8967main ()
8968{
8969#if BYTE_ORDER != BIG_ENDIAN
8970 not big endian
8971 #endif
8972
8973 ;
8974 return 0;
8975}
8976_ACEOF
8977if ac_fn_c_try_compile "$LINENO"; then :
8978 ac_cv_c_bigendian=yes
8979else
8980 ac_cv_c_bigendian=no
8981fi
8982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8983fi
8984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8985 fi
8986 if test $ac_cv_c_bigendian = unknown; then
8987 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8989/* end confdefs.h. */
8990#include <limits.h>
8991
8992int
8993main ()
8994{
8995#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8996 bogus endian macros
8997 #endif
8998
8999 ;
9000 return 0;
9001}
9002_ACEOF
9003if ac_fn_c_try_compile "$LINENO"; then :
9004 # It does; now see whether it defined to _BIG_ENDIAN or not.
9005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9006/* end confdefs.h. */
9007#include <limits.h>
9008
9009int
9010main ()
9011{
9012#ifndef _BIG_ENDIAN
9013 not big endian
9014 #endif
9015
9016 ;
9017 return 0;
9018}
9019_ACEOF
9020if ac_fn_c_try_compile "$LINENO"; then :
9021 ac_cv_c_bigendian=yes
9022else
9023 ac_cv_c_bigendian=no
9024fi
9025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9026fi
9027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9028 fi
9029 if test $ac_cv_c_bigendian = unknown; then
9030 # Compile a test program.
9031 if test "$cross_compiling" = yes; then :
9032 # Try to guess by grepping values from an object file.
9033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9034/* end confdefs.h. */
9035short int ascii_mm[] =
9036 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9037 short int ascii_ii[] =
9038 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9039 int use_ascii (int i) {
9040 return ascii_mm[i] + ascii_ii[i];
9041 }
9042 short int ebcdic_ii[] =
9043 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9044 short int ebcdic_mm[] =
9045 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9046 int use_ebcdic (int i) {
9047 return ebcdic_mm[i] + ebcdic_ii[i];
9048 }
9049 extern int foo;
9050
9051int
9052main ()
9053{
9054return use_ascii (foo) == use_ebcdic (foo);
9055 ;
9056 return 0;
9057}
9058_ACEOF
9059if ac_fn_c_try_compile "$LINENO"; then :
9060 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9061 ac_cv_c_bigendian=yes
9062 fi
9063 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9064 if test "$ac_cv_c_bigendian" = unknown; then
9065 ac_cv_c_bigendian=no
9066 else
9067 # finding both strings is unlikely to happen, but who knows?
9068 ac_cv_c_bigendian=unknown
9069 fi
9070 fi
9071fi
9072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9073else
9074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9075/* end confdefs.h. */
9076$ac_includes_default
9077int
9078main ()
9079{
9080
9081 /* Are we little or big endian? From Harbison&Steele. */
9082 union
9083 {
9084 long int l;
9085 char c[sizeof (long int)];
9086 } u;
9087 u.l = 1;
9088 return u.c[sizeof (long int) - 1] == 1;
9089
9090 ;
9091 return 0;
9092}
9093_ACEOF
9094if ac_fn_c_try_run "$LINENO"; then :
9095 ac_cv_c_bigendian=no
9096else
9097 ac_cv_c_bigendian=yes
9098fi
9099rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9100 conftest.$ac_objext conftest.beam conftest.$ac_ext
9101fi
9102
9103 fi
9104fi
9105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9106$as_echo "$ac_cv_c_bigendian" >&6; }
9107 case $ac_cv_c_bigendian in #(
9108 yes)
9109 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9110;; #(
9111 no)
9112 ;; #(
9113 universal)
9114
9115$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9116
9117 ;; #(
9118 *)
9119 as_fn_error "unknown endianness
9120 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9121 esac
9122
9123
9124
2196f55f
YQ
9125
9126 case "$host_os" in
9127 mingw*)
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
9129$as_echo_n "checking for 64-bit off_t... " >&6; }
9130if test "${gl_cv_type_off_t_64+set}" = set; then :
9131 $as_echo_n "(cached) " >&6
9132else
9133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9134/* end confdefs.h. */
9135#include <sys/types.h>
9136 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
9137
9138int
9139main ()
9140{
9141
9142 ;
9143 return 0;
9144}
9145_ACEOF
9146if ac_fn_c_try_compile "$LINENO"; then :
9147 gl_cv_type_off_t_64=yes
9148else
9149 gl_cv_type_off_t_64=no
9150fi
9151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9152
9153fi
9154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
9155$as_echo "$gl_cv_type_off_t_64" >&6; }
9156 if test $gl_cv_type_off_t_64 = no; then
9157 WINDOWS_64_BIT_OFF_T=1
9158 else
9159 WINDOWS_64_BIT_OFF_T=0
9160 fi
9161 WINDOWS_64_BIT_ST_SIZE=1
9162 ;;
9163 *)
9164 WINDOWS_64_BIT_OFF_T=0
9165 WINDOWS_64_BIT_ST_SIZE=0
9166 ;;
9167 esac
9168
9169
88b48903
WN
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
9171$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
9172if test "${am_cv_langinfo_codeset+set}" = set; then :
9173 $as_echo_n "(cached) " >&6
9174else
9175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9176/* end confdefs.h. */
9177#include <langinfo.h>
9178int
9179main ()
9180{
9181char* cs = nl_langinfo(CODESET); return !cs;
9182 ;
9183 return 0;
9184}
9185_ACEOF
9186if ac_fn_c_try_link "$LINENO"; then :
9187 am_cv_langinfo_codeset=yes
9188else
9189 am_cv_langinfo_codeset=no
9190fi
9191rm -f core conftest.err conftest.$ac_objext \
9192 conftest$ac_exeext conftest.$ac_ext
9193
9194fi
9195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
9196$as_echo "$am_cv_langinfo_codeset" >&6; }
9197 if test $am_cv_langinfo_codeset = yes; then
9198
9199$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
9200
9201 fi
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
88b48903
WN
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
9213$as_echo_n "checking for working fcntl.h... " >&6; }
9214if test "${gl_cv_header_working_fcntl_h+set}" = set; then :
9215 $as_echo_n "(cached) " >&6
9216else
9217 if test "$cross_compiling" = yes; then :
9218 gl_cv_header_working_fcntl_h=cross-compiling
9219else
9220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9221/* end confdefs.h. */
9222#include <sys/types.h>
9223 #include <sys/stat.h>
9224 #if HAVE_UNISTD_H
9225 # include <unistd.h>
9226 #else /* on Windows with MSVC */
9227 # include <io.h>
9228 # include <stdlib.h>
8690e634
JK
9229 # defined sleep(n) _sleep ((n) * 1000)
9230 #endif
9231 #include <fcntl.h>
9232 #ifndef O_NOATIME
9233 #define O_NOATIME 0
9234 #endif
9235 #ifndef O_NOFOLLOW
9236 #define O_NOFOLLOW 0
9237 #endif
9238 static int const constants[] =
9239 {
9240 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
9241 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
9242 };
9243
9244int
9245main ()
9246{
9247
9248 int result = !constants;
9249 #if HAVE_SYMLINK
9250 {
9251 static char const sym[] = "conftest.sym";
a512b375
JB
9252 if (symlink ("/dev/null", sym) != 0)
9253 result |= 2;
9254 else
9255 {
9256 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
9257 if (fd >= 0)
9258 {
9259 close (fd);
9260 result |= 4;
9261 }
9262 }
9263 if (unlink (sym) != 0 || symlink (".", sym) != 0)
8690e634
JK
9264 result |= 2;
9265 else
9266 {
9267 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
9268 if (fd >= 0)
9269 {
9270 close (fd);
9271 result |= 4;
9272 }
9273 }
9274 unlink (sym);
9275 }
9276 #endif
9277 {
9278 static char const file[] = "confdefs.h";
9279 int fd = open (file, O_RDONLY | O_NOATIME);
9280 if (fd < 0)
9281 result |= 8;
9282 else
9283 {
9284 struct stat st0;
9285 if (fstat (fd, &st0) != 0)
9286 result |= 16;
9287 else
9288 {
9289 char c;
9290 sleep (1);
9291 if (read (fd, &c, 1) != 1)
9292 result |= 24;
9293 else
9294 {
9295 if (close (fd) != 0)
9296 result |= 32;
9297 else
9298 {
9299 struct stat st1;
9300 if (stat (file, &st1) != 0)
9301 result |= 40;
9302 else
9303 if (st0.st_atime != st1.st_atime)
9304 result |= 64;
9305 }
9306 }
9307 }
9308 }
9309 }
9310 return result;
9311 ;
9312 return 0;
9313}
9314_ACEOF
9315if ac_fn_c_try_run "$LINENO"; then :
9316 gl_cv_header_working_fcntl_h=yes
9317else
9318 case $? in #(
9319 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
9320 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
9321 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
9322 *) gl_cv_header_working_fcntl_h='no';;
9323 esac
9324fi
9325rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9326 conftest.$ac_objext conftest.beam conftest.$ac_ext
9327fi
9328
9329fi
9330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
9331$as_echo "$gl_cv_header_working_fcntl_h" >&6; }
9332
9333 case $gl_cv_header_working_fcntl_h in #(
9334 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
9335 *) ac_val=1;;
9336 esac
9337
9338cat >>confdefs.h <<_ACEOF
9339#define HAVE_WORKING_O_NOATIME $ac_val
9340_ACEOF
9341
9342
9343 case $gl_cv_header_working_fcntl_h in #(
9344 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
9345 *) ac_val=1;;
9346 esac
9347
9348cat >>confdefs.h <<_ACEOF
9349#define HAVE_WORKING_O_NOFOLLOW $ac_val
9350_ACEOF
9351
9352
3574124b 9353ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
8690e634
JK
9354if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
9355 ac_have_decl=1
9356else
9357 ac_have_decl=0
9358fi
9359
9360cat >>confdefs.h <<_ACEOF
9361#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
9362_ACEOF
9363
9364
8690e634
JK
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
9366$as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
9367if test "${ac_cv_gnu_library_2_1+set}" = set; then :
9368 $as_echo_n "(cached) " >&6
9369else
9370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9371/* end confdefs.h. */
9372
9373#include <features.h>
9374#ifdef __GNU_LIBRARY__
9375 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9376 Lucky GNU user
9377 #endif
9378#endif
9379#ifdef __UCLIBC__
9380 Lucky user
9381#endif
9382
9383_ACEOF
9384if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9385 $EGREP "Lucky" >/dev/null 2>&1; then :
9386 ac_cv_gnu_library_2_1=yes
9387else
9388 ac_cv_gnu_library_2_1=no
9389fi
9390rm -f conftest*
9391
9392
9393
9394fi
9395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
9396$as_echo "$ac_cv_gnu_library_2_1" >&6; }
9397
9398 GLIBC21="$ac_cv_gnu_library_2_1"
9399
9400
9401
f45c62c4
YQ
9402 GNULIB_FCHMODAT=0;
9403 GNULIB_FSTAT=0;
9404 GNULIB_FSTATAT=0;
9405 GNULIB_FUTIMENS=0;
9406 GNULIB_LCHMOD=0;
9407 GNULIB_LSTAT=0;
9408 GNULIB_MKDIRAT=0;
9409 GNULIB_MKFIFO=0;
9410 GNULIB_MKFIFOAT=0;
9411 GNULIB_MKNOD=0;
9412 GNULIB_MKNODAT=0;
9413 GNULIB_STAT=0;
9414 GNULIB_UTIMENSAT=0;
9415 HAVE_FCHMODAT=1;
9416 HAVE_FSTATAT=1;
9417 HAVE_FUTIMENS=1;
9418 HAVE_LCHMOD=1;
9419 HAVE_LSTAT=1;
9420 HAVE_MKDIRAT=1;
9421 HAVE_MKFIFO=1;
9422 HAVE_MKFIFOAT=1;
9423 HAVE_MKNOD=1;
9424 HAVE_MKNODAT=1;
9425 HAVE_UTIMENSAT=1;
9426 REPLACE_FSTAT=0;
9427 REPLACE_FSTATAT=0;
9428 REPLACE_FUTIMENS=0;
9429 REPLACE_LSTAT=0;
9430 REPLACE_MKDIR=0;
9431 REPLACE_MKFIFO=0;
9432 REPLACE_MKNOD=0;
9433 REPLACE_STAT=0;
9434 REPLACE_UTIMENSAT=0;
9435
9436
9437
9438
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
9440$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
9441if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
9442 $as_echo_n "(cached) " >&6
9443else
9444 rm -f conftest.sym conftest.file
9445 echo >conftest.file
9446 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
9447 if test "$cross_compiling" = yes; then :
9448 case "$host_os" in
9449 # Guess yes on glibc systems.
9450 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
9451 # If we don't know, assume the worst.
9452 *) gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
9453 esac
9454
9455else
9456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9457/* end confdefs.h. */
9458$ac_includes_default
9459int
9460main ()
9461{
9462struct stat sbuf;
9463 /* Linux will dereference the symlink and fail, as required by
9464 POSIX. That is better in the sense that it means we will not
9465 have to compile and use the lstat wrapper. */
9466 return lstat ("conftest.sym/", &sbuf) == 0;
9467
9468 ;
9469 return 0;
9470}
9471_ACEOF
9472if ac_fn_c_try_run "$LINENO"; then :
9473 gl_cv_func_lstat_dereferences_slashed_symlink=yes
9474else
9475 gl_cv_func_lstat_dereferences_slashed_symlink=no
9476fi
9477rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9478 conftest.$ac_objext conftest.beam conftest.$ac_ext
9479fi
9480
9481 else
9482 # If the 'ln -s' command failed, then we probably don't even
9483 # have an lstat function.
9484 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no"
9485 fi
9486 rm -f conftest.sym conftest.file
9487
9488fi
9489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
9490$as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
9491 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
9492 *yes)
9493
9494cat >>confdefs.h <<_ACEOF
9495#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
9496_ACEOF
9497
9498 ;;
9499 esac
9500
9501
6a29c58e
YQ
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
9503$as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
9504if test "${gl_cv_func_malloc_posix+set}" = set; then :
9505 $as_echo_n "(cached) " >&6
9506else
9507
9508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9509/* end confdefs.h. */
9510
9511int
9512main ()
9513{
9514#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
9515 choke me
9516 #endif
9517
9518 ;
9519 return 0;
9520}
9521_ACEOF
9522if ac_fn_c_try_compile "$LINENO"; then :
9523 gl_cv_func_malloc_posix=yes
9524else
9525 gl_cv_func_malloc_posix=no
9526fi
9527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9528
9529fi
9530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
9531$as_echo "$gl_cv_func_malloc_posix" >&6; }
9532
9533
9534
9535 for ac_header in stdlib.h
98399780
YQ
9536do :
9537 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
9538if test "x$ac_cv_header_stdlib_h" = x""yes; then :
9539 cat >>confdefs.h <<_ACEOF
9540#define HAVE_STDLIB_H 1
9541_ACEOF
9542
9543fi
9544
9545done
9546
6a29c58e 9547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
98399780
YQ
9548$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
9549if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
9550 $as_echo_n "(cached) " >&6
9551else
9552 if test "$cross_compiling" = yes; then :
6a29c58e
YQ
9553 case "$host_os" in
9554 # Guess yes on platforms where we know the result.
9555 *-gnu* | freebsd* | netbsd* | openbsd* \
9556 | hpux* | solaris* | cygwin* | mingw*)
9557 ac_cv_func_malloc_0_nonnull=yes ;;
9558 # If we don't know, assume the worst.
9559 *) ac_cv_func_malloc_0_nonnull=no ;;
9560 esac
9561
98399780
YQ
9562else
9563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9564/* end confdefs.h. */
9565#if defined STDC_HEADERS || defined HAVE_STDLIB_H
6a29c58e
YQ
9566 # include <stdlib.h>
9567 #else
9568 char *malloc ();
9569 #endif
98399780
YQ
9570
9571int
9572main ()
9573{
9574return ! malloc (0);
9575 ;
9576 return 0;
9577}
6a29c58e 9578
98399780
YQ
9579_ACEOF
9580if ac_fn_c_try_run "$LINENO"; then :
9581 ac_cv_func_malloc_0_nonnull=yes
9582else
9583 ac_cv_func_malloc_0_nonnull=no
9584fi
9585rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9586 conftest.$ac_objext conftest.beam conftest.$ac_ext
9587fi
9588
6a29c58e 9589
98399780
YQ
9590fi
9591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
9592$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
6a29c58e 9593 if test $ac_cv_func_malloc_0_nonnull = yes; then :
98399780
YQ
9594 gl_cv_func_malloc_0_nonnull=1
9595else
9596 gl_cv_func_malloc_0_nonnull=0
9597fi
9598
9599
9600cat >>confdefs.h <<_ACEOF
9601#define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
9602_ACEOF
9603
9604
9605
88b48903
WN
9606
9607
8690e634
JK
9608 GNULIB_BTOWC=0;
9609 GNULIB_WCTOB=0;
9610 GNULIB_MBSINIT=0;
9611 GNULIB_MBRTOWC=0;
9612 GNULIB_MBRLEN=0;
9613 GNULIB_MBSRTOWCS=0;
9614 GNULIB_MBSNRTOWCS=0;
9615 GNULIB_WCRTOMB=0;
9616 GNULIB_WCSRTOMBS=0;
9617 GNULIB_WCSNRTOMBS=0;
9618 GNULIB_WCWIDTH=0;
9619 GNULIB_WMEMCHR=0;
9620 GNULIB_WMEMCMP=0;
9621 GNULIB_WMEMCPY=0;
9622 GNULIB_WMEMMOVE=0;
9623 GNULIB_WMEMSET=0;
9624 GNULIB_WCSLEN=0;
9625 GNULIB_WCSNLEN=0;
9626 GNULIB_WCSCPY=0;
9627 GNULIB_WCPCPY=0;
9628 GNULIB_WCSNCPY=0;
9629 GNULIB_WCPNCPY=0;
9630 GNULIB_WCSCAT=0;
9631 GNULIB_WCSNCAT=0;
9632 GNULIB_WCSCMP=0;
9633 GNULIB_WCSNCMP=0;
9634 GNULIB_WCSCASECMP=0;
9635 GNULIB_WCSNCASECMP=0;
9636 GNULIB_WCSCOLL=0;
9637 GNULIB_WCSXFRM=0;
9638 GNULIB_WCSDUP=0;
9639 GNULIB_WCSCHR=0;
9640 GNULIB_WCSRCHR=0;
9641 GNULIB_WCSCSPN=0;
9642 GNULIB_WCSSPN=0;
9643 GNULIB_WCSPBRK=0;
9644 GNULIB_WCSSTR=0;
9645 GNULIB_WCSTOK=0;
9646 GNULIB_WCSWIDTH=0;
9647 HAVE_BTOWC=1;
9648 HAVE_MBSINIT=1;
9649 HAVE_MBRTOWC=1;
9650 HAVE_MBRLEN=1;
9651 HAVE_MBSRTOWCS=1;
9652 HAVE_MBSNRTOWCS=1;
9653 HAVE_WCRTOMB=1;
9654 HAVE_WCSRTOMBS=1;
9655 HAVE_WCSNRTOMBS=1;
9656 HAVE_WMEMCHR=1;
9657 HAVE_WMEMCMP=1;
9658 HAVE_WMEMCPY=1;
9659 HAVE_WMEMMOVE=1;
9660 HAVE_WMEMSET=1;
9661 HAVE_WCSLEN=1;
9662 HAVE_WCSNLEN=1;
9663 HAVE_WCSCPY=1;
9664 HAVE_WCPCPY=1;
9665 HAVE_WCSNCPY=1;
9666 HAVE_WCPNCPY=1;
9667 HAVE_WCSCAT=1;
9668 HAVE_WCSNCAT=1;
9669 HAVE_WCSCMP=1;
9670 HAVE_WCSNCMP=1;
9671 HAVE_WCSCASECMP=1;
9672 HAVE_WCSNCASECMP=1;
9673 HAVE_WCSCOLL=1;
9674 HAVE_WCSXFRM=1;
9675 HAVE_WCSDUP=1;
9676 HAVE_WCSCHR=1;
9677 HAVE_WCSRCHR=1;
9678 HAVE_WCSCSPN=1;
9679 HAVE_WCSSPN=1;
9680 HAVE_WCSPBRK=1;
9681 HAVE_WCSSTR=1;
9682 HAVE_WCSTOK=1;
9683 HAVE_WCSWIDTH=1;
9684 HAVE_DECL_WCTOB=1;
9685 HAVE_DECL_WCWIDTH=1;
9686 REPLACE_MBSTATE_T=0;
9687 REPLACE_BTOWC=0;
9688 REPLACE_WCTOB=0;
9689 REPLACE_MBSINIT=0;
9690 REPLACE_MBRTOWC=0;
9691 REPLACE_MBRLEN=0;
9692 REPLACE_MBSRTOWCS=0;
9693 REPLACE_MBSNRTOWCS=0;
9694 REPLACE_WCRTOMB=0;
9695 REPLACE_WCSRTOMBS=0;
9696 REPLACE_WCSNRTOMBS=0;
9697 REPLACE_WCWIDTH=0;
9698 REPLACE_WCSWIDTH=0;
9699
9700
9701
9702
9703
9704
9705
9706
8690e634
JK
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
9708$as_echo_n "checking for a traditional japanese locale... " >&6; }
9709if test "${gt_cv_locale_ja+set}" = set; then :
9710 $as_echo_n "(cached) " >&6
9711else
9712
9713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9714/* end confdefs.h. */
9715
9716#include <locale.h>
9717#include <time.h>
9718#if HAVE_LANGINFO_CODESET
9719# include <langinfo.h>
9720#endif
9721#include <stdlib.h>
9722#include <string.h>
9723struct tm t;
9724char buf[16];
9725int main ()
9726{
9727 const char *p;
9728 /* Check whether the given locale name is recognized by the system. */
9729#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
9730 /* On native Windows, setlocale(category, "") looks at the system settings,
9731 not at the environment variables. Also, when an encoding suffix such
9732 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
9733 category of the locale to "C". */
9734 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
9735 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
9736 return 1;
9737#else
9738 if (setlocale (LC_ALL, "") == NULL) return 1;
9739#endif
9740 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
9741 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
9742 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
9743 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
9744 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
9745 some unit tests fail.
9746 On MirBSD 10, when an unsupported locale is specified, setlocale()
9747 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
9748#if HAVE_LANGINFO_CODESET
9749 {
9750 const char *cs = nl_langinfo (CODESET);
9751 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
9752 || strcmp (cs, "UTF-8") == 0)
9753 return 1;
9754 }
9755#endif
9756#ifdef __CYGWIN__
9757 /* On Cygwin, avoid locale names without encoding suffix, because the
9758 locale_charset() function relies on the encoding suffix. Note that
9759 LC_ALL is set on the command line. */
9760 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
9761#endif
9762 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
9763 on Cygwin 1.5.x. */
9764 if (MB_CUR_MAX == 1)
9765 return 1;
9766 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
9767 This excludes the UTF-8 encoding (except on MirBSD). */
9768 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
9769 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
9770 for (p = buf; *p != '\0'; p++)
9771 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
9772 return 1;
9773 return 0;
9774}
9775
9776_ACEOF
9777 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9778 (eval $ac_link) 2>&5
9779 ac_status=$?
9780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9781 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9782 case "$host_os" in
9783 # Handle native Windows specially, because there setlocale() interprets
9784 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
9785 # "fr" or "fra" as "French" or "French_France.1252",
9786 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
9787 # "ja" as "Japanese" or "Japanese_Japan.932",
9788 # and similar.
9789 mingw*)
9790 # Note that on native Windows, the Japanese locale is
9791 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
9792 # cannot use it here.
9793 gt_cv_locale_ja=none
9794 ;;
9795 *)
9796 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
9797 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
9798 # configure script would override the LC_ALL setting. Likewise for
9799 # LC_CTYPE, which is also set at the beginning of the configure script.
9800 # Test for the AIX locale name.
9801 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9802 gt_cv_locale_ja=ja_JP
9803 else
9804 # Test for the locale name with explicit encoding suffix.
9805 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9806 gt_cv_locale_ja=ja_JP.EUC-JP
9807 else
9808 # Test for the HP-UX, OSF/1, NetBSD locale name.
9809 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9810 gt_cv_locale_ja=ja_JP.eucJP
9811 else
9812 # Test for the IRIX, FreeBSD locale name.
9813 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9814 gt_cv_locale_ja=ja_JP.EUC
9815 else
9816 # Test for the Solaris 7 locale name.
9817 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9818 gt_cv_locale_ja=ja
9819 else
9820 # Special test for NetBSD 1.6.
9821 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
9822 gt_cv_locale_ja=ja_JP.eucJP
9823 else
9824 # None found.
9825 gt_cv_locale_ja=none
9826 fi
9827 fi
9828 fi
9829 fi
9830 fi
9831 fi
9832 ;;
9833 esac
9834 fi
9835 rm -fr conftest*
9836
9837fi
9838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
9839$as_echo "$gt_cv_locale_ja" >&6; }
9840 LOCALE_JA=$gt_cv_locale_ja
9841
9842
9843
9844
9845
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
9847$as_echo_n "checking for a transitional chinese locale... " >&6; }
9848if test "${gt_cv_locale_zh_CN+set}" = set; then :
9849 $as_echo_n "(cached) " >&6
9850else
9851
9852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9853/* end confdefs.h. */
9854
9855#include <locale.h>
9856#include <stdlib.h>
9857#include <time.h>
9858#if HAVE_LANGINFO_CODESET
9859# include <langinfo.h>
9860#endif
9861#include <stdlib.h>
9862#include <string.h>
9863struct tm t;
9864char buf[16];
9865int main ()
9866{
9867 const char *p;
9868 /* Check whether the given locale name is recognized by the system. */
9869#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
9870 /* On native Windows, setlocale(category, "") looks at the system settings,
9871 not at the environment variables. Also, when an encoding suffix such
9872 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
9873 category of the locale to "C". */
9874 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
9875 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
9876 return 1;
9877#else
9878 if (setlocale (LC_ALL, "") == NULL) return 1;
9879#endif
9880 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
9881 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
9882 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
9883 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
9884 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
9885 some unit tests fail.
9886 On MirBSD 10, when an unsupported locale is specified, setlocale()
9887 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
9888#if HAVE_LANGINFO_CODESET
9889 {
9890 const char *cs = nl_langinfo (CODESET);
9891 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
9892 || strcmp (cs, "UTF-8") == 0)
9893 return 1;
9894 }
9895#endif
9896#ifdef __CYGWIN__
9897 /* On Cygwin, avoid locale names without encoding suffix, because the
9898 locale_charset() function relies on the encoding suffix. Note that
9899 LC_ALL is set on the command line. */
9900 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
9901#endif
9902 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
9903 This excludes the UTF-8 encoding (except on MirBSD). */
9904 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
9905 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
9906 for (p = buf; *p != '\0'; p++)
9907 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
9908 return 1;
9909 /* Check whether a typical GB18030 multibyte sequence is recognized as a
9910 single wide character. This excludes the GB2312 and GBK encodings. */
9911 if (mblen ("\203\062\332\066", 5) != 4)
9912 return 1;
9913 return 0;
9914}
9915
9916_ACEOF
9917 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9918 (eval $ac_link) 2>&5
9919 ac_status=$?
9920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9921 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9922 case "$host_os" in
9923 # Handle native Windows specially, because there setlocale() interprets
9924 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
9925 # "fr" or "fra" as "French" or "French_France.1252",
9926 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
9927 # "ja" as "Japanese" or "Japanese_Japan.932",
9928 # and similar.
9929 mingw*)
9930 # Test for the hypothetical native Windows locale name.
9931 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9932 gt_cv_locale_zh_CN=Chinese_China.54936
9933 else
9934 # None found.
9935 gt_cv_locale_zh_CN=none
9936 fi
9937 ;;
9938 solaris2.8)
9939 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
9940 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
9941 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
9942 gt_cv_locale_zh_CN=none
9943 ;;
9944 *)
9945 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
9946 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
9947 # configure script would override the LC_ALL setting. Likewise for
9948 # LC_CTYPE, which is also set at the beginning of the configure script.
9949 # Test for the locale name without encoding suffix.
9950 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9951 gt_cv_locale_zh_CN=zh_CN
9952 else
9953 # Test for the locale name with explicit encoding suffix.
9954 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9955 gt_cv_locale_zh_CN=zh_CN.GB18030
9956 else
9957 # None found.
9958 gt_cv_locale_zh_CN=none
9959 fi
9960 fi
9961 ;;
9962 esac
9963 else
9964 # If there was a link error, due to mblen(), the system is so old that
9965 # it certainly doesn't have a chinese locale.
9966 gt_cv_locale_zh_CN=none
9967 fi
9968 rm -fr conftest*
9969
9970fi
9971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
9972$as_echo "$gt_cv_locale_zh_CN" >&6; }
9973 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
9974
9975
9976
9977
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
9979$as_echo_n "checking for a french Unicode locale... " >&6; }
9980if test "${gt_cv_locale_fr_utf8+set}" = set; then :
9981 $as_echo_n "(cached) " >&6
9982else
9983
9984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9985/* end confdefs.h. */
9986
9987#include <locale.h>
9988#include <time.h>
9989#if HAVE_LANGINFO_CODESET
9990# include <langinfo.h>
9991#endif
9992#include <stdlib.h>
9993#include <string.h>
9994struct tm t;
9995char buf[16];
9996int main () {
9997 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
9998 imitates locale dependent behaviour by looking at the environment
9999 variables, and all locales use the UTF-8 encoding. */
10000#if !(defined __BEOS__ || defined __HAIKU__)
10001 /* Check whether the given locale name is recognized by the system. */
10002# if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
10003 /* On native Windows, setlocale(category, "") looks at the system settings,
10004 not at the environment variables. Also, when an encoding suffix such
10005 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
10006 category of the locale to "C". */
10007 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
10008 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
10009 return 1;
10010# else
10011 if (setlocale (LC_ALL, "") == NULL) return 1;
10012# endif
10013 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10014 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10015 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10016 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10017 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10018 some unit tests fail. */
10019# if HAVE_LANGINFO_CODESET
10020 {
10021 const char *cs = nl_langinfo (CODESET);
10022 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
10023 return 1;
10024 }
10025# endif
10026# ifdef __CYGWIN__
10027 /* On Cygwin, avoid locale names without encoding suffix, because the
10028 locale_charset() function relies on the encoding suffix. Note that
10029 LC_ALL is set on the command line. */
10030 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10031# endif
10032 /* Check whether in the abbreviation of the second month, the second
10033 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
10034 two bytes long, with UTF-8 encoding. */
10035 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10036 if (strftime (buf, sizeof (buf), "%b", &t) < 4
10037 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
10038 return 1;
10039#endif
10040#if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
10041 /* Check whether the decimal separator is a comma.
10042 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
10043 are nl_langinfo(RADIXCHAR) are both ".". */
10044 if (localeconv () ->decimal_point[0] != ',') return 1;
10045#endif
10046 return 0;
10047}
10048
10049_ACEOF
10050 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10051 (eval $ac_link) 2>&5
10052 ac_status=$?
10053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10054 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10055 case "$host_os" in
10056 # Handle native Windows specially, because there setlocale() interprets
10057 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
10058 # "fr" or "fra" as "French" or "French_France.1252",
10059 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
10060 # "ja" as "Japanese" or "Japanese_Japan.932",
10061 # and similar.
10062 mingw*)
10063 # Test for the hypothetical native Windows locale name.
10064 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10065 gt_cv_locale_fr_utf8=French_France.65001
10066 else
10067 # None found.
10068 gt_cv_locale_fr_utf8=none
10069 fi
10070 ;;
10071 *)
10072 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10073 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
10074 # configure script would override the LC_ALL setting. Likewise for
10075 # LC_CTYPE, which is also set at the beginning of the configure script.
10076 # Test for the usual locale name.
10077 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10078 gt_cv_locale_fr_utf8=fr_FR
10079 else
10080 # Test for the locale name with explicit encoding suffix.
10081 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10082 gt_cv_locale_fr_utf8=fr_FR.UTF-8
10083 else
10084 # Test for the Solaris 7 locale name.
10085 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10086 gt_cv_locale_fr_utf8=fr.UTF-8
10087 else
10088 # None found.
10089 gt_cv_locale_fr_utf8=none
10090 fi
10091 fi
10092 fi
10093 ;;
10094 esac
10095 fi
10096 rm -fr conftest*
10097
10098fi
10099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
10100$as_echo "$gt_cv_locale_fr_utf8" >&6; }
10101 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
10102
10103
10104
10105
10106
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
10108$as_echo_n "checking for a traditional french locale... " >&6; }
10109if test "${gt_cv_locale_fr+set}" = set; then :
10110 $as_echo_n "(cached) " >&6
10111else
10112
10113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10114/* end confdefs.h. */
10115
10116#include <locale.h>
10117#include <time.h>
10118#if HAVE_LANGINFO_CODESET
10119# include <langinfo.h>
10120#endif
10121#include <stdlib.h>
10122#include <string.h>
10123struct tm t;
10124char buf[16];
10125int main () {
10126 /* Check whether the given locale name is recognized by the system. */
10127#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
10128 /* On native Windows, setlocale(category, "") looks at the system settings,
10129 not at the environment variables. Also, when an encoding suffix such
10130 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
10131 category of the locale to "C". */
10132 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
10133 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
10134 return 1;
10135#else
10136 if (setlocale (LC_ALL, "") == NULL) return 1;
10137#endif
10138 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10139 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10140 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10141 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10142 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10143 some unit tests fail.
10144 On MirBSD 10, when an unsupported locale is specified, setlocale()
10145 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
10146#if HAVE_LANGINFO_CODESET
10147 {
10148 const char *cs = nl_langinfo (CODESET);
10149 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
10150 || strcmp (cs, "UTF-8") == 0)
10151 return 1;
10152 }
10153#endif
10154#ifdef __CYGWIN__
10155 /* On Cygwin, avoid locale names without encoding suffix, because the
10156 locale_charset() function relies on the encoding suffix. Note that
10157 LC_ALL is set on the command line. */
10158 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10159#endif
10160 /* Check whether in the abbreviation of the second month, the second
10161 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
10162 one byte long. This excludes the UTF-8 encoding. */
10163 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10164 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
10165#if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
10166 /* Check whether the decimal separator is a comma.
10167 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
10168 are nl_langinfo(RADIXCHAR) are both ".". */
10169 if (localeconv () ->decimal_point[0] != ',') return 1;
10170#endif
10171 return 0;
10172}
10173
10174_ACEOF
10175 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10176 (eval $ac_link) 2>&5
10177 ac_status=$?
10178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10179 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10180 case "$host_os" in
10181 # Handle native Windows specially, because there setlocale() interprets
10182 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
10183 # "fr" or "fra" as "French" or "French_France.1252",
10184 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
10185 # "ja" as "Japanese" or "Japanese_Japan.932",
10186 # and similar.
10187 mingw*)
10188 # Test for the native Windows locale name.
10189 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10190 gt_cv_locale_fr=French_France.1252
10191 else
10192 # None found.
10193 gt_cv_locale_fr=none
10194 fi
10195 ;;
10196 *)
10197 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10198 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
10199 # configure script would override the LC_ALL setting. Likewise for
10200 # LC_CTYPE, which is also set at the beginning of the configure script.
10201 # Test for the usual locale name.
10202 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10203 gt_cv_locale_fr=fr_FR
10204 else
10205 # Test for the locale name with explicit encoding suffix.
10206 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10207 gt_cv_locale_fr=fr_FR.ISO-8859-1
10208 else
10209 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
10210 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10211 gt_cv_locale_fr=fr_FR.ISO8859-1
10212 else
10213 # Test for the HP-UX locale name.
10214 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10215 gt_cv_locale_fr=fr_FR.iso88591
10216 else
10217 # Test for the Solaris 7 locale name.
10218 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10219 gt_cv_locale_fr=fr
10220 else
10221 # None found.
10222 gt_cv_locale_fr=none
10223 fi
10224 fi
10225 fi
10226 fi
10227 fi
10228 ;;
10229 esac
10230 fi
10231 rm -fr conftest*
10232
10233fi
10234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
10235$as_echo "$gt_cv_locale_fr" >&6; }
10236 LOCALE_FR=$gt_cv_locale_fr
10237
10238
10239
10240
10241
10242
10243
8690e634
JK
10244 GNULIB_FFSL=0;
10245 GNULIB_FFSLL=0;
10246 GNULIB_MEMCHR=0;
10247 GNULIB_MEMMEM=0;
10248 GNULIB_MEMPCPY=0;
10249 GNULIB_MEMRCHR=0;
10250 GNULIB_RAWMEMCHR=0;
10251 GNULIB_STPCPY=0;
10252 GNULIB_STPNCPY=0;
10253 GNULIB_STRCHRNUL=0;
10254 GNULIB_STRDUP=0;
10255 GNULIB_STRNCAT=0;
10256 GNULIB_STRNDUP=0;
10257 GNULIB_STRNLEN=0;
10258 GNULIB_STRPBRK=0;
10259 GNULIB_STRSEP=0;
10260 GNULIB_STRSTR=0;
10261 GNULIB_STRCASESTR=0;
10262 GNULIB_STRTOK_R=0;
10263 GNULIB_MBSLEN=0;
10264 GNULIB_MBSNLEN=0;
10265 GNULIB_MBSCHR=0;
10266 GNULIB_MBSRCHR=0;
10267 GNULIB_MBSSTR=0;
10268 GNULIB_MBSCASECMP=0;
10269 GNULIB_MBSNCASECMP=0;
10270 GNULIB_MBSPCASECMP=0;
10271 GNULIB_MBSCASESTR=0;
10272 GNULIB_MBSCSPN=0;
10273 GNULIB_MBSPBRK=0;
10274 GNULIB_MBSSPN=0;
10275 GNULIB_MBSSEP=0;
10276 GNULIB_MBSTOK_R=0;
10277 GNULIB_STRERROR=0;
10278 GNULIB_STRERROR_R=0;
10279 GNULIB_STRSIGNAL=0;
10280 GNULIB_STRVERSCMP=0;
10281 HAVE_MBSLEN=0;
10282 HAVE_FFSL=1;
10283 HAVE_FFSLL=1;
10284 HAVE_MEMCHR=1;
10285 HAVE_DECL_MEMMEM=1;
10286 HAVE_MEMPCPY=1;
10287 HAVE_DECL_MEMRCHR=1;
10288 HAVE_RAWMEMCHR=1;
10289 HAVE_STPCPY=1;
10290 HAVE_STPNCPY=1;
10291 HAVE_STRCHRNUL=1;
10292 HAVE_DECL_STRDUP=1;
10293 HAVE_DECL_STRNDUP=1;
10294 HAVE_DECL_STRNLEN=1;
10295 HAVE_STRPBRK=1;
10296 HAVE_STRSEP=1;
10297 HAVE_STRCASESTR=1;
10298 HAVE_DECL_STRTOK_R=1;
10299 HAVE_DECL_STRERROR_R=1;
10300 HAVE_DECL_STRSIGNAL=1;
10301 HAVE_STRVERSCMP=1;
10302 REPLACE_MEMCHR=0;
10303 REPLACE_MEMMEM=0;
10304 REPLACE_STPNCPY=0;
10305 REPLACE_STRDUP=0;
10306 REPLACE_STRSTR=0;
10307 REPLACE_STRCASESTR=0;
10308 REPLACE_STRCHRNUL=0;
10309 REPLACE_STRERROR=0;
10310 REPLACE_STRERROR_R=0;
10311 REPLACE_STRNCAT=0;
10312 REPLACE_STRNDUP=0;
10313 REPLACE_STRNLEN=0;
10314 REPLACE_STRSIGNAL=0;
10315 REPLACE_STRTOK_R=0;
10316 UNDEFINE_STRTOK_R=0;
10317
10318
10319
10320
10321
10322 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
10323 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
10324 # irrelevant for anonymous mappings.
10325 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
10326if test "x$ac_cv_func_mmap" = x""yes; then :
10327 gl_have_mmap=yes
10328else
10329 gl_have_mmap=no
10330fi
10331
10332
10333 # Try to allow MAP_ANONYMOUS.
10334 gl_have_mmap_anonymous=no
10335 if test $gl_have_mmap = yes; then
10336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
10337$as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
10338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10339/* end confdefs.h. */
10340
10341#include <sys/mman.h>
10342#ifdef MAP_ANONYMOUS
10343 I cannot identify this map
10344#endif
10345
10346_ACEOF
10347if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10348 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
10349 gl_have_mmap_anonymous=yes
10350fi
10351rm -f conftest*
10352
10353 if test $gl_have_mmap_anonymous != yes; then
10354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10355/* end confdefs.h. */
10356
10357#include <sys/mman.h>
10358#ifdef MAP_ANON
10359 I cannot identify this map
10360#endif
10361
10362_ACEOF
10363if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10364 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
10365
10366$as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
10367
10368 gl_have_mmap_anonymous=yes
10369fi
10370rm -f conftest*
10371
10372 fi
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
10374$as_echo "$gl_have_mmap_anonymous" >&6; }
10375 if test $gl_have_mmap_anonymous = yes; then
10376
10377$as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
10378
10379 fi
10380 fi
10381
10382
8690e634
JK
10383
10384
10385
10386
10387 if test $HAVE_MEMCHR = 1; then
10388 # Detect platform-specific bugs in some versions of glibc:
10389 # memchr should not dereference anything with length 0
10390 # http://bugzilla.redhat.com/499689
10391 # memchr should not dereference overestimated length after a match
10392 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
10393 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
10394 # Assume that memchr works on platforms that lack mprotect.
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
10396$as_echo_n "checking whether memchr works... " >&6; }
10397if test "${gl_cv_func_memchr_works+set}" = set; then :
10398 $as_echo_n "(cached) " >&6
10399else
10400 if test "$cross_compiling" = yes; then :
10401 gl_cv_func_memchr_works="guessing no"
10402else
10403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10404/* end confdefs.h. */
10405
10406#include <string.h>
10407#if HAVE_SYS_MMAN_H
10408# include <fcntl.h>
10409# include <unistd.h>
10410# include <sys/types.h>
10411# include <sys/mman.h>
10412# ifndef MAP_FILE
10413# define MAP_FILE 0
10414# endif
10415#endif
10416
10417int
10418main ()
10419{
10420
10421 int result = 0;
10422 char *fence = NULL;
10423#if HAVE_SYS_MMAN_H && HAVE_MPROTECT
10424# if HAVE_MAP_ANONYMOUS
10425 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
10426 const int fd = -1;
10427# else /* !HAVE_MAP_ANONYMOUS */
10428 const int flags = MAP_FILE | MAP_PRIVATE;
10429 int fd = open ("/dev/zero", O_RDONLY, 0666);
10430 if (fd >= 0)
10431# endif
10432 {
10433 int pagesize = getpagesize ();
10434 char *two_pages =
10435 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
10436 flags, fd, 0);
10437 if (two_pages != (char *)(-1)
10438 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
10439 fence = two_pages + pagesize;
10440 }
10441#endif
10442 if (fence)
10443 {
10444 if (memchr (fence, 0, 0))
10445 result |= 1;
10446 strcpy (fence - 9, "12345678");
10447 if (memchr (fence - 9, 0, 79) != fence - 1)
10448 result |= 2;
10449 if (memchr (fence - 1, 0, 3) != fence - 1)
10450 result |= 4;
10451 }
10452 return result;
10453
10454 ;
10455 return 0;
10456}
10457_ACEOF
10458if ac_fn_c_try_run "$LINENO"; then :
10459 gl_cv_func_memchr_works=yes
10460else
10461 gl_cv_func_memchr_works=no
10462fi
10463rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10464 conftest.$ac_objext conftest.beam conftest.$ac_ext
10465fi
10466
10467fi
10468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
10469$as_echo "$gl_cv_func_memchr_works" >&6; }
10470 if test "$gl_cv_func_memchr_works" != yes; then
10471 REPLACE_MEMCHR=1
10472 fi
10473 fi
10474
3574124b 10475ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
8690e634
JK
10476if test "x$ac_cv_have_decl_memmem" = x""yes; then :
10477 ac_have_decl=1
10478else
10479 ac_have_decl=0
10480fi
10481
10482cat >>confdefs.h <<_ACEOF
10483#define HAVE_DECL_MEMMEM $ac_have_decl
10484_ACEOF
10485
10486
10487
10488
10489
8690e634
JK
10490 for ac_func in memmem
10491do :
10492 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
10493if test "x$ac_cv_func_memmem" = x""yes; then :
10494 cat >>confdefs.h <<_ACEOF
10495#define HAVE_MEMMEM 1
10496_ACEOF
10497
10498fi
10499done
10500
10501 if test $ac_cv_func_memmem = yes; then
10502 HAVE_MEMMEM=1
10503 else
10504 HAVE_MEMMEM=0
10505 fi
10506
8690e634
JK
10507 if test $ac_cv_have_decl_memmem = no; then
10508 HAVE_DECL_MEMMEM=0
10509 else
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
10511$as_echo_n "checking whether memmem works... " >&6; }
10512if test "${gl_cv_func_memmem_works_always+set}" = set; then :
10513 $as_echo_n "(cached) " >&6
10514else
10515 if test "$cross_compiling" = yes; then :
10516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10517/* end confdefs.h. */
10518
10519#ifdef __GNU_LIBRARY__
10520 #include <features.h>
10521 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
10522 || __GLIBC_MINOR__ > 12)) \
10523 || (__GLIBC__ > 2)) \
10524 || defined __UCLIBC__
10525 Lucky user
10526 #endif
10527#elif defined __CYGWIN__
10528 #include <cygwin/version.h>
10529 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
10530 Lucky user
10531 #endif
10532#else
10533 Lucky user
10534#endif
10535
10536_ACEOF
10537if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10538 $EGREP "Lucky user" >/dev/null 2>&1; then :
10539 gl_cv_func_memmem_works_always="guessing yes"
10540else
10541 gl_cv_func_memmem_works_always="guessing no"
10542fi
10543rm -f conftest*
10544
10545
10546else
10547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10548/* end confdefs.h. */
10549
10550#include <string.h> /* for memmem */
10551#define P "_EF_BF_BD"
10552#define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
10553#define NEEDLE P P P P P
10554
10555int
10556main ()
10557{
10558
10559 int result = 0;
10560 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
10561 result |= 1;
10562 /* Check for empty needle behavior. */
10563 {
10564 const char *haystack = "AAA";
10565 if (memmem (haystack, 3, NULL, 0) != haystack)
10566 result |= 2;
10567 }
10568 return result;
10569
10570 ;
10571 return 0;
10572}
10573_ACEOF
10574if ac_fn_c_try_run "$LINENO"; then :
10575 gl_cv_func_memmem_works_always=yes
10576else
10577 gl_cv_func_memmem_works_always=no
10578fi
10579rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10580 conftest.$ac_objext conftest.beam conftest.$ac_ext
10581fi
10582
10583
10584fi
10585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
10586$as_echo "$gl_cv_func_memmem_works_always" >&6; }
10587 case "$gl_cv_func_memmem_works_always" in
10588 *yes) ;;
10589 *)
10590 REPLACE_MEMMEM=1
10591 ;;
10592 esac
10593 fi
10594 :
10595
6a29c58e
YQ
10596
10597 GNULIB_DPRINTF=0;
10598 GNULIB_FCLOSE=0;
10599 GNULIB_FDOPEN=0;
10600 GNULIB_FFLUSH=0;
10601 GNULIB_FGETC=0;
10602 GNULIB_FGETS=0;
10603 GNULIB_FOPEN=0;
10604 GNULIB_FPRINTF=0;
10605 GNULIB_FPRINTF_POSIX=0;
10606 GNULIB_FPURGE=0;
10607 GNULIB_FPUTC=0;
10608 GNULIB_FPUTS=0;
10609 GNULIB_FREAD=0;
10610 GNULIB_FREOPEN=0;
10611 GNULIB_FSCANF=0;
10612 GNULIB_FSEEK=0;
10613 GNULIB_FSEEKO=0;
10614 GNULIB_FTELL=0;
10615 GNULIB_FTELLO=0;
10616 GNULIB_FWRITE=0;
10617 GNULIB_GETC=0;
10618 GNULIB_GETCHAR=0;
10619 GNULIB_GETDELIM=0;
10620 GNULIB_GETLINE=0;
10621 GNULIB_OBSTACK_PRINTF=0;
10622 GNULIB_OBSTACK_PRINTF_POSIX=0;
10623 GNULIB_PCLOSE=0;
10624 GNULIB_PERROR=0;
10625 GNULIB_POPEN=0;
10626 GNULIB_PRINTF=0;
10627 GNULIB_PRINTF_POSIX=0;
10628 GNULIB_PUTC=0;
10629 GNULIB_PUTCHAR=0;
10630 GNULIB_PUTS=0;
10631 GNULIB_REMOVE=0;
10632 GNULIB_RENAME=0;
10633 GNULIB_RENAMEAT=0;
10634 GNULIB_SCANF=0;
10635 GNULIB_SNPRINTF=0;
10636 GNULIB_SPRINTF_POSIX=0;
10637 GNULIB_STDIO_H_NONBLOCKING=0;
10638 GNULIB_STDIO_H_SIGPIPE=0;
10639 GNULIB_TMPFILE=0;
10640 GNULIB_VASPRINTF=0;
10641 GNULIB_VFSCANF=0;
10642 GNULIB_VSCANF=0;
10643 GNULIB_VDPRINTF=0;
10644 GNULIB_VFPRINTF=0;
10645 GNULIB_VFPRINTF_POSIX=0;
10646 GNULIB_VPRINTF=0;
10647 GNULIB_VPRINTF_POSIX=0;
10648 GNULIB_VSNPRINTF=0;
10649 GNULIB_VSPRINTF_POSIX=0;
10650 HAVE_DECL_FPURGE=1;
10651 HAVE_DECL_FSEEKO=1;
10652 HAVE_DECL_FTELLO=1;
10653 HAVE_DECL_GETDELIM=1;
10654 HAVE_DECL_GETLINE=1;
10655 HAVE_DECL_OBSTACK_PRINTF=1;
10656 HAVE_DECL_SNPRINTF=1;
10657 HAVE_DECL_VSNPRINTF=1;
10658 HAVE_DPRINTF=1;
10659 HAVE_FSEEKO=1;
10660 HAVE_FTELLO=1;
10661 HAVE_PCLOSE=1;
10662 HAVE_POPEN=1;
10663 HAVE_RENAMEAT=1;
10664 HAVE_VASPRINTF=1;
10665 HAVE_VDPRINTF=1;
10666 REPLACE_DPRINTF=0;
10667 REPLACE_FCLOSE=0;
10668 REPLACE_FDOPEN=0;
10669 REPLACE_FFLUSH=0;
10670 REPLACE_FOPEN=0;
10671 REPLACE_FPRINTF=0;
10672 REPLACE_FPURGE=0;
10673 REPLACE_FREOPEN=0;
10674 REPLACE_FSEEK=0;
10675 REPLACE_FSEEKO=0;
10676 REPLACE_FTELL=0;
10677 REPLACE_FTELLO=0;
10678 REPLACE_GETDELIM=0;
10679 REPLACE_GETLINE=0;
10680 REPLACE_OBSTACK_PRINTF=0;
10681 REPLACE_PERROR=0;
10682 REPLACE_POPEN=0;
10683 REPLACE_PRINTF=0;
10684 REPLACE_REMOVE=0;
10685 REPLACE_RENAME=0;
10686 REPLACE_RENAMEAT=0;
10687 REPLACE_SNPRINTF=0;
10688 REPLACE_SPRINTF=0;
10689 REPLACE_STDIO_READ_FUNCS=0;
10690 REPLACE_STDIO_WRITE_FUNCS=0;
10691 REPLACE_TMPFILE=0;
10692 REPLACE_VASPRINTF=0;
10693 REPLACE_VDPRINTF=0;
10694 REPLACE_VFPRINTF=0;
10695 REPLACE_VPRINTF=0;
10696 REPLACE_VSNPRINTF=0;
10697 REPLACE_VSPRINTF=0;
10698
10699
10700
8690e634
JK
10701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
10702$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
10703if test "${ac_cv_header_stdbool_h+set}" = set; then :
10704 $as_echo_n "(cached) " >&6
10705else
10706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10707/* end confdefs.h. */
10708
10709 #include <stdbool.h>
10710 #ifndef bool
10711 "error: bool is not defined"
10712 #endif
10713 #ifndef false
10714 "error: false is not defined"
10715 #endif
10716 #if false
10717 "error: false is not 0"
10718 #endif
10719 #ifndef true
10720 "error: true is not defined"
10721 #endif
10722 #if true != 1
10723 "error: true is not 1"
10724 #endif
10725 #ifndef __bool_true_false_are_defined
10726 "error: __bool_true_false_are_defined is not defined"
10727 #endif
10728
10729 struct s { _Bool s: 1; _Bool t; } s;
10730
10731 char a[true == 1 ? 1 : -1];
10732 char b[false == 0 ? 1 : -1];
10733 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
10734 char d[(bool) 0.5 == true ? 1 : -1];
10735 /* See body of main program for 'e'. */
10736 char f[(_Bool) 0.0 == false ? 1 : -1];
10737 char g[true];
10738 char h[sizeof (_Bool)];
10739 char i[sizeof s.t];
10740 enum { j = false, k = true, l = false * true, m = true * 256 };
10741 /* The following fails for
10742 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
10743 _Bool n[m];
10744 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
10745 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
10746 /* Catch a bug in an HP-UX C compiler. See
10747 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
10748 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
10749 */
10750 _Bool q = true;
10751 _Bool *pq = &q;
10752
10753int
10754main ()
10755{
10756
10757 bool e = &s;
10758 *pq |= q;
10759 *pq |= ! q;
10760 /* Refer to every declared value, to avoid compiler optimizations. */
10761 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
10762 + !m + !n + !o + !p + !q + !pq);
10763
10764 ;
10765 return 0;
10766}
10767_ACEOF
10768if ac_fn_c_try_compile "$LINENO"; then :
10769 ac_cv_header_stdbool_h=yes
10770else
10771 ac_cv_header_stdbool_h=no
10772fi
10773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10774fi
10775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
10776$as_echo "$ac_cv_header_stdbool_h" >&6; }
10777 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
10778if test "x$ac_cv_type__Bool" = x""yes; then :
10779
10780cat >>confdefs.h <<_ACEOF
10781#define HAVE__BOOL 1
10782_ACEOF
10783
10784
10785fi
10786
10787
10788
10789 REPLACE_NULL=0;
10790 HAVE_WCHAR_T=1;
10791
10792
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
10794$as_echo_n "checking for wchar_t... " >&6; }
10795if test "${gt_cv_c_wchar_t+set}" = set; then :
10796 $as_echo_n "(cached) " >&6
10797else
10798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10799/* end confdefs.h. */
10800#include <stddef.h>
10801 wchar_t foo = (wchar_t)'\0';
10802int
10803main ()
10804{
10805
10806 ;
10807 return 0;
10808}
10809_ACEOF
10810if ac_fn_c_try_compile "$LINENO"; then :
10811 gt_cv_c_wchar_t=yes
10812else
10813 gt_cv_c_wchar_t=no
10814fi
10815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10816fi
10817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
10818$as_echo "$gt_cv_c_wchar_t" >&6; }
10819 if test $gt_cv_c_wchar_t = yes; then
10820
10821$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
10822
10823 fi
10824
63ce7108
TT
10825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
10826$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
10827if test "${ac_cv_c_restrict+set}" = set; then :
10828 $as_echo_n "(cached) " >&6
10829else
10830 ac_cv_c_restrict=no
10831 # The order here caters to the fact that C++ does not require restrict.
10832 for ac_kw in __restrict __restrict__ _Restrict restrict; do
10833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10834/* end confdefs.h. */
10835typedef int * int_ptr;
10836 int foo (int_ptr $ac_kw ip) {
10837 return ip[0];
10838 }
10839int
10840main ()
10841{
10842int s[1];
10843 int * $ac_kw t = s;
10844 t[0] = 0;
10845 return foo(t)
10846 ;
10847 return 0;
10848}
10849_ACEOF
10850if ac_fn_c_try_compile "$LINENO"; then :
10851 ac_cv_c_restrict=$ac_kw
10852fi
10853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10854 test "$ac_cv_c_restrict" != no && break
10855 done
10856
10857fi
10858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
10859$as_echo "$ac_cv_c_restrict" >&6; }
10860
10861 case $ac_cv_c_restrict in
10862 restrict) ;;
10863 no) $as_echo "#define restrict /**/" >>confdefs.h
10864 ;;
10865 *) cat >>confdefs.h <<_ACEOF
10866#define restrict $ac_cv_c_restrict
10867_ACEOF
10868 ;;
10869 esac
10870
10871
10872
10873
10874
8690e634
JK
10875
10876
10877
10878
10879
10880
10881
10882 if test $gl_cv_have_include_next = yes; then
10883 gl_cv_next_string_h='<'string.h'>'
10884 else
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
10886$as_echo_n "checking absolute name of <string.h>... " >&6; }
10887if test "${gl_cv_next_string_h+set}" = set; then :
10888 $as_echo_n "(cached) " >&6
10889else
10890
10891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10892/* end confdefs.h. */
10893#include <string.h>
10894
10895_ACEOF
10896 case "$host_os" in
10897 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10898 *) gl_absname_cpp="$ac_cpp" ;;
10899 esac
10900
10901 case "$host_os" in
c971b7fa
PA
10902 mingw*)
10903 gl_dirsep_regex='[/\\]'
10904 ;;
10905 *)
10906 gl_dirsep_regex='\/'
10907 ;;
10908 esac
10909 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10910
8690e634
JK
10911 gl_header_literal_regex=`echo 'string.h' \
10912 | sed -e "$gl_make_literal_regex_sed"`
10913 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10914 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10915 s|^/[^/]|//&|
10916 p
10917 q
10918 }'
10919 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10920 sed -n "$gl_absolute_header_sed"`'"'
10921
10922
10923fi
10924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
10925$as_echo "$gl_cv_next_string_h" >&6; }
10926 fi
10927 NEXT_STRING_H=$gl_cv_next_string_h
10928
10929 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10930 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10931 gl_next_as_first_directive='<'string.h'>'
10932 else
10933 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10934 gl_next_as_first_directive=$gl_cv_next_string_h
10935 fi
10936 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
10937
10938
10939
10940
10941
10942
10943 for gl_func in ffsl ffsll memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r strerror_r strsignal strverscmp; do
10944 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
10946$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
10947if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
10948 $as_echo_n "(cached) " >&6
10949else
10950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10951/* end confdefs.h. */
10952#include <string.h>
10953
10954int
10955main ()
10956{
10957#undef $gl_func
10958 (void) $gl_func;
10959 ;
10960 return 0;
10961}
10962_ACEOF
10963if ac_fn_c_try_compile "$LINENO"; then :
10964 eval "$as_gl_Symbol=yes"
10965else
10966 eval "$as_gl_Symbol=no"
10967fi
10968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10969fi
10970eval ac_res=\$$as_gl_Symbol
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10972$as_echo "$ac_res" >&6; }
10973 eval as_val=\$$as_gl_Symbol
10974 if test "x$as_val" = x""yes; then :
10975 cat >>confdefs.h <<_ACEOF
10976#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
10977_ACEOF
10978
10979 eval ac_cv_have_decl_$gl_func=yes
10980fi
10981 done
10982
10983
10984
8839a007 10985
63ce7108
TT
10986
10987 if test "$gl_cv_func_memchr_works" != yes; then
10988 REPLACE_STRSTR=1
10989 else
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
10991$as_echo_n "checking whether strstr works... " >&6; }
10992if test "${gl_cv_func_strstr_works_always+set}" = set; then :
10993 $as_echo_n "(cached) " >&6
10994else
10995 if test "$cross_compiling" = yes; then :
10996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10997/* end confdefs.h. */
10998
10999#ifdef __GNU_LIBRARY__
11000 #include <features.h>
11001 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
11002 || defined __UCLIBC__
11003 Lucky user
11004 #endif
11005#elif defined __CYGWIN__
11006 #include <cygwin/version.h>
11007 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
11008 Lucky user
11009 #endif
11010#else
11011 Lucky user
11012#endif
11013
11014_ACEOF
11015if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11016 $EGREP "Lucky user" >/dev/null 2>&1; then :
11017 gl_cv_func_strstr_works_always="guessing yes"
11018else
11019 gl_cv_func_strstr_works_always="guessing no"
11020fi
11021rm -f conftest*
11022
11023
11024else
11025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11026/* end confdefs.h. */
11027
11028#include <string.h> /* for strstr */
11029#define P "_EF_BF_BD"
11030#define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
11031#define NEEDLE P P P P P
11032
11033int
11034main ()
11035{
11036return !!strstr (HAYSTACK, NEEDLE);
11037
11038 ;
11039 return 0;
11040}
11041_ACEOF
11042if ac_fn_c_try_run "$LINENO"; then :
11043 gl_cv_func_strstr_works_always=yes
11044else
11045 gl_cv_func_strstr_works_always=no
11046fi
11047rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11048 conftest.$ac_objext conftest.beam conftest.$ac_ext
11049fi
11050
11051
11052fi
11053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
11054$as_echo "$gl_cv_func_strstr_works_always" >&6; }
11055 case "$gl_cv_func_strstr_works_always" in
11056 *yes) ;;
11057 *)
11058 REPLACE_STRSTR=1
11059 ;;
11060 esac
11061 fi
11062
421693b0
PA
11063ac_fn_c_check_decl "$LINENO" "strtok_r" "ac_cv_have_decl_strtok_r" "$ac_includes_default"
11064if test "x$ac_cv_have_decl_strtok_r" = x""yes; then :
11065 ac_have_decl=1
11066else
11067 ac_have_decl=0
11068fi
11069
11070cat >>confdefs.h <<_ACEOF
11071#define HAVE_DECL_STRTOK_R $ac_have_decl
11072_ACEOF
11073
09607c9e
TT
11074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
11075$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
11076if test "${ac_cv_header_stat_broken+set}" = set; then :
11077 $as_echo_n "(cached) " >&6
11078else
11079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11080/* end confdefs.h. */
11081#include <sys/types.h>
11082#include <sys/stat.h>
63ce7108 11083
09607c9e
TT
11084#if defined S_ISBLK && defined S_IFDIR
11085extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
11086#endif
8839a007 11087
09607c9e
TT
11088#if defined S_ISBLK && defined S_IFCHR
11089extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
11090#endif
11091
11092#if defined S_ISLNK && defined S_IFREG
11093extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
11094#endif
11095
11096#if defined S_ISSOCK && defined S_IFREG
11097extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
11098#endif
8839a007 11099
8839a007 11100_ACEOF
09607c9e
TT
11101if ac_fn_c_try_compile "$LINENO"; then :
11102 ac_cv_header_stat_broken=no
11103else
11104 ac_cv_header_stat_broken=yes
11105fi
11106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11107fi
11108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
11109$as_echo "$ac_cv_header_stat_broken" >&6; }
11110if test $ac_cv_header_stat_broken = yes; then
11111
11112$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
8839a007
PA
11113
11114fi
11115
09607c9e
TT
11116
11117
8839a007
PA
11118ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
11119if test "x$ac_cv_type_mode_t" = x""yes; then :
11120
11121else
11122
11123cat >>confdefs.h <<_ACEOF
11124#define mode_t int
11125_ACEOF
11126
11127fi
11128
8839a007
PA
11129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
11130$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
11131if test -z "$MKDIR_P"; then
11132 if test "${ac_cv_path_mkdir+set}" = set; then :
11133 $as_echo_n "(cached) " >&6
11134else
11135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11136for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
11137do
11138 IFS=$as_save_IFS
11139 test -z "$as_dir" && as_dir=.
11140 for ac_prog in mkdir gmkdir; do
11141 for ac_exec_ext in '' $ac_executable_extensions; do
11142 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
11143 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
11144 'mkdir (GNU coreutils) '* | \
11145 'mkdir (coreutils) '* | \
11146 'mkdir (fileutils) '4.1*)
11147 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
11148 break 3;;
11149 esac
11150 done
11151 done
11152 done
11153IFS=$as_save_IFS
11154
11155fi
11156
11157 if test "${ac_cv_path_mkdir+set}" = set; then
11158 MKDIR_P="$ac_cv_path_mkdir -p"
11159 else
11160 # As a last resort, use the slow shell script. Don't cache a
11161 # value for MKDIR_P within a source directory, because that will
11162 # break other packages using the cache if that directory is
11163 # removed, or if the value is a relative name.
11164 test -d ./--version && rmdir ./--version
11165 MKDIR_P="$ac_install_sh -d"
11166 fi
11167fi
11168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
11169$as_echo "$MKDIR_P" >&6; }
11170
11171
09607c9e
TT
11172
11173ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11174if test "x$ac_cv_type_pid_t" = x""yes; then :
11175
11176else
11177
11178cat >>confdefs.h <<_ACEOF
11179#define pid_t int
11180_ACEOF
11181
11182fi
11183
11184
11185
2196f55f 11186
09607c9e
TT
11187
11188
11189
11190
11191 GNULIB_MKTIME=0;
11192 GNULIB_NANOSLEEP=0;
11193 GNULIB_STRPTIME=0;
11194 GNULIB_TIMEGM=0;
11195 GNULIB_TIME_R=0;
11196 HAVE_DECL_LOCALTIME_R=1;
11197 HAVE_NANOSLEEP=1;
11198 HAVE_STRPTIME=1;
11199 HAVE_TIMEGM=1;
11200 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
11201 REPLACE_MKTIME=GNULIB_PORTCHECK;
11202 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
11203 REPLACE_TIMEGM=GNULIB_PORTCHECK;
11204
11205
11206
11207
11208
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
11210$as_echo_n "checking for struct timespec in <time.h>... " >&6; }
11211if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
11212 $as_echo_n "(cached) " >&6
11213else
11214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11215/* end confdefs.h. */
11216#include <time.h>
11217
11218int
11219main ()
11220{
11221static struct timespec x; x.tv_sec = x.tv_nsec;
11222 ;
11223 return 0;
11224}
11225_ACEOF
11226if ac_fn_c_try_compile "$LINENO"; then :
11227 gl_cv_sys_struct_timespec_in_time_h=yes
11228else
11229 gl_cv_sys_struct_timespec_in_time_h=no
11230fi
11231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11232fi
11233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
11234$as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
11235
11236 TIME_H_DEFINES_STRUCT_TIMESPEC=0
11237 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
11238 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
11239 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
11240 TIME_H_DEFINES_STRUCT_TIMESPEC=1
11241 else
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
11243$as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
11244if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
11245 $as_echo_n "(cached) " >&6
11246else
11247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11248/* end confdefs.h. */
11249#include <sys/time.h>
11250
11251int
11252main ()
11253{
11254static struct timespec x; x.tv_sec = x.tv_nsec;
11255 ;
11256 return 0;
11257}
11258_ACEOF
11259if ac_fn_c_try_compile "$LINENO"; then :
11260 gl_cv_sys_struct_timespec_in_sys_time_h=yes
11261else
11262 gl_cv_sys_struct_timespec_in_sys_time_h=no
11263fi
11264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11265fi
11266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
11267$as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
11268 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
11269 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
11270 else
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
11272$as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
11273if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
11274 $as_echo_n "(cached) " >&6
11275else
11276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11277/* end confdefs.h. */
11278#include <pthread.h>
11279
11280int
11281main ()
11282{
11283static struct timespec x; x.tv_sec = x.tv_nsec;
11284 ;
11285 return 0;
11286}
11287_ACEOF
11288if ac_fn_c_try_compile "$LINENO"; then :
11289 gl_cv_sys_struct_timespec_in_pthread_h=yes
11290else
11291 gl_cv_sys_struct_timespec_in_pthread_h=no
11292fi
11293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11294fi
11295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
11296$as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
11297 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
11298 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
11299 fi
11300 fi
11301 fi
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317 if test $gl_cv_have_include_next = yes; then
11318 gl_cv_next_time_h='<'time.h'>'
11319 else
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
11321$as_echo_n "checking absolute name of <time.h>... " >&6; }
11322if test "${gl_cv_next_time_h+set}" = set; then :
11323 $as_echo_n "(cached) " >&6
11324else
11325
11326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11327/* end confdefs.h. */
11328#include <time.h>
11329
11330_ACEOF
11331 case "$host_os" in
11332 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11333 *) gl_absname_cpp="$ac_cpp" ;;
11334 esac
11335
11336 case "$host_os" in
11337 mingw*)
11338 gl_dirsep_regex='[/\\]'
11339 ;;
11340 *)
11341 gl_dirsep_regex='\/'
11342 ;;
11343 esac
11344 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11345
11346 gl_header_literal_regex=`echo 'time.h' \
11347 | sed -e "$gl_make_literal_regex_sed"`
11348 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11349 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11350 s|^/[^/]|//&|
11351 p
11352 q
11353 }'
11354 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11355 sed -n "$gl_absolute_header_sed"`'"'
11356
11357
11358fi
11359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
11360$as_echo "$gl_cv_next_time_h" >&6; }
11361 fi
11362 NEXT_TIME_H=$gl_cv_next_time_h
11363
11364 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11365 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11366 gl_next_as_first_directive='<'time.h'>'
11367 else
11368 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11369 gl_next_as_first_directive=$gl_cv_next_time_h
11370 fi
11371 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
11372
11373
11374
11375
11376
11377
11378
8690e634
JK
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
11380$as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
11381if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
11382 $as_echo_n "(cached) " >&6
11383else
11384 gl_cv_header_wchar_h_correct_inline=yes
11385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11386/* end confdefs.h. */
11387
11388 #define wcstod renamed_wcstod
11389/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11390 <wchar.h>.
11391 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11392 included before <wchar.h>. */
11393#include <stddef.h>
11394#include <stdio.h>
11395#include <time.h>
11396#include <wchar.h>
11397extern int zero (void);
11398int main () { return zero(); }
11399
11400_ACEOF
11401 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11402 (eval $ac_compile) 2>&5
11403 ac_status=$?
11404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11405 test $ac_status = 0; }; then
11406 mv conftest.$ac_objext conftest1.$ac_objext
11407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11408/* end confdefs.h. */
11409
11410 #define wcstod renamed_wcstod
11411/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11412 <wchar.h>.
11413 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11414 included before <wchar.h>. */
11415#include <stddef.h>
11416#include <stdio.h>
11417#include <time.h>
11418#include <wchar.h>
11419int zero (void) { return 0; }
11420
11421_ACEOF
11422 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11423 (eval $ac_compile) 2>&5
11424 ac_status=$?
11425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11426 test $ac_status = 0; }; then
11427 mv conftest.$ac_objext conftest2.$ac_objext
11428 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
11429 :
11430 else
11431 gl_cv_header_wchar_h_correct_inline=no
11432 fi
11433 fi
11434 fi
11435 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
11436
11437fi
11438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
11439$as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
11440 if test $gl_cv_header_wchar_h_correct_inline = no; then
11441 as_fn_error "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
11442This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
11443C99 mode. You have four options:
11444 - Add the flag -fgnu89-inline to CC and reconfigure, or
11445 - Fix your include files, using parts of
11446 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
11447 - Use a gcc version older than 4.3, or
11448 - Don't use the flags -std=c99 or -std=gnu99.
11449Configuration aborted." "$LINENO" 5
11450 fi
11451
11452
11453
11454
11455
8690e634
JK
11456 if test $ac_cv_header_features_h = yes; then
11457 HAVE_FEATURES_H=1
11458 else
11459 HAVE_FEATURES_H=0
11460 fi
11461
11462
11463
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
11465$as_echo_n "checking for wint_t... " >&6; }
11466if test "${gt_cv_c_wint_t+set}" = set; then :
11467 $as_echo_n "(cached) " >&6
11468else
11469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11470/* end confdefs.h. */
11471
11472/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11473 <wchar.h>.
11474 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
11475 before <wchar.h>. */
11476#include <stddef.h>
11477#include <stdio.h>
11478#include <time.h>
11479#include <wchar.h>
11480 wint_t foo = (wchar_t)'\0';
11481int
11482main ()
11483{
11484
11485 ;
11486 return 0;
11487}
11488_ACEOF
11489if ac_fn_c_try_compile "$LINENO"; then :
11490 gt_cv_c_wint_t=yes
11491else
11492 gt_cv_c_wint_t=no
11493fi
11494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11495fi
11496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
11497$as_echo "$gt_cv_c_wint_t" >&6; }
11498 if test $gt_cv_c_wint_t = yes; then
11499
11500$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
11501
11502 fi
11503
11504
11505 GNULIB_ISWBLANK=0;
11506 GNULIB_WCTYPE=0;
11507 GNULIB_ISWCTYPE=0;
11508 GNULIB_WCTRANS=0;
11509 GNULIB_TOWCTRANS=0;
11510 HAVE_ISWBLANK=1;
11511 HAVE_WCTYPE_T=1;
11512 HAVE_WCTRANS_T=1;
11513 REPLACE_ISWBLANK=0;
11514
11515
11516
11517
8690e634
JK
11518 if false; then
11519 GL_COND_LIBTOOL_TRUE=
11520 GL_COND_LIBTOOL_FALSE='#'
11521else
11522 GL_COND_LIBTOOL_TRUE='#'
11523 GL_COND_LIBTOOL_FALSE=
11524fi
11525
11526 gl_cond_libtool=false
11527 gl_libdeps=
11528 gl_ltlibdeps=
11529 gl_m4_base='import/m4'
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539 gl_source_base='import'
11540
11541
11542 if test $ac_cv_func_alloca_works = no; then
11543 :
11544 fi
11545
11546 # Define an additional variable used in the Makefile substitution.
11547 if test $ac_cv_working_alloca_h = yes; then
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
11549$as_echo_n "checking for alloca as a compiler built-in... " >&6; }
11550if test "${gl_cv_rpl_alloca+set}" = set; then :
11551 $as_echo_n "(cached) " >&6
11552else
11553
11554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11555/* end confdefs.h. */
11556
11557#if defined __GNUC__ || defined _AIX || defined _MSC_VER
11558 Need own alloca
11559#endif
11560
11561_ACEOF
11562if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11563 $EGREP "Need own alloca" >/dev/null 2>&1; then :
11564 gl_cv_rpl_alloca=yes
11565else
11566 gl_cv_rpl_alloca=no
11567fi
11568rm -f conftest*
11569
11570
11571fi
11572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
11573$as_echo "$gl_cv_rpl_alloca" >&6; }
11574 if test $gl_cv_rpl_alloca = yes; then
11575
11576$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
11577
11578 ALLOCA_H=alloca.h
11579 else
11580 ALLOCA_H=
11581 fi
11582 else
11583 ALLOCA_H=alloca.h
11584 fi
11585
11586 if test -n "$ALLOCA_H"; then
11587 GL_GENERATE_ALLOCA_H_TRUE=
11588 GL_GENERATE_ALLOCA_H_FALSE='#'
11589else
11590 GL_GENERATE_ALLOCA_H_TRUE='#'
11591 GL_GENERATE_ALLOCA_H_FALSE=
11592fi
11593
11594
11595
98399780
YQ
11596
11597
11598 if test $ac_cv_func_canonicalize_file_name = no; then
11599 HAVE_CANONICALIZE_FILE_NAME=0
11600 if test $ac_cv_func_realpath = no; then
11601 HAVE_REALPATH=0
11602 else
11603 case "$gl_cv_func_realpath_works" in
11604 *yes) ;;
11605 *) REPLACE_REALPATH=1 ;;
11606 esac
11607 fi
11608 else
11609 case "$gl_cv_func_realpath_works" in
11610 *yes)
11611 ;;
11612 *)
11613 REPLACE_CANONICALIZE_FILE_NAME=1
11614 REPLACE_REALPATH=1
11615 ;;
11616 esac
11617 fi
11618
11619 if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
11620
11621
11622
11623
11624
11625
11626
11627
11628 gl_LIBOBJS="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
11629
11630 fi
11631
11632
11633cat >>confdefs.h <<_ACEOF
11634#define GNULIB_CANONICALIZE_LGPL 1
11635_ACEOF
11636
11637
11638
11639
11640
11641
11642
11643 GNULIB_CANONICALIZE_FILE_NAME=1
11644
11645
11646
11647
11648
11649$as_echo "#define GNULIB_TEST_CANONICALIZE_FILE_NAME 1" >>confdefs.h
11650
11651
11652
11653
11654
11655
11656
11657
11658 GNULIB_REALPATH=1
11659
11660
11661
11662
11663
11664$as_echo "#define GNULIB_TEST_REALPATH 1" >>confdefs.h
11665
11666
11667
11668
6a29c58e
YQ
11669
11670
11671
11672
11673 GNULIB_CHDIR=1
11674
11675
11676
11677
11678
11679$as_echo "#define GNULIB_TEST_CHDIR 1" >>confdefs.h
11680
11681
11682
11683
8690e634
JK
11684 if test "x$datarootdir" = x; then
11685 datarootdir='${datadir}'
11686
11687 fi
11688 if test "x$docdir" = x; then
11689 docdir='${datarootdir}/doc/${PACKAGE}'
11690
11691 fi
11692 if test "x$htmldir" = x; then
11693 htmldir='${docdir}'
11694
11695 fi
11696 if test "x$dvidir" = x; then
11697 dvidir='${docdir}'
11698
11699 fi
11700 if test "x$pdfdir" = x; then
11701 pdfdir='${docdir}'
11702
11703 fi
11704 if test "x$psdir" = x; then
11705 psdir='${docdir}'
11706
11707 fi
11708 if test "x$lispdir" = x; then
11709 lispdir='${datarootdir}/emacs/site-lisp'
11710
11711 fi
11712 if test "x$localedir" = x; then
11713 localedir='${datarootdir}/locale'
11714
11715 fi
11716
11717 pkglibexecdir='${libexecdir}/${PACKAGE}'
11718
11719
11720
11721
11722
11723
63ce7108 11724
e26b6bb0
TT
11725
11726
11727
11728
11729
11730
11731
11732 if test $gl_cv_have_include_next = yes; then
11733 gl_cv_next_dirent_h='<'dirent.h'>'
11734 else
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
11736$as_echo_n "checking absolute name of <dirent.h>... " >&6; }
11737if test "${gl_cv_next_dirent_h+set}" = set; then :
11738 $as_echo_n "(cached) " >&6
11739else
11740
11741 if test $ac_cv_header_dirent_h = yes; then
11742
11743
11744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11745/* end confdefs.h. */
11746#include <dirent.h>
11747
11748_ACEOF
11749 case "$host_os" in
11750 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11751 *) gl_absname_cpp="$ac_cpp" ;;
11752 esac
11753
11754 case "$host_os" in
11755 mingw*)
11756 gl_dirsep_regex='[/\\]'
11757 ;;
11758 *)
11759 gl_dirsep_regex='\/'
11760 ;;
11761 esac
11762 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11763
11764 gl_header_literal_regex=`echo 'dirent.h' \
11765 | sed -e "$gl_make_literal_regex_sed"`
11766 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11767 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11768 s|^/[^/]|//&|
11769 p
11770 q
11771 }'
11772 gl_cv_next_dirent_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11773 sed -n "$gl_absolute_header_sed"`'"'
11774 else
11775 gl_cv_next_dirent_h='<'dirent.h'>'
11776 fi
11777
11778
11779fi
11780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
11781$as_echo "$gl_cv_next_dirent_h" >&6; }
11782 fi
11783 NEXT_DIRENT_H=$gl_cv_next_dirent_h
11784
11785 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11786 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11787 gl_next_as_first_directive='<'dirent.h'>'
11788 else
11789 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11790 gl_next_as_first_directive=$gl_cv_next_dirent_h
11791 fi
11792 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H=$gl_next_as_first_directive
11793
11794
11795
11796
11797 if test $ac_cv_header_dirent_h = yes; then
11798 HAVE_DIRENT_H=1
11799 else
11800 HAVE_DIRENT_H=0
11801 fi
11802
11803
11804
11805 for gl_func in alphasort closedir dirfd fdopendir opendir readdir rewinddir scandir; do
11806 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
11808$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
11809if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
11810 $as_echo_n "(cached) " >&6
11811else
11812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11813/* end confdefs.h. */
11814#include <dirent.h>
11815
11816int
11817main ()
11818{
11819#undef $gl_func
11820 (void) $gl_func;
11821 ;
11822 return 0;
11823}
11824_ACEOF
11825if ac_fn_c_try_compile "$LINENO"; then :
11826 eval "$as_gl_Symbol=yes"
11827else
11828 eval "$as_gl_Symbol=no"
11829fi
11830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11831fi
11832eval ac_res=\$$as_gl_Symbol
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11834$as_echo "$ac_res" >&6; }
11835 eval as_val=\$$as_gl_Symbol
11836 if test "x$as_val" = x""yes; then :
11837 cat >>confdefs.h <<_ACEOF
11838#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
11839_ACEOF
11840
11841 eval ac_cv_have_decl_$gl_func=yes
11842fi
11843 done
11844
11845
11846
11847
11848
11849
18848e28
GF
11850
11851 for ac_func in dirfd
11852do :
11853 ac_fn_c_check_func "$LINENO" "dirfd" "ac_cv_func_dirfd"
11854if test "x$ac_cv_func_dirfd" = x""yes; then :
11855 cat >>confdefs.h <<_ACEOF
11856#define HAVE_DIRFD 1
11857_ACEOF
11858
11859fi
11860done
11861
11862 ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h>
11863 #include <dirent.h>
11864"
11865if test "x$ac_cv_have_decl_dirfd" = x""yes; then :
11866 ac_have_decl=1
11867else
11868 ac_have_decl=0
11869fi
11870
11871cat >>confdefs.h <<_ACEOF
11872#define HAVE_DECL_DIRFD $ac_have_decl
11873_ACEOF
11874
11875 if test $ac_cv_have_decl_dirfd = no; then
11876 HAVE_DECL_DIRFD=0
11877 fi
11878
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dirfd is a macro" >&5
11880$as_echo_n "checking whether dirfd is a macro... " >&6; }
11881if test "${gl_cv_func_dirfd_macro+set}" = set; then :
11882 $as_echo_n "(cached) " >&6
11883else
11884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11885/* end confdefs.h. */
11886
11887#include <sys/types.h>
11888#include <dirent.h>
11889#ifdef dirfd
11890 dirent_header_defines_dirfd
11891#endif
11892_ACEOF
11893if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11894 $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then :
11895 gl_cv_func_dirfd_macro=yes
11896else
11897 gl_cv_func_dirfd_macro=no
11898fi
11899rm -f conftest*
11900
11901fi
11902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dirfd_macro" >&5
11903$as_echo "$gl_cv_func_dirfd_macro" >&6; }
11904
11905 # Use the replacement only if we have no function or macro with that name.
11906 if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no; then
11907 if test $ac_cv_have_decl_dirfd = yes; then
11908 # If the system declares dirfd already, let's declare rpl_dirfd instead.
11909 REPLACE_DIRFD=1
11910 fi
11911 fi
11912
11913 if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no; then
11914
11915
11916
11917
11918
11919
11920
11921
11922 gl_LIBOBJS="$gl_LIBOBJS dirfd.$ac_objext"
11923
11924
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get the file descriptor associated with an open DIR*" >&5
11926$as_echo_n "checking how to get the file descriptor associated with an open DIR*... " >&6; }
11927if test "${gl_cv_sys_dir_fd_member_name+set}" = set; then :
11928 $as_echo_n "(cached) " >&6
11929else
11930
11931 dirfd_save_CFLAGS=$CFLAGS
11932 for ac_expr in d_fd dd_fd; do
11933
11934 CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
11935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11936/* end confdefs.h. */
11937
11938 #include <sys/types.h>
11939 #include <dirent.h>
11940int
11941main ()
11942{
11943DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
11944 ;
11945 return 0;
11946}
11947_ACEOF
11948if ac_fn_c_try_compile "$LINENO"; then :
11949 dir_fd_found=yes
11950
11951fi
11952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11953 CFLAGS=$dirfd_save_CFLAGS
11954 test "$dir_fd_found" = yes && break
11955 done
11956 test "$dir_fd_found" = yes || ac_expr=no_such_member
11957
11958 gl_cv_sys_dir_fd_member_name=$ac_expr
11959
11960
11961fi
11962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_dir_fd_member_name" >&5
11963$as_echo "$gl_cv_sys_dir_fd_member_name" >&6; }
11964 if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
11965
11966cat >>confdefs.h <<_ACEOF
11967#define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
11968_ACEOF
11969
11970 fi
11971
11972
11973 fi
11974
11975
11976
11977
11978
11979 GNULIB_DIRFD=1
11980
11981
11982
11983
11984
11985$as_echo "#define GNULIB_TEST_DIRFD 1" >>confdefs.h
11986
11987
11988
11989
11990
11991
11992
11993
6a29c58e
YQ
11994
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
11996$as_echo_n "checking whether // is distinct from /... " >&6; }
11997if test "${gl_cv_double_slash_root+set}" = set; then :
11998 $as_echo_n "(cached) " >&6
11999else
12000 if test x"$cross_compiling" = xyes ; then
12001 # When cross-compiling, there is no way to tell whether // is special
12002 # short of a list of hosts. However, the only known hosts to date
12003 # that have a distinct // are Apollo DomainOS (too old to port to),
12004 # Cygwin, and z/OS. If anyone knows of another system for which // has
12005 # special semantics and is distinct from /, please report it to
12006 # <bug-gnulib@gnu.org>.
12007 case $host in
12008 *-cygwin | i370-ibm-openedition)
12009 gl_cv_double_slash_root=yes ;;
12010 *)
12011 # Be optimistic and assume that / and // are the same when we
12012 # don't know.
12013 gl_cv_double_slash_root='unknown, assuming no' ;;
12014 esac
12015 else
12016 set x `ls -di / // 2>/dev/null`
12017 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
12018 gl_cv_double_slash_root=no
12019 else
12020 gl_cv_double_slash_root=yes
12021 fi
12022 fi
12023fi
12024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
12025$as_echo "$gl_cv_double_slash_root" >&6; }
12026 if test "$gl_cv_double_slash_root" = yes; then
12027
12028$as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
12029
12030 fi
12031
12032
12033
12034
12035
12036
88b48903
WN
12037 FLOAT_H=
12038 REPLACE_FLOAT_LDBL=0
12039 case "$host_os" in
12040 aix* | beos* | openbsd* | mirbsd* | irix*)
12041 FLOAT_H=float.h
12042 ;;
12043 freebsd*)
12044 case "$host_cpu" in
12045 i[34567]86 )
12046 FLOAT_H=float.h
12047 ;;
12048 x86_64 )
12049 # On x86_64 systems, the C compiler may still be generating
12050 # 32-bit code.
12051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12052/* end confdefs.h. */
12053#if defined __LP64__ || defined __x86_64__ || defined __amd64__
12054 yes
12055 #endif
12056_ACEOF
12057if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12058 $EGREP "yes" >/dev/null 2>&1; then :
12059
12060else
12061 FLOAT_H=float.h
12062fi
12063rm -f conftest*
8690e634 12064
88b48903
WN
12065 ;;
12066 esac
12067 ;;
12068 linux*)
12069 case "$host_cpu" in
12070 powerpc*)
12071 FLOAT_H=float.h
12072 ;;
12073 esac
12074 ;;
12075 esac
12076 case "$host_os" in
12077 aix* | freebsd* | linux*)
12078 if test -n "$FLOAT_H"; then
12079 REPLACE_FLOAT_LDBL=1
12080 fi
12081 ;;
12082 esac
a512b375 12083
88b48903
WN
12084 REPLACE_ITOLD=0
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
12086$as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
12087if test "${gl_cv_func_itold_works+set}" = set; then :
8690e634
JK
12088 $as_echo_n "(cached) " >&6
12089else
88b48903
WN
12090
12091 if test "$cross_compiling" = yes; then :
12092 case "$host" in
12093 sparc*-*-linux*)
12094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12095/* end confdefs.h. */
12096#if defined __LP64__ || defined __arch64__
12097 yes
12098 #endif
12099_ACEOF
12100if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12101 $EGREP "yes" >/dev/null 2>&1; then :
12102 gl_cv_func_itold_works="guessing no"
12103else
12104 gl_cv_func_itold_works="guessing yes"
12105fi
12106rm -f conftest*
12107
12108 ;;
12109 *) gl_cv_func_itold_works="guessing yes" ;;
12110 esac
12111
8690e634
JK
12112else
12113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12114/* end confdefs.h. */
8690e634 12115
88b48903
WN
12116int i = -1;
12117volatile long double ld;
12118int main ()
8690e634 12119{
88b48903
WN
12120 ld += i * 1.0L;
12121 if (ld > 0)
12122 return 1;
12123 return 0;
12124}
12125_ACEOF
12126if ac_fn_c_try_run "$LINENO"; then :
12127 gl_cv_func_itold_works=yes
12128else
12129 gl_cv_func_itold_works=no
12130fi
12131rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12132 conftest.$ac_objext conftest.beam conftest.$ac_ext
12133fi
12134
12135
12136fi
12137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
12138$as_echo "$gl_cv_func_itold_works" >&6; }
12139 case "$gl_cv_func_itold_works" in
12140 *no)
12141 REPLACE_ITOLD=1
12142 FLOAT_H=float.h
12143 ;;
12144 esac
12145
12146 if test -n "$FLOAT_H"; then
12147
12148
12149
12150
12151
12152
12153
12154
12155 if test $gl_cv_have_include_next = yes; then
12156 gl_cv_next_float_h='<'float.h'>'
12157 else
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
12159$as_echo_n "checking absolute name of <float.h>... " >&6; }
12160if test "${gl_cv_next_float_h+set}" = set; then :
12161 $as_echo_n "(cached) " >&6
12162else
12163
12164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12165/* end confdefs.h. */
12166#include <float.h>
12167
12168_ACEOF
12169 case "$host_os" in
12170 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12171 *) gl_absname_cpp="$ac_cpp" ;;
12172 esac
12173
12174 case "$host_os" in
12175 mingw*)
12176 gl_dirsep_regex='[/\\]'
12177 ;;
12178 *)
12179 gl_dirsep_regex='\/'
12180 ;;
12181 esac
12182 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12183
12184 gl_header_literal_regex=`echo 'float.h' \
12185 | sed -e "$gl_make_literal_regex_sed"`
12186 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12187 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12188 s|^/[^/]|//&|
12189 p
12190 q
12191 }'
12192 gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12193 sed -n "$gl_absolute_header_sed"`'"'
12194
12195
12196fi
12197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
12198$as_echo "$gl_cv_next_float_h" >&6; }
12199 fi
12200 NEXT_FLOAT_H=$gl_cv_next_float_h
12201
12202 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12203 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12204 gl_next_as_first_directive='<'float.h'>'
12205 else
12206 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12207 gl_next_as_first_directive=$gl_cv_next_float_h
12208 fi
12209 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
12210
12211
12212
12213
12214 fi
12215
12216 if test -n "$FLOAT_H"; then
12217 GL_GENERATE_FLOAT_H_TRUE=
12218 GL_GENERATE_FLOAT_H_FALSE='#'
12219else
12220 GL_GENERATE_FLOAT_H_TRUE='#'
12221 GL_GENERATE_FLOAT_H_FALSE=
12222fi
12223
12224
12225
12226 if test $REPLACE_FLOAT_LDBL = 1; then
12227
12228
12229
12230
12231
12232
12233
12234
12235 gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
12236
12237 fi
12238 if test $REPLACE_ITOLD = 1; then
12239
12240
12241
12242
12243
12244
12245
12246
12247 gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
12248
12249 fi
12250
12251
12252
12253
12254
12255 FNMATCH_H=
12256 gl_fnmatch_required_lowercase=`
12257 echo $gl_fnmatch_required | LC_ALL=C tr '[A-Z]' '[a-z]'
12258 `
12259 gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
12261$as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
12262if { as_var=$gl_fnmatch_cache_var; eval "test \"\${$as_var+set}\" = set"; }; then :
12263 $as_echo_n "(cached) " >&6
12264else
12265 if test $gl_fnmatch_required = GNU; then
12266 gl_fnmatch_gnu_start=
12267 gl_fnmatch_gnu_end=
12268 else
12269 gl_fnmatch_gnu_start='#if 0'
12270 gl_fnmatch_gnu_end='#endif'
12271 fi
12272 if test "$cross_compiling" = yes; then :
12273 eval "$gl_fnmatch_cache_var=\"guessing no\""
12274else
12275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12276/* end confdefs.h. */
12277#include <fnmatch.h>
12278 static int
12279 y (char const *pattern, char const *string, int flags)
12280 {
12281 return fnmatch (pattern, string, flags) == 0;
12282 }
12283 static int
12284 n (char const *pattern, char const *string, int flags)
12285 {
12286 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
12287 }
12288
12289int
12290main ()
12291{
12292char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
12293 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
12294 static char const A_1[] = { 'A' - 1, 0 };
12295 static char const A01[] = { 'A' + 1, 0 };
12296 static char const a_1[] = { 'a' - 1, 0 };
12297 static char const a01[] = { 'a' + 1, 0 };
12298 static char const bs_1[] = { '\\\\' - 1, 0 };
8690e634
JK
12299 static char const bs01[] = { '\\\\' + 1, 0 };
12300 int result = 0;
12301 if (!n ("a*", "", 0))
12302 return 1;
12303 if (!y ("a*", "abc", 0))
12304 return 1;
12305 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
12306 return 1;
12307 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
12308 return 2;
12309 if (!y ("a\\\\bc", "abc", 0))
12310 return 3;
12311 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
12312 return 3;
12313 if (!y ("*x", ".x", 0))
12314 return 4;
12315 if (!n ("*x", ".x", FNM_PERIOD))
12316 return 4;
12317 if (!y (Apat, "\\\\", 0))
12318 return 5;
12319 if (!y (Apat, "A", 0))
12320 return 5;
12321 if (!y (apat, "\\\\", 0))
12322 return 5;
12323 if (!y (apat, "a", 0))
12324 return 5;
12325 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
12326 return 5;
12327 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
12328 return 5;
12329 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
12330 return 5;
12331 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
12332 return 5;
12333 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
12334 return 5;
12335 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
12336 return 5;
12337 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
12338 return 5;
12339 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
12340 return 5;
12341 $gl_fnmatch_gnu_start
12342 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
12343 result |= 8;
12344 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
12345 result |= 16;
12346 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
12347 result |= 32;
12348 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
12349 result |= 64;
12350 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
12351 result |= 64;
12352 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
12353 result |= 64;
12354 $gl_fnmatch_gnu_end
12355 return result;
12356
12357 ;
12358 return 0;
12359}
12360_ACEOF
12361if ac_fn_c_try_run "$LINENO"; then :
12362 eval "$gl_fnmatch_cache_var=yes"
12363else
12364 eval "$gl_fnmatch_cache_var=no"
12365fi
12366rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12367 conftest.$ac_objext conftest.beam conftest.$ac_ext
12368fi
12369
12370
12371fi
12372eval ac_res=\$$gl_fnmatch_cache_var
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12374$as_echo "$ac_res" >&6; }
12375 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
12376 if test "$gl_fnmatch_result" = yes; then
12377 rm -f "$gl_source_base/fnmatch.h"
12378 else
12379 FNMATCH_H=fnmatch.h
12380 fi
12381
12382 if test -n "$FNMATCH_H"; then
12383 GL_GENERATE_FNMATCH_H_TRUE=
12384 GL_GENERATE_FNMATCH_H_FALSE='#'
12385else
12386 GL_GENERATE_FNMATCH_H_TRUE='#'
12387 GL_GENERATE_FNMATCH_H_FALSE=
12388fi
12389
12390
a512b375 12391 if test -n "$FNMATCH_H"; then
8690e634
JK
12392
12393
12394
12395
12396
12397
12398
12399
12400 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
12401
12402
12403
12404cat >>confdefs.h <<_ACEOF
12405#define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
12406_ACEOF
12407
12408
12409 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
12410"
12411if test "x$ac_cv_have_decl_isblank" = x""yes; then :
12412 ac_have_decl=1
12413else
12414 ac_have_decl=0
12415fi
12416
12417cat >>confdefs.h <<_ACEOF
12418#define HAVE_DECL_ISBLANK $ac_have_decl
12419_ACEOF
12420
12421
c971b7fa 12422
c971b7fa 12423
a512b375 12424 fi
c971b7fa 12425
c971b7fa 12426
c971b7fa 12427
c971b7fa 12428
c971b7fa 12429
a512b375 12430 if test -n "$FNMATCH_H"; then
c971b7fa 12431
c971b7fa 12432
c971b7fa
PA
12433
12434
c971b7fa
PA
12435
12436
c971b7fa
PA
12437
12438
8690e634 12439 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
c971b7fa 12440
c971b7fa 12441
c971b7fa 12442
8690e634
JK
12443cat >>confdefs.h <<_ACEOF
12444#define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
12445_ACEOF
c971b7fa
PA
12446
12447
8690e634
JK
12448 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
12449"
12450if test "x$ac_cv_have_decl_isblank" = x""yes; then :
12451 ac_have_decl=1
12452else
12453 ac_have_decl=0
c971b7fa 12454fi
c971b7fa 12455
8690e634
JK
12456cat >>confdefs.h <<_ACEOF
12457#define HAVE_DECL_ISBLANK $ac_have_decl
c971b7fa
PA
12458_ACEOF
12459
c971b7fa 12460
8690e634 12461
c971b7fa 12462
88b48903
WN
12463 fi
12464
12465
12466
12467 FREXP_LIBM=
12468 if test $gl_cv_func_frexp_no_libm = no; then
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used with libm" >&5
12470$as_echo_n "checking whether frexp() can be used with libm... " >&6; }
12471if test "${gl_cv_func_frexp_in_libm+set}" = set; then :
12472 $as_echo_n "(cached) " >&6
12473else
12474
12475 save_LIBS="$LIBS"
12476 LIBS="$LIBS -lm"
12477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12478/* end confdefs.h. */
12479#include <math.h>
12480 double x;
12481int
12482main ()
12483{
12484int e; return frexp (x, &e) > 0;
12485 ;
12486 return 0;
12487}
12488_ACEOF
12489if ac_fn_c_try_link "$LINENO"; then :
12490 gl_cv_func_frexp_in_libm=yes
12491else
12492 gl_cv_func_frexp_in_libm=no
12493fi
12494rm -f core conftest.err conftest.$ac_objext \
12495 conftest$ac_exeext conftest.$ac_ext
12496 LIBS="$save_LIBS"
12497
12498fi
12499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_in_libm" >&5
12500$as_echo "$gl_cv_func_frexp_in_libm" >&6; }
12501 if test $gl_cv_func_frexp_in_libm = yes; then
12502 FREXP_LIBM=-lm
12503 fi
12504 fi
12505 if test $gl_cv_func_frexp_no_libm = yes \
12506 || test $gl_cv_func_frexp_in_libm = yes; then
12507 save_LIBS="$LIBS"
12508 LIBS="$LIBS $FREXP_LIBM"
12509
12510
12511
88b48903
WN
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
12513$as_echo_n "checking whether frexp works... " >&6; }
12514if test "${gl_cv_func_frexp_works+set}" = set; then :
12515 $as_echo_n "(cached) " >&6
12516else
12517
12518 if test "$cross_compiling" = yes; then :
12519 case "$host_os" in
12520 netbsd* | irix* | mingw*) gl_cv_func_frexp_works="guessing no";;
12521 *) gl_cv_func_frexp_works="guessing yes";;
12522 esac
12523
12524else
12525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12526/* end confdefs.h. */
12527
12528#include <float.h>
12529#include <math.h>
12530#include <string.h>
12531#if HAVE_ALARM
12532# include <unistd.h>
12533#endif
12534/* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
12535 ICC 10.0 has a bug when optimizing the expression -zero.
12536 The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
12537 to PowerPC on Mac OS X 10.5. */
12538#if defined __hpux || defined __sgi || defined __ICC
12539static double
12540compute_minus_zero (void)
12541{
12542 return -DBL_MIN * DBL_MIN;
12543}
12544# define minus_zero compute_minus_zero ()
12545#else
12546double minus_zero = -0.0;
12547#endif
12548int main()
12549{
12550 int result = 0;
12551 int i;
12552 volatile double x;
12553 double zero = 0.0;
12554#if HAVE_ALARM
12555 /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
12556 number. Let the test fail in this case. */
12557 alarm (5);
12558#endif
12559 /* Test on denormalized numbers. */
12560 for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
12561 ;
12562 if (x > 0.0)
12563 {
12564 int exp;
12565 double y = frexp (x, &exp);
12566 /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
12567 On NetBSD: y = 0.75. Correct: y = 0.5. */
12568 if (y != 0.5)
12569 result |= 1;
12570 }
12571 /* Test on infinite numbers. */
12572 x = 1.0 / zero;
12573 {
12574 int exp;
12575 double y = frexp (x, &exp);
12576 if (y != x)
12577 result |= 2;
12578 }
12579 /* Test on negative zero. */
12580 x = minus_zero;
12581 {
12582 int exp;
12583 double y = frexp (x, &exp);
12584 if (memcmp (&y, &x, sizeof x))
12585 result |= 4;
12586 }
12587 return result;
12588}
12589_ACEOF
12590if ac_fn_c_try_run "$LINENO"; then :
12591 gl_cv_func_frexp_works=yes
12592else
12593 gl_cv_func_frexp_works=no
12594fi
12595rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12596 conftest.$ac_objext conftest.beam conftest.$ac_ext
12597fi
12598
12599
12600fi
12601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
12602$as_echo "$gl_cv_func_frexp_works" >&6; }
12603
12604 LIBS="$save_LIBS"
12605 case "$gl_cv_func_frexp_works" in
12606 *yes) gl_func_frexp=yes ;;
12607 *) gl_func_frexp=no; REPLACE_FREXP=1; FREXP_LIBM= ;;
12608 esac
12609 else
12610 gl_func_frexp=no
12611 fi
12612 if test $gl_func_frexp = yes; then
12613
12614$as_echo "#define HAVE_FREXP 1" >>confdefs.h
12615
12616 fi
12617
12618
12619 if test $gl_func_frexp != yes; then
12620
12621
12622
12623
12624
12625
12626
12627
12628 gl_LIBOBJS="$gl_LIBOBJS frexp.$ac_objext"
12629
12630 fi
12631
12632
12633
12634
12635
12636 GNULIB_FREXP=1
12637
12638
12639
12640
12641
12642$as_echo "#define GNULIB_TEST_FREXP 1" >>confdefs.h
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652 ac_fn_c_check_decl "$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
12653"
12654if test "x$ac_cv_have_decl_frexpl" = x""yes; then :
12655
12656else
12657 HAVE_DECL_FREXPL=0
12658fi
12659
12660
12661 FREXPL_LIBM=
12662 if test $HAVE_DECL_FREXPL = 1; then
12663
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
12665$as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
12666if test "${gl_cv_func_frexpl_no_libm+set}" = set; then :
12667 $as_echo_n "(cached) " >&6
12668else
12669
12670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12671/* end confdefs.h. */
12672#include <math.h>
12673 long double x;
12674int
12675main ()
12676{
12677int e; return frexpl (x, &e) > 0;
12678 ;
12679 return 0;
12680}
12681_ACEOF
12682if ac_fn_c_try_link "$LINENO"; then :
12683 gl_cv_func_frexpl_no_libm=yes
12684else
12685 gl_cv_func_frexpl_no_libm=no
12686fi
12687rm -f core conftest.err conftest.$ac_objext \
12688 conftest$ac_exeext conftest.$ac_ext
12689
12690fi
12691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
12692$as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
12693
12694 if test $gl_cv_func_frexpl_no_libm = no; then
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used with libm" >&5
12696$as_echo_n "checking whether frexpl() can be used with libm... " >&6; }
12697if test "${gl_cv_func_frexpl_in_libm+set}" = set; then :
12698 $as_echo_n "(cached) " >&6
12699else
12700
12701 save_LIBS="$LIBS"
12702 LIBS="$LIBS -lm"
12703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12704/* end confdefs.h. */
12705#include <math.h>
12706 long double x;
12707int
12708main ()
12709{
12710int e; return frexpl (x, &e) > 0;
12711 ;
12712 return 0;
12713}
12714_ACEOF
12715if ac_fn_c_try_link "$LINENO"; then :
12716 gl_cv_func_frexpl_in_libm=yes
12717else
12718 gl_cv_func_frexpl_in_libm=no
12719fi
12720rm -f core conftest.err conftest.$ac_objext \
12721 conftest$ac_exeext conftest.$ac_ext
12722 LIBS="$save_LIBS"
12723
12724fi
12725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_in_libm" >&5
12726$as_echo "$gl_cv_func_frexpl_in_libm" >&6; }
12727 if test $gl_cv_func_frexpl_in_libm = yes; then
12728 FREXPL_LIBM=-lm
12729 fi
12730 fi
12731 if test $gl_cv_func_frexpl_no_libm = yes \
12732 || test $gl_cv_func_frexpl_in_libm = yes; then
12733 save_LIBS="$LIBS"
12734 LIBS="$LIBS $FREXPL_LIBM"
12735
12736
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
12738$as_echo_n "checking whether frexpl works... " >&6; }
12739if test "${gl_cv_func_frexpl_works+set}" = set; then :
12740 $as_echo_n "(cached) " >&6
12741else
12742
12743 if test "$cross_compiling" = yes; then :
12744
12745 case "$host_os" in
12746 aix | aix[3-6]* | beos* | darwin* | irix* | mingw* | pw*)
12747 gl_cv_func_frexpl_works="guessing no";;
12748 *) gl_cv_func_frexpl_works="guessing yes";;
12749 esac
12750
12751else
12752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12753/* end confdefs.h. */
12754
12755#include <float.h>
12756#include <math.h>
12757/* Override the values of <float.h>, like done in float.in.h. */
12758#if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
12759# undef LDBL_MIN_EXP
12760# define LDBL_MIN_EXP (-16381)
12761#endif
12762#if defined __i386__ && defined __FreeBSD__
12763# undef LDBL_MIN_EXP
12764# define LDBL_MIN_EXP (-16381)
12765#endif
12766#if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
12767# undef LDBL_MIN_EXP
12768# define LDBL_MIN_EXP DBL_MIN_EXP
12769#endif
12770#if defined __sgi && (LDBL_MANT_DIG >= 106)
12771# if defined __GNUC__
12772# undef LDBL_MIN_EXP
12773# define LDBL_MIN_EXP DBL_MIN_EXP
12774# endif
12775#endif
12776extern
12777#ifdef __cplusplus
12778"C"
12779#endif
12780long double frexpl (long double, int *);
12781int main()
12782{
12783 int result = 0;
12784 volatile long double x;
12785 /* Test on finite numbers that fails on AIX 5.1. */
12786 x = 16.0L;
12787 {
12788 int exp = -9999;
12789 frexpl (x, &exp);
12790 if (exp != 5)
12791 result |= 1;
12792 }
12793 /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
12794 function returns an invalid (incorrectly normalized) value: it returns
12795 y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
12796 but the correct result is
12797 0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 } */
12798 x = 1.01L;
12799 {
12800 int exp = -9999;
12801 long double y = frexpl (x, &exp);
12802 if (!(exp == 1 && y == 0.505L))
12803 result |= 2;
12804 }
12805 /* Test on large finite numbers. This fails on BeOS at i = 16322, while
12806 LDBL_MAX_EXP = 16384.
12807 In the loop end test, we test x against Infinity, rather than comparing
12808 i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP. */
12809 {
12810 int i;
12811 for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
12812 {
12813 int exp = -9999;
12814 frexpl (x, &exp);
12815 if (exp != i)
12816 {
12817 result |= 4;
12818 break;
12819 }
12820 }
12821 }
12822 /* Test on denormalized numbers. */
12823 {
12824 int i;
12825 for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
12826 ;
12827 if (x > 0.0L)
12828 {
12829 int exp;
12830 long double y = frexpl (x, &exp);
12831 /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
12832 exp = -16382, y = 0.5. On Mac OS X 10.5: exp = -16384, y = 0.5. */
12833 if (exp != LDBL_MIN_EXP - 1)
12834 result |= 8;
12835 }
12836 }
12837 /* Test on infinite numbers. */
12838 x = 1.0L / 0.0L;
12839 {
12840 int exp;
12841 long double y = frexpl (x, &exp);
12842 if (y != x)
12843 result |= 16;
12844 }
12845 return result;
12846}
12847_ACEOF
12848if ac_fn_c_try_run "$LINENO"; then :
12849 gl_cv_func_frexpl_works=yes
12850else
12851 gl_cv_func_frexpl_works=no
12852fi
12853rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12854 conftest.$ac_objext conftest.beam conftest.$ac_ext
12855fi
12856
12857
12858fi
12859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
12860$as_echo "$gl_cv_func_frexpl_works" >&6; }
12861
12862 LIBS="$save_LIBS"
12863 case "$gl_cv_func_frexpl_works" in
12864 *yes) gl_func_frexpl=yes ;;
12865 *) gl_func_frexpl=no; REPLACE_FREXPL=1 ;;
12866 esac
12867 else
12868 gl_func_frexpl=no
12869 fi
12870 if test $gl_func_frexpl = yes; then
12871
12872$as_echo "#define HAVE_FREXPL 1" >>confdefs.h
12873
12874 fi
12875 fi
12876 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
12877 if test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1; then
12878
12879 FREXPL_LIBM="$FREXP_LIBM"
12880 else
12881 FREXPL_LIBM=
12882 fi
12883 fi
12884
12885
12886 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
12887
12888
12889
12890
12891
12892
12893
12894
12895 gl_LIBOBJS="$gl_LIBOBJS frexpl.$ac_objext"
12896
12897 fi
12898
12899
12900
12901
12902
12903 GNULIB_FREXPL=1
12904
12905
12906
12907
12908
12909$as_echo "#define GNULIB_TEST_FREXPL 1" >>confdefs.h
12910
12911
12912
12913
12914
12915
12916
12917
12918 PRIPTR_PREFIX=
12919 if test -n "$STDINT_H"; then
12920 PRIPTR_PREFIX='"l"'
12921 else
12922 for glpfx in '' l ll I64; do
12923 case $glpfx in
12924 '') gltype1='int';;
12925 l) gltype1='long int';;
12926 ll) gltype1='long long int';;
12927 I64) gltype1='__int64';;
12928 esac
12929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12930/* end confdefs.h. */
12931#include <stdint.h>
12932 extern intptr_t foo;
12933 extern $gltype1 foo;
12934int
12935main ()
12936{
12937
12938 ;
12939 return 0;
12940}
12941_ACEOF
12942if ac_fn_c_try_compile "$LINENO"; then :
12943 PRIPTR_PREFIX='"'$glpfx'"'
12944fi
12945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12946 test -n "$PRIPTR_PREFIX" && break
12947 done
12948 fi
12949
12950
12951
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
12953$as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
12954if test "${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+set}" = set; then :
12955 $as_echo_n "(cached) " >&6
12956else
12957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12958/* end confdefs.h. */
12959/* Work also in C++ mode. */
12960 #define __STDC_LIMIT_MACROS 1
12961
12962 /* Work if build is not clean. */
12963 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
12964
12965 #include <limits.h>
12966 #if HAVE_STDINT_H
12967 #include <stdint.h>
12968 #endif
12969
12970 #if defined INT32_MAX && defined INTMAX_MAX
12971 #define CONDITION (INT32_MAX < INTMAX_MAX)
12972 #elif HAVE_LONG_LONG_INT
12973 #define CONDITION (sizeof (int) < sizeof (long long int))
12974 #else
12975 #define CONDITION 0
12976 #endif
12977 int test[CONDITION ? 1 : -1];
12978int
12979main ()
12980{
12981
12982 ;
12983 return 0;
12984}
12985_ACEOF
12986if ac_fn_c_try_compile "$LINENO"; then :
12987 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
12988else
12989 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
12990fi
12991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12992fi
12993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
12994$as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
12995 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
12996 INT32_MAX_LT_INTMAX_MAX=1;
12997 else
12998 INT32_MAX_LT_INTMAX_MAX=0;
12999 fi
13000
13001
13002 if test $APPLE_UNIVERSAL_BUILD = 0; then
13003
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
13005$as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
13006if test "${gl_cv_test_INT64_MAX_EQ_LONG_MAX+set}" = set; then :
13007 $as_echo_n "(cached) " >&6
13008else
13009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13010/* end confdefs.h. */
13011/* Work also in C++ mode. */
13012 #define __STDC_LIMIT_MACROS 1
13013
13014 /* Work if build is not clean. */
13015 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
13016
13017 #include <limits.h>
13018 #if HAVE_STDINT_H
13019 #include <stdint.h>
13020 #endif
13021
13022 #if defined INT64_MAX
13023 #define CONDITION (INT64_MAX == LONG_MAX)
13024 #elif HAVE_LONG_LONG_INT
13025 #define CONDITION (sizeof (long long int) == sizeof (long int))
13026 #else
13027 #define CONDITION 0
13028 #endif
13029 int test[CONDITION ? 1 : -1];
13030int
13031main ()
13032{
13033
13034 ;
13035 return 0;
13036}
13037_ACEOF
13038if ac_fn_c_try_compile "$LINENO"; then :
13039 gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
13040else
13041 gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
13042fi
13043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13044fi
13045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
13046$as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
13047 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
13048 INT64_MAX_EQ_LONG_MAX=1;
13049 else
13050 INT64_MAX_EQ_LONG_MAX=0;
13051 fi
13052
13053
13054 else
13055 INT64_MAX_EQ_LONG_MAX=-1
13056 fi
13057
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
13059$as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
13060if test "${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+set}" = set; then :
13061 $as_echo_n "(cached) " >&6
13062else
13063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13064/* end confdefs.h. */
13065/* Work also in C++ mode. */
13066 #define __STDC_LIMIT_MACROS 1
13067
13068 /* Work if build is not clean. */
13069 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
13070
13071 #include <limits.h>
13072 #if HAVE_STDINT_H
13073 #include <stdint.h>
13074 #endif
13075
13076 #if defined UINT32_MAX && defined UINTMAX_MAX
13077 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
13078 #elif HAVE_LONG_LONG_INT
13079 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
13080 #else
13081 #define CONDITION 0
13082 #endif
13083 int test[CONDITION ? 1 : -1];
13084int
13085main ()
13086{
13087
13088 ;
13089 return 0;
13090}
13091_ACEOF
13092if ac_fn_c_try_compile "$LINENO"; then :
13093 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
13094else
13095 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
13096fi
13097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13098fi
13099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
13100$as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
13101 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
13102 UINT32_MAX_LT_UINTMAX_MAX=1;
13103 else
13104 UINT32_MAX_LT_UINTMAX_MAX=0;
13105 fi
13106
13107
13108 if test $APPLE_UNIVERSAL_BUILD = 0; then
13109
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
13111$as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
13112if test "${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+set}" = set; then :
13113 $as_echo_n "(cached) " >&6
13114else
13115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13116/* end confdefs.h. */
13117/* Work also in C++ mode. */
13118 #define __STDC_LIMIT_MACROS 1
13119
13120 /* Work if build is not clean. */
13121 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
13122
13123 #include <limits.h>
13124 #if HAVE_STDINT_H
13125 #include <stdint.h>
13126 #endif
13127
13128 #if defined UINT64_MAX
13129 #define CONDITION (UINT64_MAX == ULONG_MAX)
13130 #elif HAVE_LONG_LONG_INT
13131 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
13132 #else
13133 #define CONDITION 0
13134 #endif
13135 int test[CONDITION ? 1 : -1];
13136int
13137main ()
13138{
13139
13140 ;
13141 return 0;
13142}
13143_ACEOF
13144if ac_fn_c_try_compile "$LINENO"; then :
13145 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
13146else
13147 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
13148fi
13149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13150fi
13151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
13152$as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
13153 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
13154 UINT64_MAX_EQ_ULONG_MAX=1;
13155 else
13156 UINT64_MAX_EQ_ULONG_MAX=0;
13157 fi
13158
13159
13160 else
13161 UINT64_MAX_EQ_ULONG_MAX=-1
13162 fi
13163
13164
13165
13166
13167
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
13169$as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
13170if test "${gl_cv_func_isnand_no_libm+set}" = set; then :
13171 $as_echo_n "(cached) " >&6
13172else
13173
13174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13175/* end confdefs.h. */
13176#include <math.h>
13177 #if __GNUC__ >= 4
13178 # undef isnand
13179 # define isnand(x) __builtin_isnan ((double)(x))
13180 #else
13181 # undef isnand
13182 # define isnand(x) isnan ((double)(x))
13183 #endif
13184 double x;
13185int
13186main ()
13187{
13188return isnand (x);
13189 ;
13190 return 0;
13191}
13192_ACEOF
13193if ac_fn_c_try_link "$LINENO"; then :
13194 gl_cv_func_isnand_no_libm=yes
13195else
13196 gl_cv_func_isnand_no_libm=no
13197fi
13198rm -f core conftest.err conftest.$ac_objext \
13199 conftest$ac_exeext conftest.$ac_ext
13200
13201fi
13202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
13203$as_echo "$gl_cv_func_isnand_no_libm" >&6; }
13204
13205 gl_func_isnand_no_libm=$gl_cv_func_isnand_no_libm
13206 if test $gl_cv_func_isnand_no_libm = yes; then
13207
13208$as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
13209
13210 fi
13211
13212 if test $gl_func_isnand_no_libm != yes; then
13213
13214
13215
13216
13217
13218
13219
13220
13221 gl_LIBOBJS="$gl_LIBOBJS isnand.$ac_objext"
13222
13223
13224
13225
13226 fi
13227
13228
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
13230$as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
13231if test "${gl_cv_func_isnanl_no_libm+set}" = set; then :
13232 $as_echo_n "(cached) " >&6
13233else
13234
13235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13236/* end confdefs.h. */
13237#include <math.h>
13238 #if __GNUC__ >= 4
13239 # undef isnanl
13240 # define isnanl(x) __builtin_isnanl ((long double)(x))
13241 #elif defined isnan
13242 # undef isnanl
13243 # define isnanl(x) isnan ((long double)(x))
13244 #endif
13245 long double x;
13246int
13247main ()
13248{
13249return isnanl (x);
13250 ;
13251 return 0;
13252}
13253_ACEOF
13254if ac_fn_c_try_link "$LINENO"; then :
13255 gl_cv_func_isnanl_no_libm=yes
13256else
13257 gl_cv_func_isnanl_no_libm=no
13258fi
13259rm -f core conftest.err conftest.$ac_objext \
13260 conftest$ac_exeext conftest.$ac_ext
13261
13262fi
13263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
13264$as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
13265
13266 gl_func_isnanl_no_libm=$gl_cv_func_isnanl_no_libm
13267 if test $gl_func_isnanl_no_libm = yes; then
13268
13269
13270
13271
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
13273$as_echo_n "checking whether isnanl works... " >&6; }
13274if test "${gl_cv_func_isnanl_works+set}" = set; then :
13275 $as_echo_n "(cached) " >&6
13276else
13277
13278 if test "$cross_compiling" = yes; then :
13279 case "$host_cpu" in
13280 # Guess no on ia64, x86_64, i386.
13281 ia64 | x86_64 | i*86) gl_cv_func_isnanl_works="guessing no";;
13282 *)
13283 case "$host_os" in
13284 netbsd*) gl_cv_func_isnanl_works="guessing no";;
13285 *) gl_cv_func_isnanl_works="guessing yes";;
13286 esac
13287 ;;
13288 esac
13289
13290else
13291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13292/* end confdefs.h. */
13293
13294#include <float.h>
13295#include <limits.h>
13296#include <math.h>
13297#if __GNUC__ >= 4
13298# undef isnanl
13299# define isnanl(x) __builtin_isnanl ((long double)(x))
13300#elif defined isnan
13301# undef isnanl
13302# define isnanl(x) isnan ((long double)(x))
13303#endif
13304#define NWORDS \
13305 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
13306typedef union { unsigned int word[NWORDS]; long double value; }
13307 memory_long_double;
13308/* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
13309 runtime type conversion. */
13310#ifdef __sgi
13311static long double NaNl ()
13312{
13313 double zero = 0.0;
13314 return zero / zero;
13315}
13316#else
13317# define NaNl() (0.0L / 0.0L)
13318#endif
13319int main ()
13320{
13321 int result = 0;
13322
13323 if (!isnanl (NaNl ()))
13324 result |= 1;
13325
13326 {
13327 memory_long_double m;
13328 unsigned int i;
13329
13330 /* The isnanl function should be immune against changes in the sign bit and
13331 in the mantissa bits. The xor operation twiddles a bit that can only be
13332 a sign bit or a mantissa bit (since the exponent never extends to
13333 bit 31). */
13334 m.value = NaNl ();
13335 m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
13336 for (i = 0; i < NWORDS; i++)
13337 m.word[i] |= 1;
13338 if (!isnanl (m.value))
13339 result |= 1;
13340 }
13341
13342#if ((defined __ia64 && LDBL_MANT_DIG == 64) || (defined __x86_64__ || defined __amd64__) || (defined __i386 || defined __i386__ || defined _I386 || defined _M_IX86 || defined _X86_)) && !HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
13343/* Representation of an 80-bit 'long double' as an initializer for a sequence
13344 of 'unsigned int' words. */
13345# ifdef WORDS_BIGENDIAN
13346# define LDBL80_WORDS(exponent,manthi,mantlo) \
13347 { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
13348 ((unsigned int) (manthi) << 16) | (unsigned int) (mantlo) >> 16), \
13349 (unsigned int) (mantlo) << 16 \
13350 }
13351# else
13352# define LDBL80_WORDS(exponent,manthi,mantlo) \
13353 { mantlo, manthi, exponent }
13354# endif
13355 { /* Quiet NaN. */
13356 static memory_long_double x =
13357 { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
13358 if (!isnanl (x.value))
13359 result |= 2;
13360 }
13361 {
13362 /* Signalling NaN. */
13363 static memory_long_double x =
13364 { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
13365 if (!isnanl (x.value))
13366 result |= 2;
13367 }
13368 /* The isnanl function should recognize Pseudo-NaNs, Pseudo-Infinities,
13369 Pseudo-Zeroes, Unnormalized Numbers, and Pseudo-Denormals, as defined in
13370 Intel IA-64 Architecture Software Developer's Manual, Volume 1:
13371 Application Architecture.
13372 Table 5-2 "Floating-Point Register Encodings"
13373 Figure 5-6 "Memory to Floating-Point Register Data Translation"
13374 */
13375 { /* Pseudo-NaN. */
13376 static memory_long_double x =
13377 { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
13378 if (!isnanl (x.value))
13379 result |= 4;
13380 }
13381 { /* Pseudo-Infinity. */
13382 static memory_long_double x =
13383 { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
13384 if (!isnanl (x.value))
13385 result |= 8;
13386 }
13387 { /* Pseudo-Zero. */
13388 static memory_long_double x =
13389 { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
13390 if (!isnanl (x.value))
13391 result |= 16;
13392 }
13393 { /* Unnormalized number. */
13394 static memory_long_double x =
13395 { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
13396 if (!isnanl (x.value))
13397 result |= 32;
13398 }
13399 { /* Pseudo-Denormal. */
13400 static memory_long_double x =
13401 { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
13402 if (!isnanl (x.value))
13403 result |= 64;
13404 }
13405#endif
13406
13407 return result;
13408}
13409_ACEOF
13410if ac_fn_c_try_run "$LINENO"; then :
13411 gl_cv_func_isnanl_works=yes
13412else
13413 gl_cv_func_isnanl_works=no
13414fi
13415rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13416 conftest.$ac_objext conftest.beam conftest.$ac_ext
13417fi
13418
13419
13420fi
13421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
13422$as_echo "$gl_cv_func_isnanl_works" >&6; }
13423
13424 case "$gl_cv_func_isnanl_works" in
13425 *yes) ;;
13426 *) gl_func_isnanl_no_libm=no ;;
13427 esac
13428 fi
13429 if test $gl_func_isnanl_no_libm = yes; then
13430
13431$as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
13432
13433 fi
13434
13435 if test $gl_func_isnanl_no_libm != yes; then
13436
13437
13438
13439
13440
13441
13442
13443
13444 gl_LIBOBJS="$gl_LIBOBJS isnanl.$ac_objext"
13445
13446
13447
13448
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
13450$as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
13451if test "${gl_cv_cc_long_double_expbit0+set}" = set; then :
13452 $as_echo_n "(cached) " >&6
13453else
13454
13455 if test "$cross_compiling" = yes; then :
13456
13457 gl_cv_cc_long_double_expbit0="unknown"
13458
13459else
13460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13461/* end confdefs.h. */
13462
13463#include <float.h>
13464#include <stddef.h>
13465#include <stdio.h>
13466#include <string.h>
13467#define NWORDS \
13468 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
13469typedef union { long double value; unsigned int word[NWORDS]; }
13470 memory_long_double;
13471static unsigned int ored_words[NWORDS];
13472static unsigned int anded_words[NWORDS];
13473static void add_to_ored_words (long double x)
13474{
13475 memory_long_double m;
13476 size_t i;
13477 /* Clear it first, in case
13478 sizeof (long double) < sizeof (memory_long_double). */
13479 memset (&m, 0, sizeof (memory_long_double));
13480 m.value = x;
13481 for (i = 0; i < NWORDS; i++)
13482 {
13483 ored_words[i] |= m.word[i];
13484 anded_words[i] &= m.word[i];
13485 }
13486}
13487int main ()
13488{
13489 size_t j;
13490 FILE *fp = fopen ("conftest.out", "w");
13491 if (fp == NULL)
13492 return 1;
13493 for (j = 0; j < NWORDS; j++)
13494 anded_words[j] = ~ (unsigned int) 0;
13495 add_to_ored_words (0.25L);
13496 add_to_ored_words (0.5L);
13497 add_to_ored_words (1.0L);
13498 add_to_ored_words (2.0L);
13499 add_to_ored_words (4.0L);
13500 /* Remove bits that are common (e.g. if representation of the first mantissa
13501 bit is explicit). */
13502 for (j = 0; j < NWORDS; j++)
13503 ored_words[j] &= ~anded_words[j];
13504 /* Now find the nonzero word. */
13505 for (j = 0; j < NWORDS; j++)
13506 if (ored_words[j] != 0)
13507 break;
13508 if (j < NWORDS)
13509 {
13510 size_t i;
13511 for (i = j + 1; i < NWORDS; i++)
13512 if (ored_words[i] != 0)
13513 {
13514 fprintf (fp, "unknown");
13515 return (fclose (fp) != 0);
13516 }
13517 for (i = 0; ; i++)
13518 if ((ored_words[j] >> i) & 1)
13519 {
13520 fprintf (fp, "word %d bit %d", (int) j, (int) i);
13521 return (fclose (fp) != 0);
13522 }
13523 }
13524 fprintf (fp, "unknown");
13525 return (fclose (fp) != 0);
13526}
13527
13528_ACEOF
13529if ac_fn_c_try_run "$LINENO"; then :
13530 gl_cv_cc_long_double_expbit0=`cat conftest.out`
13531else
13532 gl_cv_cc_long_double_expbit0="unknown"
13533fi
13534rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13535 conftest.$ac_objext conftest.beam conftest.$ac_ext
13536fi
13537
13538 rm -f conftest.out
13539
13540fi
13541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
13542$as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
13543 case "$gl_cv_cc_long_double_expbit0" in
13544 word*bit*)
13545 word=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
13546 bit=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
13547
13548cat >>confdefs.h <<_ACEOF
13549#define LDBL_EXPBIT0_WORD $word
13550_ACEOF
13551
13552
13553cat >>confdefs.h <<_ACEOF
13554#define LDBL_EXPBIT0_BIT $bit
13555_ACEOF
13556
13557 ;;
13558 esac
13559
13560
13561
13562 fi
13563
13564
13565
13566
88b48903
WN
13567
13568
13569
13570
2196f55f 13571
88b48903
WN
13572 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
13573
13574
13575
13576
f45c62c4
YQ
13577 if test $ac_cv_func_lstat = yes; then
13578
13579 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
13580 *no)
13581 REPLACE_LSTAT=1
13582 ;;
13583 esac
13584 else
13585 HAVE_LSTAT=0
13586 fi
13587
13588 if test $REPLACE_LSTAT = 1; then
13589
13590
13591
13592
13593
13594
13595
13596
13597 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
13598
13599 :
13600 fi
13601
13602
13603
13604
13605
13606 GNULIB_LSTAT=1
13607
13608
13609
13610
13611
13612$as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
13613
13614
13615
13616
13617
13618
6a29c58e
YQ
13619 if test $gl_cv_func_malloc_posix = yes; then
13620
13621$as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
13622
13623 else
13624 REPLACE_MALLOC=1
13625 fi
13626
13627 if test $REPLACE_MALLOC = 1; then
13628
13629
13630
13631
13632
13633
13634
13635
13636 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
13637
13638 fi
13639
13640
13641
13642
13643
13644 GNULIB_MALLOC_POSIX=1
13645
13646
13647
13648
13649
13650$as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
13651
13652
13653
13654
13655
13656
88b48903
WN
13657
13658
13659
13660
13661
88b48903 13662
c971b7fa 13663
c971b7fa 13664
98399780
YQ
13665
13666
13667
13668
88b48903
WN
13669 if test $gl_cv_have_include_next = yes; then
13670 gl_cv_next_math_h='<'math.h'>'
13671 else
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
13673$as_echo_n "checking absolute name of <math.h>... " >&6; }
13674if test "${gl_cv_next_math_h+set}" = set; then :
13675 $as_echo_n "(cached) " >&6
13676else
c971b7fa 13677
88b48903 13678 if test $ac_cv_header_math_h = yes; then
c971b7fa
PA
13679
13680
88b48903 13681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690e634 13682/* end confdefs.h. */
88b48903 13683#include <math.h>
8690e634 13684
8690e634 13685_ACEOF
88b48903
WN
13686 case "$host_os" in
13687 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13688 *) gl_absname_cpp="$ac_cpp" ;;
13689 esac
8690e634 13690
88b48903
WN
13691 case "$host_os" in
13692 mingw*)
13693 gl_dirsep_regex='[/\\]'
13694 ;;
13695 *)
13696 gl_dirsep_regex='\/'
13697 ;;
13698 esac
13699 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
8690e634 13700
88b48903
WN
13701 gl_header_literal_regex=`echo 'math.h' \
13702 | sed -e "$gl_make_literal_regex_sed"`
13703 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13704 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13705 s|^/[^/]|//&|
13706 p
13707 q
13708 }'
13709 gl_cv_next_math_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13710 sed -n "$gl_absolute_header_sed"`'"'
13711 else
13712 gl_cv_next_math_h='<'math.h'>'
13713 fi
8690e634 13714
c971b7fa 13715
88b48903
WN
13716fi
13717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
13718$as_echo "$gl_cv_next_math_h" >&6; }
13719 fi
13720 NEXT_MATH_H=$gl_cv_next_math_h
c971b7fa 13721
88b48903
WN
13722 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13723 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13724 gl_next_as_first_directive='<'math.h'>'
13725 else
13726 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13727 gl_next_as_first_directive=$gl_cv_next_math_h
13728 fi
13729 NEXT_AS_FIRST_DIRECTIVE_MATH_H=$gl_next_as_first_directive
8690e634 13730
c971b7fa 13731
c971b7fa
PA
13732
13733
c971b7fa 13734
88b48903
WN
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
13736$as_echo_n "checking whether NAN macro works... " >&6; }
13737if test "${gl_cv_header_math_nan_works+set}" = set; then :
c971b7fa
PA
13738 $as_echo_n "(cached) " >&6
13739else
8690e634
JK
13740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13741/* end confdefs.h. */
88b48903 13742#include <math.h>
c971b7fa
PA
13743int
13744main ()
13745{
88b48903
WN
13746/* Solaris 10 has a broken definition of NAN. Other platforms
13747 fail to provide NAN, or provide it only in C99 mode; this
13748 test only needs to fail when NAN is provided but wrong. */
13749 float f = 1.0f;
13750#ifdef NAN
13751 f = NAN;
13752#endif
13753 return f == 0;
c971b7fa
PA
13754 ;
13755 return 0;
13756}
13757_ACEOF
13758if ac_fn_c_try_compile "$LINENO"; then :
88b48903 13759 gl_cv_header_math_nan_works=yes
8690e634 13760else
88b48903 13761 gl_cv_header_math_nan_works=no
c971b7fa
PA
13762fi
13763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c971b7fa 13764fi
88b48903
WN
13765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
13766$as_echo "$gl_cv_header_math_nan_works" >&6; }
13767 if test $gl_cv_header_math_nan_works = no; then
13768 REPLACE_NAN=1
c971b7fa 13769 fi
88b48903
WN
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
13771$as_echo_n "checking whether HUGE_VAL works... " >&6; }
13772if test "${gl_cv_header_math_huge_val_works+set}" = set; then :
c971b7fa
PA
13773 $as_echo_n "(cached) " >&6
13774else
8690e634 13775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa 13776/* end confdefs.h. */
88b48903 13777#include <math.h>
c971b7fa
PA
13778int
13779main ()
13780{
88b48903
WN
13781/* Solaris 10 has a broken definition of HUGE_VAL. */
13782 double d = HUGE_VAL;
13783 return d == 0;
c971b7fa
PA
13784 ;
13785 return 0;
13786}
13787_ACEOF
13788if ac_fn_c_try_compile "$LINENO"; then :
88b48903 13789 gl_cv_header_math_huge_val_works=yes
8690e634 13790else
88b48903 13791 gl_cv_header_math_huge_val_works=no
c971b7fa
PA
13792fi
13793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c971b7fa 13794fi
88b48903
WN
13795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
13796$as_echo "$gl_cv_header_math_huge_val_works" >&6; }
13797 if test $gl_cv_header_math_huge_val_works = no; then
13798 REPLACE_HUGE_VAL=1
8690e634 13799 fi
c971b7fa 13800
c971b7fa 13801
88b48903
WN
13802 for gl_func in acosf acosl asinf asinl atanf atanl cbrt cbrtf cbrtl ceilf ceill copysign copysignf copysignl cosf cosl coshf expf expl exp2 exp2f exp2l expm1 expm1f expm1l fabsf fabsl floorf floorl fma fmaf fmal fmod fmodf fmodl frexpf frexpl hypotf hypotl ilogb ilogbf ilogbl ldexpf ldexpl log logf logl log10 log10f log10l log1p log1pf log1pl log2 log2f log2l logb logbf logbl modf modff modfl powf remainder remainderf remainderl rint rintf rintl round roundf roundl sinf sinl sinhf sqrtf sqrtl tanf tanl tanhf trunc truncf truncl; do
13803 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
13805$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
13806if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
8690e634
JK
13807 $as_echo_n "(cached) " >&6
13808else
13809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13810/* end confdefs.h. */
88b48903 13811#include <math.h>
8690e634
JK
13812int
13813main ()
13814{
88b48903
WN
13815#undef $gl_func
13816 (void) $gl_func;
8690e634
JK
13817 ;
13818 return 0;
13819}
13820_ACEOF
13821if ac_fn_c_try_compile "$LINENO"; then :
88b48903 13822 eval "$as_gl_Symbol=yes"
c971b7fa 13823else
88b48903 13824 eval "$as_gl_Symbol=no"
c971b7fa 13825fi
8690e634
JK
13826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13827fi
88b48903
WN
13828eval ac_res=\$$as_gl_Symbol
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13830$as_echo "$ac_res" >&6; }
13831 eval as_val=\$$as_gl_Symbol
13832 if test "x$as_val" = x""yes; then :
13833 cat >>confdefs.h <<_ACEOF
13834#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
13835_ACEOF
c971b7fa 13836
88b48903
WN
13837 eval ac_cv_have_decl_$gl_func=yes
13838fi
13839 done
c971b7fa
PA
13840
13841
13842
13843
13844
c971b7fa 13845
c971b7fa 13846
c971b7fa 13847
c971b7fa
PA
13848
13849
c971b7fa 13850
8690e634
JK
13851
13852 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
13853
13854
13855
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
13857$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
13858if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
c971b7fa
PA
13859 $as_echo_n "(cached) " >&6
13860else
8690e634
JK
13861
13862 case "$host_os" in
13863 # Guess no on AIX and OSF/1.
13864 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
13865 # Guess yes otherwise.
13866 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
13867 esac
13868 if test $LOCALE_JA != none; then
13869 if test "$cross_compiling" = yes; then :
13870 :
13871else
c971b7fa
PA
13872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13873/* end confdefs.h. */
c971b7fa 13874
8690e634
JK
13875#include <locale.h>
13876#include <string.h>
13877/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13878 <wchar.h>.
13879 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13880 included before <wchar.h>. */
13881#include <stddef.h>
13882#include <stdio.h>
13883#include <time.h>
13884#include <wchar.h>
13885int main ()
c971b7fa 13886{
8690e634
JK
13887 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
13888 {
13889 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
13890 mbstate_t state;
13891 wchar_t wc;
13892
13893 memset (&state, '\0', sizeof (mbstate_t));
13894 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
13895 if (mbsinit (&state))
13896 return 1;
13897 }
c971b7fa
PA
13898 return 0;
13899}
13900_ACEOF
8690e634
JK
13901if ac_fn_c_try_run "$LINENO"; then :
13902 gl_cv_func_mbrtowc_incomplete_state=yes
c971b7fa 13903else
8690e634 13904 gl_cv_func_mbrtowc_incomplete_state=no
c971b7fa 13905fi
8690e634
JK
13906rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13907 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 13908fi
c971b7fa 13909
8690e634 13910 fi
c971b7fa 13911
8690e634
JK
13912fi
13913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
13914$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
c971b7fa 13915
c971b7fa 13916
c971b7fa 13917
c971b7fa 13918
8690e634
JK
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
13920$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
13921if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
c971b7fa
PA
13922 $as_echo_n "(cached) " >&6
13923else
13924
8690e634
JK
13925 case "$host_os" in
13926 # Guess no on Solaris 8.
13927 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
13928 # Guess yes otherwise.
13929 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
13930 esac
13931 if test $LOCALE_ZH_CN != none; then
13932 if test "$cross_compiling" = yes; then :
13933 :
13934else
13935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa
PA
13936/* end confdefs.h. */
13937
8690e634
JK
13938#include <locale.h>
13939#include <stdlib.h>
13940#include <string.h>
13941/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13942 <wchar.h>.
13943 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13944 included before <wchar.h>. */
13945#include <stddef.h>
13946#include <stdio.h>
13947#include <time.h>
13948#include <wchar.h>
13949int main ()
c971b7fa 13950{
8690e634
JK
13951 /* This fails on Solaris 8:
13952 mbrtowc returns 2, and sets wc to 0x00F0.
13953 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
13954 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
13955 {
13956 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
13957 mbstate_t state;
13958 wchar_t wc;
13959
13960 memset (&state, '\0', sizeof (mbstate_t));
13961 if (mbrtowc (&wc, input + 3, 6, &state) != 4
13962 && mbtowc (&wc, input + 3, 6) == 4)
13963 return 1;
13964 }
c971b7fa
PA
13965 return 0;
13966}
13967_ACEOF
8690e634
JK
13968if ac_fn_c_try_run "$LINENO"; then :
13969 gl_cv_func_mbrtowc_sanitycheck=yes
c971b7fa 13970else
8690e634 13971 gl_cv_func_mbrtowc_sanitycheck=no
c971b7fa 13972fi
8690e634
JK
13973rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13974 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 13975fi
c971b7fa 13976
8690e634 13977 fi
c971b7fa 13978
8690e634
JK
13979fi
13980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
13981$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
13982
13983 REPLACE_MBSTATE_T=0
13984 case "$gl_cv_func_mbrtowc_incomplete_state" in
13985 *yes) ;;
13986 *) REPLACE_MBSTATE_T=1 ;;
13987 esac
13988 case "$gl_cv_func_mbrtowc_sanitycheck" in
13989 *yes) ;;
13990 *) REPLACE_MBSTATE_T=1 ;;
13991 esac
c971b7fa 13992 else
8690e634 13993 REPLACE_MBSTATE_T=1
c971b7fa
PA
13994 fi
13995
13996
13997
8690e634
JK
13998 if test $ac_cv_func_mbrtowc = no; then
13999 HAVE_MBRTOWC=0
14000 ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
14001/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14002 <wchar.h>.
14003 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14004 included before <wchar.h>. */
14005#include <stddef.h>
14006#include <stdio.h>
14007#include <time.h>
14008#include <wchar.h>
c971b7fa 14009
8690e634
JK
14010"
14011if test "x$ac_cv_have_decl_mbrtowc" = x""yes; then :
14012 ac_have_decl=1
14013else
14014 ac_have_decl=0
c971b7fa 14015fi
c971b7fa 14016
8690e634
JK
14017cat >>confdefs.h <<_ACEOF
14018#define HAVE_DECL_MBRTOWC $ac_have_decl
14019_ACEOF
c971b7fa 14020
8690e634
JK
14021 if test $ac_cv_have_decl_mbrtowc = yes; then
14022 REPLACE_MBRTOWC=1
14023 fi
14024 else
14025 if test $REPLACE_MBSTATE_T = 1; then
14026 REPLACE_MBRTOWC=1
14027 else
c971b7fa
PA
14028
14029
14030
8690e634
JK
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
14032$as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
14033if test "${gl_cv_func_mbrtowc_null_arg1+set}" = set; then :
14034 $as_echo_n "(cached) " >&6
c971b7fa 14035else
c971b7fa 14036
8690e634
JK
14037 case "$host_os" in
14038 # Guess no on Solaris.
14039 solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
14040 # Guess yes otherwise.
14041 *) gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
14042 esac
14043 if test $LOCALE_FR_UTF8 != none; then
14044 if test "$cross_compiling" = yes; then :
14045 :
14046else
14047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa
PA
14048/* end confdefs.h. */
14049
8690e634
JK
14050#include <locale.h>
14051#include <stdlib.h>
14052#include <string.h>
14053/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14054 <wchar.h>.
14055 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14056 included before <wchar.h>. */
14057#include <stddef.h>
14058#include <stdio.h>
14059#include <time.h>
14060#include <wchar.h>
14061int main ()
14062{
14063 int result = 0;
14064
14065 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
14066 {
14067 char input[] = "\303\237er";
14068 mbstate_t state;
14069 wchar_t wc;
14070 size_t ret;
14071
14072 memset (&state, '\0', sizeof (mbstate_t));
14073 wc = (wchar_t) 0xBADFACE;
14074 ret = mbrtowc (&wc, input, 5, &state);
14075 if (ret != 2)
14076 result |= 1;
14077 if (!mbsinit (&state))
14078 result |= 2;
c971b7fa 14079
8690e634
JK
14080 memset (&state, '\0', sizeof (mbstate_t));
14081 ret = mbrtowc (NULL, input, 5, &state);
14082 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
14083 result |= 4;
14084 if (!mbsinit (&state))
14085 result |= 8;
14086 }
14087 return result;
14088}
c971b7fa 14089_ACEOF
8690e634
JK
14090if ac_fn_c_try_run "$LINENO"; then :
14091 gl_cv_func_mbrtowc_null_arg1=yes
14092else
14093 gl_cv_func_mbrtowc_null_arg1=no
14094fi
14095rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14096 conftest.$ac_objext conftest.beam conftest.$ac_ext
14097fi
c971b7fa 14098
8690e634 14099 fi
c971b7fa 14100
c971b7fa 14101fi
8690e634
JK
14102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
14103$as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
c971b7fa 14104
c971b7fa 14105
c971b7fa 14106
c971b7fa 14107
8690e634
JK
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
14109$as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
14110if test "${gl_cv_func_mbrtowc_null_arg2+set}" = set; then :
14111 $as_echo_n "(cached) " >&6
14112else
c971b7fa 14113
8690e634
JK
14114 case "$host_os" in
14115 # Guess no on OSF/1.
14116 osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
14117 # Guess yes otherwise.
14118 *) gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
14119 esac
14120 if test $LOCALE_FR_UTF8 != none; then
14121 if test "$cross_compiling" = yes; then :
c971b7fa 14122 :
8690e634
JK
14123else
14124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14125/* end confdefs.h. */
14126
14127#include <locale.h>
14128#include <string.h>
14129/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14130 <wchar.h>.
14131 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14132 included before <wchar.h>. */
14133#include <stddef.h>
14134#include <stdio.h>
14135#include <time.h>
14136#include <wchar.h>
14137int main ()
14138{
14139 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
14140 {
14141 mbstate_t state;
14142 wchar_t wc;
14143 int ret;
14144
14145 memset (&state, '\0', sizeof (mbstate_t));
14146 wc = (wchar_t) 0xBADFACE;
14147 mbrtowc (&wc, NULL, 5, &state);
14148 /* Check that wc was not modified. */
14149 if (wc != (wchar_t) 0xBADFACE)
14150 return 1;
14151 }
14152 return 0;
14153}
14154_ACEOF
14155if ac_fn_c_try_run "$LINENO"; then :
14156 gl_cv_func_mbrtowc_null_arg2=yes
14157else
14158 gl_cv_func_mbrtowc_null_arg2=no
14159fi
14160rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14161 conftest.$ac_objext conftest.beam conftest.$ac_ext
14162fi
14163
14164 fi
14165
14166fi
14167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
14168$as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
c971b7fa
PA
14169
14170
14171
14172
14173
14174
8690e634
JK
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
14176$as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
14177if test "${gl_cv_func_mbrtowc_retval+set}" = set; then :
14178 $as_echo_n "(cached) " >&6
14179else
14180
14181 case "$host_os" in
14182 # Guess no on HP-UX, Solaris, native Windows.
14183 hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
14184 # Guess yes otherwise.
14185 *) gl_cv_func_mbrtowc_retval="guessing yes" ;;
14186 esac
14187 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
14188 || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
14189 if test "$cross_compiling" = yes; then :
c971b7fa 14190 :
8690e634
JK
14191else
14192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14193/* end confdefs.h. */
c971b7fa 14194
8690e634
JK
14195#include <locale.h>
14196#include <string.h>
14197/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14198 <wchar.h>.
14199 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14200 included before <wchar.h>. */
14201#include <stddef.h>
14202#include <stdio.h>
14203#include <time.h>
14204#include <wchar.h>
14205int main ()
14206{
14207 int result = 0;
14208 int found_some_locale = 0;
14209 /* This fails on Solaris. */
14210 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
14211 {
14212 char input[] = "B\303\274\303\237er"; /* "Büßer" */
14213 mbstate_t state;
14214 wchar_t wc;
14215
14216 memset (&state, '\0', sizeof (mbstate_t));
14217 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
14218 {
14219 input[1] = '\0';
14220 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
14221 result |= 1;
14222 }
14223 found_some_locale = 1;
14224 }
14225 /* This fails on HP-UX 11.11. */
14226 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
14227 {
14228 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
14229 mbstate_t state;
14230 wchar_t wc;
14231
14232 memset (&state, '\0', sizeof (mbstate_t));
14233 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
14234 {
14235 input[1] = '\0';
14236 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
14237 result |= 2;
14238 }
14239 found_some_locale = 1;
14240 }
14241 /* This fails on native Windows. */
14242 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
14243 {
14244 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
14245 mbstate_t state;
14246 wchar_t wc;
14247
14248 memset (&state, '\0', sizeof (mbstate_t));
14249 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
14250 {
14251 input[3] = '\0';
14252 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
14253 result |= 4;
14254 }
14255 found_some_locale = 1;
14256 }
14257 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
14258 {
14259 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
14260 mbstate_t state;
14261 wchar_t wc;
14262
14263 memset (&state, '\0', sizeof (mbstate_t));
14264 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
14265 {
14266 input[3] = '\0';
14267 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
14268 result |= 8;
14269 }
14270 found_some_locale = 1;
14271 }
14272 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
14273 {
14274 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
14275 mbstate_t state;
14276 wchar_t wc;
14277
14278 memset (&state, '\0', sizeof (mbstate_t));
14279 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
14280 {
14281 input[3] = '\0';
14282 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
14283 result |= 16;
14284 }
14285 found_some_locale = 1;
14286 }
14287 return (found_some_locale ? result : 77);
14288}
14289_ACEOF
14290if ac_fn_c_try_run "$LINENO"; then :
14291 gl_cv_func_mbrtowc_retval=yes
14292else
14293 if test $? != 77; then
14294 gl_cv_func_mbrtowc_retval=no
14295 fi
c971b7fa 14296
8690e634
JK
14297fi
14298rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14299 conftest.$ac_objext conftest.beam conftest.$ac_ext
14300fi
c971b7fa 14301
8690e634 14302 fi
c971b7fa 14303
8690e634
JK
14304fi
14305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
14306$as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
c971b7fa
PA
14307
14308
14309
14310
8690e634
JK
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
14312$as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
14313if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then :
c971b7fa
PA
14314 $as_echo_n "(cached) " >&6
14315else
8690e634
JK
14316
14317 case "$host_os" in
14318 # Guess no on Solaris 8 and 9.
14319 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
14320 # Guess yes otherwise.
14321 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
14322 esac
14323 if test $LOCALE_ZH_CN != none; then
14324 if test "$cross_compiling" = yes; then :
14325 :
c971b7fa
PA
14326else
14327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14328/* end confdefs.h. */
14329
8690e634 14330#include <locale.h>
c971b7fa 14331#include <string.h>
8690e634
JK
14332/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14333 <wchar.h>.
14334 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14335 included before <wchar.h>. */
14336#include <stddef.h>
14337#include <stdio.h>
14338#include <time.h>
14339#include <wchar.h>
14340int main ()
c971b7fa 14341{
8690e634
JK
14342 /* This fails on Solaris 8 and 9. */
14343 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
c971b7fa 14344 {
8690e634
JK
14345 mbstate_t state;
14346 wchar_t wc;
c971b7fa 14347
8690e634
JK
14348 memset (&state, '\0', sizeof (mbstate_t));
14349 if (mbrtowc (&wc, "", 1, &state) != 0)
14350 return 1;
14351 }
c971b7fa
PA
14352 return 0;
14353}
14354_ACEOF
14355if ac_fn_c_try_run "$LINENO"; then :
8690e634 14356 gl_cv_func_mbrtowc_nul_retval=yes
c971b7fa 14357else
8690e634 14358 gl_cv_func_mbrtowc_nul_retval=no
c971b7fa
PA
14359fi
14360rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14361 conftest.$ac_objext conftest.beam conftest.$ac_ext
14362fi
14363
8690e634
JK
14364 fi
14365
c971b7fa 14366fi
8690e634
JK
14367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
14368$as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
14369
14370 case "$gl_cv_func_mbrtowc_null_arg1" in
14371 *yes) ;;
14372 *)
14373$as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
14374
14375 REPLACE_MBRTOWC=1
14376 ;;
14377 esac
14378 case "$gl_cv_func_mbrtowc_null_arg2" in
14379 *yes) ;;
14380 *)
14381$as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
14382
14383 REPLACE_MBRTOWC=1
14384 ;;
14385 esac
14386 case "$gl_cv_func_mbrtowc_retval" in
14387 *yes) ;;
14388 *)
14389$as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
14390
14391 REPLACE_MBRTOWC=1
14392 ;;
14393 esac
14394 case "$gl_cv_func_mbrtowc_nul_retval" in
14395 *yes) ;;
14396 *)
14397$as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
14398
14399 REPLACE_MBRTOWC=1
14400 ;;
14401 esac
c971b7fa
PA
14402 fi
14403 fi
14404
a512b375 14405 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
c971b7fa 14406
c971b7fa 14407
c971b7fa
PA
14408
14409
14410
14411
14412
14413
8690e634
JK
14414 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
14415
14416
14417 :
c971b7fa 14418
a512b375 14419 fi
c971b7fa 14420
8690e634
JK
14421
14422
14423
14424
14425 GNULIB_MBRTOWC=1
14426
14427
14428
14429
14430
14431$as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
c971b7fa 14444
c971b7fa 14445
8690e634 14446 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
c971b7fa 14447
8690e634
JK
14448
14449
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
14451$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
14452if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
14453 $as_echo_n "(cached) " >&6
14454else
14455
14456 case "$host_os" in
14457 # Guess no on AIX and OSF/1.
14458 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
14459 # Guess yes otherwise.
14460 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
14461 esac
14462 if test $LOCALE_JA != none; then
14463 if test "$cross_compiling" = yes; then :
14464 :
c971b7fa
PA
14465else
14466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14467/* end confdefs.h. */
14468
8690e634
JK
14469#include <locale.h>
14470#include <string.h>
14471/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14472 <wchar.h>.
14473 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14474 included before <wchar.h>. */
14475#include <stddef.h>
14476#include <stdio.h>
14477#include <time.h>
14478#include <wchar.h>
14479int main ()
c971b7fa 14480{
8690e634 14481 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
c971b7fa 14482 {
8690e634
JK
14483 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
14484 mbstate_t state;
14485 wchar_t wc;
14486
14487 memset (&state, '\0', sizeof (mbstate_t));
14488 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
14489 if (mbsinit (&state))
14490 return 1;
c971b7fa 14491 }
c971b7fa
PA
14492 return 0;
14493}
14494_ACEOF
14495if ac_fn_c_try_run "$LINENO"; then :
8690e634 14496 gl_cv_func_mbrtowc_incomplete_state=yes
c971b7fa 14497else
8690e634 14498 gl_cv_func_mbrtowc_incomplete_state=no
c971b7fa
PA
14499fi
14500rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14501 conftest.$ac_objext conftest.beam conftest.$ac_ext
14502fi
14503
8690e634 14504 fi
c971b7fa
PA
14505
14506fi
8690e634
JK
14507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
14508$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
c971b7fa
PA
14509
14510
c971b7fa
PA
14511
14512
8690e634
JK
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
14514$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
14515if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
c971b7fa
PA
14516 $as_echo_n "(cached) " >&6
14517else
8690e634
JK
14518
14519 case "$host_os" in
14520 # Guess no on Solaris 8.
14521 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
14522 # Guess yes otherwise.
14523 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
14524 esac
14525 if test $LOCALE_ZH_CN != none; then
14526 if test "$cross_compiling" = yes; then :
14527 :
14528else
c971b7fa
PA
14529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14530/* end confdefs.h. */
8690e634
JK
14531
14532#include <locale.h>
14533#include <stdlib.h>
14534#include <string.h>
14535/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14536 <wchar.h>.
14537 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14538 included before <wchar.h>. */
c971b7fa 14539#include <stddef.h>
8690e634
JK
14540#include <stdio.h>
14541#include <time.h>
14542#include <wchar.h>
14543int main ()
c971b7fa 14544{
8690e634
JK
14545 /* This fails on Solaris 8:
14546 mbrtowc returns 2, and sets wc to 0x00F0.
14547 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
14548 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
14549 {
14550 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
14551 mbstate_t state;
14552 wchar_t wc;
14553
14554 memset (&state, '\0', sizeof (mbstate_t));
14555 if (mbrtowc (&wc, input + 3, 6, &state) != 4
14556 && mbtowc (&wc, input + 3, 6) == 4)
14557 return 1;
14558 }
c971b7fa
PA
14559 return 0;
14560}
14561_ACEOF
8690e634
JK
14562if ac_fn_c_try_run "$LINENO"; then :
14563 gl_cv_func_mbrtowc_sanitycheck=yes
c971b7fa 14564else
8690e634 14565 gl_cv_func_mbrtowc_sanitycheck=no
c971b7fa 14566fi
8690e634
JK
14567rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14568 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 14569fi
c971b7fa 14570
8690e634
JK
14571 fi
14572
14573fi
14574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
14575$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
c971b7fa 14576
8690e634
JK
14577 REPLACE_MBSTATE_T=0
14578 case "$gl_cv_func_mbrtowc_incomplete_state" in
14579 *yes) ;;
14580 *) REPLACE_MBSTATE_T=1 ;;
14581 esac
14582 case "$gl_cv_func_mbrtowc_sanitycheck" in
14583 *yes) ;;
14584 *) REPLACE_MBSTATE_T=1 ;;
14585 esac
14586 else
14587 REPLACE_MBSTATE_T=1
c971b7fa
PA
14588 fi
14589
c971b7fa 14590
8690e634 14591
8690e634
JK
14592 if test $ac_cv_func_mbsinit = no; then
14593 HAVE_MBSINIT=0
14594 ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
14595/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14596 <wchar.h>.
14597 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14598 included before <wchar.h>. */
14599#include <stddef.h>
14600#include <stdio.h>
14601#include <time.h>
14602#include <wchar.h>
14603
14604"
14605if test "x$ac_cv_have_decl_mbsinit" = x""yes; then :
14606 ac_have_decl=1
14607else
14608 ac_have_decl=0
c971b7fa 14609fi
c971b7fa 14610
8690e634
JK
14611cat >>confdefs.h <<_ACEOF
14612#define HAVE_DECL_MBSINIT $ac_have_decl
c971b7fa 14613_ACEOF
c971b7fa 14614
8690e634
JK
14615 if test $ac_cv_have_decl_mbsinit = yes; then
14616 REPLACE_MBSINIT=1
14617 fi
14618 else
14619 if test $REPLACE_MBSTATE_T = 1; then
14620 REPLACE_MBSINIT=1
14621 else
14622 case "$host_os" in
14623 mingw*) REPLACE_MBSINIT=1 ;;
14624 esac
14625 fi
14626 fi
c971b7fa 14627
a512b375 14628 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
c971b7fa
PA
14629
14630
14631
14632
14633
14634
14635
14636
8690e634 14637 gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
c971b7fa
PA
14638
14639
8690e634 14640 :
c971b7fa 14641
a512b375 14642 fi
c971b7fa 14643
c971b7fa 14644
c971b7fa 14645
c971b7fa
PA
14646
14647
8690e634 14648 GNULIB_MBSINIT=1
c971b7fa 14649
c971b7fa
PA
14650
14651
14652
14653
8690e634 14654$as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
c971b7fa
PA
14655
14656
c971b7fa 14657
c971b7fa 14658
c971b7fa
PA
14659
14660
14661
c971b7fa 14662
c971b7fa
PA
14663
14664
14665
14666
8690e634
JK
14667
14668 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
c971b7fa
PA
14669
14670
14671
8690e634
JK
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
14673$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
14674if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
14675 $as_echo_n "(cached) " >&6
14676else
c971b7fa 14677
8690e634
JK
14678 case "$host_os" in
14679 # Guess no on AIX and OSF/1.
14680 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
14681 # Guess yes otherwise.
14682 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
c971b7fa 14683 esac
8690e634
JK
14684 if test $LOCALE_JA != none; then
14685 if test "$cross_compiling" = yes; then :
14686 :
14687else
14688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa 14689/* end confdefs.h. */
c971b7fa 14690
8690e634
JK
14691#include <locale.h>
14692#include <string.h>
14693/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14694 <wchar.h>.
14695 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14696 included before <wchar.h>. */
14697#include <stddef.h>
14698#include <stdio.h>
14699#include <time.h>
14700#include <wchar.h>
14701int main ()
14702{
14703 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
14704 {
14705 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
14706 mbstate_t state;
14707 wchar_t wc;
14708
14709 memset (&state, '\0', sizeof (mbstate_t));
14710 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
14711 if (mbsinit (&state))
14712 return 1;
14713 }
c971b7fa
PA
14714 return 0;
14715}
14716_ACEOF
8690e634
JK
14717if ac_fn_c_try_run "$LINENO"; then :
14718 gl_cv_func_mbrtowc_incomplete_state=yes
14719else
14720 gl_cv_func_mbrtowc_incomplete_state=no
14721fi
14722rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14723 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 14724fi
c971b7fa 14725
8690e634 14726 fi
c971b7fa 14727
8690e634
JK
14728fi
14729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
14730$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
c971b7fa 14731
8690e634
JK
14732
14733
14734
14735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
14736$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
14737if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
c971b7fa
PA
14738 $as_echo_n "(cached) " >&6
14739else
8690e634
JK
14740
14741 case "$host_os" in
14742 # Guess no on Solaris 8.
14743 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
14744 # Guess yes otherwise.
14745 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
14746 esac
14747 if test $LOCALE_ZH_CN != none; then
14748 if test "$cross_compiling" = yes; then :
14749 :
14750else
c971b7fa
PA
14751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14752/* end confdefs.h. */
c971b7fa 14753
8690e634
JK
14754#include <locale.h>
14755#include <stdlib.h>
14756#include <string.h>
14757/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14758 <wchar.h>.
14759 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14760 included before <wchar.h>. */
14761#include <stddef.h>
14762#include <stdio.h>
14763#include <time.h>
14764#include <wchar.h>
14765int main ()
c971b7fa 14766{
8690e634
JK
14767 /* This fails on Solaris 8:
14768 mbrtowc returns 2, and sets wc to 0x00F0.
14769 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
14770 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
14771 {
14772 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
14773 mbstate_t state;
14774 wchar_t wc;
14775
14776 memset (&state, '\0', sizeof (mbstate_t));
14777 if (mbrtowc (&wc, input + 3, 6, &state) != 4
14778 && mbtowc (&wc, input + 3, 6) == 4)
14779 return 1;
14780 }
c971b7fa
PA
14781 return 0;
14782}
14783_ACEOF
8690e634
JK
14784if ac_fn_c_try_run "$LINENO"; then :
14785 gl_cv_func_mbrtowc_sanitycheck=yes
c971b7fa 14786else
8690e634 14787 gl_cv_func_mbrtowc_sanitycheck=no
c971b7fa 14788fi
8690e634
JK
14789rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14790 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 14791fi
8690e634
JK
14792
14793 fi
14794
14795fi
14796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
14797$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
14798
14799 REPLACE_MBSTATE_T=0
14800 case "$gl_cv_func_mbrtowc_incomplete_state" in
14801 *yes) ;;
14802 *) REPLACE_MBSTATE_T=1 ;;
14803 esac
14804 case "$gl_cv_func_mbrtowc_sanitycheck" in
14805 *yes) ;;
14806 *) REPLACE_MBSTATE_T=1 ;;
14807 esac
c971b7fa 14808 else
8690e634 14809 REPLACE_MBSTATE_T=1
c971b7fa
PA
14810 fi
14811
14812
c971b7fa 14813
8690e634
JK
14814 if test $ac_cv_func_mbsrtowcs = no; then
14815 HAVE_MBSRTOWCS=0
14816 ac_fn_c_check_decl "$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
14817/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14818 <wchar.h>.
14819 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14820 included before <wchar.h>. */
14821#include <stddef.h>
14822#include <stdio.h>
14823#include <time.h>
14824#include <wchar.h>
14825
14826"
14827if test "x$ac_cv_have_decl_mbsrtowcs" = x""yes; then :
14828 ac_have_decl=1
c971b7fa 14829else
8690e634 14830 ac_have_decl=0
c971b7fa 14831fi
c971b7fa 14832
8690e634
JK
14833cat >>confdefs.h <<_ACEOF
14834#define HAVE_DECL_MBSRTOWCS $ac_have_decl
14835_ACEOF
c971b7fa 14836
8690e634
JK
14837 if test $ac_cv_have_decl_mbsrtowcs = yes; then
14838 REPLACE_MBSRTOWCS=1
14839 fi
c971b7fa 14840 else
8690e634
JK
14841 if test $REPLACE_MBSTATE_T = 1; then
14842 REPLACE_MBSRTOWCS=1
14843 else
c971b7fa 14844
8690e634
JK
14845
14846
14847
14848
14849
14850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
14851$as_echo_n "checking whether mbsrtowcs works... " >&6; }
14852if test "${gl_cv_func_mbsrtowcs_works+set}" = set; then :
c971b7fa
PA
14853 $as_echo_n "(cached) " >&6
14854else
8690e634
JK
14855
14856 case "$host_os" in
14857 # Guess no on HP-UX, Solaris, mingw.
14858 hpux* | solaris* | mingw*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
14859 # Guess yes otherwise.
14860 *) gl_cv_func_mbsrtowcs_works="guessing yes" ;;
14861 esac
14862 if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
14863 if test "$cross_compiling" = yes; then :
14864 :
14865else
c971b7fa
PA
14866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14867/* end confdefs.h. */
c971b7fa 14868
8690e634
JK
14869#include <locale.h>
14870#include <string.h>
14871/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14872 <wchar.h>.
14873 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14874 included before <wchar.h>. */
14875#include <stddef.h>
14876#include <stdio.h>
14877#include <time.h>
14878#include <wchar.h>
14879int main ()
c971b7fa 14880{
8690e634
JK
14881 int result = 0;
14882 /* Test whether the function supports a NULL destination argument.
14883 This fails on native Windows. */
14884 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
14885 {
14886 const char input[] = "\337er";
14887 const char *src = input;
14888 mbstate_t state;
c971b7fa 14889
8690e634
JK
14890 memset (&state, '\0', sizeof (mbstate_t));
14891 if (mbsrtowcs (NULL, &src, 1, &state) != 3
14892 || src != input)
14893 result |= 1;
14894 }
14895 /* Test whether the function works when started with a conversion state
14896 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
14897 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
14898 {
14899 const char input[] = "B\303\274\303\237er";
14900 mbstate_t state;
14901
14902 memset (&state, '\0', sizeof (mbstate_t));
14903 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
14904 if (!mbsinit (&state))
14905 {
14906 const char *src = input + 2;
14907 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
14908 result |= 2;
14909 }
14910 }
14911 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
14912 {
14913 const char input[] = "<\306\374\313\334\270\354>";
14914 mbstate_t state;
14915
14916 memset (&state, '\0', sizeof (mbstate_t));
14917 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
14918 if (!mbsinit (&state))
14919 {
14920 const char *src = input + 4;
14921 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
14922 result |= 4;
14923 }
14924 }
14925 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
14926 {
14927 const char input[] = "B\250\271\201\060\211\070er";
14928 mbstate_t state;
14929
14930 memset (&state, '\0', sizeof (mbstate_t));
14931 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
14932 if (!mbsinit (&state))
14933 {
14934 const char *src = input + 2;
14935 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
14936 result |= 8;
14937 }
14938 }
14939 return result;
c971b7fa
PA
14940}
14941_ACEOF
8690e634
JK
14942if ac_fn_c_try_run "$LINENO"; then :
14943 gl_cv_func_mbsrtowcs_works=yes
c971b7fa 14944else
8690e634 14945 gl_cv_func_mbsrtowcs_works=no
c971b7fa 14946fi
8690e634
JK
14947rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14948 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 14949fi
8690e634
JK
14950
14951 fi
14952
14953fi
14954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
14955$as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
14956
14957 case "$gl_cv_func_mbsrtowcs_works" in
14958 *yes) ;;
14959 *) REPLACE_MBSRTOWCS=1 ;;
14960 esac
14961 fi
c971b7fa
PA
14962 fi
14963
a512b375 14964 if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
c971b7fa 14965
c971b7fa 14966
c971b7fa 14967
c971b7fa 14968
c971b7fa 14969
c971b7fa 14970
c971b7fa
PA
14971
14972
8690e634
JK
14973 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext"
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
14984
14985
14986 :
14987
a512b375 14988 fi
8690e634
JK
14989
14990
14991
14992
14993
14994 GNULIB_MBSRTOWCS=1
14995
14996
14997
14998
14999
15000$as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
c971b7fa
PA
15001
15002
15003
15004
a512b375 15005 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
c971b7fa
PA
15006
15007
15008
15009
15010
15011
15012
15013
15014 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
15015
15016
15017 for ac_header in bp-sym.h
15018do :
15019 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
15020if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
15021 cat >>confdefs.h <<_ACEOF
15022#define HAVE_BP_SYM_H 1
15023_ACEOF
15024
15025fi
15026
15027done
15028
15029
a512b375 15030 fi
c971b7fa
PA
15031
15032
15033
15034
15035
15036 GNULIB_MEMCHR=1
15037
15038
15039
15040
15041
15042$as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
15043
15044
15045
15046
15047
15048 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
15049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
15050$as_echo_n "checking whether memmem works in linear time... " >&6; }
15051if test "${gl_cv_func_memmem_works_fast+set}" = set; then :
15052 $as_echo_n "(cached) " >&6
15053else
15054 if test "$cross_compiling" = yes; then :
15055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15056/* end confdefs.h. */
15057
15058#include <features.h>
15059#ifdef __GNU_LIBRARY__
15060 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
15061 && !defined __UCLIBC__
15062 Lucky user
15063 #endif
15064#endif
15065#ifdef __CYGWIN__
15066 #include <cygwin/version.h>
15067 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
15068 Lucky user
15069 #endif
15070#endif
15071
15072_ACEOF
15073if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15074 $EGREP "Lucky user" >/dev/null 2>&1; then :
63ce7108
TT
15075 gl_cv_func_memmem_works_fast="guessing yes"
15076else
15077 gl_cv_func_memmem_works_fast="guessing no"
15078fi
15079rm -f conftest*
15080
15081
15082else
15083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15084/* end confdefs.h. */
15085
15086#include <signal.h> /* for signal */
15087#include <string.h> /* for memmem */
15088#include <stdlib.h> /* for malloc */
15089#include <unistd.h> /* for alarm */
15090static void quit (int sig) { exit (sig + 128); }
15091
15092int
15093main ()
15094{
15095
15096 int result = 0;
15097 size_t m = 1000000;
15098 char *haystack = (char *) malloc (2 * m + 1);
15099 char *needle = (char *) malloc (m + 1);
15100 /* Failure to compile this test due to missing alarm is okay,
15101 since all such platforms (mingw) also lack memmem. */
15102 signal (SIGALRM, quit);
15103 alarm (5);
15104 /* Check for quadratic performance. */
15105 if (haystack && needle)
15106 {
15107 memset (haystack, 'A', 2 * m);
15108 haystack[2 * m] = 'B';
15109 memset (needle, 'A', m);
15110 needle[m] = 'B';
15111 if (!memmem (haystack, 2 * m + 1, needle, m + 1))
15112 result |= 1;
15113 }
15114 return result;
15115
15116 ;
15117 return 0;
15118}
15119_ACEOF
15120if ac_fn_c_try_run "$LINENO"; then :
15121 gl_cv_func_memmem_works_fast=yes
15122else
15123 gl_cv_func_memmem_works_fast=no
15124fi
15125rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15126 conftest.$ac_objext conftest.beam conftest.$ac_ext
15127fi
15128
15129
15130fi
15131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
15132$as_echo "$gl_cv_func_memmem_works_fast" >&6; }
15133 case "$gl_cv_func_memmem_works_fast" in
15134 *yes) ;;
15135 *)
15136 REPLACE_MEMMEM=1
15137 ;;
15138 esac
15139 fi
15140
15141 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
15142
15143
15144
15145
15146
15147
15148
15149
15150 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
15151
15152 fi
15153
15154
15155
15156
15157 for ac_func in memmem
15158do :
15159 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
15160if test "x$ac_cv_func_memmem" = x""yes; then :
15161 cat >>confdefs.h <<_ACEOF
15162#define HAVE_MEMMEM 1
15163_ACEOF
15164
15165fi
15166done
15167
15168 if test $ac_cv_func_memmem = yes; then
15169 HAVE_MEMMEM=1
15170 else
15171 HAVE_MEMMEM=0
15172 fi
15173
15174 if test $ac_cv_have_decl_memmem = no; then
15175 HAVE_DECL_MEMMEM=0
15176 else
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
15178$as_echo_n "checking whether memmem works... " >&6; }
15179if test "${gl_cv_func_memmem_works_always+set}" = set; then :
15180 $as_echo_n "(cached) " >&6
15181else
15182 if test "$cross_compiling" = yes; then :
15183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15184/* end confdefs.h. */
15185
15186#ifdef __GNU_LIBRARY__
15187 #include <features.h>
15188 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
15189 || __GLIBC_MINOR__ > 12)) \
15190 || (__GLIBC__ > 2)) \
15191 || defined __UCLIBC__
15192 Lucky user
15193 #endif
15194#elif defined __CYGWIN__
15195 #include <cygwin/version.h>
15196 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
15197 Lucky user
15198 #endif
15199#else
15200 Lucky user
15201#endif
15202
15203_ACEOF
15204if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15205 $EGREP "Lucky user" >/dev/null 2>&1; then :
15206 gl_cv_func_memmem_works_always="guessing yes"
15207else
15208 gl_cv_func_memmem_works_always="guessing no"
15209fi
15210rm -f conftest*
15211
15212
15213else
15214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15215/* end confdefs.h. */
15216
15217#include <string.h> /* for memmem */
15218#define P "_EF_BF_BD"
15219#define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
15220#define NEEDLE P P P P P
15221
15222int
15223main ()
15224{
15225
15226 int result = 0;
15227 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
15228 result |= 1;
15229 /* Check for empty needle behavior. */
15230 {
15231 const char *haystack = "AAA";
15232 if (memmem (haystack, 3, NULL, 0) != haystack)
15233 result |= 2;
15234 }
15235 return result;
15236
15237 ;
15238 return 0;
15239}
15240_ACEOF
15241if ac_fn_c_try_run "$LINENO"; then :
15242 gl_cv_func_memmem_works_always=yes
15243else
15244 gl_cv_func_memmem_works_always=no
15245fi
15246rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15247 conftest.$ac_objext conftest.beam conftest.$ac_ext
15248fi
15249
15250
15251fi
15252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
15253$as_echo "$gl_cv_func_memmem_works_always" >&6; }
15254 case "$gl_cv_func_memmem_works_always" in
15255 *yes) ;;
15256 *)
15257 REPLACE_MEMMEM=1
15258 ;;
15259 esac
15260 fi
15261 :
15262
15263 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
15264
15265
15266
15267
15268
15269
15270
15271
15272 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
15273
15274 fi
15275
15276
15277
15278
15279
15280 GNULIB_MEMMEM=1
15281
15282
15283
15284
15285
15286$as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
15287
15288
15289
15290
15291
15292
15293
15294
2196f55f
YQ
15295
15296
15297 if test $ac_cv_func_readlink = no; then
15298 HAVE_READLINK=0
15299 else
15300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
15301$as_echo_n "checking whether readlink signature is correct... " >&6; }
15302if test "${gl_cv_decl_readlink_works+set}" = set; then :
15303 $as_echo_n "(cached) " >&6
15304else
15305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15306/* end confdefs.h. */
15307#include <unistd.h>
15308 /* Cause compilation failure if original declaration has wrong type. */
15309 ssize_t readlink (const char *, char *, size_t);
15310int
15311main ()
15312{
15313
15314 ;
15315 return 0;
15316}
15317_ACEOF
15318if ac_fn_c_try_compile "$LINENO"; then :
15319 gl_cv_decl_readlink_works=yes
15320else
15321 gl_cv_decl_readlink_works=no
15322fi
15323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15324fi
15325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
15326$as_echo "$gl_cv_decl_readlink_works" >&6; }
15327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
15328$as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
15329if test "${gl_cv_func_readlink_works+set}" = set; then :
15330 $as_echo_n "(cached) " >&6
15331else
15332 # We have readlink, so assume ln -s works.
15333 ln -s conftest.no-such conftest.link
15334 ln -s conftest.link conftest.lnk2
15335 if test "$cross_compiling" = yes; then :
15336 case "$host_os" in
15337 # Guess yes on glibc systems.
15338 *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
15339 # If we don't know, assume the worst.
15340 *) gl_cv_func_readlink_works="guessing no" ;;
15341 esac
15342
15343else
15344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15345/* end confdefs.h. */
15346#include <unistd.h>
15347
15348int
15349main ()
15350{
15351char buf[20];
15352 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
15353 ;
15354 return 0;
15355}
15356_ACEOF
15357if ac_fn_c_try_run "$LINENO"; then :
15358 gl_cv_func_readlink_works=yes
15359else
15360 gl_cv_func_readlink_works=no
15361fi
15362rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15363 conftest.$ac_objext conftest.beam conftest.$ac_ext
15364fi
15365
15366 rm -f conftest.link conftest.lnk2
15367fi
15368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
15369$as_echo "$gl_cv_func_readlink_works" >&6; }
15370 case "$gl_cv_func_readlink_works" in
15371 *yes)
15372 if test "$gl_cv_decl_readlink_works" != yes; then
15373 REPLACE_READLINK=1
15374 fi
15375 ;;
15376 *)
15377
15378$as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
15379
15380 REPLACE_READLINK=1
15381 ;;
15382 esac
15383 fi
15384
15385 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
15386
15387
15388
15389
15390
15391
15392
15393
15394 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
15395
15396
15397 :
15398
15399 fi
15400
15401
15402
15403
15404
15405 GNULIB_READLINK=1
15406
15407
15408
15409
15410
15411$as_echo "#define GNULIB_TEST_READLINK 1" >>confdefs.h
15412
15413
15414
15415
6a29c58e
YQ
15416
15417
15418
15419
15420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on destination" >&5
15421$as_echo_n "checking whether rename honors trailing slash on destination... " >&6; }
15422if test "${gl_cv_func_rename_slash_dst_works+set}" = set; then :
15423 $as_echo_n "(cached) " >&6
15424else
15425 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
15426 touch conftest.f && touch conftest.f1 && mkdir conftest.d1 ||
15427 as_fn_error "cannot create temporary files" "$LINENO" 5
15428 # Assume that if we have lstat, we can also check symlinks.
15429 if test $ac_cv_func_lstat = yes; then
15430 ln -s conftest.f conftest.lnk
15431 fi
15432 if test "$cross_compiling" = yes; then :
15433 case "$host_os" in
15434 # Guess yes on glibc systems.
15435 *-gnu*) gl_cv_func_rename_slash_dst_works="guessing yes" ;;
15436 # If we don't know, assume the worst.
15437 *) gl_cv_func_rename_slash_dst_works="guessing no" ;;
15438 esac
15439
15440else
15441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15442/* end confdefs.h. */
15443
15444# include <stdio.h>
15445# include <stdlib.h>
15446
15447int
15448main ()
15449{
15450int result = 0;
15451 if (rename ("conftest.f1", "conftest.f2/") == 0)
15452 result |= 1;
15453 if (rename ("conftest.d1", "conftest.d2/") != 0)
15454 result |= 2;
15455#if HAVE_LSTAT
15456 if (rename ("conftest.f", "conftest.lnk/") == 0)
15457 result |= 4;
15458#endif
15459 return result;
15460
15461 ;
15462 return 0;
15463}
15464_ACEOF
15465if ac_fn_c_try_run "$LINENO"; then :
15466 gl_cv_func_rename_slash_dst_works=yes
15467else
15468 gl_cv_func_rename_slash_dst_works=no
15469fi
15470rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15471 conftest.$ac_objext conftest.beam conftest.$ac_ext
15472fi
15473
15474 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
15475
15476fi
15477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_dst_works" >&5
15478$as_echo "$gl_cv_func_rename_slash_dst_works" >&6; }
15479 case "$gl_cv_func_rename_slash_dst_works" in
15480 *yes) ;;
15481 *)
15482 REPLACE_RENAME=1
15483
15484$as_echo "#define RENAME_TRAILING_SLASH_DEST_BUG 1" >>confdefs.h
15485
15486 ;;
15487 esac
15488
15489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on source" >&5
15490$as_echo_n "checking whether rename honors trailing slash on source... " >&6; }
15491if test "${gl_cv_func_rename_slash_src_works+set}" = set; then :
15492 $as_echo_n "(cached) " >&6
15493else
15494 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
15495 touch conftest.f && touch conftest.f1 && mkdir conftest.d1 ||
15496 as_fn_error "cannot create temporary files" "$LINENO" 5
15497 # Assume that if we have lstat, we can also check symlinks.
15498 if test $ac_cv_func_lstat = yes; then
15499 ln -s conftest.f conftest.lnk
15500 fi
15501 if test "$cross_compiling" = yes; then :
15502 case "$host_os" in
15503 # Guess yes on glibc systems.
15504 *-gnu*) gl_cv_func_rename_slash_src_works="guessing yes" ;;
15505 # If we don't know, assume the worst.
15506 *) gl_cv_func_rename_slash_src_works="guessing no" ;;
15507 esac
15508
15509else
15510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15511/* end confdefs.h. */
15512
15513# include <stdio.h>
15514# include <stdlib.h>
15515
15516int
15517main ()
15518{
15519int result = 0;
15520 if (rename ("conftest.f1/", "conftest.d3") == 0)
15521 result |= 1;
15522 if (rename ("conftest.d1/", "conftest.d2") != 0)
15523 result |= 2;
15524#if HAVE_LSTAT
15525 if (rename ("conftest.lnk/", "conftest.f") == 0)
15526 result |= 4;
15527#endif
15528 return result;
15529
15530 ;
15531 return 0;
15532}
15533_ACEOF
15534if ac_fn_c_try_run "$LINENO"; then :
15535 gl_cv_func_rename_slash_src_works=yes
15536else
15537 gl_cv_func_rename_slash_src_works=no
15538fi
15539rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15540 conftest.$ac_objext conftest.beam conftest.$ac_ext
15541fi
15542
15543 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
15544
15545fi
15546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_src_works" >&5
15547$as_echo "$gl_cv_func_rename_slash_src_works" >&6; }
15548 case "$gl_cv_func_rename_slash_src_works" in
15549 *yes) ;;
15550 *)
15551 REPLACE_RENAME=1
15552
15553$as_echo "#define RENAME_TRAILING_SLASH_SOURCE_BUG 1" >>confdefs.h
15554
15555 ;;
15556 esac
15557
15558
15559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages hard links correctly" >&5
15560$as_echo_n "checking whether rename manages hard links correctly... " >&6; }
15561if test "${gl_cv_func_rename_link_works+set}" = set; then :
15562 $as_echo_n "(cached) " >&6
15563else
15564 if test $ac_cv_func_link = yes; then
15565 rm -rf conftest.f conftest.f1
15566 if touch conftest.f && ln conftest.f conftest.f1 &&
15567 set x `ls -i conftest.f conftest.f1` && test "" = ""; then
15568 if test "$cross_compiling" = yes; then :
15569 case "$host_os" in
15570 # Guess yes on glibc systems.
15571 *-gnu*) gl_cv_func_rename_link_works="guessing yes" ;;
15572 # If we don't know, assume the worst.
15573 *) gl_cv_func_rename_link_works="guessing no" ;;
15574 esac
15575
15576else
15577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15578/* end confdefs.h. */
15579
15580# include <stdio.h>
15581# include <stdlib.h>
15582# include <unistd.h>
15583
15584int
15585main ()
15586{
15587int result = 0;
15588 if (rename ("conftest.f", "conftest.f1"))
15589 result |= 1;
15590 if (unlink ("conftest.f1"))
15591 result |= 2;
15592 if (rename ("conftest.f", "conftest.f"))
15593 result |= 4;
15594 if (rename ("conftest.f1", "conftest.f1") == 0)
15595 result |= 8;
15596 return result;
15597
15598 ;
15599 return 0;
15600}
15601_ACEOF
15602if ac_fn_c_try_run "$LINENO"; then :
15603 gl_cv_func_rename_link_works=yes
15604else
15605 gl_cv_func_rename_link_works=no
15606fi
15607rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15608 conftest.$ac_objext conftest.beam conftest.$ac_ext
15609fi
15610
15611 else
15612 gl_cv_func_rename_link_works="guessing no"
15613 fi
15614 rm -rf conftest.f conftest.f1
15615 else
15616 gl_cv_func_rename_link_works=yes
15617 fi
15618
15619fi
15620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_link_works" >&5
15621$as_echo "$gl_cv_func_rename_link_works" >&6; }
15622 case "$gl_cv_func_rename_link_works" in
15623 *yes) ;;
15624 *)
15625 REPLACE_RENAME=1
15626
15627$as_echo "#define RENAME_HARD_LINK_BUG 1" >>confdefs.h
15628
15629 ;;
15630 esac
15631
15632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages existing destinations correctly" >&5
15633$as_echo_n "checking whether rename manages existing destinations correctly... " >&6; }
15634if test "${gl_cv_func_rename_dest_works+set}" = set; then :
15635 $as_echo_n "(cached) " >&6
15636else
15637 rm -rf conftest.f conftest.d1 conftest.d2
15638 touch conftest.f && mkdir conftest.d1 conftest.d2 ||
15639 as_fn_error "cannot create temporary files" "$LINENO" 5
15640 if test "$cross_compiling" = yes; then :
15641 case "$host_os" in
15642 # Guess yes on glibc systems.
15643 *-gnu*) gl_cv_func_rename_dest_works="guessing yes" ;;
15644 # If we don't know, assume the worst.
15645 *) gl_cv_func_rename_dest_works="guessing no" ;;
15646 esac
15647
15648else
15649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15650/* end confdefs.h. */
15651
15652# include <stdio.h>
15653# include <stdlib.h>
15654
15655int
15656main ()
15657{
15658int result = 0;
15659 if (rename ("conftest.d1", "conftest.d2") != 0)
15660 result |= 1;
15661 if (rename ("conftest.d2", "conftest.f") == 0)
15662 result |= 2;
15663 return result;
15664
15665 ;
15666 return 0;
15667}
15668_ACEOF
15669if ac_fn_c_try_run "$LINENO"; then :
15670 gl_cv_func_rename_dest_works=yes
15671else
15672 gl_cv_func_rename_dest_works=no
15673fi
15674rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15675 conftest.$ac_objext conftest.beam conftest.$ac_ext
15676fi
15677
15678 rm -rf conftest.f conftest.d1 conftest.d2
15679
15680fi
15681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_dest_works" >&5
15682$as_echo "$gl_cv_func_rename_dest_works" >&6; }
15683 case "$gl_cv_func_rename_dest_works" in
15684 *yes) ;;
15685 *)
15686 REPLACE_RENAME=1
15687
15688$as_echo "#define RENAME_DEST_EXISTS_BUG 1" >>confdefs.h
15689
15690 ;;
15691 esac
15692
15693 if test $REPLACE_RENAME = 1; then
15694
15695
15696
15697
15698
15699
15700
15701
15702 gl_LIBOBJS="$gl_LIBOBJS rename.$ac_objext"
15703
15704 fi
15705
15706
15707
15708
15709
15710 GNULIB_RENAME=1
15711
15712
15713
15714
15715
15716$as_echo "#define GNULIB_TEST_RENAME 1" >>confdefs.h
15717
15718
15719
15720
15721
15722
15723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rmdir works" >&5
15724$as_echo_n "checking whether rmdir works... " >&6; }
15725if test "${gl_cv_func_rmdir_works+set}" = set; then :
15726 $as_echo_n "(cached) " >&6
15727else
15728 mkdir conftest.dir
15729 touch conftest.file
15730 if test "$cross_compiling" = yes; then :
15731 case "$host_os" in
15732 # Guess yes on glibc systems.
15733 *-gnu*) gl_cv_func_rmdir_works="guessing yes" ;;
15734 # If we don't know, assume the worst.
15735 *) gl_cv_func_rmdir_works="guessing no" ;;
15736 esac
15737
15738else
15739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15740/* end confdefs.h. */
15741#include <stdio.h>
15742 #include <errno.h>
15743 #if HAVE_UNISTD_H
15744 # include <unistd.h>
15745 #else /* on Windows with MSVC */
15746 # include <direct.h>
15747 #endif
15748
15749int
15750main ()
15751{
15752int result = 0;
15753 if (!rmdir ("conftest.file/"))
15754 result |= 1;
15755 else if (errno != ENOTDIR)
15756 result |= 2;
15757 if (!rmdir ("conftest.dir/./"))
15758 result |= 4;
15759 return result;
15760
15761 ;
15762 return 0;
15763}
15764_ACEOF
15765if ac_fn_c_try_run "$LINENO"; then :
15766 gl_cv_func_rmdir_works=yes
15767else
15768 gl_cv_func_rmdir_works=no
15769fi
15770rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15771 conftest.$ac_objext conftest.beam conftest.$ac_ext
15772fi
15773
15774 rm -rf conftest.dir conftest.file
15775fi
15776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rmdir_works" >&5
15777$as_echo "$gl_cv_func_rmdir_works" >&6; }
15778 case "$gl_cv_func_rmdir_works" in
15779 *yes) ;;
15780 *)
15781 REPLACE_RMDIR=1
15782 ;;
15783 esac
15784
15785 if test $REPLACE_RMDIR = 1; then
15786
15787
15788
15789
15790
15791
15792
15793
15794 gl_LIBOBJS="$gl_LIBOBJS rmdir.$ac_objext"
15795
15796 fi
15797
15798
15799
15800
15801
15802 GNULIB_RMDIR=1
15803
15804
15805
15806
15807
15808$as_echo "#define GNULIB_TEST_RMDIR 1" >>confdefs.h
15809
15810
15811
15812
63ce7108
TT
15813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
15814$as_echo_n "checking for ssize_t... " >&6; }
15815if test "${gt_cv_ssize_t+set}" = set; then :
15816 $as_echo_n "(cached) " >&6
15817else
15818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15819/* end confdefs.h. */
15820#include <sys/types.h>
15821int
15822main ()
15823{
15824int x = sizeof (ssize_t *) + sizeof (ssize_t);
15825 return !x;
15826 ;
15827 return 0;
15828}
15829_ACEOF
15830if ac_fn_c_try_compile "$LINENO"; then :
15831 gt_cv_ssize_t=yes
15832else
15833 gt_cv_ssize_t=no
15834fi
15835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15836fi
15837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
15838$as_echo "$gt_cv_ssize_t" >&6; }
15839 if test $gt_cv_ssize_t = no; then
15840
15841$as_echo "#define ssize_t int" >>confdefs.h
15842
15843 fi
15844
15845
15846
15847
2196f55f
YQ
15848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
15849$as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
15850if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
15851 $as_echo_n "(cached) " >&6
15852else
15853 if test "$cross_compiling" = yes; then :
15854 case $host_os in
15855 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
15856 *) gl_cv_func_stat_dir_slash="guessing yes";;
15857 esac
15858else
15859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15860/* end confdefs.h. */
15861#include <sys/stat.h>
15862
15863int
15864main ()
15865{
15866struct stat st; return stat (".", &st) != stat ("./", &st);
15867 ;
15868 return 0;
15869}
15870_ACEOF
15871if ac_fn_c_try_run "$LINENO"; then :
15872 gl_cv_func_stat_dir_slash=yes
15873else
15874 gl_cv_func_stat_dir_slash=no
15875fi
15876rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15877 conftest.$ac_objext conftest.beam conftest.$ac_ext
15878fi
15879
15880fi
15881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
15882$as_echo "$gl_cv_func_stat_dir_slash" >&6; }
15883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
15884$as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
15885if test "${gl_cv_func_stat_file_slash+set}" = set; then :
15886 $as_echo_n "(cached) " >&6
15887else
15888 touch conftest.tmp
15889 # Assume that if we have lstat, we can also check symlinks.
15890 if test $ac_cv_func_lstat = yes; then
15891 ln -s conftest.tmp conftest.lnk
15892 fi
15893 if test "$cross_compiling" = yes; then :
15894 case "$host_os" in
15895 # Guess yes on glibc systems.
15896 *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
15897 # If we don't know, assume the worst.
15898 *) gl_cv_func_stat_file_slash="guessing no" ;;
15899 esac
15900
15901else
15902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15903/* end confdefs.h. */
15904#include <sys/stat.h>
15905
15906int
15907main ()
15908{
15909int result = 0;
15910 struct stat st;
15911 if (!stat ("conftest.tmp/", &st))
15912 result |= 1;
15913#if HAVE_LSTAT
15914 if (!stat ("conftest.lnk/", &st))
15915 result |= 2;
15916#endif
15917 return result;
15918
15919 ;
15920 return 0;
15921}
15922_ACEOF
15923if ac_fn_c_try_run "$LINENO"; then :
15924 gl_cv_func_stat_file_slash=yes
15925else
15926 gl_cv_func_stat_file_slash=no
15927fi
15928rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15929 conftest.$ac_objext conftest.beam conftest.$ac_ext
15930fi
15931
15932 rm -f conftest.tmp conftest.lnk
15933fi
15934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
15935$as_echo "$gl_cv_func_stat_file_slash" >&6; }
15936 case $gl_cv_func_stat_dir_slash in
15937 *no) REPLACE_STAT=1
15938
15939$as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
15940;;
15941 esac
15942 case $gl_cv_func_stat_file_slash in
15943 *no) REPLACE_STAT=1
15944
15945$as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
15946;;
15947 esac
15948
15949 if test $REPLACE_STAT = 1; then
15950
15951
15952
15953
15954
15955
15956
15957
15958 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
15959
15960 :
15961 fi
15962
15963
15964
15965
15966
15967 GNULIB_STAT=1
15968
15969
15970
15971
15972
15973$as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
15974
15975
15976
15977
15978
15979
63ce7108
TT
15980 # Define two additional variables used in the Makefile substitution.
15981
15982 if test "$ac_cv_header_stdbool_h" = yes; then
15983 STDBOOL_H=''
15984 else
15985 STDBOOL_H='stdbool.h'
15986 fi
15987
15988 if test -n "$STDBOOL_H"; then
15989 GL_GENERATE_STDBOOL_H_TRUE=
15990 GL_GENERATE_STDBOOL_H_FALSE='#'
15991else
15992 GL_GENERATE_STDBOOL_H_TRUE='#'
15993 GL_GENERATE_STDBOOL_H_FALSE=
15994fi
15995
15996
15997 if test "$ac_cv_type__Bool" = yes; then
15998 HAVE__BOOL=1
15999 else
16000 HAVE__BOOL=0
16001 fi
16002
16003
16004
16005
16006
16007 STDDEF_H=
16008 if test $gt_cv_c_wchar_t = no; then
16009 HAVE_WCHAR_T=0
16010 STDDEF_H=stddef.h
16011 fi
16012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
16013$as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
16014if test "${gl_cv_decl_null_works+set}" = set; then :
16015 $as_echo_n "(cached) " >&6
16016else
16017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16018/* end confdefs.h. */
16019#include <stddef.h>
16020 int test[2 * (sizeof NULL == sizeof (void *)) -1];
16021
16022int
16023main ()
16024{
16025
16026 ;
16027 return 0;
16028}
16029_ACEOF
16030if ac_fn_c_try_compile "$LINENO"; then :
16031 gl_cv_decl_null_works=yes
16032else
16033 gl_cv_decl_null_works=no
16034fi
16035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16036fi
16037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
16038$as_echo "$gl_cv_decl_null_works" >&6; }
16039 if test $gl_cv_decl_null_works = no; then
16040 REPLACE_NULL=1
16041 STDDEF_H=stddef.h
16042 fi
16043
16044 if test -n "$STDDEF_H"; then
16045 GL_GENERATE_STDDEF_H_TRUE=
16046 GL_GENERATE_STDDEF_H_FALSE='#'
16047else
16048 GL_GENERATE_STDDEF_H_TRUE='#'
16049 GL_GENERATE_STDDEF_H_FALSE=
16050fi
16051
16052 if test -n "$STDDEF_H"; then
16053
16054
16055
16056
16057
16058
16059
16060
16061 if test $gl_cv_have_include_next = yes; then
16062 gl_cv_next_stddef_h='<'stddef.h'>'
16063 else
16064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
16065$as_echo_n "checking absolute name of <stddef.h>... " >&6; }
16066if test "${gl_cv_next_stddef_h+set}" = set; then :
16067 $as_echo_n "(cached) " >&6
16068else
16069
16070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16071/* end confdefs.h. */
16072#include <stddef.h>
16073
16074_ACEOF
16075 case "$host_os" in
16076 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16077 *) gl_absname_cpp="$ac_cpp" ;;
16078 esac
16079
16080 case "$host_os" in
16081 mingw*)
16082 gl_dirsep_regex='[/\\]'
16083 ;;
16084 *)
16085 gl_dirsep_regex='\/'
16086 ;;
16087 esac
16088 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16089
16090 gl_header_literal_regex=`echo 'stddef.h' \
16091 | sed -e "$gl_make_literal_regex_sed"`
16092 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16093 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16094 s|^/[^/]|//&|
16095 p
16096 q
16097 }'
16098 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16099 sed -n "$gl_absolute_header_sed"`'"'
16100
16101
16102fi
16103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
16104$as_echo "$gl_cv_next_stddef_h" >&6; }
16105 fi
16106 NEXT_STDDEF_H=$gl_cv_next_stddef_h
16107
16108 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16109 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16110 gl_next_as_first_directive='<'stddef.h'>'
16111 else
16112 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16113 gl_next_as_first_directive=$gl_cv_next_stddef_h
16114 fi
16115 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
16116
16117
16118
16119
16120 fi
16121
16122
16123
16124
16125
16126
16127
98399780
YQ
16128
16129
16130
16131
16132
6a29c58e
YQ
16133 if test $gl_cv_have_include_next = yes; then
16134 gl_cv_next_stdio_h='<'stdio.h'>'
16135 else
16136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
16137$as_echo_n "checking absolute name of <stdio.h>... " >&6; }
16138if test "${gl_cv_next_stdio_h+set}" = set; then :
16139 $as_echo_n "(cached) " >&6
16140else
16141
16142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16143/* end confdefs.h. */
16144#include <stdio.h>
16145
16146_ACEOF
16147 case "$host_os" in
16148 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16149 *) gl_absname_cpp="$ac_cpp" ;;
16150 esac
16151
16152 case "$host_os" in
16153 mingw*)
16154 gl_dirsep_regex='[/\\]'
16155 ;;
16156 *)
16157 gl_dirsep_regex='\/'
16158 ;;
16159 esac
16160 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16161
16162 gl_header_literal_regex=`echo 'stdio.h' \
16163 | sed -e "$gl_make_literal_regex_sed"`
16164 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16165 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16166 s|^/[^/]|//&|
16167 p
16168 q
16169 }'
16170 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16171 sed -n "$gl_absolute_header_sed"`'"'
16172
16173
16174fi
16175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
16176$as_echo "$gl_cv_next_stdio_h" >&6; }
16177 fi
16178 NEXT_STDIO_H=$gl_cv_next_stdio_h
16179
16180 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16181 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16182 gl_next_as_first_directive='<'stdio.h'>'
16183 else
16184 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16185 gl_next_as_first_directive=$gl_cv_next_stdio_h
16186 fi
16187 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
16188
16189
16190
16191
16192
16193 GNULIB_FSCANF=1
16194
16195
16196cat >>confdefs.h <<_ACEOF
16197#define GNULIB_FSCANF 1
16198_ACEOF
16199
16200
16201 GNULIB_SCANF=1
16202
16203
16204cat >>confdefs.h <<_ACEOF
16205#define GNULIB_SCANF 1
16206_ACEOF
16207
16208
16209 GNULIB_FGETC=1
16210 GNULIB_GETC=1
16211 GNULIB_GETCHAR=1
16212 GNULIB_FGETS=1
16213 GNULIB_FREAD=1
16214
16215
16216 GNULIB_FPRINTF=1
16217 GNULIB_PRINTF=1
16218 GNULIB_VFPRINTF=1
16219 GNULIB_VPRINTF=1
16220 GNULIB_FPUTC=1
16221 GNULIB_PUTC=1
16222 GNULIB_PUTCHAR=1
16223 GNULIB_FPUTS=1
16224 GNULIB_PUTS=1
16225 GNULIB_FWRITE=1
16226
16227
16228
16229
16230 for gl_func in dprintf fpurge fseeko ftello getdelim getline gets pclose popen renameat snprintf tmpfile vdprintf vsnprintf; do
16231 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
16232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
16233$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
16234if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
16235 $as_echo_n "(cached) " >&6
16236else
16237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16238/* end confdefs.h. */
16239#include <stdio.h>
16240
16241int
16242main ()
16243{
16244#undef $gl_func
16245 (void) $gl_func;
16246 ;
16247 return 0;
16248}
16249_ACEOF
16250if ac_fn_c_try_compile "$LINENO"; then :
16251 eval "$as_gl_Symbol=yes"
16252else
16253 eval "$as_gl_Symbol=no"
16254fi
16255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16256fi
16257eval ac_res=\$$as_gl_Symbol
16258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16259$as_echo "$ac_res" >&6; }
16260 eval as_val=\$$as_gl_Symbol
16261 if test "x$as_val" = x""yes; then :
16262 cat >>confdefs.h <<_ACEOF
16263#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
16264_ACEOF
16265
16266 eval ac_cv_have_decl_$gl_func=yes
16267fi
16268 done
16269
16270
16271
16272
16273
16274
16275
16276
16277
16278
16279
16280
98399780
YQ
16281 if test $gl_cv_have_include_next = yes; then
16282 gl_cv_next_stdlib_h='<'stdlib.h'>'
16283 else
16284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
16285$as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
16286if test "${gl_cv_next_stdlib_h+set}" = set; then :
16287 $as_echo_n "(cached) " >&6
16288else
16289
16290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16291/* end confdefs.h. */
16292#include <stdlib.h>
16293
16294_ACEOF
16295 case "$host_os" in
16296 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16297 *) gl_absname_cpp="$ac_cpp" ;;
16298 esac
16299
16300 case "$host_os" in
16301 mingw*)
16302 gl_dirsep_regex='[/\\]'
16303 ;;
16304 *)
16305 gl_dirsep_regex='\/'
16306 ;;
16307 esac
16308 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16309
16310 gl_header_literal_regex=`echo 'stdlib.h' \
16311 | sed -e "$gl_make_literal_regex_sed"`
16312 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16313 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16314 s|^/[^/]|//&|
16315 p
16316 q
16317 }'
16318 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16319 sed -n "$gl_absolute_header_sed"`'"'
16320
16321
16322fi
16323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
16324$as_echo "$gl_cv_next_stdlib_h" >&6; }
16325 fi
16326 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
16327
16328 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16329 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16330 gl_next_as_first_directive='<'stdlib.h'>'
16331 else
16332 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16333 gl_next_as_first_directive=$gl_cv_next_stdlib_h
16334 fi
16335 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
16336
16337
16338
16339
16340
16341
16342 for gl_func in _Exit atoll canonicalize_file_name getloadavg getsubopt grantpt initstate initstate_r mkdtemp mkostemp mkostemps mkstemp mkstemps posix_openpt ptsname ptsname_r random random_r realpath rpmatch setenv setstate setstate_r srandom srandom_r strtod strtoll strtoull unlockpt unsetenv; do
16343 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
16344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
16345$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
16346if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
16347 $as_echo_n "(cached) " >&6
16348else
16349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16350/* end confdefs.h. */
16351#include <stdlib.h>
16352#if HAVE_SYS_LOADAVG_H
16353# include <sys/loadavg.h>
16354#endif
16355#if HAVE_RANDOM_H
16356# include <random.h>
16357#endif
16358
16359int
16360main ()
16361{
16362#undef $gl_func
16363 (void) $gl_func;
16364 ;
16365 return 0;
16366}
16367_ACEOF
16368if ac_fn_c_try_compile "$LINENO"; then :
16369 eval "$as_gl_Symbol=yes"
16370else
16371 eval "$as_gl_Symbol=no"
16372fi
16373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16374fi
16375eval ac_res=\$$as_gl_Symbol
16376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16377$as_echo "$ac_res" >&6; }
16378 eval as_val=\$$as_gl_Symbol
16379 if test "x$as_val" = x""yes; then :
16380 cat >>confdefs.h <<_ACEOF
16381#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
16382_ACEOF
16383
16384 eval ac_cv_have_decl_$gl_func=yes
16385fi
16386 done
16387
16388
16389
16390
16391
16392
16393
63ce7108
TT
16394 if test $REPLACE_STRSTR = 0; then
16395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works in linear time" >&5
16396$as_echo_n "checking whether strstr works in linear time... " >&6; }
16397if test "${gl_cv_func_strstr_linear+set}" = set; then :
16398 $as_echo_n "(cached) " >&6
16399else
16400 if test "$cross_compiling" = yes; then :
16401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16402/* end confdefs.h. */
16403
16404#include <features.h>
16405#ifdef __GNU_LIBRARY__
16406 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
16407 && !(defined __i386__ || defined __x86_64__) \
16408 && !defined __UCLIBC__
16409 Lucky user
16410 #endif
16411#endif
16412#ifdef __CYGWIN__
16413 #include <cygwin/version.h>
16414 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
16415 Lucky user
16416 #endif
16417#endif
16418
16419_ACEOF
16420if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16421 $EGREP "Lucky user" >/dev/null 2>&1; then :
16422 gl_cv_func_strstr_linear="guessing yes"
c971b7fa 16423else
63ce7108 16424 gl_cv_func_strstr_linear="guessing no"
c971b7fa
PA
16425fi
16426rm -f conftest*
16427
16428
16429else
16430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16431/* end confdefs.h. */
16432
16433#include <signal.h> /* for signal */
63ce7108 16434#include <string.h> /* for strstr */
c971b7fa
PA
16435#include <stdlib.h> /* for malloc */
16436#include <unistd.h> /* for alarm */
16437static void quit (int sig) { exit (sig + 128); }
16438
16439int
16440main ()
16441{
16442
16443 int result = 0;
16444 size_t m = 1000000;
63ce7108
TT
16445 char *haystack = (char *) malloc (2 * m + 2);
16446 char *needle = (char *) malloc (m + 2);
c971b7fa 16447 /* Failure to compile this test due to missing alarm is okay,
63ce7108 16448 since all such platforms (mingw) also have quadratic strstr. */
c971b7fa
PA
16449 signal (SIGALRM, quit);
16450 alarm (5);
16451 /* Check for quadratic performance. */
16452 if (haystack && needle)
16453 {
16454 memset (haystack, 'A', 2 * m);
16455 haystack[2 * m] = 'B';
63ce7108 16456 haystack[2 * m + 1] = 0;
c971b7fa
PA
16457 memset (needle, 'A', m);
16458 needle[m] = 'B';
63ce7108
TT
16459 needle[m + 1] = 0;
16460 if (!strstr (haystack, needle))
c971b7fa
PA
16461 result |= 1;
16462 }
16463 return result;
16464
16465 ;
16466 return 0;
16467}
16468_ACEOF
16469if ac_fn_c_try_run "$LINENO"; then :
63ce7108 16470 gl_cv_func_strstr_linear=yes
c971b7fa 16471else
63ce7108 16472 gl_cv_func_strstr_linear=no
c971b7fa
PA
16473fi
16474rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16475 conftest.$ac_objext conftest.beam conftest.$ac_ext
16476fi
16477
16478
16479fi
63ce7108
TT
16480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_linear" >&5
16481$as_echo "$gl_cv_func_strstr_linear" >&6; }
16482 case "$gl_cv_func_strstr_linear" in
40a73391
JK
16483 *yes) ;;
16484 *)
63ce7108 16485 REPLACE_STRSTR=1
40a73391
JK
16486 ;;
16487 esac
c971b7fa
PA
16488 fi
16489
63ce7108 16490 if test $REPLACE_STRSTR = 1; then
c971b7fa
PA
16491
16492
16493
16494
16495
16496
16497
16498
63ce7108 16499 gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
c971b7fa 16500
a512b375 16501 fi
c971b7fa
PA
16502
16503
16504
63ce7108
TT
16505 if test "$gl_cv_func_memchr_works" != yes; then
16506 REPLACE_STRSTR=1
c971b7fa 16507 else
63ce7108
TT
16508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
16509$as_echo_n "checking whether strstr works... " >&6; }
16510if test "${gl_cv_func_strstr_works_always+set}" = set; then :
c971b7fa
PA
16511 $as_echo_n "(cached) " >&6
16512else
16513 if test "$cross_compiling" = yes; then :
63ce7108 16514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa
PA
16515/* end confdefs.h. */
16516
16517#ifdef __GNU_LIBRARY__
16518 #include <features.h>
63ce7108 16519 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
c971b7fa
PA
16520 || defined __UCLIBC__
16521 Lucky user
16522 #endif
16523#elif defined __CYGWIN__
16524 #include <cygwin/version.h>
16525 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
16526 Lucky user
16527 #endif
16528#else
16529 Lucky user
16530#endif
16531
16532_ACEOF
16533if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16534 $EGREP "Lucky user" >/dev/null 2>&1; then :
63ce7108 16535 gl_cv_func_strstr_works_always="guessing yes"
c971b7fa 16536else
63ce7108 16537 gl_cv_func_strstr_works_always="guessing no"
c971b7fa
PA
16538fi
16539rm -f conftest*
16540
16541
16542else
16543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16544/* end confdefs.h. */
16545
63ce7108 16546#include <string.h> /* for strstr */
c971b7fa
PA
16547#define P "_EF_BF_BD"
16548#define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
16549#define NEEDLE P P P P P
16550
16551int
16552main ()
16553{
63ce7108 16554return !!strstr (HAYSTACK, NEEDLE);
c971b7fa
PA
16555
16556 ;
16557 return 0;
16558}
16559_ACEOF
16560if ac_fn_c_try_run "$LINENO"; then :
63ce7108 16561 gl_cv_func_strstr_works_always=yes
c971b7fa 16562else
63ce7108 16563 gl_cv_func_strstr_works_always=no
c971b7fa
PA
16564fi
16565rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16566 conftest.$ac_objext conftest.beam conftest.$ac_ext
16567fi
16568
16569
16570fi
63ce7108
TT
16571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
16572$as_echo "$gl_cv_func_strstr_works_always" >&6; }
16573 case "$gl_cv_func_strstr_works_always" in
40a73391
JK
16574 *yes) ;;
16575 *)
63ce7108 16576 REPLACE_STRSTR=1
40a73391
JK
16577 ;;
16578 esac
c971b7fa 16579 fi
8839a007 16580
63ce7108 16581 if test $REPLACE_STRSTR = 1; then
8839a007 16582
8690e634
JK
16583
16584
8690e634
JK
16585
16586
16587
16588
16589
63ce7108 16590 gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
8690e634 16591
8690e634
JK
16592 fi
16593
8690e634
JK
16594
16595
8690e634 16596
8690e634 16597
63ce7108 16598 GNULIB_STRSTR=1
8690e634
JK
16599
16600
16601
8690e634
JK
16602
16603
63ce7108 16604$as_echo "#define GNULIB_TEST_STRSTR 1" >>confdefs.h
8690e634
JK
16605
16606
16607
16608
16609
16610
16611
421693b0
PA
16612 for ac_func in strtok_r
16613do :
16614 ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
16615if test "x$ac_cv_func_strtok_r" = x""yes; then :
16616 cat >>confdefs.h <<_ACEOF
16617#define HAVE_STRTOK_R 1
16618_ACEOF
16619
16620fi
16621done
16622
16623 if test $ac_cv_func_strtok_r = yes; then
16624 HAVE_STRTOK_R=1
16625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtok_r works" >&5
16626$as_echo_n "checking whether strtok_r works... " >&6; }
16627if test "${gl_cv_func_strtok_r_works+set}" = set; then :
16628 $as_echo_n "(cached) " >&6
16629else
16630 if test "$cross_compiling" = yes; then :
16631
16632 case "$host_os" in
16633 # Guess no on glibc systems.
16634 *-gnu*) gl_cv_func_strtok_r_works="guessing no";;
16635 *) gl_cv_func_strtok_r_works="guessing yes";;
16636 esac
16637
16638else
16639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16640/* end confdefs.h. */
16641
16642 #ifndef __OPTIMIZE__
16643 # define __OPTIMIZE__ 1
16644 #endif
16645 #undef __OPTIMIZE_SIZE__
16646 #undef __NO_INLINE__
16647 #include <stdlib.h>
16648 #include <string.h>
16649
16650int
16651main ()
16652{
16653static const char dummy[] = "\177\01a";
16654 char delimiters[] = "xxxxxxxx";
16655 char *save_ptr = (char *) dummy;
16656 strtok_r (delimiters, "x", &save_ptr);
16657 strtok_r (NULL, "x", &save_ptr);
16658 return 0;
16659
16660 ;
16661 return 0;
16662}
16663
16664_ACEOF
16665if ac_fn_c_try_run "$LINENO"; then :
16666 gl_cv_func_strtok_r_works=yes
16667else
16668 gl_cv_func_strtok_r_works=no
16669fi
16670rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16671 conftest.$ac_objext conftest.beam conftest.$ac_ext
16672fi
16673
16674
16675fi
16676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtok_r_works" >&5
16677$as_echo "$gl_cv_func_strtok_r_works" >&6; }
16678 case "$gl_cv_func_strtok_r_works" in
16679 *no)
16680 UNDEFINE_STRTOK_R=1
16681 ;;
16682 esac
16683 else
16684 HAVE_STRTOK_R=0
16685 fi
16686
16687 if test $ac_cv_have_decl_strtok_r = no; then
16688 HAVE_DECL_STRTOK_R=0
16689 fi
16690
16691 if test $HAVE_STRTOK_R = 0 || test $REPLACE_STRTOK_R = 1; then
16692
16693
16694
16695
16696
16697
16698
16699
16700 gl_LIBOBJS="$gl_LIBOBJS strtok_r.$ac_objext"
16701
16702
16703 :
16704
16705 fi
16706
16707
16708
16709
16710
16711 GNULIB_STRTOK_R=1
16712
16713
16714
16715
16716
16717$as_echo "#define GNULIB_TEST_STRTOK_R 1" >>confdefs.h
16718
16719
16720
16721
16722
16723
16724
8690e634
JK
16725
16726
16727
16728
16729
8690e634 16730
09607c9e
TT
16731
16732
16733
16734
16735 if test $gl_cv_have_include_next = yes; then
16736 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
16737 else
16738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
16739$as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
16740if test "${gl_cv_next_sys_stat_h+set}" = set; then :
16741 $as_echo_n "(cached) " >&6
16742else
16743
16744 if test $ac_cv_header_sys_stat_h = yes; then
16745
16746
16747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16748/* end confdefs.h. */
16749#include <sys/stat.h>
16750
16751_ACEOF
16752 case "$host_os" in
16753 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16754 *) gl_absname_cpp="$ac_cpp" ;;
16755 esac
16756
16757 case "$host_os" in
16758 mingw*)
16759 gl_dirsep_regex='[/\\]'
16760 ;;
16761 *)
16762 gl_dirsep_regex='\/'
16763 ;;
16764 esac
16765 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16766
16767 gl_header_literal_regex=`echo 'sys/stat.h' \
16768 | sed -e "$gl_make_literal_regex_sed"`
16769 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16770 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16771 s|^/[^/]|//&|
16772 p
16773 q
16774 }'
16775 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16776 sed -n "$gl_absolute_header_sed"`'"'
16777 else
16778 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
16779 fi
16780
16781
16782fi
16783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
16784$as_echo "$gl_cv_next_sys_stat_h" >&6; }
16785 fi
16786 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
16787
16788 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16789 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16790 gl_next_as_first_directive='<'sys/stat.h'>'
16791 else
16792 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16793 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
16794 fi
16795 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
16796
16797
16798
16799
16800
16801
16802
16803
2196f55f 16804
09607c9e
TT
16805
16806
16807 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
16808
16809$as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
16810
16811 fi
16812
16813 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
16814 #include <sys/stat.h>
16815"
16816if test "x$ac_cv_type_nlink_t" = x""yes; then :
16817
16818else
16819
16820$as_echo "#define nlink_t int" >>confdefs.h
16821
16822fi
16823
16824
16825
16826 for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do
16827 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
16828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
16829$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
16830if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
16831 $as_echo_n "(cached) " >&6
16832else
16833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16834/* end confdefs.h. */
16835#include <sys/stat.h>
16836
16837int
16838main ()
16839{
16840#undef $gl_func
16841 (void) $gl_func;
16842 ;
16843 return 0;
16844}
16845_ACEOF
16846if ac_fn_c_try_compile "$LINENO"; then :
16847 eval "$as_gl_Symbol=yes"
16848else
16849 eval "$as_gl_Symbol=no"
16850fi
16851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16852fi
16853eval ac_res=\$$as_gl_Symbol
16854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16855$as_echo "$ac_res" >&6; }
16856 eval as_val=\$$as_gl_Symbol
16857 if test "x$as_val" = x""yes; then :
16858 cat >>confdefs.h <<_ACEOF
16859#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
16860_ACEOF
16861
16862 eval ac_cv_have_decl_$gl_func=yes
16863fi
16864 done
16865
16866
16867
16868
16869
16870
16871
16872
16873
16874
16875
16876
16877
16878
8839a007
PA
16879 if test $gl_cv_have_include_next = yes; then
16880 gl_cv_next_sys_types_h='<'sys/types.h'>'
16881 else
16882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
16883$as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
16884if test "${gl_cv_next_sys_types_h+set}" = set; then :
16885 $as_echo_n "(cached) " >&6
16886else
16887
16888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16889/* end confdefs.h. */
16890#include <sys/types.h>
16891
16892_ACEOF
16893 case "$host_os" in
16894 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16895 *) gl_absname_cpp="$ac_cpp" ;;
16896 esac
16897
16898 case "$host_os" in
16899 mingw*)
16900 gl_dirsep_regex='[/\\]'
16901 ;;
16902 *)
16903 gl_dirsep_regex='\/'
16904 ;;
16905 esac
16906 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16907
16908 gl_header_literal_regex=`echo 'sys/types.h' \
16909 | sed -e "$gl_make_literal_regex_sed"`
16910 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16911 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16912 s|^/[^/]|//&|
16913 p
16914 q
16915 }'
16916 gl_cv_next_sys_types_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16917 sed -n "$gl_absolute_header_sed"`'"'
16918
16919
16920fi
16921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
16922$as_echo "$gl_cv_next_sys_types_h" >&6; }
16923 fi
16924 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
16925
16926 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16927 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16928 gl_next_as_first_directive='<'sys/types.h'>'
16929 else
16930 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16931 gl_next_as_first_directive=$gl_cv_next_sys_types_h
16932 fi
16933 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
09607c9e
TT
16955
16956
8839a007
PA
16957
16958
16959
16960
16961 if test $gl_cv_have_include_next = yes; then
16962 gl_cv_next_unistd_h='<'unistd.h'>'
16963 else
16964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
16965$as_echo_n "checking absolute name of <unistd.h>... " >&6; }
16966if test "${gl_cv_next_unistd_h+set}" = set; then :
16967 $as_echo_n "(cached) " >&6
16968else
16969
16970 if test $ac_cv_header_unistd_h = yes; then
16971
16972
16973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16974/* end confdefs.h. */
16975#include <unistd.h>
16976
16977_ACEOF
16978 case "$host_os" in
16979 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16980 *) gl_absname_cpp="$ac_cpp" ;;
16981 esac
16982
16983 case "$host_os" in
16984 mingw*)
16985 gl_dirsep_regex='[/\\]'
16986 ;;
16987 *)
16988 gl_dirsep_regex='\/'
16989 ;;
16990 esac
16991 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16992
16993 gl_header_literal_regex=`echo 'unistd.h' \
16994 | sed -e "$gl_make_literal_regex_sed"`
16995 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16996 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16997 s|^/[^/]|//&|
16998 p
16999 q
17000 }'
17001 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17002 sed -n "$gl_absolute_header_sed"`'"'
17003 else
17004 gl_cv_next_unistd_h='<'unistd.h'>'
17005 fi
17006
17007
17008fi
17009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
17010$as_echo "$gl_cv_next_unistd_h" >&6; }
17011 fi
17012 NEXT_UNISTD_H=$gl_cv_next_unistd_h
17013
17014 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17015 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17016 gl_next_as_first_directive='<'unistd.h'>'
17017 else
17018 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17019 gl_next_as_first_directive=$gl_cv_next_unistd_h
17020 fi
17021 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
17022
17023
17024
17025
17026 if test $ac_cv_header_unistd_h = yes; then
17027 HAVE_UNISTD_H=1
17028 else
17029 HAVE_UNISTD_H=0
17030 fi
17031
17032
17033
17034
17035
17036
17037
17038 for gl_func in chdir chown dup dup2 dup3 environ euidaccess faccessat fchdir fchownat fdatasync fsync ftruncate getcwd getdomainname getdtablesize getgroups gethostname getlogin getlogin_r getpagesize getusershell setusershell endusershell group_member isatty lchown link linkat lseek pipe pipe2 pread pwrite readlink readlinkat rmdir sethostname sleep symlink symlinkat ttyname_r unlink unlinkat usleep; do
17039 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
17040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
17041$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
17042if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
17043 $as_echo_n "(cached) " >&6
17044else
17045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17046/* end confdefs.h. */
17047
17048#if HAVE_UNISTD_H
17049# include <unistd.h>
17050#endif
17051/* Some systems declare various items in the wrong headers. */
17052#if !(defined __GLIBC__ && !defined __UCLIBC__)
17053# include <fcntl.h>
17054# include <stdio.h>
17055# include <stdlib.h>
17056# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17057# include <io.h>
17058# endif
17059#endif
17060
17061int
17062main ()
17063{
17064#undef $gl_func
17065 (void) $gl_func;
17066 ;
17067 return 0;
17068}
17069_ACEOF
17070if ac_fn_c_try_compile "$LINENO"; then :
17071 eval "$as_gl_Symbol=yes"
17072else
17073 eval "$as_gl_Symbol=no"
17074fi
17075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17076fi
17077eval ac_res=\$$as_gl_Symbol
17078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17079$as_echo "$ac_res" >&6; }
17080 eval as_val=\$$as_gl_Symbol
17081 if test "x$as_val" = x""yes; then :
17082 cat >>confdefs.h <<_ACEOF
17083#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
17084_ACEOF
17085
17086 eval ac_cv_have_decl_$gl_func=yes
17087fi
17088 done
17089
17090
17091
17092
17093
17094
17095
17096
17097
17098
17099
17100
8690e634
JK
17101
17102
17103 if test $gl_cv_have_include_next = yes; then
17104 gl_cv_next_wchar_h='<'wchar.h'>'
17105 else
17106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
17107$as_echo_n "checking absolute name of <wchar.h>... " >&6; }
17108if test "${gl_cv_next_wchar_h+set}" = set; then :
17109 $as_echo_n "(cached) " >&6
17110else
17111
17112 if test $ac_cv_header_wchar_h = yes; then
17113
17114
17115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17116/* end confdefs.h. */
17117#include <wchar.h>
17118
17119_ACEOF
17120 case "$host_os" in
17121 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17122 *) gl_absname_cpp="$ac_cpp" ;;
17123 esac
17124
17125 case "$host_os" in
17126 mingw*)
17127 gl_dirsep_regex='[/\\]'
17128 ;;
17129 *)
17130 gl_dirsep_regex='\/'
17131 ;;
17132 esac
17133 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17134
17135 gl_header_literal_regex=`echo 'wchar.h' \
17136 | sed -e "$gl_make_literal_regex_sed"`
17137 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17138 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17139 s|^/[^/]|//&|
17140 p
17141 q
17142 }'
17143 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17144 sed -n "$gl_absolute_header_sed"`'"'
17145 else
17146 gl_cv_next_wchar_h='<'wchar.h'>'
17147 fi
17148
17149
17150fi
17151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
17152$as_echo "$gl_cv_next_wchar_h" >&6; }
17153 fi
17154 NEXT_WCHAR_H=$gl_cv_next_wchar_h
17155
17156 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17157 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17158 gl_next_as_first_directive='<'wchar.h'>'
17159 else
17160 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17161 gl_next_as_first_directive=$gl_cv_next_wchar_h
17162 fi
17163 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
17164
17165
17166
17167
17168 if test $ac_cv_header_wchar_h = yes; then
17169 HAVE_WCHAR_H=1
17170 else
17171 HAVE_WCHAR_H=0
17172 fi
17173
c971b7fa
PA
17174
17175
17176
17177
8690e634
JK
17178 if test $gt_cv_c_wint_t = yes; then
17179 HAVE_WINT_T=1
17180 else
17181 HAVE_WINT_T=0
17182 fi
c971b7fa
PA
17183
17184
17185
8690e634
JK
17186 for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb wcsrtombs wcsnrtombs wcwidth wmemchr wmemcmp wmemcpy wmemmove wmemset wcslen wcsnlen wcscpy wcpcpy wcsncpy wcpncpy wcscat wcsncat wcscmp wcsncmp wcscasecmp wcsncasecmp wcscoll wcsxfrm wcsdup wcschr wcsrchr wcscspn wcsspn wcspbrk wcsstr wcstok wcswidth ; do
17187 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
17188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
17189$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
17190if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
c971b7fa
PA
17191 $as_echo_n "(cached) " >&6
17192else
17193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17194/* end confdefs.h. */
8690e634
JK
17195
17196/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
17197 <wchar.h>.
17198 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17199 included before <wchar.h>. */
17200#if !(defined __GLIBC__ && !defined __UCLIBC__)
17201# include <stddef.h>
17202# include <stdio.h>
17203# include <time.h>
17204#endif
17205#include <wchar.h>
c971b7fa
PA
17206
17207int
17208main ()
17209{
8690e634
JK
17210#undef $gl_func
17211 (void) $gl_func;
c971b7fa
PA
17212 ;
17213 return 0;
17214}
17215_ACEOF
17216if ac_fn_c_try_compile "$LINENO"; then :
8690e634 17217 eval "$as_gl_Symbol=yes"
c971b7fa 17218else
8690e634 17219 eval "$as_gl_Symbol=no"
c971b7fa
PA
17220fi
17221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17222fi
8690e634
JK
17223eval ac_res=\$$as_gl_Symbol
17224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17225$as_echo "$ac_res" >&6; }
17226 eval as_val=\$$as_gl_Symbol
17227 if test "x$as_val" = x""yes; then :
17228 cat >>confdefs.h <<_ACEOF
17229#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
17230_ACEOF
c971b7fa 17231
8690e634 17232 eval ac_cv_have_decl_$gl_func=yes
c971b7fa 17233fi
8690e634
JK
17234 done
17235
17236
17237
17238
17239
17240
17241
8690e634
JK
17242 if test $ac_cv_func_iswcntrl = yes; then
17243 HAVE_ISWCNTRL=1
17244 else
17245 HAVE_ISWCNTRL=0
17246 fi
17247
17248
17249
8690e634
JK
17250 if test $gt_cv_c_wint_t = yes; then
17251 HAVE_WINT_T=1
17252 else
17253 HAVE_WINT_T=0
17254 fi
17255
17256
17257
17258
17259
17260
c971b7fa 17261
8690e634 17262
c971b7fa
PA
17263
17264
17265
17266 if test $gl_cv_have_include_next = yes; then
8690e634 17267 gl_cv_next_wctype_h='<'wctype.h'>'
c971b7fa 17268 else
8690e634
JK
17269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
17270$as_echo_n "checking absolute name of <wctype.h>... " >&6; }
17271if test "${gl_cv_next_wctype_h+set}" = set; then :
c971b7fa
PA
17272 $as_echo_n "(cached) " >&6
17273else
17274
8690e634
JK
17275 if test $ac_cv_header_wctype_h = yes; then
17276
17277
c971b7fa
PA
17278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17279/* end confdefs.h. */
8690e634 17280#include <wctype.h>
c971b7fa
PA
17281
17282_ACEOF
17283 case "$host_os" in
17284 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17285 *) gl_absname_cpp="$ac_cpp" ;;
17286 esac
17287
17288 case "$host_os" in
17289 mingw*)
17290 gl_dirsep_regex='[/\\]'
17291 ;;
17292 *)
17293 gl_dirsep_regex='\/'
17294 ;;
17295 esac
17296 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17297
8690e634 17298 gl_header_literal_regex=`echo 'wctype.h' \
c971b7fa
PA
17299 | sed -e "$gl_make_literal_regex_sed"`
17300 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17301 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17302 s|^/[^/]|//&|
17303 p
17304 q
17305 }'
8690e634 17306 gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
c971b7fa 17307 sed -n "$gl_absolute_header_sed"`'"'
8690e634
JK
17308 else
17309 gl_cv_next_wctype_h='<'wctype.h'>'
17310 fi
c971b7fa
PA
17311
17312
17313fi
8690e634
JK
17314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
17315$as_echo "$gl_cv_next_wctype_h" >&6; }
c971b7fa 17316 fi
8690e634 17317 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
c971b7fa
PA
17318
17319 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17320 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8690e634 17321 gl_next_as_first_directive='<'wctype.h'>'
c971b7fa
PA
17322 else
17323 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8690e634 17324 gl_next_as_first_directive=$gl_cv_next_wctype_h
c971b7fa 17325 fi
8690e634
JK
17326 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
17327
17328
17329
17330
17331 if test $ac_cv_header_wctype_h = yes; then
17332 if test $ac_cv_func_iswcntrl = yes; then
17333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
17334$as_echo_n "checking whether iswcntrl works... " >&6; }
17335if test "${gl_cv_func_iswcntrl_works+set}" = set; then :
17336 $as_echo_n "(cached) " >&6
17337else
17338
17339 if test "$cross_compiling" = yes; then :
17340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17341/* end confdefs.h. */
17342#include <stdlib.h>
17343 #if __GNU_LIBRARY__ == 1
17344 Linux libc5 i18n is broken.
17345 #endif
17346int
17347main ()
17348{
17349
17350 ;
17351 return 0;
17352}
17353_ACEOF
17354if ac_fn_c_try_compile "$LINENO"; then :
17355 gl_cv_func_iswcntrl_works="guessing yes"
17356else
17357 gl_cv_func_iswcntrl_works="guessing no"
17358fi
17359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17360
17361else
17362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17363/* end confdefs.h. */
17364
17365 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
17366 included before <wchar.h>.
17367 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
17368 must be included before <wchar.h>. */
17369 #include <stddef.h>
17370 #include <stdio.h>
17371 #include <time.h>
17372 #include <wchar.h>
17373 #include <wctype.h>
17374 int main () { return iswprint ('x') == 0; }
17375
17376_ACEOF
17377if ac_fn_c_try_run "$LINENO"; then :
17378 gl_cv_func_iswcntrl_works=yes
17379else
17380 gl_cv_func_iswcntrl_works=no
17381fi
17382rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17383 conftest.$ac_objext conftest.beam conftest.$ac_ext
17384fi
17385
17386
17387fi
17388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
17389$as_echo "$gl_cv_func_iswcntrl_works" >&6; }
17390 fi
17391 HAVE_WCTYPE_H=1
17392 else
17393 HAVE_WCTYPE_H=0
17394 fi
17395
17396
17397 case "$gl_cv_func_iswcntrl_works" in
17398 *yes) REPLACE_ISWCNTRL=0 ;;
17399 *) REPLACE_ISWCNTRL=1 ;;
17400 esac
17401
17402
17403 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
17404 :
17405 fi
17406
17407 if test $REPLACE_ISWCNTRL = 1; then
17408 REPLACE_TOWLOWER=1
17409 else
17410 for ac_func in towlower
17411do :
17412 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
17413if test "x$ac_cv_func_towlower" = x""yes; then :
17414 cat >>confdefs.h <<_ACEOF
17415#define HAVE_TOWLOWER 1
17416_ACEOF
17417
17418fi
17419done
17420
17421 if test $ac_cv_func_towlower = yes; then
17422 REPLACE_TOWLOWER=0
17423 else
17424 ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
17425 included before <wchar.h>.
17426 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
17427 must be included before <wchar.h>. */
17428 #include <stddef.h>
17429 #include <stdio.h>
17430 #include <time.h>
17431 #include <wchar.h>
17432 #if HAVE_WCTYPE_H
17433 # include <wctype.h>
17434 #endif
17435
17436"
17437if test "x$ac_cv_have_decl_towlower" = x""yes; then :
17438 ac_have_decl=1
17439else
17440 ac_have_decl=0
17441fi
17442
17443cat >>confdefs.h <<_ACEOF
17444#define HAVE_DECL_TOWLOWER $ac_have_decl
17445_ACEOF
17446
17447 if test $ac_cv_have_decl_towlower = yes; then
17448 REPLACE_TOWLOWER=1
17449 else
17450 REPLACE_TOWLOWER=0
17451 fi
17452 fi
17453 fi
17454
17455
17456 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
17457 :
17458 fi
17459
17460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
17461$as_echo_n "checking for wctype_t... " >&6; }
17462if test "${gl_cv_type_wctype_t+set}" = set; then :
17463 $as_echo_n "(cached) " >&6
17464else
17465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17466/* end confdefs.h. */
17467/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
17468 included before <wchar.h>.
17469 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
17470 must be included before <wchar.h>. */
17471 #include <stddef.h>
17472 #include <stdio.h>
17473 #include <time.h>
17474 #include <wchar.h>
17475 #if HAVE_WCTYPE_H
17476 # include <wctype.h>
17477 #endif
17478 wctype_t a;
17479
17480int
17481main ()
17482{
17483
17484 ;
17485 return 0;
17486}
17487_ACEOF
17488if ac_fn_c_try_compile "$LINENO"; then :
17489 gl_cv_type_wctype_t=yes
17490else
17491 gl_cv_type_wctype_t=no
17492fi
17493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c971b7fa 17494
8690e634
JK
17495fi
17496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
17497$as_echo "$gl_cv_type_wctype_t" >&6; }
17498 if test $gl_cv_type_wctype_t = no; then
17499 HAVE_WCTYPE_T=0
17500 fi
17501
17502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
17503$as_echo_n "checking for wctrans_t... " >&6; }
17504if test "${gl_cv_type_wctrans_t+set}" = set; then :
17505 $as_echo_n "(cached) " >&6
17506else
17507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17508/* end confdefs.h. */
17509/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
17510 included before <wchar.h>.
17511 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
17512 must be included before <wchar.h>. */
17513 #include <stddef.h>
17514 #include <stdio.h>
17515 #include <time.h>
17516 #include <wchar.h>
17517 #include <wctype.h>
17518 wctrans_t a;
c971b7fa 17519
8690e634
JK
17520int
17521main ()
17522{
c971b7fa 17523
8690e634
JK
17524 ;
17525 return 0;
17526}
17527_ACEOF
17528if ac_fn_c_try_compile "$LINENO"; then :
17529 gl_cv_type_wctrans_t=yes
17530else
17531 gl_cv_type_wctrans_t=no
17532fi
17533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c971b7fa 17534
8690e634
JK
17535fi
17536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
17537$as_echo "$gl_cv_type_wctrans_t" >&6; }
17538 if test $gl_cv_type_wctrans_t = no; then
17539 HAVE_WCTRANS_T=0
c971b7fa
PA
17540 fi
17541
17542
8690e634
JK
17543 for gl_func in wctype iswctype wctrans towctrans ; do
17544 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
17545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
17546$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
17547if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
17548 $as_echo_n "(cached) " >&6
17549else
17550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17551/* end confdefs.h. */
17552
17553/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
17554 <wchar.h>.
17555 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17556 included before <wchar.h>. */
17557#if !(defined __GLIBC__ && !defined __UCLIBC__)
17558# include <stddef.h>
17559# include <stdio.h>
17560# include <time.h>
17561# include <wchar.h>
17562#endif
17563#include <wctype.h>
17564
17565int
17566main ()
17567{
17568#undef $gl_func
17569 (void) $gl_func;
17570 ;
17571 return 0;
17572}
17573_ACEOF
17574if ac_fn_c_try_compile "$LINENO"; then :
17575 eval "$as_gl_Symbol=yes"
17576else
17577 eval "$as_gl_Symbol=no"
17578fi
17579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17580fi
17581eval ac_res=\$$as_gl_Symbol
17582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17583$as_echo "$ac_res" >&6; }
17584 eval as_val=\$$as_gl_Symbol
17585 if test "x$as_val" = x""yes; then :
17586 cat >>confdefs.h <<_ACEOF
17587#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
17588_ACEOF
c971b7fa 17589
8690e634
JK
17590 eval ac_cv_have_decl_$gl_func=yes
17591fi
17592 done
c971b7fa
PA
17593
17594
17595 # End of code from modules
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605 gltests_libdeps=
17606 gltests_ltlibdeps=
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616 gl_source_base='tests'
17617 gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
17618
17619 gl_module_indicator_condition=$gltests_WITNESS
17620
17621
17622
17623
17624
17625
17626
17627
17628
17629 LIBGNU_LIBDEPS="$gl_libdeps"
17630
17631 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
17632
17633
17634
17635# We don't use automake, but gnulib does. This line lets us generate
17636# its Makefile.in.
17637am__api_version='1.11'
17638
17639# Find a good install program. We prefer a C program (faster),
17640# so one script is as good as another. But avoid the broken or
17641# incompatible versions:
17642# SysV /etc/install, /usr/sbin/install
17643# SunOS /usr/etc/install
17644# IRIX /sbin/install
17645# AIX /bin/install
17646# AmigaOS /C/install, which installs bootblocks on floppy discs
17647# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
17648# AFS /usr/afsws/bin/install, which mishandles nonexistent args
17649# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
17650# OS/2's system install, which has a completely different semantic
17651# ./install, which can be erroneously created by make from ./install.sh.
17652# Reject install programs that cannot install multiple files.
17653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
17654$as_echo_n "checking for a BSD-compatible install... " >&6; }
17655if test -z "$INSTALL"; then
17656if test "${ac_cv_path_install+set}" = set; then :
17657 $as_echo_n "(cached) " >&6
17658else
17659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17660for as_dir in $PATH
17661do
17662 IFS=$as_save_IFS
17663 test -z "$as_dir" && as_dir=.
17664 # Account for people who put trailing slashes in PATH elements.
17665case $as_dir/ in #((
17666 ./ | .// | /[cC]/* | \
17667 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
17668 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
17669 /usr/ucb/* ) ;;
17670 *)
17671 # OSF1 and SCO ODT 3.0 have their own names for install.
17672 # Don't use installbsd from OSF since it installs stuff as root
17673 # by default.
17674 for ac_prog in ginstall scoinst install; do
17675 for ac_exec_ext in '' $ac_executable_extensions; do
17676 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
17677 if test $ac_prog = install &&
17678 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
17679 # AIX install. It has an incompatible calling convention.
17680 :
17681 elif test $ac_prog = install &&
17682 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
17683 # program-specific install script used by HP pwplus--don't use.
17684 :
17685 else
17686 rm -rf conftest.one conftest.two conftest.dir
17687 echo one > conftest.one
17688 echo two > conftest.two
17689 mkdir conftest.dir
17690 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
17691 test -s conftest.one && test -s conftest.two &&
17692 test -s conftest.dir/conftest.one &&
17693 test -s conftest.dir/conftest.two
17694 then
17695 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
17696 break 3
17697 fi
17698 fi
17699 fi
17700 done
17701 done
17702 ;;
17703esac
17704
17705 done
17706IFS=$as_save_IFS
17707
17708rm -rf conftest.one conftest.two conftest.dir
17709
17710fi
17711 if test "${ac_cv_path_install+set}" = set; then
17712 INSTALL=$ac_cv_path_install
17713 else
17714 # As a last resort, use the slow shell script. Don't cache a
17715 # value for INSTALL within a source directory, because that will
17716 # break other packages using the cache if that directory is
17717 # removed, or if the value is a relative name.
17718 INSTALL=$ac_install_sh
17719 fi
17720fi
17721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
17722$as_echo "$INSTALL" >&6; }
17723
17724# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
17725# It thinks the first close brace ends the variable substitution.
17726test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
17727
17728test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
17729
17730test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
17731
17732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
17733$as_echo_n "checking whether build environment is sane... " >&6; }
17734# Just in case
17735sleep 1
17736echo timestamp > conftest.file
17737# Reject unsafe characters in $srcdir or the absolute working directory
17738# name. Accept space and tab only in the latter.
17739am_lf='
17740'
17741case `pwd` in
17742 *[\\\"\#\$\&\'\`$am_lf]*)
17743 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
17744esac
17745case $srcdir in
17746 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
17747 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
17748esac
17749
17750# Do `set' in a subshell so we don't clobber the current shell's
17751# arguments. Must try -L first in case configure is actually a
17752# symlink; some systems play weird games with the mod time of symlinks
17753# (eg FreeBSD returns the mod time of the symlink's containing
17754# directory).
17755if (
17756 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
17757 if test "$*" = "X"; then
17758 # -L didn't work.
17759 set X `ls -t "$srcdir/configure" conftest.file`
17760 fi
17761 rm -f conftest.file
17762 if test "$*" != "X $srcdir/configure conftest.file" \
17763 && test "$*" != "X conftest.file $srcdir/configure"; then
17764
17765 # If neither matched, then we have a broken ls. This can happen
17766 # if, for instance, CONFIG_SHELL is bash and it inherits a
17767 # broken ls alias from the environment. This has actually
17768 # happened. Such a system could not be considered "sane".
17769 as_fn_error "ls -t appears to fail. Make sure there is not a broken
17770alias in your environment" "$LINENO" 5
17771 fi
17772
17773 test "$2" = conftest.file
17774 )
17775then
17776 # Ok.
17777 :
17778else
17779 as_fn_error "newly created file is older than distributed files!
17780Check your system clock" "$LINENO" 5
17781fi
17782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17783$as_echo "yes" >&6; }
17784test "$program_prefix" != NONE &&
17785 program_transform_name="s&^&$program_prefix&;$program_transform_name"
17786# Use a double $ so make ignores it.
17787test "$program_suffix" != NONE &&
17788 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
17789# Double any \ or $.
17790# By default was `s,x,x', remove it if useless.
17791ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
17792program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
17793
17794# expand $ac_aux_dir to an absolute path
17795am_aux_dir=`cd $ac_aux_dir && pwd`
17796
17797if test x"${MISSING+set}" != xset; then
17798 case $am_aux_dir in
17799 *\ * | *\ *)
17800 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
17801 *)
17802 MISSING="\${SHELL} $am_aux_dir/missing" ;;
17803 esac
17804fi
17805# Use eval to expand $SHELL
17806if eval "$MISSING --run true"; then
17807 am_missing_run="$MISSING --run "
17808else
17809 am_missing_run=
17810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
17811$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
17812fi
17813
17814if test x"${install_sh}" != xset; then
17815 case $am_aux_dir in
17816 *\ * | *\ *)
17817 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
17818 *)
17819 install_sh="\${SHELL} $am_aux_dir/install-sh"
17820 esac
17821fi
17822
17823# Installed binaries are usually stripped using `strip' when the user
17824# run `make install-strip'. However `strip' might not be the right
17825# tool to use in cross-compilation environments, therefore Automake
17826# will honor the `STRIP' environment variable to overrule this program.
17827if test "$cross_compiling" != no; then
17828 if test -n "$ac_tool_prefix"; then
17829 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
17830set dummy ${ac_tool_prefix}strip; ac_word=$2
17831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17832$as_echo_n "checking for $ac_word... " >&6; }
17833if test "${ac_cv_prog_STRIP+set}" = set; then :
17834 $as_echo_n "(cached) " >&6
17835else
17836 if test -n "$STRIP"; then
17837 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
17838else
17839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17840for as_dir in $PATH
17841do
17842 IFS=$as_save_IFS
17843 test -z "$as_dir" && as_dir=.
17844 for ac_exec_ext in '' $ac_executable_extensions; do
17845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17846 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
17847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17848 break 2
17849 fi
17850done
17851 done
17852IFS=$as_save_IFS
17853
17854fi
17855fi
17856STRIP=$ac_cv_prog_STRIP
17857if test -n "$STRIP"; then
17858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
17859$as_echo "$STRIP" >&6; }
17860else
17861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17862$as_echo "no" >&6; }
17863fi
17864
17865
17866fi
17867if test -z "$ac_cv_prog_STRIP"; then
17868 ac_ct_STRIP=$STRIP
17869 # Extract the first word of "strip", so it can be a program name with args.
17870set dummy strip; ac_word=$2
17871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17872$as_echo_n "checking for $ac_word... " >&6; }
17873if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
17874 $as_echo_n "(cached) " >&6
17875else
17876 if test -n "$ac_ct_STRIP"; then
17877 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
17878else
17879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17880for as_dir in $PATH
17881do
17882 IFS=$as_save_IFS
17883 test -z "$as_dir" && as_dir=.
17884 for ac_exec_ext in '' $ac_executable_extensions; do
17885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17886 ac_cv_prog_ac_ct_STRIP="strip"
17887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17888 break 2
17889 fi
17890done
17891 done
17892IFS=$as_save_IFS
17893
17894fi
17895fi
17896ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
17897if test -n "$ac_ct_STRIP"; then
17898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
17899$as_echo "$ac_ct_STRIP" >&6; }
17900else
17901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17902$as_echo "no" >&6; }
17903fi
17904
17905 if test "x$ac_ct_STRIP" = x; then
17906 STRIP=":"
17907 else
17908 case $cross_compiling:$ac_tool_warned in
17909yes:)
17910{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17911$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17912ac_tool_warned=yes ;;
17913esac
17914 STRIP=$ac_ct_STRIP
17915 fi
17916else
17917 STRIP="$ac_cv_prog_STRIP"
17918fi
17919
17920fi
17921INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
17922
c971b7fa
PA
17923mkdir_p="$MKDIR_P"
17924case $mkdir_p in
17925 [\\/$]* | ?:[\\/]*) ;;
17926 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
17927esac
17928
17929for ac_prog in gawk mawk nawk awk
17930do
17931 # Extract the first word of "$ac_prog", so it can be a program name with args.
17932set dummy $ac_prog; ac_word=$2
17933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17934$as_echo_n "checking for $ac_word... " >&6; }
17935if test "${ac_cv_prog_AWK+set}" = set; then :
17936 $as_echo_n "(cached) " >&6
17937else
17938 if test -n "$AWK"; then
17939 ac_cv_prog_AWK="$AWK" # Let the user override the test.
17940else
17941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17942for as_dir in $PATH
17943do
17944 IFS=$as_save_IFS
17945 test -z "$as_dir" && as_dir=.
17946 for ac_exec_ext in '' $ac_executable_extensions; do
17947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17948 ac_cv_prog_AWK="$ac_prog"
17949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17950 break 2
17951 fi
17952done
17953 done
17954IFS=$as_save_IFS
17955
17956fi
17957fi
17958AWK=$ac_cv_prog_AWK
17959if test -n "$AWK"; then
17960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
17961$as_echo "$AWK" >&6; }
17962else
17963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17964$as_echo "no" >&6; }
17965fi
17966
17967
17968 test -n "$AWK" && break
17969done
17970
17971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
17972$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
17973set x ${MAKE-make}
17974ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
17975if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
17976 $as_echo_n "(cached) " >&6
17977else
17978 cat >conftest.make <<\_ACEOF
17979SHELL = /bin/sh
17980all:
17981 @echo '@@@%%%=$(MAKE)=@@@%%%'
17982_ACEOF
17983# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
17984case `${MAKE-make} -f conftest.make 2>/dev/null` in
17985 *@@@%%%=?*=@@@%%%*)
17986 eval ac_cv_prog_make_${ac_make}_set=yes;;
17987 *)
17988 eval ac_cv_prog_make_${ac_make}_set=no;;
17989esac
17990rm -f conftest.make
17991fi
17992if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
17993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17994$as_echo "yes" >&6; }
17995 SET_MAKE=
17996else
17997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17998$as_echo "no" >&6; }
17999 SET_MAKE="MAKE=${MAKE-make}"
18000fi
18001
18002rm -rf .tst 2>/dev/null
18003mkdir .tst 2>/dev/null
18004if test -d .tst; then
18005 am__leading_dot=.
18006else
18007 am__leading_dot=_
18008fi
18009rmdir .tst 2>/dev/null
18010
18011DEPDIR="${am__leading_dot}deps"
18012
18013ac_config_commands="$ac_config_commands depfiles"
18014
18015
18016am_make=${MAKE-make}
18017cat > confinc << 'END'
18018am__doit:
18019 @echo this is the am__doit target
18020.PHONY: am__doit
18021END
18022# If we don't find an include directive, just comment out the code.
18023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
18024$as_echo_n "checking for style of include used by $am_make... " >&6; }
18025am__include="#"
18026am__quote=
18027_am_result=none
18028# First try GNU make style include.
18029echo "include confinc" > confmf
18030# Ignore all kinds of additional output from `make'.
18031case `$am_make -s -f confmf 2> /dev/null` in #(
18032*the\ am__doit\ target*)
18033 am__include=include
18034 am__quote=
18035 _am_result=GNU
18036 ;;
18037esac
18038# Now try BSD make style include.
18039if test "$am__include" = "#"; then
18040 echo '.include "confinc"' > confmf
18041 case `$am_make -s -f confmf 2> /dev/null` in #(
18042 *the\ am__doit\ target*)
18043 am__include=.include
18044 am__quote="\""
18045 _am_result=BSD
18046 ;;
18047 esac
18048fi
18049
18050
18051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
18052$as_echo "$_am_result" >&6; }
18053rm -f confinc confmf
18054
18055# Check whether --enable-dependency-tracking was given.
18056if test "${enable_dependency_tracking+set}" = set; then :
18057 enableval=$enable_dependency_tracking;
18058fi
18059
18060if test "x$enable_dependency_tracking" != xno; then
18061 am_depcomp="$ac_aux_dir/depcomp"
18062 AMDEPBACKSLASH='\'
18063fi
18064 if test "x$enable_dependency_tracking" != xno; then
18065 AMDEP_TRUE=
18066 AMDEP_FALSE='#'
18067else
18068 AMDEP_TRUE='#'
18069 AMDEP_FALSE=
18070fi
18071
18072
18073if test "`cd $srcdir && pwd`" != "`pwd`"; then
18074 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
18075 # is not polluted with repeated "-I."
18076 am__isrc=' -I$(srcdir)'
18077 # test to see if srcdir already configured
18078 if test -f $srcdir/config.status; then
18079 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
18080 fi
18081fi
18082
18083# test whether we have cygpath
18084if test -z "$CYGPATH_W"; then
18085 if (cygpath --version) >/dev/null 2>/dev/null; then
18086 CYGPATH_W='cygpath -w'
18087 else
18088 CYGPATH_W=echo
18089 fi
18090fi
18091
18092
18093# Define the identity of the package.
18094 PACKAGE=libgnu
18095 VERSION=UNUSED-VERSION
18096
18097
18098# Some tools Automake needs.
18099
18100ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
18101
18102
18103AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
18104
18105
18106AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
18107
18108
18109AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
18110
18111
18112MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
18113
18114# We need awk for the "check" target. The system "awk" is bad on
18115# some platforms.
18116# Always define AMTAR for backward compatibility.
18117
18118AMTAR=${AMTAR-"${am_missing_run}tar"}
18119
18120am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
18121
18122
18123
18124
18125depcc="$CC" am_compiler_list=
18126
18127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
18128$as_echo_n "checking dependency style of $depcc... " >&6; }
18129if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
18130 $as_echo_n "(cached) " >&6
18131else
18132 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
18133 # We make a subdir and do the tests there. Otherwise we can end up
18134 # making bogus files that we don't know about and never remove. For
18135 # instance it was reported that on HP-UX the gcc test will end up
18136 # making a dummy file named `D' -- because `-MD' means `put the output
18137 # in D'.
18138 mkdir conftest.dir
18139 # Copy depcomp to subdir because otherwise we won't find it if we're
18140 # using a relative directory.
18141 cp "$am_depcomp" conftest.dir
18142 cd conftest.dir
18143 # We will build objects and dependencies in a subdirectory because
18144 # it helps to detect inapplicable dependency modes. For instance
18145 # both Tru64's cc and ICC support -MD to output dependencies as a
18146 # side effect of compilation, but ICC will put the dependencies in
18147 # the current directory while Tru64 will put them in the object
18148 # directory.
18149 mkdir sub
18150
18151 am_cv_CC_dependencies_compiler_type=none
18152 if test "$am_compiler_list" = ""; then
18153 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
18154 fi
18155 am__universal=false
18156 case " $depcc " in #(
18157 *\ -arch\ *\ -arch\ *) am__universal=true ;;
18158 esac
18159
18160 for depmode in $am_compiler_list; do
18161 # Setup a source with many dependencies, because some compilers
18162 # like to wrap large dependency lists on column 80 (with \), and
18163 # we should not choose a depcomp mode which is confused by this.
18164 #
18165 # We need to recreate these files for each test, as the compiler may
18166 # overwrite some of them when testing with obscure command lines.
18167 # This happens at least with the AIX C compiler.
18168 : > sub/conftest.c
18169 for i in 1 2 3 4 5 6; do
18170 echo '#include "conftst'$i'.h"' >> sub/conftest.c
18171 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
18172 # Solaris 8's {/usr,}/bin/sh.
18173 touch sub/conftst$i.h
18174 done
18175 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
18176
18177 # We check with `-c' and `-o' for the sake of the "dashmstdout"
18178 # mode. It turns out that the SunPro C++ compiler does not properly
18179 # handle `-M -o', and we need to detect this. Also, some Intel
18180 # versions had trouble with output in subdirs
18181 am__obj=sub/conftest.${OBJEXT-o}
18182 am__minus_obj="-o $am__obj"
18183 case $depmode in
18184 gcc)
18185 # This depmode causes a compiler race in universal mode.
18186 test "$am__universal" = false || continue
18187 ;;
18188 nosideeffect)
18189 # after this tag, mechanisms are not by side-effect, so they'll
18190 # only be used when explicitly requested
18191 if test "x$enable_dependency_tracking" = xyes; then
18192 continue
18193 else
18194 break
18195 fi
18196 ;;
18197 msvisualcpp | msvcmsys)
18198 # This compiler won't grok `-c -o', but also, the minuso test has
18199 # not run yet. These depmodes are late enough in the game, and
18200 # so weak that their functioning should not be impacted.
18201 am__obj=conftest.${OBJEXT-o}
18202 am__minus_obj=
18203 ;;
18204 none) break ;;
18205 esac
18206 if depmode=$depmode \
18207 source=sub/conftest.c object=$am__obj \
18208 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
18209 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
18210 >/dev/null 2>conftest.err &&
18211 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
18212 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
18213 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
18214 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
18215 # icc doesn't choke on unknown options, it will just issue warnings
18216 # or remarks (even with -Werror). So we grep stderr for any message
18217 # that says an option was ignored or not supported.
18218 # When given -MP, icc 7.0 and 7.1 complain thusly:
18219 # icc: Command line warning: ignoring option '-M'; no argument required
18220 # The diagnosis changed in icc 8.0:
18221 # icc: Command line remark: option '-MP' not supported
18222 if (grep 'ignoring option' conftest.err ||
18223 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
18224 am_cv_CC_dependencies_compiler_type=$depmode
18225 break
18226 fi
18227 fi
18228 done
18229
18230 cd ..
18231 rm -rf conftest.dir
18232else
18233 am_cv_CC_dependencies_compiler_type=none
18234fi
18235
18236fi
18237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
18238$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
18239CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
18240
18241 if
18242 test "x$enable_dependency_tracking" != xno \
18243 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
18244 am__fastdepCC_TRUE=
18245 am__fastdepCC_FALSE='#'
18246else
18247 am__fastdepCC_TRUE='#'
18248 am__fastdepCC_FALSE=
18249fi
18250
18251
18252
18253
18254# --------------------- #
18255# Checks for programs. #
18256# --------------------- #
18257
18258
18259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
18260$as_echo_n "checking whether ln -s works... " >&6; }
18261LN_S=$as_ln_s
18262if test "$LN_S" = "ln -s"; then
18263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18264$as_echo "yes" >&6; }
18265else
18266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
18267$as_echo "no, using $LN_S" >&6; }
18268fi
18269
18270if test -n "$ac_tool_prefix"; then
18271 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18272set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18274$as_echo_n "checking for $ac_word... " >&6; }
18275if test "${ac_cv_prog_RANLIB+set}" = set; then :
18276 $as_echo_n "(cached) " >&6
18277else
18278 if test -n "$RANLIB"; then
18279 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18280else
18281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18282for as_dir in $PATH
18283do
18284 IFS=$as_save_IFS
18285 test -z "$as_dir" && as_dir=.
18286 for ac_exec_ext in '' $ac_executable_extensions; do
18287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18288 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18290 break 2
18291 fi
18292done
18293 done
18294IFS=$as_save_IFS
18295
18296fi
18297fi
18298RANLIB=$ac_cv_prog_RANLIB
18299if test -n "$RANLIB"; then
18300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
18301$as_echo "$RANLIB" >&6; }
18302else
18303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18304$as_echo "no" >&6; }
18305fi
18306
18307
18308fi
18309if test -z "$ac_cv_prog_RANLIB"; then
18310 ac_ct_RANLIB=$RANLIB
18311 # Extract the first word of "ranlib", so it can be a program name with args.
18312set dummy ranlib; ac_word=$2
18313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18314$as_echo_n "checking for $ac_word... " >&6; }
18315if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
18316 $as_echo_n "(cached) " >&6
18317else
18318 if test -n "$ac_ct_RANLIB"; then
18319 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18320else
18321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18322for as_dir in $PATH
18323do
18324 IFS=$as_save_IFS
18325 test -z "$as_dir" && as_dir=.
18326 for ac_exec_ext in '' $ac_executable_extensions; do
18327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18328 ac_cv_prog_ac_ct_RANLIB="ranlib"
18329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18330 break 2
18331 fi
18332done
18333 done
18334IFS=$as_save_IFS
18335
18336fi
18337fi
18338ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18339if test -n "$ac_ct_RANLIB"; then
18340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
18341$as_echo "$ac_ct_RANLIB" >&6; }
18342else
18343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18344$as_echo "no" >&6; }
18345fi
18346
18347 if test "x$ac_ct_RANLIB" = x; then
18348 RANLIB=":"
18349 else
18350 case $cross_compiling:$ac_tool_warned in
18351yes:)
18352{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18353$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18354ac_tool_warned=yes ;;
18355esac
18356 RANLIB=$ac_ct_RANLIB
18357 fi
18358else
18359 RANLIB="$ac_cv_prog_RANLIB"
18360fi
18361
18362
18363if test -n "$ac_tool_prefix"; then
18364 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
18365set dummy ${ac_tool_prefix}ar; ac_word=$2
18366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18367$as_echo_n "checking for $ac_word... " >&6; }
18368if test "${ac_cv_prog_AR+set}" = set; then :
18369 $as_echo_n "(cached) " >&6
18370else
18371 if test -n "$AR"; then
18372 ac_cv_prog_AR="$AR" # Let the user override the test.
18373else
18374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18375for as_dir in $PATH
18376do
18377 IFS=$as_save_IFS
18378 test -z "$as_dir" && as_dir=.
18379 for ac_exec_ext in '' $ac_executable_extensions; do
18380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18381 ac_cv_prog_AR="${ac_tool_prefix}ar"
18382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18383 break 2
18384 fi
18385done
18386 done
18387IFS=$as_save_IFS
18388
18389fi
18390fi
18391AR=$ac_cv_prog_AR
18392if test -n "$AR"; then
18393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
18394$as_echo "$AR" >&6; }
18395else
18396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18397$as_echo "no" >&6; }
18398fi
18399
18400
18401fi
18402if test -z "$ac_cv_prog_AR"; then
18403 ac_ct_AR=$AR
18404 # Extract the first word of "ar", so it can be a program name with args.
18405set dummy ar; ac_word=$2
18406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18407$as_echo_n "checking for $ac_word... " >&6; }
18408if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
18409 $as_echo_n "(cached) " >&6
18410else
18411 if test -n "$ac_ct_AR"; then
18412 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
18413else
18414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18415for as_dir in $PATH
18416do
18417 IFS=$as_save_IFS
18418 test -z "$as_dir" && as_dir=.
18419 for ac_exec_ext in '' $ac_executable_extensions; do
18420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18421 ac_cv_prog_ac_ct_AR="ar"
18422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18423 break 2
18424 fi
18425done
18426 done
18427IFS=$as_save_IFS
18428
18429fi
18430fi
18431ac_ct_AR=$ac_cv_prog_ac_ct_AR
18432if test -n "$ac_ct_AR"; then
18433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
18434$as_echo "$ac_ct_AR" >&6; }
18435else
18436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18437$as_echo "no" >&6; }
18438fi
18439
18440 if test "x$ac_ct_AR" = x; then
18441 AR=""
18442 else
18443 case $cross_compiling:$ac_tool_warned in
18444yes:)
18445{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18446$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18447ac_tool_warned=yes ;;
18448esac
18449 AR=$ac_ct_AR
18450 fi
18451else
18452 AR="$ac_cv_prog_AR"
18453fi
18454
18455
18456# ---------------------- #
18457# Checks for libraries. #
18458# ---------------------- #
18459
18460ac_config_files="$ac_config_files Makefile import/Makefile"
18461
18462ac_config_commands="$ac_config_commands default"
18463
18464cat >confcache <<\_ACEOF
18465# This file is a shell script that caches the results of configure
18466# tests run on this system so they can be shared between configure
18467# scripts and configure runs, see configure's option --config-cache.
18468# It is not useful on other systems. If it contains results you don't
18469# want to keep, you may remove or edit it.
18470#
18471# config.status only pays attention to the cache file if you give it
18472# the --recheck option to rerun configure.
18473#
18474# `ac_cv_env_foo' variables (set or unset) will be overridden when
18475# loading this file, other *unset* `ac_cv_foo' will be assigned the
18476# following values.
18477
18478_ACEOF
18479
18480# The following way of writing the cache mishandles newlines in values,
18481# but we know of no workaround that is simple, portable, and efficient.
18482# So, we kill variables containing newlines.
18483# Ultrix sh set writes to stderr and can't be redirected directly,
18484# and sets the high bit in the cache file unless we assign to the vars.
18485(
18486 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18487 eval ac_val=\$$ac_var
18488 case $ac_val in #(
18489 *${as_nl}*)
18490 case $ac_var in #(
18491 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18492$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18493 esac
18494 case $ac_var in #(
18495 _ | IFS | as_nl) ;; #(
18496 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18497 *) { eval $ac_var=; unset $ac_var;} ;;
18498 esac ;;
18499 esac
18500 done
18501
18502 (set) 2>&1 |
18503 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18504 *${as_nl}ac_space=\ *)
18505 # `set' does not quote correctly, so add quotes: double-quote
18506 # substitution turns \\\\ into \\, and sed turns \\ into \.
18507 sed -n \
18508 "s/'/'\\\\''/g;
18509 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18510 ;; #(
18511 *)
18512 # `set' quotes correctly as required by POSIX, so do not add quotes.
18513 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18514 ;;
18515 esac |
18516 sort
18517) |
18518 sed '
18519 /^ac_cv_env_/b end
18520 t clear
18521 :clear
18522 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18523 t end
18524 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18525 :end' >>confcache
18526if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18527 if test -w "$cache_file"; then
18528 test "x$cache_file" != "x/dev/null" &&
18529 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18530$as_echo "$as_me: updating cache $cache_file" >&6;}
18531 cat confcache >$cache_file
18532 else
18533 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18534$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18535 fi
18536fi
18537rm -f confcache
18538
18539test "x$prefix" = xNONE && prefix=$ac_default_prefix
18540# Let make expand exec_prefix.
18541test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18542
18543DEFS=-DHAVE_CONFIG_H
18544
18545ac_libobjs=
18546ac_ltlibobjs=
18547for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18548 # 1. Remove the extension, and $U if already installed.
18549 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18550 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18551 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18552 # will be set to the directory where LIBOBJS objects are built.
18553 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18554 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18555done
18556LIBOBJS=$ac_libobjs
18557
18558LTLIBOBJS=$ac_ltlibobjs
18559
18560
18561if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18562 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
18563Usually this means the macro was only invoked conditionally." "$LINENO" 5
18564fi
18565if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
18566 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
18567Usually this means the macro was only invoked conditionally." "$LINENO" 5
18568fi
8690e634
JK
18569if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
18570 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
18571Usually this means the macro was only invoked conditionally." "$LINENO" 5
18572fi
18848e28
GF
18573if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
18574 as_fn_error "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
18575Usually this means the macro was only invoked conditionally." "$LINENO" 5
18576fi
88b48903
WN
18577if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
18578 as_fn_error "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
18579Usually this means the macro was only invoked conditionally." "$LINENO" 5
18580fi
8690e634
JK
18581if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
18582 as_fn_error "conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
18583Usually this means the macro was only invoked conditionally." "$LINENO" 5
18584fi
c971b7fa
PA
18585if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
18586 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
18587Usually this means the macro was only invoked conditionally." "$LINENO" 5
18588fi
88b48903
WN
18589
18590
8690e634
JK
18591if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
18592 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
18593Usually this means the macro was only invoked conditionally." "$LINENO" 5
18594fi
c971b7fa
PA
18595if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
18596 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
18597Usually this means the macro was only invoked conditionally." "$LINENO" 5
18598fi
18599
18600 gl_libobjs=
18601 gl_ltlibobjs=
18602 if test -n "$gl_LIBOBJS"; then
18603 # Remove the extension.
18604 sed_drop_objext='s/\.o$//;s/\.obj$//'
18605 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
18606 gl_libobjs="$gl_libobjs $i.$ac_objext"
18607 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
18608 done
18609 fi
18610 gl_LIBOBJS=$gl_libobjs
18611
18612 gl_LTLIBOBJS=$gl_ltlibobjs
18613
18614
18615
18616 gltests_libobjs=
18617 gltests_ltlibobjs=
18618 if test -n "$gltests_LIBOBJS"; then
18619 # Remove the extension.
18620 sed_drop_objext='s/\.o$//;s/\.obj$//'
18621 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
18622 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
18623 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
18624 done
18625 fi
18626 gltests_LIBOBJS=$gltests_libobjs
18627
18628 gltests_LTLIBOBJS=$gltests_ltlibobjs
18629
18630
18631if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18632 as_fn_error "conditional \"AMDEP\" was never defined.
18633Usually this means the macro was only invoked conditionally." "$LINENO" 5
18634fi
18635if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18636 as_fn_error "conditional \"am__fastdepCC\" was never defined.
18637Usually this means the macro was only invoked conditionally." "$LINENO" 5
18638fi
18639 if test -n "$EXEEXT"; then
18640 am__EXEEXT_TRUE=
18641 am__EXEEXT_FALSE='#'
18642else
18643 am__EXEEXT_TRUE='#'
18644 am__EXEEXT_FALSE=
18645fi
18646
18647
18648: ${CONFIG_STATUS=./config.status}
18649ac_write_fail=0
18650ac_clean_files_save=$ac_clean_files
18651ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18652{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18653$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18654as_write_fail=0
18655cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18656#! $SHELL
18657# Generated by $as_me.
18658# Run this file to recreate the current configuration.
18659# Compiler output produced by configure, useful for debugging
18660# configure, is in config.log if it exists.
18661
18662debug=false
18663ac_cs_recheck=false
18664ac_cs_silent=false
18665
18666SHELL=\${CONFIG_SHELL-$SHELL}
18667export SHELL
18668_ASEOF
18669cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18670## -------------------- ##
18671## M4sh Initialization. ##
18672## -------------------- ##
18673
18674# Be more Bourne compatible
18675DUALCASE=1; export DUALCASE # for MKS sh
18676if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18677 emulate sh
18678 NULLCMD=:
18679 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18680 # is contrary to our usage. Disable this feature.
18681 alias -g '${1+"$@"}'='"$@"'
18682 setopt NO_GLOB_SUBST
18683else
18684 case `(set -o) 2>/dev/null` in #(
18685 *posix*) :
18686 set -o posix ;; #(
18687 *) :
18688 ;;
18689esac
18690fi
18691
18692
18693as_nl='
18694'
18695export as_nl
18696# Printing a long string crashes Solaris 7 /usr/bin/printf.
18697as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18698as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18699as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18700# Prefer a ksh shell builtin over an external printf program on Solaris,
18701# but without wasting forks for bash or zsh.
18702if test -z "$BASH_VERSION$ZSH_VERSION" \
18703 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18704 as_echo='print -r --'
18705 as_echo_n='print -rn --'
18706elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18707 as_echo='printf %s\n'
18708 as_echo_n='printf %s'
18709else
18710 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18711 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18712 as_echo_n='/usr/ucb/echo -n'
18713 else
18714 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18715 as_echo_n_body='eval
18716 arg=$1;
18717 case $arg in #(
18718 *"$as_nl"*)
18719 expr "X$arg" : "X\\(.*\\)$as_nl";
18720 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18721 esac;
18722 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18723 '
18724 export as_echo_n_body
18725 as_echo_n='sh -c $as_echo_n_body as_echo'
18726 fi
18727 export as_echo_body
18728 as_echo='sh -c $as_echo_body as_echo'
18729fi
18730
18731# The user is always right.
18732if test "${PATH_SEPARATOR+set}" != set; then
18733 PATH_SEPARATOR=:
18734 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18735 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18736 PATH_SEPARATOR=';'
18737 }
18738fi
18739
18740
18741# IFS
18742# We need space, tab and new line, in precisely that order. Quoting is
18743# there to prevent editors from complaining about space-tab.
18744# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18745# splitting by setting IFS to empty value.)
18746IFS=" "" $as_nl"
18747
18748# Find who we are. Look in the path if we contain no directory separator.
18749case $0 in #((
18750 *[\\/]* ) as_myself=$0 ;;
18751 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18752for as_dir in $PATH
18753do
18754 IFS=$as_save_IFS
18755 test -z "$as_dir" && as_dir=.
18756 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18757 done
18758IFS=$as_save_IFS
18759
18760 ;;
18761esac
18762# We did not find ourselves, most probably we were run as `sh COMMAND'
18763# in which case we are not to be found in the path.
18764if test "x$as_myself" = x; then
18765 as_myself=$0
18766fi
18767if test ! -f "$as_myself"; then
18768 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18769 exit 1
18770fi
18771
18772# Unset variables that we do not need and which cause bugs (e.g. in
18773# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18774# suppresses any "Segmentation fault" message there. '((' could
18775# trigger a bug in pdksh 5.2.14.
18776for as_var in BASH_ENV ENV MAIL MAILPATH
18777do eval test x\${$as_var+set} = xset \
18778 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18779done
18780PS1='$ '
18781PS2='> '
18782PS4='+ '
18783
18784# NLS nuisances.
18785LC_ALL=C
18786export LC_ALL
18787LANGUAGE=C
18788export LANGUAGE
18789
18790# CDPATH.
18791(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18792
18793
18794# as_fn_error ERROR [LINENO LOG_FD]
18795# ---------------------------------
18796# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18797# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18798# script with status $?, using 1 if that was 0.
18799as_fn_error ()
18800{
18801 as_status=$?; test $as_status -eq 0 && as_status=1
18802 if test "$3"; then
18803 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18804 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
18805 fi
18806 $as_echo "$as_me: error: $1" >&2
18807 as_fn_exit $as_status
18808} # as_fn_error
18809
18810
18811# as_fn_set_status STATUS
18812# -----------------------
18813# Set $? to STATUS, without forking.
18814as_fn_set_status ()
18815{
18816 return $1
18817} # as_fn_set_status
18818
18819# as_fn_exit STATUS
18820# -----------------
18821# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18822as_fn_exit ()
18823{
18824 set +e
18825 as_fn_set_status $1
18826 exit $1
18827} # as_fn_exit
18828
18829# as_fn_unset VAR
18830# ---------------
18831# Portably unset VAR.
18832as_fn_unset ()
18833{
18834 { eval $1=; unset $1;}
18835}
18836as_unset=as_fn_unset
18837# as_fn_append VAR VALUE
18838# ----------------------
18839# Append the text in VALUE to the end of the definition contained in VAR. Take
18840# advantage of any shell optimizations that allow amortized linear growth over
18841# repeated appends, instead of the typical quadratic growth present in naive
18842# implementations.
18843if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18844 eval 'as_fn_append ()
18845 {
18846 eval $1+=\$2
18847 }'
18848else
18849 as_fn_append ()
18850 {
18851 eval $1=\$$1\$2
18852 }
18853fi # as_fn_append
18854
18855# as_fn_arith ARG...
18856# ------------------
18857# Perform arithmetic evaluation on the ARGs, and store the result in the
18858# global $as_val. Take advantage of shells that can avoid forks. The arguments
18859# must be portable across $(()) and expr.
18860if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18861 eval 'as_fn_arith ()
18862 {
18863 as_val=$(( $* ))
18864 }'
18865else
18866 as_fn_arith ()
18867 {
18868 as_val=`expr "$@" || test $? -eq 1`
18869 }
18870fi # as_fn_arith
18871
18872
18873if expr a : '\(a\)' >/dev/null 2>&1 &&
18874 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18875 as_expr=expr
18876else
18877 as_expr=false
18878fi
18879
18880if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18881 as_basename=basename
18882else
18883 as_basename=false
18884fi
18885
18886if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18887 as_dirname=dirname
18888else
18889 as_dirname=false
18890fi
18891
18892as_me=`$as_basename -- "$0" ||
18893$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18894 X"$0" : 'X\(//\)$' \| \
18895 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18896$as_echo X/"$0" |
18897 sed '/^.*\/\([^/][^/]*\)\/*$/{
18898 s//\1/
18899 q
18900 }
18901 /^X\/\(\/\/\)$/{
18902 s//\1/
18903 q
18904 }
18905 /^X\/\(\/\).*/{
18906 s//\1/
18907 q
18908 }
18909 s/.*/./; q'`
18910
18911# Avoid depending upon Character Ranges.
18912as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18913as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18914as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18915as_cr_digits='0123456789'
18916as_cr_alnum=$as_cr_Letters$as_cr_digits
18917
18918ECHO_C= ECHO_N= ECHO_T=
18919case `echo -n x` in #(((((
18920-n*)
18921 case `echo 'xy\c'` in
18922 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18923 xy) ECHO_C='\c';;
18924 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18925 ECHO_T=' ';;
18926 esac;;
18927*)
18928 ECHO_N='-n';;
18929esac
18930
18931rm -f conf$$ conf$$.exe conf$$.file
18932if test -d conf$$.dir; then
18933 rm -f conf$$.dir/conf$$.file
18934else
18935 rm -f conf$$.dir
18936 mkdir conf$$.dir 2>/dev/null
18937fi
18938if (echo >conf$$.file) 2>/dev/null; then
18939 if ln -s conf$$.file conf$$ 2>/dev/null; then
18940 as_ln_s='ln -s'
18941 # ... but there are two gotchas:
18942 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18943 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18944 # In both cases, we have to default to `cp -p'.
18945 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18946 as_ln_s='cp -p'
18947 elif ln conf$$.file conf$$ 2>/dev/null; then
18948 as_ln_s=ln
18949 else
18950 as_ln_s='cp -p'
18951 fi
18952else
18953 as_ln_s='cp -p'
18954fi
18955rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18956rmdir conf$$.dir 2>/dev/null
18957
18958
18959# as_fn_mkdir_p
18960# -------------
18961# Create "$as_dir" as a directory, including parents if necessary.
18962as_fn_mkdir_p ()
18963{
18964
18965 case $as_dir in #(
18966 -*) as_dir=./$as_dir;;
18967 esac
18968 test -d "$as_dir" || eval $as_mkdir_p || {
18969 as_dirs=
18970 while :; do
18971 case $as_dir in #(
18972 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18973 *) as_qdir=$as_dir;;
18974 esac
18975 as_dirs="'$as_qdir' $as_dirs"
18976 as_dir=`$as_dirname -- "$as_dir" ||
18977$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18978 X"$as_dir" : 'X\(//\)[^/]' \| \
18979 X"$as_dir" : 'X\(//\)$' \| \
18980 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18981$as_echo X"$as_dir" |
18982 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18983 s//\1/
18984 q
18985 }
18986 /^X\(\/\/\)[^/].*/{
18987 s//\1/
18988 q
18989 }
18990 /^X\(\/\/\)$/{
18991 s//\1/
18992 q
18993 }
18994 /^X\(\/\).*/{
18995 s//\1/
18996 q
18997 }
18998 s/.*/./; q'`
18999 test -d "$as_dir" && break
19000 done
19001 test -z "$as_dirs" || eval "mkdir $as_dirs"
19002 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
19003
19004
19005} # as_fn_mkdir_p
19006if mkdir -p . 2>/dev/null; then
19007 as_mkdir_p='mkdir -p "$as_dir"'
19008else
19009 test -d ./-p && rmdir ./-p
19010 as_mkdir_p=false
19011fi
19012
19013if test -x / >/dev/null 2>&1; then
19014 as_test_x='test -x'
19015else
19016 if ls -dL / >/dev/null 2>&1; then
19017 as_ls_L_option=L
19018 else
19019 as_ls_L_option=
19020 fi
19021 as_test_x='
19022 eval sh -c '\''
19023 if test -d "$1"; then
19024 test -d "$1/.";
19025 else
19026 case $1 in #(
19027 -*)set "./$1";;
19028 esac;
19029 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
19030 ???[sx]*):;;*)false;;esac;fi
19031 '\'' sh
19032 '
19033fi
19034as_executable_p=$as_test_x
19035
19036# Sed expression to map a string onto a valid CPP name.
19037as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19038
19039# Sed expression to map a string onto a valid variable name.
19040as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19041
19042
19043exec 6>&1
19044## ----------------------------------- ##
19045## Main body of $CONFIG_STATUS script. ##
19046## ----------------------------------- ##
19047_ASEOF
19048test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19049
19050cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19051# Save the log message, to keep $0 and so on meaningful, and to
19052# report actual input values of CONFIG_FILES etc. instead of their
19053# values after options handling.
19054ac_log="
19055This file was extended by $as_me, which was
19056generated by GNU Autoconf 2.64. Invocation command line was
19057
19058 CONFIG_FILES = $CONFIG_FILES
19059 CONFIG_HEADERS = $CONFIG_HEADERS
19060 CONFIG_LINKS = $CONFIG_LINKS
19061 CONFIG_COMMANDS = $CONFIG_COMMANDS
19062 $ $0 $@
19063
19064on `(hostname || uname -n) 2>/dev/null | sed 1q`
19065"
19066
19067_ACEOF
19068
19069case $ac_config_files in *"
19070"*) set x $ac_config_files; shift; ac_config_files=$*;;
19071esac
19072
19073case $ac_config_headers in *"
19074"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19075esac
19076
19077
19078cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19079# Files that config.status was made for.
19080config_files="$ac_config_files"
19081config_headers="$ac_config_headers"
19082config_commands="$ac_config_commands"
19083
19084_ACEOF
19085
19086cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19087ac_cs_usage="\
19088\`$as_me' instantiates files and other configuration actions
19089from templates according to the current configuration. Unless the files
19090and actions are specified as TAGs, all are instantiated by default.
19091
19092Usage: $0 [OPTION]... [TAG]...
19093
19094 -h, --help print this help, then exit
19095 -V, --version print version number and configuration settings, then exit
19096 -q, --quiet, --silent
19097 do not print progress messages
19098 -d, --debug don't remove temporary files
19099 --recheck update $as_me by reconfiguring in the same conditions
19100 --file=FILE[:TEMPLATE]
19101 instantiate the configuration file FILE
19102 --header=FILE[:TEMPLATE]
19103 instantiate the configuration header FILE
19104
19105Configuration files:
19106$config_files
19107
19108Configuration headers:
19109$config_headers
19110
19111Configuration commands:
19112$config_commands
19113
19114Report bugs to the package provider."
19115
19116_ACEOF
19117cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19118ac_cs_version="\\
19119config.status
19120configured by $0, generated by GNU Autoconf 2.64,
19121 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
19122
19123Copyright (C) 2009 Free Software Foundation, Inc.
19124This config.status script is free software; the Free Software Foundation
19125gives unlimited permission to copy, distribute and modify it."
19126
19127ac_pwd='$ac_pwd'
19128srcdir='$srcdir'
19129INSTALL='$INSTALL'
19130MKDIR_P='$MKDIR_P'
19131AWK='$AWK'
19132test -n "\$AWK" || AWK=awk
19133_ACEOF
19134
19135cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19136# The default lists apply if the user does not specify any file.
19137ac_need_defaults=:
19138while test $# != 0
19139do
19140 case $1 in
19141 --*=*)
19142 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19143 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19144 ac_shift=:
19145 ;;
19146 *)
19147 ac_option=$1
19148 ac_optarg=$2
19149 ac_shift=shift
19150 ;;
19151 esac
19152
19153 case $ac_option in
19154 # Handling of the options.
19155 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19156 ac_cs_recheck=: ;;
19157 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19158 $as_echo "$ac_cs_version"; exit ;;
19159 --debug | --debu | --deb | --de | --d | -d )
19160 debug=: ;;
19161 --file | --fil | --fi | --f )
19162 $ac_shift
19163 case $ac_optarg in
19164 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19165 esac
19166 as_fn_append CONFIG_FILES " '$ac_optarg'"
19167 ac_need_defaults=false;;
19168 --header | --heade | --head | --hea )
19169 $ac_shift
19170 case $ac_optarg in
19171 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19172 esac
19173 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19174 ac_need_defaults=false;;
19175 --he | --h)
19176 # Conflict between --help and --header
19177 as_fn_error "ambiguous option: \`$1'
19178Try \`$0 --help' for more information.";;
19179 --help | --hel | -h )
19180 $as_echo "$ac_cs_usage"; exit ;;
19181 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19182 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19183 ac_cs_silent=: ;;
19184
19185 # This is an error.
19186 -*) as_fn_error "unrecognized option: \`$1'
19187Try \`$0 --help' for more information." ;;
19188
19189 *) as_fn_append ac_config_targets " $1"
19190 ac_need_defaults=false ;;
19191
19192 esac
19193 shift
19194done
19195
19196ac_configure_extra_args=
19197
19198if $ac_cs_silent; then
19199 exec 6>/dev/null
19200 ac_configure_extra_args="$ac_configure_extra_args --silent"
19201fi
19202
19203_ACEOF
19204cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19205if \$ac_cs_recheck; then
19206 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19207 shift
19208 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19209 CONFIG_SHELL='$SHELL'
19210 export CONFIG_SHELL
19211 exec "\$@"
19212fi
19213
19214_ACEOF
19215cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19216exec 5>>config.log
19217{
19218 echo
19219 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19220## Running $as_me. ##
19221_ASBOX
19222 $as_echo "$ac_log"
19223} >&5
19224
19225_ACEOF
19226cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19227#
19228# INIT-COMMANDS
19229#
19230AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19231
19232_ACEOF
19233
19234cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19235
19236# Handling of arguments.
19237for ac_config_target in $ac_config_targets
19238do
19239 case $ac_config_target in
19240 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
19241 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19242 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19243 "import/Makefile") CONFIG_FILES="$CONFIG_FILES import/Makefile" ;;
19244 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
19245
19246 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19247 esac
19248done
19249
19250
19251# If the user did not use the arguments to specify the items to instantiate,
19252# then the envvar interface is used. Set only those that are not.
19253# We use the long form for the default assignment because of an extremely
19254# bizarre bug on SunOS 4.1.3.
19255if $ac_need_defaults; then
19256 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19257 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19258 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19259fi
19260
19261# Have a temporary directory for convenience. Make it in the build tree
19262# simply because there is no reason against having it here, and in addition,
19263# creating and moving files from /tmp can sometimes cause problems.
19264# Hook for its removal unless debugging.
19265# Note that there is a small window in which the directory will not be cleaned:
19266# after its creation but before its name has been assigned to `$tmp'.
19267$debug ||
19268{
19269 tmp=
19270 trap 'exit_status=$?
19271 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19272' 0
19273 trap 'as_fn_exit 1' 1 2 13 15
19274}
19275# Create a (secure) tmp directory for tmp files.
19276
19277{
19278 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19279 test -n "$tmp" && test -d "$tmp"
19280} ||
19281{
19282 tmp=./conf$$-$RANDOM
19283 (umask 077 && mkdir "$tmp")
19284} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
19285
19286# Set up the scripts for CONFIG_FILES section.
19287# No need to generate them if there are no CONFIG_FILES.
19288# This happens for instance with `./config.status config.h'.
19289if test -n "$CONFIG_FILES"; then
19290
19291
19292ac_cr=`echo X | tr X '\015'`
19293# On cygwin, bash can eat \r inside `` if the user requested igncr.
19294# But we know of no other shell where ac_cr would be empty at this
19295# point, so we can use a bashism as a fallback.
19296if test "x$ac_cr" = x; then
19297 eval ac_cr=\$\'\\r\'
19298fi
19299ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19300if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19301 ac_cs_awk_cr='\r'
19302else
19303 ac_cs_awk_cr=$ac_cr
19304fi
19305
19306echo 'BEGIN {' >"$tmp/subs1.awk" &&
19307_ACEOF
19308
19309
19310{
19311 echo "cat >conf$$subs.awk <<_ACEOF" &&
19312 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19313 echo "_ACEOF"
19314} >conf$$subs.sh ||
19315 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
19316ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
19317ac_delim='%!_!# '
19318for ac_last_try in false false false false false :; do
19319 . ./conf$$subs.sh ||
19320 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
19321
19322 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19323 if test $ac_delim_n = $ac_delim_num; then
19324 break
19325 elif $ac_last_try; then
19326 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
19327 else
19328 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19329 fi
19330done
19331rm -f conf$$subs.sh
19332
19333cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19334cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
19335_ACEOF
19336sed -n '
19337h
19338s/^/S["/; s/!.*/"]=/
19339p
19340g
19341s/^[^!]*!//
19342:repl
19343t repl
19344s/'"$ac_delim"'$//
19345t delim
19346:nl
19347h
19348s/\(.\{148\}\).*/\1/
19349t more1
19350s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19351p
19352n
19353b repl
19354:more1
19355s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19356p
19357g
19358s/.\{148\}//
19359t nl
19360:delim
19361h
19362s/\(.\{148\}\).*/\1/
19363t more2
19364s/["\\]/\\&/g; s/^/"/; s/$/"/
19365p
19366b
19367:more2
19368s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19369p
19370g
19371s/.\{148\}//
19372t delim
19373' <conf$$subs.awk | sed '
19374/^[^""]/{
19375 N
19376 s/\n//
19377}
19378' >>$CONFIG_STATUS || ac_write_fail=1
19379rm -f conf$$subs.awk
19380cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19381_ACAWK
19382cat >>"\$tmp/subs1.awk" <<_ACAWK &&
19383 for (key in S) S_is_set[key] = 1
19384 FS = "\a"
19385
19386}
19387{
19388 line = $ 0
19389 nfields = split(line, field, "@")
19390 substed = 0
19391 len = length(field[1])
19392 for (i = 2; i < nfields; i++) {
19393 key = field[i]
19394 keylen = length(key)
19395 if (S_is_set[key]) {
19396 value = S[key]
19397 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19398 len += length(value) + length(field[++i])
19399 substed = 1
19400 } else
19401 len += 1 + keylen
19402 }
19403
19404 print line
19405}
19406
19407_ACAWK
19408_ACEOF
19409cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19410if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19411 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19412else
19413 cat
19414fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
19415 || as_fn_error "could not setup config files machinery" "$LINENO" 5
19416_ACEOF
19417
19418# VPATH may cause trouble with some makes, so we remove $(srcdir),
19419# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19420# trailing colons and then remove the whole line if VPATH becomes empty
19421# (actually we leave an empty line to preserve line numbers).
19422if test "x$srcdir" = x.; then
19423 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19424s/:*\$(srcdir):*/:/
19425s/:*\${srcdir}:*/:/
19426s/:*@srcdir@:*/:/
19427s/^\([^=]*=[ ]*\):*/\1/
19428s/:*$//
19429s/^[^=]*=[ ]*$//
19430}'
19431fi
19432
19433cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19434fi # test -n "$CONFIG_FILES"
19435
19436# Set up the scripts for CONFIG_HEADERS section.
19437# No need to generate them if there are no CONFIG_HEADERS.
19438# This happens for instance with `./config.status Makefile'.
19439if test -n "$CONFIG_HEADERS"; then
19440cat >"$tmp/defines.awk" <<\_ACAWK ||
19441BEGIN {
19442_ACEOF
19443
19444# Transform confdefs.h into an awk script `defines.awk', embedded as
19445# here-document in config.status, that substitutes the proper values into
19446# config.h.in to produce config.h.
19447
19448# Create a delimiter string that does not exist in confdefs.h, to ease
19449# handling of long lines.
19450ac_delim='%!_!# '
19451for ac_last_try in false false :; do
19452 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
19453 if test -z "$ac_t"; then
19454 break
19455 elif $ac_last_try; then
19456 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
19457 else
19458 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19459 fi
19460done
19461
19462# For the awk script, D is an array of macro values keyed by name,
19463# likewise P contains macro parameters if any. Preserve backslash
19464# newline sequences.
19465
19466ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19467sed -n '
19468s/.\{148\}/&'"$ac_delim"'/g
19469t rset
19470:rset
19471s/^[ ]*#[ ]*define[ ][ ]*/ /
19472t def
19473d
19474:def
19475s/\\$//
19476t bsnl
19477s/["\\]/\\&/g
19478s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19479D["\1"]=" \3"/p
19480s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19481d
19482:bsnl
19483s/["\\]/\\&/g
19484s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19485D["\1"]=" \3\\\\\\n"\\/p
19486t cont
19487s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19488t cont
19489d
19490:cont
19491n
19492s/.\{148\}/&'"$ac_delim"'/g
19493t clear
19494:clear
19495s/\\$//
19496t bsnlc
19497s/["\\]/\\&/g; s/^/"/; s/$/"/p
19498d
19499:bsnlc
19500s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19501b cont
19502' <confdefs.h | sed '
19503s/'"$ac_delim"'/"\\\
19504"/g' >>$CONFIG_STATUS || ac_write_fail=1
19505
19506cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19507 for (key in D) D_is_set[key] = 1
19508 FS = "\a"
19509}
19510/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19511 line = \$ 0
19512 split(line, arg, " ")
19513 if (arg[1] == "#") {
19514 defundef = arg[2]
19515 mac1 = arg[3]
19516 } else {
19517 defundef = substr(arg[1], 2)
19518 mac1 = arg[2]
19519 }
19520 split(mac1, mac2, "(") #)
19521 macro = mac2[1]
19522 prefix = substr(line, 1, index(line, defundef) - 1)
19523 if (D_is_set[macro]) {
19524 # Preserve the white space surrounding the "#".
19525 print prefix "define", macro P[macro] D[macro]
19526 next
19527 } else {
19528 # Replace #undef with comments. This is necessary, for example,
19529 # in the case of _POSIX_SOURCE, which is predefined and required
19530 # on some systems where configure will not decide to define it.
19531 if (defundef == "undef") {
19532 print "/*", prefix defundef, macro, "*/"
19533 next
19534 }
19535 }
19536}
19537{ print }
19538_ACAWK
19539_ACEOF
19540cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19541 as_fn_error "could not setup config headers machinery" "$LINENO" 5
19542fi # test -n "$CONFIG_HEADERS"
19543
19544
19545eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19546shift
19547for ac_tag
19548do
19549 case $ac_tag in
19550 :[FHLC]) ac_mode=$ac_tag; continue;;
19551 esac
19552 case $ac_mode$ac_tag in
19553 :[FHL]*:*);;
19554 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
19555 :[FH]-) ac_tag=-:-;;
19556 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19557 esac
19558 ac_save_IFS=$IFS
19559 IFS=:
19560 set x $ac_tag
19561 IFS=$ac_save_IFS
19562 shift
19563 ac_file=$1
19564 shift
19565
19566 case $ac_mode in
19567 :L) ac_source=$1;;
19568 :[FH])
19569 ac_file_inputs=
19570 for ac_f
19571 do
19572 case $ac_f in
19573 -) ac_f="$tmp/stdin";;
19574 *) # Look for the file first in the build tree, then in the source tree
19575 # (if the path is not absolute). The absolute path cannot be DOS-style,
19576 # because $ac_f cannot contain `:'.
19577 test -f "$ac_f" ||
19578 case $ac_f in
19579 [\\/$]*) false;;
19580 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19581 esac ||
19582 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19583 esac
19584 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19585 as_fn_append ac_file_inputs " '$ac_f'"
19586 done
19587
19588 # Let's still pretend it is `configure' which instantiates (i.e., don't
19589 # use $as_me), people would be surprised to read:
19590 # /* config.h. Generated by config.status. */
19591 configure_input='Generated from '`
19592 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19593 `' by configure.'
19594 if test x"$ac_file" != x-; then
19595 configure_input="$ac_file. $configure_input"
19596 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19597$as_echo "$as_me: creating $ac_file" >&6;}
19598 fi
19599 # Neutralize special characters interpreted by sed in replacement strings.
19600 case $configure_input in #(
19601 *\&* | *\|* | *\\* )
19602 ac_sed_conf_input=`$as_echo "$configure_input" |
19603 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19604 *) ac_sed_conf_input=$configure_input;;
19605 esac
19606
19607 case $ac_tag in
19608 *:-:* | *:-) cat >"$tmp/stdin" \
19609 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
19610 esac
19611 ;;
19612 esac
19613
19614 ac_dir=`$as_dirname -- "$ac_file" ||
19615$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19616 X"$ac_file" : 'X\(//\)[^/]' \| \
19617 X"$ac_file" : 'X\(//\)$' \| \
19618 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19619$as_echo X"$ac_file" |
19620 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19621 s//\1/
19622 q
19623 }
19624 /^X\(\/\/\)[^/].*/{
19625 s//\1/
19626 q
19627 }
19628 /^X\(\/\/\)$/{
19629 s//\1/
19630 q
19631 }
19632 /^X\(\/\).*/{
19633 s//\1/
19634 q
19635 }
19636 s/.*/./; q'`
19637 as_dir="$ac_dir"; as_fn_mkdir_p
19638 ac_builddir=.
19639
19640case "$ac_dir" in
19641.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19642*)
19643 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19644 # A ".." for each directory in $ac_dir_suffix.
19645 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19646 case $ac_top_builddir_sub in
19647 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19648 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19649 esac ;;
19650esac
19651ac_abs_top_builddir=$ac_pwd
19652ac_abs_builddir=$ac_pwd$ac_dir_suffix
19653# for backward compatibility:
19654ac_top_builddir=$ac_top_build_prefix
19655
19656case $srcdir in
19657 .) # We are building in place.
19658 ac_srcdir=.
19659 ac_top_srcdir=$ac_top_builddir_sub
19660 ac_abs_top_srcdir=$ac_pwd ;;
19661 [\\/]* | ?:[\\/]* ) # Absolute name.
19662 ac_srcdir=$srcdir$ac_dir_suffix;
19663 ac_top_srcdir=$srcdir
19664 ac_abs_top_srcdir=$srcdir ;;
19665 *) # Relative name.
19666 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19667 ac_top_srcdir=$ac_top_build_prefix$srcdir
19668 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19669esac
19670ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19671
19672
19673 case $ac_mode in
19674 :F)
19675 #
19676 # CONFIG_FILE
19677 #
19678
19679 case $INSTALL in
19680 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19681 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19682 esac
19683 ac_MKDIR_P=$MKDIR_P
19684 case $MKDIR_P in
19685 [\\/$]* | ?:[\\/]* ) ;;
19686 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19687 esac
19688_ACEOF
19689
19690cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19691# If the template does not know about datarootdir, expand it.
19692# FIXME: This hack should be removed a few years after 2.60.
19693ac_datarootdir_hack=; ac_datarootdir_seen=
19694ac_sed_dataroot='
19695/datarootdir/ {
19696 p
19697 q
19698}
19699/@datadir@/p
19700/@docdir@/p
19701/@infodir@/p
19702/@localedir@/p
19703/@mandir@/p'
19704case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19705*datarootdir*) ac_datarootdir_seen=yes;;
19706*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19708$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19709_ACEOF
19710cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19711 ac_datarootdir_hack='
19712 s&@datadir@&$datadir&g
19713 s&@docdir@&$docdir&g
19714 s&@infodir@&$infodir&g
19715 s&@localedir@&$localedir&g
19716 s&@mandir@&$mandir&g
19717 s&\\\${datarootdir}&$datarootdir&g' ;;
19718esac
19719_ACEOF
19720
19721# Neutralize VPATH when `$srcdir' = `.'.
19722# Shell code in configure.ac might set extrasub.
19723# FIXME: do we really want to maintain this feature?
19724cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19725ac_sed_extra="$ac_vpsub
19726$extrasub
19727_ACEOF
19728cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19729:t
19730/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19731s|@configure_input@|$ac_sed_conf_input|;t t
19732s&@top_builddir@&$ac_top_builddir_sub&;t t
19733s&@top_build_prefix@&$ac_top_build_prefix&;t t
19734s&@srcdir@&$ac_srcdir&;t t
19735s&@abs_srcdir@&$ac_abs_srcdir&;t t
19736s&@top_srcdir@&$ac_top_srcdir&;t t
19737s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19738s&@builddir@&$ac_builddir&;t t
19739s&@abs_builddir@&$ac_abs_builddir&;t t
19740s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19741s&@INSTALL@&$ac_INSTALL&;t t
19742s&@MKDIR_P@&$ac_MKDIR_P&;t t
19743$ac_datarootdir_hack
19744"
19745eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
19746 || as_fn_error "could not create $ac_file" "$LINENO" 5
19747
19748test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19749 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19750 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19752which seems to be undefined. Please make sure it is defined." >&5
19753$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19754which seems to be undefined. Please make sure it is defined." >&2;}
19755
19756 rm -f "$tmp/stdin"
19757 case $ac_file in
19758 -) cat "$tmp/out" && rm -f "$tmp/out";;
19759 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
19760 esac \
19761 || as_fn_error "could not create $ac_file" "$LINENO" 5
19762 ;;
19763 :H)
19764 #
19765 # CONFIG_HEADER
19766 #
19767 if test x"$ac_file" != x-; then
19768 {
19769 $as_echo "/* $configure_input */" \
19770 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
19771 } >"$tmp/config.h" \
19772 || as_fn_error "could not create $ac_file" "$LINENO" 5
19773 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
19774 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19775$as_echo "$as_me: $ac_file is unchanged" >&6;}
19776 else
19777 rm -f "$ac_file"
19778 mv "$tmp/config.h" "$ac_file" \
19779 || as_fn_error "could not create $ac_file" "$LINENO" 5
19780 fi
19781 else
19782 $as_echo "/* $configure_input */" \
19783 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
19784 || as_fn_error "could not create -" "$LINENO" 5
19785 fi
19786# Compute "$ac_file"'s index in $config_headers.
19787_am_arg="$ac_file"
19788_am_stamp_count=1
19789for _am_header in $config_headers :; do
19790 case $_am_header in
19791 $_am_arg | $_am_arg:* )
19792 break ;;
19793 * )
19794 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19795 esac
19796done
19797echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19798$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19799 X"$_am_arg" : 'X\(//\)[^/]' \| \
19800 X"$_am_arg" : 'X\(//\)$' \| \
19801 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19802$as_echo X"$_am_arg" |
19803 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19804 s//\1/
19805 q
19806 }
19807 /^X\(\/\/\)[^/].*/{
19808 s//\1/
19809 q
19810 }
19811 /^X\(\/\/\)$/{
19812 s//\1/
19813 q
19814 }
19815 /^X\(\/\).*/{
19816 s//\1/
19817 q
19818 }
19819 s/.*/./; q'`/stamp-h$_am_stamp_count
19820 ;;
19821
19822 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19823$as_echo "$as_me: executing $ac_file commands" >&6;}
19824 ;;
19825 esac
19826
19827
19828 case $ac_file$ac_mode in
19829 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19830 # Autoconf 2.62 quotes --file arguments for eval, but not when files
19831 # are listed without --file. Let's play safe and only enable the eval
19832 # if we detect the quoting.
19833 case $CONFIG_FILES in
19834 *\'*) eval set x "$CONFIG_FILES" ;;
19835 *) set x $CONFIG_FILES ;;
19836 esac
19837 shift
19838 for mf
19839 do
19840 # Strip MF so we end up with the name of the file.
19841 mf=`echo "$mf" | sed -e 's/:.*$//'`
19842 # Check whether this is an Automake generated Makefile or not.
19843 # We used to match only the files named `Makefile.in', but
19844 # some people rename them; so instead we look at the file content.
19845 # Grep'ing the first line is not enough: some people post-process
19846 # each Makefile.in and add a new line on top of each file to say so.
19847 # Grep'ing the whole file is not good either: AIX grep has a line
19848 # limit of 2048, but all sed's we know have understand at least 4000.
19849 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19850 dirpart=`$as_dirname -- "$mf" ||
19851$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19852 X"$mf" : 'X\(//\)[^/]' \| \
19853 X"$mf" : 'X\(//\)$' \| \
19854 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19855$as_echo X"$mf" |
19856 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19857 s//\1/
19858 q
19859 }
19860 /^X\(\/\/\)[^/].*/{
19861 s//\1/
19862 q
19863 }
19864 /^X\(\/\/\)$/{
19865 s//\1/
19866 q
19867 }
19868 /^X\(\/\).*/{
19869 s//\1/
19870 q
19871 }
19872 s/.*/./; q'`
19873 else
19874 continue
19875 fi
19876 # Extract the definition of DEPDIR, am__include, and am__quote
19877 # from the Makefile without running `make'.
19878 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19879 test -z "$DEPDIR" && continue
19880 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19881 test -z "am__include" && continue
19882 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19883 # When using ansi2knr, U may be empty or an underscore; expand it
19884 U=`sed -n 's/^U = //p' < "$mf"`
19885 # Find all dependency output files, they are included files with
19886 # $(DEPDIR) in their names. We invoke sed twice because it is the
19887 # simplest approach to changing $(DEPDIR) to its actual value in the
19888 # expansion.
19889 for file in `sed -n "
19890 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19891 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19892 # Make sure the directory exists.
19893 test -f "$dirpart/$file" && continue
19894 fdir=`$as_dirname -- "$file" ||
19895$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19896 X"$file" : 'X\(//\)[^/]' \| \
19897 X"$file" : 'X\(//\)$' \| \
19898 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19899$as_echo X"$file" |
19900 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19901 s//\1/
19902 q
19903 }
19904 /^X\(\/\/\)[^/].*/{
19905 s//\1/
19906 q
19907 }
19908 /^X\(\/\/\)$/{
19909 s//\1/
19910 q
19911 }
19912 /^X\(\/\).*/{
19913 s//\1/
19914 q
19915 }
19916 s/.*/./; q'`
19917 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19918 # echo "creating $dirpart/$file"
19919 echo '# dummy' > "$dirpart/$file"
19920 done
19921 done
19922}
19923 ;;
19924 "default":C)
19925case x$CONFIG_HEADERS in
19926xconfig.h:config.in)
19927echo > stamp-h ;;
19928esac
19929 ;;
19930
19931 esac
19932done # for ac_tag
19933
19934
19935as_fn_exit 0
19936_ACEOF
19937ac_clean_files=$ac_clean_files_save
19938
19939test $ac_write_fail = 0 ||
19940 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
19941
19942
19943# configure is writing to config.log, and then calls config.status.
19944# config.status does its own redirection, appending to config.log.
19945# Unfortunately, on DOS this fails, as config.log is still kept open
19946# by configure, so config.status won't be able to write to it; its
19947# output is simply discarded. So we exec the FD to /dev/null,
19948# effectively closing config.log, so it can be properly (re)opened and
19949# appended to by config.status. When coming back to configure, we
19950# need to make the FD available again.
19951if test "$no_create" != yes; then
19952 ac_cs_success=:
19953 ac_config_status_args=
19954 test "$silent" = yes &&
19955 ac_config_status_args="$ac_config_status_args --quiet"
19956 exec 5>/dev/null
19957 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19958 exec 5>>config.log
19959 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19960 # would make configure fail if this is the last instruction.
19961 $ac_cs_success || as_fn_exit $?
19962fi
19963if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19965$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19966fi
19967
19968
19969exit 0
This page took 1.157608 seconds and 4 git commands to generate.