Update Copyright year range in all files maintained by GDB.
[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
e26b6bb0 591ac_header_list=
8690e634 592gl_fnmatch_required=POSIX
3574124b 593ac_func_list=
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
684REPLACE_UTIMENSAT
685REPLACE_STAT
686REPLACE_MKNOD
687REPLACE_MKFIFO
688REPLACE_MKDIR
689REPLACE_LSTAT
690REPLACE_FUTIMENS
691REPLACE_FSTATAT
692REPLACE_FSTAT
693HAVE_UTIMENSAT
694HAVE_MKNODAT
695HAVE_MKNOD
696HAVE_MKFIFOAT
697HAVE_MKFIFO
698HAVE_MKDIRAT
699HAVE_LSTAT
700HAVE_LCHMOD
701HAVE_FUTIMENS
702HAVE_FSTATAT
703HAVE_FCHMODAT
704GNULIB_UTIMENSAT
705GNULIB_STAT
706GNULIB_MKNODAT
707GNULIB_MKNOD
708GNULIB_MKFIFOAT
709GNULIB_MKFIFO
710GNULIB_MKDIRAT
711GNULIB_LSTAT
712GNULIB_LCHMOD
713GNULIB_FUTIMENS
714GNULIB_FSTATAT
715GNULIB_FSTAT
716GNULIB_FCHMODAT
63ce7108
TT
717NEXT_AS_FIRST_DIRECTIVE_STRING_H
718NEXT_STRING_H
c971b7fa
PA
719NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
720NEXT_STDDEF_H
721GL_GENERATE_STDDEF_H_FALSE
722GL_GENERATE_STDDEF_H_TRUE
723STDDEF_H
724HAVE_WCHAR_T
725REPLACE_NULL
8690e634
JK
726HAVE__BOOL
727GL_GENERATE_STDBOOL_H_FALSE
728GL_GENERATE_STDBOOL_H_TRUE
729STDBOOL_H
c971b7fa
PA
730UNDEFINE_STRTOK_R
731REPLACE_STRTOK_R
732REPLACE_STRSIGNAL
733REPLACE_STRNLEN
734REPLACE_STRNDUP
735REPLACE_STRNCAT
736REPLACE_STRERROR_R
737REPLACE_STRERROR
738REPLACE_STRCHRNUL
739REPLACE_STRCASESTR
740REPLACE_STRSTR
741REPLACE_STRDUP
742REPLACE_STPNCPY
743REPLACE_MEMMEM
744REPLACE_MEMCHR
745HAVE_STRVERSCMP
746HAVE_DECL_STRSIGNAL
747HAVE_DECL_STRERROR_R
748HAVE_DECL_STRTOK_R
749HAVE_STRCASESTR
750HAVE_STRSEP
751HAVE_STRPBRK
752HAVE_DECL_STRNLEN
753HAVE_DECL_STRNDUP
754HAVE_DECL_STRDUP
755HAVE_STRCHRNUL
756HAVE_STPNCPY
757HAVE_STPCPY
758HAVE_RAWMEMCHR
759HAVE_DECL_MEMRCHR
760HAVE_MEMPCPY
761HAVE_DECL_MEMMEM
762HAVE_MEMCHR
763HAVE_FFSLL
764HAVE_FFSL
765HAVE_MBSLEN
766GNULIB_STRVERSCMP
767GNULIB_STRSIGNAL
768GNULIB_STRERROR_R
769GNULIB_STRERROR
770GNULIB_MBSTOK_R
771GNULIB_MBSSEP
772GNULIB_MBSSPN
773GNULIB_MBSPBRK
774GNULIB_MBSCSPN
775GNULIB_MBSCASESTR
776GNULIB_MBSPCASECMP
777GNULIB_MBSNCASECMP
778GNULIB_MBSCASECMP
779GNULIB_MBSSTR
780GNULIB_MBSRCHR
781GNULIB_MBSCHR
782GNULIB_MBSNLEN
783GNULIB_MBSLEN
784GNULIB_STRTOK_R
785GNULIB_STRCASESTR
786GNULIB_STRSTR
787GNULIB_STRSEP
788GNULIB_STRPBRK
789GNULIB_STRNLEN
790GNULIB_STRNDUP
791GNULIB_STRNCAT
792GNULIB_STRDUP
793GNULIB_STRCHRNUL
794GNULIB_STPNCPY
795GNULIB_STPCPY
796GNULIB_RAWMEMCHR
797GNULIB_MEMRCHR
798GNULIB_MEMPCPY
799GNULIB_MEMMEM
800GNULIB_MEMCHR
801GNULIB_FFSLL
802GNULIB_FFSL
8690e634
JK
803LOCALE_FR
804LOCALE_FR_UTF8
805LOCALE_ZH_CN
806LOCALE_JA
807REPLACE_WCSWIDTH
808REPLACE_WCWIDTH
809REPLACE_WCSNRTOMBS
810REPLACE_WCSRTOMBS
811REPLACE_WCRTOMB
812REPLACE_MBSNRTOWCS
813REPLACE_MBSRTOWCS
814REPLACE_MBRLEN
815REPLACE_MBRTOWC
816REPLACE_MBSINIT
817REPLACE_WCTOB
818REPLACE_BTOWC
819REPLACE_MBSTATE_T
820HAVE_DECL_WCWIDTH
821HAVE_DECL_WCTOB
822HAVE_WCSWIDTH
823HAVE_WCSTOK
824HAVE_WCSSTR
825HAVE_WCSPBRK
826HAVE_WCSSPN
827HAVE_WCSCSPN
828HAVE_WCSRCHR
829HAVE_WCSCHR
830HAVE_WCSDUP
831HAVE_WCSXFRM
832HAVE_WCSCOLL
833HAVE_WCSNCASECMP
834HAVE_WCSCASECMP
835HAVE_WCSNCMP
836HAVE_WCSCMP
837HAVE_WCSNCAT
838HAVE_WCSCAT
839HAVE_WCPNCPY
840HAVE_WCSNCPY
841HAVE_WCPCPY
842HAVE_WCSCPY
843HAVE_WCSNLEN
844HAVE_WCSLEN
845HAVE_WMEMSET
846HAVE_WMEMMOVE
847HAVE_WMEMCPY
848HAVE_WMEMCMP
849HAVE_WMEMCHR
850HAVE_WCSNRTOMBS
851HAVE_WCSRTOMBS
852HAVE_WCRTOMB
853HAVE_MBSNRTOWCS
854HAVE_MBSRTOWCS
855HAVE_MBRLEN
856HAVE_MBRTOWC
857HAVE_MBSINIT
858HAVE_BTOWC
859GNULIB_WCSWIDTH
860GNULIB_WCSTOK
861GNULIB_WCSSTR
862GNULIB_WCSPBRK
863GNULIB_WCSSPN
864GNULIB_WCSCSPN
865GNULIB_WCSRCHR
866GNULIB_WCSCHR
867GNULIB_WCSDUP
868GNULIB_WCSXFRM
869GNULIB_WCSCOLL
870GNULIB_WCSNCASECMP
871GNULIB_WCSCASECMP
872GNULIB_WCSNCMP
873GNULIB_WCSCMP
874GNULIB_WCSNCAT
875GNULIB_WCSCAT
876GNULIB_WCPNCPY
877GNULIB_WCSNCPY
878GNULIB_WCPCPY
879GNULIB_WCSCPY
880GNULIB_WCSNLEN
881GNULIB_WCSLEN
882GNULIB_WMEMSET
883GNULIB_WMEMMOVE
884GNULIB_WMEMCPY
885GNULIB_WMEMCMP
886GNULIB_WMEMCHR
887GNULIB_WCWIDTH
888GNULIB_WCSNRTOMBS
889GNULIB_WCSRTOMBS
890GNULIB_WCRTOMB
891GNULIB_MBSNRTOWCS
892GNULIB_MBSRTOWCS
893GNULIB_MBRLEN
894GNULIB_MBRTOWC
895GNULIB_MBSINIT
896GNULIB_WCTOB
897GNULIB_BTOWC
88b48903
WN
898NEXT_AS_FIRST_DIRECTIVE_MATH_H
899NEXT_MATH_H
8690e634
JK
900LOCALCHARSET_TESTS_ENVIRONMENT
901GLIBC21
c971b7fa
PA
902NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
903NEXT_INTTYPES_H
904UINT64_MAX_EQ_ULONG_MAX
905UINT32_MAX_LT_UINTMAX_MAX
906PRIPTR_PREFIX
907PRI_MACROS_BROKEN
908INT64_MAX_EQ_LONG_MAX
909INT32_MAX_LT_INTMAX_MAX
910REPLACE_STRTOIMAX
911HAVE_DECL_STRTOUMAX
912HAVE_DECL_STRTOIMAX
913HAVE_DECL_IMAXDIV
914HAVE_DECL_IMAXABS
915GNULIB_STRTOUMAX
916GNULIB_STRTOIMAX
917GNULIB_IMAXDIV
918GNULIB_IMAXABS
919GL_GENERATE_STDINT_H_FALSE
920GL_GENERATE_STDINT_H_TRUE
921STDINT_H
922WINT_T_SUFFIX
923WCHAR_T_SUFFIX
924SIG_ATOMIC_T_SUFFIX
925SIZE_T_SUFFIX
926PTRDIFF_T_SUFFIX
927HAVE_SIGNED_WINT_T
928HAVE_SIGNED_WCHAR_T
929HAVE_SIGNED_SIG_ATOMIC_T
930BITSIZEOF_WINT_T
931BITSIZEOF_WCHAR_T
932BITSIZEOF_SIG_ATOMIC_T
933BITSIZEOF_SIZE_T
934BITSIZEOF_PTRDIFF_T
935APPLE_UNIVERSAL_BUILD
936HAVE_SYS_BITYPES_H
937HAVE_SYS_INTTYPES_H
938HAVE_STDINT_H
939NEXT_AS_FIRST_DIRECTIVE_STDINT_H
940NEXT_STDINT_H
c971b7fa
PA
941HAVE_SYS_TYPES_H
942HAVE_INTTYPES_H
943HAVE_WCHAR_H
944HAVE_UNSIGNED_LONG_LONG_INT
945HAVE_LONG_LONG_INT
88b48903
WN
946FREXPL_LIBM
947HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
948FREXP_LIBM
949REPLACE_TRUNCL
950REPLACE_TRUNCF
951REPLACE_TRUNC
952REPLACE_SQRTL
953REPLACE_SIGNBIT_USING_GCC
954REPLACE_SIGNBIT
955REPLACE_ROUNDL
956REPLACE_ROUNDF
957REPLACE_ROUND
958REPLACE_REMAINDERL
959REPLACE_REMAINDERF
960REPLACE_REMAINDER
961REPLACE_NAN
962REPLACE_MODFL
963REPLACE_MODFF
964REPLACE_MODF
965REPLACE_LOGBL
966REPLACE_LOGBF
967REPLACE_LOGB
968REPLACE_LOG2L
969REPLACE_LOG2F
970REPLACE_LOG2
971REPLACE_LOG1PL
972REPLACE_LOG1PF
973REPLACE_LOG1P
974REPLACE_LOG10L
975REPLACE_LOG10F
976REPLACE_LOG10
977REPLACE_LOGL
978REPLACE_LOGF
979REPLACE_LOG
980REPLACE_LDEXPL
981REPLACE_ISNAN
982REPLACE_ISINF
983REPLACE_ISFINITE
984REPLACE_ILOGBF
985REPLACE_ILOGB
986REPLACE_HYPOTL
987REPLACE_HYPOTF
988REPLACE_HYPOT
989REPLACE_HUGE_VAL
990REPLACE_FREXPL
991REPLACE_FREXP
992REPLACE_FREXPF
993REPLACE_FMODL
994REPLACE_FMODF
995REPLACE_FMOD
996REPLACE_FMAL
997REPLACE_FMAF
998REPLACE_FMA
999REPLACE_FLOORL
1000REPLACE_FLOORF
1001REPLACE_FLOOR
1002REPLACE_FABSL
1003REPLACE_EXP2L
1004REPLACE_EXP2
1005REPLACE_EXPM1F
1006REPLACE_EXPM1
1007REPLACE_CEILL
1008REPLACE_CEILF
1009REPLACE_CEIL
1010REPLACE_CBRTL
1011REPLACE_CBRTF
1012HAVE_DECL_TRUNCL
1013HAVE_DECL_TRUNCF
1014HAVE_DECL_TRUNC
1015HAVE_DECL_TANL
1016HAVE_DECL_SQRTL
1017HAVE_DECL_SINL
1018HAVE_DECL_ROUNDL
1019HAVE_DECL_ROUNDF
1020HAVE_DECL_ROUND
1021HAVE_DECL_RINTF
1022HAVE_DECL_REMAINDERL
1023HAVE_DECL_REMAINDER
1024HAVE_DECL_LOGB
1025HAVE_DECL_LOG2L
1026HAVE_DECL_LOG2F
1027HAVE_DECL_LOG2
1028HAVE_DECL_LOG10L
1029HAVE_DECL_LOGL
1030HAVE_DECL_LDEXPL
1031HAVE_DECL_FREXPL
1032HAVE_DECL_FLOORL
1033HAVE_DECL_FLOORF
1034HAVE_DECL_EXPM1L
1035HAVE_DECL_EXP2L
1036HAVE_DECL_EXP2F
1037HAVE_DECL_EXP2
1038HAVE_DECL_EXPL
1039HAVE_DECL_COSL
1040HAVE_DECL_COPYSIGNF
1041HAVE_DECL_CEILL
1042HAVE_DECL_CEILF
1043HAVE_DECL_CBRTL
1044HAVE_DECL_CBRTF
1045HAVE_DECL_ATANL
1046HAVE_DECL_ASINL
1047HAVE_DECL_ACOSL
1048HAVE_TANHF
1049HAVE_TANL
1050HAVE_TANF
1051HAVE_SQRTL
1052HAVE_SQRTF
1053HAVE_SINHF
1054HAVE_SINL
1055HAVE_SINF
1056HAVE_RINTL
1057HAVE_RINT
1058HAVE_REMAINDERF
1059HAVE_REMAINDER
1060HAVE_POWF
1061HAVE_MODFL
1062HAVE_MODFF
1063HAVE_LOGBL
1064HAVE_LOGBF
1065HAVE_LOG1PL
1066HAVE_LOG1PF
1067HAVE_LOG1P
1068HAVE_LOG10L
1069HAVE_LOG10F
1070HAVE_LOGL
1071HAVE_LOGF
1072HAVE_LDEXPF
1073HAVE_ISNANL
1074HAVE_ISNAND
1075HAVE_ISNANF
1076HAVE_ILOGBL
1077HAVE_ILOGBF
1078HAVE_ILOGB
1079HAVE_HYPOTL
1080HAVE_HYPOTF
1081HAVE_FREXPF
1082HAVE_FMODL
1083HAVE_FMODF
1084HAVE_FMAL
1085HAVE_FMAF
1086HAVE_FMA
1087HAVE_FABSL
1088HAVE_FABSF
1089HAVE_EXPM1F
1090HAVE_EXPM1
1091HAVE_EXPL
1092HAVE_EXPF
1093HAVE_COSHF
1094HAVE_COSL
1095HAVE_COSF
1096HAVE_COPYSIGNL
1097HAVE_COPYSIGN
1098HAVE_CBRTL
1099HAVE_CBRTF
1100HAVE_CBRT
1101HAVE_ATAN2F
1102HAVE_ATANL
1103HAVE_ATANF
1104HAVE_ASINL
1105HAVE_ASINF
1106HAVE_ACOSL
1107HAVE_ACOSF
1108GNULIB_TRUNCL
1109GNULIB_TRUNCF
1110GNULIB_TRUNC
1111GNULIB_TANHF
1112GNULIB_TANL
1113GNULIB_TANF
1114GNULIB_SQRTL
1115GNULIB_SQRTF
1116GNULIB_SINHF
1117GNULIB_SINL
1118GNULIB_SINF
1119GNULIB_SIGNBIT
1120GNULIB_ROUNDL
1121GNULIB_ROUNDF
1122GNULIB_ROUND
1123GNULIB_RINTL
1124GNULIB_RINTF
1125GNULIB_RINT
1126GNULIB_REMAINDERL
1127GNULIB_REMAINDERF
1128GNULIB_REMAINDER
1129GNULIB_POWF
1130GNULIB_MODFL
1131GNULIB_MODFF
1132GNULIB_MODF
1133GNULIB_LOGBL
1134GNULIB_LOGBF
1135GNULIB_LOGB
1136GNULIB_LOG2L
1137GNULIB_LOG2F
1138GNULIB_LOG2
1139GNULIB_LOG1PL
1140GNULIB_LOG1PF
1141GNULIB_LOG1P
1142GNULIB_LOG10L
1143GNULIB_LOG10F
1144GNULIB_LOG10
1145GNULIB_LOGL
1146GNULIB_LOGF
1147GNULIB_LOG
1148GNULIB_LDEXPL
1149GNULIB_LDEXPF
1150GNULIB_ISNANL
1151GNULIB_ISNAND
1152GNULIB_ISNANF
1153GNULIB_ISNAN
1154GNULIB_ISINF
1155GNULIB_ISFINITE
1156GNULIB_ILOGBL
1157GNULIB_ILOGBF
1158GNULIB_ILOGB
1159GNULIB_HYPOTL
1160GNULIB_HYPOTF
1161GNULIB_HYPOT
1162GNULIB_FREXPL
1163GNULIB_FREXP
1164GNULIB_FREXPF
1165GNULIB_FMODL
1166GNULIB_FMODF
1167GNULIB_FMOD
1168GNULIB_FMAL
1169GNULIB_FMAF
1170GNULIB_FMA
1171GNULIB_FLOORL
1172GNULIB_FLOORF
1173GNULIB_FLOOR
1174GNULIB_FABSL
1175GNULIB_FABSF
1176GNULIB_EXPM1L
1177GNULIB_EXPM1F
1178GNULIB_EXPM1
1179GNULIB_EXP2L
1180GNULIB_EXP2F
1181GNULIB_EXP2
1182GNULIB_EXPL
1183GNULIB_EXPF
1184GNULIB_COSHF
1185GNULIB_COSL
1186GNULIB_COSF
1187GNULIB_COPYSIGNL
1188GNULIB_COPYSIGNF
1189GNULIB_COPYSIGN
1190GNULIB_CEILL
1191GNULIB_CEILF
1192GNULIB_CEIL
1193GNULIB_CBRTL
1194GNULIB_CBRTF
1195GNULIB_CBRT
1196GNULIB_ATAN2F
1197GNULIB_ATANL
1198GNULIB_ATANF
1199GNULIB_ASINL
1200GNULIB_ASINF
1201GNULIB_ACOSL
1202GNULIB_ACOSF
8690e634
JK
1203GL_GENERATE_FNMATCH_H_FALSE
1204GL_GENERATE_FNMATCH_H_TRUE
1205FNMATCH_H
88b48903
WN
1206REPLACE_ITOLD
1207GL_GENERATE_FLOAT_H_FALSE
1208GL_GENERATE_FLOAT_H_TRUE
1209FLOAT_H
1210NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1211NEXT_FLOAT_H
e26b6bb0
TT
1212HAVE_DIRENT_H
1213NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1214NEXT_DIRENT_H
88b48903
WN
1215PRAGMA_COLUMNS
1216PRAGMA_SYSTEM_HEADER
1217INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1218INCLUDE_NEXT
e26b6bb0
TT
1219REPLACE_FDOPENDIR
1220REPLACE_DIRFD
1221REPLACE_CLOSEDIR
1222REPLACE_OPENDIR
1223HAVE_ALPHASORT
1224HAVE_SCANDIR
1225HAVE_FDOPENDIR
1226HAVE_DECL_FDOPENDIR
1227HAVE_DECL_DIRFD
1228HAVE_CLOSEDIR
1229HAVE_REWINDDIR
1230HAVE_READDIR
1231HAVE_OPENDIR
1232GNULIB_ALPHASORT
1233GNULIB_SCANDIR
1234GNULIB_FDOPENDIR
1235GNULIB_DIRFD
1236GNULIB_CLOSEDIR
1237GNULIB_REWINDDIR
1238GNULIB_READDIR
1239GNULIB_OPENDIR
1240UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1241UNISTD_H_HAVE_WINSOCK2_H
1242REPLACE_WRITE
1243REPLACE_USLEEP
1244REPLACE_UNLINKAT
1245REPLACE_UNLINK
1246REPLACE_TTYNAME_R
1247REPLACE_SYMLINK
1248REPLACE_SLEEP
1249REPLACE_RMDIR
1250REPLACE_READLINK
1251REPLACE_READ
1252REPLACE_PWRITE
1253REPLACE_PREAD
1254REPLACE_LSEEK
1255REPLACE_LINKAT
1256REPLACE_LINK
1257REPLACE_LCHOWN
1258REPLACE_ISATTY
1259REPLACE_GETPAGESIZE
1260REPLACE_GETGROUPS
1261REPLACE_GETLOGIN_R
1262REPLACE_GETDOMAINNAME
1263REPLACE_GETCWD
1264REPLACE_FTRUNCATE
1265REPLACE_FCHOWNAT
1266REPLACE_DUP2
1267REPLACE_DUP
1268REPLACE_CLOSE
1269REPLACE_CHOWN
1270HAVE_SYS_PARAM_H
1271HAVE_OS_H
1272HAVE_DECL_TTYNAME_R
1273HAVE_DECL_SETHOSTNAME
1274HAVE_DECL_GETUSERSHELL
1275HAVE_DECL_GETPAGESIZE
1276HAVE_DECL_GETLOGIN_R
1277HAVE_DECL_GETDOMAINNAME
1278HAVE_DECL_FDATASYNC
1279HAVE_DECL_FCHDIR
1280HAVE_DECL_ENVIRON
1281HAVE_USLEEP
1282HAVE_UNLINKAT
1283HAVE_SYMLINKAT
1284HAVE_SYMLINK
1285HAVE_SLEEP
1286HAVE_SETHOSTNAME
1287HAVE_READLINKAT
1288HAVE_READLINK
1289HAVE_PWRITE
1290HAVE_PREAD
1291HAVE_PIPE2
1292HAVE_PIPE
1293HAVE_LINKAT
1294HAVE_LINK
1295HAVE_LCHOWN
1296HAVE_GROUP_MEMBER
1297HAVE_GETPAGESIZE
1298HAVE_GETLOGIN
1299HAVE_GETHOSTNAME
1300HAVE_GETGROUPS
1301HAVE_GETDTABLESIZE
1302HAVE_FTRUNCATE
1303HAVE_FSYNC
1304HAVE_FDATASYNC
1305HAVE_FCHOWNAT
1306HAVE_FCHDIR
1307HAVE_FACCESSAT
1308HAVE_EUIDACCESS
1309HAVE_DUP3
1310HAVE_DUP2
1311HAVE_CHOWN
1312GNULIB_WRITE
1313GNULIB_USLEEP
1314GNULIB_UNLINKAT
1315GNULIB_UNLINK
1316GNULIB_UNISTD_H_SIGPIPE
1317GNULIB_UNISTD_H_NONBLOCKING
1318GNULIB_TTYNAME_R
1319GNULIB_SYMLINKAT
1320GNULIB_SYMLINK
1321GNULIB_SLEEP
1322GNULIB_SETHOSTNAME
1323GNULIB_RMDIR
1324GNULIB_READLINKAT
1325GNULIB_READLINK
1326GNULIB_READ
1327GNULIB_PWRITE
1328GNULIB_PREAD
1329GNULIB_PIPE2
1330GNULIB_PIPE
1331GNULIB_LSEEK
1332GNULIB_LINKAT
1333GNULIB_LINK
1334GNULIB_LCHOWN
1335GNULIB_ISATTY
1336GNULIB_GROUP_MEMBER
1337GNULIB_GETUSERSHELL
1338GNULIB_GETPAGESIZE
1339GNULIB_GETLOGIN_R
1340GNULIB_GETLOGIN
1341GNULIB_GETHOSTNAME
1342GNULIB_GETGROUPS
1343GNULIB_GETDTABLESIZE
1344GNULIB_GETDOMAINNAME
1345GNULIB_GETCWD
1346GNULIB_FTRUNCATE
1347GNULIB_FSYNC
1348GNULIB_FDATASYNC
1349GNULIB_FCHOWNAT
1350GNULIB_FCHDIR
1351GNULIB_FACCESSAT
1352GNULIB_EUIDACCESS
1353GNULIB_ENVIRON
1354GNULIB_DUP3
1355GNULIB_DUP2
1356GNULIB_DUP
1357GNULIB_CLOSE
1358GNULIB_CHOWN
1359GNULIB_CHDIR
8690e634
JK
1360pkglibexecdir
1361lispdir
1362GL_GENERATE_ALLOCA_H_FALSE
1363GL_GENERATE_ALLOCA_H_TRUE
1364ALLOCA_H
1365ALLOCA
c971b7fa
PA
1366GL_COND_LIBTOOL_FALSE
1367GL_COND_LIBTOOL_TRUE
1368target_os
1369target_vendor
1370target_cpu
1371target
1372RANLIB
1373ARFLAGS
1374AR
1375EGREP
1376GREP
1377CPP
1378host_os
1379host_vendor
1380host_cpu
1381host
1382build_os
1383build_vendor
1384build_cpu
1385build
1386OBJEXT
1387EXEEXT
1388ac_ct_CC
1389CPPFLAGS
1390LDFLAGS
1391CFLAGS
1392CC
1393MAINT
1394MAINTAINER_MODE_FALSE
1395MAINTAINER_MODE_TRUE
1396target_alias
1397host_alias
1398build_alias
1399LIBS
1400ECHO_T
1401ECHO_N
1402ECHO_C
1403DEFS
1404mandir
1405localedir
1406libdir
1407psdir
1408pdfdir
1409dvidir
1410htmldir
1411infodir
1412docdir
1413oldincludedir
1414includedir
1415localstatedir
1416sharedstatedir
1417sysconfdir
1418datadir
1419datarootdir
1420libexecdir
1421sbindir
1422bindir
1423program_transform_name
1424prefix
1425exec_prefix
1426PACKAGE_URL
1427PACKAGE_BUGREPORT
1428PACKAGE_STRING
1429PACKAGE_VERSION
1430PACKAGE_TARNAME
1431PACKAGE_NAME
1432PATH_SEPARATOR
1433SHELL'
1434ac_subst_files=''
1435ac_user_opts='
1436enable_option_checking
1437enable_maintainer_mode
1438enable_dependency_tracking
1439'
1440 ac_precious_vars='build_alias
1441host_alias
1442target_alias
1443CC
1444CFLAGS
1445LDFLAGS
1446LIBS
1447CPPFLAGS
1448CPP'
1449
1450
1451# Initialize some variables set by options.
1452ac_init_help=
1453ac_init_version=false
1454ac_unrecognized_opts=
1455ac_unrecognized_sep=
1456# The variables have the same names as the options, with
1457# dashes changed to underlines.
1458cache_file=/dev/null
1459exec_prefix=NONE
1460no_create=
1461no_recursion=
1462prefix=NONE
1463program_prefix=NONE
1464program_suffix=NONE
1465program_transform_name=s,x,x,
1466silent=
1467site=
1468srcdir=
1469verbose=
1470x_includes=NONE
1471x_libraries=NONE
1472
1473# Installation directory options.
1474# These are left unexpanded so users can "make install exec_prefix=/foo"
1475# and all the variables that are supposed to be based on exec_prefix
1476# by default will actually change.
1477# Use braces instead of parens because sh, perl, etc. also accept them.
1478# (The list follows the same order as the GNU Coding Standards.)
1479bindir='${exec_prefix}/bin'
1480sbindir='${exec_prefix}/sbin'
1481libexecdir='${exec_prefix}/libexec'
1482datarootdir='${prefix}/share'
1483datadir='${datarootdir}'
1484sysconfdir='${prefix}/etc'
1485sharedstatedir='${prefix}/com'
1486localstatedir='${prefix}/var'
1487includedir='${prefix}/include'
1488oldincludedir='/usr/include'
1489docdir='${datarootdir}/doc/${PACKAGE}'
1490infodir='${datarootdir}/info'
1491htmldir='${docdir}'
1492dvidir='${docdir}'
1493pdfdir='${docdir}'
1494psdir='${docdir}'
1495libdir='${exec_prefix}/lib'
1496localedir='${datarootdir}/locale'
1497mandir='${datarootdir}/man'
1498
1499ac_prev=
1500ac_dashdash=
1501for ac_option
1502do
1503 # If the previous option needs an argument, assign it.
1504 if test -n "$ac_prev"; then
1505 eval $ac_prev=\$ac_option
1506 ac_prev=
1507 continue
1508 fi
1509
1510 case $ac_option in
1511 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1512 *) ac_optarg=yes ;;
1513 esac
1514
1515 # Accept the important Cygnus configure options, so we can diagnose typos.
1516
1517 case $ac_dashdash$ac_option in
1518 --)
1519 ac_dashdash=yes ;;
1520
1521 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1522 ac_prev=bindir ;;
1523 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1524 bindir=$ac_optarg ;;
1525
1526 -build | --build | --buil | --bui | --bu)
1527 ac_prev=build_alias ;;
1528 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1529 build_alias=$ac_optarg ;;
1530
1531 -cache-file | --cache-file | --cache-fil | --cache-fi \
1532 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1533 ac_prev=cache_file ;;
1534 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1535 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1536 cache_file=$ac_optarg ;;
1537
1538 --config-cache | -C)
1539 cache_file=config.cache ;;
1540
1541 -datadir | --datadir | --datadi | --datad)
1542 ac_prev=datadir ;;
1543 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1544 datadir=$ac_optarg ;;
1545
1546 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1547 | --dataroo | --dataro | --datar)
1548 ac_prev=datarootdir ;;
1549 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1550 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1551 datarootdir=$ac_optarg ;;
1552
1553 -disable-* | --disable-*)
1554 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1555 # Reject names that are not valid shell variable names.
1556 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1557 as_fn_error "invalid feature name: $ac_useropt"
1558 ac_useropt_orig=$ac_useropt
1559 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1560 case $ac_user_opts in
1561 *"
1562"enable_$ac_useropt"
1563"*) ;;
1564 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1565 ac_unrecognized_sep=', ';;
1566 esac
1567 eval enable_$ac_useropt=no ;;
1568
1569 -docdir | --docdir | --docdi | --doc | --do)
1570 ac_prev=docdir ;;
1571 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1572 docdir=$ac_optarg ;;
1573
1574 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1575 ac_prev=dvidir ;;
1576 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1577 dvidir=$ac_optarg ;;
1578
1579 -enable-* | --enable-*)
1580 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1581 # Reject names that are not valid shell variable names.
1582 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1583 as_fn_error "invalid feature name: $ac_useropt"
1584 ac_useropt_orig=$ac_useropt
1585 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1586 case $ac_user_opts in
1587 *"
1588"enable_$ac_useropt"
1589"*) ;;
1590 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1591 ac_unrecognized_sep=', ';;
1592 esac
1593 eval enable_$ac_useropt=\$ac_optarg ;;
1594
1595 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1596 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1597 | --exec | --exe | --ex)
1598 ac_prev=exec_prefix ;;
1599 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1600 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1601 | --exec=* | --exe=* | --ex=*)
1602 exec_prefix=$ac_optarg ;;
1603
1604 -gas | --gas | --ga | --g)
1605 # Obsolete; use --with-gas.
1606 with_gas=yes ;;
1607
1608 -help | --help | --hel | --he | -h)
1609 ac_init_help=long ;;
1610 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1611 ac_init_help=recursive ;;
1612 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1613 ac_init_help=short ;;
1614
1615 -host | --host | --hos | --ho)
1616 ac_prev=host_alias ;;
1617 -host=* | --host=* | --hos=* | --ho=*)
1618 host_alias=$ac_optarg ;;
1619
1620 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1621 ac_prev=htmldir ;;
1622 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1623 | --ht=*)
1624 htmldir=$ac_optarg ;;
1625
1626 -includedir | --includedir | --includedi | --included | --include \
1627 | --includ | --inclu | --incl | --inc)
1628 ac_prev=includedir ;;
1629 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1630 | --includ=* | --inclu=* | --incl=* | --inc=*)
1631 includedir=$ac_optarg ;;
1632
1633 -infodir | --infodir | --infodi | --infod | --info | --inf)
1634 ac_prev=infodir ;;
1635 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1636 infodir=$ac_optarg ;;
1637
1638 -libdir | --libdir | --libdi | --libd)
1639 ac_prev=libdir ;;
1640 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1641 libdir=$ac_optarg ;;
1642
1643 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1644 | --libexe | --libex | --libe)
1645 ac_prev=libexecdir ;;
1646 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1647 | --libexe=* | --libex=* | --libe=*)
1648 libexecdir=$ac_optarg ;;
1649
1650 -localedir | --localedir | --localedi | --localed | --locale)
1651 ac_prev=localedir ;;
1652 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1653 localedir=$ac_optarg ;;
1654
1655 -localstatedir | --localstatedir | --localstatedi | --localstated \
1656 | --localstate | --localstat | --localsta | --localst | --locals)
1657 ac_prev=localstatedir ;;
1658 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1659 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1660 localstatedir=$ac_optarg ;;
1661
1662 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1663 ac_prev=mandir ;;
1664 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1665 mandir=$ac_optarg ;;
1666
1667 -nfp | --nfp | --nf)
1668 # Obsolete; use --without-fp.
1669 with_fp=no ;;
1670
1671 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1672 | --no-cr | --no-c | -n)
1673 no_create=yes ;;
1674
1675 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1676 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1677 no_recursion=yes ;;
1678
1679 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1680 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1681 | --oldin | --oldi | --old | --ol | --o)
1682 ac_prev=oldincludedir ;;
1683 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1684 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1685 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1686 oldincludedir=$ac_optarg ;;
1687
1688 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1689 ac_prev=prefix ;;
1690 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1691 prefix=$ac_optarg ;;
1692
1693 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1694 | --program-pre | --program-pr | --program-p)
1695 ac_prev=program_prefix ;;
1696 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1697 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1698 program_prefix=$ac_optarg ;;
1699
1700 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1701 | --program-suf | --program-su | --program-s)
1702 ac_prev=program_suffix ;;
1703 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1704 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1705 program_suffix=$ac_optarg ;;
1706
1707 -program-transform-name | --program-transform-name \
1708 | --program-transform-nam | --program-transform-na \
1709 | --program-transform-n | --program-transform- \
1710 | --program-transform | --program-transfor \
1711 | --program-transfo | --program-transf \
1712 | --program-trans | --program-tran \
1713 | --progr-tra | --program-tr | --program-t)
1714 ac_prev=program_transform_name ;;
1715 -program-transform-name=* | --program-transform-name=* \
1716 | --program-transform-nam=* | --program-transform-na=* \
1717 | --program-transform-n=* | --program-transform-=* \
1718 | --program-transform=* | --program-transfor=* \
1719 | --program-transfo=* | --program-transf=* \
1720 | --program-trans=* | --program-tran=* \
1721 | --progr-tra=* | --program-tr=* | --program-t=*)
1722 program_transform_name=$ac_optarg ;;
1723
1724 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1725 ac_prev=pdfdir ;;
1726 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1727 pdfdir=$ac_optarg ;;
1728
1729 -psdir | --psdir | --psdi | --psd | --ps)
1730 ac_prev=psdir ;;
1731 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1732 psdir=$ac_optarg ;;
1733
1734 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1735 | -silent | --silent | --silen | --sile | --sil)
1736 silent=yes ;;
1737
1738 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1739 ac_prev=sbindir ;;
1740 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1741 | --sbi=* | --sb=*)
1742 sbindir=$ac_optarg ;;
1743
1744 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1745 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1746 | --sharedst | --shareds | --shared | --share | --shar \
1747 | --sha | --sh)
1748 ac_prev=sharedstatedir ;;
1749 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1750 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1751 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1752 | --sha=* | --sh=*)
1753 sharedstatedir=$ac_optarg ;;
1754
1755 -site | --site | --sit)
1756 ac_prev=site ;;
1757 -site=* | --site=* | --sit=*)
1758 site=$ac_optarg ;;
1759
1760 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1761 ac_prev=srcdir ;;
1762 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1763 srcdir=$ac_optarg ;;
1764
1765 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1766 | --syscon | --sysco | --sysc | --sys | --sy)
1767 ac_prev=sysconfdir ;;
1768 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1769 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1770 sysconfdir=$ac_optarg ;;
1771
1772 -target | --target | --targe | --targ | --tar | --ta | --t)
1773 ac_prev=target_alias ;;
1774 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1775 target_alias=$ac_optarg ;;
1776
1777 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1778 verbose=yes ;;
1779
1780 -version | --version | --versio | --versi | --vers | -V)
1781 ac_init_version=: ;;
1782
1783 -with-* | --with-*)
1784 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1785 # Reject names that are not valid shell variable names.
1786 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1787 as_fn_error "invalid package name: $ac_useropt"
1788 ac_useropt_orig=$ac_useropt
1789 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1790 case $ac_user_opts in
1791 *"
1792"with_$ac_useropt"
1793"*) ;;
1794 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1795 ac_unrecognized_sep=', ';;
1796 esac
1797 eval with_$ac_useropt=\$ac_optarg ;;
1798
1799 -without-* | --without-*)
1800 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1801 # Reject names that are not valid shell variable names.
1802 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1803 as_fn_error "invalid package name: $ac_useropt"
1804 ac_useropt_orig=$ac_useropt
1805 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1806 case $ac_user_opts in
1807 *"
1808"with_$ac_useropt"
1809"*) ;;
1810 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1811 ac_unrecognized_sep=', ';;
1812 esac
1813 eval with_$ac_useropt=no ;;
1814
1815 --x)
1816 # Obsolete; use --with-x.
1817 with_x=yes ;;
1818
1819 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1820 | --x-incl | --x-inc | --x-in | --x-i)
1821 ac_prev=x_includes ;;
1822 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1823 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1824 x_includes=$ac_optarg ;;
1825
1826 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1827 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1828 ac_prev=x_libraries ;;
1829 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1830 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1831 x_libraries=$ac_optarg ;;
1832
1833 -*) as_fn_error "unrecognized option: \`$ac_option'
1834Try \`$0 --help' for more information."
1835 ;;
1836
1837 *=*)
1838 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1839 # Reject names that are not valid shell variable names.
1840 case $ac_envvar in #(
1841 '' | [0-9]* | *[!_$as_cr_alnum]* )
1842 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1843 esac
1844 eval $ac_envvar=\$ac_optarg
1845 export $ac_envvar ;;
1846
1847 *)
1848 # FIXME: should be removed in autoconf 3.0.
1849 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1850 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1851 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1852 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1853 ;;
1854
1855 esac
1856done
1857
1858if test -n "$ac_prev"; then
1859 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1860 as_fn_error "missing argument to $ac_option"
1861fi
1862
1863if test -n "$ac_unrecognized_opts"; then
1864 case $enable_option_checking in
1865 no) ;;
1866 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1867 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1868 esac
1869fi
1870
1871# Check all directory arguments for consistency.
1872for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1873 datadir sysconfdir sharedstatedir localstatedir includedir \
1874 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1875 libdir localedir mandir
1876do
1877 eval ac_val=\$$ac_var
1878 # Remove trailing slashes.
1879 case $ac_val in
1880 */ )
1881 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1882 eval $ac_var=\$ac_val;;
1883 esac
1884 # Be sure to have absolute directory names.
1885 case $ac_val in
1886 [\\/$]* | ?:[\\/]* ) continue;;
1887 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1888 esac
1889 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1890done
1891
1892# There might be people who depend on the old broken behavior: `$host'
1893# used to hold the argument of --host etc.
1894# FIXME: To remove some day.
1895build=$build_alias
1896host=$host_alias
1897target=$target_alias
1898
1899# FIXME: To remove some day.
1900if test "x$host_alias" != x; then
1901 if test "x$build_alias" = x; then
1902 cross_compiling=maybe
1903 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1904 If a cross compiler is detected then cross compile mode will be used." >&2
1905 elif test "x$build_alias" != "x$host_alias"; then
1906 cross_compiling=yes
1907 fi
1908fi
1909
1910ac_tool_prefix=
1911test -n "$host_alias" && ac_tool_prefix=$host_alias-
1912
1913test "$silent" = yes && exec 6>/dev/null
1914
1915
1916ac_pwd=`pwd` && test -n "$ac_pwd" &&
1917ac_ls_di=`ls -di .` &&
1918ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1919 as_fn_error "working directory cannot be determined"
1920test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1921 as_fn_error "pwd does not report name of working directory"
1922
1923
1924# Find the source files, if location was not specified.
1925if test -z "$srcdir"; then
1926 ac_srcdir_defaulted=yes
1927 # Try the directory containing this script, then the parent directory.
1928 ac_confdir=`$as_dirname -- "$as_myself" ||
1929$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1930 X"$as_myself" : 'X\(//\)[^/]' \| \
1931 X"$as_myself" : 'X\(//\)$' \| \
1932 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1933$as_echo X"$as_myself" |
1934 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1935 s//\1/
1936 q
1937 }
1938 /^X\(\/\/\)[^/].*/{
1939 s//\1/
1940 q
1941 }
1942 /^X\(\/\/\)$/{
1943 s//\1/
1944 q
1945 }
1946 /^X\(\/\).*/{
1947 s//\1/
1948 q
1949 }
1950 s/.*/./; q'`
1951 srcdir=$ac_confdir
1952 if test ! -r "$srcdir/$ac_unique_file"; then
1953 srcdir=..
1954 fi
1955else
1956 ac_srcdir_defaulted=no
1957fi
1958if test ! -r "$srcdir/$ac_unique_file"; then
1959 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1960 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1961fi
1962ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1963ac_abs_confdir=`(
1964 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1965 pwd)`
1966# When building in place, set srcdir=.
1967if test "$ac_abs_confdir" = "$ac_pwd"; then
1968 srcdir=.
1969fi
1970# Remove unnecessary trailing slashes from srcdir.
1971# Double slashes in file names in object file debugging info
1972# mess up M-x gdb in Emacs.
1973case $srcdir in
1974*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1975esac
1976for ac_var in $ac_precious_vars; do
1977 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1978 eval ac_env_${ac_var}_value=\$${ac_var}
1979 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1980 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1981done
1982
1983#
1984# Report the --help message.
1985#
1986if test "$ac_init_help" = "long"; then
1987 # Omit some internal or obsolete options to make the list less imposing.
1988 # This message is too long to be a string in the A/UX 3.1 sh.
1989 cat <<_ACEOF
1990\`configure' configures this package to adapt to many kinds of systems.
1991
1992Usage: $0 [OPTION]... [VAR=VALUE]...
1993
1994To assign environment variables (e.g., CC, CFLAGS...), specify them as
1995VAR=VALUE. See below for descriptions of some of the useful variables.
1996
1997Defaults for the options are specified in brackets.
1998
1999Configuration:
2000 -h, --help display this help and exit
2001 --help=short display options specific to this package
2002 --help=recursive display the short help of all the included packages
2003 -V, --version display version information and exit
2004 -q, --quiet, --silent do not print \`checking...' messages
2005 --cache-file=FILE cache test results in FILE [disabled]
2006 -C, --config-cache alias for \`--cache-file=config.cache'
2007 -n, --no-create do not create output files
2008 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2009
2010Installation directories:
2011 --prefix=PREFIX install architecture-independent files in PREFIX
2012 [$ac_default_prefix]
2013 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2014 [PREFIX]
2015
2016By default, \`make install' will install all the files in
2017\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2018an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2019for instance \`--prefix=\$HOME'.
2020
2021For better control, use the options below.
2022
2023Fine tuning of the installation directories:
2024 --bindir=DIR user executables [EPREFIX/bin]
2025 --sbindir=DIR system admin executables [EPREFIX/sbin]
2026 --libexecdir=DIR program executables [EPREFIX/libexec]
2027 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2028 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2029 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2030 --libdir=DIR object code libraries [EPREFIX/lib]
2031 --includedir=DIR C header files [PREFIX/include]
2032 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2033 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2034 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2035 --infodir=DIR info documentation [DATAROOTDIR/info]
2036 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2037 --mandir=DIR man documentation [DATAROOTDIR/man]
2038 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
2039 --htmldir=DIR html documentation [DOCDIR]
2040 --dvidir=DIR dvi documentation [DOCDIR]
2041 --pdfdir=DIR pdf documentation [DOCDIR]
2042 --psdir=DIR ps documentation [DOCDIR]
2043_ACEOF
2044
2045 cat <<\_ACEOF
2046
2047Program names:
2048 --program-prefix=PREFIX prepend PREFIX to installed program names
2049 --program-suffix=SUFFIX append SUFFIX to installed program names
2050 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2051
2052System types:
2053 --build=BUILD configure for building on BUILD [guessed]
2054 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2055 --target=TARGET configure for building compilers for TARGET [HOST]
2056_ACEOF
2057fi
2058
2059if test -n "$ac_init_help"; then
2060
2061 cat <<\_ACEOF
2062
2063Optional Features:
2064 --disable-option-checking ignore unrecognized --enable/--with options
2065 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2066 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2067 --enable-maintainer-mode enable make rules and dependencies not useful
2068 (and sometimes confusing) to the casual installer
2069 --disable-dependency-tracking speeds up one-time build
2070 --enable-dependency-tracking do not reject slow dependency extractors
2071
2072Some influential environment variables:
2073 CC C compiler command
2074 CFLAGS C compiler flags
2075 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2076 nonstandard directory <lib dir>
2077 LIBS libraries to pass to the linker, e.g. -l<library>
2078 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
2079 you have headers in a nonstandard directory <include dir>
2080 CPP C preprocessor
2081
2082Use these variables to override the choices made by `configure' or to help
2083it to find libraries and programs with nonstandard names/locations.
2084
2085Report bugs to the package provider.
2086_ACEOF
2087ac_status=$?
2088fi
2089
2090if test "$ac_init_help" = "recursive"; then
2091 # If there are subdirs, report their specific --help.
2092 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2093 test -d "$ac_dir" ||
2094 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2095 continue
2096 ac_builddir=.
2097
2098case "$ac_dir" in
2099.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2100*)
2101 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2102 # A ".." for each directory in $ac_dir_suffix.
2103 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2104 case $ac_top_builddir_sub in
2105 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2106 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2107 esac ;;
2108esac
2109ac_abs_top_builddir=$ac_pwd
2110ac_abs_builddir=$ac_pwd$ac_dir_suffix
2111# for backward compatibility:
2112ac_top_builddir=$ac_top_build_prefix
2113
2114case $srcdir in
2115 .) # We are building in place.
2116 ac_srcdir=.
2117 ac_top_srcdir=$ac_top_builddir_sub
2118 ac_abs_top_srcdir=$ac_pwd ;;
2119 [\\/]* | ?:[\\/]* ) # Absolute name.
2120 ac_srcdir=$srcdir$ac_dir_suffix;
2121 ac_top_srcdir=$srcdir
2122 ac_abs_top_srcdir=$srcdir ;;
2123 *) # Relative name.
2124 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2125 ac_top_srcdir=$ac_top_build_prefix$srcdir
2126 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2127esac
2128ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2129
2130 cd "$ac_dir" || { ac_status=$?; continue; }
2131 # Check for guested configure.
2132 if test -f "$ac_srcdir/configure.gnu"; then
2133 echo &&
2134 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2135 elif test -f "$ac_srcdir/configure"; then
2136 echo &&
2137 $SHELL "$ac_srcdir/configure" --help=recursive
2138 else
2139 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2140 fi || ac_status=$?
2141 cd "$ac_pwd" || { ac_status=$?; break; }
2142 done
2143fi
2144
2145test -n "$ac_init_help" && exit $ac_status
2146if $ac_init_version; then
2147 cat <<\_ACEOF
2148configure
2149generated by GNU Autoconf 2.64
2150
2151Copyright (C) 2009 Free Software Foundation, Inc.
2152This configure script is free software; the Free Software Foundation
2153gives unlimited permission to copy, distribute and modify it.
2154_ACEOF
2155 exit
2156fi
2157
2158## ------------------------ ##
2159## Autoconf initialization. ##
2160## ------------------------ ##
2161
2162# ac_fn_c_try_compile LINENO
2163# --------------------------
2164# Try to compile conftest.$ac_ext, and return whether this succeeded.
2165ac_fn_c_try_compile ()
2166{
2167 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2168 rm -f conftest.$ac_objext
2169 if { { ac_try="$ac_compile"
2170case "(($ac_try" in
2171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2172 *) ac_try_echo=$ac_try;;
2173esac
2174eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2175$as_echo "$ac_try_echo"; } >&5
2176 (eval "$ac_compile") 2>conftest.err
2177 ac_status=$?
2178 if test -s conftest.err; then
2179 grep -v '^ *+' conftest.err >conftest.er1
2180 cat conftest.er1 >&5
2181 mv -f conftest.er1 conftest.err
2182 fi
2183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2184 test $ac_status = 0; } && {
2185 test -z "$ac_c_werror_flag" ||
2186 test ! -s conftest.err
2187 } && test -s conftest.$ac_objext; then :
2188 ac_retval=0
2189else
2190 $as_echo "$as_me: failed program was:" >&5
2191sed 's/^/| /' conftest.$ac_ext >&5
2192
2193 ac_retval=1
2194fi
2195 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2196 return $ac_retval
2197
2198} # ac_fn_c_try_compile
2199
2200# ac_fn_c_try_cpp LINENO
2201# ----------------------
2202# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2203ac_fn_c_try_cpp ()
2204{
2205 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2206 if { { ac_try="$ac_cpp conftest.$ac_ext"
2207case "(($ac_try" in
2208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2209 *) ac_try_echo=$ac_try;;
2210esac
2211eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2212$as_echo "$ac_try_echo"; } >&5
2213 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2214 ac_status=$?
2215 if test -s conftest.err; then
2216 grep -v '^ *+' conftest.err >conftest.er1
2217 cat conftest.er1 >&5
2218 mv -f conftest.er1 conftest.err
2219 fi
2220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2221 test $ac_status = 0; } >/dev/null && {
2222 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2223 test ! -s conftest.err
2224 }; then :
2225 ac_retval=0
2226else
2227 $as_echo "$as_me: failed program was:" >&5
2228sed 's/^/| /' conftest.$ac_ext >&5
2229
2230 ac_retval=1
2231fi
2232 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2233 return $ac_retval
2234
2235} # ac_fn_c_try_cpp
2236
2237# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2238# -------------------------------------------------------
2239# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2240# the include files in INCLUDES and setting the cache variable VAR
2241# accordingly.
2242ac_fn_c_check_header_mongrel ()
2243{
2244 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2245 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2247$as_echo_n "checking for $2... " >&6; }
2248if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2249 $as_echo_n "(cached) " >&6
2250fi
2251eval ac_res=\$$3
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2253$as_echo "$ac_res" >&6; }
2254else
2255 # Is the header compilable?
2256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2257$as_echo_n "checking $2 usability... " >&6; }
2258cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2259/* end confdefs.h. */
2260$4
2261#include <$2>
2262_ACEOF
2263if ac_fn_c_try_compile "$LINENO"; then :
2264 ac_header_compiler=yes
2265else
2266 ac_header_compiler=no
2267fi
2268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2270$as_echo "$ac_header_compiler" >&6; }
2271
2272# Is the header present?
2273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2274$as_echo_n "checking $2 presence... " >&6; }
2275cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2276/* end confdefs.h. */
2277#include <$2>
2278_ACEOF
2279if ac_fn_c_try_cpp "$LINENO"; then :
2280 ac_header_preproc=yes
2281else
2282 ac_header_preproc=no
2283fi
2284rm -f conftest.err conftest.$ac_ext
2285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2286$as_echo "$ac_header_preproc" >&6; }
2287
2288# So? What about this header?
2289case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2290 yes:no: )
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2292$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2294$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2295 ;;
2296 no:yes:* )
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2298$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2300$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2302$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2304$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2306$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2307 ;;
2308esac
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2310$as_echo_n "checking for $2... " >&6; }
2311if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2312 $as_echo_n "(cached) " >&6
2313else
2314 eval "$3=\$ac_header_compiler"
2315fi
2316eval ac_res=\$$3
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2318$as_echo "$ac_res" >&6; }
2319fi
2320 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2321
2322} # ac_fn_c_check_header_mongrel
2323
2324# ac_fn_c_try_run LINENO
2325# ----------------------
2326# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2327# that executables *can* be run.
2328ac_fn_c_try_run ()
2329{
2330 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2331 if { { ac_try="$ac_link"
2332case "(($ac_try" in
2333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2334 *) ac_try_echo=$ac_try;;
2335esac
2336eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2337$as_echo "$ac_try_echo"; } >&5
2338 (eval "$ac_link") 2>&5
2339 ac_status=$?
2340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2341 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2342 { { case "(($ac_try" in
2343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2344 *) ac_try_echo=$ac_try;;
2345esac
2346eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2347$as_echo "$ac_try_echo"; } >&5
2348 (eval "$ac_try") 2>&5
2349 ac_status=$?
2350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2351 test $ac_status = 0; }; }; then :
2352 ac_retval=0
2353else
2354 $as_echo "$as_me: program exited with status $ac_status" >&5
2355 $as_echo "$as_me: failed program was:" >&5
2356sed 's/^/| /' conftest.$ac_ext >&5
2357
2358 ac_retval=$ac_status
2359fi
2360 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2361 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2362 return $ac_retval
2363
2364} # ac_fn_c_try_run
2365
2366# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2367# -------------------------------------------------------
2368# Tests whether HEADER exists and can be compiled using the include files in
2369# INCLUDES, setting the cache variable VAR accordingly.
2370ac_fn_c_check_header_compile ()
2371{
2372 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2374$as_echo_n "checking for $2... " >&6; }
2375if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2376 $as_echo_n "(cached) " >&6
2377else
2378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2379/* end confdefs.h. */
2380$4
2381#include <$2>
2382_ACEOF
2383if ac_fn_c_try_compile "$LINENO"; then :
2384 eval "$3=yes"
2385else
2386 eval "$3=no"
2387fi
2388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2389fi
2390eval ac_res=\$$3
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2392$as_echo "$ac_res" >&6; }
2393 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2394
2395} # ac_fn_c_check_header_compile
2396
2397# ac_fn_c_try_link LINENO
2398# -----------------------
2399# Try to link conftest.$ac_ext, and return whether this succeeded.
2400ac_fn_c_try_link ()
2401{
2402 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2403 rm -f conftest.$ac_objext conftest$ac_exeext
2404 if { { ac_try="$ac_link"
2405case "(($ac_try" in
2406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2407 *) ac_try_echo=$ac_try;;
2408esac
2409eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2410$as_echo "$ac_try_echo"; } >&5
2411 (eval "$ac_link") 2>conftest.err
2412 ac_status=$?
2413 if test -s conftest.err; then
2414 grep -v '^ *+' conftest.err >conftest.er1
2415 cat conftest.er1 >&5
2416 mv -f conftest.er1 conftest.err
2417 fi
2418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2419 test $ac_status = 0; } && {
2420 test -z "$ac_c_werror_flag" ||
2421 test ! -s conftest.err
2422 } && test -s conftest$ac_exeext && {
2423 test "$cross_compiling" = yes ||
2424 $as_test_x conftest$ac_exeext
2425 }; then :
2426 ac_retval=0
2427else
2428 $as_echo "$as_me: failed program was:" >&5
2429sed 's/^/| /' conftest.$ac_ext >&5
2430
2431 ac_retval=1
2432fi
2433 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2434 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2435 # interfere with the next link command; also delete a directory that is
2436 # left behind by Apple's compiler. We do this before executing the actions.
2437 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2438 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2439 return $ac_retval
2440
2441} # ac_fn_c_try_link
2442
8690e634
JK
2443# ac_fn_c_check_func LINENO FUNC VAR
2444# ----------------------------------
2445# Tests whether FUNC exists, setting the cache variable VAR accordingly
2446ac_fn_c_check_func ()
2447{
2448 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2450$as_echo_n "checking for $2... " >&6; }
2451if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2452 $as_echo_n "(cached) " >&6
2453else
2454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2455/* end confdefs.h. */
2456/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2457 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2458#define $2 innocuous_$2
2459
2460/* System header to define __stub macros and hopefully few prototypes,
2461 which can conflict with char $2 (); below.
2462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2463 <limits.h> exists even on freestanding compilers. */
2464
2465#ifdef __STDC__
2466# include <limits.h>
2467#else
2468# include <assert.h>
2469#endif
2470
2471#undef $2
2472
2473/* Override any GCC internal prototype to avoid an error.
2474 Use char because int might match the return type of a GCC
2475 builtin and then its argument prototype would still apply. */
2476#ifdef __cplusplus
2477extern "C"
2478#endif
2479char $2 ();
2480/* The GNU C library defines this for functions which it implements
2481 to always fail with ENOSYS. Some functions are actually named
2482 something starting with __ and the normal name is an alias. */
2483#if defined __stub_$2 || defined __stub___$2
2484choke me
2485#endif
2486
2487int
2488main ()
2489{
2490return $2 ();
2491 ;
2492 return 0;
2493}
2494_ACEOF
2495if ac_fn_c_try_link "$LINENO"; then :
2496 eval "$3=yes"
2497else
2498 eval "$3=no"
2499fi
2500rm -f core conftest.err conftest.$ac_objext \
2501 conftest$ac_exeext conftest.$ac_ext
2502fi
2503eval ac_res=\$$3
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2505$as_echo "$ac_res" >&6; }
2506 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2507
2508} # ac_fn_c_check_func
2509
8986e351
TT
2510# ac_fn_c_check_decl LINENO SYMBOL VAR
2511# ------------------------------------
2512# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2513ac_fn_c_check_decl ()
2514{
2515 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2517$as_echo_n "checking whether $2 is declared... " >&6; }
2518if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2519 $as_echo_n "(cached) " >&6
2520else
2521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2522/* end confdefs.h. */
2523$4
2524int
2525main ()
2526{
2527#ifndef $2
2528 (void) $2;
2529#endif
2530
2531 ;
2532 return 0;
2533}
2534_ACEOF
2535if ac_fn_c_try_compile "$LINENO"; then :
2536 eval "$3=yes"
2537else
2538 eval "$3=no"
2539fi
2540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2541fi
2542eval ac_res=\$$3
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2544$as_echo "$ac_res" >&6; }
2545 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2546
2547} # ac_fn_c_check_decl
2548
c971b7fa
PA
2549# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2550# --------------------------------------------
2551# Tries to find the compile-time value of EXPR in a program that includes
2552# INCLUDES, setting VAR accordingly. Returns whether the value could be
2553# computed
2554ac_fn_c_compute_int ()
2555{
2556 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2557 if test "$cross_compiling" = yes; then
2558 # Depending upon the size, compute the lo and hi bounds.
2559cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2560/* end confdefs.h. */
2561$4
2562int
2563main ()
2564{
2565static int test_array [1 - 2 * !(($2) >= 0)];
2566test_array [0] = 0
2567
2568 ;
2569 return 0;
2570}
2571_ACEOF
2572if ac_fn_c_try_compile "$LINENO"; then :
2573 ac_lo=0 ac_mid=0
2574 while :; do
2575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2576/* end confdefs.h. */
2577$4
2578int
2579main ()
2580{
2581static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2582test_array [0] = 0
2583
2584 ;
2585 return 0;
2586}
2587_ACEOF
2588if ac_fn_c_try_compile "$LINENO"; then :
2589 ac_hi=$ac_mid; break
2590else
2591 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2592 if test $ac_lo -le $ac_mid; then
2593 ac_lo= ac_hi=
2594 break
2595 fi
2596 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2597fi
2598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2599 done
2600else
2601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2602/* end confdefs.h. */
2603$4
2604int
2605main ()
2606{
2607static int test_array [1 - 2 * !(($2) < 0)];
2608test_array [0] = 0
2609
2610 ;
2611 return 0;
2612}
2613_ACEOF
2614if ac_fn_c_try_compile "$LINENO"; then :
2615 ac_hi=-1 ac_mid=-1
2616 while :; do
2617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2618/* end confdefs.h. */
2619$4
2620int
2621main ()
2622{
2623static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2624test_array [0] = 0
2625
2626 ;
2627 return 0;
2628}
2629_ACEOF
2630if ac_fn_c_try_compile "$LINENO"; then :
2631 ac_lo=$ac_mid; break
2632else
2633 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2634 if test $ac_mid -le $ac_hi; then
2635 ac_lo= ac_hi=
2636 break
2637 fi
2638 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2639fi
2640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2641 done
2642else
2643 ac_lo= ac_hi=
2644fi
2645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2646fi
2647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2648# Binary search between lo and hi bounds.
2649while test "x$ac_lo" != "x$ac_hi"; do
2650 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2652/* end confdefs.h. */
2653$4
2654int
2655main ()
2656{
2657static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2658test_array [0] = 0
2659
2660 ;
2661 return 0;
2662}
2663_ACEOF
2664if ac_fn_c_try_compile "$LINENO"; then :
2665 ac_hi=$ac_mid
2666else
2667 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2668fi
2669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2670done
2671case $ac_lo in #((
2672?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2673'') ac_retval=1 ;;
2674esac
2675 else
2676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2677/* end confdefs.h. */
2678$4
2679static long int longval () { return $2; }
2680static unsigned long int ulongval () { return $2; }
2681#include <stdio.h>
2682#include <stdlib.h>
2683int
2684main ()
2685{
2686
2687 FILE *f = fopen ("conftest.val", "w");
2688 if (! f)
2689 return 1;
2690 if (($2) < 0)
2691 {
2692 long int i = longval ();
2693 if (i != ($2))
2694 return 1;
2695 fprintf (f, "%ld", i);
2696 }
2697 else
2698 {
2699 unsigned long int i = ulongval ();
2700 if (i != ($2))
2701 return 1;
2702 fprintf (f, "%lu", i);
2703 }
2704 /* Do not output a trailing newline, as this causes \r\n confusion
2705 on some platforms. */
2706 return ferror (f) || fclose (f) != 0;
2707
2708 ;
2709 return 0;
2710}
2711_ACEOF
2712if ac_fn_c_try_run "$LINENO"; then :
2713 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2714else
2715 ac_retval=1
2716fi
2717rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2718 conftest.$ac_objext conftest.beam conftest.$ac_ext
2719rm -f conftest.val
2720
2721 fi
2722 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2723 return $ac_retval
2724
2725} # ac_fn_c_compute_int
2726
8690e634
JK
2727# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2728# -------------------------------------------
2729# Tests whether TYPE exists after having included INCLUDES, setting cache
2730# variable VAR accordingly.
2731ac_fn_c_check_type ()
c971b7fa
PA
2732{
2733 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2735$as_echo_n "checking for $2... " >&6; }
2736if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2737 $as_echo_n "(cached) " >&6
2738else
8690e634 2739 eval "$3=no"
c971b7fa
PA
2740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2741/* end confdefs.h. */
8690e634 2742$4
c971b7fa
PA
2743int
2744main ()
2745{
8690e634
JK
2746if (sizeof ($2))
2747 return 0;
c971b7fa
PA
2748 ;
2749 return 0;
2750}
2751_ACEOF
8690e634 2752if ac_fn_c_try_compile "$LINENO"; then :
c971b7fa
PA
2753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2754/* end confdefs.h. */
2755$4
2756int
2757main ()
2758{
8690e634
JK
2759if (sizeof (($2)))
2760 return 0;
c971b7fa
PA
2761 ;
2762 return 0;
2763}
2764_ACEOF
2765if ac_fn_c_try_compile "$LINENO"; then :
8690e634 2766
c971b7fa 2767else
8690e634
JK
2768 eval "$3=yes"
2769fi
2770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c971b7fa
PA
2771fi
2772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2773fi
2774eval ac_res=\$$3
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2776$as_echo "$ac_res" >&6; }
2777 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2778
8690e634 2779} # ac_fn_c_check_type
c971b7fa
PA
2780cat >config.log <<_ACEOF
2781This file contains any messages produced by compilers while
2782running configure, to aid debugging if configure makes a mistake.
2783
2784It was created by $as_me, which was
2785generated by GNU Autoconf 2.64. Invocation command line was
2786
2787 $ $0 $@
2788
2789_ACEOF
2790exec 5>>config.log
2791{
2792cat <<_ASUNAME
2793## --------- ##
2794## Platform. ##
2795## --------- ##
2796
2797hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2798uname -m = `(uname -m) 2>/dev/null || echo unknown`
2799uname -r = `(uname -r) 2>/dev/null || echo unknown`
2800uname -s = `(uname -s) 2>/dev/null || echo unknown`
2801uname -v = `(uname -v) 2>/dev/null || echo unknown`
2802
2803/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2804/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2805
2806/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2807/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2808/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2809/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2810/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2811/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2812/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2813
2814_ASUNAME
2815
2816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817for as_dir in $PATH
2818do
2819 IFS=$as_save_IFS
2820 test -z "$as_dir" && as_dir=.
2821 $as_echo "PATH: $as_dir"
2822 done
2823IFS=$as_save_IFS
2824
2825} >&5
2826
2827cat >&5 <<_ACEOF
2828
2829
2830## ----------- ##
2831## Core tests. ##
2832## ----------- ##
2833
2834_ACEOF
2835
2836
2837# Keep a trace of the command line.
2838# Strip out --no-create and --no-recursion so they do not pile up.
2839# Strip out --silent because we don't want to record it for future runs.
2840# Also quote any args containing shell meta-characters.
2841# Make two passes to allow for proper duplicate-argument suppression.
2842ac_configure_args=
2843ac_configure_args0=
2844ac_configure_args1=
2845ac_must_keep_next=false
2846for ac_pass in 1 2
2847do
2848 for ac_arg
2849 do
2850 case $ac_arg in
2851 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2852 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2853 | -silent | --silent | --silen | --sile | --sil)
2854 continue ;;
2855 *\'*)
2856 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2857 esac
2858 case $ac_pass in
2859 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2860 2)
2861 as_fn_append ac_configure_args1 " '$ac_arg'"
2862 if test $ac_must_keep_next = true; then
2863 ac_must_keep_next=false # Got value, back to normal.
2864 else
2865 case $ac_arg in
2866 *=* | --config-cache | -C | -disable-* | --disable-* \
2867 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2868 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2869 | -with-* | --with-* | -without-* | --without-* | --x)
2870 case "$ac_configure_args0 " in
2871 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2872 esac
2873 ;;
2874 -* ) ac_must_keep_next=true ;;
2875 esac
2876 fi
2877 as_fn_append ac_configure_args " '$ac_arg'"
2878 ;;
2879 esac
2880 done
2881done
2882{ ac_configure_args0=; unset ac_configure_args0;}
2883{ ac_configure_args1=; unset ac_configure_args1;}
2884
2885# When interrupted or exit'd, cleanup temporary files, and complete
2886# config.log. We remove comments because anyway the quotes in there
2887# would cause problems or look ugly.
2888# WARNING: Use '\'' to represent an apostrophe within the trap.
2889# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2890trap 'exit_status=$?
2891 # Save into config.log some information that might help in debugging.
2892 {
2893 echo
2894
2895 cat <<\_ASBOX
2896## ---------------- ##
2897## Cache variables. ##
2898## ---------------- ##
2899_ASBOX
2900 echo
2901 # The following way of writing the cache mishandles newlines in values,
2902(
2903 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2904 eval ac_val=\$$ac_var
2905 case $ac_val in #(
2906 *${as_nl}*)
2907 case $ac_var in #(
2908 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2909$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2910 esac
2911 case $ac_var in #(
2912 _ | IFS | as_nl) ;; #(
2913 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2914 *) { eval $ac_var=; unset $ac_var;} ;;
2915 esac ;;
2916 esac
2917 done
2918 (set) 2>&1 |
2919 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2920 *${as_nl}ac_space=\ *)
2921 sed -n \
2922 "s/'\''/'\''\\\\'\'''\''/g;
2923 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2924 ;; #(
2925 *)
2926 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2927 ;;
2928 esac |
2929 sort
2930)
2931 echo
2932
2933 cat <<\_ASBOX
2934## ----------------- ##
2935## Output variables. ##
2936## ----------------- ##
2937_ASBOX
2938 echo
2939 for ac_var in $ac_subst_vars
2940 do
2941 eval ac_val=\$$ac_var
2942 case $ac_val in
2943 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2944 esac
2945 $as_echo "$ac_var='\''$ac_val'\''"
2946 done | sort
2947 echo
2948
2949 if test -n "$ac_subst_files"; then
2950 cat <<\_ASBOX
2951## ------------------- ##
2952## File substitutions. ##
2953## ------------------- ##
2954_ASBOX
2955 echo
2956 for ac_var in $ac_subst_files
2957 do
2958 eval ac_val=\$$ac_var
2959 case $ac_val in
2960 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2961 esac
2962 $as_echo "$ac_var='\''$ac_val'\''"
2963 done | sort
2964 echo
2965 fi
2966
2967 if test -s confdefs.h; then
2968 cat <<\_ASBOX
2969## ----------- ##
2970## confdefs.h. ##
2971## ----------- ##
2972_ASBOX
2973 echo
2974 cat confdefs.h
2975 echo
2976 fi
2977 test "$ac_signal" != 0 &&
2978 $as_echo "$as_me: caught signal $ac_signal"
2979 $as_echo "$as_me: exit $exit_status"
2980 } >&5
2981 rm -f core *.core core.conftest.* &&
2982 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2983 exit $exit_status
2984' 0
2985for ac_signal in 1 2 13 15; do
2986 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2987done
2988ac_signal=0
2989
2990# confdefs.h avoids OS command line length limits that DEFS can exceed.
2991rm -f -r conftest* confdefs.h
2992
2993$as_echo "/* confdefs.h */" > confdefs.h
2994
2995# Predefined preprocessor variables.
2996
2997cat >>confdefs.h <<_ACEOF
2998#define PACKAGE_NAME "$PACKAGE_NAME"
2999_ACEOF
3000
3001cat >>confdefs.h <<_ACEOF
3002#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3003_ACEOF
3004
3005cat >>confdefs.h <<_ACEOF
3006#define PACKAGE_VERSION "$PACKAGE_VERSION"
3007_ACEOF
3008
3009cat >>confdefs.h <<_ACEOF
3010#define PACKAGE_STRING "$PACKAGE_STRING"
3011_ACEOF
3012
3013cat >>confdefs.h <<_ACEOF
3014#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3015_ACEOF
3016
3017cat >>confdefs.h <<_ACEOF
3018#define PACKAGE_URL "$PACKAGE_URL"
3019_ACEOF
3020
3021
3022# Let the site file select an alternate cache file if it wants to.
3023# Prefer an explicitly selected file to automatically selected ones.
3024ac_site_file1=NONE
3025ac_site_file2=NONE
3026if test -n "$CONFIG_SITE"; then
3027 ac_site_file1=$CONFIG_SITE
3028elif test "x$prefix" != xNONE; then
3029 ac_site_file1=$prefix/share/config.site
3030 ac_site_file2=$prefix/etc/config.site
3031else
3032 ac_site_file1=$ac_default_prefix/share/config.site
3033 ac_site_file2=$ac_default_prefix/etc/config.site
3034fi
3035for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3036do
3037 test "x$ac_site_file" = xNONE && continue
3038 if test -r "$ac_site_file"; then
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3040$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3041 sed 's/^/| /' "$ac_site_file" >&5
3042 . "$ac_site_file"
3043 fi
3044done
3045
3046if test -r "$cache_file"; then
3047 # Some versions of bash will fail to source /dev/null (special
3048 # files actually), so we avoid doing that.
3049 if test -f "$cache_file"; then
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3051$as_echo "$as_me: loading cache $cache_file" >&6;}
3052 case $cache_file in
3053 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3054 *) . "./$cache_file";;
3055 esac
3056 fi
3057else
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3059$as_echo "$as_me: creating cache $cache_file" >&6;}
3060 >$cache_file
3061fi
3062
e26b6bb0 3063as_fn_append ac_header_list " dirent.h"
3574124b
PA
3064as_fn_append ac_func_list " btowc"
3065as_fn_append ac_func_list " isblank"
3066as_fn_append ac_func_list " iswctype"
3067as_fn_append ac_func_list " mbsrtowcs"
3068as_fn_append ac_func_list " mempcpy"
3069as_fn_append ac_func_list " wmemchr"
3070as_fn_append ac_func_list " wmemcpy"
3071as_fn_append ac_func_list " wmempcpy"
3072as_fn_append ac_header_list " wctype.h"
8690e634 3073gl_fnmatch_required=GNU
3574124b
PA
3074as_fn_append ac_func_list " alarm"
3075as_fn_append ac_header_list " wchar.h"
3076as_fn_append ac_header_list " stdint.h"
3077as_fn_append ac_header_list " inttypes.h"
3078as_fn_append ac_header_list " unistd.h"
3079as_fn_append ac_func_list " symlink"
3080as_fn_append ac_header_list " math.h"
3081as_fn_append ac_func_list " mbsinit"
3082as_fn_append ac_func_list " mbrtowc"
3083as_fn_append ac_header_list " sys/mman.h"
3084as_fn_append ac_func_list " mprotect"
38ec2207 3085as_fn_append ac_header_list " sys/param.h"
09607c9e
TT
3086as_fn_append ac_header_list " sys/stat.h"
3087as_fn_append ac_header_list " sys/time.h"
3574124b
PA
3088as_fn_append ac_header_list " features.h"
3089as_fn_append ac_func_list " iswcntrl"
c971b7fa
PA
3090# Check that the precious variables saved in the cache have kept the same
3091# value.
3092ac_cache_corrupted=false
3093for ac_var in $ac_precious_vars; do
3094 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3095 eval ac_new_set=\$ac_env_${ac_var}_set
3096 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3097 eval ac_new_val=\$ac_env_${ac_var}_value
3098 case $ac_old_set,$ac_new_set in
3099 set,)
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3101$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3102 ac_cache_corrupted=: ;;
3103 ,set)
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3105$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3106 ac_cache_corrupted=: ;;
3107 ,);;
3108 *)
3109 if test "x$ac_old_val" != "x$ac_new_val"; then
3110 # differences in whitespace do not lead to failure.
3111 ac_old_val_w=`echo x $ac_old_val`
3112 ac_new_val_w=`echo x $ac_new_val`
3113 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3115$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3116 ac_cache_corrupted=:
3117 else
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3119$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3120 eval $ac_var=\$ac_old_val
3121 fi
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3123$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3125$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3126 fi;;
3127 esac
3128 # Pass precious variables to config.status.
3129 if test "$ac_new_set" = set; then
3130 case $ac_new_val in
3131 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3132 *) ac_arg=$ac_var=$ac_new_val ;;
3133 esac
3134 case " $ac_configure_args " in
3135 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3136 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3137 esac
3138 fi
3139done
3140if $ac_cache_corrupted; then
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3142$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3144$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3145 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3146fi
3147## -------------------- ##
3148## Main body of script. ##
3149## -------------------- ##
3150
3151ac_ext=c
3152ac_cpp='$CPP $CPPFLAGS'
3153ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3154ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3155ac_compiler_gnu=$ac_cv_c_compiler_gnu
3156
3157
3158ac_config_headers="$ac_config_headers config.h:config.in"
3159
3160
3161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3162$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3163 # Check whether --enable-maintainer-mode was given.
3164if test "${enable_maintainer_mode+set}" = set; then :
3165 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3166else
3167 USE_MAINTAINER_MODE=no
3168fi
3169
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3171$as_echo "$USE_MAINTAINER_MODE" >&6; }
3172 if test $USE_MAINTAINER_MODE = yes; then
3173 MAINTAINER_MODE_TRUE=
3174 MAINTAINER_MODE_FALSE='#'
3175else
3176 MAINTAINER_MODE_TRUE='#'
3177 MAINTAINER_MODE_FALSE=
3178fi
3179
3180 MAINT=$MAINTAINER_MODE_TRUE
3181
3182
3183
3184ac_ext=c
3185ac_cpp='$CPP $CPPFLAGS'
3186ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3187ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3188ac_compiler_gnu=$ac_cv_c_compiler_gnu
3189if test -n "$ac_tool_prefix"; then
3190 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3191set dummy ${ac_tool_prefix}gcc; ac_word=$2
3192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3193$as_echo_n "checking for $ac_word... " >&6; }
3194if test "${ac_cv_prog_CC+set}" = set; then :
3195 $as_echo_n "(cached) " >&6
3196else
3197 if test -n "$CC"; then
3198 ac_cv_prog_CC="$CC" # Let the user override the test.
3199else
3200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3201for as_dir in $PATH
3202do
3203 IFS=$as_save_IFS
3204 test -z "$as_dir" && as_dir=.
3205 for ac_exec_ext in '' $ac_executable_extensions; do
3206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3207 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3209 break 2
3210 fi
3211done
3212 done
3213IFS=$as_save_IFS
3214
3215fi
3216fi
3217CC=$ac_cv_prog_CC
3218if test -n "$CC"; then
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3220$as_echo "$CC" >&6; }
3221else
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3223$as_echo "no" >&6; }
3224fi
3225
3226
3227fi
3228if test -z "$ac_cv_prog_CC"; then
3229 ac_ct_CC=$CC
3230 # Extract the first word of "gcc", so it can be a program name with args.
3231set dummy gcc; ac_word=$2
3232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3233$as_echo_n "checking for $ac_word... " >&6; }
3234if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3235 $as_echo_n "(cached) " >&6
3236else
3237 if test -n "$ac_ct_CC"; then
3238 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3239else
3240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3241for as_dir in $PATH
3242do
3243 IFS=$as_save_IFS
3244 test -z "$as_dir" && as_dir=.
3245 for ac_exec_ext in '' $ac_executable_extensions; do
3246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3247 ac_cv_prog_ac_ct_CC="gcc"
3248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3249 break 2
3250 fi
3251done
3252 done
3253IFS=$as_save_IFS
3254
3255fi
3256fi
3257ac_ct_CC=$ac_cv_prog_ac_ct_CC
3258if test -n "$ac_ct_CC"; then
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3260$as_echo "$ac_ct_CC" >&6; }
3261else
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3263$as_echo "no" >&6; }
3264fi
3265
3266 if test "x$ac_ct_CC" = x; then
3267 CC=""
3268 else
3269 case $cross_compiling:$ac_tool_warned in
3270yes:)
3271{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3272$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3273ac_tool_warned=yes ;;
3274esac
3275 CC=$ac_ct_CC
3276 fi
3277else
3278 CC="$ac_cv_prog_CC"
3279fi
3280
3281if test -z "$CC"; then
3282 if test -n "$ac_tool_prefix"; then
3283 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3284set dummy ${ac_tool_prefix}cc; ac_word=$2
3285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3286$as_echo_n "checking for $ac_word... " >&6; }
3287if test "${ac_cv_prog_CC+set}" = set; then :
3288 $as_echo_n "(cached) " >&6
3289else
3290 if test -n "$CC"; then
3291 ac_cv_prog_CC="$CC" # Let the user override the test.
3292else
3293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3294for as_dir in $PATH
3295do
3296 IFS=$as_save_IFS
3297 test -z "$as_dir" && as_dir=.
3298 for ac_exec_ext in '' $ac_executable_extensions; do
3299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3300 ac_cv_prog_CC="${ac_tool_prefix}cc"
3301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3302 break 2
3303 fi
3304done
3305 done
3306IFS=$as_save_IFS
3307
3308fi
3309fi
3310CC=$ac_cv_prog_CC
3311if test -n "$CC"; then
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3313$as_echo "$CC" >&6; }
3314else
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3316$as_echo "no" >&6; }
3317fi
3318
3319
3320 fi
3321fi
3322if test -z "$CC"; then
3323 # Extract the first word of "cc", so it can be a program name with args.
3324set dummy cc; ac_word=$2
3325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3326$as_echo_n "checking for $ac_word... " >&6; }
3327if test "${ac_cv_prog_CC+set}" = set; then :
3328 $as_echo_n "(cached) " >&6
3329else
3330 if test -n "$CC"; then
3331 ac_cv_prog_CC="$CC" # Let the user override the test.
3332else
3333 ac_prog_rejected=no
3334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3335for as_dir in $PATH
3336do
3337 IFS=$as_save_IFS
3338 test -z "$as_dir" && as_dir=.
3339 for ac_exec_ext in '' $ac_executable_extensions; do
3340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3341 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3342 ac_prog_rejected=yes
3343 continue
3344 fi
3345 ac_cv_prog_CC="cc"
3346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3347 break 2
3348 fi
3349done
3350 done
3351IFS=$as_save_IFS
3352
3353if test $ac_prog_rejected = yes; then
3354 # We found a bogon in the path, so make sure we never use it.
3355 set dummy $ac_cv_prog_CC
3356 shift
3357 if test $# != 0; then
3358 # We chose a different compiler from the bogus one.
3359 # However, it has the same basename, so the bogon will be chosen
3360 # first if we set CC to just the basename; use the full file name.
3361 shift
3362 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3363 fi
3364fi
3365fi
3366fi
3367CC=$ac_cv_prog_CC
3368if test -n "$CC"; then
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3370$as_echo "$CC" >&6; }
3371else
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3373$as_echo "no" >&6; }
3374fi
3375
3376
3377fi
3378if test -z "$CC"; then
3379 if test -n "$ac_tool_prefix"; then
3380 for ac_prog in cl.exe
3381 do
3382 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3383set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3385$as_echo_n "checking for $ac_word... " >&6; }
3386if test "${ac_cv_prog_CC+set}" = set; then :
3387 $as_echo_n "(cached) " >&6
3388else
3389 if test -n "$CC"; then
3390 ac_cv_prog_CC="$CC" # Let the user override the test.
3391else
3392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3393for as_dir in $PATH
3394do
3395 IFS=$as_save_IFS
3396 test -z "$as_dir" && as_dir=.
3397 for ac_exec_ext in '' $ac_executable_extensions; do
3398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3399 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3401 break 2
3402 fi
3403done
3404 done
3405IFS=$as_save_IFS
3406
3407fi
3408fi
3409CC=$ac_cv_prog_CC
3410if test -n "$CC"; then
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3412$as_echo "$CC" >&6; }
3413else
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3415$as_echo "no" >&6; }
3416fi
3417
3418
3419 test -n "$CC" && break
3420 done
3421fi
3422if test -z "$CC"; then
3423 ac_ct_CC=$CC
3424 for ac_prog in cl.exe
3425do
3426 # Extract the first word of "$ac_prog", so it can be a program name with args.
3427set dummy $ac_prog; ac_word=$2
3428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3429$as_echo_n "checking for $ac_word... " >&6; }
3430if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3431 $as_echo_n "(cached) " >&6
3432else
3433 if test -n "$ac_ct_CC"; then
3434 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3435else
3436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3437for as_dir in $PATH
3438do
3439 IFS=$as_save_IFS
3440 test -z "$as_dir" && as_dir=.
3441 for ac_exec_ext in '' $ac_executable_extensions; do
3442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3443 ac_cv_prog_ac_ct_CC="$ac_prog"
3444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3445 break 2
3446 fi
3447done
3448 done
3449IFS=$as_save_IFS
3450
3451fi
3452fi
3453ac_ct_CC=$ac_cv_prog_ac_ct_CC
3454if test -n "$ac_ct_CC"; then
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3456$as_echo "$ac_ct_CC" >&6; }
3457else
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3459$as_echo "no" >&6; }
3460fi
3461
3462
3463 test -n "$ac_ct_CC" && break
3464done
3465
3466 if test "x$ac_ct_CC" = x; then
3467 CC=""
3468 else
3469 case $cross_compiling:$ac_tool_warned in
3470yes:)
3471{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3472$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3473ac_tool_warned=yes ;;
3474esac
3475 CC=$ac_ct_CC
3476 fi
3477fi
3478
3479fi
3480
3481
3482test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3483$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3484as_fn_error "no acceptable C compiler found in \$PATH
3485See \`config.log' for more details." "$LINENO" 5; }
3486
3487# Provide some information about the compiler.
3488$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3489set X $ac_compile
3490ac_compiler=$2
3491for ac_option in --version -v -V -qversion; do
3492 { { ac_try="$ac_compiler $ac_option >&5"
3493case "(($ac_try" in
3494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3495 *) ac_try_echo=$ac_try;;
3496esac
3497eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3498$as_echo "$ac_try_echo"; } >&5
3499 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3500 ac_status=$?
3501 if test -s conftest.err; then
3502 sed '10a\
3503... rest of stderr output deleted ...
3504 10q' conftest.err >conftest.er1
3505 cat conftest.er1 >&5
3506 rm -f conftest.er1 conftest.err
3507 fi
3508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3509 test $ac_status = 0; }
3510done
3511
3512cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3513/* end confdefs.h. */
3514#include <stdio.h>
3515int
3516main ()
3517{
3518FILE *f = fopen ("conftest.out", "w");
3519 return ferror (f) || fclose (f) != 0;
3520
3521 ;
3522 return 0;
3523}
3524_ACEOF
3525ac_clean_files_save=$ac_clean_files
3526ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3527# Try to create an executable without -o first, disregard a.out.
3528# It will help us diagnose broken compilers, and finding out an intuition
3529# of exeext.
3530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3531$as_echo_n "checking for C compiler default output file name... " >&6; }
3532ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3533
3534# The possible output files:
3535ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3536
3537ac_rmfiles=
3538for ac_file in $ac_files
3539do
3540 case $ac_file in
3541 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3542 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3543 esac
3544done
3545rm -f $ac_rmfiles
3546
3547if { { ac_try="$ac_link_default"
3548case "(($ac_try" in
3549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550 *) ac_try_echo=$ac_try;;
3551esac
3552eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3553$as_echo "$ac_try_echo"; } >&5
3554 (eval "$ac_link_default") 2>&5
3555 ac_status=$?
3556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3557 test $ac_status = 0; }; then :
3558 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3559# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3560# in a Makefile. We should not override ac_cv_exeext if it was cached,
3561# so that the user can short-circuit this test for compilers unknown to
3562# Autoconf.
3563for ac_file in $ac_files ''
3564do
3565 test -f "$ac_file" || continue
3566 case $ac_file in
3567 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3568 ;;
3569 [ab].out )
3570 # We found the default executable, but exeext='' is most
3571 # certainly right.
3572 break;;
3573 *.* )
3574 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3575 then :; else
3576 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3577 fi
3578 # We set ac_cv_exeext here because the later test for it is not
3579 # safe: cross compilers may not add the suffix if given an `-o'
3580 # argument, so we may need to know it at that point already.
3581 # Even if this section looks crufty: it has the advantage of
3582 # actually working.
3583 break;;
3584 * )
3585 break;;
3586 esac
3587done
3588test "$ac_cv_exeext" = no && ac_cv_exeext=
3589
3590else
3591 ac_file=''
3592fi
3593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3594$as_echo "$ac_file" >&6; }
3595if test -z "$ac_file"; then :
3596 $as_echo "$as_me: failed program was:" >&5
3597sed 's/^/| /' conftest.$ac_ext >&5
3598
3599{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3600$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3601{ as_fn_set_status 77
3602as_fn_error "C compiler cannot create executables
3603See \`config.log' for more details." "$LINENO" 5; }; }
3604fi
3605ac_exeext=$ac_cv_exeext
3606
3607# Check that the compiler produces executables we can run. If not, either
3608# the compiler is broken, or we cross compile.
3609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3610$as_echo_n "checking whether the C compiler works... " >&6; }
3611# If not cross compiling, check that we can run a simple program.
3612if test "$cross_compiling" != yes; then
3613 if { ac_try='./$ac_file'
3614 { { case "(($ac_try" in
3615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3616 *) ac_try_echo=$ac_try;;
3617esac
3618eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3619$as_echo "$ac_try_echo"; } >&5
3620 (eval "$ac_try") 2>&5
3621 ac_status=$?
3622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3623 test $ac_status = 0; }; }; then
3624 cross_compiling=no
3625 else
3626 if test "$cross_compiling" = maybe; then
3627 cross_compiling=yes
3628 else
3629 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3630$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3631as_fn_error "cannot run C compiled programs.
3632If you meant to cross compile, use \`--host'.
3633See \`config.log' for more details." "$LINENO" 5; }
3634 fi
3635 fi
3636fi
3637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3638$as_echo "yes" >&6; }
3639
3640rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3641ac_clean_files=$ac_clean_files_save
3642# Check that the compiler produces executables we can run. If not, either
3643# the compiler is broken, or we cross compile.
3644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3645$as_echo_n "checking whether we are cross compiling... " >&6; }
3646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3647$as_echo "$cross_compiling" >&6; }
3648
3649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3650$as_echo_n "checking for suffix of executables... " >&6; }
3651if { { ac_try="$ac_link"
3652case "(($ac_try" in
3653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3654 *) ac_try_echo=$ac_try;;
3655esac
3656eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3657$as_echo "$ac_try_echo"; } >&5
3658 (eval "$ac_link") 2>&5
3659 ac_status=$?
3660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3661 test $ac_status = 0; }; then :
3662 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3663# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3664# work properly (i.e., refer to `conftest.exe'), while it won't with
3665# `rm'.
3666for ac_file in conftest.exe conftest conftest.*; do
3667 test -f "$ac_file" || continue
3668 case $ac_file in
3669 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3670 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3671 break;;
3672 * ) break;;
3673 esac
3674done
3675else
3676 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3677$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3678as_fn_error "cannot compute suffix of executables: cannot compile and link
3679See \`config.log' for more details." "$LINENO" 5; }
3680fi
3681rm -f conftest$ac_cv_exeext
3682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3683$as_echo "$ac_cv_exeext" >&6; }
3684
3685rm -f conftest.$ac_ext
3686EXEEXT=$ac_cv_exeext
3687ac_exeext=$EXEEXT
3688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3689$as_echo_n "checking for suffix of object files... " >&6; }
3690if test "${ac_cv_objext+set}" = set; then :
3691 $as_echo_n "(cached) " >&6
3692else
3693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3694/* end confdefs.h. */
3695
3696int
3697main ()
3698{
3699
3700 ;
3701 return 0;
3702}
3703_ACEOF
3704rm -f conftest.o conftest.obj
3705if { { ac_try="$ac_compile"
3706case "(($ac_try" in
3707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3708 *) ac_try_echo=$ac_try;;
3709esac
3710eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3711$as_echo "$ac_try_echo"; } >&5
3712 (eval "$ac_compile") 2>&5
3713 ac_status=$?
3714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3715 test $ac_status = 0; }; then :
3716 for ac_file in conftest.o conftest.obj conftest.*; do
3717 test -f "$ac_file" || continue;
3718 case $ac_file in
3719 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3720 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3721 break;;
3722 esac
3723done
3724else
3725 $as_echo "$as_me: failed program was:" >&5
3726sed 's/^/| /' conftest.$ac_ext >&5
3727
3728{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3729$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3730as_fn_error "cannot compute suffix of object files: cannot compile
3731See \`config.log' for more details." "$LINENO" 5; }
3732fi
3733rm -f conftest.$ac_cv_objext conftest.$ac_ext
3734fi
3735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3736$as_echo "$ac_cv_objext" >&6; }
3737OBJEXT=$ac_cv_objext
3738ac_objext=$OBJEXT
3739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3740$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3741if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3742 $as_echo_n "(cached) " >&6
3743else
3744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3745/* end confdefs.h. */
3746
3747int
3748main ()
3749{
3750#ifndef __GNUC__
3751 choke me
3752#endif
3753
3754 ;
3755 return 0;
3756}
3757_ACEOF
3758if ac_fn_c_try_compile "$LINENO"; then :
3759 ac_compiler_gnu=yes
3760else
3761 ac_compiler_gnu=no
3762fi
3763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3764ac_cv_c_compiler_gnu=$ac_compiler_gnu
3765
3766fi
3767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3768$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3769if test $ac_compiler_gnu = yes; then
3770 GCC=yes
3771else
3772 GCC=
3773fi
3774ac_test_CFLAGS=${CFLAGS+set}
3775ac_save_CFLAGS=$CFLAGS
3776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3777$as_echo_n "checking whether $CC accepts -g... " >&6; }
3778if test "${ac_cv_prog_cc_g+set}" = set; then :
3779 $as_echo_n "(cached) " >&6
3780else
3781 ac_save_c_werror_flag=$ac_c_werror_flag
3782 ac_c_werror_flag=yes
3783 ac_cv_prog_cc_g=no
3784 CFLAGS="-g"
3785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3786/* end confdefs.h. */
3787
3788int
3789main ()
3790{
3791
3792 ;
3793 return 0;
3794}
3795_ACEOF
3796if ac_fn_c_try_compile "$LINENO"; then :
3797 ac_cv_prog_cc_g=yes
3798else
3799 CFLAGS=""
3800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3801/* end confdefs.h. */
3802
3803int
3804main ()
3805{
3806
3807 ;
3808 return 0;
3809}
3810_ACEOF
3811if ac_fn_c_try_compile "$LINENO"; then :
3812
3813else
3814 ac_c_werror_flag=$ac_save_c_werror_flag
3815 CFLAGS="-g"
3816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3817/* end confdefs.h. */
3818
3819int
3820main ()
3821{
3822
3823 ;
3824 return 0;
3825}
3826_ACEOF
3827if ac_fn_c_try_compile "$LINENO"; then :
3828 ac_cv_prog_cc_g=yes
3829fi
3830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3831fi
3832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3833fi
3834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3835 ac_c_werror_flag=$ac_save_c_werror_flag
3836fi
3837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3838$as_echo "$ac_cv_prog_cc_g" >&6; }
3839if test "$ac_test_CFLAGS" = set; then
3840 CFLAGS=$ac_save_CFLAGS
3841elif test $ac_cv_prog_cc_g = yes; then
3842 if test "$GCC" = yes; then
3843 CFLAGS="-g -O2"
3844 else
3845 CFLAGS="-g"
3846 fi
3847else
3848 if test "$GCC" = yes; then
3849 CFLAGS="-O2"
3850 else
3851 CFLAGS=
3852 fi
3853fi
3854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3855$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3856if test "${ac_cv_prog_cc_c89+set}" = set; then :
3857 $as_echo_n "(cached) " >&6
3858else
3859 ac_cv_prog_cc_c89=no
3860ac_save_CC=$CC
3861cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3862/* end confdefs.h. */
3863#include <stdarg.h>
3864#include <stdio.h>
3865#include <sys/types.h>
3866#include <sys/stat.h>
3867/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3868struct buf { int x; };
3869FILE * (*rcsopen) (struct buf *, struct stat *, int);
3870static char *e (p, i)
3871 char **p;
3872 int i;
3873{
3874 return p[i];
3875}
3876static char *f (char * (*g) (char **, int), char **p, ...)
3877{
3878 char *s;
3879 va_list v;
3880 va_start (v,p);
3881 s = g (p, va_arg (v,int));
3882 va_end (v);
3883 return s;
3884}
3885
3886/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3887 function prototypes and stuff, but not '\xHH' hex character constants.
3888 These don't provoke an error unfortunately, instead are silently treated
3889 as 'x'. The following induces an error, until -std is added to get
3890 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3891 array size at least. It's necessary to write '\x00'==0 to get something
3892 that's true only with -std. */
3893int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3894
3895/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3896 inside strings and character constants. */
3897#define FOO(x) 'x'
3898int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3899
3900int test (int i, double x);
3901struct s1 {int (*f) (int a);};
3902struct s2 {int (*f) (double a);};
3903int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3904int argc;
3905char **argv;
3906int
3907main ()
3908{
3909return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3910 ;
3911 return 0;
3912}
3913_ACEOF
3914for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3915 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3916do
3917 CC="$ac_save_CC $ac_arg"
3918 if ac_fn_c_try_compile "$LINENO"; then :
3919 ac_cv_prog_cc_c89=$ac_arg
3920fi
3921rm -f core conftest.err conftest.$ac_objext
3922 test "x$ac_cv_prog_cc_c89" != "xno" && break
3923done
3924rm -f conftest.$ac_ext
3925CC=$ac_save_CC
3926
3927fi
3928# AC_CACHE_VAL
3929case "x$ac_cv_prog_cc_c89" in
3930 x)
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3932$as_echo "none needed" >&6; } ;;
3933 xno)
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3935$as_echo "unsupported" >&6; } ;;
3936 *)
3937 CC="$CC $ac_cv_prog_cc_c89"
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3939$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3940esac
3941if test "x$ac_cv_prog_cc_c89" != xno; then :
3942
3943fi
3944
3945ac_ext=c
3946ac_cpp='$CPP $CPPFLAGS'
3947ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3948ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3949ac_compiler_gnu=$ac_cv_c_compiler_gnu
3950
3951ac_aux_dir=
3952for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3953 for ac_t in install-sh install.sh shtool; do
3954 if test -f "$ac_dir/$ac_t"; then
3955 ac_aux_dir=$ac_dir
3956 ac_install_sh="$ac_aux_dir/$ac_t -c"
3957 break 2
3958 fi
3959 done
3960done
3961if test -z "$ac_aux_dir"; then
3962 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3963fi
3964
3965# These three variables are undocumented and unsupported,
3966# and are intended to be withdrawn in a future Autoconf release.
3967# They can cause serious problems if a builder's source tree is in a directory
3968# whose full name contains unusual characters.
3969ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3970ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3971ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3972
3973
3974# Make sure we can run config.sub.
3975$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3976 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3977
3978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3979$as_echo_n "checking build system type... " >&6; }
3980if test "${ac_cv_build+set}" = set; then :
3981 $as_echo_n "(cached) " >&6
3982else
3983 ac_build_alias=$build_alias
3984test "x$ac_build_alias" = x &&
3985 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3986test "x$ac_build_alias" = x &&
3987 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3988ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3989 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3990
3991fi
3992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3993$as_echo "$ac_cv_build" >&6; }
3994case $ac_cv_build in
3995*-*-*) ;;
3996*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3997esac
3998build=$ac_cv_build
3999ac_save_IFS=$IFS; IFS='-'
4000set x $ac_cv_build
4001shift
4002build_cpu=$1
4003build_vendor=$2
4004shift; shift
4005# Remember, the first character of IFS is used to create $*,
4006# except with old shells:
4007build_os=$*
4008IFS=$ac_save_IFS
4009case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4010
4011
4012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4013$as_echo_n "checking host system type... " >&6; }
4014if test "${ac_cv_host+set}" = set; then :
4015 $as_echo_n "(cached) " >&6
4016else
4017 if test "x$host_alias" = x; then
4018 ac_cv_host=$ac_cv_build
4019else
4020 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4021 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4022fi
4023
4024fi
4025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4026$as_echo "$ac_cv_host" >&6; }
4027case $ac_cv_host in
4028*-*-*) ;;
4029*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4030esac
4031host=$ac_cv_host
4032ac_save_IFS=$IFS; IFS='-'
4033set x $ac_cv_host
4034shift
4035host_cpu=$1
4036host_vendor=$2
4037shift; shift
4038# Remember, the first character of IFS is used to create $*,
4039# except with old shells:
4040host_os=$*
4041IFS=$ac_save_IFS
4042case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4043
4044
4045
4046ac_ext=c
4047ac_cpp='$CPP $CPPFLAGS'
4048ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4049ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4050ac_compiler_gnu=$ac_cv_c_compiler_gnu
4051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4052$as_echo_n "checking how to run the C preprocessor... " >&6; }
4053# On Suns, sometimes $CPP names a directory.
4054if test -n "$CPP" && test -d "$CPP"; then
4055 CPP=
4056fi
4057if test -z "$CPP"; then
4058 if test "${ac_cv_prog_CPP+set}" = set; then :
4059 $as_echo_n "(cached) " >&6
4060else
4061 # Double quotes because CPP needs to be expanded
4062 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4063 do
4064 ac_preproc_ok=false
4065for ac_c_preproc_warn_flag in '' yes
4066do
4067 # Use a header file that comes with gcc, so configuring glibc
4068 # with a fresh cross-compiler works.
4069 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4070 # <limits.h> exists even on freestanding compilers.
4071 # On the NeXT, cc -E runs the code through the compiler's parser,
4072 # not just through cpp. "Syntax error" is here to catch this case.
4073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4074/* end confdefs.h. */
4075#ifdef __STDC__
4076# include <limits.h>
4077#else
4078# include <assert.h>
4079#endif
4080 Syntax error
4081_ACEOF
4082if ac_fn_c_try_cpp "$LINENO"; then :
4083
4084else
4085 # Broken: fails on valid input.
4086continue
4087fi
4088rm -f conftest.err conftest.$ac_ext
4089
4090 # OK, works on sane cases. Now check whether nonexistent headers
4091 # can be detected and how.
4092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4093/* end confdefs.h. */
4094#include <ac_nonexistent.h>
4095_ACEOF
4096if ac_fn_c_try_cpp "$LINENO"; then :
4097 # Broken: success on invalid input.
4098continue
4099else
4100 # Passes both tests.
4101ac_preproc_ok=:
4102break
4103fi
4104rm -f conftest.err conftest.$ac_ext
4105
4106done
4107# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4108rm -f conftest.err conftest.$ac_ext
4109if $ac_preproc_ok; then :
4110 break
4111fi
4112
4113 done
4114 ac_cv_prog_CPP=$CPP
4115
4116fi
4117 CPP=$ac_cv_prog_CPP
4118else
4119 ac_cv_prog_CPP=$CPP
4120fi
4121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4122$as_echo "$CPP" >&6; }
4123ac_preproc_ok=false
4124for ac_c_preproc_warn_flag in '' yes
4125do
4126 # Use a header file that comes with gcc, so configuring glibc
4127 # with a fresh cross-compiler works.
4128 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4129 # <limits.h> exists even on freestanding compilers.
4130 # On the NeXT, cc -E runs the code through the compiler's parser,
4131 # not just through cpp. "Syntax error" is here to catch this case.
4132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4133/* end confdefs.h. */
4134#ifdef __STDC__
4135# include <limits.h>
4136#else
4137# include <assert.h>
4138#endif
4139 Syntax error
4140_ACEOF
4141if ac_fn_c_try_cpp "$LINENO"; then :
4142
4143else
4144 # Broken: fails on valid input.
4145continue
4146fi
4147rm -f conftest.err conftest.$ac_ext
4148
4149 # OK, works on sane cases. Now check whether nonexistent headers
4150 # can be detected and how.
4151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4152/* end confdefs.h. */
4153#include <ac_nonexistent.h>
4154_ACEOF
4155if ac_fn_c_try_cpp "$LINENO"; then :
4156 # Broken: success on invalid input.
4157continue
4158else
4159 # Passes both tests.
4160ac_preproc_ok=:
4161break
4162fi
4163rm -f conftest.err conftest.$ac_ext
4164
4165done
4166# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4167rm -f conftest.err conftest.$ac_ext
4168if $ac_preproc_ok; then :
4169
4170else
4171 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4172$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4173as_fn_error "C preprocessor \"$CPP\" fails sanity check
4174See \`config.log' for more details." "$LINENO" 5; }
4175fi
4176
4177ac_ext=c
4178ac_cpp='$CPP $CPPFLAGS'
4179ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4180ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4181ac_compiler_gnu=$ac_cv_c_compiler_gnu
4182
4183
4184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4185$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4186if test "${ac_cv_path_GREP+set}" = set; then :
4187 $as_echo_n "(cached) " >&6
4188else
4189 if test -z "$GREP"; then
4190 ac_path_GREP_found=false
4191 # Loop through the user's path and test for each of PROGNAME-LIST
4192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4193for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4194do
4195 IFS=$as_save_IFS
4196 test -z "$as_dir" && as_dir=.
4197 for ac_prog in grep ggrep; do
4198 for ac_exec_ext in '' $ac_executable_extensions; do
4199 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4200 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4201# Check for GNU ac_path_GREP and select it if it is found.
4202 # Check for GNU $ac_path_GREP
4203case `"$ac_path_GREP" --version 2>&1` in
4204*GNU*)
4205 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4206*)
4207 ac_count=0
4208 $as_echo_n 0123456789 >"conftest.in"
4209 while :
4210 do
4211 cat "conftest.in" "conftest.in" >"conftest.tmp"
4212 mv "conftest.tmp" "conftest.in"
4213 cp "conftest.in" "conftest.nl"
4214 $as_echo 'GREP' >> "conftest.nl"
4215 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4216 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4217 as_fn_arith $ac_count + 1 && ac_count=$as_val
4218 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4219 # Best one so far, save it but keep looking for a better one
4220 ac_cv_path_GREP="$ac_path_GREP"
4221 ac_path_GREP_max=$ac_count
4222 fi
4223 # 10*(2^10) chars as input seems more than enough
4224 test $ac_count -gt 10 && break
4225 done
4226 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4227esac
4228
4229 $ac_path_GREP_found && break 3
4230 done
4231 done
4232 done
4233IFS=$as_save_IFS
4234 if test -z "$ac_cv_path_GREP"; then
4235 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4236 fi
4237else
4238 ac_cv_path_GREP=$GREP
4239fi
4240
4241fi
4242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4243$as_echo "$ac_cv_path_GREP" >&6; }
4244 GREP="$ac_cv_path_GREP"
4245
4246
4247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4248$as_echo_n "checking for egrep... " >&6; }
4249if test "${ac_cv_path_EGREP+set}" = set; then :
4250 $as_echo_n "(cached) " >&6
4251else
4252 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4253 then ac_cv_path_EGREP="$GREP -E"
4254 else
4255 if test -z "$EGREP"; then
4256 ac_path_EGREP_found=false
4257 # Loop through the user's path and test for each of PROGNAME-LIST
4258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4259for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4260do
4261 IFS=$as_save_IFS
4262 test -z "$as_dir" && as_dir=.
4263 for ac_prog in egrep; do
4264 for ac_exec_ext in '' $ac_executable_extensions; do
4265 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4266 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4267# Check for GNU ac_path_EGREP and select it if it is found.
4268 # Check for GNU $ac_path_EGREP
4269case `"$ac_path_EGREP" --version 2>&1` in
4270*GNU*)
4271 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4272*)
4273 ac_count=0
4274 $as_echo_n 0123456789 >"conftest.in"
4275 while :
4276 do
4277 cat "conftest.in" "conftest.in" >"conftest.tmp"
4278 mv "conftest.tmp" "conftest.in"
4279 cp "conftest.in" "conftest.nl"
4280 $as_echo 'EGREP' >> "conftest.nl"
4281 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4282 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4283 as_fn_arith $ac_count + 1 && ac_count=$as_val
4284 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4285 # Best one so far, save it but keep looking for a better one
4286 ac_cv_path_EGREP="$ac_path_EGREP"
4287 ac_path_EGREP_max=$ac_count
4288 fi
4289 # 10*(2^10) chars as input seems more than enough
4290 test $ac_count -gt 10 && break
4291 done
4292 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4293esac
4294
4295 $ac_path_EGREP_found && break 3
4296 done
4297 done
4298 done
4299IFS=$as_save_IFS
4300 if test -z "$ac_cv_path_EGREP"; then
4301 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4302 fi
4303else
4304 ac_cv_path_EGREP=$EGREP
4305fi
4306
4307 fi
4308fi
4309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4310$as_echo "$ac_cv_path_EGREP" >&6; }
4311 EGREP="$ac_cv_path_EGREP"
4312
4313
4314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4315$as_echo_n "checking for ANSI C header files... " >&6; }
4316if test "${ac_cv_header_stdc+set}" = set; then :
4317 $as_echo_n "(cached) " >&6
4318else
4319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4320/* end confdefs.h. */
4321#include <stdlib.h>
4322#include <stdarg.h>
4323#include <string.h>
4324#include <float.h>
4325
4326int
4327main ()
4328{
4329
4330 ;
4331 return 0;
4332}
4333_ACEOF
4334if ac_fn_c_try_compile "$LINENO"; then :
4335 ac_cv_header_stdc=yes
4336else
4337 ac_cv_header_stdc=no
4338fi
4339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4340
4341if test $ac_cv_header_stdc = yes; then
4342 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4344/* end confdefs.h. */
4345#include <string.h>
4346
4347_ACEOF
4348if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4349 $EGREP "memchr" >/dev/null 2>&1; then :
4350
4351else
4352 ac_cv_header_stdc=no
4353fi
4354rm -f conftest*
4355
4356fi
4357
4358if test $ac_cv_header_stdc = yes; then
4359 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4361/* end confdefs.h. */
4362#include <stdlib.h>
4363
4364_ACEOF
4365if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4366 $EGREP "free" >/dev/null 2>&1; then :
4367
4368else
4369 ac_cv_header_stdc=no
4370fi
4371rm -f conftest*
4372
4373fi
4374
4375if test $ac_cv_header_stdc = yes; then
4376 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4377 if test "$cross_compiling" = yes; then :
4378 :
4379else
4380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4381/* end confdefs.h. */
4382#include <ctype.h>
4383#include <stdlib.h>
4384#if ((' ' & 0x0FF) == 0x020)
4385# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4386# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4387#else
4388# define ISLOWER(c) \
4389 (('a' <= (c) && (c) <= 'i') \
4390 || ('j' <= (c) && (c) <= 'r') \
4391 || ('s' <= (c) && (c) <= 'z'))
4392# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4393#endif
4394
4395#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4396int
4397main ()
4398{
4399 int i;
4400 for (i = 0; i < 256; i++)
4401 if (XOR (islower (i), ISLOWER (i))
4402 || toupper (i) != TOUPPER (i))
4403 return 2;
4404 return 0;
4405}
4406_ACEOF
4407if ac_fn_c_try_run "$LINENO"; then :
4408
4409else
4410 ac_cv_header_stdc=no
4411fi
4412rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4413 conftest.$ac_objext conftest.beam conftest.$ac_ext
4414fi
4415
4416fi
4417fi
4418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4419$as_echo "$ac_cv_header_stdc" >&6; }
4420if test $ac_cv_header_stdc = yes; then
4421
4422$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4423
4424fi
4425
4426# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4427for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4428 inttypes.h stdint.h unistd.h
4429do :
4430 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4431ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4432"
4433eval as_val=\$$as_ac_Header
4434 if test "x$as_val" = x""yes; then :
4435 cat >>confdefs.h <<_ACEOF
4436#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4437_ACEOF
4438
4439fi
4440
4441done
4442
4443
4444
4445
4446
4447 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4448if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4449 MINIX=yes
4450else
4451 MINIX=
4452fi
4453
4454
4455 if test "$MINIX" = yes; then
4456
4457$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4458
4459
4460$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4461
4462
4463$as_echo "#define _MINIX 1" >>confdefs.h
4464
4465 fi
4466
4467 case "$host_os" in
4468 hpux*)
4469
4470$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4471
4472 ;;
4473 esac
4474
4475
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4477$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4478if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4479 $as_echo_n "(cached) " >&6
4480else
4481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4482/* end confdefs.h. */
4483
4484# define __EXTENSIONS__ 1
4485 $ac_includes_default
4486int
4487main ()
4488{
4489
4490 ;
4491 return 0;
4492}
4493_ACEOF
4494if ac_fn_c_try_compile "$LINENO"; then :
4495 ac_cv_safe_to_define___extensions__=yes
4496else
4497 ac_cv_safe_to_define___extensions__=no
4498fi
4499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4500fi
4501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4502$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4503 test $ac_cv_safe_to_define___extensions__ = yes &&
4504 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4505
4506 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4507
4508 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4509
4510 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4511
4512 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4513
4514 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4515
4516
4517
4518
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
4520$as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
4521if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
4522 $as_echo_n "(cached) " >&6
4523else
4524
4525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4526/* end confdefs.h. */
4527
4528#ifdef __ACK__
4529Amsterdam
4530#endif
4531
4532_ACEOF
4533if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4534 $EGREP "Amsterdam" >/dev/null 2>&1; then :
4535 gl_cv_c_amsterdam_compiler=yes
4536else
4537 gl_cv_c_amsterdam_compiler=no
4538fi
4539rm -f conftest*
4540
4541
4542fi
4543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
4544$as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
4545 if test -z "$AR"; then
4546 if test $gl_cv_c_amsterdam_compiler = yes; then
4547 AR='cc -c.a'
4548 if test -z "$ARFLAGS"; then
4549 ARFLAGS='-o'
4550 fi
4551 else
4552 if test -n "$ac_tool_prefix"; then
4553 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4554set dummy ${ac_tool_prefix}ar; ac_word=$2
4555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4556$as_echo_n "checking for $ac_word... " >&6; }
4557if test "${ac_cv_prog_AR+set}" = set; then :
4558 $as_echo_n "(cached) " >&6
4559else
4560 if test -n "$AR"; then
4561 ac_cv_prog_AR="$AR" # Let the user override the test.
4562else
4563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564for as_dir in $PATH
4565do
4566 IFS=$as_save_IFS
4567 test -z "$as_dir" && as_dir=.
4568 for ac_exec_ext in '' $ac_executable_extensions; do
4569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4570 ac_cv_prog_AR="${ac_tool_prefix}ar"
4571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4572 break 2
4573 fi
4574done
4575 done
4576IFS=$as_save_IFS
4577
4578fi
4579fi
4580AR=$ac_cv_prog_AR
4581if test -n "$AR"; then
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4583$as_echo "$AR" >&6; }
4584else
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4586$as_echo "no" >&6; }
4587fi
4588
4589
4590fi
4591if test -z "$ac_cv_prog_AR"; then
4592 ac_ct_AR=$AR
4593 # Extract the first word of "ar", so it can be a program name with args.
4594set dummy ar; ac_word=$2
4595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4596$as_echo_n "checking for $ac_word... " >&6; }
4597if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4598 $as_echo_n "(cached) " >&6
4599else
4600 if test -n "$ac_ct_AR"; then
4601 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4602else
4603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604for as_dir in $PATH
4605do
4606 IFS=$as_save_IFS
4607 test -z "$as_dir" && as_dir=.
4608 for ac_exec_ext in '' $ac_executable_extensions; do
4609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4610 ac_cv_prog_ac_ct_AR="ar"
4611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4612 break 2
4613 fi
4614done
4615 done
4616IFS=$as_save_IFS
4617
4618fi
4619fi
4620ac_ct_AR=$ac_cv_prog_ac_ct_AR
4621if test -n "$ac_ct_AR"; then
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4623$as_echo "$ac_ct_AR" >&6; }
4624else
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4626$as_echo "no" >&6; }
4627fi
4628
4629 if test "x$ac_ct_AR" = x; then
4630 AR="ar"
4631 else
4632 case $cross_compiling:$ac_tool_warned in
4633yes:)
4634{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4635$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4636ac_tool_warned=yes ;;
4637esac
4638 AR=$ac_ct_AR
4639 fi
4640else
4641 AR="$ac_cv_prog_AR"
4642fi
4643
4644 if test -z "$ARFLAGS"; then
4645 ARFLAGS='cru'
4646 fi
4647 fi
4648 else
4649 if test -z "$ARFLAGS"; then
4650 ARFLAGS='cru'
4651 fi
4652 fi
4653
4654
4655 if test -z "$RANLIB"; then
4656 if test $gl_cv_c_amsterdam_compiler = yes; then
4657 RANLIB=':'
4658 else
4659 if test -n "$ac_tool_prefix"; then
4660 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4661set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4663$as_echo_n "checking for $ac_word... " >&6; }
4664if test "${ac_cv_prog_RANLIB+set}" = set; then :
4665 $as_echo_n "(cached) " >&6
4666else
4667 if test -n "$RANLIB"; then
4668 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4669else
4670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671for as_dir in $PATH
4672do
4673 IFS=$as_save_IFS
4674 test -z "$as_dir" && as_dir=.
4675 for ac_exec_ext in '' $ac_executable_extensions; do
4676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4677 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4679 break 2
4680 fi
4681done
4682 done
4683IFS=$as_save_IFS
4684
4685fi
4686fi
4687RANLIB=$ac_cv_prog_RANLIB
4688if test -n "$RANLIB"; then
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4690$as_echo "$RANLIB" >&6; }
4691else
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4693$as_echo "no" >&6; }
4694fi
4695
4696
4697fi
4698if test -z "$ac_cv_prog_RANLIB"; then
4699 ac_ct_RANLIB=$RANLIB
4700 # Extract the first word of "ranlib", so it can be a program name with args.
4701set dummy ranlib; ac_word=$2
4702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4703$as_echo_n "checking for $ac_word... " >&6; }
4704if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4705 $as_echo_n "(cached) " >&6
4706else
4707 if test -n "$ac_ct_RANLIB"; then
4708 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4709else
4710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4711for as_dir in $PATH
4712do
4713 IFS=$as_save_IFS
4714 test -z "$as_dir" && as_dir=.
4715 for ac_exec_ext in '' $ac_executable_extensions; do
4716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4717 ac_cv_prog_ac_ct_RANLIB="ranlib"
4718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4719 break 2
4720 fi
4721done
4722 done
4723IFS=$as_save_IFS
4724
4725fi
4726fi
4727ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4728if test -n "$ac_ct_RANLIB"; then
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4730$as_echo "$ac_ct_RANLIB" >&6; }
4731else
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4733$as_echo "no" >&6; }
4734fi
4735
4736 if test "x$ac_ct_RANLIB" = x; then
4737 RANLIB=":"
4738 else
4739 case $cross_compiling:$ac_tool_warned in
4740yes:)
4741{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4742$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4743ac_tool_warned=yes ;;
4744esac
4745 RANLIB=$ac_ct_RANLIB
4746 fi
4747else
4748 RANLIB="$ac_cv_prog_RANLIB"
4749fi
4750
4751 fi
4752 fi
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
88b48903
WN
4763
4764 # IEEE behaviour is the default on all CPUs except Alpha and SH
4765 # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
4766 # and the GCC 4.1.2 manual).
4767 case "$host_cpu" in
4768 alpha*)
4769 # On Alpha systems, a compiler option provides the behaviour.
4770 # See the ieee(3) manual page, also available at
4771 # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
4772 if test -n "$GCC"; then
4773 # GCC has the option -mieee.
4774 # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
4775 CPPFLAGS="$CPPFLAGS -mieee"
4776 else
4777 # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
4778 # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
4779 CPPFLAGS="$CPPFLAGS -ieee"
4780 fi
4781 ;;
4782 sh*)
4783 if test -n "$GCC"; then
4784 # GCC has the option -mieee.
4785 CPPFLAGS="$CPPFLAGS -mieee"
4786 fi
4787 ;;
4788 esac
4789
4790
4791
8690e634
JK
4792 # Code from module alloca:
4793 # Code from module alloca-opt:
4794 # Code from module configmake:
e26b6bb0 4795 # Code from module dirent:
c971b7fa
PA
4796 # Code from module extensions:
4797
a512b375 4798 # Code from module extern-inline:
88b48903 4799 # Code from module float:
8690e634
JK
4800 # Code from module fnmatch:
4801 # Code from module fnmatch-gnu:
88b48903
WN
4802 # Code from module fpieee:
4803
4804 # Code from module fpucw:
4805 # Code from module frexp:
4806 # Code from module frexpl:
c971b7fa
PA
4807 # Code from module include_next:
4808 # Code from module inttypes:
4809 # Code from module inttypes-incomplete:
88b48903
WN
4810 # Code from module isnand-nolibm:
4811 # Code from module isnanl-nolibm:
8690e634 4812 # Code from module localcharset:
88b48903 4813 # Code from module math:
8690e634
JK
4814 # Code from module mbrtowc:
4815 # Code from module mbsinit:
4816 # Code from module mbsrtowcs:
c971b7fa
PA
4817 # Code from module memchr:
4818 # Code from module memmem:
4819 # Code from module memmem-simple:
4820 # Code from module multiarch:
38ec2207 4821 # Code from module pathmax:
c971b7fa
PA
4822 # Code from module snippet/arg-nonnull:
4823 # Code from module snippet/c++defs:
4824 # Code from module snippet/warn-on-use:
8839a007 4825 # Code from module ssize_t:
8690e634 4826 # Code from module stdbool:
c971b7fa
PA
4827 # Code from module stddef:
4828 # Code from module stdint:
8690e634 4829 # Code from module streq:
c971b7fa 4830 # Code from module string:
8690e634 4831 # Code from module strnlen1:
63ce7108
TT
4832 # Code from module strstr:
4833 # Code from module strstr-simple:
09607c9e 4834 # Code from module sys_stat:
8839a007 4835 # Code from module sys_types:
09607c9e 4836 # Code from module time:
8839a007 4837 # Code from module unistd:
c971b7fa 4838 # Code from module update-copyright:
8690e634
JK
4839 # Code from module verify:
4840 # Code from module wchar:
4841 # Code from module wctype-h:
c971b7fa
PA
4842
4843ac_ext=c
4844ac_cpp='$CPP $CPPFLAGS'
4845ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4846ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4847ac_compiler_gnu=$ac_cv_c_compiler_gnu
4848if test -n "$ac_tool_prefix"; then
4849 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4850set dummy ${ac_tool_prefix}gcc; ac_word=$2
4851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4852$as_echo_n "checking for $ac_word... " >&6; }
4853if test "${ac_cv_prog_CC+set}" = set; then :
4854 $as_echo_n "(cached) " >&6
4855else
4856 if test -n "$CC"; then
4857 ac_cv_prog_CC="$CC" # Let the user override the test.
4858else
4859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860for as_dir in $PATH
4861do
4862 IFS=$as_save_IFS
4863 test -z "$as_dir" && as_dir=.
4864 for ac_exec_ext in '' $ac_executable_extensions; do
4865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4866 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4868 break 2
4869 fi
4870done
4871 done
4872IFS=$as_save_IFS
4873
4874fi
4875fi
4876CC=$ac_cv_prog_CC
4877if test -n "$CC"; then
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4879$as_echo "$CC" >&6; }
4880else
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4882$as_echo "no" >&6; }
4883fi
4884
4885
4886fi
4887if test -z "$ac_cv_prog_CC"; then
4888 ac_ct_CC=$CC
4889 # Extract the first word of "gcc", so it can be a program name with args.
4890set dummy gcc; ac_word=$2
4891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4892$as_echo_n "checking for $ac_word... " >&6; }
4893if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4894 $as_echo_n "(cached) " >&6
4895else
4896 if test -n "$ac_ct_CC"; then
4897 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4898else
4899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4900for as_dir in $PATH
4901do
4902 IFS=$as_save_IFS
4903 test -z "$as_dir" && as_dir=.
4904 for ac_exec_ext in '' $ac_executable_extensions; do
4905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4906 ac_cv_prog_ac_ct_CC="gcc"
4907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4908 break 2
4909 fi
4910done
4911 done
4912IFS=$as_save_IFS
4913
4914fi
4915fi
4916ac_ct_CC=$ac_cv_prog_ac_ct_CC
4917if test -n "$ac_ct_CC"; then
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4919$as_echo "$ac_ct_CC" >&6; }
4920else
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4922$as_echo "no" >&6; }
4923fi
4924
4925 if test "x$ac_ct_CC" = x; then
4926 CC=""
4927 else
4928 case $cross_compiling:$ac_tool_warned in
4929yes:)
4930{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4931$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4932ac_tool_warned=yes ;;
4933esac
4934 CC=$ac_ct_CC
4935 fi
4936else
4937 CC="$ac_cv_prog_CC"
4938fi
4939
4940if test -z "$CC"; then
4941 if test -n "$ac_tool_prefix"; then
4942 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4943set dummy ${ac_tool_prefix}cc; ac_word=$2
4944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4945$as_echo_n "checking for $ac_word... " >&6; }
4946if test "${ac_cv_prog_CC+set}" = set; then :
4947 $as_echo_n "(cached) " >&6
4948else
4949 if test -n "$CC"; then
4950 ac_cv_prog_CC="$CC" # Let the user override the test.
4951else
4952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4953for as_dir in $PATH
4954do
4955 IFS=$as_save_IFS
4956 test -z "$as_dir" && as_dir=.
4957 for ac_exec_ext in '' $ac_executable_extensions; do
4958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4959 ac_cv_prog_CC="${ac_tool_prefix}cc"
4960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4961 break 2
4962 fi
4963done
4964 done
4965IFS=$as_save_IFS
4966
4967fi
4968fi
4969CC=$ac_cv_prog_CC
4970if test -n "$CC"; then
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4972$as_echo "$CC" >&6; }
4973else
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4975$as_echo "no" >&6; }
4976fi
4977
4978
4979 fi
4980fi
4981if test -z "$CC"; then
4982 # Extract the first word of "cc", so it can be a program name with args.
4983set dummy cc; ac_word=$2
4984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4985$as_echo_n "checking for $ac_word... " >&6; }
4986if test "${ac_cv_prog_CC+set}" = set; then :
4987 $as_echo_n "(cached) " >&6
4988else
4989 if test -n "$CC"; then
4990 ac_cv_prog_CC="$CC" # Let the user override the test.
4991else
4992 ac_prog_rejected=no
4993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4994for as_dir in $PATH
4995do
4996 IFS=$as_save_IFS
4997 test -z "$as_dir" && as_dir=.
4998 for ac_exec_ext in '' $ac_executable_extensions; do
4999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5000 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5001 ac_prog_rejected=yes
5002 continue
5003 fi
5004 ac_cv_prog_CC="cc"
5005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5006 break 2
5007 fi
5008done
5009 done
5010IFS=$as_save_IFS
5011
5012if test $ac_prog_rejected = yes; then
5013 # We found a bogon in the path, so make sure we never use it.
5014 set dummy $ac_cv_prog_CC
5015 shift
5016 if test $# != 0; then
5017 # We chose a different compiler from the bogus one.
5018 # However, it has the same basename, so the bogon will be chosen
5019 # first if we set CC to just the basename; use the full file name.
5020 shift
5021 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5022 fi
5023fi
5024fi
5025fi
5026CC=$ac_cv_prog_CC
5027if test -n "$CC"; then
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5029$as_echo "$CC" >&6; }
5030else
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5032$as_echo "no" >&6; }
5033fi
5034
5035
5036fi
5037if test -z "$CC"; then
5038 if test -n "$ac_tool_prefix"; then
5039 for ac_prog in cl.exe
5040 do
5041 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5042set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5044$as_echo_n "checking for $ac_word... " >&6; }
5045if test "${ac_cv_prog_CC+set}" = set; then :
5046 $as_echo_n "(cached) " >&6
5047else
5048 if test -n "$CC"; then
5049 ac_cv_prog_CC="$CC" # Let the user override the test.
5050else
5051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5052for as_dir in $PATH
5053do
5054 IFS=$as_save_IFS
5055 test -z "$as_dir" && as_dir=.
5056 for ac_exec_ext in '' $ac_executable_extensions; do
5057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5058 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5060 break 2
5061 fi
5062done
5063 done
5064IFS=$as_save_IFS
5065
5066fi
5067fi
5068CC=$ac_cv_prog_CC
5069if test -n "$CC"; then
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5071$as_echo "$CC" >&6; }
5072else
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5074$as_echo "no" >&6; }
5075fi
5076
5077
5078 test -n "$CC" && break
5079 done
5080fi
5081if test -z "$CC"; then
5082 ac_ct_CC=$CC
5083 for ac_prog in cl.exe
5084do
5085 # Extract the first word of "$ac_prog", so it can be a program name with args.
5086set dummy $ac_prog; ac_word=$2
5087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5088$as_echo_n "checking for $ac_word... " >&6; }
5089if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5090 $as_echo_n "(cached) " >&6
5091else
5092 if test -n "$ac_ct_CC"; then
5093 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5094else
5095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5096for as_dir in $PATH
5097do
5098 IFS=$as_save_IFS
5099 test -z "$as_dir" && as_dir=.
5100 for ac_exec_ext in '' $ac_executable_extensions; do
5101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5102 ac_cv_prog_ac_ct_CC="$ac_prog"
5103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5104 break 2
5105 fi
5106done
5107 done
5108IFS=$as_save_IFS
5109
5110fi
5111fi
5112ac_ct_CC=$ac_cv_prog_ac_ct_CC
5113if test -n "$ac_ct_CC"; then
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5115$as_echo "$ac_ct_CC" >&6; }
5116else
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5118$as_echo "no" >&6; }
5119fi
5120
5121
5122 test -n "$ac_ct_CC" && break
5123done
5124
5125 if test "x$ac_ct_CC" = x; then
5126 CC=""
5127 else
5128 case $cross_compiling:$ac_tool_warned in
5129yes:)
5130{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5131$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5132ac_tool_warned=yes ;;
5133esac
5134 CC=$ac_ct_CC
5135 fi
5136fi
5137
5138fi
5139
5140
5141test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5142$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5143as_fn_error "no acceptable C compiler found in \$PATH
5144See \`config.log' for more details." "$LINENO" 5; }
5145
5146# Provide some information about the compiler.
5147$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5148set X $ac_compile
5149ac_compiler=$2
5150for ac_option in --version -v -V -qversion; do
5151 { { ac_try="$ac_compiler $ac_option >&5"
5152case "(($ac_try" in
5153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5154 *) ac_try_echo=$ac_try;;
5155esac
5156eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5157$as_echo "$ac_try_echo"; } >&5
5158 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5159 ac_status=$?
5160 if test -s conftest.err; then
5161 sed '10a\
5162... rest of stderr output deleted ...
5163 10q' conftest.err >conftest.er1
5164 cat conftest.er1 >&5
5165 rm -f conftest.er1 conftest.err
5166 fi
5167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5168 test $ac_status = 0; }
5169done
5170
5171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5172$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5173if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5174 $as_echo_n "(cached) " >&6
5175else
5176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5177/* end confdefs.h. */
5178
5179int
5180main ()
5181{
5182#ifndef __GNUC__
5183 choke me
5184#endif
5185
5186 ;
5187 return 0;
5188}
5189_ACEOF
5190if ac_fn_c_try_compile "$LINENO"; then :
5191 ac_compiler_gnu=yes
5192else
5193 ac_compiler_gnu=no
5194fi
5195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5196ac_cv_c_compiler_gnu=$ac_compiler_gnu
5197
5198fi
5199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5200$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5201if test $ac_compiler_gnu = yes; then
5202 GCC=yes
5203else
5204 GCC=
5205fi
5206ac_test_CFLAGS=${CFLAGS+set}
5207ac_save_CFLAGS=$CFLAGS
5208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5209$as_echo_n "checking whether $CC accepts -g... " >&6; }
5210if test "${ac_cv_prog_cc_g+set}" = set; then :
5211 $as_echo_n "(cached) " >&6
5212else
5213 ac_save_c_werror_flag=$ac_c_werror_flag
5214 ac_c_werror_flag=yes
5215 ac_cv_prog_cc_g=no
5216 CFLAGS="-g"
5217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5218/* end confdefs.h. */
5219
5220int
5221main ()
5222{
5223
5224 ;
5225 return 0;
5226}
5227_ACEOF
5228if ac_fn_c_try_compile "$LINENO"; then :
5229 ac_cv_prog_cc_g=yes
5230else
5231 CFLAGS=""
5232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5233/* end confdefs.h. */
5234
5235int
5236main ()
5237{
5238
5239 ;
5240 return 0;
5241}
5242_ACEOF
5243if ac_fn_c_try_compile "$LINENO"; then :
5244
5245else
5246 ac_c_werror_flag=$ac_save_c_werror_flag
5247 CFLAGS="-g"
5248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5249/* end confdefs.h. */
5250
5251int
5252main ()
5253{
5254
5255 ;
5256 return 0;
5257}
5258_ACEOF
5259if ac_fn_c_try_compile "$LINENO"; then :
5260 ac_cv_prog_cc_g=yes
5261fi
5262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5263fi
5264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5265fi
5266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5267 ac_c_werror_flag=$ac_save_c_werror_flag
5268fi
5269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5270$as_echo "$ac_cv_prog_cc_g" >&6; }
5271if test "$ac_test_CFLAGS" = set; then
5272 CFLAGS=$ac_save_CFLAGS
5273elif test $ac_cv_prog_cc_g = yes; then
5274 if test "$GCC" = yes; then
5275 CFLAGS="-g -O2"
5276 else
5277 CFLAGS="-g"
5278 fi
5279else
5280 if test "$GCC" = yes; then
5281 CFLAGS="-O2"
5282 else
5283 CFLAGS=
5284 fi
5285fi
5286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5287$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5288if test "${ac_cv_prog_cc_c89+set}" = set; then :
5289 $as_echo_n "(cached) " >&6
5290else
5291 ac_cv_prog_cc_c89=no
5292ac_save_CC=$CC
5293cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5294/* end confdefs.h. */
5295#include <stdarg.h>
5296#include <stdio.h>
5297#include <sys/types.h>
5298#include <sys/stat.h>
5299/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5300struct buf { int x; };
5301FILE * (*rcsopen) (struct buf *, struct stat *, int);
5302static char *e (p, i)
5303 char **p;
5304 int i;
5305{
5306 return p[i];
5307}
5308static char *f (char * (*g) (char **, int), char **p, ...)
5309{
5310 char *s;
5311 va_list v;
5312 va_start (v,p);
5313 s = g (p, va_arg (v,int));
5314 va_end (v);
5315 return s;
5316}
5317
5318/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5319 function prototypes and stuff, but not '\xHH' hex character constants.
5320 These don't provoke an error unfortunately, instead are silently treated
5321 as 'x'. The following induces an error, until -std is added to get
5322 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5323 array size at least. It's necessary to write '\x00'==0 to get something
5324 that's true only with -std. */
5325int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5326
5327/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5328 inside strings and character constants. */
5329#define FOO(x) 'x'
5330int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5331
5332int test (int i, double x);
5333struct s1 {int (*f) (int a);};
5334struct s2 {int (*f) (double a);};
5335int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5336int argc;
5337char **argv;
5338int
5339main ()
5340{
5341return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5342 ;
5343 return 0;
5344}
5345_ACEOF
5346for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5347 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5348do
5349 CC="$ac_save_CC $ac_arg"
5350 if ac_fn_c_try_compile "$LINENO"; then :
5351 ac_cv_prog_cc_c89=$ac_arg
5352fi
5353rm -f core conftest.err conftest.$ac_objext
5354 test "x$ac_cv_prog_cc_c89" != "xno" && break
5355done
5356rm -f conftest.$ac_ext
5357CC=$ac_save_CC
5358
5359fi
5360# AC_CACHE_VAL
5361case "x$ac_cv_prog_cc_c89" in
5362 x)
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5364$as_echo "none needed" >&6; } ;;
5365 xno)
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5367$as_echo "unsupported" >&6; } ;;
5368 *)
5369 CC="$CC $ac_cv_prog_cc_c89"
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5371$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5372esac
5373if test "x$ac_cv_prog_cc_c89" != xno; then :
5374
5375fi
5376
5377ac_ext=c
5378ac_cpp='$CPP $CPPFLAGS'
5379ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5380ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5381ac_compiler_gnu=$ac_cv_c_compiler_gnu
5382
5383
5384am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5385
5386
5387ac_aux_dir=
5388for ac_dir in ../.. "$srcdir"/../..; do
5389 for ac_t in install-sh install.sh shtool; do
5390 if test -f "$ac_dir/$ac_t"; then
5391 ac_aux_dir=$ac_dir
5392 ac_install_sh="$ac_aux_dir/$ac_t -c"
5393 break 2
5394 fi
5395 done
5396done
5397if test -z "$ac_aux_dir"; then
5398 as_fn_error "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
5399fi
5400
5401# These three variables are undocumented and unsupported,
5402# and are intended to be withdrawn in a future Autoconf release.
5403# They can cause serious problems if a builder's source tree is in a directory
5404# whose full name contains unusual characters.
5405ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5406ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5407ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5408
5409
5410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
5411$as_echo_n "checking target system type... " >&6; }
5412if test "${ac_cv_target+set}" = set; then :
5413 $as_echo_n "(cached) " >&6
5414else
5415 if test "x$target_alias" = x; then
5416 ac_cv_target=$ac_cv_host
5417else
5418 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
5419 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5420fi
5421
5422fi
5423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
5424$as_echo "$ac_cv_target" >&6; }
5425case $ac_cv_target in
5426*-*-*) ;;
5427*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
5428esac
5429target=$ac_cv_target
5430ac_save_IFS=$IFS; IFS='-'
5431set x $ac_cv_target
5432shift
5433target_cpu=$1
5434target_vendor=$2
5435shift; shift
5436# Remember, the first character of IFS is used to create $*,
5437# except with old shells:
5438target_os=$*
5439IFS=$ac_save_IFS
5440case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
5441
5442
5443# The aliases save the names the user supplied, while $host etc.
5444# will get canonicalized.
5445test -n "$target_alias" &&
5446 test "$program_prefix$program_suffix$program_transform_name" = \
5447 NONENONEs,x,x, &&
5448 program_prefix=${target_alias}-
5449
5450
5451
5452
5453
5454
5455
5456 LIBC_FATAL_STDERR_=1
5457 export LIBC_FATAL_STDERR_
5458
8690e634
JK
5459# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5460# for constant arguments. Useless!
5461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5462$as_echo_n "checking for working alloca.h... " >&6; }
5463if test "${ac_cv_working_alloca_h+set}" = set; then :
c971b7fa
PA
5464 $as_echo_n "(cached) " >&6
5465else
8690e634 5466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa 5467/* end confdefs.h. */
8690e634 5468#include <alloca.h>
c971b7fa
PA
5469int
5470main ()
5471{
8690e634
JK
5472char *p = (char *) alloca (2 * sizeof (int));
5473 if (p) return 0;
c971b7fa
PA
5474 ;
5475 return 0;
5476}
c971b7fa
PA
5477_ACEOF
5478if ac_fn_c_try_link "$LINENO"; then :
8690e634 5479 ac_cv_working_alloca_h=yes
c971b7fa 5480else
8690e634 5481 ac_cv_working_alloca_h=no
c971b7fa
PA
5482fi
5483rm -f core conftest.err conftest.$ac_objext \
5484 conftest$ac_exeext conftest.$ac_ext
c971b7fa 5485fi
8690e634
JK
5486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5487$as_echo "$ac_cv_working_alloca_h" >&6; }
5488if test $ac_cv_working_alloca_h = yes; then
c971b7fa 5489
8690e634 5490$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
c971b7fa 5491
8690e634 5492fi
c971b7fa 5493
8690e634
JK
5494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5495$as_echo_n "checking for alloca... " >&6; }
5496if test "${ac_cv_func_alloca_works+set}" = set; then :
c971b7fa 5497 $as_echo_n "(cached) " >&6
c971b7fa
PA
5498else
5499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5500/* end confdefs.h. */
8690e634
JK
5501#ifdef __GNUC__
5502# define alloca __builtin_alloca
5503#else
5504# ifdef _MSC_VER
5505# include <malloc.h>
5506# define alloca _alloca
5507# else
5508# ifdef HAVE_ALLOCA_H
5509# include <alloca.h>
5510# else
5511# ifdef _AIX
5512 #pragma alloca
5513# else
5514# ifndef alloca /* predefined by HP cc +Olibcalls */
5515char *alloca ();
5516# endif
5517# endif
5518# endif
5519# endif
5520#endif
5521
c971b7fa
PA
5522int
5523main ()
5524{
8690e634
JK
5525char *p = (char *) alloca (1);
5526 if (p) return 0;
c971b7fa
PA
5527 ;
5528 return 0;
5529}
5530_ACEOF
8690e634
JK
5531if ac_fn_c_try_link "$LINENO"; then :
5532 ac_cv_func_alloca_works=yes
c971b7fa 5533else
8690e634 5534 ac_cv_func_alloca_works=no
c971b7fa 5535fi
8690e634
JK
5536rm -f core conftest.err conftest.$ac_objext \
5537 conftest$ac_exeext conftest.$ac_ext
c971b7fa 5538fi
a143c6de
JB
5539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5540$as_echo "$ac_cv_func_alloca_works" >&6; }
c971b7fa 5541
a143c6de 5542if test $ac_cv_func_alloca_works = yes; then
c971b7fa 5543
a143c6de 5544$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
c971b7fa 5545
a143c6de
JB
5546else
5547 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5548# that cause trouble. Some versions do not even contain alloca or
5549# contain a buggy version. If you still want to use their alloca,
5550# use ar to extract alloca.o from them instead of compiling alloca.c.
c971b7fa
PA
5551
5552
5553
5554
5555
a143c6de 5556ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
c971b7fa 5557
a143c6de 5558$as_echo "#define C_ALLOCA 1" >>confdefs.h
c971b7fa 5559
c971b7fa 5560
a143c6de
JB
5561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
5562$as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
5563if test "${ac_cv_os_cray+set}" = set; then :
8690e634
JK
5564 $as_echo_n "(cached) " >&6
5565else
a143c6de 5566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690e634 5567/* end confdefs.h. */
a143c6de
JB
5568#if defined CRAY && ! defined CRAY2
5569webecray
5570#else
5571wenotbecray
8690e634 5572#endif
c971b7fa 5573
8690e634
JK
5574_ACEOF
5575if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
a143c6de
JB
5576 $EGREP "webecray" >/dev/null 2>&1; then :
5577 ac_cv_os_cray=yes
8690e634 5578else
a143c6de 5579 ac_cv_os_cray=no
8690e634
JK
5580fi
5581rm -f conftest*
c971b7fa 5582
c0fc7f8b 5583fi
a143c6de
JB
5584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5585$as_echo "$ac_cv_os_cray" >&6; }
5586if test $ac_cv_os_cray = yes; then
5587 for ac_func in _getb67 GETB67 getb67; do
5588 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5589ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5590eval as_val=\$$as_ac_var
5591 if test "x$as_val" = x""yes; then :
c0fc7f8b 5592
a143c6de
JB
5593cat >>confdefs.h <<_ACEOF
5594#define CRAY_STACKSEG_END $ac_func
5595_ACEOF
c971b7fa 5596
a143c6de 5597 break
8690e634 5598fi
c971b7fa 5599
a143c6de 5600 done
8690e634 5601fi
c0fc7f8b 5602
a143c6de
JB
5603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5604$as_echo_n "checking stack direction for C alloca... " >&6; }
5605if test "${ac_cv_c_stack_direction+set}" = set; then :
c971b7fa
PA
5606 $as_echo_n "(cached) " >&6
5607else
a143c6de
JB
5608 if test "$cross_compiling" = yes; then :
5609 ac_cv_c_stack_direction=0
5610else
5611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa 5612/* end confdefs.h. */
a143c6de
JB
5613$ac_includes_default
5614int
5615find_stack_direction (int *addr, int depth)
5616{
5617 int dir, dummy = 0;
5618 if (! addr)
5619 addr = &dummy;
5620 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
5621 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
5622 return dir + dummy;
5623}
8690e634 5624
a143c6de
JB
5625int
5626main (int argc, char **argv)
5627{
5628 return find_stack_direction (0, argc + !argv + 20) < 0;
5629}
c971b7fa 5630_ACEOF
a143c6de
JB
5631if ac_fn_c_try_run "$LINENO"; then :
5632 ac_cv_c_stack_direction=1
c971b7fa 5633else
a143c6de 5634 ac_cv_c_stack_direction=-1
8690e634 5635fi
a143c6de
JB
5636rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5637 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 5638fi
c971b7fa
PA
5639
5640fi
a143c6de
JB
5641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5642$as_echo "$ac_cv_c_stack_direction" >&6; }
5643cat >>confdefs.h <<_ACEOF
5644#define STACK_DIRECTION $ac_cv_c_stack_direction
5645_ACEOF
8690e634 5646
c971b7fa
PA
5647
5648fi
c971b7fa
PA
5649
5650
e26b6bb0
TT
5651 GNULIB_CHDIR=0;
5652 GNULIB_CHOWN=0;
5653 GNULIB_CLOSE=0;
5654 GNULIB_DUP=0;
5655 GNULIB_DUP2=0;
5656 GNULIB_DUP3=0;
5657 GNULIB_ENVIRON=0;
5658 GNULIB_EUIDACCESS=0;
5659 GNULIB_FACCESSAT=0;
5660 GNULIB_FCHDIR=0;
5661 GNULIB_FCHOWNAT=0;
5662 GNULIB_FDATASYNC=0;
5663 GNULIB_FSYNC=0;
5664 GNULIB_FTRUNCATE=0;
5665 GNULIB_GETCWD=0;
5666 GNULIB_GETDOMAINNAME=0;
5667 GNULIB_GETDTABLESIZE=0;
5668 GNULIB_GETGROUPS=0;
5669 GNULIB_GETHOSTNAME=0;
5670 GNULIB_GETLOGIN=0;
5671 GNULIB_GETLOGIN_R=0;
5672 GNULIB_GETPAGESIZE=0;
5673 GNULIB_GETUSERSHELL=0;
5674 GNULIB_GROUP_MEMBER=0;
5675 GNULIB_ISATTY=0;
5676 GNULIB_LCHOWN=0;
5677 GNULIB_LINK=0;
5678 GNULIB_LINKAT=0;
5679 GNULIB_LSEEK=0;
5680 GNULIB_PIPE=0;
5681 GNULIB_PIPE2=0;
5682 GNULIB_PREAD=0;
5683 GNULIB_PWRITE=0;
5684 GNULIB_READ=0;
5685 GNULIB_READLINK=0;
5686 GNULIB_READLINKAT=0;
5687 GNULIB_RMDIR=0;
5688 GNULIB_SETHOSTNAME=0;
5689 GNULIB_SLEEP=0;
5690 GNULIB_SYMLINK=0;
5691 GNULIB_SYMLINKAT=0;
5692 GNULIB_TTYNAME_R=0;
5693 GNULIB_UNISTD_H_NONBLOCKING=0;
5694 GNULIB_UNISTD_H_SIGPIPE=0;
5695 GNULIB_UNLINK=0;
5696 GNULIB_UNLINKAT=0;
5697 GNULIB_USLEEP=0;
5698 GNULIB_WRITE=0;
5699 HAVE_CHOWN=1;
5700 HAVE_DUP2=1;
5701 HAVE_DUP3=1;
5702 HAVE_EUIDACCESS=1;
5703 HAVE_FACCESSAT=1;
5704 HAVE_FCHDIR=1;
5705 HAVE_FCHOWNAT=1;
5706 HAVE_FDATASYNC=1;
5707 HAVE_FSYNC=1;
5708 HAVE_FTRUNCATE=1;
5709 HAVE_GETDTABLESIZE=1;
5710 HAVE_GETGROUPS=1;
5711 HAVE_GETHOSTNAME=1;
5712 HAVE_GETLOGIN=1;
5713 HAVE_GETPAGESIZE=1;
5714 HAVE_GROUP_MEMBER=1;
5715 HAVE_LCHOWN=1;
5716 HAVE_LINK=1;
5717 HAVE_LINKAT=1;
5718 HAVE_PIPE=1;
5719 HAVE_PIPE2=1;
5720 HAVE_PREAD=1;
5721 HAVE_PWRITE=1;
5722 HAVE_READLINK=1;
5723 HAVE_READLINKAT=1;
5724 HAVE_SETHOSTNAME=1;
5725 HAVE_SLEEP=1;
5726 HAVE_SYMLINK=1;
5727 HAVE_SYMLINKAT=1;
5728 HAVE_UNLINKAT=1;
5729 HAVE_USLEEP=1;
5730 HAVE_DECL_ENVIRON=1;
5731 HAVE_DECL_FCHDIR=1;
5732 HAVE_DECL_FDATASYNC=1;
5733 HAVE_DECL_GETDOMAINNAME=1;
5734 HAVE_DECL_GETLOGIN_R=1;
5735 HAVE_DECL_GETPAGESIZE=1;
5736 HAVE_DECL_GETUSERSHELL=1;
5737 HAVE_DECL_SETHOSTNAME=1;
5738 HAVE_DECL_TTYNAME_R=1;
5739 HAVE_OS_H=0;
5740 HAVE_SYS_PARAM_H=0;
5741 REPLACE_CHOWN=0;
5742 REPLACE_CLOSE=0;
5743 REPLACE_DUP=0;
5744 REPLACE_DUP2=0;
5745 REPLACE_FCHOWNAT=0;
5746 REPLACE_FTRUNCATE=0;
5747 REPLACE_GETCWD=0;
5748 REPLACE_GETDOMAINNAME=0;
5749 REPLACE_GETLOGIN_R=0;
5750 REPLACE_GETGROUPS=0;
5751 REPLACE_GETPAGESIZE=0;
5752 REPLACE_ISATTY=0;
5753 REPLACE_LCHOWN=0;
5754 REPLACE_LINK=0;
5755 REPLACE_LINKAT=0;
5756 REPLACE_LSEEK=0;
5757 REPLACE_PREAD=0;
5758 REPLACE_PWRITE=0;
5759 REPLACE_READ=0;
5760 REPLACE_READLINK=0;
5761 REPLACE_RMDIR=0;
5762 REPLACE_SLEEP=0;
5763 REPLACE_SYMLINK=0;
5764 REPLACE_TTYNAME_R=0;
5765 REPLACE_UNLINK=0;
5766 REPLACE_UNLINKAT=0;
5767 REPLACE_USLEEP=0;
5768 REPLACE_WRITE=0;
5769 UNISTD_H_HAVE_WINSOCK2_H=0;
5770 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
5771
5772
5773
5774 GNULIB_OPENDIR=0;
5775 GNULIB_READDIR=0;
5776 GNULIB_REWINDDIR=0;
5777 GNULIB_CLOSEDIR=0;
5778 GNULIB_DIRFD=0;
5779 GNULIB_FDOPENDIR=0;
5780 GNULIB_SCANDIR=0;
5781 GNULIB_ALPHASORT=0;
5782 HAVE_OPENDIR=1;
5783 HAVE_READDIR=1;
5784 HAVE_REWINDDIR=1;
5785 HAVE_CLOSEDIR=1;
5786 HAVE_DECL_DIRFD=1;
5787 HAVE_DECL_FDOPENDIR=1;
5788 HAVE_FDOPENDIR=1;
5789 HAVE_SCANDIR=1;
5790 HAVE_ALPHASORT=1;
5791 REPLACE_OPENDIR=0;
5792 REPLACE_CLOSEDIR=0;
5793 REPLACE_DIRFD=0;
5794 REPLACE_FDOPENDIR=0;
5795
5796
5797
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
5799$as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
5800if test "${gl_cv_have_include_next+set}" = set; then :
5801 $as_echo_n "(cached) " >&6
5802else
5803 rm -rf conftestd1a conftestd1b conftestd2
5804 mkdir conftestd1a conftestd1b conftestd2
5805 cat <<EOF > conftestd1a/conftest.h
5806#define DEFINED_IN_CONFTESTD1
5807#include_next <conftest.h>
5808#ifdef DEFINED_IN_CONFTESTD2
5809int foo;
5810#else
88b48903
WN
5811#error "include_next doesn't work"
5812#endif
5813EOF
5814 cat <<EOF > conftestd1b/conftest.h
5815#define DEFINED_IN_CONFTESTD1
5816#include <stdio.h>
5817#include_next <conftest.h>
5818#ifdef DEFINED_IN_CONFTESTD2
5819int foo;
5820#else
5821#error "include_next doesn't work"
5822#endif
5823EOF
5824 cat <<EOF > conftestd2/conftest.h
5825#ifndef DEFINED_IN_CONFTESTD1
5826#error "include_next test doesn't work"
5827#endif
5828#define DEFINED_IN_CONFTESTD2
5829EOF
5830 gl_save_CPPFLAGS="$CPPFLAGS"
5831 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
5832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5833/* end confdefs.h. */
5834#include <conftest.h>
5835_ACEOF
5836if ac_fn_c_try_compile "$LINENO"; then :
5837 gl_cv_have_include_next=yes
5838else
5839 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
5840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5841/* end confdefs.h. */
5842#include <conftest.h>
5843_ACEOF
5844if ac_fn_c_try_compile "$LINENO"; then :
5845 gl_cv_have_include_next=buggy
5846else
5847 gl_cv_have_include_next=no
5848fi
5849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5850
5851fi
5852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5853 CPPFLAGS="$gl_save_CPPFLAGS"
5854 rm -rf conftestd1a conftestd1b conftestd2
5855
5856fi
5857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
5858$as_echo "$gl_cv_have_include_next" >&6; }
5859 PRAGMA_SYSTEM_HEADER=
5860 if test $gl_cv_have_include_next = yes; then
5861 INCLUDE_NEXT=include_next
5862 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5863 if test -n "$GCC"; then
5864 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
5865 fi
5866 else
5867 if test $gl_cv_have_include_next = buggy; then
5868 INCLUDE_NEXT=include
5869 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5870 else
5871 INCLUDE_NEXT=include
5872 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
5873 fi
5874 fi
5875
5876
5877
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
5879$as_echo_n "checking whether system header files limit the line length... " >&6; }
5880if test "${gl_cv_pragma_columns+set}" = set; then :
5881 $as_echo_n "(cached) " >&6
5882else
5883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5884/* end confdefs.h. */
5885
5886#ifdef __TANDEM
5887choke me
5888#endif
5889
5890_ACEOF
5891if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5892 $EGREP "choke me" >/dev/null 2>&1; then :
5893 gl_cv_pragma_columns=yes
5894else
5895 gl_cv_pragma_columns=no
5896fi
5897rm -f conftest*
5898
5899
5900fi
5901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
5902$as_echo "$gl_cv_pragma_columns" >&6; }
5903 if test $gl_cv_pragma_columns = yes; then
5904 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
5905 else
5906 PRAGMA_COLUMNS=
5907 fi
5908
5909
5910
5911
e26b6bb0
TT
5912
5913 for ac_header in $ac_header_list
5914do :
5915 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5916ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5917"
5918eval as_val=\$$as_ac_Header
5919 if test "x$as_val" = x""yes; then :
5920 cat >>confdefs.h <<_ACEOF
5921#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5922_ACEOF
5923
5924fi
5925
5926done
5927
5928
5929
5930
5931
63ce7108
TT
5932
5933
5934
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
5936$as_echo_n "checking for mbstate_t... " >&6; }
5937if test "${ac_cv_type_mbstate_t+set}" = set; then :
5938 $as_echo_n "(cached) " >&6
5939else
5940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5941/* end confdefs.h. */
5942$ac_includes_default
5943/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
5944 <wchar.h>.
5945 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5946 included before <wchar.h>. */
5947#include <stddef.h>
5948#include <stdio.h>
5949#include <time.h>
5950#include <wchar.h>
5951int
5952main ()
5953{
5954mbstate_t x; return sizeof x;
5955 ;
5956 return 0;
5957}
5958_ACEOF
5959if ac_fn_c_try_compile "$LINENO"; then :
5960 ac_cv_type_mbstate_t=yes
5961else
5962 ac_cv_type_mbstate_t=no
5963fi
5964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5965fi
5966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
5967$as_echo "$ac_cv_type_mbstate_t" >&6; }
5968 if test $ac_cv_type_mbstate_t = yes; then
5969
5970$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
5971
5972 else
5973
5974$as_echo "#define mbstate_t int" >>confdefs.h
5975
5976 fi
5977
5978
5979
5980
5981 for ac_func in $ac_func_list
5982do :
5983 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5984ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5985eval as_val=\$$as_ac_var
5986 if test "x$as_val" = x""yes; then :
5987 cat >>confdefs.h <<_ACEOF
5988#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5989_ACEOF
5990
5991fi
5992done
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
63ce7108
TT
6013 GNULIB_ACOSF=0;
6014 GNULIB_ACOSL=0;
6015 GNULIB_ASINF=0;
6016 GNULIB_ASINL=0;
6017 GNULIB_ATANF=0;
6018 GNULIB_ATANL=0;
6019 GNULIB_ATAN2F=0;
6020 GNULIB_CBRT=0;
6021 GNULIB_CBRTF=0;
6022 GNULIB_CBRTL=0;
6023 GNULIB_CEIL=0;
6024 GNULIB_CEILF=0;
6025 GNULIB_CEILL=0;
6026 GNULIB_COPYSIGN=0;
6027 GNULIB_COPYSIGNF=0;
88b48903
WN
6028 GNULIB_COPYSIGNL=0;
6029 GNULIB_COSF=0;
6030 GNULIB_COSL=0;
6031 GNULIB_COSHF=0;
6032 GNULIB_EXPF=0;
6033 GNULIB_EXPL=0;
6034 GNULIB_EXP2=0;
6035 GNULIB_EXP2F=0;
6036 GNULIB_EXP2L=0;
6037 GNULIB_EXPM1=0;
6038 GNULIB_EXPM1F=0;
6039 GNULIB_EXPM1L=0;
6040 GNULIB_FABSF=0;
6041 GNULIB_FABSL=0;
6042 GNULIB_FLOOR=0;
6043 GNULIB_FLOORF=0;
6044 GNULIB_FLOORL=0;
6045 GNULIB_FMA=0;
6046 GNULIB_FMAF=0;
6047 GNULIB_FMAL=0;
6048 GNULIB_FMOD=0;
6049 GNULIB_FMODF=0;
6050 GNULIB_FMODL=0;
6051 GNULIB_FREXPF=0;
6052 GNULIB_FREXP=0;
6053 GNULIB_FREXPL=0;
6054 GNULIB_HYPOT=0;
6055 GNULIB_HYPOTF=0;
6056 GNULIB_HYPOTL=0;
6057 GNULIB_ILOGB=0;
6058 GNULIB_ILOGBF=0;
6059 GNULIB_ILOGBL=0;
6060 GNULIB_ISFINITE=0;
6061 GNULIB_ISINF=0;
6062 GNULIB_ISNAN=0;
6063 GNULIB_ISNANF=0;
6064 GNULIB_ISNAND=0;
6065 GNULIB_ISNANL=0;
6066 GNULIB_LDEXPF=0;
6067 GNULIB_LDEXPL=0;
6068 GNULIB_LOG=0;
6069 GNULIB_LOGF=0;
6070 GNULIB_LOGL=0;
6071 GNULIB_LOG10=0;
6072 GNULIB_LOG10F=0;
6073 GNULIB_LOG10L=0;
6074 GNULIB_LOG1P=0;
6075 GNULIB_LOG1PF=0;
6076 GNULIB_LOG1PL=0;
6077 GNULIB_LOG2=0;
6078 GNULIB_LOG2F=0;
6079 GNULIB_LOG2L=0;
6080 GNULIB_LOGB=0;
6081 GNULIB_LOGBF=0;
6082 GNULIB_LOGBL=0;
6083 GNULIB_MODF=0;
6084 GNULIB_MODFF=0;
6085 GNULIB_MODFL=0;
6086 GNULIB_POWF=0;
6087 GNULIB_REMAINDER=0;
6088 GNULIB_REMAINDERF=0;
6089 GNULIB_REMAINDERL=0;
6090 GNULIB_RINT=0;
6091 GNULIB_RINTF=0;
6092 GNULIB_RINTL=0;
6093 GNULIB_ROUND=0;
6094 GNULIB_ROUNDF=0;
6095 GNULIB_ROUNDL=0;
6096 GNULIB_SIGNBIT=0;
6097 GNULIB_SINF=0;
6098 GNULIB_SINL=0;
6099 GNULIB_SINHF=0;
6100 GNULIB_SQRTF=0;
6101 GNULIB_SQRTL=0;
6102 GNULIB_TANF=0;
6103 GNULIB_TANL=0;
6104 GNULIB_TANHF=0;
6105 GNULIB_TRUNC=0;
6106 GNULIB_TRUNCF=0;
6107 GNULIB_TRUNCL=0;
6108 HAVE_ACOSF=1;
6109 HAVE_ACOSL=1;
6110 HAVE_ASINF=1;
6111 HAVE_ASINL=1;
6112 HAVE_ATANF=1;
6113 HAVE_ATANL=1;
6114 HAVE_ATAN2F=1;
6115 HAVE_CBRT=1;
6116 HAVE_CBRTF=1;
6117 HAVE_CBRTL=1;
6118 HAVE_COPYSIGN=1;
6119 HAVE_COPYSIGNL=1;
6120 HAVE_COSF=1;
6121 HAVE_COSL=1;
6122 HAVE_COSHF=1;
6123 HAVE_EXPF=1;
6124 HAVE_EXPL=1;
6125 HAVE_EXPM1=1;
6126 HAVE_EXPM1F=1;
6127 HAVE_FABSF=1;
6128 HAVE_FABSL=1;
6129 HAVE_FMA=1;
6130 HAVE_FMAF=1;
6131 HAVE_FMAL=1;
6132 HAVE_FMODF=1;
6133 HAVE_FMODL=1;
6134 HAVE_FREXPF=1;
6135 HAVE_HYPOTF=1;
6136 HAVE_HYPOTL=1;
6137 HAVE_ILOGB=1;
6138 HAVE_ILOGBF=1;
6139 HAVE_ILOGBL=1;
6140 HAVE_ISNANF=1;
6141 HAVE_ISNAND=1;
6142 HAVE_ISNANL=1;
6143 HAVE_LDEXPF=1;
6144 HAVE_LOGF=1;
6145 HAVE_LOGL=1;
6146 HAVE_LOG10F=1;
6147 HAVE_LOG10L=1;
6148 HAVE_LOG1P=1;
6149 HAVE_LOG1PF=1;
6150 HAVE_LOG1PL=1;
6151 HAVE_LOGBF=1;
6152 HAVE_LOGBL=1;
6153 HAVE_MODFF=1;
6154 HAVE_MODFL=1;
6155 HAVE_POWF=1;
6156 HAVE_REMAINDER=1;
6157 HAVE_REMAINDERF=1;
6158 HAVE_RINT=1;
6159 HAVE_RINTL=1;
6160 HAVE_SINF=1;
6161 HAVE_SINL=1;
6162 HAVE_SINHF=1;
6163 HAVE_SQRTF=1;
6164 HAVE_SQRTL=1;
6165 HAVE_TANF=1;
6166 HAVE_TANL=1;
6167 HAVE_TANHF=1;
6168 HAVE_DECL_ACOSL=1;
6169 HAVE_DECL_ASINL=1;
6170 HAVE_DECL_ATANL=1;
6171 HAVE_DECL_CBRTF=1;
6172 HAVE_DECL_CBRTL=1;
6173 HAVE_DECL_CEILF=1;
6174 HAVE_DECL_CEILL=1;
6175 HAVE_DECL_COPYSIGNF=1;
6176 HAVE_DECL_COSL=1;
6177 HAVE_DECL_EXPL=1;
6178 HAVE_DECL_EXP2=1;
6179 HAVE_DECL_EXP2F=1;
6180 HAVE_DECL_EXP2L=1;
6181 HAVE_DECL_EXPM1L=1;
6182 HAVE_DECL_FLOORF=1;
6183 HAVE_DECL_FLOORL=1;
6184 HAVE_DECL_FREXPL=1;
6185 HAVE_DECL_LDEXPL=1;
6186 HAVE_DECL_LOGL=1;
6187 HAVE_DECL_LOG10L=1;
6188 HAVE_DECL_LOG2=1;
6189 HAVE_DECL_LOG2F=1;
6190 HAVE_DECL_LOG2L=1;
6191 HAVE_DECL_LOGB=1;
6192 HAVE_DECL_REMAINDER=1;
6193 HAVE_DECL_REMAINDERL=1;
6194 HAVE_DECL_RINTF=1;
6195 HAVE_DECL_ROUND=1;
6196 HAVE_DECL_ROUNDF=1;
6197 HAVE_DECL_ROUNDL=1;
6198 HAVE_DECL_SINL=1;
6199 HAVE_DECL_SQRTL=1;
6200 HAVE_DECL_TANL=1;
6201 HAVE_DECL_TRUNC=1;
6202 HAVE_DECL_TRUNCF=1;
6203 HAVE_DECL_TRUNCL=1;
6204 REPLACE_CBRTF=0;
6205 REPLACE_CBRTL=0;
6206 REPLACE_CEIL=0;
6207 REPLACE_CEILF=0;
6208 REPLACE_CEILL=0;
6209 REPLACE_EXPM1=0;
6210 REPLACE_EXPM1F=0;
6211 REPLACE_EXP2=0;
6212 REPLACE_EXP2L=0;
6213 REPLACE_FABSL=0;
6214 REPLACE_FLOOR=0;
6215 REPLACE_FLOORF=0;
6216 REPLACE_FLOORL=0;
6217 REPLACE_FMA=0;
6218 REPLACE_FMAF=0;
6219 REPLACE_FMAL=0;
6220 REPLACE_FMOD=0;
6221 REPLACE_FMODF=0;
6222 REPLACE_FMODL=0;
6223 REPLACE_FREXPF=0;
6224 REPLACE_FREXP=0;
6225 REPLACE_FREXPL=0;
6226 REPLACE_HUGE_VAL=0;
6227 REPLACE_HYPOT=0;
6228 REPLACE_HYPOTF=0;
6229 REPLACE_HYPOTL=0;
6230 REPLACE_ILOGB=0;
6231 REPLACE_ILOGBF=0;
6232 REPLACE_ISFINITE=0;
6233 REPLACE_ISINF=0;
6234 REPLACE_ISNAN=0;
6235 REPLACE_LDEXPL=0;
6236 REPLACE_LOG=0;
6237 REPLACE_LOGF=0;
6238 REPLACE_LOGL=0;
6239 REPLACE_LOG10=0;
6240 REPLACE_LOG10F=0;
6241 REPLACE_LOG10L=0;
6242 REPLACE_LOG1P=0;
6243 REPLACE_LOG1PF=0;
6244 REPLACE_LOG1PL=0;
6245 REPLACE_LOG2=0;
6246 REPLACE_LOG2F=0;
6247 REPLACE_LOG2L=0;
6248 REPLACE_LOGB=0;
6249 REPLACE_LOGBF=0;
6250 REPLACE_LOGBL=0;
6251 REPLACE_MODF=0;
6252 REPLACE_MODFF=0;
6253 REPLACE_MODFL=0;
6254 REPLACE_NAN=0;
6255 REPLACE_REMAINDER=0;
6256 REPLACE_REMAINDERF=0;
6257 REPLACE_REMAINDERL=0;
6258 REPLACE_ROUND=0;
6259 REPLACE_ROUNDF=0;
6260 REPLACE_ROUNDL=0;
6261 REPLACE_SIGNBIT=0;
6262 REPLACE_SIGNBIT_USING_GCC=0;
6263 REPLACE_SQRTL=0;
6264 REPLACE_TRUNC=0;
6265 REPLACE_TRUNCF=0;
6266 REPLACE_TRUNCL=0;
6267
6268
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used without linking with libm" >&5
6270$as_echo_n "checking whether frexp() can be used without linking with libm... " >&6; }
6271if test "${gl_cv_func_frexp_no_libm+set}" = set; then :
6272 $as_echo_n "(cached) " >&6
6273else
6274
6275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6276/* end confdefs.h. */
6277#include <math.h>
6278 double x;
6279int
6280main ()
6281{
6282int e; return frexp (x, &e) > 0;
6283 ;
6284 return 0;
6285}
6286_ACEOF
6287if ac_fn_c_try_link "$LINENO"; then :
6288 gl_cv_func_frexp_no_libm=yes
6289else
6290 gl_cv_func_frexp_no_libm=no
6291fi
6292rm -f core conftest.err conftest.$ac_objext \
6293 conftest$ac_exeext conftest.$ac_ext
6294
6295fi
6296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
6297$as_echo "$gl_cv_func_frexp_no_libm" >&6; }
6298
6299
6300
6301
88b48903
WN
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double and double are the same" >&5
6303$as_echo_n "checking whether long double and double are the same... " >&6; }
6304if test "${gl_cv_long_double_equals_double+set}" = set; then :
6305 $as_echo_n "(cached) " >&6
6306else
6307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6308/* end confdefs.h. */
6309#include <float.h>
6310int
6311main ()
6312{
6313typedef int check[sizeof (long double) == sizeof (double)
6314 && LDBL_MANT_DIG == DBL_MANT_DIG
6315 && LDBL_MAX_EXP == DBL_MAX_EXP
6316 && LDBL_MIN_EXP == DBL_MIN_EXP
6317 ? 1 : -1];
6318
6319 ;
6320 return 0;
6321}
6322_ACEOF
6323if ac_fn_c_try_compile "$LINENO"; then :
6324 gl_cv_long_double_equals_double=yes
6325else
6326 gl_cv_long_double_equals_double=no
6327fi
6328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6329
6330fi
6331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_double_equals_double" >&5
6332$as_echo "$gl_cv_long_double_equals_double" >&6; }
6333 if test $gl_cv_long_double_equals_double = yes; then
6334
6335$as_echo "#define HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1" >>confdefs.h
6336
6337 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=1
6338 else
6339 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=0
6340 fi
6341
6342
6343
8690e634
JK
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6345$as_echo_n "checking for unsigned long long int... " >&6; }
6346if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6347 $as_echo_n "(cached) " >&6
6348else
6349 ac_cv_type_unsigned_long_long_int=yes
6350 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6352/* end confdefs.h. */
6353
6354 /* For now, do not test the preprocessor; as of 2007 there are too many
6355 implementations with broken preprocessors. Perhaps this can
6356 be revisited in 2012. In the meantime, code should not expect
6357 #if to work with literals wider than 32 bits. */
6358 /* Test literals. */
6359 long long int ll = 9223372036854775807ll;
6360 long long int nll = -9223372036854775807LL;
6361 unsigned long long int ull = 18446744073709551615ULL;
6362 /* Test constant expressions. */
6363 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6364 ? 1 : -1)];
6365 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6366 ? 1 : -1)];
6367 int i = 63;
6368int
6369main ()
6370{
6371/* Test availability of runtime routines for shift and division. */
6372 long long int llmax = 9223372036854775807ll;
6373 unsigned long long int ullmax = 18446744073709551615ull;
6374 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6375 | (llmax / ll) | (llmax % ll)
6376 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6377 | (ullmax / ull) | (ullmax % ull));
6378 ;
6379 return 0;
6380}
6381
6382_ACEOF
6383if ac_fn_c_try_link "$LINENO"; then :
6384
6385else
6386 ac_cv_type_unsigned_long_long_int=no
6387fi
6388rm -f core conftest.err conftest.$ac_objext \
6389 conftest$ac_exeext conftest.$ac_ext
6390 fi
6391fi
6392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6393$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6394 if test $ac_cv_type_unsigned_long_long_int = yes; then
6395
6396$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6397
6398 fi
6399
6400
6401
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6403$as_echo_n "checking for long long int... " >&6; }
6404if test "${ac_cv_type_long_long_int+set}" = set; then :
6405 $as_echo_n "(cached) " >&6
6406else
6407 ac_cv_type_long_long_int=yes
6408 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6409 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6410 if test $ac_cv_type_long_long_int = yes; then
6411 if test "$cross_compiling" = yes; then :
6412 :
6413else
6414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6415/* end confdefs.h. */
6416#include <limits.h>
6417 #ifndef LLONG_MAX
6418 # define HALF \
6419 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6420 # define LLONG_MAX (HALF - 1 + HALF)
6421 #endif
6422int
6423main ()
6424{
6425long long int n = 1;
6426 int i;
6427 for (i = 0; ; i++)
6428 {
6429 long long int m = n << i;
6430 if (m >> i != n)
6431 return 1;
6432 if (LLONG_MAX / 2 < m)
6433 break;
6434 }
6435 return 0;
6436 ;
6437 return 0;
6438}
6439_ACEOF
6440if ac_fn_c_try_run "$LINENO"; then :
6441
6442else
6443 ac_cv_type_long_long_int=no
6444fi
6445rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6446 conftest.$ac_objext conftest.beam conftest.$ac_ext
6447fi
6448
6449 fi
6450 fi
6451fi
6452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6453$as_echo "$ac_cv_type_long_long_int" >&6; }
6454 if test $ac_cv_type_long_long_int = yes; then
6455
6456$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6457
6458 fi
6459
6460
6461
6462
6463
6464
88b48903
WN
6465 gl_cv_c_multiarch=no
6466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a143c6de 6467/* end confdefs.h. */
88b48903
WN
6468#ifndef __APPLE_CC__
6469 not a universal capable compiler
6470 #endif
6471 typedef int dummy;
6472
8690e634
JK
6473_ACEOF
6474if ac_fn_c_try_compile "$LINENO"; then :
6475
6476 arch=
6477 prev=
6478 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
6479 if test -n "$prev"; then
6480 case $word in
6481 i?86 | x86_64 | ppc | ppc64)
6482 if test -z "$arch" || test "$arch" = "$word"; then
6483 arch="$word"
6484 else
6485 gl_cv_c_multiarch=yes
6486 fi
6487 ;;
6488 esac
6489 prev=
6490 else
6491 if test "x$word" = "x-arch"; then
6492 prev=arch
6493 fi
6494 fi
6495 done
6496
6497fi
6498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6499 if test $gl_cv_c_multiarch = yes; then
6500 APPLE_UNIVERSAL_BUILD=1
6501 else
6502 APPLE_UNIVERSAL_BUILD=0
6503 fi
6504
6505
6506
6507
6508
6509 if test $ac_cv_type_long_long_int = yes; then
6510 HAVE_LONG_LONG_INT=1
6511 else
6512 HAVE_LONG_LONG_INT=0
6513 fi
6514
6515
6516 if test $ac_cv_type_unsigned_long_long_int = yes; then
6517 HAVE_UNSIGNED_LONG_LONG_INT=1
6518 else
6519 HAVE_UNSIGNED_LONG_LONG_INT=0
6520 fi
6521
6522
6523
8690e634
JK
6524 if test $ac_cv_header_wchar_h = yes; then
6525 HAVE_WCHAR_H=1
6526 else
6527 HAVE_WCHAR_H=0
6528 fi
6529
6530
6531 if test $ac_cv_header_inttypes_h = yes; then
6532 HAVE_INTTYPES_H=1
6533 else
6534 HAVE_INTTYPES_H=0
6535 fi
6536
6537
6538 if test $ac_cv_header_sys_types_h = yes; then
6539 HAVE_SYS_TYPES_H=1
6540 else
6541 HAVE_SYS_TYPES_H=0
6542 fi
6543
6544
6545
6546
6547
6548
6549
6550
8690e634
JK
6551
6552
6553
6554 if test $gl_cv_have_include_next = yes; then
6555 gl_cv_next_stdint_h='<'stdint.h'>'
6556 else
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
6558$as_echo_n "checking absolute name of <stdint.h>... " >&6; }
6559if test "${gl_cv_next_stdint_h+set}" = set; then :
6560 $as_echo_n "(cached) " >&6
6561else
6562
6563 if test $ac_cv_header_stdint_h = yes; then
6564
6565
6566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6567/* end confdefs.h. */
6568#include <stdint.h>
6569
6570_ACEOF
6571 case "$host_os" in
6572 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6573 *) gl_absname_cpp="$ac_cpp" ;;
6574 esac
6575
6576 case "$host_os" in
6577 mingw*)
6578 gl_dirsep_regex='[/\\]'
6579 ;;
6580 *)
6581 gl_dirsep_regex='\/'
6582 ;;
6583 esac
6584 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
6585
6586 gl_header_literal_regex=`echo 'stdint.h' \
6587 | sed -e "$gl_make_literal_regex_sed"`
6588 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
6589 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
6590 s|^/[^/]|//&|
6591 p
6592 q
6593 }'
6594 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6595 sed -n "$gl_absolute_header_sed"`'"'
6596 else
6597 gl_cv_next_stdint_h='<'stdint.h'>'
6598 fi
6599
6600
6601fi
6602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
6603$as_echo "$gl_cv_next_stdint_h" >&6; }
6604 fi
6605 NEXT_STDINT_H=$gl_cv_next_stdint_h
6606
6607 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6608 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6609 gl_next_as_first_directive='<'stdint.h'>'
6610 else
6611 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6612 gl_next_as_first_directive=$gl_cv_next_stdint_h
6613 fi
6614 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
6615
6616
6617
6618
6619 if test $ac_cv_header_stdint_h = yes; then
6620 HAVE_STDINT_H=1
6621 else
6622 HAVE_STDINT_H=0
6623 fi
6624
6625
6626 if test $ac_cv_header_stdint_h = yes; then
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
6628$as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
6629if test "${gl_cv_header_working_stdint_h+set}" = set; then :
6630 $as_echo_n "(cached) " >&6
6631else
6632 gl_cv_header_working_stdint_h=no
6633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6634/* end confdefs.h. */
6635
6636
6637#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6638#include <stdint.h>
6639/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
6640#if !(defined WCHAR_MIN && defined WCHAR_MAX)
6641#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
6642#endif
6643
6644
6645 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6646 included before <wchar.h>. */
6647 #include <stddef.h>
6648 #include <signal.h>
6649 #if HAVE_WCHAR_H
6650 # include <stdio.h>
6651 # include <time.h>
6652 # include <wchar.h>
6653 #endif
6654
6655
6656#ifdef INT8_MAX
6657int8_t a1 = INT8_MAX;
6658int8_t a1min = INT8_MIN;
6659#endif
6660#ifdef INT16_MAX
6661int16_t a2 = INT16_MAX;
6662int16_t a2min = INT16_MIN;
6663#endif
6664#ifdef INT32_MAX
6665int32_t a3 = INT32_MAX;
6666int32_t a3min = INT32_MIN;
6667#endif
6668#ifdef INT64_MAX
6669int64_t a4 = INT64_MAX;
6670int64_t a4min = INT64_MIN;
6671#endif
6672#ifdef UINT8_MAX
6673uint8_t b1 = UINT8_MAX;
6674#else
6675typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
6676#endif
6677#ifdef UINT16_MAX
6678uint16_t b2 = UINT16_MAX;
6679#endif
6680#ifdef UINT32_MAX
6681uint32_t b3 = UINT32_MAX;
6682#endif
6683#ifdef UINT64_MAX
6684uint64_t b4 = UINT64_MAX;
6685#endif
6686int_least8_t c1 = INT8_C (0x7f);
6687int_least8_t c1max = INT_LEAST8_MAX;
6688int_least8_t c1min = INT_LEAST8_MIN;
6689int_least16_t c2 = INT16_C (0x7fff);
6690int_least16_t c2max = INT_LEAST16_MAX;
6691int_least16_t c2min = INT_LEAST16_MIN;
6692int_least32_t c3 = INT32_C (0x7fffffff);
6693int_least32_t c3max = INT_LEAST32_MAX;
6694int_least32_t c3min = INT_LEAST32_MIN;
6695int_least64_t c4 = INT64_C (0x7fffffffffffffff);
6696int_least64_t c4max = INT_LEAST64_MAX;
6697int_least64_t c4min = INT_LEAST64_MIN;
6698uint_least8_t d1 = UINT8_C (0xff);
6699uint_least8_t d1max = UINT_LEAST8_MAX;
6700uint_least16_t d2 = UINT16_C (0xffff);
6701uint_least16_t d2max = UINT_LEAST16_MAX;
6702uint_least32_t d3 = UINT32_C (0xffffffff);
6703uint_least32_t d3max = UINT_LEAST32_MAX;
6704uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
6705uint_least64_t d4max = UINT_LEAST64_MAX;
6706int_fast8_t e1 = INT_FAST8_MAX;
6707int_fast8_t e1min = INT_FAST8_MIN;
6708int_fast16_t e2 = INT_FAST16_MAX;
6709int_fast16_t e2min = INT_FAST16_MIN;
6710int_fast32_t e3 = INT_FAST32_MAX;
6711int_fast32_t e3min = INT_FAST32_MIN;
6712int_fast64_t e4 = INT_FAST64_MAX;
6713int_fast64_t e4min = INT_FAST64_MIN;
6714uint_fast8_t f1 = UINT_FAST8_MAX;
6715uint_fast16_t f2 = UINT_FAST16_MAX;
6716uint_fast32_t f3 = UINT_FAST32_MAX;
6717uint_fast64_t f4 = UINT_FAST64_MAX;
6718#ifdef INTPTR_MAX
6719intptr_t g = INTPTR_MAX;
6720intptr_t gmin = INTPTR_MIN;
6721#endif
6722#ifdef UINTPTR_MAX
6723uintptr_t h = UINTPTR_MAX;
6724#endif
6725intmax_t i = INTMAX_MAX;
6726uintmax_t j = UINTMAX_MAX;
6727
6728#include <limits.h> /* for CHAR_BIT */
6729#define TYPE_MINIMUM(t) \
6730 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
6731#define TYPE_MAXIMUM(t) \
6732 ((t) ((t) 0 < (t) -1 \
6733 ? (t) -1 \
6734 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
6735struct s {
6736 int check_PTRDIFF:
6737 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
6738 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
6739 ? 1 : -1;
6740 /* Detect bug in FreeBSD 6.0 / ia64. */
6741 int check_SIG_ATOMIC:
6742 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
6743 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
6744 ? 1 : -1;
6745 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
6746 int check_WCHAR:
6747 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
6748 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
6749 ? 1 : -1;
6750 /* Detect bug in mingw. */
6751 int check_WINT:
6752 WINT_MIN == TYPE_MINIMUM (wint_t)
6753 && WINT_MAX == TYPE_MAXIMUM (wint_t)
6754 ? 1 : -1;
6755
6756 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
6757 int check_UINT8_C:
6758 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
6759 int check_UINT16_C:
6760 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
6761
6762 /* Detect bugs in OpenBSD 3.9 stdint.h. */
6763#ifdef UINT8_MAX
6764 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
6765#endif
6766#ifdef UINT16_MAX
6767 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
6768#endif
6769#ifdef UINT32_MAX
6770 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
6771#endif
6772#ifdef UINT64_MAX
6773 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
6774#endif
6775 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
6776 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
6777 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
6778 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
6779 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
6780 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
6781 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
6782 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
6783 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
6784 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
6785 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
6786};
6787
6788int
6789main ()
6790{
6791
6792 ;
6793 return 0;
6794}
6795_ACEOF
6796if ac_fn_c_try_compile "$LINENO"; then :
6797 if test "$cross_compiling" = yes; then :
6798 gl_cv_header_working_stdint_h=yes
6799
6800else
6801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6802/* end confdefs.h. */
6803
6804
6805#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6806#include <stdint.h>
6807
6808
6809 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6810 included before <wchar.h>. */
6811 #include <stddef.h>
6812 #include <signal.h>
6813 #if HAVE_WCHAR_H
6814 # include <stdio.h>
6815 # include <time.h>
6816 # include <wchar.h>
6817 #endif
6818
6819
6820#include <stdio.h>
6821#include <string.h>
6822#define MVAL(macro) MVAL1(macro)
6823#define MVAL1(expression) #expression
6824static const char *macro_values[] =
6825 {
6826#ifdef INT8_MAX
6827 MVAL (INT8_MAX),
6828#endif
6829#ifdef INT16_MAX
6830 MVAL (INT16_MAX),
6831#endif
6832#ifdef INT32_MAX
6833 MVAL (INT32_MAX),
6834#endif
6835#ifdef INT64_MAX
6836 MVAL (INT64_MAX),
6837#endif
6838#ifdef UINT8_MAX
6839 MVAL (UINT8_MAX),
6840#endif
6841#ifdef UINT16_MAX
6842 MVAL (UINT16_MAX),
6843#endif
6844#ifdef UINT32_MAX
6845 MVAL (UINT32_MAX),
6846#endif
6847#ifdef UINT64_MAX
6848 MVAL (UINT64_MAX),
6849#endif
6850 NULL
6851 };
6852
6853int
6854main ()
6855{
6856
6857 const char **mv;
6858 for (mv = macro_values; *mv != NULL; mv++)
6859 {
6860 const char *value = *mv;
6861 /* Test whether it looks like a cast expression. */
6862 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
6863 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
6864 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
6865 || strncmp (value, "((int)"/*)*/, 6) == 0
6866 || strncmp (value, "((signed short)"/*)*/, 15) == 0
6867 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
6868 return mv - macro_values + 1;
6869 }
6870 return 0;
6871
6872 ;
6873 return 0;
6874}
6875_ACEOF
6876if ac_fn_c_try_run "$LINENO"; then :
6877 gl_cv_header_working_stdint_h=yes
6878fi
6879rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6880 conftest.$ac_objext conftest.beam conftest.$ac_ext
6881fi
6882
6883
6884fi
6885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6886
6887fi
6888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
6889$as_echo "$gl_cv_header_working_stdint_h" >&6; }
6890 fi
6891 if test "$gl_cv_header_working_stdint_h" = yes; then
6892 STDINT_H=
6893 else
6894 for ac_header in sys/inttypes.h sys/bitypes.h
6895do :
6896 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6897ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6898eval as_val=\$$as_ac_Header
6899 if test "x$as_val" = x""yes; then :
6900 cat >>confdefs.h <<_ACEOF
6901#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6902_ACEOF
6903
6904fi
6905
6906done
6907
6908 if test $ac_cv_header_sys_inttypes_h = yes; then
6909 HAVE_SYS_INTTYPES_H=1
6910 else
6911 HAVE_SYS_INTTYPES_H=0
6912 fi
6913
6914 if test $ac_cv_header_sys_bitypes_h = yes; then
6915 HAVE_SYS_BITYPES_H=1
6916 else
6917 HAVE_SYS_BITYPES_H=0
6918 fi
6919
6920
6921
6922
6923 if test $APPLE_UNIVERSAL_BUILD = 0; then
6924
6925
6926 for gltype in ptrdiff_t size_t ; do
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6928$as_echo_n "checking for bit size of $gltype... " >&6; }
6929if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6930 $as_echo_n "(cached) " >&6
6931else
6932 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
6933 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6934 included before <wchar.h>. */
6935 #include <stddef.h>
6936 #include <signal.h>
6937 #if HAVE_WCHAR_H
6938 # include <stdio.h>
6939 # include <time.h>
6940 # include <wchar.h>
6941 #endif
6942
6943#include <limits.h>"; then :
6944
6945else
6946 result=unknown
6947fi
6948
6949 eval gl_cv_bitsizeof_${gltype}=\$result
6950
6951fi
6952eval ac_res=\$gl_cv_bitsizeof_${gltype}
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6954$as_echo "$ac_res" >&6; }
6955 eval result=\$gl_cv_bitsizeof_${gltype}
6956 if test $result = unknown; then
6957 result=0
6958 fi
6959 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6960 cat >>confdefs.h <<_ACEOF
6961#define BITSIZEOF_${GLTYPE} $result
6962_ACEOF
6963
6964 eval BITSIZEOF_${GLTYPE}=\$result
6965 done
6966
6967
6968 fi
6969
6970
6971 for gltype in sig_atomic_t wchar_t wint_t ; do
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6973$as_echo_n "checking for bit size of $gltype... " >&6; }
6974if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6975 $as_echo_n "(cached) " >&6
6976else
6977 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
6978 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6979 included before <wchar.h>. */
6980 #include <stddef.h>
6981 #include <signal.h>
6982 #if HAVE_WCHAR_H
6983 # include <stdio.h>
6984 # include <time.h>
6985 # include <wchar.h>
6986 #endif
6987
6988#include <limits.h>"; then :
6989
6990else
6991 result=unknown
6992fi
6993
6994 eval gl_cv_bitsizeof_${gltype}=\$result
6995
6996fi
6997eval ac_res=\$gl_cv_bitsizeof_${gltype}
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6999$as_echo "$ac_res" >&6; }
7000 eval result=\$gl_cv_bitsizeof_${gltype}
7001 if test $result = unknown; then
7002 result=0
7003 fi
7004 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
7005 cat >>confdefs.h <<_ACEOF
7006#define BITSIZEOF_${GLTYPE} $result
7007_ACEOF
7008
7009 eval BITSIZEOF_${GLTYPE}=\$result
7010 done
7011
7012
7013
7014
7015 for gltype in sig_atomic_t wchar_t wint_t ; do
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
7017$as_echo_n "checking whether $gltype is signed... " >&6; }
7018if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
7019 $as_echo_n "(cached) " >&6
7020else
7021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7022/* end confdefs.h. */
7023
7024 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7025 included before <wchar.h>. */
7026 #include <stddef.h>
7027 #include <signal.h>
7028 #if HAVE_WCHAR_H
7029 # include <stdio.h>
7030 # include <time.h>
7031 # include <wchar.h>
7032 #endif
7033
7034 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
7035int
7036main ()
7037{
7038
7039 ;
7040 return 0;
7041}
7042_ACEOF
7043if ac_fn_c_try_compile "$LINENO"; then :
7044 result=yes
7045else
7046 result=no
7047fi
7048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7049 eval gl_cv_type_${gltype}_signed=\$result
7050
7051fi
7052eval ac_res=\$gl_cv_type_${gltype}_signed
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7054$as_echo "$ac_res" >&6; }
7055 eval result=\$gl_cv_type_${gltype}_signed
7056 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
7057 if test "$result" = yes; then
7058 cat >>confdefs.h <<_ACEOF
7059#define HAVE_SIGNED_${GLTYPE} 1
7060_ACEOF
7061
7062 eval HAVE_SIGNED_${GLTYPE}=1
7063 else
7064 eval HAVE_SIGNED_${GLTYPE}=0
7065 fi
7066 done
7067
7068
7069 gl_cv_type_ptrdiff_t_signed=yes
7070 gl_cv_type_size_t_signed=no
7071 if test $APPLE_UNIVERSAL_BUILD = 0; then
7072
7073
7074 for gltype in ptrdiff_t size_t ; do
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
7076$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
7077if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
7078 $as_echo_n "(cached) " >&6
7079else
7080 eval gl_cv_type_${gltype}_suffix=no
7081 eval result=\$gl_cv_type_${gltype}_signed
7082 if test "$result" = yes; then
7083 glsufu=
7084 else
7085 glsufu=u
7086 fi
7087 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
7088 case $glsuf in
7089 '') gltype1='int';;
7090 l) gltype1='long int';;
7091 ll) gltype1='long long int';;
7092 i64) gltype1='__int64';;
7093 u) gltype1='unsigned int';;
7094 ul) gltype1='unsigned long int';;
7095 ull) gltype1='unsigned long long int';;
7096 ui64)gltype1='unsigned __int64';;
7097 esac
7098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7099/* end confdefs.h. */
7100
7101 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7102 included before <wchar.h>. */
7103 #include <stddef.h>
7104 #include <signal.h>
7105 #if HAVE_WCHAR_H
7106 # include <stdio.h>
7107 # include <time.h>
7108 # include <wchar.h>
7109 #endif
7110
7111 extern $gltype foo;
7112 extern $gltype1 foo;
7113int
7114main ()
7115{
7116
7117 ;
7118 return 0;
7119}
7120_ACEOF
7121if ac_fn_c_try_compile "$LINENO"; then :
7122 eval gl_cv_type_${gltype}_suffix=\$glsuf
7123fi
7124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7125 eval result=\$gl_cv_type_${gltype}_suffix
7126 test "$result" != no && break
7127 done
7128fi
7129eval ac_res=\$gl_cv_type_${gltype}_suffix
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7131$as_echo "$ac_res" >&6; }
7132 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
7133 eval result=\$gl_cv_type_${gltype}_suffix
7134 test "$result" = no && result=
7135 eval ${GLTYPE}_SUFFIX=\$result
7136 cat >>confdefs.h <<_ACEOF
7137#define ${GLTYPE}_SUFFIX $result
7138_ACEOF
7139
7140 done
7141
7142
7143 fi
7144
7145
7146 for gltype in sig_atomic_t wchar_t wint_t ; do
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
7148$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
7149if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
7150 $as_echo_n "(cached) " >&6
7151else
7152 eval gl_cv_type_${gltype}_suffix=no
7153 eval result=\$gl_cv_type_${gltype}_signed
7154 if test "$result" = yes; then
7155 glsufu=
7156 else
7157 glsufu=u
7158 fi
7159 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
7160 case $glsuf in
7161 '') gltype1='int';;
7162 l) gltype1='long int';;
7163 ll) gltype1='long long int';;
7164 i64) gltype1='__int64';;
7165 u) gltype1='unsigned int';;
7166 ul) gltype1='unsigned long int';;
7167 ull) gltype1='unsigned long long int';;
7168 ui64)gltype1='unsigned __int64';;
7169 esac
7170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7171/* end confdefs.h. */
7172
7173 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7174 included before <wchar.h>. */
7175 #include <stddef.h>
7176 #include <signal.h>
7177 #if HAVE_WCHAR_H
7178 # include <stdio.h>
7179 # include <time.h>
7180 # include <wchar.h>
7181 #endif
7182
7183 extern $gltype foo;
7184 extern $gltype1 foo;
7185int
7186main ()
7187{
7188
7189 ;
7190 return 0;
7191}
7192_ACEOF
7193if ac_fn_c_try_compile "$LINENO"; then :
7194 eval gl_cv_type_${gltype}_suffix=\$glsuf
7195fi
7196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7197 eval result=\$gl_cv_type_${gltype}_suffix
7198 test "$result" != no && break
7199 done
7200fi
7201eval ac_res=\$gl_cv_type_${gltype}_suffix
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7203$as_echo "$ac_res" >&6; }
7204 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
7205 eval result=\$gl_cv_type_${gltype}_suffix
7206 test "$result" = no && result=
7207 eval ${GLTYPE}_SUFFIX=\$result
7208 cat >>confdefs.h <<_ACEOF
7209#define ${GLTYPE}_SUFFIX $result
7210_ACEOF
7211
7212 done
7213
7214
7215
7216 if test $BITSIZEOF_WINT_T -lt 32; then
7217 BITSIZEOF_WINT_T=32
7218 fi
7219
7220 STDINT_H=stdint.h
7221 fi
7222
7223 if test -n "$STDINT_H"; then
7224 GL_GENERATE_STDINT_H_TRUE=
7225 GL_GENERATE_STDINT_H_FALSE='#'
7226else
7227 GL_GENERATE_STDINT_H_TRUE='#'
7228 GL_GENERATE_STDINT_H_FALSE=
7229fi
7230
7231
7232
7233
7234
8690e634
JK
7235 GNULIB_IMAXABS=0;
7236 GNULIB_IMAXDIV=0;
7237 GNULIB_STRTOIMAX=0;
7238 GNULIB_STRTOUMAX=0;
7239 HAVE_DECL_IMAXABS=1;
7240 HAVE_DECL_IMAXDIV=1;
7241 HAVE_DECL_STRTOIMAX=1;
7242 HAVE_DECL_STRTOUMAX=1;
7243 REPLACE_STRTOIMAX=0;
7244 INT32_MAX_LT_INTMAX_MAX=1;
7245 INT64_MAX_EQ_LONG_MAX='defined _LP64';
7246 PRI_MACROS_BROKEN=0;
7247 PRIPTR_PREFIX=__PRIPTR_PREFIX;
7248 UINT32_MAX_LT_UINTMAX_MAX=1;
7249 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
7250
7251
7252
7253
8690e634
JK
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
8690e634
JK
7265 if test $gl_cv_have_include_next = yes; then
7266 gl_cv_next_inttypes_h='<'inttypes.h'>'
7267 else
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
7269$as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
7270if test "${gl_cv_next_inttypes_h+set}" = set; then :
7271 $as_echo_n "(cached) " >&6
7272else
7273
7274 if test $ac_cv_header_inttypes_h = yes; then
7275
7276
7277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7278/* end confdefs.h. */
7279#include <inttypes.h>
7280
7281_ACEOF
7282 case "$host_os" in
7283 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7284 *) gl_absname_cpp="$ac_cpp" ;;
7285 esac
7286
7287 case "$host_os" in
7288 mingw*)
7289 gl_dirsep_regex='[/\\]'
7290 ;;
7291 *)
7292 gl_dirsep_regex='\/'
7293 ;;
7294 esac
7295 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
7296
7297 gl_header_literal_regex=`echo 'inttypes.h' \
7298 | sed -e "$gl_make_literal_regex_sed"`
7299 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7300 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7301 s|^/[^/]|//&|
7302 p
7303 q
7304 }'
7305 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7306 sed -n "$gl_absolute_header_sed"`'"'
7307 else
7308 gl_cv_next_inttypes_h='<'inttypes.h'>'
7309 fi
7310
7311
7312fi
7313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
7314$as_echo "$gl_cv_next_inttypes_h" >&6; }
7315 fi
7316 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
7317
7318 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7319 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7320 gl_next_as_first_directive='<'inttypes.h'>'
7321 else
7322 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7323 gl_next_as_first_directive=$gl_cv_next_inttypes_h
7324 fi
7325 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
7326
7327
7328
7329
7330
7331
7332
7333
7334 for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
7335 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
7337$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
7338if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
7339 $as_echo_n "(cached) " >&6
7340else
7341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7342/* end confdefs.h. */
7343#include <inttypes.h>
7344
7345int
7346main ()
7347{
7348#undef $gl_func
7349 (void) $gl_func;
7350 ;
7351 return 0;
7352}
7353_ACEOF
7354if ac_fn_c_try_compile "$LINENO"; then :
7355 eval "$as_gl_Symbol=yes"
7356else
7357 eval "$as_gl_Symbol=no"
7358fi
7359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7360fi
7361eval ac_res=\$$as_gl_Symbol
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7363$as_echo "$ac_res" >&6; }
7364 eval as_val=\$$as_gl_Symbol
7365 if test "x$as_val" = x""yes; then :
7366 cat >>confdefs.h <<_ACEOF
7367#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
7368_ACEOF
7369
7370 eval ac_cv_have_decl_$gl_func=yes
7371fi
7372 done
7373
7374
7375
7376 for ac_header in inttypes.h
7377do :
7378 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7379if test "x$ac_cv_header_inttypes_h" = x""yes; then :
7380 cat >>confdefs.h <<_ACEOF
7381#define HAVE_INTTYPES_H 1
7382_ACEOF
7383
7384fi
7385
7386done
7387
7388 if test $ac_cv_header_inttypes_h = yes; then
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7390$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7391if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
7392 $as_echo_n "(cached) " >&6
7393else
7394
7395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7396/* end confdefs.h. */
7397
7398#include <inttypes.h>
7399#ifdef PRId32
7400char *p = PRId32;
7401#endif
7402
7403int
7404main ()
7405{
7406
7407 ;
7408 return 0;
7409}
7410_ACEOF
7411if ac_fn_c_try_compile "$LINENO"; then :
7412 gt_cv_inttypes_pri_broken=no
7413else
7414 gt_cv_inttypes_pri_broken=yes
7415fi
7416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7417
7418fi
7419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7420$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7421 fi
7422 if test "$gt_cv_inttypes_pri_broken" = yes; then
7423
7424cat >>confdefs.h <<_ACEOF
7425#define PRI_MACROS_BROKEN 1
7426_ACEOF
7427
7428 PRI_MACROS_BROKEN=1
7429 else
7430 PRI_MACROS_BROKEN=0
7431 fi
7432
7433
7434
88b48903
WN
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
7436$as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
7437if test "${gl_cv_cc_double_expbit0+set}" = set; then :
8690e634
JK
7438 $as_echo_n "(cached) " >&6
7439else
88b48903
WN
7440
7441 if test "$cross_compiling" = yes; then :
7442
7443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690e634 7444/* end confdefs.h. */
88b48903
WN
7445
7446#if defined arm || defined __arm || defined __arm__
7447 mixed_endianness
7448#endif
7449
7450_ACEOF
7451if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7452 $EGREP "mixed_endianness" >/dev/null 2>&1; then :
7453 gl_cv_cc_double_expbit0="unknown"
7454else
7455
7456 :
7457if test "${ac_cv_c_bigendian+set}" = set; then :
7458 $as_echo_n "(cached) " >&6
7459else
7460 ac_cv_c_bigendian=unknown
7461 # See if we're dealing with a universal compiler.
7462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7463/* end confdefs.h. */
7464#ifndef __APPLE_CC__
7465 not a universal capable compiler
7466 #endif
7467 typedef int dummy;
7468
7469_ACEOF
7470if ac_fn_c_try_compile "$LINENO"; then :
7471
7472 # Check for potential -arch flags. It is not universal unless
7473 # there are at least two -arch flags with different values.
7474 ac_arch=
7475 ac_prev=
7476 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7477 if test -n "$ac_prev"; then
7478 case $ac_word in
7479 i?86 | x86_64 | ppc | ppc64)
7480 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7481 ac_arch=$ac_word
7482 else
7483 ac_cv_c_bigendian=universal
7484 break
7485 fi
7486 ;;
7487 esac
7488 ac_prev=
7489 elif test "x$ac_word" = "x-arch"; then
7490 ac_prev=arch
7491 fi
7492 done
7493fi
7494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7495 if test $ac_cv_c_bigendian = unknown; then
7496 # See if sys/param.h defines the BYTE_ORDER macro.
7497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7498/* end confdefs.h. */
7499#include <sys/types.h>
7500 #include <sys/param.h>
7501
8690e634
JK
7502int
7503main ()
7504{
88b48903
WN
7505#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7506 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7507 && LITTLE_ENDIAN)
7508 bogus endian macros
7509 #endif
7510
8690e634
JK
7511 ;
7512 return 0;
7513}
7514_ACEOF
88b48903
WN
7515if ac_fn_c_try_compile "$LINENO"; then :
7516 # It does; now see whether it defined to BIG_ENDIAN or not.
7517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7518/* end confdefs.h. */
7519#include <sys/types.h>
7520 #include <sys/param.h>
7521
7522int
7523main ()
7524{
7525#if BYTE_ORDER != BIG_ENDIAN
7526 not big endian
7527 #endif
7528
7529 ;
7530 return 0;
7531}
7532_ACEOF
7533if ac_fn_c_try_compile "$LINENO"; then :
7534 ac_cv_c_bigendian=yes
8690e634 7535else
88b48903 7536 ac_cv_c_bigendian=no
8690e634 7537fi
88b48903 7538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8690e634 7539fi
88b48903
WN
7540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7541 fi
7542 if test $ac_cv_c_bigendian = unknown; then
7543 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7545/* end confdefs.h. */
7546#include <limits.h>
8690e634 7547
88b48903
WN
7548int
7549main ()
7550{
7551#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7552 bogus endian macros
7553 #endif
8690e634 7554
88b48903
WN
7555 ;
7556 return 0;
7557}
7558_ACEOF
7559if ac_fn_c_try_compile "$LINENO"; then :
7560 # It does; now see whether it defined to _BIG_ENDIAN or not.
7561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7562/* end confdefs.h. */
7563#include <limits.h>
8690e634 7564
88b48903
WN
7565int
7566main ()
7567{
7568#ifndef _BIG_ENDIAN
7569 not big endian
7570 #endif
8690e634 7571
88b48903
WN
7572 ;
7573 return 0;
7574}
7575_ACEOF
7576if ac_fn_c_try_compile "$LINENO"; then :
7577 ac_cv_c_bigendian=yes
7578else
7579 ac_cv_c_bigendian=no
7580fi
7581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7582fi
7583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7584 fi
7585 if test $ac_cv_c_bigendian = unknown; then
7586 # Compile a test program.
7587 if test "$cross_compiling" = yes; then :
7588 # Try to guess by grepping values from an object file.
7589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7590/* end confdefs.h. */
7591short int ascii_mm[] =
7592 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7593 short int ascii_ii[] =
7594 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7595 int use_ascii (int i) {
7596 return ascii_mm[i] + ascii_ii[i];
7597 }
7598 short int ebcdic_ii[] =
7599 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7600 short int ebcdic_mm[] =
7601 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7602 int use_ebcdic (int i) {
7603 return ebcdic_mm[i] + ebcdic_ii[i];
7604 }
7605 extern int foo;
8690e634 7606
88b48903
WN
7607int
7608main ()
7609{
7610return use_ascii (foo) == use_ebcdic (foo);
7611 ;
7612 return 0;
7613}
7614_ACEOF
7615if ac_fn_c_try_compile "$LINENO"; then :
7616 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7617 ac_cv_c_bigendian=yes
7618 fi
7619 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7620 if test "$ac_cv_c_bigendian" = unknown; then
7621 ac_cv_c_bigendian=no
7622 else
7623 # finding both strings is unlikely to happen, but who knows?
7624 ac_cv_c_bigendian=unknown
7625 fi
7626 fi
7627fi
7628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7629else
7630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7631/* end confdefs.h. */
7632$ac_includes_default
7633int
7634main ()
7635{
8690e634 7636
88b48903
WN
7637 /* Are we little or big endian? From Harbison&Steele. */
7638 union
7639 {
7640 long int l;
7641 char c[sizeof (long int)];
7642 } u;
7643 u.l = 1;
7644 return u.c[sizeof (long int) - 1] == 1;
8690e634 7645
88b48903
WN
7646 ;
7647 return 0;
7648}
7649_ACEOF
7650if ac_fn_c_try_run "$LINENO"; then :
7651 ac_cv_c_bigendian=no
7652else
7653 ac_cv_c_bigendian=yes
7654fi
7655rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7656 conftest.$ac_objext conftest.beam conftest.$ac_ext
7657fi
8690e634 7658
88b48903
WN
7659 fi
7660fi
7661:
7662 case $ac_cv_c_bigendian in #(
7663 yes)
7664 gl_cv_cc_double_expbit0="word 0 bit 20";; #(
7665 no)
7666 gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
7667 universal)
8690e634 7668
88b48903 7669$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8690e634 7670
88b48903
WN
7671 ;; #(
7672 *)
7673 gl_cv_cc_double_expbit0="unknown" ;;
7674 esac
8690e634
JK
7675
7676
88b48903
WN
7677fi
7678rm -f conftest*
8690e634 7679
8690e634 7680
88b48903
WN
7681else
7682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7683/* end confdefs.h. */
8690e634 7684
88b48903
WN
7685#include <float.h>
7686#include <stddef.h>
7687#include <stdio.h>
7688#include <string.h>
7689#define NWORDS \
7690 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
7691typedef union { double value; unsigned int word[NWORDS]; } memory_double;
7692static unsigned int ored_words[NWORDS];
7693static unsigned int anded_words[NWORDS];
7694static void add_to_ored_words (double x)
7695{
7696 memory_double m;
7697 size_t i;
7698 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
7699 memset (&m, 0, sizeof (memory_double));
7700 m.value = x;
7701 for (i = 0; i < NWORDS; i++)
7702 {
7703 ored_words[i] |= m.word[i];
7704 anded_words[i] &= m.word[i];
7705 }
7706}
7707int main ()
7708{
7709 size_t j;
7710 FILE *fp = fopen ("conftest.out", "w");
7711 if (fp == NULL)
7712 return 1;
7713 for (j = 0; j < NWORDS; j++)
7714 anded_words[j] = ~ (unsigned int) 0;
7715 add_to_ored_words (0.25);
7716 add_to_ored_words (0.5);
7717 add_to_ored_words (1.0);
7718 add_to_ored_words (2.0);
7719 add_to_ored_words (4.0);
7720 /* Remove bits that are common (e.g. if representation of the first mantissa
7721 bit is explicit). */
7722 for (j = 0; j < NWORDS; j++)
7723 ored_words[j] &= ~anded_words[j];
7724 /* Now find the nonzero word. */
7725 for (j = 0; j < NWORDS; j++)
7726 if (ored_words[j] != 0)
7727 break;
7728 if (j < NWORDS)
7729 {
7730 size_t i;
7731 for (i = j + 1; i < NWORDS; i++)
7732 if (ored_words[i] != 0)
7733 {
7734 fprintf (fp, "unknown");
7735 return (fclose (fp) != 0);
7736 }
7737 for (i = 0; ; i++)
7738 if ((ored_words[j] >> i) & 1)
7739 {
7740 fprintf (fp, "word %d bit %d", (int) j, (int) i);
7741 return (fclose (fp) != 0);
7742 }
7743 }
7744 fprintf (fp, "unknown");
7745 return (fclose (fp) != 0);
7746}
8690e634 7747
88b48903
WN
7748_ACEOF
7749if ac_fn_c_try_run "$LINENO"; then :
7750 gl_cv_cc_double_expbit0=`cat conftest.out`
7751else
7752 gl_cv_cc_double_expbit0="unknown"
7753fi
7754rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7755 conftest.$ac_objext conftest.beam conftest.$ac_ext
7756fi
8690e634 7757
88b48903 7758 rm -f conftest.out
8690e634 7759
88b48903
WN
7760fi
7761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
7762$as_echo "$gl_cv_cc_double_expbit0" >&6; }
7763 case "$gl_cv_cc_double_expbit0" in
7764 word*bit*)
7765 word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
7766 bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
8690e634 7767
88b48903
WN
7768cat >>confdefs.h <<_ACEOF
7769#define DBL_EXPBIT0_WORD $word
7770_ACEOF
8690e634
JK
7771
7772
88b48903
WN
7773cat >>confdefs.h <<_ACEOF
7774#define DBL_EXPBIT0_BIT $bit
7775_ACEOF
8690e634 7776
88b48903
WN
7777 ;;
7778 esac
8690e634
JK
7779
7780
88b48903
WN
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7782$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7783if test "${ac_cv_c_bigendian+set}" = set; then :
8690e634
JK
7784 $as_echo_n "(cached) " >&6
7785else
88b48903
WN
7786 ac_cv_c_bigendian=unknown
7787 # See if we're dealing with a universal compiler.
7788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7789/* end confdefs.h. */
7790#ifndef __APPLE_CC__
7791 not a universal capable compiler
7792 #endif
7793 typedef int dummy;
7794
7795_ACEOF
7796if ac_fn_c_try_compile "$LINENO"; then :
7797
7798 # Check for potential -arch flags. It is not universal unless
7799 # there are at least two -arch flags with different values.
7800 ac_arch=
7801 ac_prev=
7802 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7803 if test -n "$ac_prev"; then
7804 case $ac_word in
7805 i?86 | x86_64 | ppc | ppc64)
7806 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7807 ac_arch=$ac_word
7808 else
7809 ac_cv_c_bigendian=universal
7810 break
7811 fi
7812 ;;
7813 esac
7814 ac_prev=
7815 elif test "x$ac_word" = "x-arch"; then
7816 ac_prev=arch
7817 fi
7818 done
7819fi
7820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7821 if test $ac_cv_c_bigendian = unknown; then
7822 # See if sys/param.h defines the BYTE_ORDER macro.
7823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690e634
JK
7824/* end confdefs.h. */
7825#include <sys/types.h>
88b48903
WN
7826 #include <sys/param.h>
7827
7828int
7829main ()
7830{
7831#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7832 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7833 && LITTLE_ENDIAN)
7834 bogus endian macros
7835 #endif
7836
7837 ;
7838 return 0;
7839}
7840_ACEOF
7841if ac_fn_c_try_compile "$LINENO"; then :
7842 # It does; now see whether it defined to BIG_ENDIAN or not.
7843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7844/* end confdefs.h. */
7845#include <sys/types.h>
7846 #include <sys/param.h>
7847
7848int
7849main ()
7850{
7851#if BYTE_ORDER != BIG_ENDIAN
7852 not big endian
7853 #endif
7854
7855 ;
7856 return 0;
7857}
7858_ACEOF
7859if ac_fn_c_try_compile "$LINENO"; then :
7860 ac_cv_c_bigendian=yes
7861else
7862 ac_cv_c_bigendian=no
7863fi
7864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7865fi
7866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7867 fi
7868 if test $ac_cv_c_bigendian = unknown; then
7869 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7871/* end confdefs.h. */
7872#include <limits.h>
7873
7874int
7875main ()
7876{
7877#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7878 bogus endian macros
7879 #endif
7880
7881 ;
7882 return 0;
7883}
7884_ACEOF
7885if ac_fn_c_try_compile "$LINENO"; then :
7886 # It does; now see whether it defined to _BIG_ENDIAN or not.
7887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7888/* end confdefs.h. */
7889#include <limits.h>
7890
7891int
7892main ()
7893{
7894#ifndef _BIG_ENDIAN
7895 not big endian
7896 #endif
7897
7898 ;
7899 return 0;
7900}
7901_ACEOF
7902if ac_fn_c_try_compile "$LINENO"; then :
7903 ac_cv_c_bigendian=yes
7904else
7905 ac_cv_c_bigendian=no
7906fi
7907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7908fi
7909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7910 fi
7911 if test $ac_cv_c_bigendian = unknown; then
7912 # Compile a test program.
7913 if test "$cross_compiling" = yes; then :
7914 # Try to guess by grepping values from an object file.
7915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7916/* end confdefs.h. */
7917short int ascii_mm[] =
7918 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7919 short int ascii_ii[] =
7920 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7921 int use_ascii (int i) {
7922 return ascii_mm[i] + ascii_ii[i];
7923 }
7924 short int ebcdic_ii[] =
7925 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7926 short int ebcdic_mm[] =
7927 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7928 int use_ebcdic (int i) {
7929 return ebcdic_mm[i] + ebcdic_ii[i];
7930 }
7931 extern int foo;
7932
7933int
7934main ()
7935{
7936return use_ascii (foo) == use_ebcdic (foo);
7937 ;
7938 return 0;
7939}
7940_ACEOF
7941if ac_fn_c_try_compile "$LINENO"; then :
7942 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7943 ac_cv_c_bigendian=yes
7944 fi
7945 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7946 if test "$ac_cv_c_bigendian" = unknown; then
7947 ac_cv_c_bigendian=no
7948 else
7949 # finding both strings is unlikely to happen, but who knows?
7950 ac_cv_c_bigendian=unknown
7951 fi
7952 fi
7953fi
7954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7955else
7956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7957/* end confdefs.h. */
7958$ac_includes_default
7959int
7960main ()
7961{
7962
7963 /* Are we little or big endian? From Harbison&Steele. */
7964 union
7965 {
7966 long int l;
7967 char c[sizeof (long int)];
7968 } u;
7969 u.l = 1;
7970 return u.c[sizeof (long int) - 1] == 1;
7971
7972 ;
7973 return 0;
7974}
7975_ACEOF
7976if ac_fn_c_try_run "$LINENO"; then :
7977 ac_cv_c_bigendian=no
7978else
7979 ac_cv_c_bigendian=yes
7980fi
7981rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7982 conftest.$ac_objext conftest.beam conftest.$ac_ext
7983fi
7984
7985 fi
7986fi
7987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7988$as_echo "$ac_cv_c_bigendian" >&6; }
7989 case $ac_cv_c_bigendian in #(
7990 yes)
7991 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
7992;; #(
7993 no)
7994 ;; #(
7995 universal)
7996
7997$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7998
7999 ;; #(
8000 *)
8001 as_fn_error "unknown endianness
8002 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8003 esac
8004
8005
8006
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8008$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8009if test "${am_cv_langinfo_codeset+set}" = set; then :
8010 $as_echo_n "(cached) " >&6
8011else
8012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8013/* end confdefs.h. */
8014#include <langinfo.h>
8015int
8016main ()
8017{
8018char* cs = nl_langinfo(CODESET); return !cs;
8019 ;
8020 return 0;
8021}
8022_ACEOF
8023if ac_fn_c_try_link "$LINENO"; then :
8024 am_cv_langinfo_codeset=yes
8025else
8026 am_cv_langinfo_codeset=no
8027fi
8028rm -f core conftest.err conftest.$ac_objext \
8029 conftest$ac_exeext conftest.$ac_ext
8030
8031fi
8032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8033$as_echo "$am_cv_langinfo_codeset" >&6; }
8034 if test $am_cv_langinfo_codeset = yes; then
8035
8036$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8037
8038 fi
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
88b48903
WN
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
8050$as_echo_n "checking for working fcntl.h... " >&6; }
8051if test "${gl_cv_header_working_fcntl_h+set}" = set; then :
8052 $as_echo_n "(cached) " >&6
8053else
8054 if test "$cross_compiling" = yes; then :
8055 gl_cv_header_working_fcntl_h=cross-compiling
8056else
8057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8058/* end confdefs.h. */
8059#include <sys/types.h>
8060 #include <sys/stat.h>
8061 #if HAVE_UNISTD_H
8062 # include <unistd.h>
8063 #else /* on Windows with MSVC */
8064 # include <io.h>
8065 # include <stdlib.h>
8690e634
JK
8066 # defined sleep(n) _sleep ((n) * 1000)
8067 #endif
8068 #include <fcntl.h>
8069 #ifndef O_NOATIME
8070 #define O_NOATIME 0
8071 #endif
8072 #ifndef O_NOFOLLOW
8073 #define O_NOFOLLOW 0
8074 #endif
8075 static int const constants[] =
8076 {
8077 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
8078 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
8079 };
8080
8081int
8082main ()
8083{
8084
8085 int result = !constants;
8086 #if HAVE_SYMLINK
8087 {
8088 static char const sym[] = "conftest.sym";
a512b375
JB
8089 if (symlink ("/dev/null", sym) != 0)
8090 result |= 2;
8091 else
8092 {
8093 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
8094 if (fd >= 0)
8095 {
8096 close (fd);
8097 result |= 4;
8098 }
8099 }
8100 if (unlink (sym) != 0 || symlink (".", sym) != 0)
8690e634
JK
8101 result |= 2;
8102 else
8103 {
8104 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
8105 if (fd >= 0)
8106 {
8107 close (fd);
8108 result |= 4;
8109 }
8110 }
8111 unlink (sym);
8112 }
8113 #endif
8114 {
8115 static char const file[] = "confdefs.h";
8116 int fd = open (file, O_RDONLY | O_NOATIME);
8117 if (fd < 0)
8118 result |= 8;
8119 else
8120 {
8121 struct stat st0;
8122 if (fstat (fd, &st0) != 0)
8123 result |= 16;
8124 else
8125 {
8126 char c;
8127 sleep (1);
8128 if (read (fd, &c, 1) != 1)
8129 result |= 24;
8130 else
8131 {
8132 if (close (fd) != 0)
8133 result |= 32;
8134 else
8135 {
8136 struct stat st1;
8137 if (stat (file, &st1) != 0)
8138 result |= 40;
8139 else
8140 if (st0.st_atime != st1.st_atime)
8141 result |= 64;
8142 }
8143 }
8144 }
8145 }
8146 }
8147 return result;
8148 ;
8149 return 0;
8150}
8151_ACEOF
8152if ac_fn_c_try_run "$LINENO"; then :
8153 gl_cv_header_working_fcntl_h=yes
8154else
8155 case $? in #(
8156 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
8157 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
8158 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
8159 *) gl_cv_header_working_fcntl_h='no';;
8160 esac
8161fi
8162rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8163 conftest.$ac_objext conftest.beam conftest.$ac_ext
8164fi
8165
8166fi
8167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
8168$as_echo "$gl_cv_header_working_fcntl_h" >&6; }
8169
8170 case $gl_cv_header_working_fcntl_h in #(
8171 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
8172 *) ac_val=1;;
8173 esac
8174
8175cat >>confdefs.h <<_ACEOF
8176#define HAVE_WORKING_O_NOATIME $ac_val
8177_ACEOF
8178
8179
8180 case $gl_cv_header_working_fcntl_h in #(
8181 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
8182 *) ac_val=1;;
8183 esac
8184
8185cat >>confdefs.h <<_ACEOF
8186#define HAVE_WORKING_O_NOFOLLOW $ac_val
8187_ACEOF
8188
8189
3574124b 8190ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
8690e634
JK
8191if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
8192 ac_have_decl=1
8193else
8194 ac_have_decl=0
8195fi
8196
8197cat >>confdefs.h <<_ACEOF
8198#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
8199_ACEOF
8200
8201
8690e634
JK
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
8203$as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
8204if test "${ac_cv_gnu_library_2_1+set}" = set; then :
8205 $as_echo_n "(cached) " >&6
8206else
8207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8208/* end confdefs.h. */
8209
8210#include <features.h>
8211#ifdef __GNU_LIBRARY__
8212 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
8213 Lucky GNU user
8214 #endif
8215#endif
8216#ifdef __UCLIBC__
8217 Lucky user
8218#endif
8219
8220_ACEOF
8221if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8222 $EGREP "Lucky" >/dev/null 2>&1; then :
8223 ac_cv_gnu_library_2_1=yes
8224else
8225 ac_cv_gnu_library_2_1=no
8226fi
8227rm -f conftest*
8228
8229
8230
8231fi
8232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
8233$as_echo "$ac_cv_gnu_library_2_1" >&6; }
8234
8235 GLIBC21="$ac_cv_gnu_library_2_1"
8236
8237
8238
88b48903
WN
8239
8240
8690e634
JK
8241 GNULIB_BTOWC=0;
8242 GNULIB_WCTOB=0;
8243 GNULIB_MBSINIT=0;
8244 GNULIB_MBRTOWC=0;
8245 GNULIB_MBRLEN=0;
8246 GNULIB_MBSRTOWCS=0;
8247 GNULIB_MBSNRTOWCS=0;
8248 GNULIB_WCRTOMB=0;
8249 GNULIB_WCSRTOMBS=0;
8250 GNULIB_WCSNRTOMBS=0;
8251 GNULIB_WCWIDTH=0;
8252 GNULIB_WMEMCHR=0;
8253 GNULIB_WMEMCMP=0;
8254 GNULIB_WMEMCPY=0;
8255 GNULIB_WMEMMOVE=0;
8256 GNULIB_WMEMSET=0;
8257 GNULIB_WCSLEN=0;
8258 GNULIB_WCSNLEN=0;
8259 GNULIB_WCSCPY=0;
8260 GNULIB_WCPCPY=0;
8261 GNULIB_WCSNCPY=0;
8262 GNULIB_WCPNCPY=0;
8263 GNULIB_WCSCAT=0;
8264 GNULIB_WCSNCAT=0;
8265 GNULIB_WCSCMP=0;
8266 GNULIB_WCSNCMP=0;
8267 GNULIB_WCSCASECMP=0;
8268 GNULIB_WCSNCASECMP=0;
8269 GNULIB_WCSCOLL=0;
8270 GNULIB_WCSXFRM=0;
8271 GNULIB_WCSDUP=0;
8272 GNULIB_WCSCHR=0;
8273 GNULIB_WCSRCHR=0;
8274 GNULIB_WCSCSPN=0;
8275 GNULIB_WCSSPN=0;
8276 GNULIB_WCSPBRK=0;
8277 GNULIB_WCSSTR=0;
8278 GNULIB_WCSTOK=0;
8279 GNULIB_WCSWIDTH=0;
8280 HAVE_BTOWC=1;
8281 HAVE_MBSINIT=1;
8282 HAVE_MBRTOWC=1;
8283 HAVE_MBRLEN=1;
8284 HAVE_MBSRTOWCS=1;
8285 HAVE_MBSNRTOWCS=1;
8286 HAVE_WCRTOMB=1;
8287 HAVE_WCSRTOMBS=1;
8288 HAVE_WCSNRTOMBS=1;
8289 HAVE_WMEMCHR=1;
8290 HAVE_WMEMCMP=1;
8291 HAVE_WMEMCPY=1;
8292 HAVE_WMEMMOVE=1;
8293 HAVE_WMEMSET=1;
8294 HAVE_WCSLEN=1;
8295 HAVE_WCSNLEN=1;
8296 HAVE_WCSCPY=1;
8297 HAVE_WCPCPY=1;
8298 HAVE_WCSNCPY=1;
8299 HAVE_WCPNCPY=1;
8300 HAVE_WCSCAT=1;
8301 HAVE_WCSNCAT=1;
8302 HAVE_WCSCMP=1;
8303 HAVE_WCSNCMP=1;
8304 HAVE_WCSCASECMP=1;
8305 HAVE_WCSNCASECMP=1;
8306 HAVE_WCSCOLL=1;
8307 HAVE_WCSXFRM=1;
8308 HAVE_WCSDUP=1;
8309 HAVE_WCSCHR=1;
8310 HAVE_WCSRCHR=1;
8311 HAVE_WCSCSPN=1;
8312 HAVE_WCSSPN=1;
8313 HAVE_WCSPBRK=1;
8314 HAVE_WCSSTR=1;
8315 HAVE_WCSTOK=1;
8316 HAVE_WCSWIDTH=1;
8317 HAVE_DECL_WCTOB=1;
8318 HAVE_DECL_WCWIDTH=1;
8319 REPLACE_MBSTATE_T=0;
8320 REPLACE_BTOWC=0;
8321 REPLACE_WCTOB=0;
8322 REPLACE_MBSINIT=0;
8323 REPLACE_MBRTOWC=0;
8324 REPLACE_MBRLEN=0;
8325 REPLACE_MBSRTOWCS=0;
8326 REPLACE_MBSNRTOWCS=0;
8327 REPLACE_WCRTOMB=0;
8328 REPLACE_WCSRTOMBS=0;
8329 REPLACE_WCSNRTOMBS=0;
8330 REPLACE_WCWIDTH=0;
8331 REPLACE_WCSWIDTH=0;
8332
8333
8334
8335
8336
8337
8338
8339
8690e634
JK
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
8341$as_echo_n "checking for a traditional japanese locale... " >&6; }
8342if test "${gt_cv_locale_ja+set}" = set; then :
8343 $as_echo_n "(cached) " >&6
8344else
8345
8346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8347/* end confdefs.h. */
8348
8349#include <locale.h>
8350#include <time.h>
8351#if HAVE_LANGINFO_CODESET
8352# include <langinfo.h>
8353#endif
8354#include <stdlib.h>
8355#include <string.h>
8356struct tm t;
8357char buf[16];
8358int main ()
8359{
8360 const char *p;
8361 /* Check whether the given locale name is recognized by the system. */
8362#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
8363 /* On native Windows, setlocale(category, "") looks at the system settings,
8364 not at the environment variables. Also, when an encoding suffix such
8365 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
8366 category of the locale to "C". */
8367 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
8368 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
8369 return 1;
8370#else
8371 if (setlocale (LC_ALL, "") == NULL) return 1;
8372#endif
8373 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
8374 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
8375 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
8376 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
8377 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
8378 some unit tests fail.
8379 On MirBSD 10, when an unsupported locale is specified, setlocale()
8380 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
8381#if HAVE_LANGINFO_CODESET
8382 {
8383 const char *cs = nl_langinfo (CODESET);
8384 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
8385 || strcmp (cs, "UTF-8") == 0)
8386 return 1;
8387 }
8388#endif
8389#ifdef __CYGWIN__
8390 /* On Cygwin, avoid locale names without encoding suffix, because the
8391 locale_charset() function relies on the encoding suffix. Note that
8392 LC_ALL is set on the command line. */
8393 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
8394#endif
8395 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
8396 on Cygwin 1.5.x. */
8397 if (MB_CUR_MAX == 1)
8398 return 1;
8399 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
8400 This excludes the UTF-8 encoding (except on MirBSD). */
8401 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
8402 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
8403 for (p = buf; *p != '\0'; p++)
8404 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
8405 return 1;
8406 return 0;
8407}
8408
8409_ACEOF
8410 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8411 (eval $ac_link) 2>&5
8412 ac_status=$?
8413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8414 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8415 case "$host_os" in
8416 # Handle native Windows specially, because there setlocale() interprets
8417 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
8418 # "fr" or "fra" as "French" or "French_France.1252",
8419 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
8420 # "ja" as "Japanese" or "Japanese_Japan.932",
8421 # and similar.
8422 mingw*)
8423 # Note that on native Windows, the Japanese locale is
8424 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
8425 # cannot use it here.
8426 gt_cv_locale_ja=none
8427 ;;
8428 *)
8429 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
8430 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
8431 # configure script would override the LC_ALL setting. Likewise for
8432 # LC_CTYPE, which is also set at the beginning of the configure script.
8433 # Test for the AIX locale name.
8434 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8435 gt_cv_locale_ja=ja_JP
8436 else
8437 # Test for the locale name with explicit encoding suffix.
8438 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8439 gt_cv_locale_ja=ja_JP.EUC-JP
8440 else
8441 # Test for the HP-UX, OSF/1, NetBSD locale name.
8442 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8443 gt_cv_locale_ja=ja_JP.eucJP
8444 else
8445 # Test for the IRIX, FreeBSD locale name.
8446 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8447 gt_cv_locale_ja=ja_JP.EUC
8448 else
8449 # Test for the Solaris 7 locale name.
8450 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8451 gt_cv_locale_ja=ja
8452 else
8453 # Special test for NetBSD 1.6.
8454 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
8455 gt_cv_locale_ja=ja_JP.eucJP
8456 else
8457 # None found.
8458 gt_cv_locale_ja=none
8459 fi
8460 fi
8461 fi
8462 fi
8463 fi
8464 fi
8465 ;;
8466 esac
8467 fi
8468 rm -fr conftest*
8469
8470fi
8471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
8472$as_echo "$gt_cv_locale_ja" >&6; }
8473 LOCALE_JA=$gt_cv_locale_ja
8474
8475
8476
8477
8478
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
8480$as_echo_n "checking for a transitional chinese locale... " >&6; }
8481if test "${gt_cv_locale_zh_CN+set}" = set; then :
8482 $as_echo_n "(cached) " >&6
8483else
8484
8485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8486/* end confdefs.h. */
8487
8488#include <locale.h>
8489#include <stdlib.h>
8490#include <time.h>
8491#if HAVE_LANGINFO_CODESET
8492# include <langinfo.h>
8493#endif
8494#include <stdlib.h>
8495#include <string.h>
8496struct tm t;
8497char buf[16];
8498int main ()
8499{
8500 const char *p;
8501 /* Check whether the given locale name is recognized by the system. */
8502#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
8503 /* On native Windows, setlocale(category, "") looks at the system settings,
8504 not at the environment variables. Also, when an encoding suffix such
8505 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
8506 category of the locale to "C". */
8507 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
8508 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
8509 return 1;
8510#else
8511 if (setlocale (LC_ALL, "") == NULL) return 1;
8512#endif
8513 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
8514 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
8515 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
8516 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
8517 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
8518 some unit tests fail.
8519 On MirBSD 10, when an unsupported locale is specified, setlocale()
8520 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
8521#if HAVE_LANGINFO_CODESET
8522 {
8523 const char *cs = nl_langinfo (CODESET);
8524 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
8525 || strcmp (cs, "UTF-8") == 0)
8526 return 1;
8527 }
8528#endif
8529#ifdef __CYGWIN__
8530 /* On Cygwin, avoid locale names without encoding suffix, because the
8531 locale_charset() function relies on the encoding suffix. Note that
8532 LC_ALL is set on the command line. */
8533 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
8534#endif
8535 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
8536 This excludes the UTF-8 encoding (except on MirBSD). */
8537 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
8538 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
8539 for (p = buf; *p != '\0'; p++)
8540 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
8541 return 1;
8542 /* Check whether a typical GB18030 multibyte sequence is recognized as a
8543 single wide character. This excludes the GB2312 and GBK encodings. */
8544 if (mblen ("\203\062\332\066", 5) != 4)
8545 return 1;
8546 return 0;
8547}
8548
8549_ACEOF
8550 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8551 (eval $ac_link) 2>&5
8552 ac_status=$?
8553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8554 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8555 case "$host_os" in
8556 # Handle native Windows specially, because there setlocale() interprets
8557 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
8558 # "fr" or "fra" as "French" or "French_France.1252",
8559 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
8560 # "ja" as "Japanese" or "Japanese_Japan.932",
8561 # and similar.
8562 mingw*)
8563 # Test for the hypothetical native Windows locale name.
8564 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8565 gt_cv_locale_zh_CN=Chinese_China.54936
8566 else
8567 # None found.
8568 gt_cv_locale_zh_CN=none
8569 fi
8570 ;;
8571 solaris2.8)
8572 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
8573 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
8574 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
8575 gt_cv_locale_zh_CN=none
8576 ;;
8577 *)
8578 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
8579 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
8580 # configure script would override the LC_ALL setting. Likewise for
8581 # LC_CTYPE, which is also set at the beginning of the configure script.
8582 # Test for the locale name without encoding suffix.
8583 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8584 gt_cv_locale_zh_CN=zh_CN
8585 else
8586 # Test for the locale name with explicit encoding suffix.
8587 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8588 gt_cv_locale_zh_CN=zh_CN.GB18030
8589 else
8590 # None found.
8591 gt_cv_locale_zh_CN=none
8592 fi
8593 fi
8594 ;;
8595 esac
8596 else
8597 # If there was a link error, due to mblen(), the system is so old that
8598 # it certainly doesn't have a chinese locale.
8599 gt_cv_locale_zh_CN=none
8600 fi
8601 rm -fr conftest*
8602
8603fi
8604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
8605$as_echo "$gt_cv_locale_zh_CN" >&6; }
8606 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
8607
8608
8609
8610
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
8612$as_echo_n "checking for a french Unicode locale... " >&6; }
8613if test "${gt_cv_locale_fr_utf8+set}" = set; then :
8614 $as_echo_n "(cached) " >&6
8615else
8616
8617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8618/* end confdefs.h. */
8619
8620#include <locale.h>
8621#include <time.h>
8622#if HAVE_LANGINFO_CODESET
8623# include <langinfo.h>
8624#endif
8625#include <stdlib.h>
8626#include <string.h>
8627struct tm t;
8628char buf[16];
8629int main () {
8630 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
8631 imitates locale dependent behaviour by looking at the environment
8632 variables, and all locales use the UTF-8 encoding. */
8633#if !(defined __BEOS__ || defined __HAIKU__)
8634 /* Check whether the given locale name is recognized by the system. */
8635# if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
8636 /* On native Windows, setlocale(category, "") looks at the system settings,
8637 not at the environment variables. Also, when an encoding suffix such
8638 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
8639 category of the locale to "C". */
8640 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
8641 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
8642 return 1;
8643# else
8644 if (setlocale (LC_ALL, "") == NULL) return 1;
8645# endif
8646 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
8647 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
8648 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
8649 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
8650 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
8651 some unit tests fail. */
8652# if HAVE_LANGINFO_CODESET
8653 {
8654 const char *cs = nl_langinfo (CODESET);
8655 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
8656 return 1;
8657 }
8658# endif
8659# ifdef __CYGWIN__
8660 /* On Cygwin, avoid locale names without encoding suffix, because the
8661 locale_charset() function relies on the encoding suffix. Note that
8662 LC_ALL is set on the command line. */
8663 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
8664# endif
8665 /* Check whether in the abbreviation of the second month, the second
8666 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
8667 two bytes long, with UTF-8 encoding. */
8668 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
8669 if (strftime (buf, sizeof (buf), "%b", &t) < 4
8670 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
8671 return 1;
8672#endif
8673#if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
8674 /* Check whether the decimal separator is a comma.
8675 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
8676 are nl_langinfo(RADIXCHAR) are both ".". */
8677 if (localeconv () ->decimal_point[0] != ',') return 1;
8678#endif
8679 return 0;
8680}
8681
8682_ACEOF
8683 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8684 (eval $ac_link) 2>&5
8685 ac_status=$?
8686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8687 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8688 case "$host_os" in
8689 # Handle native Windows specially, because there setlocale() interprets
8690 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
8691 # "fr" or "fra" as "French" or "French_France.1252",
8692 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
8693 # "ja" as "Japanese" or "Japanese_Japan.932",
8694 # and similar.
8695 mingw*)
8696 # Test for the hypothetical native Windows locale name.
8697 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8698 gt_cv_locale_fr_utf8=French_France.65001
8699 else
8700 # None found.
8701 gt_cv_locale_fr_utf8=none
8702 fi
8703 ;;
8704 *)
8705 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
8706 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
8707 # configure script would override the LC_ALL setting. Likewise for
8708 # LC_CTYPE, which is also set at the beginning of the configure script.
8709 # Test for the usual locale name.
8710 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8711 gt_cv_locale_fr_utf8=fr_FR
8712 else
8713 # Test for the locale name with explicit encoding suffix.
8714 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8715 gt_cv_locale_fr_utf8=fr_FR.UTF-8
8716 else
8717 # Test for the Solaris 7 locale name.
8718 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8719 gt_cv_locale_fr_utf8=fr.UTF-8
8720 else
8721 # None found.
8722 gt_cv_locale_fr_utf8=none
8723 fi
8724 fi
8725 fi
8726 ;;
8727 esac
8728 fi
8729 rm -fr conftest*
8730
8731fi
8732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
8733$as_echo "$gt_cv_locale_fr_utf8" >&6; }
8734 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
8735
8736
8737
8738
8739
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
8741$as_echo_n "checking for a traditional french locale... " >&6; }
8742if test "${gt_cv_locale_fr+set}" = set; then :
8743 $as_echo_n "(cached) " >&6
8744else
8745
8746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8747/* end confdefs.h. */
8748
8749#include <locale.h>
8750#include <time.h>
8751#if HAVE_LANGINFO_CODESET
8752# include <langinfo.h>
8753#endif
8754#include <stdlib.h>
8755#include <string.h>
8756struct tm t;
8757char buf[16];
8758int main () {
8759 /* Check whether the given locale name is recognized by the system. */
8760#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
8761 /* On native Windows, setlocale(category, "") looks at the system settings,
8762 not at the environment variables. Also, when an encoding suffix such
8763 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
8764 category of the locale to "C". */
8765 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
8766 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
8767 return 1;
8768#else
8769 if (setlocale (LC_ALL, "") == NULL) return 1;
8770#endif
8771 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
8772 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
8773 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
8774 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
8775 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
8776 some unit tests fail.
8777 On MirBSD 10, when an unsupported locale is specified, setlocale()
8778 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
8779#if HAVE_LANGINFO_CODESET
8780 {
8781 const char *cs = nl_langinfo (CODESET);
8782 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
8783 || strcmp (cs, "UTF-8") == 0)
8784 return 1;
8785 }
8786#endif
8787#ifdef __CYGWIN__
8788 /* On Cygwin, avoid locale names without encoding suffix, because the
8789 locale_charset() function relies on the encoding suffix. Note that
8790 LC_ALL is set on the command line. */
8791 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
8792#endif
8793 /* Check whether in the abbreviation of the second month, the second
8794 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
8795 one byte long. This excludes the UTF-8 encoding. */
8796 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
8797 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
8798#if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
8799 /* Check whether the decimal separator is a comma.
8800 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
8801 are nl_langinfo(RADIXCHAR) are both ".". */
8802 if (localeconv () ->decimal_point[0] != ',') return 1;
8803#endif
8804 return 0;
8805}
8806
8807_ACEOF
8808 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8809 (eval $ac_link) 2>&5
8810 ac_status=$?
8811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8812 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8813 case "$host_os" in
8814 # Handle native Windows specially, because there setlocale() interprets
8815 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
8816 # "fr" or "fra" as "French" or "French_France.1252",
8817 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
8818 # "ja" as "Japanese" or "Japanese_Japan.932",
8819 # and similar.
8820 mingw*)
8821 # Test for the native Windows locale name.
8822 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8823 gt_cv_locale_fr=French_France.1252
8824 else
8825 # None found.
8826 gt_cv_locale_fr=none
8827 fi
8828 ;;
8829 *)
8830 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
8831 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
8832 # configure script would override the LC_ALL setting. Likewise for
8833 # LC_CTYPE, which is also set at the beginning of the configure script.
8834 # Test for the usual locale name.
8835 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8836 gt_cv_locale_fr=fr_FR
8837 else
8838 # Test for the locale name with explicit encoding suffix.
8839 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8840 gt_cv_locale_fr=fr_FR.ISO-8859-1
8841 else
8842 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
8843 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8844 gt_cv_locale_fr=fr_FR.ISO8859-1
8845 else
8846 # Test for the HP-UX locale name.
8847 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8848 gt_cv_locale_fr=fr_FR.iso88591
8849 else
8850 # Test for the Solaris 7 locale name.
8851 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8852 gt_cv_locale_fr=fr
8853 else
8854 # None found.
8855 gt_cv_locale_fr=none
8856 fi
8857 fi
8858 fi
8859 fi
8860 fi
8861 ;;
8862 esac
8863 fi
8864 rm -fr conftest*
8865
8866fi
8867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
8868$as_echo "$gt_cv_locale_fr" >&6; }
8869 LOCALE_FR=$gt_cv_locale_fr
8870
8871
8872
8873
8874
8875
8876
8690e634
JK
8877 GNULIB_FFSL=0;
8878 GNULIB_FFSLL=0;
8879 GNULIB_MEMCHR=0;
8880 GNULIB_MEMMEM=0;
8881 GNULIB_MEMPCPY=0;
8882 GNULIB_MEMRCHR=0;
8883 GNULIB_RAWMEMCHR=0;
8884 GNULIB_STPCPY=0;
8885 GNULIB_STPNCPY=0;
8886 GNULIB_STRCHRNUL=0;
8887 GNULIB_STRDUP=0;
8888 GNULIB_STRNCAT=0;
8889 GNULIB_STRNDUP=0;
8890 GNULIB_STRNLEN=0;
8891 GNULIB_STRPBRK=0;
8892 GNULIB_STRSEP=0;
8893 GNULIB_STRSTR=0;
8894 GNULIB_STRCASESTR=0;
8895 GNULIB_STRTOK_R=0;
8896 GNULIB_MBSLEN=0;
8897 GNULIB_MBSNLEN=0;
8898 GNULIB_MBSCHR=0;
8899 GNULIB_MBSRCHR=0;
8900 GNULIB_MBSSTR=0;
8901 GNULIB_MBSCASECMP=0;
8902 GNULIB_MBSNCASECMP=0;
8903 GNULIB_MBSPCASECMP=0;
8904 GNULIB_MBSCASESTR=0;
8905 GNULIB_MBSCSPN=0;
8906 GNULIB_MBSPBRK=0;
8907 GNULIB_MBSSPN=0;
8908 GNULIB_MBSSEP=0;
8909 GNULIB_MBSTOK_R=0;
8910 GNULIB_STRERROR=0;
8911 GNULIB_STRERROR_R=0;
8912 GNULIB_STRSIGNAL=0;
8913 GNULIB_STRVERSCMP=0;
8914 HAVE_MBSLEN=0;
8915 HAVE_FFSL=1;
8916 HAVE_FFSLL=1;
8917 HAVE_MEMCHR=1;
8918 HAVE_DECL_MEMMEM=1;
8919 HAVE_MEMPCPY=1;
8920 HAVE_DECL_MEMRCHR=1;
8921 HAVE_RAWMEMCHR=1;
8922 HAVE_STPCPY=1;
8923 HAVE_STPNCPY=1;
8924 HAVE_STRCHRNUL=1;
8925 HAVE_DECL_STRDUP=1;
8926 HAVE_DECL_STRNDUP=1;
8927 HAVE_DECL_STRNLEN=1;
8928 HAVE_STRPBRK=1;
8929 HAVE_STRSEP=1;
8930 HAVE_STRCASESTR=1;
8931 HAVE_DECL_STRTOK_R=1;
8932 HAVE_DECL_STRERROR_R=1;
8933 HAVE_DECL_STRSIGNAL=1;
8934 HAVE_STRVERSCMP=1;
8935 REPLACE_MEMCHR=0;
8936 REPLACE_MEMMEM=0;
8937 REPLACE_STPNCPY=0;
8938 REPLACE_STRDUP=0;
8939 REPLACE_STRSTR=0;
8940 REPLACE_STRCASESTR=0;
8941 REPLACE_STRCHRNUL=0;
8942 REPLACE_STRERROR=0;
8943 REPLACE_STRERROR_R=0;
8944 REPLACE_STRNCAT=0;
8945 REPLACE_STRNDUP=0;
8946 REPLACE_STRNLEN=0;
8947 REPLACE_STRSIGNAL=0;
8948 REPLACE_STRTOK_R=0;
8949 UNDEFINE_STRTOK_R=0;
8950
8951
8952
8953
8954
8955 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
8956 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
8957 # irrelevant for anonymous mappings.
8958 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
8959if test "x$ac_cv_func_mmap" = x""yes; then :
8960 gl_have_mmap=yes
8961else
8962 gl_have_mmap=no
8963fi
8964
8965
8966 # Try to allow MAP_ANONYMOUS.
8967 gl_have_mmap_anonymous=no
8968 if test $gl_have_mmap = yes; then
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
8970$as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
8971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8972/* end confdefs.h. */
8973
8974#include <sys/mman.h>
8975#ifdef MAP_ANONYMOUS
8976 I cannot identify this map
8977#endif
8978
8979_ACEOF
8980if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8981 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
8982 gl_have_mmap_anonymous=yes
8983fi
8984rm -f conftest*
8985
8986 if test $gl_have_mmap_anonymous != yes; then
8987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8988/* end confdefs.h. */
8989
8990#include <sys/mman.h>
8991#ifdef MAP_ANON
8992 I cannot identify this map
8993#endif
8994
8995_ACEOF
8996if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8997 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
8998
8999$as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
9000
9001 gl_have_mmap_anonymous=yes
9002fi
9003rm -f conftest*
9004
9005 fi
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
9007$as_echo "$gl_have_mmap_anonymous" >&6; }
9008 if test $gl_have_mmap_anonymous = yes; then
9009
9010$as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
9011
9012 fi
9013 fi
9014
9015
8690e634
JK
9016
9017
9018
9019
9020 if test $HAVE_MEMCHR = 1; then
9021 # Detect platform-specific bugs in some versions of glibc:
9022 # memchr should not dereference anything with length 0
9023 # http://bugzilla.redhat.com/499689
9024 # memchr should not dereference overestimated length after a match
9025 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
9026 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
9027 # Assume that memchr works on platforms that lack mprotect.
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
9029$as_echo_n "checking whether memchr works... " >&6; }
9030if test "${gl_cv_func_memchr_works+set}" = set; then :
9031 $as_echo_n "(cached) " >&6
9032else
9033 if test "$cross_compiling" = yes; then :
9034 gl_cv_func_memchr_works="guessing no"
9035else
9036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9037/* end confdefs.h. */
9038
9039#include <string.h>
9040#if HAVE_SYS_MMAN_H
9041# include <fcntl.h>
9042# include <unistd.h>
9043# include <sys/types.h>
9044# include <sys/mman.h>
9045# ifndef MAP_FILE
9046# define MAP_FILE 0
9047# endif
9048#endif
9049
9050int
9051main ()
9052{
9053
9054 int result = 0;
9055 char *fence = NULL;
9056#if HAVE_SYS_MMAN_H && HAVE_MPROTECT
9057# if HAVE_MAP_ANONYMOUS
9058 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
9059 const int fd = -1;
9060# else /* !HAVE_MAP_ANONYMOUS */
9061 const int flags = MAP_FILE | MAP_PRIVATE;
9062 int fd = open ("/dev/zero", O_RDONLY, 0666);
9063 if (fd >= 0)
9064# endif
9065 {
9066 int pagesize = getpagesize ();
9067 char *two_pages =
9068 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
9069 flags, fd, 0);
9070 if (two_pages != (char *)(-1)
9071 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
9072 fence = two_pages + pagesize;
9073 }
9074#endif
9075 if (fence)
9076 {
9077 if (memchr (fence, 0, 0))
9078 result |= 1;
9079 strcpy (fence - 9, "12345678");
9080 if (memchr (fence - 9, 0, 79) != fence - 1)
9081 result |= 2;
9082 if (memchr (fence - 1, 0, 3) != fence - 1)
9083 result |= 4;
9084 }
9085 return result;
9086
9087 ;
9088 return 0;
9089}
9090_ACEOF
9091if ac_fn_c_try_run "$LINENO"; then :
9092 gl_cv_func_memchr_works=yes
9093else
9094 gl_cv_func_memchr_works=no
9095fi
9096rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9097 conftest.$ac_objext conftest.beam conftest.$ac_ext
9098fi
9099
9100fi
9101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
9102$as_echo "$gl_cv_func_memchr_works" >&6; }
9103 if test "$gl_cv_func_memchr_works" != yes; then
9104 REPLACE_MEMCHR=1
9105 fi
9106 fi
9107
3574124b 9108ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
8690e634
JK
9109if test "x$ac_cv_have_decl_memmem" = x""yes; then :
9110 ac_have_decl=1
9111else
9112 ac_have_decl=0
9113fi
9114
9115cat >>confdefs.h <<_ACEOF
9116#define HAVE_DECL_MEMMEM $ac_have_decl
9117_ACEOF
9118
9119
9120
9121
9122
8690e634
JK
9123 for ac_func in memmem
9124do :
9125 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
9126if test "x$ac_cv_func_memmem" = x""yes; then :
9127 cat >>confdefs.h <<_ACEOF
9128#define HAVE_MEMMEM 1
9129_ACEOF
9130
9131fi
9132done
9133
9134 if test $ac_cv_func_memmem = yes; then
9135 HAVE_MEMMEM=1
9136 else
9137 HAVE_MEMMEM=0
9138 fi
9139
8690e634
JK
9140 if test $ac_cv_have_decl_memmem = no; then
9141 HAVE_DECL_MEMMEM=0
9142 else
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
9144$as_echo_n "checking whether memmem works... " >&6; }
9145if test "${gl_cv_func_memmem_works_always+set}" = set; then :
9146 $as_echo_n "(cached) " >&6
9147else
9148 if test "$cross_compiling" = yes; then :
9149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9150/* end confdefs.h. */
9151
9152#ifdef __GNU_LIBRARY__
9153 #include <features.h>
9154 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
9155 || __GLIBC_MINOR__ > 12)) \
9156 || (__GLIBC__ > 2)) \
9157 || defined __UCLIBC__
9158 Lucky user
9159 #endif
9160#elif defined __CYGWIN__
9161 #include <cygwin/version.h>
9162 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
9163 Lucky user
9164 #endif
9165#else
9166 Lucky user
9167#endif
9168
9169_ACEOF
9170if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9171 $EGREP "Lucky user" >/dev/null 2>&1; then :
9172 gl_cv_func_memmem_works_always="guessing yes"
9173else
9174 gl_cv_func_memmem_works_always="guessing no"
9175fi
9176rm -f conftest*
9177
9178
9179else
9180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9181/* end confdefs.h. */
9182
9183#include <string.h> /* for memmem */
9184#define P "_EF_BF_BD"
9185#define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
9186#define NEEDLE P P P P P
9187
9188int
9189main ()
9190{
9191
9192 int result = 0;
9193 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
9194 result |= 1;
9195 /* Check for empty needle behavior. */
9196 {
9197 const char *haystack = "AAA";
9198 if (memmem (haystack, 3, NULL, 0) != haystack)
9199 result |= 2;
9200 }
9201 return result;
9202
9203 ;
9204 return 0;
9205}
9206_ACEOF
9207if ac_fn_c_try_run "$LINENO"; then :
9208 gl_cv_func_memmem_works_always=yes
9209else
9210 gl_cv_func_memmem_works_always=no
9211fi
9212rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9213 conftest.$ac_objext conftest.beam conftest.$ac_ext
9214fi
9215
9216
9217fi
9218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
9219$as_echo "$gl_cv_func_memmem_works_always" >&6; }
9220 case "$gl_cv_func_memmem_works_always" in
9221 *yes) ;;
9222 *)
9223 REPLACE_MEMMEM=1
9224 ;;
9225 esac
9226 fi
9227 :
9228
38ec2207
PA
9229
9230
8690e634
JK
9231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
9232$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
9233if test "${ac_cv_header_stdbool_h+set}" = set; then :
9234 $as_echo_n "(cached) " >&6
9235else
9236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9237/* end confdefs.h. */
9238
9239 #include <stdbool.h>
9240 #ifndef bool
9241 "error: bool is not defined"
9242 #endif
9243 #ifndef false
9244 "error: false is not defined"
9245 #endif
9246 #if false
9247 "error: false is not 0"
9248 #endif
9249 #ifndef true
9250 "error: true is not defined"
9251 #endif
9252 #if true != 1
9253 "error: true is not 1"
9254 #endif
9255 #ifndef __bool_true_false_are_defined
9256 "error: __bool_true_false_are_defined is not defined"
9257 #endif
9258
9259 struct s { _Bool s: 1; _Bool t; } s;
9260
9261 char a[true == 1 ? 1 : -1];
9262 char b[false == 0 ? 1 : -1];
9263 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
9264 char d[(bool) 0.5 == true ? 1 : -1];
9265 /* See body of main program for 'e'. */
9266 char f[(_Bool) 0.0 == false ? 1 : -1];
9267 char g[true];
9268 char h[sizeof (_Bool)];
9269 char i[sizeof s.t];
9270 enum { j = false, k = true, l = false * true, m = true * 256 };
9271 /* The following fails for
9272 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
9273 _Bool n[m];
9274 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
9275 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
9276 /* Catch a bug in an HP-UX C compiler. See
9277 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
9278 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
9279 */
9280 _Bool q = true;
9281 _Bool *pq = &q;
9282
9283int
9284main ()
9285{
9286
9287 bool e = &s;
9288 *pq |= q;
9289 *pq |= ! q;
9290 /* Refer to every declared value, to avoid compiler optimizations. */
9291 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
9292 + !m + !n + !o + !p + !q + !pq);
9293
9294 ;
9295 return 0;
9296}
9297_ACEOF
9298if ac_fn_c_try_compile "$LINENO"; then :
9299 ac_cv_header_stdbool_h=yes
9300else
9301 ac_cv_header_stdbool_h=no
9302fi
9303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9304fi
9305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
9306$as_echo "$ac_cv_header_stdbool_h" >&6; }
9307 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
9308if test "x$ac_cv_type__Bool" = x""yes; then :
9309
9310cat >>confdefs.h <<_ACEOF
9311#define HAVE__BOOL 1
9312_ACEOF
9313
9314
9315fi
9316
9317
9318
9319 REPLACE_NULL=0;
9320 HAVE_WCHAR_T=1;
9321
9322
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9324$as_echo_n "checking for wchar_t... " >&6; }
9325if test "${gt_cv_c_wchar_t+set}" = set; then :
9326 $as_echo_n "(cached) " >&6
9327else
9328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9329/* end confdefs.h. */
9330#include <stddef.h>
9331 wchar_t foo = (wchar_t)'\0';
9332int
9333main ()
9334{
9335
9336 ;
9337 return 0;
9338}
9339_ACEOF
9340if ac_fn_c_try_compile "$LINENO"; then :
9341 gt_cv_c_wchar_t=yes
9342else
9343 gt_cv_c_wchar_t=no
9344fi
9345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9346fi
9347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9348$as_echo "$gt_cv_c_wchar_t" >&6; }
9349 if test $gt_cv_c_wchar_t = yes; then
9350
9351$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
9352
9353 fi
9354
63ce7108
TT
9355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
9356$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
9357if test "${ac_cv_c_restrict+set}" = set; then :
9358 $as_echo_n "(cached) " >&6
9359else
9360 ac_cv_c_restrict=no
9361 # The order here caters to the fact that C++ does not require restrict.
9362 for ac_kw in __restrict __restrict__ _Restrict restrict; do
9363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9364/* end confdefs.h. */
9365typedef int * int_ptr;
9366 int foo (int_ptr $ac_kw ip) {
9367 return ip[0];
9368 }
9369int
9370main ()
9371{
9372int s[1];
9373 int * $ac_kw t = s;
9374 t[0] = 0;
9375 return foo(t)
9376 ;
9377 return 0;
9378}
9379_ACEOF
9380if ac_fn_c_try_compile "$LINENO"; then :
9381 ac_cv_c_restrict=$ac_kw
9382fi
9383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9384 test "$ac_cv_c_restrict" != no && break
9385 done
9386
9387fi
9388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
9389$as_echo "$ac_cv_c_restrict" >&6; }
9390
9391 case $ac_cv_c_restrict in
9392 restrict) ;;
9393 no) $as_echo "#define restrict /**/" >>confdefs.h
9394 ;;
9395 *) cat >>confdefs.h <<_ACEOF
9396#define restrict $ac_cv_c_restrict
9397_ACEOF
9398 ;;
9399 esac
9400
9401
9402
9403
9404
8690e634
JK
9405
9406
9407
9408
9409
9410
9411
9412 if test $gl_cv_have_include_next = yes; then
9413 gl_cv_next_string_h='<'string.h'>'
9414 else
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
9416$as_echo_n "checking absolute name of <string.h>... " >&6; }
9417if test "${gl_cv_next_string_h+set}" = set; then :
9418 $as_echo_n "(cached) " >&6
9419else
9420
9421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9422/* end confdefs.h. */
9423#include <string.h>
9424
9425_ACEOF
9426 case "$host_os" in
9427 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9428 *) gl_absname_cpp="$ac_cpp" ;;
9429 esac
9430
9431 case "$host_os" in
c971b7fa
PA
9432 mingw*)
9433 gl_dirsep_regex='[/\\]'
9434 ;;
9435 *)
9436 gl_dirsep_regex='\/'
9437 ;;
9438 esac
9439 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9440
8690e634
JK
9441 gl_header_literal_regex=`echo 'string.h' \
9442 | sed -e "$gl_make_literal_regex_sed"`
9443 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9444 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9445 s|^/[^/]|//&|
9446 p
9447 q
9448 }'
9449 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9450 sed -n "$gl_absolute_header_sed"`'"'
9451
9452
9453fi
9454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
9455$as_echo "$gl_cv_next_string_h" >&6; }
9456 fi
9457 NEXT_STRING_H=$gl_cv_next_string_h
9458
9459 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9460 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9461 gl_next_as_first_directive='<'string.h'>'
9462 else
9463 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9464 gl_next_as_first_directive=$gl_cv_next_string_h
9465 fi
9466 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
9467
9468
9469
9470
9471
9472
9473 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
9474 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
9476$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
9477if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
9478 $as_echo_n "(cached) " >&6
9479else
9480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9481/* end confdefs.h. */
9482#include <string.h>
9483
9484int
9485main ()
9486{
9487#undef $gl_func
9488 (void) $gl_func;
9489 ;
9490 return 0;
9491}
9492_ACEOF
9493if ac_fn_c_try_compile "$LINENO"; then :
9494 eval "$as_gl_Symbol=yes"
9495else
9496 eval "$as_gl_Symbol=no"
9497fi
9498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9499fi
9500eval ac_res=\$$as_gl_Symbol
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9502$as_echo "$ac_res" >&6; }
9503 eval as_val=\$$as_gl_Symbol
9504 if test "x$as_val" = x""yes; then :
9505 cat >>confdefs.h <<_ACEOF
9506#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
9507_ACEOF
9508
9509 eval ac_cv_have_decl_$gl_func=yes
9510fi
9511 done
9512
9513
9514
8839a007 9515
63ce7108
TT
9516
9517 if test "$gl_cv_func_memchr_works" != yes; then
9518 REPLACE_STRSTR=1
9519 else
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
9521$as_echo_n "checking whether strstr works... " >&6; }
9522if test "${gl_cv_func_strstr_works_always+set}" = set; then :
9523 $as_echo_n "(cached) " >&6
9524else
9525 if test "$cross_compiling" = yes; then :
9526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9527/* end confdefs.h. */
9528
9529#ifdef __GNU_LIBRARY__
9530 #include <features.h>
9531 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
9532 || defined __UCLIBC__
9533 Lucky user
9534 #endif
9535#elif defined __CYGWIN__
9536 #include <cygwin/version.h>
9537 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
9538 Lucky user
9539 #endif
9540#else
9541 Lucky user
9542#endif
9543
9544_ACEOF
9545if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9546 $EGREP "Lucky user" >/dev/null 2>&1; then :
9547 gl_cv_func_strstr_works_always="guessing yes"
9548else
9549 gl_cv_func_strstr_works_always="guessing no"
9550fi
9551rm -f conftest*
9552
9553
9554else
9555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9556/* end confdefs.h. */
9557
9558#include <string.h> /* for strstr */
9559#define P "_EF_BF_BD"
9560#define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
9561#define NEEDLE P P P P P
9562
9563int
9564main ()
9565{
9566return !!strstr (HAYSTACK, NEEDLE);
9567
9568 ;
9569 return 0;
9570}
9571_ACEOF
9572if ac_fn_c_try_run "$LINENO"; then :
9573 gl_cv_func_strstr_works_always=yes
9574else
9575 gl_cv_func_strstr_works_always=no
9576fi
9577rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9578 conftest.$ac_objext conftest.beam conftest.$ac_ext
9579fi
9580
9581
9582fi
9583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
9584$as_echo "$gl_cv_func_strstr_works_always" >&6; }
9585 case "$gl_cv_func_strstr_works_always" in
9586 *yes) ;;
9587 *)
9588 REPLACE_STRSTR=1
9589 ;;
9590 esac
9591 fi
9592
9593
09607c9e
TT
9594 GNULIB_FCHMODAT=0;
9595 GNULIB_FSTAT=0;
9596 GNULIB_FSTATAT=0;
9597 GNULIB_FUTIMENS=0;
9598 GNULIB_LCHMOD=0;
9599 GNULIB_LSTAT=0;
9600 GNULIB_MKDIRAT=0;
9601 GNULIB_MKFIFO=0;
9602 GNULIB_MKFIFOAT=0;
9603 GNULIB_MKNOD=0;
9604 GNULIB_MKNODAT=0;
9605 GNULIB_STAT=0;
9606 GNULIB_UTIMENSAT=0;
9607 HAVE_FCHMODAT=1;
9608 HAVE_FSTATAT=1;
9609 HAVE_FUTIMENS=1;
9610 HAVE_LCHMOD=1;
9611 HAVE_LSTAT=1;
9612 HAVE_MKDIRAT=1;
9613 HAVE_MKFIFO=1;
9614 HAVE_MKFIFOAT=1;
9615 HAVE_MKNOD=1;
9616 HAVE_MKNODAT=1;
9617 HAVE_UTIMENSAT=1;
9618 REPLACE_FSTAT=0;
9619 REPLACE_FSTATAT=0;
9620 REPLACE_FUTIMENS=0;
9621 REPLACE_LSTAT=0;
9622 REPLACE_MKDIR=0;
9623 REPLACE_MKFIFO=0;
9624 REPLACE_MKNOD=0;
9625 REPLACE_STAT=0;
9626 REPLACE_UTIMENSAT=0;
9627
9628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
9629$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
9630if test "${ac_cv_header_stat_broken+set}" = set; then :
9631 $as_echo_n "(cached) " >&6
9632else
9633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9634/* end confdefs.h. */
9635#include <sys/types.h>
9636#include <sys/stat.h>
63ce7108 9637
09607c9e
TT
9638#if defined S_ISBLK && defined S_IFDIR
9639extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
9640#endif
8839a007 9641
09607c9e
TT
9642#if defined S_ISBLK && defined S_IFCHR
9643extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
9644#endif
9645
9646#if defined S_ISLNK && defined S_IFREG
9647extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
9648#endif
9649
9650#if defined S_ISSOCK && defined S_IFREG
9651extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
9652#endif
8839a007 9653
8839a007 9654_ACEOF
09607c9e
TT
9655if ac_fn_c_try_compile "$LINENO"; then :
9656 ac_cv_header_stat_broken=no
9657else
9658 ac_cv_header_stat_broken=yes
9659fi
9660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9661fi
9662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
9663$as_echo "$ac_cv_header_stat_broken" >&6; }
9664if test $ac_cv_header_stat_broken = yes; then
9665
9666$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
8839a007
PA
9667
9668fi
9669
09607c9e
TT
9670
9671
8839a007
PA
9672ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
9673if test "x$ac_cv_type_mode_t" = x""yes; then :
9674
9675else
9676
9677cat >>confdefs.h <<_ACEOF
9678#define mode_t int
9679_ACEOF
9680
9681fi
9682
8839a007
PA
9683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
9684$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
9685if test -z "$MKDIR_P"; then
9686 if test "${ac_cv_path_mkdir+set}" = set; then :
9687 $as_echo_n "(cached) " >&6
9688else
9689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9690for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
9691do
9692 IFS=$as_save_IFS
9693 test -z "$as_dir" && as_dir=.
9694 for ac_prog in mkdir gmkdir; do
9695 for ac_exec_ext in '' $ac_executable_extensions; do
9696 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
9697 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
9698 'mkdir (GNU coreutils) '* | \
9699 'mkdir (coreutils) '* | \
9700 'mkdir (fileutils) '4.1*)
9701 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
9702 break 3;;
9703 esac
9704 done
9705 done
9706 done
9707IFS=$as_save_IFS
9708
9709fi
9710
9711 if test "${ac_cv_path_mkdir+set}" = set; then
9712 MKDIR_P="$ac_cv_path_mkdir -p"
9713 else
9714 # As a last resort, use the slow shell script. Don't cache a
9715 # value for MKDIR_P within a source directory, because that will
9716 # break other packages using the cache if that directory is
9717 # removed, or if the value is a relative name.
9718 test -d ./--version && rmdir ./--version
9719 MKDIR_P="$ac_install_sh -d"
9720 fi
9721fi
9722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
9723$as_echo "$MKDIR_P" >&6; }
9724
9725
09607c9e
TT
9726
9727ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9728if test "x$ac_cv_type_pid_t" = x""yes; then :
9729
9730else
9731
9732cat >>confdefs.h <<_ACEOF
9733#define pid_t int
9734_ACEOF
9735
9736fi
9737
9738
9739
9740 WINDOWS_64_BIT_OFF_T=0
9741
9742
9743
9744
9745 GNULIB_MKTIME=0;
9746 GNULIB_NANOSLEEP=0;
9747 GNULIB_STRPTIME=0;
9748 GNULIB_TIMEGM=0;
9749 GNULIB_TIME_R=0;
9750 HAVE_DECL_LOCALTIME_R=1;
9751 HAVE_NANOSLEEP=1;
9752 HAVE_STRPTIME=1;
9753 HAVE_TIMEGM=1;
9754 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
9755 REPLACE_MKTIME=GNULIB_PORTCHECK;
9756 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
9757 REPLACE_TIMEGM=GNULIB_PORTCHECK;
9758
9759
9760
9761
9762
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
9764$as_echo_n "checking for struct timespec in <time.h>... " >&6; }
9765if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
9766 $as_echo_n "(cached) " >&6
9767else
9768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9769/* end confdefs.h. */
9770#include <time.h>
9771
9772int
9773main ()
9774{
9775static struct timespec x; x.tv_sec = x.tv_nsec;
9776 ;
9777 return 0;
9778}
9779_ACEOF
9780if ac_fn_c_try_compile "$LINENO"; then :
9781 gl_cv_sys_struct_timespec_in_time_h=yes
9782else
9783 gl_cv_sys_struct_timespec_in_time_h=no
9784fi
9785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9786fi
9787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
9788$as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
9789
9790 TIME_H_DEFINES_STRUCT_TIMESPEC=0
9791 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
9792 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
9793 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
9794 TIME_H_DEFINES_STRUCT_TIMESPEC=1
9795 else
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
9797$as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
9798if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
9799 $as_echo_n "(cached) " >&6
9800else
9801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9802/* end confdefs.h. */
9803#include <sys/time.h>
9804
9805int
9806main ()
9807{
9808static struct timespec x; x.tv_sec = x.tv_nsec;
9809 ;
9810 return 0;
9811}
9812_ACEOF
9813if ac_fn_c_try_compile "$LINENO"; then :
9814 gl_cv_sys_struct_timespec_in_sys_time_h=yes
9815else
9816 gl_cv_sys_struct_timespec_in_sys_time_h=no
9817fi
9818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9819fi
9820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
9821$as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
9822 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
9823 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
9824 else
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
9826$as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
9827if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
9828 $as_echo_n "(cached) " >&6
9829else
9830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9831/* end confdefs.h. */
9832#include <pthread.h>
9833
9834int
9835main ()
9836{
9837static struct timespec x; x.tv_sec = x.tv_nsec;
9838 ;
9839 return 0;
9840}
9841_ACEOF
9842if ac_fn_c_try_compile "$LINENO"; then :
9843 gl_cv_sys_struct_timespec_in_pthread_h=yes
9844else
9845 gl_cv_sys_struct_timespec_in_pthread_h=no
9846fi
9847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9848fi
9849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
9850$as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
9851 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
9852 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
9853 fi
9854 fi
9855 fi
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871 if test $gl_cv_have_include_next = yes; then
9872 gl_cv_next_time_h='<'time.h'>'
9873 else
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
9875$as_echo_n "checking absolute name of <time.h>... " >&6; }
9876if test "${gl_cv_next_time_h+set}" = set; then :
9877 $as_echo_n "(cached) " >&6
9878else
9879
9880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9881/* end confdefs.h. */
9882#include <time.h>
9883
9884_ACEOF
9885 case "$host_os" in
9886 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9887 *) gl_absname_cpp="$ac_cpp" ;;
9888 esac
9889
9890 case "$host_os" in
9891 mingw*)
9892 gl_dirsep_regex='[/\\]'
9893 ;;
9894 *)
9895 gl_dirsep_regex='\/'
9896 ;;
9897 esac
9898 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9899
9900 gl_header_literal_regex=`echo 'time.h' \
9901 | sed -e "$gl_make_literal_regex_sed"`
9902 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9903 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9904 s|^/[^/]|//&|
9905 p
9906 q
9907 }'
9908 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9909 sed -n "$gl_absolute_header_sed"`'"'
9910
9911
9912fi
9913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
9914$as_echo "$gl_cv_next_time_h" >&6; }
9915 fi
9916 NEXT_TIME_H=$gl_cv_next_time_h
9917
9918 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9919 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9920 gl_next_as_first_directive='<'time.h'>'
9921 else
9922 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9923 gl_next_as_first_directive=$gl_cv_next_time_h
9924 fi
9925 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
9926
9927
9928
9929
9930
9931
9932
8690e634
JK
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
9934$as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
9935if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
9936 $as_echo_n "(cached) " >&6
9937else
9938 gl_cv_header_wchar_h_correct_inline=yes
9939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9940/* end confdefs.h. */
9941
9942 #define wcstod renamed_wcstod
9943/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9944 <wchar.h>.
9945 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9946 included before <wchar.h>. */
9947#include <stddef.h>
9948#include <stdio.h>
9949#include <time.h>
9950#include <wchar.h>
9951extern int zero (void);
9952int main () { return zero(); }
9953
9954_ACEOF
9955 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9956 (eval $ac_compile) 2>&5
9957 ac_status=$?
9958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9959 test $ac_status = 0; }; then
9960 mv conftest.$ac_objext conftest1.$ac_objext
9961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9962/* end confdefs.h. */
9963
9964 #define wcstod renamed_wcstod
9965/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9966 <wchar.h>.
9967 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9968 included before <wchar.h>. */
9969#include <stddef.h>
9970#include <stdio.h>
9971#include <time.h>
9972#include <wchar.h>
9973int zero (void) { return 0; }
9974
9975_ACEOF
9976 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9977 (eval $ac_compile) 2>&5
9978 ac_status=$?
9979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9980 test $ac_status = 0; }; then
9981 mv conftest.$ac_objext conftest2.$ac_objext
9982 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
9983 :
9984 else
9985 gl_cv_header_wchar_h_correct_inline=no
9986 fi
9987 fi
9988 fi
9989 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
9990
9991fi
9992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
9993$as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
9994 if test $gl_cv_header_wchar_h_correct_inline = no; then
9995 as_fn_error "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
9996This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
9997C99 mode. You have four options:
9998 - Add the flag -fgnu89-inline to CC and reconfigure, or
9999 - Fix your include files, using parts of
10000 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
10001 - Use a gcc version older than 4.3, or
10002 - Don't use the flags -std=c99 or -std=gnu99.
10003Configuration aborted." "$LINENO" 5
10004 fi
10005
10006
10007
10008
10009
8690e634
JK
10010 if test $ac_cv_header_features_h = yes; then
10011 HAVE_FEATURES_H=1
10012 else
10013 HAVE_FEATURES_H=0
10014 fi
10015
10016
10017
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
10019$as_echo_n "checking for wint_t... " >&6; }
10020if test "${gt_cv_c_wint_t+set}" = set; then :
10021 $as_echo_n "(cached) " >&6
10022else
10023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10024/* end confdefs.h. */
10025
10026/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
10027 <wchar.h>.
10028 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
10029 before <wchar.h>. */
10030#include <stddef.h>
10031#include <stdio.h>
10032#include <time.h>
10033#include <wchar.h>
10034 wint_t foo = (wchar_t)'\0';
10035int
10036main ()
10037{
10038
10039 ;
10040 return 0;
10041}
10042_ACEOF
10043if ac_fn_c_try_compile "$LINENO"; then :
10044 gt_cv_c_wint_t=yes
10045else
10046 gt_cv_c_wint_t=no
10047fi
10048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10049fi
10050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
10051$as_echo "$gt_cv_c_wint_t" >&6; }
10052 if test $gt_cv_c_wint_t = yes; then
10053
10054$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
10055
10056 fi
10057
10058
10059 GNULIB_ISWBLANK=0;
10060 GNULIB_WCTYPE=0;
10061 GNULIB_ISWCTYPE=0;
10062 GNULIB_WCTRANS=0;
10063 GNULIB_TOWCTRANS=0;
10064 HAVE_ISWBLANK=1;
10065 HAVE_WCTYPE_T=1;
10066 HAVE_WCTRANS_T=1;
10067 REPLACE_ISWBLANK=0;
10068
10069
10070
10071
8690e634
JK
10072 if false; then
10073 GL_COND_LIBTOOL_TRUE=
10074 GL_COND_LIBTOOL_FALSE='#'
10075else
10076 GL_COND_LIBTOOL_TRUE='#'
10077 GL_COND_LIBTOOL_FALSE=
10078fi
10079
10080 gl_cond_libtool=false
10081 gl_libdeps=
10082 gl_ltlibdeps=
10083 gl_m4_base='import/m4'
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093 gl_source_base='import'
10094
10095
10096 if test $ac_cv_func_alloca_works = no; then
10097 :
10098 fi
10099
10100 # Define an additional variable used in the Makefile substitution.
10101 if test $ac_cv_working_alloca_h = yes; then
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
10103$as_echo_n "checking for alloca as a compiler built-in... " >&6; }
10104if test "${gl_cv_rpl_alloca+set}" = set; then :
10105 $as_echo_n "(cached) " >&6
10106else
10107
10108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10109/* end confdefs.h. */
10110
10111#if defined __GNUC__ || defined _AIX || defined _MSC_VER
10112 Need own alloca
10113#endif
10114
10115_ACEOF
10116if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10117 $EGREP "Need own alloca" >/dev/null 2>&1; then :
10118 gl_cv_rpl_alloca=yes
10119else
10120 gl_cv_rpl_alloca=no
10121fi
10122rm -f conftest*
10123
10124
10125fi
10126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
10127$as_echo "$gl_cv_rpl_alloca" >&6; }
10128 if test $gl_cv_rpl_alloca = yes; then
10129
10130$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
10131
10132 ALLOCA_H=alloca.h
10133 else
10134 ALLOCA_H=
10135 fi
10136 else
10137 ALLOCA_H=alloca.h
10138 fi
10139
10140 if test -n "$ALLOCA_H"; then
10141 GL_GENERATE_ALLOCA_H_TRUE=
10142 GL_GENERATE_ALLOCA_H_FALSE='#'
10143else
10144 GL_GENERATE_ALLOCA_H_TRUE='#'
10145 GL_GENERATE_ALLOCA_H_FALSE=
10146fi
10147
10148
10149
10150 if test "x$datarootdir" = x; then
10151 datarootdir='${datadir}'
10152
10153 fi
10154 if test "x$docdir" = x; then
10155 docdir='${datarootdir}/doc/${PACKAGE}'
10156
10157 fi
10158 if test "x$htmldir" = x; then
10159 htmldir='${docdir}'
10160
10161 fi
10162 if test "x$dvidir" = x; then
10163 dvidir='${docdir}'
10164
10165 fi
10166 if test "x$pdfdir" = x; then
10167 pdfdir='${docdir}'
10168
10169 fi
10170 if test "x$psdir" = x; then
10171 psdir='${docdir}'
10172
10173 fi
10174 if test "x$lispdir" = x; then
10175 lispdir='${datarootdir}/emacs/site-lisp'
10176
10177 fi
10178 if test "x$localedir" = x; then
10179 localedir='${datarootdir}/locale'
10180
10181 fi
10182
10183 pkglibexecdir='${libexecdir}/${PACKAGE}'
10184
10185
10186
10187
10188
10189
63ce7108 10190
e26b6bb0
TT
10191
10192
10193
10194
10195
10196
10197
10198 if test $gl_cv_have_include_next = yes; then
10199 gl_cv_next_dirent_h='<'dirent.h'>'
10200 else
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
10202$as_echo_n "checking absolute name of <dirent.h>... " >&6; }
10203if test "${gl_cv_next_dirent_h+set}" = set; then :
10204 $as_echo_n "(cached) " >&6
10205else
10206
10207 if test $ac_cv_header_dirent_h = yes; then
10208
10209
10210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10211/* end confdefs.h. */
10212#include <dirent.h>
10213
10214_ACEOF
10215 case "$host_os" in
10216 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10217 *) gl_absname_cpp="$ac_cpp" ;;
10218 esac
10219
10220 case "$host_os" in
10221 mingw*)
10222 gl_dirsep_regex='[/\\]'
10223 ;;
10224 *)
10225 gl_dirsep_regex='\/'
10226 ;;
10227 esac
10228 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10229
10230 gl_header_literal_regex=`echo 'dirent.h' \
10231 | sed -e "$gl_make_literal_regex_sed"`
10232 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10233 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10234 s|^/[^/]|//&|
10235 p
10236 q
10237 }'
10238 gl_cv_next_dirent_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10239 sed -n "$gl_absolute_header_sed"`'"'
10240 else
10241 gl_cv_next_dirent_h='<'dirent.h'>'
10242 fi
10243
10244
10245fi
10246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
10247$as_echo "$gl_cv_next_dirent_h" >&6; }
10248 fi
10249 NEXT_DIRENT_H=$gl_cv_next_dirent_h
10250
10251 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10252 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10253 gl_next_as_first_directive='<'dirent.h'>'
10254 else
10255 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10256 gl_next_as_first_directive=$gl_cv_next_dirent_h
10257 fi
10258 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H=$gl_next_as_first_directive
10259
10260
10261
10262
10263 if test $ac_cv_header_dirent_h = yes; then
10264 HAVE_DIRENT_H=1
10265 else
10266 HAVE_DIRENT_H=0
10267 fi
10268
10269
10270
10271 for gl_func in alphasort closedir dirfd fdopendir opendir readdir rewinddir scandir; do
10272 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
10274$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
10275if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
10276 $as_echo_n "(cached) " >&6
10277else
10278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10279/* end confdefs.h. */
10280#include <dirent.h>
10281
10282int
10283main ()
10284{
10285#undef $gl_func
10286 (void) $gl_func;
10287 ;
10288 return 0;
10289}
10290_ACEOF
10291if ac_fn_c_try_compile "$LINENO"; then :
10292 eval "$as_gl_Symbol=yes"
10293else
10294 eval "$as_gl_Symbol=no"
10295fi
10296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10297fi
10298eval ac_res=\$$as_gl_Symbol
10299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10300$as_echo "$ac_res" >&6; }
10301 eval as_val=\$$as_gl_Symbol
10302 if test "x$as_val" = x""yes; then :
10303 cat >>confdefs.h <<_ACEOF
10304#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
10305_ACEOF
10306
10307 eval ac_cv_have_decl_$gl_func=yes
10308fi
10309 done
10310
10311
10312
10313
10314
10315
88b48903
WN
10316 FLOAT_H=
10317 REPLACE_FLOAT_LDBL=0
10318 case "$host_os" in
10319 aix* | beos* | openbsd* | mirbsd* | irix*)
10320 FLOAT_H=float.h
10321 ;;
10322 freebsd*)
10323 case "$host_cpu" in
10324 i[34567]86 )
10325 FLOAT_H=float.h
10326 ;;
10327 x86_64 )
10328 # On x86_64 systems, the C compiler may still be generating
10329 # 32-bit code.
10330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10331/* end confdefs.h. */
10332#if defined __LP64__ || defined __x86_64__ || defined __amd64__
10333 yes
10334 #endif
10335_ACEOF
10336if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10337 $EGREP "yes" >/dev/null 2>&1; then :
10338
10339else
10340 FLOAT_H=float.h
10341fi
10342rm -f conftest*
8690e634 10343
88b48903
WN
10344 ;;
10345 esac
10346 ;;
10347 linux*)
10348 case "$host_cpu" in
10349 powerpc*)
10350 FLOAT_H=float.h
10351 ;;
10352 esac
10353 ;;
10354 esac
10355 case "$host_os" in
10356 aix* | freebsd* | linux*)
10357 if test -n "$FLOAT_H"; then
10358 REPLACE_FLOAT_LDBL=1
10359 fi
10360 ;;
10361 esac
a512b375 10362
88b48903
WN
10363 REPLACE_ITOLD=0
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
10365$as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
10366if test "${gl_cv_func_itold_works+set}" = set; then :
8690e634
JK
10367 $as_echo_n "(cached) " >&6
10368else
88b48903
WN
10369
10370 if test "$cross_compiling" = yes; then :
10371 case "$host" in
10372 sparc*-*-linux*)
10373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10374/* end confdefs.h. */
10375#if defined __LP64__ || defined __arch64__
10376 yes
10377 #endif
10378_ACEOF
10379if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10380 $EGREP "yes" >/dev/null 2>&1; then :
10381 gl_cv_func_itold_works="guessing no"
10382else
10383 gl_cv_func_itold_works="guessing yes"
10384fi
10385rm -f conftest*
10386
10387 ;;
10388 *) gl_cv_func_itold_works="guessing yes" ;;
10389 esac
10390
8690e634
JK
10391else
10392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10393/* end confdefs.h. */
8690e634 10394
88b48903
WN
10395int i = -1;
10396volatile long double ld;
10397int main ()
8690e634 10398{
88b48903
WN
10399 ld += i * 1.0L;
10400 if (ld > 0)
10401 return 1;
10402 return 0;
10403}
10404_ACEOF
10405if ac_fn_c_try_run "$LINENO"; then :
10406 gl_cv_func_itold_works=yes
10407else
10408 gl_cv_func_itold_works=no
10409fi
10410rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10411 conftest.$ac_objext conftest.beam conftest.$ac_ext
10412fi
10413
10414
10415fi
10416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
10417$as_echo "$gl_cv_func_itold_works" >&6; }
10418 case "$gl_cv_func_itold_works" in
10419 *no)
10420 REPLACE_ITOLD=1
10421 FLOAT_H=float.h
10422 ;;
10423 esac
10424
10425 if test -n "$FLOAT_H"; then
10426
10427
10428
10429
10430
10431
10432
10433
10434 if test $gl_cv_have_include_next = yes; then
10435 gl_cv_next_float_h='<'float.h'>'
10436 else
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
10438$as_echo_n "checking absolute name of <float.h>... " >&6; }
10439if test "${gl_cv_next_float_h+set}" = set; then :
10440 $as_echo_n "(cached) " >&6
10441else
10442
10443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10444/* end confdefs.h. */
10445#include <float.h>
10446
10447_ACEOF
10448 case "$host_os" in
10449 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10450 *) gl_absname_cpp="$ac_cpp" ;;
10451 esac
10452
10453 case "$host_os" in
10454 mingw*)
10455 gl_dirsep_regex='[/\\]'
10456 ;;
10457 *)
10458 gl_dirsep_regex='\/'
10459 ;;
10460 esac
10461 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10462
10463 gl_header_literal_regex=`echo 'float.h' \
10464 | sed -e "$gl_make_literal_regex_sed"`
10465 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10466 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10467 s|^/[^/]|//&|
10468 p
10469 q
10470 }'
10471 gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10472 sed -n "$gl_absolute_header_sed"`'"'
10473
10474
10475fi
10476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
10477$as_echo "$gl_cv_next_float_h" >&6; }
10478 fi
10479 NEXT_FLOAT_H=$gl_cv_next_float_h
10480
10481 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10482 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10483 gl_next_as_first_directive='<'float.h'>'
10484 else
10485 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10486 gl_next_as_first_directive=$gl_cv_next_float_h
10487 fi
10488 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
10489
10490
10491
10492
10493 fi
10494
10495 if test -n "$FLOAT_H"; then
10496 GL_GENERATE_FLOAT_H_TRUE=
10497 GL_GENERATE_FLOAT_H_FALSE='#'
10498else
10499 GL_GENERATE_FLOAT_H_TRUE='#'
10500 GL_GENERATE_FLOAT_H_FALSE=
10501fi
10502
10503
10504
10505 if test $REPLACE_FLOAT_LDBL = 1; then
10506
10507
10508
10509
10510
10511
10512
10513
10514 gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
10515
10516 fi
10517 if test $REPLACE_ITOLD = 1; then
10518
10519
10520
10521
10522
10523
10524
10525
10526 gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
10527
10528 fi
10529
10530
10531
10532
10533
10534 FNMATCH_H=
10535 gl_fnmatch_required_lowercase=`
10536 echo $gl_fnmatch_required | LC_ALL=C tr '[A-Z]' '[a-z]'
10537 `
10538 gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
10540$as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
10541if { as_var=$gl_fnmatch_cache_var; eval "test \"\${$as_var+set}\" = set"; }; then :
10542 $as_echo_n "(cached) " >&6
10543else
10544 if test $gl_fnmatch_required = GNU; then
10545 gl_fnmatch_gnu_start=
10546 gl_fnmatch_gnu_end=
10547 else
10548 gl_fnmatch_gnu_start='#if 0'
10549 gl_fnmatch_gnu_end='#endif'
10550 fi
10551 if test "$cross_compiling" = yes; then :
10552 eval "$gl_fnmatch_cache_var=\"guessing no\""
10553else
10554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10555/* end confdefs.h. */
10556#include <fnmatch.h>
10557 static int
10558 y (char const *pattern, char const *string, int flags)
10559 {
10560 return fnmatch (pattern, string, flags) == 0;
10561 }
10562 static int
10563 n (char const *pattern, char const *string, int flags)
10564 {
10565 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
10566 }
10567
10568int
10569main ()
10570{
10571char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
10572 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
10573 static char const A_1[] = { 'A' - 1, 0 };
10574 static char const A01[] = { 'A' + 1, 0 };
10575 static char const a_1[] = { 'a' - 1, 0 };
10576 static char const a01[] = { 'a' + 1, 0 };
10577 static char const bs_1[] = { '\\\\' - 1, 0 };
8690e634
JK
10578 static char const bs01[] = { '\\\\' + 1, 0 };
10579 int result = 0;
10580 if (!n ("a*", "", 0))
10581 return 1;
10582 if (!y ("a*", "abc", 0))
10583 return 1;
10584 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
10585 return 1;
10586 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
10587 return 2;
10588 if (!y ("a\\\\bc", "abc", 0))
10589 return 3;
10590 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
10591 return 3;
10592 if (!y ("*x", ".x", 0))
10593 return 4;
10594 if (!n ("*x", ".x", FNM_PERIOD))
10595 return 4;
10596 if (!y (Apat, "\\\\", 0))
10597 return 5;
10598 if (!y (Apat, "A", 0))
10599 return 5;
10600 if (!y (apat, "\\\\", 0))
10601 return 5;
10602 if (!y (apat, "a", 0))
10603 return 5;
10604 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
10605 return 5;
10606 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
10607 return 5;
10608 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
10609 return 5;
10610 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
10611 return 5;
10612 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
10613 return 5;
10614 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
10615 return 5;
10616 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
10617 return 5;
10618 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
10619 return 5;
10620 $gl_fnmatch_gnu_start
10621 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
10622 result |= 8;
10623 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
10624 result |= 16;
10625 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
10626 result |= 32;
10627 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
10628 result |= 64;
10629 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
10630 result |= 64;
10631 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
10632 result |= 64;
10633 $gl_fnmatch_gnu_end
10634 return result;
10635
10636 ;
10637 return 0;
10638}
10639_ACEOF
10640if ac_fn_c_try_run "$LINENO"; then :
10641 eval "$gl_fnmatch_cache_var=yes"
10642else
10643 eval "$gl_fnmatch_cache_var=no"
10644fi
10645rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10646 conftest.$ac_objext conftest.beam conftest.$ac_ext
10647fi
10648
10649
10650fi
10651eval ac_res=\$$gl_fnmatch_cache_var
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10653$as_echo "$ac_res" >&6; }
10654 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
10655 if test "$gl_fnmatch_result" = yes; then
10656 rm -f "$gl_source_base/fnmatch.h"
10657 else
10658 FNMATCH_H=fnmatch.h
10659 fi
10660
10661 if test -n "$FNMATCH_H"; then
10662 GL_GENERATE_FNMATCH_H_TRUE=
10663 GL_GENERATE_FNMATCH_H_FALSE='#'
10664else
10665 GL_GENERATE_FNMATCH_H_TRUE='#'
10666 GL_GENERATE_FNMATCH_H_FALSE=
10667fi
10668
10669
a512b375 10670 if test -n "$FNMATCH_H"; then
8690e634
JK
10671
10672
10673
10674
10675
10676
10677
10678
10679 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
10680
10681
10682
10683cat >>confdefs.h <<_ACEOF
10684#define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
10685_ACEOF
10686
10687
10688 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
10689"
10690if test "x$ac_cv_have_decl_isblank" = x""yes; then :
10691 ac_have_decl=1
10692else
10693 ac_have_decl=0
10694fi
10695
10696cat >>confdefs.h <<_ACEOF
10697#define HAVE_DECL_ISBLANK $ac_have_decl
10698_ACEOF
10699
10700
c971b7fa 10701
c971b7fa 10702
a512b375 10703 fi
c971b7fa 10704
c971b7fa 10705
c971b7fa 10706
c971b7fa 10707
c971b7fa 10708
a512b375 10709 if test -n "$FNMATCH_H"; then
c971b7fa 10710
c971b7fa 10711
c971b7fa
PA
10712
10713
c971b7fa
PA
10714
10715
c971b7fa
PA
10716
10717
8690e634 10718 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
c971b7fa 10719
c971b7fa 10720
c971b7fa 10721
8690e634
JK
10722cat >>confdefs.h <<_ACEOF
10723#define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
10724_ACEOF
c971b7fa
PA
10725
10726
8690e634
JK
10727 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
10728"
10729if test "x$ac_cv_have_decl_isblank" = x""yes; then :
10730 ac_have_decl=1
10731else
10732 ac_have_decl=0
c971b7fa 10733fi
c971b7fa 10734
8690e634
JK
10735cat >>confdefs.h <<_ACEOF
10736#define HAVE_DECL_ISBLANK $ac_have_decl
c971b7fa
PA
10737_ACEOF
10738
c971b7fa 10739
8690e634 10740
c971b7fa 10741
88b48903
WN
10742 fi
10743
10744
10745
10746 FREXP_LIBM=
10747 if test $gl_cv_func_frexp_no_libm = no; then
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used with libm" >&5
10749$as_echo_n "checking whether frexp() can be used with libm... " >&6; }
10750if test "${gl_cv_func_frexp_in_libm+set}" = set; then :
10751 $as_echo_n "(cached) " >&6
10752else
10753
10754 save_LIBS="$LIBS"
10755 LIBS="$LIBS -lm"
10756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10757/* end confdefs.h. */
10758#include <math.h>
10759 double x;
10760int
10761main ()
10762{
10763int e; return frexp (x, &e) > 0;
10764 ;
10765 return 0;
10766}
10767_ACEOF
10768if ac_fn_c_try_link "$LINENO"; then :
10769 gl_cv_func_frexp_in_libm=yes
10770else
10771 gl_cv_func_frexp_in_libm=no
10772fi
10773rm -f core conftest.err conftest.$ac_objext \
10774 conftest$ac_exeext conftest.$ac_ext
10775 LIBS="$save_LIBS"
10776
10777fi
10778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_in_libm" >&5
10779$as_echo "$gl_cv_func_frexp_in_libm" >&6; }
10780 if test $gl_cv_func_frexp_in_libm = yes; then
10781 FREXP_LIBM=-lm
10782 fi
10783 fi
10784 if test $gl_cv_func_frexp_no_libm = yes \
10785 || test $gl_cv_func_frexp_in_libm = yes; then
10786 save_LIBS="$LIBS"
10787 LIBS="$LIBS $FREXP_LIBM"
10788
10789
10790
88b48903
WN
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
10792$as_echo_n "checking whether frexp works... " >&6; }
10793if test "${gl_cv_func_frexp_works+set}" = set; then :
10794 $as_echo_n "(cached) " >&6
10795else
10796
10797 if test "$cross_compiling" = yes; then :
10798 case "$host_os" in
10799 netbsd* | irix* | mingw*) gl_cv_func_frexp_works="guessing no";;
10800 *) gl_cv_func_frexp_works="guessing yes";;
10801 esac
10802
10803else
10804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10805/* end confdefs.h. */
10806
10807#include <float.h>
10808#include <math.h>
10809#include <string.h>
10810#if HAVE_ALARM
10811# include <unistd.h>
10812#endif
10813/* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
10814 ICC 10.0 has a bug when optimizing the expression -zero.
10815 The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
10816 to PowerPC on Mac OS X 10.5. */
10817#if defined __hpux || defined __sgi || defined __ICC
10818static double
10819compute_minus_zero (void)
10820{
10821 return -DBL_MIN * DBL_MIN;
10822}
10823# define minus_zero compute_minus_zero ()
10824#else
10825double minus_zero = -0.0;
10826#endif
10827int main()
10828{
10829 int result = 0;
10830 int i;
10831 volatile double x;
10832 double zero = 0.0;
10833#if HAVE_ALARM
10834 /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
10835 number. Let the test fail in this case. */
10836 alarm (5);
10837#endif
10838 /* Test on denormalized numbers. */
10839 for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
10840 ;
10841 if (x > 0.0)
10842 {
10843 int exp;
10844 double y = frexp (x, &exp);
10845 /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
10846 On NetBSD: y = 0.75. Correct: y = 0.5. */
10847 if (y != 0.5)
10848 result |= 1;
10849 }
10850 /* Test on infinite numbers. */
10851 x = 1.0 / zero;
10852 {
10853 int exp;
10854 double y = frexp (x, &exp);
10855 if (y != x)
10856 result |= 2;
10857 }
10858 /* Test on negative zero. */
10859 x = minus_zero;
10860 {
10861 int exp;
10862 double y = frexp (x, &exp);
10863 if (memcmp (&y, &x, sizeof x))
10864 result |= 4;
10865 }
10866 return result;
10867}
10868_ACEOF
10869if ac_fn_c_try_run "$LINENO"; then :
10870 gl_cv_func_frexp_works=yes
10871else
10872 gl_cv_func_frexp_works=no
10873fi
10874rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10875 conftest.$ac_objext conftest.beam conftest.$ac_ext
10876fi
10877
10878
10879fi
10880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
10881$as_echo "$gl_cv_func_frexp_works" >&6; }
10882
10883 LIBS="$save_LIBS"
10884 case "$gl_cv_func_frexp_works" in
10885 *yes) gl_func_frexp=yes ;;
10886 *) gl_func_frexp=no; REPLACE_FREXP=1; FREXP_LIBM= ;;
10887 esac
10888 else
10889 gl_func_frexp=no
10890 fi
10891 if test $gl_func_frexp = yes; then
10892
10893$as_echo "#define HAVE_FREXP 1" >>confdefs.h
10894
10895 fi
10896
10897
10898 if test $gl_func_frexp != yes; then
10899
10900
10901
10902
10903
10904
10905
10906
10907 gl_LIBOBJS="$gl_LIBOBJS frexp.$ac_objext"
10908
10909 fi
10910
10911
10912
10913
10914
10915 GNULIB_FREXP=1
10916
10917
10918
10919
10920
10921$as_echo "#define GNULIB_TEST_FREXP 1" >>confdefs.h
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931 ac_fn_c_check_decl "$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
10932"
10933if test "x$ac_cv_have_decl_frexpl" = x""yes; then :
10934
10935else
10936 HAVE_DECL_FREXPL=0
10937fi
10938
10939
10940 FREXPL_LIBM=
10941 if test $HAVE_DECL_FREXPL = 1; then
10942
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
10944$as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
10945if test "${gl_cv_func_frexpl_no_libm+set}" = set; then :
10946 $as_echo_n "(cached) " >&6
10947else
10948
10949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10950/* end confdefs.h. */
10951#include <math.h>
10952 long double x;
10953int
10954main ()
10955{
10956int e; return frexpl (x, &e) > 0;
10957 ;
10958 return 0;
10959}
10960_ACEOF
10961if ac_fn_c_try_link "$LINENO"; then :
10962 gl_cv_func_frexpl_no_libm=yes
10963else
10964 gl_cv_func_frexpl_no_libm=no
10965fi
10966rm -f core conftest.err conftest.$ac_objext \
10967 conftest$ac_exeext conftest.$ac_ext
10968
10969fi
10970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
10971$as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
10972
10973 if test $gl_cv_func_frexpl_no_libm = no; then
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used with libm" >&5
10975$as_echo_n "checking whether frexpl() can be used with libm... " >&6; }
10976if test "${gl_cv_func_frexpl_in_libm+set}" = set; then :
10977 $as_echo_n "(cached) " >&6
10978else
10979
10980 save_LIBS="$LIBS"
10981 LIBS="$LIBS -lm"
10982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10983/* end confdefs.h. */
10984#include <math.h>
10985 long double x;
10986int
10987main ()
10988{
10989int e; return frexpl (x, &e) > 0;
10990 ;
10991 return 0;
10992}
10993_ACEOF
10994if ac_fn_c_try_link "$LINENO"; then :
10995 gl_cv_func_frexpl_in_libm=yes
10996else
10997 gl_cv_func_frexpl_in_libm=no
10998fi
10999rm -f core conftest.err conftest.$ac_objext \
11000 conftest$ac_exeext conftest.$ac_ext
11001 LIBS="$save_LIBS"
11002
11003fi
11004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_in_libm" >&5
11005$as_echo "$gl_cv_func_frexpl_in_libm" >&6; }
11006 if test $gl_cv_func_frexpl_in_libm = yes; then
11007 FREXPL_LIBM=-lm
11008 fi
11009 fi
11010 if test $gl_cv_func_frexpl_no_libm = yes \
11011 || test $gl_cv_func_frexpl_in_libm = yes; then
11012 save_LIBS="$LIBS"
11013 LIBS="$LIBS $FREXPL_LIBM"
11014
11015
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
11017$as_echo_n "checking whether frexpl works... " >&6; }
11018if test "${gl_cv_func_frexpl_works+set}" = set; then :
11019 $as_echo_n "(cached) " >&6
11020else
11021
11022 if test "$cross_compiling" = yes; then :
11023
11024 case "$host_os" in
11025 aix | aix[3-6]* | beos* | darwin* | irix* | mingw* | pw*)
11026 gl_cv_func_frexpl_works="guessing no";;
11027 *) gl_cv_func_frexpl_works="guessing yes";;
11028 esac
11029
11030else
11031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11032/* end confdefs.h. */
11033
11034#include <float.h>
11035#include <math.h>
11036/* Override the values of <float.h>, like done in float.in.h. */
11037#if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
11038# undef LDBL_MIN_EXP
11039# define LDBL_MIN_EXP (-16381)
11040#endif
11041#if defined __i386__ && defined __FreeBSD__
11042# undef LDBL_MIN_EXP
11043# define LDBL_MIN_EXP (-16381)
11044#endif
11045#if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
11046# undef LDBL_MIN_EXP
11047# define LDBL_MIN_EXP DBL_MIN_EXP
11048#endif
11049#if defined __sgi && (LDBL_MANT_DIG >= 106)
11050# if defined __GNUC__
11051# undef LDBL_MIN_EXP
11052# define LDBL_MIN_EXP DBL_MIN_EXP
11053# endif
11054#endif
11055extern
11056#ifdef __cplusplus
11057"C"
11058#endif
11059long double frexpl (long double, int *);
11060int main()
11061{
11062 int result = 0;
11063 volatile long double x;
11064 /* Test on finite numbers that fails on AIX 5.1. */
11065 x = 16.0L;
11066 {
11067 int exp = -9999;
11068 frexpl (x, &exp);
11069 if (exp != 5)
11070 result |= 1;
11071 }
11072 /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
11073 function returns an invalid (incorrectly normalized) value: it returns
11074 y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
11075 but the correct result is
11076 0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 } */
11077 x = 1.01L;
11078 {
11079 int exp = -9999;
11080 long double y = frexpl (x, &exp);
11081 if (!(exp == 1 && y == 0.505L))
11082 result |= 2;
11083 }
11084 /* Test on large finite numbers. This fails on BeOS at i = 16322, while
11085 LDBL_MAX_EXP = 16384.
11086 In the loop end test, we test x against Infinity, rather than comparing
11087 i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP. */
11088 {
11089 int i;
11090 for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
11091 {
11092 int exp = -9999;
11093 frexpl (x, &exp);
11094 if (exp != i)
11095 {
11096 result |= 4;
11097 break;
11098 }
11099 }
11100 }
11101 /* Test on denormalized numbers. */
11102 {
11103 int i;
11104 for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
11105 ;
11106 if (x > 0.0L)
11107 {
11108 int exp;
11109 long double y = frexpl (x, &exp);
11110 /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
11111 exp = -16382, y = 0.5. On Mac OS X 10.5: exp = -16384, y = 0.5. */
11112 if (exp != LDBL_MIN_EXP - 1)
11113 result |= 8;
11114 }
11115 }
11116 /* Test on infinite numbers. */
11117 x = 1.0L / 0.0L;
11118 {
11119 int exp;
11120 long double y = frexpl (x, &exp);
11121 if (y != x)
11122 result |= 16;
11123 }
11124 return result;
11125}
11126_ACEOF
11127if ac_fn_c_try_run "$LINENO"; then :
11128 gl_cv_func_frexpl_works=yes
11129else
11130 gl_cv_func_frexpl_works=no
11131fi
11132rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11133 conftest.$ac_objext conftest.beam conftest.$ac_ext
11134fi
11135
11136
11137fi
11138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
11139$as_echo "$gl_cv_func_frexpl_works" >&6; }
11140
11141 LIBS="$save_LIBS"
11142 case "$gl_cv_func_frexpl_works" in
11143 *yes) gl_func_frexpl=yes ;;
11144 *) gl_func_frexpl=no; REPLACE_FREXPL=1 ;;
11145 esac
11146 else
11147 gl_func_frexpl=no
11148 fi
11149 if test $gl_func_frexpl = yes; then
11150
11151$as_echo "#define HAVE_FREXPL 1" >>confdefs.h
11152
11153 fi
11154 fi
11155 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
11156 if test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1; then
11157
11158 FREXPL_LIBM="$FREXP_LIBM"
11159 else
11160 FREXPL_LIBM=
11161 fi
11162 fi
11163
11164
11165 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
11166
11167
11168
11169
11170
11171
11172
11173
11174 gl_LIBOBJS="$gl_LIBOBJS frexpl.$ac_objext"
11175
11176 fi
11177
11178
11179
11180
11181
11182 GNULIB_FREXPL=1
11183
11184
11185
11186
11187
11188$as_echo "#define GNULIB_TEST_FREXPL 1" >>confdefs.h
11189
11190
11191
11192
11193
11194
11195
11196
11197 PRIPTR_PREFIX=
11198 if test -n "$STDINT_H"; then
11199 PRIPTR_PREFIX='"l"'
11200 else
11201 for glpfx in '' l ll I64; do
11202 case $glpfx in
11203 '') gltype1='int';;
11204 l) gltype1='long int';;
11205 ll) gltype1='long long int';;
11206 I64) gltype1='__int64';;
11207 esac
11208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11209/* end confdefs.h. */
11210#include <stdint.h>
11211 extern intptr_t foo;
11212 extern $gltype1 foo;
11213int
11214main ()
11215{
11216
11217 ;
11218 return 0;
11219}
11220_ACEOF
11221if ac_fn_c_try_compile "$LINENO"; then :
11222 PRIPTR_PREFIX='"'$glpfx'"'
11223fi
11224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11225 test -n "$PRIPTR_PREFIX" && break
11226 done
11227 fi
11228
11229
11230
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
11232$as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
11233if test "${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+set}" = set; then :
11234 $as_echo_n "(cached) " >&6
11235else
11236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11237/* end confdefs.h. */
11238/* Work also in C++ mode. */
11239 #define __STDC_LIMIT_MACROS 1
11240
11241 /* Work if build is not clean. */
11242 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
11243
11244 #include <limits.h>
11245 #if HAVE_STDINT_H
11246 #include <stdint.h>
11247 #endif
11248
11249 #if defined INT32_MAX && defined INTMAX_MAX
11250 #define CONDITION (INT32_MAX < INTMAX_MAX)
11251 #elif HAVE_LONG_LONG_INT
11252 #define CONDITION (sizeof (int) < sizeof (long long int))
11253 #else
11254 #define CONDITION 0
11255 #endif
11256 int test[CONDITION ? 1 : -1];
11257int
11258main ()
11259{
11260
11261 ;
11262 return 0;
11263}
11264_ACEOF
11265if ac_fn_c_try_compile "$LINENO"; then :
11266 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
11267else
11268 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
11269fi
11270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11271fi
11272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
11273$as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
11274 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
11275 INT32_MAX_LT_INTMAX_MAX=1;
11276 else
11277 INT32_MAX_LT_INTMAX_MAX=0;
11278 fi
11279
11280
11281 if test $APPLE_UNIVERSAL_BUILD = 0; then
11282
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
11284$as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
11285if test "${gl_cv_test_INT64_MAX_EQ_LONG_MAX+set}" = set; then :
11286 $as_echo_n "(cached) " >&6
11287else
11288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11289/* end confdefs.h. */
11290/* Work also in C++ mode. */
11291 #define __STDC_LIMIT_MACROS 1
11292
11293 /* Work if build is not clean. */
11294 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
11295
11296 #include <limits.h>
11297 #if HAVE_STDINT_H
11298 #include <stdint.h>
11299 #endif
11300
11301 #if defined INT64_MAX
11302 #define CONDITION (INT64_MAX == LONG_MAX)
11303 #elif HAVE_LONG_LONG_INT
11304 #define CONDITION (sizeof (long long int) == sizeof (long int))
11305 #else
11306 #define CONDITION 0
11307 #endif
11308 int test[CONDITION ? 1 : -1];
11309int
11310main ()
11311{
11312
11313 ;
11314 return 0;
11315}
11316_ACEOF
11317if ac_fn_c_try_compile "$LINENO"; then :
11318 gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
11319else
11320 gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
11321fi
11322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11323fi
11324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
11325$as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
11326 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
11327 INT64_MAX_EQ_LONG_MAX=1;
11328 else
11329 INT64_MAX_EQ_LONG_MAX=0;
11330 fi
11331
11332
11333 else
11334 INT64_MAX_EQ_LONG_MAX=-1
11335 fi
11336
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
11338$as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
11339if test "${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+set}" = set; then :
11340 $as_echo_n "(cached) " >&6
11341else
11342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11343/* end confdefs.h. */
11344/* Work also in C++ mode. */
11345 #define __STDC_LIMIT_MACROS 1
11346
11347 /* Work if build is not clean. */
11348 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
11349
11350 #include <limits.h>
11351 #if HAVE_STDINT_H
11352 #include <stdint.h>
11353 #endif
11354
11355 #if defined UINT32_MAX && defined UINTMAX_MAX
11356 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
11357 #elif HAVE_LONG_LONG_INT
11358 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
11359 #else
11360 #define CONDITION 0
11361 #endif
11362 int test[CONDITION ? 1 : -1];
11363int
11364main ()
11365{
11366
11367 ;
11368 return 0;
11369}
11370_ACEOF
11371if ac_fn_c_try_compile "$LINENO"; then :
11372 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
11373else
11374 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
11375fi
11376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11377fi
11378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
11379$as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
11380 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
11381 UINT32_MAX_LT_UINTMAX_MAX=1;
11382 else
11383 UINT32_MAX_LT_UINTMAX_MAX=0;
11384 fi
11385
11386
11387 if test $APPLE_UNIVERSAL_BUILD = 0; then
11388
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
11390$as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
11391if test "${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+set}" = set; then :
11392 $as_echo_n "(cached) " >&6
11393else
11394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11395/* end confdefs.h. */
11396/* Work also in C++ mode. */
11397 #define __STDC_LIMIT_MACROS 1
11398
11399 /* Work if build is not clean. */
11400 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
11401
11402 #include <limits.h>
11403 #if HAVE_STDINT_H
11404 #include <stdint.h>
11405 #endif
11406
11407 #if defined UINT64_MAX
11408 #define CONDITION (UINT64_MAX == ULONG_MAX)
11409 #elif HAVE_LONG_LONG_INT
11410 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
11411 #else
11412 #define CONDITION 0
11413 #endif
11414 int test[CONDITION ? 1 : -1];
11415int
11416main ()
11417{
11418
11419 ;
11420 return 0;
11421}
11422_ACEOF
11423if ac_fn_c_try_compile "$LINENO"; then :
11424 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
11425else
11426 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
11427fi
11428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11429fi
11430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
11431$as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
11432 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
11433 UINT64_MAX_EQ_ULONG_MAX=1;
11434 else
11435 UINT64_MAX_EQ_ULONG_MAX=0;
11436 fi
11437
11438
11439 else
11440 UINT64_MAX_EQ_ULONG_MAX=-1
11441 fi
11442
11443
11444
11445
11446
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
11448$as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
11449if test "${gl_cv_func_isnand_no_libm+set}" = set; then :
11450 $as_echo_n "(cached) " >&6
11451else
11452
11453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11454/* end confdefs.h. */
11455#include <math.h>
11456 #if __GNUC__ >= 4
11457 # undef isnand
11458 # define isnand(x) __builtin_isnan ((double)(x))
11459 #else
11460 # undef isnand
11461 # define isnand(x) isnan ((double)(x))
11462 #endif
11463 double x;
11464int
11465main ()
11466{
11467return isnand (x);
11468 ;
11469 return 0;
11470}
11471_ACEOF
11472if ac_fn_c_try_link "$LINENO"; then :
11473 gl_cv_func_isnand_no_libm=yes
11474else
11475 gl_cv_func_isnand_no_libm=no
11476fi
11477rm -f core conftest.err conftest.$ac_objext \
11478 conftest$ac_exeext conftest.$ac_ext
11479
11480fi
11481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
11482$as_echo "$gl_cv_func_isnand_no_libm" >&6; }
11483
11484 gl_func_isnand_no_libm=$gl_cv_func_isnand_no_libm
11485 if test $gl_cv_func_isnand_no_libm = yes; then
11486
11487$as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
11488
11489 fi
11490
11491 if test $gl_func_isnand_no_libm != yes; then
11492
11493
11494
11495
11496
11497
11498
11499
11500 gl_LIBOBJS="$gl_LIBOBJS isnand.$ac_objext"
11501
11502
11503
11504
11505 fi
11506
11507
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
11509$as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
11510if test "${gl_cv_func_isnanl_no_libm+set}" = set; then :
11511 $as_echo_n "(cached) " >&6
11512else
11513
11514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11515/* end confdefs.h. */
11516#include <math.h>
11517 #if __GNUC__ >= 4
11518 # undef isnanl
11519 # define isnanl(x) __builtin_isnanl ((long double)(x))
11520 #elif defined isnan
11521 # undef isnanl
11522 # define isnanl(x) isnan ((long double)(x))
11523 #endif
11524 long double x;
11525int
11526main ()
11527{
11528return isnanl (x);
11529 ;
11530 return 0;
11531}
11532_ACEOF
11533if ac_fn_c_try_link "$LINENO"; then :
11534 gl_cv_func_isnanl_no_libm=yes
11535else
11536 gl_cv_func_isnanl_no_libm=no
11537fi
11538rm -f core conftest.err conftest.$ac_objext \
11539 conftest$ac_exeext conftest.$ac_ext
11540
11541fi
11542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
11543$as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
11544
11545 gl_func_isnanl_no_libm=$gl_cv_func_isnanl_no_libm
11546 if test $gl_func_isnanl_no_libm = yes; then
11547
11548
11549
11550
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
11552$as_echo_n "checking whether isnanl works... " >&6; }
11553if test "${gl_cv_func_isnanl_works+set}" = set; then :
11554 $as_echo_n "(cached) " >&6
11555else
11556
11557 if test "$cross_compiling" = yes; then :
11558 case "$host_cpu" in
11559 # Guess no on ia64, x86_64, i386.
11560 ia64 | x86_64 | i*86) gl_cv_func_isnanl_works="guessing no";;
11561 *)
11562 case "$host_os" in
11563 netbsd*) gl_cv_func_isnanl_works="guessing no";;
11564 *) gl_cv_func_isnanl_works="guessing yes";;
11565 esac
11566 ;;
11567 esac
11568
11569else
11570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11571/* end confdefs.h. */
11572
11573#include <float.h>
11574#include <limits.h>
11575#include <math.h>
11576#if __GNUC__ >= 4
11577# undef isnanl
11578# define isnanl(x) __builtin_isnanl ((long double)(x))
11579#elif defined isnan
11580# undef isnanl
11581# define isnanl(x) isnan ((long double)(x))
11582#endif
11583#define NWORDS \
11584 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
11585typedef union { unsigned int word[NWORDS]; long double value; }
11586 memory_long_double;
11587/* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
11588 runtime type conversion. */
11589#ifdef __sgi
11590static long double NaNl ()
11591{
11592 double zero = 0.0;
11593 return zero / zero;
11594}
11595#else
11596# define NaNl() (0.0L / 0.0L)
11597#endif
11598int main ()
11599{
11600 int result = 0;
11601
11602 if (!isnanl (NaNl ()))
11603 result |= 1;
11604
11605 {
11606 memory_long_double m;
11607 unsigned int i;
11608
11609 /* The isnanl function should be immune against changes in the sign bit and
11610 in the mantissa bits. The xor operation twiddles a bit that can only be
11611 a sign bit or a mantissa bit (since the exponent never extends to
11612 bit 31). */
11613 m.value = NaNl ();
11614 m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
11615 for (i = 0; i < NWORDS; i++)
11616 m.word[i] |= 1;
11617 if (!isnanl (m.value))
11618 result |= 1;
11619 }
11620
11621#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
11622/* Representation of an 80-bit 'long double' as an initializer for a sequence
11623 of 'unsigned int' words. */
11624# ifdef WORDS_BIGENDIAN
11625# define LDBL80_WORDS(exponent,manthi,mantlo) \
11626 { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
11627 ((unsigned int) (manthi) << 16) | (unsigned int) (mantlo) >> 16), \
11628 (unsigned int) (mantlo) << 16 \
11629 }
11630# else
11631# define LDBL80_WORDS(exponent,manthi,mantlo) \
11632 { mantlo, manthi, exponent }
11633# endif
11634 { /* Quiet NaN. */
11635 static memory_long_double x =
11636 { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
11637 if (!isnanl (x.value))
11638 result |= 2;
11639 }
11640 {
11641 /* Signalling NaN. */
11642 static memory_long_double x =
11643 { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
11644 if (!isnanl (x.value))
11645 result |= 2;
11646 }
11647 /* The isnanl function should recognize Pseudo-NaNs, Pseudo-Infinities,
11648 Pseudo-Zeroes, Unnormalized Numbers, and Pseudo-Denormals, as defined in
11649 Intel IA-64 Architecture Software Developer's Manual, Volume 1:
11650 Application Architecture.
11651 Table 5-2 "Floating-Point Register Encodings"
11652 Figure 5-6 "Memory to Floating-Point Register Data Translation"
11653 */
11654 { /* Pseudo-NaN. */
11655 static memory_long_double x =
11656 { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
11657 if (!isnanl (x.value))
11658 result |= 4;
11659 }
11660 { /* Pseudo-Infinity. */
11661 static memory_long_double x =
11662 { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
11663 if (!isnanl (x.value))
11664 result |= 8;
11665 }
11666 { /* Pseudo-Zero. */
11667 static memory_long_double x =
11668 { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
11669 if (!isnanl (x.value))
11670 result |= 16;
11671 }
11672 { /* Unnormalized number. */
11673 static memory_long_double x =
11674 { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
11675 if (!isnanl (x.value))
11676 result |= 32;
11677 }
11678 { /* Pseudo-Denormal. */
11679 static memory_long_double x =
11680 { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
11681 if (!isnanl (x.value))
11682 result |= 64;
11683 }
11684#endif
11685
11686 return result;
11687}
11688_ACEOF
11689if ac_fn_c_try_run "$LINENO"; then :
11690 gl_cv_func_isnanl_works=yes
11691else
11692 gl_cv_func_isnanl_works=no
11693fi
11694rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11695 conftest.$ac_objext conftest.beam conftest.$ac_ext
11696fi
11697
11698
11699fi
11700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
11701$as_echo "$gl_cv_func_isnanl_works" >&6; }
11702
11703 case "$gl_cv_func_isnanl_works" in
11704 *yes) ;;
11705 *) gl_func_isnanl_no_libm=no ;;
11706 esac
11707 fi
11708 if test $gl_func_isnanl_no_libm = yes; then
11709
11710$as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
11711
11712 fi
11713
11714 if test $gl_func_isnanl_no_libm != yes; then
11715
11716
11717
11718
11719
11720
11721
11722
11723 gl_LIBOBJS="$gl_LIBOBJS isnanl.$ac_objext"
11724
11725
11726
11727
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
11729$as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
11730if test "${gl_cv_cc_long_double_expbit0+set}" = set; then :
11731 $as_echo_n "(cached) " >&6
11732else
11733
11734 if test "$cross_compiling" = yes; then :
11735
11736 gl_cv_cc_long_double_expbit0="unknown"
11737
11738else
11739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11740/* end confdefs.h. */
11741
11742#include <float.h>
11743#include <stddef.h>
11744#include <stdio.h>
11745#include <string.h>
11746#define NWORDS \
11747 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
11748typedef union { long double value; unsigned int word[NWORDS]; }
11749 memory_long_double;
11750static unsigned int ored_words[NWORDS];
11751static unsigned int anded_words[NWORDS];
11752static void add_to_ored_words (long double x)
11753{
11754 memory_long_double m;
11755 size_t i;
11756 /* Clear it first, in case
11757 sizeof (long double) < sizeof (memory_long_double). */
11758 memset (&m, 0, sizeof (memory_long_double));
11759 m.value = x;
11760 for (i = 0; i < NWORDS; i++)
11761 {
11762 ored_words[i] |= m.word[i];
11763 anded_words[i] &= m.word[i];
11764 }
11765}
11766int main ()
11767{
11768 size_t j;
11769 FILE *fp = fopen ("conftest.out", "w");
11770 if (fp == NULL)
11771 return 1;
11772 for (j = 0; j < NWORDS; j++)
11773 anded_words[j] = ~ (unsigned int) 0;
11774 add_to_ored_words (0.25L);
11775 add_to_ored_words (0.5L);
11776 add_to_ored_words (1.0L);
11777 add_to_ored_words (2.0L);
11778 add_to_ored_words (4.0L);
11779 /* Remove bits that are common (e.g. if representation of the first mantissa
11780 bit is explicit). */
11781 for (j = 0; j < NWORDS; j++)
11782 ored_words[j] &= ~anded_words[j];
11783 /* Now find the nonzero word. */
11784 for (j = 0; j < NWORDS; j++)
11785 if (ored_words[j] != 0)
11786 break;
11787 if (j < NWORDS)
11788 {
11789 size_t i;
11790 for (i = j + 1; i < NWORDS; i++)
11791 if (ored_words[i] != 0)
11792 {
11793 fprintf (fp, "unknown");
11794 return (fclose (fp) != 0);
11795 }
11796 for (i = 0; ; i++)
11797 if ((ored_words[j] >> i) & 1)
11798 {
11799 fprintf (fp, "word %d bit %d", (int) j, (int) i);
11800 return (fclose (fp) != 0);
11801 }
11802 }
11803 fprintf (fp, "unknown");
11804 return (fclose (fp) != 0);
11805}
11806
11807_ACEOF
11808if ac_fn_c_try_run "$LINENO"; then :
11809 gl_cv_cc_long_double_expbit0=`cat conftest.out`
11810else
11811 gl_cv_cc_long_double_expbit0="unknown"
11812fi
11813rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11814 conftest.$ac_objext conftest.beam conftest.$ac_ext
11815fi
11816
11817 rm -f conftest.out
11818
11819fi
11820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
11821$as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
11822 case "$gl_cv_cc_long_double_expbit0" in
11823 word*bit*)
11824 word=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
11825 bit=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
11826
11827cat >>confdefs.h <<_ACEOF
11828#define LDBL_EXPBIT0_WORD $word
11829_ACEOF
11830
11831
11832cat >>confdefs.h <<_ACEOF
11833#define LDBL_EXPBIT0_BIT $bit
11834_ACEOF
11835
11836 ;;
11837 esac
11838
11839
11840
11841 fi
11842
11843
11844
11845
88b48903
WN
11846
11847
11848
11849
11850 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
11851
11852
11853
11854
11855
11856
11857
11858
11859
88b48903 11860
c971b7fa 11861
c971b7fa 11862
88b48903
WN
11863 if test $gl_cv_have_include_next = yes; then
11864 gl_cv_next_math_h='<'math.h'>'
11865 else
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
11867$as_echo_n "checking absolute name of <math.h>... " >&6; }
11868if test "${gl_cv_next_math_h+set}" = set; then :
11869 $as_echo_n "(cached) " >&6
11870else
c971b7fa 11871
88b48903 11872 if test $ac_cv_header_math_h = yes; then
c971b7fa
PA
11873
11874
88b48903 11875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690e634 11876/* end confdefs.h. */
88b48903 11877#include <math.h>
8690e634 11878
8690e634 11879_ACEOF
88b48903
WN
11880 case "$host_os" in
11881 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11882 *) gl_absname_cpp="$ac_cpp" ;;
11883 esac
8690e634 11884
88b48903
WN
11885 case "$host_os" in
11886 mingw*)
11887 gl_dirsep_regex='[/\\]'
11888 ;;
11889 *)
11890 gl_dirsep_regex='\/'
11891 ;;
11892 esac
11893 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
8690e634 11894
88b48903
WN
11895 gl_header_literal_regex=`echo 'math.h' \
11896 | sed -e "$gl_make_literal_regex_sed"`
11897 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11898 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11899 s|^/[^/]|//&|
11900 p
11901 q
11902 }'
11903 gl_cv_next_math_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11904 sed -n "$gl_absolute_header_sed"`'"'
11905 else
11906 gl_cv_next_math_h='<'math.h'>'
11907 fi
8690e634 11908
c971b7fa 11909
88b48903
WN
11910fi
11911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
11912$as_echo "$gl_cv_next_math_h" >&6; }
11913 fi
11914 NEXT_MATH_H=$gl_cv_next_math_h
c971b7fa 11915
88b48903
WN
11916 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11917 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11918 gl_next_as_first_directive='<'math.h'>'
11919 else
11920 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11921 gl_next_as_first_directive=$gl_cv_next_math_h
11922 fi
11923 NEXT_AS_FIRST_DIRECTIVE_MATH_H=$gl_next_as_first_directive
8690e634 11924
c971b7fa 11925
c971b7fa
PA
11926
11927
c971b7fa 11928
88b48903
WN
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
11930$as_echo_n "checking whether NAN macro works... " >&6; }
11931if test "${gl_cv_header_math_nan_works+set}" = set; then :
c971b7fa
PA
11932 $as_echo_n "(cached) " >&6
11933else
8690e634
JK
11934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11935/* end confdefs.h. */
88b48903 11936#include <math.h>
c971b7fa
PA
11937int
11938main ()
11939{
88b48903
WN
11940/* Solaris 10 has a broken definition of NAN. Other platforms
11941 fail to provide NAN, or provide it only in C99 mode; this
11942 test only needs to fail when NAN is provided but wrong. */
11943 float f = 1.0f;
11944#ifdef NAN
11945 f = NAN;
11946#endif
11947 return f == 0;
c971b7fa
PA
11948 ;
11949 return 0;
11950}
11951_ACEOF
11952if ac_fn_c_try_compile "$LINENO"; then :
88b48903 11953 gl_cv_header_math_nan_works=yes
8690e634 11954else
88b48903 11955 gl_cv_header_math_nan_works=no
c971b7fa
PA
11956fi
11957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c971b7fa 11958fi
88b48903
WN
11959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
11960$as_echo "$gl_cv_header_math_nan_works" >&6; }
11961 if test $gl_cv_header_math_nan_works = no; then
11962 REPLACE_NAN=1
c971b7fa 11963 fi
88b48903
WN
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
11965$as_echo_n "checking whether HUGE_VAL works... " >&6; }
11966if test "${gl_cv_header_math_huge_val_works+set}" = set; then :
c971b7fa
PA
11967 $as_echo_n "(cached) " >&6
11968else
8690e634 11969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa 11970/* end confdefs.h. */
88b48903 11971#include <math.h>
c971b7fa
PA
11972int
11973main ()
11974{
88b48903
WN
11975/* Solaris 10 has a broken definition of HUGE_VAL. */
11976 double d = HUGE_VAL;
11977 return d == 0;
c971b7fa
PA
11978 ;
11979 return 0;
11980}
11981_ACEOF
11982if ac_fn_c_try_compile "$LINENO"; then :
88b48903 11983 gl_cv_header_math_huge_val_works=yes
8690e634 11984else
88b48903 11985 gl_cv_header_math_huge_val_works=no
c971b7fa
PA
11986fi
11987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c971b7fa 11988fi
88b48903
WN
11989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
11990$as_echo "$gl_cv_header_math_huge_val_works" >&6; }
11991 if test $gl_cv_header_math_huge_val_works = no; then
11992 REPLACE_HUGE_VAL=1
8690e634 11993 fi
c971b7fa 11994
c971b7fa 11995
88b48903
WN
11996 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
11997 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
11999$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
12000if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
8690e634
JK
12001 $as_echo_n "(cached) " >&6
12002else
12003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12004/* end confdefs.h. */
88b48903 12005#include <math.h>
8690e634
JK
12006int
12007main ()
12008{
88b48903
WN
12009#undef $gl_func
12010 (void) $gl_func;
8690e634
JK
12011 ;
12012 return 0;
12013}
12014_ACEOF
12015if ac_fn_c_try_compile "$LINENO"; then :
88b48903 12016 eval "$as_gl_Symbol=yes"
c971b7fa 12017else
88b48903 12018 eval "$as_gl_Symbol=no"
c971b7fa 12019fi
8690e634
JK
12020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12021fi
88b48903
WN
12022eval ac_res=\$$as_gl_Symbol
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12024$as_echo "$ac_res" >&6; }
12025 eval as_val=\$$as_gl_Symbol
12026 if test "x$as_val" = x""yes; then :
12027 cat >>confdefs.h <<_ACEOF
12028#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
12029_ACEOF
c971b7fa 12030
88b48903
WN
12031 eval ac_cv_have_decl_$gl_func=yes
12032fi
12033 done
c971b7fa
PA
12034
12035
12036
12037
12038
c971b7fa 12039
c971b7fa 12040
c971b7fa 12041
c971b7fa
PA
12042
12043
c971b7fa 12044
8690e634
JK
12045
12046 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
12047
12048
12049
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
12051$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
12052if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
c971b7fa
PA
12053 $as_echo_n "(cached) " >&6
12054else
8690e634
JK
12055
12056 case "$host_os" in
12057 # Guess no on AIX and OSF/1.
12058 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
12059 # Guess yes otherwise.
12060 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
12061 esac
12062 if test $LOCALE_JA != none; then
12063 if test "$cross_compiling" = yes; then :
12064 :
12065else
c971b7fa
PA
12066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12067/* end confdefs.h. */
c971b7fa 12068
8690e634
JK
12069#include <locale.h>
12070#include <string.h>
12071/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12072 <wchar.h>.
12073 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12074 included before <wchar.h>. */
12075#include <stddef.h>
12076#include <stdio.h>
12077#include <time.h>
12078#include <wchar.h>
12079int main ()
c971b7fa 12080{
8690e634
JK
12081 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
12082 {
12083 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
12084 mbstate_t state;
12085 wchar_t wc;
12086
12087 memset (&state, '\0', sizeof (mbstate_t));
12088 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
12089 if (mbsinit (&state))
12090 return 1;
12091 }
c971b7fa
PA
12092 return 0;
12093}
12094_ACEOF
8690e634
JK
12095if ac_fn_c_try_run "$LINENO"; then :
12096 gl_cv_func_mbrtowc_incomplete_state=yes
c971b7fa 12097else
8690e634 12098 gl_cv_func_mbrtowc_incomplete_state=no
c971b7fa 12099fi
8690e634
JK
12100rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12101 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 12102fi
c971b7fa 12103
8690e634 12104 fi
c971b7fa 12105
8690e634
JK
12106fi
12107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
12108$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
c971b7fa 12109
c971b7fa 12110
c971b7fa 12111
c971b7fa 12112
8690e634
JK
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
12114$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
12115if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
c971b7fa
PA
12116 $as_echo_n "(cached) " >&6
12117else
12118
8690e634
JK
12119 case "$host_os" in
12120 # Guess no on Solaris 8.
12121 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
12122 # Guess yes otherwise.
12123 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
12124 esac
12125 if test $LOCALE_ZH_CN != none; then
12126 if test "$cross_compiling" = yes; then :
12127 :
12128else
12129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa
PA
12130/* end confdefs.h. */
12131
8690e634
JK
12132#include <locale.h>
12133#include <stdlib.h>
12134#include <string.h>
12135/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12136 <wchar.h>.
12137 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12138 included before <wchar.h>. */
12139#include <stddef.h>
12140#include <stdio.h>
12141#include <time.h>
12142#include <wchar.h>
12143int main ()
c971b7fa 12144{
8690e634
JK
12145 /* This fails on Solaris 8:
12146 mbrtowc returns 2, and sets wc to 0x00F0.
12147 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
12148 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
12149 {
12150 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
12151 mbstate_t state;
12152 wchar_t wc;
12153
12154 memset (&state, '\0', sizeof (mbstate_t));
12155 if (mbrtowc (&wc, input + 3, 6, &state) != 4
12156 && mbtowc (&wc, input + 3, 6) == 4)
12157 return 1;
12158 }
c971b7fa
PA
12159 return 0;
12160}
12161_ACEOF
8690e634
JK
12162if ac_fn_c_try_run "$LINENO"; then :
12163 gl_cv_func_mbrtowc_sanitycheck=yes
c971b7fa 12164else
8690e634 12165 gl_cv_func_mbrtowc_sanitycheck=no
c971b7fa 12166fi
8690e634
JK
12167rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12168 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 12169fi
c971b7fa 12170
8690e634 12171 fi
c971b7fa 12172
8690e634
JK
12173fi
12174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
12175$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
12176
12177 REPLACE_MBSTATE_T=0
12178 case "$gl_cv_func_mbrtowc_incomplete_state" in
12179 *yes) ;;
12180 *) REPLACE_MBSTATE_T=1 ;;
12181 esac
12182 case "$gl_cv_func_mbrtowc_sanitycheck" in
12183 *yes) ;;
12184 *) REPLACE_MBSTATE_T=1 ;;
12185 esac
c971b7fa 12186 else
8690e634 12187 REPLACE_MBSTATE_T=1
c971b7fa
PA
12188 fi
12189
12190
12191
8690e634
JK
12192 if test $ac_cv_func_mbrtowc = no; then
12193 HAVE_MBRTOWC=0
12194 ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
12195/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12196 <wchar.h>.
12197 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12198 included before <wchar.h>. */
12199#include <stddef.h>
12200#include <stdio.h>
12201#include <time.h>
12202#include <wchar.h>
c971b7fa 12203
8690e634
JK
12204"
12205if test "x$ac_cv_have_decl_mbrtowc" = x""yes; then :
12206 ac_have_decl=1
12207else
12208 ac_have_decl=0
c971b7fa 12209fi
c971b7fa 12210
8690e634
JK
12211cat >>confdefs.h <<_ACEOF
12212#define HAVE_DECL_MBRTOWC $ac_have_decl
12213_ACEOF
c971b7fa 12214
8690e634
JK
12215 if test $ac_cv_have_decl_mbrtowc = yes; then
12216 REPLACE_MBRTOWC=1
12217 fi
12218 else
12219 if test $REPLACE_MBSTATE_T = 1; then
12220 REPLACE_MBRTOWC=1
12221 else
c971b7fa
PA
12222
12223
12224
8690e634
JK
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
12226$as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
12227if test "${gl_cv_func_mbrtowc_null_arg1+set}" = set; then :
12228 $as_echo_n "(cached) " >&6
c971b7fa 12229else
c971b7fa 12230
8690e634
JK
12231 case "$host_os" in
12232 # Guess no on Solaris.
12233 solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
12234 # Guess yes otherwise.
12235 *) gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
12236 esac
12237 if test $LOCALE_FR_UTF8 != none; then
12238 if test "$cross_compiling" = yes; then :
12239 :
12240else
12241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa
PA
12242/* end confdefs.h. */
12243
8690e634
JK
12244#include <locale.h>
12245#include <stdlib.h>
12246#include <string.h>
12247/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12248 <wchar.h>.
12249 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12250 included before <wchar.h>. */
12251#include <stddef.h>
12252#include <stdio.h>
12253#include <time.h>
12254#include <wchar.h>
12255int main ()
12256{
12257 int result = 0;
12258
12259 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
12260 {
12261 char input[] = "\303\237er";
12262 mbstate_t state;
12263 wchar_t wc;
12264 size_t ret;
12265
12266 memset (&state, '\0', sizeof (mbstate_t));
12267 wc = (wchar_t) 0xBADFACE;
12268 ret = mbrtowc (&wc, input, 5, &state);
12269 if (ret != 2)
12270 result |= 1;
12271 if (!mbsinit (&state))
12272 result |= 2;
c971b7fa 12273
8690e634
JK
12274 memset (&state, '\0', sizeof (mbstate_t));
12275 ret = mbrtowc (NULL, input, 5, &state);
12276 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
12277 result |= 4;
12278 if (!mbsinit (&state))
12279 result |= 8;
12280 }
12281 return result;
12282}
c971b7fa 12283_ACEOF
8690e634
JK
12284if ac_fn_c_try_run "$LINENO"; then :
12285 gl_cv_func_mbrtowc_null_arg1=yes
12286else
12287 gl_cv_func_mbrtowc_null_arg1=no
12288fi
12289rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12290 conftest.$ac_objext conftest.beam conftest.$ac_ext
12291fi
c971b7fa 12292
8690e634 12293 fi
c971b7fa 12294
c971b7fa 12295fi
8690e634
JK
12296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
12297$as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
c971b7fa 12298
c971b7fa 12299
c971b7fa 12300
c971b7fa 12301
8690e634
JK
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
12303$as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
12304if test "${gl_cv_func_mbrtowc_null_arg2+set}" = set; then :
12305 $as_echo_n "(cached) " >&6
12306else
c971b7fa 12307
8690e634
JK
12308 case "$host_os" in
12309 # Guess no on OSF/1.
12310 osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
12311 # Guess yes otherwise.
12312 *) gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
12313 esac
12314 if test $LOCALE_FR_UTF8 != none; then
12315 if test "$cross_compiling" = yes; then :
c971b7fa 12316 :
8690e634
JK
12317else
12318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12319/* end confdefs.h. */
12320
12321#include <locale.h>
12322#include <string.h>
12323/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12324 <wchar.h>.
12325 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12326 included before <wchar.h>. */
12327#include <stddef.h>
12328#include <stdio.h>
12329#include <time.h>
12330#include <wchar.h>
12331int main ()
12332{
12333 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
12334 {
12335 mbstate_t state;
12336 wchar_t wc;
12337 int ret;
12338
12339 memset (&state, '\0', sizeof (mbstate_t));
12340 wc = (wchar_t) 0xBADFACE;
12341 mbrtowc (&wc, NULL, 5, &state);
12342 /* Check that wc was not modified. */
12343 if (wc != (wchar_t) 0xBADFACE)
12344 return 1;
12345 }
12346 return 0;
12347}
12348_ACEOF
12349if ac_fn_c_try_run "$LINENO"; then :
12350 gl_cv_func_mbrtowc_null_arg2=yes
12351else
12352 gl_cv_func_mbrtowc_null_arg2=no
12353fi
12354rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12355 conftest.$ac_objext conftest.beam conftest.$ac_ext
12356fi
12357
12358 fi
12359
12360fi
12361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
12362$as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
c971b7fa
PA
12363
12364
12365
12366
12367
12368
8690e634
JK
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
12370$as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
12371if test "${gl_cv_func_mbrtowc_retval+set}" = set; then :
12372 $as_echo_n "(cached) " >&6
12373else
12374
12375 case "$host_os" in
12376 # Guess no on HP-UX, Solaris, native Windows.
12377 hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
12378 # Guess yes otherwise.
12379 *) gl_cv_func_mbrtowc_retval="guessing yes" ;;
12380 esac
12381 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
12382 || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
12383 if test "$cross_compiling" = yes; then :
c971b7fa 12384 :
8690e634
JK
12385else
12386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12387/* end confdefs.h. */
c971b7fa 12388
8690e634
JK
12389#include <locale.h>
12390#include <string.h>
12391/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12392 <wchar.h>.
12393 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12394 included before <wchar.h>. */
12395#include <stddef.h>
12396#include <stdio.h>
12397#include <time.h>
12398#include <wchar.h>
12399int main ()
12400{
12401 int result = 0;
12402 int found_some_locale = 0;
12403 /* This fails on Solaris. */
12404 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
12405 {
12406 char input[] = "B\303\274\303\237er"; /* "Büßer" */
12407 mbstate_t state;
12408 wchar_t wc;
12409
12410 memset (&state, '\0', sizeof (mbstate_t));
12411 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
12412 {
12413 input[1] = '\0';
12414 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
12415 result |= 1;
12416 }
12417 found_some_locale = 1;
12418 }
12419 /* This fails on HP-UX 11.11. */
12420 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
12421 {
12422 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
12423 mbstate_t state;
12424 wchar_t wc;
12425
12426 memset (&state, '\0', sizeof (mbstate_t));
12427 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
12428 {
12429 input[1] = '\0';
12430 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
12431 result |= 2;
12432 }
12433 found_some_locale = 1;
12434 }
12435 /* This fails on native Windows. */
12436 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
12437 {
12438 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
12439 mbstate_t state;
12440 wchar_t wc;
12441
12442 memset (&state, '\0', sizeof (mbstate_t));
12443 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
12444 {
12445 input[3] = '\0';
12446 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
12447 result |= 4;
12448 }
12449 found_some_locale = 1;
12450 }
12451 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
12452 {
12453 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
12454 mbstate_t state;
12455 wchar_t wc;
12456
12457 memset (&state, '\0', sizeof (mbstate_t));
12458 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
12459 {
12460 input[3] = '\0';
12461 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
12462 result |= 8;
12463 }
12464 found_some_locale = 1;
12465 }
12466 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
12467 {
12468 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
12469 mbstate_t state;
12470 wchar_t wc;
12471
12472 memset (&state, '\0', sizeof (mbstate_t));
12473 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
12474 {
12475 input[3] = '\0';
12476 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
12477 result |= 16;
12478 }
12479 found_some_locale = 1;
12480 }
12481 return (found_some_locale ? result : 77);
12482}
12483_ACEOF
12484if ac_fn_c_try_run "$LINENO"; then :
12485 gl_cv_func_mbrtowc_retval=yes
12486else
12487 if test $? != 77; then
12488 gl_cv_func_mbrtowc_retval=no
12489 fi
c971b7fa 12490
8690e634
JK
12491fi
12492rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12493 conftest.$ac_objext conftest.beam conftest.$ac_ext
12494fi
c971b7fa 12495
8690e634 12496 fi
c971b7fa 12497
8690e634
JK
12498fi
12499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
12500$as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
c971b7fa
PA
12501
12502
12503
12504
8690e634
JK
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
12506$as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
12507if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then :
c971b7fa
PA
12508 $as_echo_n "(cached) " >&6
12509else
8690e634
JK
12510
12511 case "$host_os" in
12512 # Guess no on Solaris 8 and 9.
12513 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
12514 # Guess yes otherwise.
12515 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
12516 esac
12517 if test $LOCALE_ZH_CN != none; then
12518 if test "$cross_compiling" = yes; then :
12519 :
c971b7fa
PA
12520else
12521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12522/* end confdefs.h. */
12523
8690e634 12524#include <locale.h>
c971b7fa 12525#include <string.h>
8690e634
JK
12526/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12527 <wchar.h>.
12528 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12529 included before <wchar.h>. */
12530#include <stddef.h>
12531#include <stdio.h>
12532#include <time.h>
12533#include <wchar.h>
12534int main ()
c971b7fa 12535{
8690e634
JK
12536 /* This fails on Solaris 8 and 9. */
12537 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
c971b7fa 12538 {
8690e634
JK
12539 mbstate_t state;
12540 wchar_t wc;
c971b7fa 12541
8690e634
JK
12542 memset (&state, '\0', sizeof (mbstate_t));
12543 if (mbrtowc (&wc, "", 1, &state) != 0)
12544 return 1;
12545 }
c971b7fa
PA
12546 return 0;
12547}
12548_ACEOF
12549if ac_fn_c_try_run "$LINENO"; then :
8690e634 12550 gl_cv_func_mbrtowc_nul_retval=yes
c971b7fa 12551else
8690e634 12552 gl_cv_func_mbrtowc_nul_retval=no
c971b7fa
PA
12553fi
12554rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12555 conftest.$ac_objext conftest.beam conftest.$ac_ext
12556fi
12557
8690e634
JK
12558 fi
12559
c971b7fa 12560fi
8690e634
JK
12561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
12562$as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
12563
12564 case "$gl_cv_func_mbrtowc_null_arg1" in
12565 *yes) ;;
12566 *)
12567$as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
12568
12569 REPLACE_MBRTOWC=1
12570 ;;
12571 esac
12572 case "$gl_cv_func_mbrtowc_null_arg2" in
12573 *yes) ;;
12574 *)
12575$as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
12576
12577 REPLACE_MBRTOWC=1
12578 ;;
12579 esac
12580 case "$gl_cv_func_mbrtowc_retval" in
12581 *yes) ;;
12582 *)
12583$as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
12584
12585 REPLACE_MBRTOWC=1
12586 ;;
12587 esac
12588 case "$gl_cv_func_mbrtowc_nul_retval" in
12589 *yes) ;;
12590 *)
12591$as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
12592
12593 REPLACE_MBRTOWC=1
12594 ;;
12595 esac
c971b7fa
PA
12596 fi
12597 fi
12598
a512b375 12599 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
c971b7fa 12600
c971b7fa 12601
c971b7fa
PA
12602
12603
12604
12605
12606
12607
8690e634
JK
12608 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
12609
12610
12611 :
c971b7fa 12612
a512b375 12613 fi
c971b7fa 12614
8690e634
JK
12615
12616
12617
12618
12619 GNULIB_MBRTOWC=1
12620
12621
12622
12623
12624
12625$as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
c971b7fa 12638
c971b7fa 12639
8690e634 12640 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
c971b7fa 12641
8690e634
JK
12642
12643
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
12645$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
12646if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
12647 $as_echo_n "(cached) " >&6
12648else
12649
12650 case "$host_os" in
12651 # Guess no on AIX and OSF/1.
12652 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
12653 # Guess yes otherwise.
12654 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
12655 esac
12656 if test $LOCALE_JA != none; then
12657 if test "$cross_compiling" = yes; then :
12658 :
c971b7fa
PA
12659else
12660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12661/* end confdefs.h. */
12662
8690e634
JK
12663#include <locale.h>
12664#include <string.h>
12665/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12666 <wchar.h>.
12667 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12668 included before <wchar.h>. */
12669#include <stddef.h>
12670#include <stdio.h>
12671#include <time.h>
12672#include <wchar.h>
12673int main ()
c971b7fa 12674{
8690e634 12675 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
c971b7fa 12676 {
8690e634
JK
12677 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
12678 mbstate_t state;
12679 wchar_t wc;
12680
12681 memset (&state, '\0', sizeof (mbstate_t));
12682 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
12683 if (mbsinit (&state))
12684 return 1;
c971b7fa 12685 }
c971b7fa
PA
12686 return 0;
12687}
12688_ACEOF
12689if ac_fn_c_try_run "$LINENO"; then :
8690e634 12690 gl_cv_func_mbrtowc_incomplete_state=yes
c971b7fa 12691else
8690e634 12692 gl_cv_func_mbrtowc_incomplete_state=no
c971b7fa
PA
12693fi
12694rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12695 conftest.$ac_objext conftest.beam conftest.$ac_ext
12696fi
12697
8690e634 12698 fi
c971b7fa
PA
12699
12700fi
8690e634
JK
12701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
12702$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
c971b7fa
PA
12703
12704
c971b7fa
PA
12705
12706
8690e634
JK
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
12708$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
12709if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
c971b7fa
PA
12710 $as_echo_n "(cached) " >&6
12711else
8690e634
JK
12712
12713 case "$host_os" in
12714 # Guess no on Solaris 8.
12715 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
12716 # Guess yes otherwise.
12717 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
12718 esac
12719 if test $LOCALE_ZH_CN != none; then
12720 if test "$cross_compiling" = yes; then :
12721 :
12722else
c971b7fa
PA
12723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12724/* end confdefs.h. */
8690e634
JK
12725
12726#include <locale.h>
12727#include <stdlib.h>
12728#include <string.h>
12729/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12730 <wchar.h>.
12731 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12732 included before <wchar.h>. */
c971b7fa 12733#include <stddef.h>
8690e634
JK
12734#include <stdio.h>
12735#include <time.h>
12736#include <wchar.h>
12737int main ()
c971b7fa 12738{
8690e634
JK
12739 /* This fails on Solaris 8:
12740 mbrtowc returns 2, and sets wc to 0x00F0.
12741 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
12742 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
12743 {
12744 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
12745 mbstate_t state;
12746 wchar_t wc;
12747
12748 memset (&state, '\0', sizeof (mbstate_t));
12749 if (mbrtowc (&wc, input + 3, 6, &state) != 4
12750 && mbtowc (&wc, input + 3, 6) == 4)
12751 return 1;
12752 }
c971b7fa
PA
12753 return 0;
12754}
12755_ACEOF
8690e634
JK
12756if ac_fn_c_try_run "$LINENO"; then :
12757 gl_cv_func_mbrtowc_sanitycheck=yes
c971b7fa 12758else
8690e634 12759 gl_cv_func_mbrtowc_sanitycheck=no
c971b7fa 12760fi
8690e634
JK
12761rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12762 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 12763fi
c971b7fa 12764
8690e634
JK
12765 fi
12766
12767fi
12768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
12769$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
c971b7fa 12770
8690e634
JK
12771 REPLACE_MBSTATE_T=0
12772 case "$gl_cv_func_mbrtowc_incomplete_state" in
12773 *yes) ;;
12774 *) REPLACE_MBSTATE_T=1 ;;
12775 esac
12776 case "$gl_cv_func_mbrtowc_sanitycheck" in
12777 *yes) ;;
12778 *) REPLACE_MBSTATE_T=1 ;;
12779 esac
12780 else
12781 REPLACE_MBSTATE_T=1
c971b7fa
PA
12782 fi
12783
c971b7fa 12784
8690e634 12785
8690e634
JK
12786 if test $ac_cv_func_mbsinit = no; then
12787 HAVE_MBSINIT=0
12788 ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
12789/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12790 <wchar.h>.
12791 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12792 included before <wchar.h>. */
12793#include <stddef.h>
12794#include <stdio.h>
12795#include <time.h>
12796#include <wchar.h>
12797
12798"
12799if test "x$ac_cv_have_decl_mbsinit" = x""yes; then :
12800 ac_have_decl=1
12801else
12802 ac_have_decl=0
c971b7fa 12803fi
c971b7fa 12804
8690e634
JK
12805cat >>confdefs.h <<_ACEOF
12806#define HAVE_DECL_MBSINIT $ac_have_decl
c971b7fa 12807_ACEOF
c971b7fa 12808
8690e634
JK
12809 if test $ac_cv_have_decl_mbsinit = yes; then
12810 REPLACE_MBSINIT=1
12811 fi
12812 else
12813 if test $REPLACE_MBSTATE_T = 1; then
12814 REPLACE_MBSINIT=1
12815 else
12816 case "$host_os" in
12817 mingw*) REPLACE_MBSINIT=1 ;;
12818 esac
12819 fi
12820 fi
c971b7fa 12821
a512b375 12822 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
c971b7fa
PA
12823
12824
12825
12826
12827
12828
12829
12830
8690e634 12831 gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
c971b7fa
PA
12832
12833
8690e634 12834 :
c971b7fa 12835
a512b375 12836 fi
c971b7fa 12837
c971b7fa 12838
c971b7fa 12839
c971b7fa
PA
12840
12841
8690e634 12842 GNULIB_MBSINIT=1
c971b7fa 12843
c971b7fa
PA
12844
12845
12846
12847
8690e634 12848$as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
c971b7fa
PA
12849
12850
c971b7fa 12851
c971b7fa 12852
c971b7fa
PA
12853
12854
12855
c971b7fa 12856
c971b7fa
PA
12857
12858
12859
12860
8690e634
JK
12861
12862 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
c971b7fa
PA
12863
12864
12865
8690e634
JK
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
12867$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
12868if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
12869 $as_echo_n "(cached) " >&6
12870else
c971b7fa 12871
8690e634
JK
12872 case "$host_os" in
12873 # Guess no on AIX and OSF/1.
12874 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
12875 # Guess yes otherwise.
12876 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
c971b7fa 12877 esac
8690e634
JK
12878 if test $LOCALE_JA != none; then
12879 if test "$cross_compiling" = yes; then :
12880 :
12881else
12882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa 12883/* end confdefs.h. */
c971b7fa 12884
8690e634
JK
12885#include <locale.h>
12886#include <string.h>
12887/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12888 <wchar.h>.
12889 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12890 included before <wchar.h>. */
12891#include <stddef.h>
12892#include <stdio.h>
12893#include <time.h>
12894#include <wchar.h>
12895int main ()
12896{
12897 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
12898 {
12899 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
12900 mbstate_t state;
12901 wchar_t wc;
12902
12903 memset (&state, '\0', sizeof (mbstate_t));
12904 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
12905 if (mbsinit (&state))
12906 return 1;
12907 }
c971b7fa
PA
12908 return 0;
12909}
12910_ACEOF
8690e634
JK
12911if ac_fn_c_try_run "$LINENO"; then :
12912 gl_cv_func_mbrtowc_incomplete_state=yes
12913else
12914 gl_cv_func_mbrtowc_incomplete_state=no
12915fi
12916rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12917 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 12918fi
c971b7fa 12919
8690e634 12920 fi
c971b7fa 12921
8690e634
JK
12922fi
12923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
12924$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
c971b7fa 12925
8690e634
JK
12926
12927
12928
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
12930$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
12931if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
c971b7fa
PA
12932 $as_echo_n "(cached) " >&6
12933else
8690e634
JK
12934
12935 case "$host_os" in
12936 # Guess no on Solaris 8.
12937 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
12938 # Guess yes otherwise.
12939 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
12940 esac
12941 if test $LOCALE_ZH_CN != none; then
12942 if test "$cross_compiling" = yes; then :
12943 :
12944else
c971b7fa
PA
12945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12946/* end confdefs.h. */
c971b7fa 12947
8690e634
JK
12948#include <locale.h>
12949#include <stdlib.h>
12950#include <string.h>
12951/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12952 <wchar.h>.
12953 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12954 included before <wchar.h>. */
12955#include <stddef.h>
12956#include <stdio.h>
12957#include <time.h>
12958#include <wchar.h>
12959int main ()
c971b7fa 12960{
8690e634
JK
12961 /* This fails on Solaris 8:
12962 mbrtowc returns 2, and sets wc to 0x00F0.
12963 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
12964 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
12965 {
12966 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
12967 mbstate_t state;
12968 wchar_t wc;
12969
12970 memset (&state, '\0', sizeof (mbstate_t));
12971 if (mbrtowc (&wc, input + 3, 6, &state) != 4
12972 && mbtowc (&wc, input + 3, 6) == 4)
12973 return 1;
12974 }
c971b7fa
PA
12975 return 0;
12976}
12977_ACEOF
8690e634
JK
12978if ac_fn_c_try_run "$LINENO"; then :
12979 gl_cv_func_mbrtowc_sanitycheck=yes
c971b7fa 12980else
8690e634 12981 gl_cv_func_mbrtowc_sanitycheck=no
c971b7fa 12982fi
8690e634
JK
12983rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12984 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 12985fi
8690e634
JK
12986
12987 fi
12988
12989fi
12990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
12991$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
12992
12993 REPLACE_MBSTATE_T=0
12994 case "$gl_cv_func_mbrtowc_incomplete_state" in
12995 *yes) ;;
12996 *) REPLACE_MBSTATE_T=1 ;;
12997 esac
12998 case "$gl_cv_func_mbrtowc_sanitycheck" in
12999 *yes) ;;
13000 *) REPLACE_MBSTATE_T=1 ;;
13001 esac
c971b7fa 13002 else
8690e634 13003 REPLACE_MBSTATE_T=1
c971b7fa
PA
13004 fi
13005
13006
c971b7fa 13007
8690e634
JK
13008 if test $ac_cv_func_mbsrtowcs = no; then
13009 HAVE_MBSRTOWCS=0
13010 ac_fn_c_check_decl "$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
13011/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13012 <wchar.h>.
13013 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13014 included before <wchar.h>. */
13015#include <stddef.h>
13016#include <stdio.h>
13017#include <time.h>
13018#include <wchar.h>
13019
13020"
13021if test "x$ac_cv_have_decl_mbsrtowcs" = x""yes; then :
13022 ac_have_decl=1
c971b7fa 13023else
8690e634 13024 ac_have_decl=0
c971b7fa 13025fi
c971b7fa 13026
8690e634
JK
13027cat >>confdefs.h <<_ACEOF
13028#define HAVE_DECL_MBSRTOWCS $ac_have_decl
13029_ACEOF
c971b7fa 13030
8690e634
JK
13031 if test $ac_cv_have_decl_mbsrtowcs = yes; then
13032 REPLACE_MBSRTOWCS=1
13033 fi
c971b7fa 13034 else
8690e634
JK
13035 if test $REPLACE_MBSTATE_T = 1; then
13036 REPLACE_MBSRTOWCS=1
13037 else
c971b7fa 13038
8690e634
JK
13039
13040
13041
13042
13043
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
13045$as_echo_n "checking whether mbsrtowcs works... " >&6; }
13046if test "${gl_cv_func_mbsrtowcs_works+set}" = set; then :
c971b7fa
PA
13047 $as_echo_n "(cached) " >&6
13048else
8690e634
JK
13049
13050 case "$host_os" in
13051 # Guess no on HP-UX, Solaris, mingw.
13052 hpux* | solaris* | mingw*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
13053 # Guess yes otherwise.
13054 *) gl_cv_func_mbsrtowcs_works="guessing yes" ;;
13055 esac
13056 if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
13057 if test "$cross_compiling" = yes; then :
13058 :
13059else
c971b7fa
PA
13060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13061/* end confdefs.h. */
c971b7fa 13062
8690e634
JK
13063#include <locale.h>
13064#include <string.h>
13065/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13066 <wchar.h>.
13067 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13068 included before <wchar.h>. */
13069#include <stddef.h>
13070#include <stdio.h>
13071#include <time.h>
13072#include <wchar.h>
13073int main ()
c971b7fa 13074{
8690e634
JK
13075 int result = 0;
13076 /* Test whether the function supports a NULL destination argument.
13077 This fails on native Windows. */
13078 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
13079 {
13080 const char input[] = "\337er";
13081 const char *src = input;
13082 mbstate_t state;
c971b7fa 13083
8690e634
JK
13084 memset (&state, '\0', sizeof (mbstate_t));
13085 if (mbsrtowcs (NULL, &src, 1, &state) != 3
13086 || src != input)
13087 result |= 1;
13088 }
13089 /* Test whether the function works when started with a conversion state
13090 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
13091 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
13092 {
13093 const char input[] = "B\303\274\303\237er";
13094 mbstate_t state;
13095
13096 memset (&state, '\0', sizeof (mbstate_t));
13097 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
13098 if (!mbsinit (&state))
13099 {
13100 const char *src = input + 2;
13101 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
13102 result |= 2;
13103 }
13104 }
13105 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
13106 {
13107 const char input[] = "<\306\374\313\334\270\354>";
13108 mbstate_t state;
13109
13110 memset (&state, '\0', sizeof (mbstate_t));
13111 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
13112 if (!mbsinit (&state))
13113 {
13114 const char *src = input + 4;
13115 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
13116 result |= 4;
13117 }
13118 }
13119 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
13120 {
13121 const char input[] = "B\250\271\201\060\211\070er";
13122 mbstate_t state;
13123
13124 memset (&state, '\0', sizeof (mbstate_t));
13125 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
13126 if (!mbsinit (&state))
13127 {
13128 const char *src = input + 2;
13129 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
13130 result |= 8;
13131 }
13132 }
13133 return result;
c971b7fa
PA
13134}
13135_ACEOF
8690e634
JK
13136if ac_fn_c_try_run "$LINENO"; then :
13137 gl_cv_func_mbsrtowcs_works=yes
c971b7fa 13138else
8690e634 13139 gl_cv_func_mbsrtowcs_works=no
c971b7fa 13140fi
8690e634
JK
13141rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13142 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 13143fi
8690e634
JK
13144
13145 fi
13146
13147fi
13148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
13149$as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
13150
13151 case "$gl_cv_func_mbsrtowcs_works" in
13152 *yes) ;;
13153 *) REPLACE_MBSRTOWCS=1 ;;
13154 esac
13155 fi
c971b7fa
PA
13156 fi
13157
a512b375 13158 if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
c971b7fa 13159
c971b7fa 13160
c971b7fa 13161
c971b7fa 13162
c971b7fa 13163
c971b7fa 13164
c971b7fa
PA
13165
13166
8690e634
JK
13167 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext"
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
13178
13179
13180 :
13181
a512b375 13182 fi
8690e634
JK
13183
13184
13185
13186
13187
13188 GNULIB_MBSRTOWCS=1
13189
13190
13191
13192
13193
13194$as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
c971b7fa
PA
13195
13196
13197
13198
a512b375 13199 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
c971b7fa
PA
13200
13201
13202
13203
13204
13205
13206
13207
13208 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
13209
13210
13211 for ac_header in bp-sym.h
13212do :
13213 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
13214if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
13215 cat >>confdefs.h <<_ACEOF
13216#define HAVE_BP_SYM_H 1
13217_ACEOF
13218
13219fi
13220
13221done
13222
13223
a512b375 13224 fi
c971b7fa
PA
13225
13226
13227
13228
13229
13230 GNULIB_MEMCHR=1
13231
13232
13233
13234
13235
13236$as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
13237
13238
13239
13240
13241
13242 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
13244$as_echo_n "checking whether memmem works in linear time... " >&6; }
13245if test "${gl_cv_func_memmem_works_fast+set}" = set; then :
13246 $as_echo_n "(cached) " >&6
13247else
13248 if test "$cross_compiling" = yes; then :
13249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13250/* end confdefs.h. */
13251
13252#include <features.h>
13253#ifdef __GNU_LIBRARY__
13254 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
13255 && !defined __UCLIBC__
13256 Lucky user
13257 #endif
13258#endif
13259#ifdef __CYGWIN__
13260 #include <cygwin/version.h>
13261 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
13262 Lucky user
13263 #endif
13264#endif
13265
13266_ACEOF
13267if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13268 $EGREP "Lucky user" >/dev/null 2>&1; then :
63ce7108
TT
13269 gl_cv_func_memmem_works_fast="guessing yes"
13270else
13271 gl_cv_func_memmem_works_fast="guessing no"
13272fi
13273rm -f conftest*
13274
13275
13276else
13277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13278/* end confdefs.h. */
13279
13280#include <signal.h> /* for signal */
13281#include <string.h> /* for memmem */
13282#include <stdlib.h> /* for malloc */
13283#include <unistd.h> /* for alarm */
13284static void quit (int sig) { exit (sig + 128); }
13285
13286int
13287main ()
13288{
13289
13290 int result = 0;
13291 size_t m = 1000000;
13292 char *haystack = (char *) malloc (2 * m + 1);
13293 char *needle = (char *) malloc (m + 1);
13294 /* Failure to compile this test due to missing alarm is okay,
13295 since all such platforms (mingw) also lack memmem. */
13296 signal (SIGALRM, quit);
13297 alarm (5);
13298 /* Check for quadratic performance. */
13299 if (haystack && needle)
13300 {
13301 memset (haystack, 'A', 2 * m);
13302 haystack[2 * m] = 'B';
13303 memset (needle, 'A', m);
13304 needle[m] = 'B';
13305 if (!memmem (haystack, 2 * m + 1, needle, m + 1))
13306 result |= 1;
13307 }
13308 return result;
13309
13310 ;
13311 return 0;
13312}
13313_ACEOF
13314if ac_fn_c_try_run "$LINENO"; then :
13315 gl_cv_func_memmem_works_fast=yes
13316else
13317 gl_cv_func_memmem_works_fast=no
13318fi
13319rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13320 conftest.$ac_objext conftest.beam conftest.$ac_ext
13321fi
13322
13323
13324fi
13325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
13326$as_echo "$gl_cv_func_memmem_works_fast" >&6; }
13327 case "$gl_cv_func_memmem_works_fast" in
13328 *yes) ;;
13329 *)
13330 REPLACE_MEMMEM=1
13331 ;;
13332 esac
13333 fi
13334
13335 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
13336
13337
13338
13339
13340
13341
13342
13343
13344 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
13345
13346 fi
13347
13348
13349
13350
13351 for ac_func in memmem
13352do :
13353 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
13354if test "x$ac_cv_func_memmem" = x""yes; then :
13355 cat >>confdefs.h <<_ACEOF
13356#define HAVE_MEMMEM 1
13357_ACEOF
13358
13359fi
13360done
13361
13362 if test $ac_cv_func_memmem = yes; then
13363 HAVE_MEMMEM=1
13364 else
13365 HAVE_MEMMEM=0
13366 fi
13367
13368 if test $ac_cv_have_decl_memmem = no; then
13369 HAVE_DECL_MEMMEM=0
13370 else
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
13372$as_echo_n "checking whether memmem works... " >&6; }
13373if test "${gl_cv_func_memmem_works_always+set}" = set; then :
13374 $as_echo_n "(cached) " >&6
13375else
13376 if test "$cross_compiling" = yes; then :
13377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13378/* end confdefs.h. */
13379
13380#ifdef __GNU_LIBRARY__
13381 #include <features.h>
13382 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
13383 || __GLIBC_MINOR__ > 12)) \
13384 || (__GLIBC__ > 2)) \
13385 || defined __UCLIBC__
13386 Lucky user
13387 #endif
13388#elif defined __CYGWIN__
13389 #include <cygwin/version.h>
13390 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
13391 Lucky user
13392 #endif
13393#else
13394 Lucky user
13395#endif
13396
13397_ACEOF
13398if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13399 $EGREP "Lucky user" >/dev/null 2>&1; then :
13400 gl_cv_func_memmem_works_always="guessing yes"
13401else
13402 gl_cv_func_memmem_works_always="guessing no"
13403fi
13404rm -f conftest*
13405
13406
13407else
13408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13409/* end confdefs.h. */
13410
13411#include <string.h> /* for memmem */
13412#define P "_EF_BF_BD"
13413#define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
13414#define NEEDLE P P P P P
13415
13416int
13417main ()
13418{
13419
13420 int result = 0;
13421 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
13422 result |= 1;
13423 /* Check for empty needle behavior. */
13424 {
13425 const char *haystack = "AAA";
13426 if (memmem (haystack, 3, NULL, 0) != haystack)
13427 result |= 2;
13428 }
13429 return result;
13430
13431 ;
13432 return 0;
13433}
13434_ACEOF
13435if ac_fn_c_try_run "$LINENO"; then :
13436 gl_cv_func_memmem_works_always=yes
13437else
13438 gl_cv_func_memmem_works_always=no
13439fi
13440rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13441 conftest.$ac_objext conftest.beam conftest.$ac_ext
13442fi
13443
13444
13445fi
13446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
13447$as_echo "$gl_cv_func_memmem_works_always" >&6; }
13448 case "$gl_cv_func_memmem_works_always" in
13449 *yes) ;;
13450 *)
13451 REPLACE_MEMMEM=1
13452 ;;
13453 esac
13454 fi
13455 :
13456
13457 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
13458
13459
13460
13461
13462
13463
13464
13465
13466 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
13467
13468 fi
13469
13470
13471
13472
13473
13474 GNULIB_MEMMEM=1
13475
13476
13477
13478
13479
13480$as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
13481
13482
13483
13484
13485
13486
13487
13488
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
13490$as_echo_n "checking for ssize_t... " >&6; }
13491if test "${gt_cv_ssize_t+set}" = set; then :
13492 $as_echo_n "(cached) " >&6
13493else
13494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13495/* end confdefs.h. */
13496#include <sys/types.h>
13497int
13498main ()
13499{
13500int x = sizeof (ssize_t *) + sizeof (ssize_t);
13501 return !x;
13502 ;
13503 return 0;
13504}
13505_ACEOF
13506if ac_fn_c_try_compile "$LINENO"; then :
13507 gt_cv_ssize_t=yes
13508else
13509 gt_cv_ssize_t=no
13510fi
13511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13512fi
13513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
13514$as_echo "$gt_cv_ssize_t" >&6; }
13515 if test $gt_cv_ssize_t = no; then
13516
13517$as_echo "#define ssize_t int" >>confdefs.h
13518
13519 fi
13520
13521
13522
13523
13524 # Define two additional variables used in the Makefile substitution.
13525
13526 if test "$ac_cv_header_stdbool_h" = yes; then
13527 STDBOOL_H=''
13528 else
13529 STDBOOL_H='stdbool.h'
13530 fi
13531
13532 if test -n "$STDBOOL_H"; then
13533 GL_GENERATE_STDBOOL_H_TRUE=
13534 GL_GENERATE_STDBOOL_H_FALSE='#'
13535else
13536 GL_GENERATE_STDBOOL_H_TRUE='#'
13537 GL_GENERATE_STDBOOL_H_FALSE=
13538fi
13539
13540
13541 if test "$ac_cv_type__Bool" = yes; then
13542 HAVE__BOOL=1
13543 else
13544 HAVE__BOOL=0
13545 fi
13546
13547
13548
13549
13550
13551 STDDEF_H=
13552 if test $gt_cv_c_wchar_t = no; then
13553 HAVE_WCHAR_T=0
13554 STDDEF_H=stddef.h
13555 fi
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
13557$as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
13558if test "${gl_cv_decl_null_works+set}" = set; then :
13559 $as_echo_n "(cached) " >&6
13560else
13561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13562/* end confdefs.h. */
13563#include <stddef.h>
13564 int test[2 * (sizeof NULL == sizeof (void *)) -1];
13565
13566int
13567main ()
13568{
13569
13570 ;
13571 return 0;
13572}
13573_ACEOF
13574if ac_fn_c_try_compile "$LINENO"; then :
13575 gl_cv_decl_null_works=yes
13576else
13577 gl_cv_decl_null_works=no
13578fi
13579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13580fi
13581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
13582$as_echo "$gl_cv_decl_null_works" >&6; }
13583 if test $gl_cv_decl_null_works = no; then
13584 REPLACE_NULL=1
13585 STDDEF_H=stddef.h
13586 fi
13587
13588 if test -n "$STDDEF_H"; then
13589 GL_GENERATE_STDDEF_H_TRUE=
13590 GL_GENERATE_STDDEF_H_FALSE='#'
13591else
13592 GL_GENERATE_STDDEF_H_TRUE='#'
13593 GL_GENERATE_STDDEF_H_FALSE=
13594fi
13595
13596 if test -n "$STDDEF_H"; then
13597
13598
13599
13600
13601
13602
13603
13604
13605 if test $gl_cv_have_include_next = yes; then
13606 gl_cv_next_stddef_h='<'stddef.h'>'
13607 else
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
13609$as_echo_n "checking absolute name of <stddef.h>... " >&6; }
13610if test "${gl_cv_next_stddef_h+set}" = set; then :
13611 $as_echo_n "(cached) " >&6
13612else
13613
13614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13615/* end confdefs.h. */
13616#include <stddef.h>
13617
13618_ACEOF
13619 case "$host_os" in
13620 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13621 *) gl_absname_cpp="$ac_cpp" ;;
13622 esac
13623
13624 case "$host_os" in
13625 mingw*)
13626 gl_dirsep_regex='[/\\]'
13627 ;;
13628 *)
13629 gl_dirsep_regex='\/'
13630 ;;
13631 esac
13632 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
13633
13634 gl_header_literal_regex=`echo 'stddef.h' \
13635 | sed -e "$gl_make_literal_regex_sed"`
13636 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13637 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13638 s|^/[^/]|//&|
13639 p
13640 q
13641 }'
13642 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13643 sed -n "$gl_absolute_header_sed"`'"'
13644
13645
13646fi
13647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
13648$as_echo "$gl_cv_next_stddef_h" >&6; }
13649 fi
13650 NEXT_STDDEF_H=$gl_cv_next_stddef_h
13651
13652 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13653 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13654 gl_next_as_first_directive='<'stddef.h'>'
13655 else
13656 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13657 gl_next_as_first_directive=$gl_cv_next_stddef_h
13658 fi
13659 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
13660
13661
13662
13663
13664 fi
13665
13666
13667
13668
13669
13670
13671
63ce7108
TT
13672 if test $REPLACE_STRSTR = 0; then
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works in linear time" >&5
13674$as_echo_n "checking whether strstr works in linear time... " >&6; }
13675if test "${gl_cv_func_strstr_linear+set}" = set; then :
13676 $as_echo_n "(cached) " >&6
13677else
13678 if test "$cross_compiling" = yes; then :
13679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13680/* end confdefs.h. */
13681
13682#include <features.h>
13683#ifdef __GNU_LIBRARY__
13684 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
13685 && !(defined __i386__ || defined __x86_64__) \
13686 && !defined __UCLIBC__
13687 Lucky user
13688 #endif
13689#endif
13690#ifdef __CYGWIN__
13691 #include <cygwin/version.h>
13692 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
13693 Lucky user
13694 #endif
13695#endif
13696
13697_ACEOF
13698if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13699 $EGREP "Lucky user" >/dev/null 2>&1; then :
13700 gl_cv_func_strstr_linear="guessing yes"
c971b7fa 13701else
63ce7108 13702 gl_cv_func_strstr_linear="guessing no"
c971b7fa
PA
13703fi
13704rm -f conftest*
13705
13706
13707else
13708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13709/* end confdefs.h. */
13710
13711#include <signal.h> /* for signal */
63ce7108 13712#include <string.h> /* for strstr */
c971b7fa
PA
13713#include <stdlib.h> /* for malloc */
13714#include <unistd.h> /* for alarm */
13715static void quit (int sig) { exit (sig + 128); }
13716
13717int
13718main ()
13719{
13720
13721 int result = 0;
13722 size_t m = 1000000;
63ce7108
TT
13723 char *haystack = (char *) malloc (2 * m + 2);
13724 char *needle = (char *) malloc (m + 2);
c971b7fa 13725 /* Failure to compile this test due to missing alarm is okay,
63ce7108 13726 since all such platforms (mingw) also have quadratic strstr. */
c971b7fa
PA
13727 signal (SIGALRM, quit);
13728 alarm (5);
13729 /* Check for quadratic performance. */
13730 if (haystack && needle)
13731 {
13732 memset (haystack, 'A', 2 * m);
13733 haystack[2 * m] = 'B';
63ce7108 13734 haystack[2 * m + 1] = 0;
c971b7fa
PA
13735 memset (needle, 'A', m);
13736 needle[m] = 'B';
63ce7108
TT
13737 needle[m + 1] = 0;
13738 if (!strstr (haystack, needle))
c971b7fa
PA
13739 result |= 1;
13740 }
13741 return result;
13742
13743 ;
13744 return 0;
13745}
13746_ACEOF
13747if ac_fn_c_try_run "$LINENO"; then :
63ce7108 13748 gl_cv_func_strstr_linear=yes
c971b7fa 13749else
63ce7108 13750 gl_cv_func_strstr_linear=no
c971b7fa
PA
13751fi
13752rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13753 conftest.$ac_objext conftest.beam conftest.$ac_ext
13754fi
13755
13756
13757fi
63ce7108
TT
13758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_linear" >&5
13759$as_echo "$gl_cv_func_strstr_linear" >&6; }
13760 case "$gl_cv_func_strstr_linear" in
40a73391
JK
13761 *yes) ;;
13762 *)
63ce7108 13763 REPLACE_STRSTR=1
40a73391
JK
13764 ;;
13765 esac
c971b7fa
PA
13766 fi
13767
63ce7108 13768 if test $REPLACE_STRSTR = 1; then
c971b7fa
PA
13769
13770
13771
13772
13773
13774
13775
13776
63ce7108 13777 gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
c971b7fa 13778
a512b375 13779 fi
c971b7fa
PA
13780
13781
13782
63ce7108
TT
13783 if test "$gl_cv_func_memchr_works" != yes; then
13784 REPLACE_STRSTR=1
c971b7fa 13785 else
63ce7108
TT
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
13787$as_echo_n "checking whether strstr works... " >&6; }
13788if test "${gl_cv_func_strstr_works_always+set}" = set; then :
c971b7fa
PA
13789 $as_echo_n "(cached) " >&6
13790else
13791 if test "$cross_compiling" = yes; then :
63ce7108 13792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa
PA
13793/* end confdefs.h. */
13794
13795#ifdef __GNU_LIBRARY__
13796 #include <features.h>
63ce7108 13797 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
c971b7fa
PA
13798 || defined __UCLIBC__
13799 Lucky user
13800 #endif
13801#elif defined __CYGWIN__
13802 #include <cygwin/version.h>
13803 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
13804 Lucky user
13805 #endif
13806#else
13807 Lucky user
13808#endif
13809
13810_ACEOF
13811if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13812 $EGREP "Lucky user" >/dev/null 2>&1; then :
63ce7108 13813 gl_cv_func_strstr_works_always="guessing yes"
c971b7fa 13814else
63ce7108 13815 gl_cv_func_strstr_works_always="guessing no"
c971b7fa
PA
13816fi
13817rm -f conftest*
13818
13819
13820else
13821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13822/* end confdefs.h. */
13823
63ce7108 13824#include <string.h> /* for strstr */
c971b7fa
PA
13825#define P "_EF_BF_BD"
13826#define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
13827#define NEEDLE P P P P P
13828
13829int
13830main ()
13831{
63ce7108 13832return !!strstr (HAYSTACK, NEEDLE);
c971b7fa
PA
13833
13834 ;
13835 return 0;
13836}
13837_ACEOF
13838if ac_fn_c_try_run "$LINENO"; then :
63ce7108 13839 gl_cv_func_strstr_works_always=yes
c971b7fa 13840else
63ce7108 13841 gl_cv_func_strstr_works_always=no
c971b7fa
PA
13842fi
13843rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13844 conftest.$ac_objext conftest.beam conftest.$ac_ext
13845fi
13846
13847
13848fi
63ce7108
TT
13849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
13850$as_echo "$gl_cv_func_strstr_works_always" >&6; }
13851 case "$gl_cv_func_strstr_works_always" in
40a73391
JK
13852 *yes) ;;
13853 *)
63ce7108 13854 REPLACE_STRSTR=1
40a73391
JK
13855 ;;
13856 esac
c971b7fa 13857 fi
8839a007 13858
63ce7108 13859 if test $REPLACE_STRSTR = 1; then
8839a007 13860
8690e634
JK
13861
13862
8690e634
JK
13863
13864
13865
13866
13867
63ce7108 13868 gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
8690e634 13869
8690e634
JK
13870 fi
13871
8690e634
JK
13872
13873
8690e634 13874
8690e634 13875
63ce7108 13876 GNULIB_STRSTR=1
8690e634
JK
13877
13878
13879
8690e634
JK
13880
13881
63ce7108 13882$as_echo "#define GNULIB_TEST_STRSTR 1" >>confdefs.h
8690e634
JK
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
8690e634 13895
09607c9e
TT
13896
13897
13898
13899
13900 if test $gl_cv_have_include_next = yes; then
13901 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
13902 else
13903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
13904$as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
13905if test "${gl_cv_next_sys_stat_h+set}" = set; then :
13906 $as_echo_n "(cached) " >&6
13907else
13908
13909 if test $ac_cv_header_sys_stat_h = yes; then
13910
13911
13912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13913/* end confdefs.h. */
13914#include <sys/stat.h>
13915
13916_ACEOF
13917 case "$host_os" in
13918 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13919 *) gl_absname_cpp="$ac_cpp" ;;
13920 esac
13921
13922 case "$host_os" in
13923 mingw*)
13924 gl_dirsep_regex='[/\\]'
13925 ;;
13926 *)
13927 gl_dirsep_regex='\/'
13928 ;;
13929 esac
13930 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
13931
13932 gl_header_literal_regex=`echo 'sys/stat.h' \
13933 | sed -e "$gl_make_literal_regex_sed"`
13934 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13935 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13936 s|^/[^/]|//&|
13937 p
13938 q
13939 }'
13940 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13941 sed -n "$gl_absolute_header_sed"`'"'
13942 else
13943 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
13944 fi
13945
13946
13947fi
13948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
13949$as_echo "$gl_cv_next_sys_stat_h" >&6; }
13950 fi
13951 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
13952
13953 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13954 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13955 gl_next_as_first_directive='<'sys/stat.h'>'
13956 else
13957 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13958 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
13959 fi
13960 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
13961
13962
13963
13964
13965
13966
13967
13968
13969 WINDOWS_64_BIT_ST_SIZE=0
13970
13971
13972 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
13973
13974$as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
13975
13976 fi
13977
13978 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
13979 #include <sys/stat.h>
13980"
13981if test "x$ac_cv_type_nlink_t" = x""yes; then :
13982
13983else
13984
13985$as_echo "#define nlink_t int" >>confdefs.h
13986
13987fi
13988
13989
13990
13991 for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do
13992 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
13994$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
13995if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
13996 $as_echo_n "(cached) " >&6
13997else
13998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13999/* end confdefs.h. */
14000#include <sys/stat.h>
14001
14002int
14003main ()
14004{
14005#undef $gl_func
14006 (void) $gl_func;
14007 ;
14008 return 0;
14009}
14010_ACEOF
14011if ac_fn_c_try_compile "$LINENO"; then :
14012 eval "$as_gl_Symbol=yes"
14013else
14014 eval "$as_gl_Symbol=no"
14015fi
14016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14017fi
14018eval ac_res=\$$as_gl_Symbol
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14020$as_echo "$ac_res" >&6; }
14021 eval as_val=\$$as_gl_Symbol
14022 if test "x$as_val" = x""yes; then :
14023 cat >>confdefs.h <<_ACEOF
14024#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
14025_ACEOF
14026
14027 eval ac_cv_have_decl_$gl_func=yes
14028fi
14029 done
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
8839a007
PA
14044 if test $gl_cv_have_include_next = yes; then
14045 gl_cv_next_sys_types_h='<'sys/types.h'>'
14046 else
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
14048$as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
14049if test "${gl_cv_next_sys_types_h+set}" = set; then :
14050 $as_echo_n "(cached) " >&6
14051else
14052
14053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14054/* end confdefs.h. */
14055#include <sys/types.h>
14056
14057_ACEOF
14058 case "$host_os" in
14059 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14060 *) gl_absname_cpp="$ac_cpp" ;;
14061 esac
14062
14063 case "$host_os" in
14064 mingw*)
14065 gl_dirsep_regex='[/\\]'
14066 ;;
14067 *)
14068 gl_dirsep_regex='\/'
14069 ;;
14070 esac
14071 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14072
14073 gl_header_literal_regex=`echo 'sys/types.h' \
14074 | sed -e "$gl_make_literal_regex_sed"`
14075 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14076 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14077 s|^/[^/]|//&|
14078 p
14079 q
14080 }'
14081 gl_cv_next_sys_types_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14082 sed -n "$gl_absolute_header_sed"`'"'
14083
14084
14085fi
14086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
14087$as_echo "$gl_cv_next_sys_types_h" >&6; }
14088 fi
14089 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
14090
14091 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14092 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14093 gl_next_as_first_directive='<'sys/types.h'>'
14094 else
14095 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14096 gl_next_as_first_directive=$gl_cv_next_sys_types_h
14097 fi
14098 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
09607c9e
TT
14120
14121
8839a007
PA
14122
14123
14124
14125
14126 if test $gl_cv_have_include_next = yes; then
14127 gl_cv_next_unistd_h='<'unistd.h'>'
14128 else
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
14130$as_echo_n "checking absolute name of <unistd.h>... " >&6; }
14131if test "${gl_cv_next_unistd_h+set}" = set; then :
14132 $as_echo_n "(cached) " >&6
14133else
14134
14135 if test $ac_cv_header_unistd_h = yes; then
14136
14137
14138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14139/* end confdefs.h. */
14140#include <unistd.h>
14141
14142_ACEOF
14143 case "$host_os" in
14144 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14145 *) gl_absname_cpp="$ac_cpp" ;;
14146 esac
14147
14148 case "$host_os" in
14149 mingw*)
14150 gl_dirsep_regex='[/\\]'
14151 ;;
14152 *)
14153 gl_dirsep_regex='\/'
14154 ;;
14155 esac
14156 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14157
14158 gl_header_literal_regex=`echo 'unistd.h' \
14159 | sed -e "$gl_make_literal_regex_sed"`
14160 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14161 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14162 s|^/[^/]|//&|
14163 p
14164 q
14165 }'
14166 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14167 sed -n "$gl_absolute_header_sed"`'"'
14168 else
14169 gl_cv_next_unistd_h='<'unistd.h'>'
14170 fi
14171
14172
14173fi
14174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
14175$as_echo "$gl_cv_next_unistd_h" >&6; }
14176 fi
14177 NEXT_UNISTD_H=$gl_cv_next_unistd_h
14178
14179 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14180 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14181 gl_next_as_first_directive='<'unistd.h'>'
14182 else
14183 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14184 gl_next_as_first_directive=$gl_cv_next_unistd_h
14185 fi
14186 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
14187
14188
14189
14190
14191 if test $ac_cv_header_unistd_h = yes; then
14192 HAVE_UNISTD_H=1
14193 else
14194 HAVE_UNISTD_H=0
14195 fi
14196
14197
14198
14199
14200
14201
14202
14203 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
14204 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
14206$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
14207if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
14208 $as_echo_n "(cached) " >&6
14209else
14210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14211/* end confdefs.h. */
14212
14213#if HAVE_UNISTD_H
14214# include <unistd.h>
14215#endif
14216/* Some systems declare various items in the wrong headers. */
14217#if !(defined __GLIBC__ && !defined __UCLIBC__)
14218# include <fcntl.h>
14219# include <stdio.h>
14220# include <stdlib.h>
14221# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
14222# include <io.h>
14223# endif
14224#endif
14225
14226int
14227main ()
14228{
14229#undef $gl_func
14230 (void) $gl_func;
14231 ;
14232 return 0;
14233}
14234_ACEOF
14235if ac_fn_c_try_compile "$LINENO"; then :
14236 eval "$as_gl_Symbol=yes"
14237else
14238 eval "$as_gl_Symbol=no"
14239fi
14240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14241fi
14242eval ac_res=\$$as_gl_Symbol
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14244$as_echo "$ac_res" >&6; }
14245 eval as_val=\$$as_gl_Symbol
14246 if test "x$as_val" = x""yes; then :
14247 cat >>confdefs.h <<_ACEOF
14248#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
14249_ACEOF
14250
14251 eval ac_cv_have_decl_$gl_func=yes
14252fi
14253 done
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
8690e634
JK
14266
14267
14268 if test $gl_cv_have_include_next = yes; then
14269 gl_cv_next_wchar_h='<'wchar.h'>'
14270 else
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
14272$as_echo_n "checking absolute name of <wchar.h>... " >&6; }
14273if test "${gl_cv_next_wchar_h+set}" = set; then :
14274 $as_echo_n "(cached) " >&6
14275else
14276
14277 if test $ac_cv_header_wchar_h = yes; then
14278
14279
14280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14281/* end confdefs.h. */
14282#include <wchar.h>
14283
14284_ACEOF
14285 case "$host_os" in
14286 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14287 *) gl_absname_cpp="$ac_cpp" ;;
14288 esac
14289
14290 case "$host_os" in
14291 mingw*)
14292 gl_dirsep_regex='[/\\]'
14293 ;;
14294 *)
14295 gl_dirsep_regex='\/'
14296 ;;
14297 esac
14298 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14299
14300 gl_header_literal_regex=`echo 'wchar.h' \
14301 | sed -e "$gl_make_literal_regex_sed"`
14302 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14303 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14304 s|^/[^/]|//&|
14305 p
14306 q
14307 }'
14308 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14309 sed -n "$gl_absolute_header_sed"`'"'
14310 else
14311 gl_cv_next_wchar_h='<'wchar.h'>'
14312 fi
14313
14314
14315fi
14316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
14317$as_echo "$gl_cv_next_wchar_h" >&6; }
14318 fi
14319 NEXT_WCHAR_H=$gl_cv_next_wchar_h
14320
14321 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14322 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14323 gl_next_as_first_directive='<'wchar.h'>'
14324 else
14325 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14326 gl_next_as_first_directive=$gl_cv_next_wchar_h
14327 fi
14328 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
14329
14330
14331
14332
14333 if test $ac_cv_header_wchar_h = yes; then
14334 HAVE_WCHAR_H=1
14335 else
14336 HAVE_WCHAR_H=0
14337 fi
14338
c971b7fa
PA
14339
14340
14341
14342
8690e634
JK
14343 if test $gt_cv_c_wint_t = yes; then
14344 HAVE_WINT_T=1
14345 else
14346 HAVE_WINT_T=0
14347 fi
c971b7fa
PA
14348
14349
14350
8690e634
JK
14351 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
14352 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
14354$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
14355if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
c971b7fa
PA
14356 $as_echo_n "(cached) " >&6
14357else
14358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14359/* end confdefs.h. */
8690e634
JK
14360
14361/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14362 <wchar.h>.
14363 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14364 included before <wchar.h>. */
14365#if !(defined __GLIBC__ && !defined __UCLIBC__)
14366# include <stddef.h>
14367# include <stdio.h>
14368# include <time.h>
14369#endif
14370#include <wchar.h>
c971b7fa
PA
14371
14372int
14373main ()
14374{
8690e634
JK
14375#undef $gl_func
14376 (void) $gl_func;
c971b7fa
PA
14377 ;
14378 return 0;
14379}
14380_ACEOF
14381if ac_fn_c_try_compile "$LINENO"; then :
8690e634 14382 eval "$as_gl_Symbol=yes"
c971b7fa 14383else
8690e634 14384 eval "$as_gl_Symbol=no"
c971b7fa
PA
14385fi
14386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14387fi
8690e634
JK
14388eval ac_res=\$$as_gl_Symbol
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14390$as_echo "$ac_res" >&6; }
14391 eval as_val=\$$as_gl_Symbol
14392 if test "x$as_val" = x""yes; then :
14393 cat >>confdefs.h <<_ACEOF
14394#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
14395_ACEOF
c971b7fa 14396
8690e634 14397 eval ac_cv_have_decl_$gl_func=yes
c971b7fa 14398fi
8690e634
JK
14399 done
14400
14401
14402
14403
14404
14405
14406
8690e634
JK
14407 if test $ac_cv_func_iswcntrl = yes; then
14408 HAVE_ISWCNTRL=1
14409 else
14410 HAVE_ISWCNTRL=0
14411 fi
14412
14413
14414
8690e634
JK
14415 if test $gt_cv_c_wint_t = yes; then
14416 HAVE_WINT_T=1
14417 else
14418 HAVE_WINT_T=0
14419 fi
14420
14421
14422
14423
14424
14425
c971b7fa 14426
8690e634 14427
c971b7fa
PA
14428
14429
14430
14431 if test $gl_cv_have_include_next = yes; then
8690e634 14432 gl_cv_next_wctype_h='<'wctype.h'>'
c971b7fa 14433 else
8690e634
JK
14434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
14435$as_echo_n "checking absolute name of <wctype.h>... " >&6; }
14436if test "${gl_cv_next_wctype_h+set}" = set; then :
c971b7fa
PA
14437 $as_echo_n "(cached) " >&6
14438else
14439
8690e634
JK
14440 if test $ac_cv_header_wctype_h = yes; then
14441
14442
c971b7fa
PA
14443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14444/* end confdefs.h. */
8690e634 14445#include <wctype.h>
c971b7fa
PA
14446
14447_ACEOF
14448 case "$host_os" in
14449 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14450 *) gl_absname_cpp="$ac_cpp" ;;
14451 esac
14452
14453 case "$host_os" in
14454 mingw*)
14455 gl_dirsep_regex='[/\\]'
14456 ;;
14457 *)
14458 gl_dirsep_regex='\/'
14459 ;;
14460 esac
14461 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14462
8690e634 14463 gl_header_literal_regex=`echo 'wctype.h' \
c971b7fa
PA
14464 | sed -e "$gl_make_literal_regex_sed"`
14465 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14466 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14467 s|^/[^/]|//&|
14468 p
14469 q
14470 }'
8690e634 14471 gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
c971b7fa 14472 sed -n "$gl_absolute_header_sed"`'"'
8690e634
JK
14473 else
14474 gl_cv_next_wctype_h='<'wctype.h'>'
14475 fi
c971b7fa
PA
14476
14477
14478fi
8690e634
JK
14479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
14480$as_echo "$gl_cv_next_wctype_h" >&6; }
c971b7fa 14481 fi
8690e634 14482 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
c971b7fa
PA
14483
14484 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14485 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8690e634 14486 gl_next_as_first_directive='<'wctype.h'>'
c971b7fa
PA
14487 else
14488 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8690e634 14489 gl_next_as_first_directive=$gl_cv_next_wctype_h
c971b7fa 14490 fi
8690e634
JK
14491 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
14492
14493
14494
14495
14496 if test $ac_cv_header_wctype_h = yes; then
14497 if test $ac_cv_func_iswcntrl = yes; then
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
14499$as_echo_n "checking whether iswcntrl works... " >&6; }
14500if test "${gl_cv_func_iswcntrl_works+set}" = set; then :
14501 $as_echo_n "(cached) " >&6
14502else
14503
14504 if test "$cross_compiling" = yes; then :
14505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14506/* end confdefs.h. */
14507#include <stdlib.h>
14508 #if __GNU_LIBRARY__ == 1
14509 Linux libc5 i18n is broken.
14510 #endif
14511int
14512main ()
14513{
14514
14515 ;
14516 return 0;
14517}
14518_ACEOF
14519if ac_fn_c_try_compile "$LINENO"; then :
14520 gl_cv_func_iswcntrl_works="guessing yes"
14521else
14522 gl_cv_func_iswcntrl_works="guessing no"
14523fi
14524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14525
14526else
14527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14528/* end confdefs.h. */
14529
14530 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
14531 included before <wchar.h>.
14532 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
14533 must be included before <wchar.h>. */
14534 #include <stddef.h>
14535 #include <stdio.h>
14536 #include <time.h>
14537 #include <wchar.h>
14538 #include <wctype.h>
14539 int main () { return iswprint ('x') == 0; }
14540
14541_ACEOF
14542if ac_fn_c_try_run "$LINENO"; then :
14543 gl_cv_func_iswcntrl_works=yes
14544else
14545 gl_cv_func_iswcntrl_works=no
14546fi
14547rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14548 conftest.$ac_objext conftest.beam conftest.$ac_ext
14549fi
14550
14551
14552fi
14553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
14554$as_echo "$gl_cv_func_iswcntrl_works" >&6; }
14555 fi
14556 HAVE_WCTYPE_H=1
14557 else
14558 HAVE_WCTYPE_H=0
14559 fi
14560
14561
14562 case "$gl_cv_func_iswcntrl_works" in
14563 *yes) REPLACE_ISWCNTRL=0 ;;
14564 *) REPLACE_ISWCNTRL=1 ;;
14565 esac
14566
14567
14568 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
14569 :
14570 fi
14571
14572 if test $REPLACE_ISWCNTRL = 1; then
14573 REPLACE_TOWLOWER=1
14574 else
14575 for ac_func in towlower
14576do :
14577 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
14578if test "x$ac_cv_func_towlower" = x""yes; then :
14579 cat >>confdefs.h <<_ACEOF
14580#define HAVE_TOWLOWER 1
14581_ACEOF
14582
14583fi
14584done
14585
14586 if test $ac_cv_func_towlower = yes; then
14587 REPLACE_TOWLOWER=0
14588 else
14589 ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
14590 included before <wchar.h>.
14591 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
14592 must be included before <wchar.h>. */
14593 #include <stddef.h>
14594 #include <stdio.h>
14595 #include <time.h>
14596 #include <wchar.h>
14597 #if HAVE_WCTYPE_H
14598 # include <wctype.h>
14599 #endif
14600
14601"
14602if test "x$ac_cv_have_decl_towlower" = x""yes; then :
14603 ac_have_decl=1
14604else
14605 ac_have_decl=0
14606fi
14607
14608cat >>confdefs.h <<_ACEOF
14609#define HAVE_DECL_TOWLOWER $ac_have_decl
14610_ACEOF
14611
14612 if test $ac_cv_have_decl_towlower = yes; then
14613 REPLACE_TOWLOWER=1
14614 else
14615 REPLACE_TOWLOWER=0
14616 fi
14617 fi
14618 fi
14619
14620
14621 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
14622 :
14623 fi
14624
14625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
14626$as_echo_n "checking for wctype_t... " >&6; }
14627if test "${gl_cv_type_wctype_t+set}" = set; then :
14628 $as_echo_n "(cached) " >&6
14629else
14630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14631/* end confdefs.h. */
14632/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
14633 included before <wchar.h>.
14634 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
14635 must be included before <wchar.h>. */
14636 #include <stddef.h>
14637 #include <stdio.h>
14638 #include <time.h>
14639 #include <wchar.h>
14640 #if HAVE_WCTYPE_H
14641 # include <wctype.h>
14642 #endif
14643 wctype_t a;
14644
14645int
14646main ()
14647{
14648
14649 ;
14650 return 0;
14651}
14652_ACEOF
14653if ac_fn_c_try_compile "$LINENO"; then :
14654 gl_cv_type_wctype_t=yes
14655else
14656 gl_cv_type_wctype_t=no
14657fi
14658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c971b7fa 14659
8690e634
JK
14660fi
14661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
14662$as_echo "$gl_cv_type_wctype_t" >&6; }
14663 if test $gl_cv_type_wctype_t = no; then
14664 HAVE_WCTYPE_T=0
14665 fi
14666
14667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
14668$as_echo_n "checking for wctrans_t... " >&6; }
14669if test "${gl_cv_type_wctrans_t+set}" = set; then :
14670 $as_echo_n "(cached) " >&6
14671else
14672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14673/* end confdefs.h. */
14674/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
14675 included before <wchar.h>.
14676 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
14677 must be included before <wchar.h>. */
14678 #include <stddef.h>
14679 #include <stdio.h>
14680 #include <time.h>
14681 #include <wchar.h>
14682 #include <wctype.h>
14683 wctrans_t a;
c971b7fa 14684
8690e634
JK
14685int
14686main ()
14687{
c971b7fa 14688
8690e634
JK
14689 ;
14690 return 0;
14691}
14692_ACEOF
14693if ac_fn_c_try_compile "$LINENO"; then :
14694 gl_cv_type_wctrans_t=yes
14695else
14696 gl_cv_type_wctrans_t=no
14697fi
14698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c971b7fa 14699
8690e634
JK
14700fi
14701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
14702$as_echo "$gl_cv_type_wctrans_t" >&6; }
14703 if test $gl_cv_type_wctrans_t = no; then
14704 HAVE_WCTRANS_T=0
c971b7fa
PA
14705 fi
14706
14707
8690e634
JK
14708 for gl_func in wctype iswctype wctrans towctrans ; do
14709 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
14710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
14711$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
14712if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
14713 $as_echo_n "(cached) " >&6
14714else
14715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14716/* end confdefs.h. */
14717
14718/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14719 <wchar.h>.
14720 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14721 included before <wchar.h>. */
14722#if !(defined __GLIBC__ && !defined __UCLIBC__)
14723# include <stddef.h>
14724# include <stdio.h>
14725# include <time.h>
14726# include <wchar.h>
14727#endif
14728#include <wctype.h>
14729
14730int
14731main ()
14732{
14733#undef $gl_func
14734 (void) $gl_func;
14735 ;
14736 return 0;
14737}
14738_ACEOF
14739if ac_fn_c_try_compile "$LINENO"; then :
14740 eval "$as_gl_Symbol=yes"
14741else
14742 eval "$as_gl_Symbol=no"
14743fi
14744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14745fi
14746eval ac_res=\$$as_gl_Symbol
14747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14748$as_echo "$ac_res" >&6; }
14749 eval as_val=\$$as_gl_Symbol
14750 if test "x$as_val" = x""yes; then :
14751 cat >>confdefs.h <<_ACEOF
14752#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
14753_ACEOF
c971b7fa 14754
8690e634
JK
14755 eval ac_cv_have_decl_$gl_func=yes
14756fi
14757 done
c971b7fa
PA
14758
14759
14760 # End of code from modules
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770 gltests_libdeps=
14771 gltests_ltlibdeps=
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781 gl_source_base='tests'
14782 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
14783
14784 gl_module_indicator_condition=$gltests_WITNESS
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794 LIBGNU_LIBDEPS="$gl_libdeps"
14795
14796 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
14797
14798
14799
14800# We don't use automake, but gnulib does. This line lets us generate
14801# its Makefile.in.
14802am__api_version='1.11'
14803
14804# Find a good install program. We prefer a C program (faster),
14805# so one script is as good as another. But avoid the broken or
14806# incompatible versions:
14807# SysV /etc/install, /usr/sbin/install
14808# SunOS /usr/etc/install
14809# IRIX /sbin/install
14810# AIX /bin/install
14811# AmigaOS /C/install, which installs bootblocks on floppy discs
14812# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
14813# AFS /usr/afsws/bin/install, which mishandles nonexistent args
14814# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
14815# OS/2's system install, which has a completely different semantic
14816# ./install, which can be erroneously created by make from ./install.sh.
14817# Reject install programs that cannot install multiple files.
14818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
14819$as_echo_n "checking for a BSD-compatible install... " >&6; }
14820if test -z "$INSTALL"; then
14821if test "${ac_cv_path_install+set}" = set; then :
14822 $as_echo_n "(cached) " >&6
14823else
14824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14825for as_dir in $PATH
14826do
14827 IFS=$as_save_IFS
14828 test -z "$as_dir" && as_dir=.
14829 # Account for people who put trailing slashes in PATH elements.
14830case $as_dir/ in #((
14831 ./ | .// | /[cC]/* | \
14832 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
14833 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
14834 /usr/ucb/* ) ;;
14835 *)
14836 # OSF1 and SCO ODT 3.0 have their own names for install.
14837 # Don't use installbsd from OSF since it installs stuff as root
14838 # by default.
14839 for ac_prog in ginstall scoinst install; do
14840 for ac_exec_ext in '' $ac_executable_extensions; do
14841 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
14842 if test $ac_prog = install &&
14843 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14844 # AIX install. It has an incompatible calling convention.
14845 :
14846 elif test $ac_prog = install &&
14847 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14848 # program-specific install script used by HP pwplus--don't use.
14849 :
14850 else
14851 rm -rf conftest.one conftest.two conftest.dir
14852 echo one > conftest.one
14853 echo two > conftest.two
14854 mkdir conftest.dir
14855 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
14856 test -s conftest.one && test -s conftest.two &&
14857 test -s conftest.dir/conftest.one &&
14858 test -s conftest.dir/conftest.two
14859 then
14860 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
14861 break 3
14862 fi
14863 fi
14864 fi
14865 done
14866 done
14867 ;;
14868esac
14869
14870 done
14871IFS=$as_save_IFS
14872
14873rm -rf conftest.one conftest.two conftest.dir
14874
14875fi
14876 if test "${ac_cv_path_install+set}" = set; then
14877 INSTALL=$ac_cv_path_install
14878 else
14879 # As a last resort, use the slow shell script. Don't cache a
14880 # value for INSTALL within a source directory, because that will
14881 # break other packages using the cache if that directory is
14882 # removed, or if the value is a relative name.
14883 INSTALL=$ac_install_sh
14884 fi
14885fi
14886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
14887$as_echo "$INSTALL" >&6; }
14888
14889# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
14890# It thinks the first close brace ends the variable substitution.
14891test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
14892
14893test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
14894
14895test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
14896
14897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
14898$as_echo_n "checking whether build environment is sane... " >&6; }
14899# Just in case
14900sleep 1
14901echo timestamp > conftest.file
14902# Reject unsafe characters in $srcdir or the absolute working directory
14903# name. Accept space and tab only in the latter.
14904am_lf='
14905'
14906case `pwd` in
14907 *[\\\"\#\$\&\'\`$am_lf]*)
14908 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
14909esac
14910case $srcdir in
14911 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
14912 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
14913esac
14914
14915# Do `set' in a subshell so we don't clobber the current shell's
14916# arguments. Must try -L first in case configure is actually a
14917# symlink; some systems play weird games with the mod time of symlinks
14918# (eg FreeBSD returns the mod time of the symlink's containing
14919# directory).
14920if (
14921 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
14922 if test "$*" = "X"; then
14923 # -L didn't work.
14924 set X `ls -t "$srcdir/configure" conftest.file`
14925 fi
14926 rm -f conftest.file
14927 if test "$*" != "X $srcdir/configure conftest.file" \
14928 && test "$*" != "X conftest.file $srcdir/configure"; then
14929
14930 # If neither matched, then we have a broken ls. This can happen
14931 # if, for instance, CONFIG_SHELL is bash and it inherits a
14932 # broken ls alias from the environment. This has actually
14933 # happened. Such a system could not be considered "sane".
14934 as_fn_error "ls -t appears to fail. Make sure there is not a broken
14935alias in your environment" "$LINENO" 5
14936 fi
14937
14938 test "$2" = conftest.file
14939 )
14940then
14941 # Ok.
14942 :
14943else
14944 as_fn_error "newly created file is older than distributed files!
14945Check your system clock" "$LINENO" 5
14946fi
14947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14948$as_echo "yes" >&6; }
14949test "$program_prefix" != NONE &&
14950 program_transform_name="s&^&$program_prefix&;$program_transform_name"
14951# Use a double $ so make ignores it.
14952test "$program_suffix" != NONE &&
14953 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
14954# Double any \ or $.
14955# By default was `s,x,x', remove it if useless.
14956ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
14957program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
14958
14959# expand $ac_aux_dir to an absolute path
14960am_aux_dir=`cd $ac_aux_dir && pwd`
14961
14962if test x"${MISSING+set}" != xset; then
14963 case $am_aux_dir in
14964 *\ * | *\ *)
14965 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
14966 *)
14967 MISSING="\${SHELL} $am_aux_dir/missing" ;;
14968 esac
14969fi
14970# Use eval to expand $SHELL
14971if eval "$MISSING --run true"; then
14972 am_missing_run="$MISSING --run "
14973else
14974 am_missing_run=
14975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
14976$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
14977fi
14978
14979if test x"${install_sh}" != xset; then
14980 case $am_aux_dir in
14981 *\ * | *\ *)
14982 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
14983 *)
14984 install_sh="\${SHELL} $am_aux_dir/install-sh"
14985 esac
14986fi
14987
14988# Installed binaries are usually stripped using `strip' when the user
14989# run `make install-strip'. However `strip' might not be the right
14990# tool to use in cross-compilation environments, therefore Automake
14991# will honor the `STRIP' environment variable to overrule this program.
14992if test "$cross_compiling" != no; then
14993 if test -n "$ac_tool_prefix"; then
14994 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14995set dummy ${ac_tool_prefix}strip; ac_word=$2
14996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14997$as_echo_n "checking for $ac_word... " >&6; }
14998if test "${ac_cv_prog_STRIP+set}" = set; then :
14999 $as_echo_n "(cached) " >&6
15000else
15001 if test -n "$STRIP"; then
15002 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15003else
15004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15005for as_dir in $PATH
15006do
15007 IFS=$as_save_IFS
15008 test -z "$as_dir" && as_dir=.
15009 for ac_exec_ext in '' $ac_executable_extensions; do
15010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15011 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
15012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15013 break 2
15014 fi
15015done
15016 done
15017IFS=$as_save_IFS
15018
15019fi
15020fi
15021STRIP=$ac_cv_prog_STRIP
15022if test -n "$STRIP"; then
15023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
15024$as_echo "$STRIP" >&6; }
15025else
15026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15027$as_echo "no" >&6; }
15028fi
15029
15030
15031fi
15032if test -z "$ac_cv_prog_STRIP"; then
15033 ac_ct_STRIP=$STRIP
15034 # Extract the first word of "strip", so it can be a program name with args.
15035set dummy strip; ac_word=$2
15036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15037$as_echo_n "checking for $ac_word... " >&6; }
15038if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
15039 $as_echo_n "(cached) " >&6
15040else
15041 if test -n "$ac_ct_STRIP"; then
15042 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15043else
15044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15045for as_dir in $PATH
15046do
15047 IFS=$as_save_IFS
15048 test -z "$as_dir" && as_dir=.
15049 for ac_exec_ext in '' $ac_executable_extensions; do
15050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15051 ac_cv_prog_ac_ct_STRIP="strip"
15052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15053 break 2
15054 fi
15055done
15056 done
15057IFS=$as_save_IFS
15058
15059fi
15060fi
15061ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15062if test -n "$ac_ct_STRIP"; then
15063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
15064$as_echo "$ac_ct_STRIP" >&6; }
15065else
15066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15067$as_echo "no" >&6; }
15068fi
15069
15070 if test "x$ac_ct_STRIP" = x; then
15071 STRIP=":"
15072 else
15073 case $cross_compiling:$ac_tool_warned in
15074yes:)
15075{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15076$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15077ac_tool_warned=yes ;;
15078esac
15079 STRIP=$ac_ct_STRIP
15080 fi
15081else
15082 STRIP="$ac_cv_prog_STRIP"
15083fi
15084
15085fi
15086INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
15087
c971b7fa
PA
15088mkdir_p="$MKDIR_P"
15089case $mkdir_p in
15090 [\\/$]* | ?:[\\/]*) ;;
15091 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
15092esac
15093
15094for ac_prog in gawk mawk nawk awk
15095do
15096 # Extract the first word of "$ac_prog", so it can be a program name with args.
15097set dummy $ac_prog; ac_word=$2
15098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15099$as_echo_n "checking for $ac_word... " >&6; }
15100if test "${ac_cv_prog_AWK+set}" = set; then :
15101 $as_echo_n "(cached) " >&6
15102else
15103 if test -n "$AWK"; then
15104 ac_cv_prog_AWK="$AWK" # Let the user override the test.
15105else
15106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15107for as_dir in $PATH
15108do
15109 IFS=$as_save_IFS
15110 test -z "$as_dir" && as_dir=.
15111 for ac_exec_ext in '' $ac_executable_extensions; do
15112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15113 ac_cv_prog_AWK="$ac_prog"
15114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15115 break 2
15116 fi
15117done
15118 done
15119IFS=$as_save_IFS
15120
15121fi
15122fi
15123AWK=$ac_cv_prog_AWK
15124if test -n "$AWK"; then
15125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
15126$as_echo "$AWK" >&6; }
15127else
15128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15129$as_echo "no" >&6; }
15130fi
15131
15132
15133 test -n "$AWK" && break
15134done
15135
15136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
15137$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
15138set x ${MAKE-make}
15139ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
15140if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
15141 $as_echo_n "(cached) " >&6
15142else
15143 cat >conftest.make <<\_ACEOF
15144SHELL = /bin/sh
15145all:
15146 @echo '@@@%%%=$(MAKE)=@@@%%%'
15147_ACEOF
15148# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
15149case `${MAKE-make} -f conftest.make 2>/dev/null` in
15150 *@@@%%%=?*=@@@%%%*)
15151 eval ac_cv_prog_make_${ac_make}_set=yes;;
15152 *)
15153 eval ac_cv_prog_make_${ac_make}_set=no;;
15154esac
15155rm -f conftest.make
15156fi
15157if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
15158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15159$as_echo "yes" >&6; }
15160 SET_MAKE=
15161else
15162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15163$as_echo "no" >&6; }
15164 SET_MAKE="MAKE=${MAKE-make}"
15165fi
15166
15167rm -rf .tst 2>/dev/null
15168mkdir .tst 2>/dev/null
15169if test -d .tst; then
15170 am__leading_dot=.
15171else
15172 am__leading_dot=_
15173fi
15174rmdir .tst 2>/dev/null
15175
15176DEPDIR="${am__leading_dot}deps"
15177
15178ac_config_commands="$ac_config_commands depfiles"
15179
15180
15181am_make=${MAKE-make}
15182cat > confinc << 'END'
15183am__doit:
15184 @echo this is the am__doit target
15185.PHONY: am__doit
15186END
15187# If we don't find an include directive, just comment out the code.
15188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
15189$as_echo_n "checking for style of include used by $am_make... " >&6; }
15190am__include="#"
15191am__quote=
15192_am_result=none
15193# First try GNU make style include.
15194echo "include confinc" > confmf
15195# Ignore all kinds of additional output from `make'.
15196case `$am_make -s -f confmf 2> /dev/null` in #(
15197*the\ am__doit\ target*)
15198 am__include=include
15199 am__quote=
15200 _am_result=GNU
15201 ;;
15202esac
15203# Now try BSD make style include.
15204if test "$am__include" = "#"; then
15205 echo '.include "confinc"' > confmf
15206 case `$am_make -s -f confmf 2> /dev/null` in #(
15207 *the\ am__doit\ target*)
15208 am__include=.include
15209 am__quote="\""
15210 _am_result=BSD
15211 ;;
15212 esac
15213fi
15214
15215
15216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
15217$as_echo "$_am_result" >&6; }
15218rm -f confinc confmf
15219
15220# Check whether --enable-dependency-tracking was given.
15221if test "${enable_dependency_tracking+set}" = set; then :
15222 enableval=$enable_dependency_tracking;
15223fi
15224
15225if test "x$enable_dependency_tracking" != xno; then
15226 am_depcomp="$ac_aux_dir/depcomp"
15227 AMDEPBACKSLASH='\'
15228fi
15229 if test "x$enable_dependency_tracking" != xno; then
15230 AMDEP_TRUE=
15231 AMDEP_FALSE='#'
15232else
15233 AMDEP_TRUE='#'
15234 AMDEP_FALSE=
15235fi
15236
15237
15238if test "`cd $srcdir && pwd`" != "`pwd`"; then
15239 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
15240 # is not polluted with repeated "-I."
15241 am__isrc=' -I$(srcdir)'
15242 # test to see if srcdir already configured
15243 if test -f $srcdir/config.status; then
15244 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
15245 fi
15246fi
15247
15248# test whether we have cygpath
15249if test -z "$CYGPATH_W"; then
15250 if (cygpath --version) >/dev/null 2>/dev/null; then
15251 CYGPATH_W='cygpath -w'
15252 else
15253 CYGPATH_W=echo
15254 fi
15255fi
15256
15257
15258# Define the identity of the package.
15259 PACKAGE=libgnu
15260 VERSION=UNUSED-VERSION
15261
15262
15263# Some tools Automake needs.
15264
15265ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
15266
15267
15268AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
15269
15270
15271AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
15272
15273
15274AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
15275
15276
15277MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
15278
15279# We need awk for the "check" target. The system "awk" is bad on
15280# some platforms.
15281# Always define AMTAR for backward compatibility.
15282
15283AMTAR=${AMTAR-"${am_missing_run}tar"}
15284
15285am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
15286
15287
15288
15289
15290depcc="$CC" am_compiler_list=
15291
15292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
15293$as_echo_n "checking dependency style of $depcc... " >&6; }
15294if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
15295 $as_echo_n "(cached) " >&6
15296else
15297 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15298 # We make a subdir and do the tests there. Otherwise we can end up
15299 # making bogus files that we don't know about and never remove. For
15300 # instance it was reported that on HP-UX the gcc test will end up
15301 # making a dummy file named `D' -- because `-MD' means `put the output
15302 # in D'.
15303 mkdir conftest.dir
15304 # Copy depcomp to subdir because otherwise we won't find it if we're
15305 # using a relative directory.
15306 cp "$am_depcomp" conftest.dir
15307 cd conftest.dir
15308 # We will build objects and dependencies in a subdirectory because
15309 # it helps to detect inapplicable dependency modes. For instance
15310 # both Tru64's cc and ICC support -MD to output dependencies as a
15311 # side effect of compilation, but ICC will put the dependencies in
15312 # the current directory while Tru64 will put them in the object
15313 # directory.
15314 mkdir sub
15315
15316 am_cv_CC_dependencies_compiler_type=none
15317 if test "$am_compiler_list" = ""; then
15318 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15319 fi
15320 am__universal=false
15321 case " $depcc " in #(
15322 *\ -arch\ *\ -arch\ *) am__universal=true ;;
15323 esac
15324
15325 for depmode in $am_compiler_list; do
15326 # Setup a source with many dependencies, because some compilers
15327 # like to wrap large dependency lists on column 80 (with \), and
15328 # we should not choose a depcomp mode which is confused by this.
15329 #
15330 # We need to recreate these files for each test, as the compiler may
15331 # overwrite some of them when testing with obscure command lines.
15332 # This happens at least with the AIX C compiler.
15333 : > sub/conftest.c
15334 for i in 1 2 3 4 5 6; do
15335 echo '#include "conftst'$i'.h"' >> sub/conftest.c
15336 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
15337 # Solaris 8's {/usr,}/bin/sh.
15338 touch sub/conftst$i.h
15339 done
15340 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15341
15342 # We check with `-c' and `-o' for the sake of the "dashmstdout"
15343 # mode. It turns out that the SunPro C++ compiler does not properly
15344 # handle `-M -o', and we need to detect this. Also, some Intel
15345 # versions had trouble with output in subdirs
15346 am__obj=sub/conftest.${OBJEXT-o}
15347 am__minus_obj="-o $am__obj"
15348 case $depmode in
15349 gcc)
15350 # This depmode causes a compiler race in universal mode.
15351 test "$am__universal" = false || continue
15352 ;;
15353 nosideeffect)
15354 # after this tag, mechanisms are not by side-effect, so they'll
15355 # only be used when explicitly requested
15356 if test "x$enable_dependency_tracking" = xyes; then
15357 continue
15358 else
15359 break
15360 fi
15361 ;;
15362 msvisualcpp | msvcmsys)
15363 # This compiler won't grok `-c -o', but also, the minuso test has
15364 # not run yet. These depmodes are late enough in the game, and
15365 # so weak that their functioning should not be impacted.
15366 am__obj=conftest.${OBJEXT-o}
15367 am__minus_obj=
15368 ;;
15369 none) break ;;
15370 esac
15371 if depmode=$depmode \
15372 source=sub/conftest.c object=$am__obj \
15373 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
15374 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
15375 >/dev/null 2>conftest.err &&
15376 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
15377 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
15378 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
15379 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
15380 # icc doesn't choke on unknown options, it will just issue warnings
15381 # or remarks (even with -Werror). So we grep stderr for any message
15382 # that says an option was ignored or not supported.
15383 # When given -MP, icc 7.0 and 7.1 complain thusly:
15384 # icc: Command line warning: ignoring option '-M'; no argument required
15385 # The diagnosis changed in icc 8.0:
15386 # icc: Command line remark: option '-MP' not supported
15387 if (grep 'ignoring option' conftest.err ||
15388 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
15389 am_cv_CC_dependencies_compiler_type=$depmode
15390 break
15391 fi
15392 fi
15393 done
15394
15395 cd ..
15396 rm -rf conftest.dir
15397else
15398 am_cv_CC_dependencies_compiler_type=none
15399fi
15400
15401fi
15402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
15403$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
15404CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
15405
15406 if
15407 test "x$enable_dependency_tracking" != xno \
15408 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
15409 am__fastdepCC_TRUE=
15410 am__fastdepCC_FALSE='#'
15411else
15412 am__fastdepCC_TRUE='#'
15413 am__fastdepCC_FALSE=
15414fi
15415
15416
15417
15418
15419# --------------------- #
15420# Checks for programs. #
15421# --------------------- #
15422
15423
15424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
15425$as_echo_n "checking whether ln -s works... " >&6; }
15426LN_S=$as_ln_s
15427if test "$LN_S" = "ln -s"; then
15428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15429$as_echo "yes" >&6; }
15430else
15431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
15432$as_echo "no, using $LN_S" >&6; }
15433fi
15434
15435if test -n "$ac_tool_prefix"; then
15436 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
15437set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15439$as_echo_n "checking for $ac_word... " >&6; }
15440if test "${ac_cv_prog_RANLIB+set}" = set; then :
15441 $as_echo_n "(cached) " >&6
15442else
15443 if test -n "$RANLIB"; then
15444 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15445else
15446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15447for as_dir in $PATH
15448do
15449 IFS=$as_save_IFS
15450 test -z "$as_dir" && as_dir=.
15451 for ac_exec_ext in '' $ac_executable_extensions; do
15452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15453 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
15454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15455 break 2
15456 fi
15457done
15458 done
15459IFS=$as_save_IFS
15460
15461fi
15462fi
15463RANLIB=$ac_cv_prog_RANLIB
15464if test -n "$RANLIB"; then
15465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
15466$as_echo "$RANLIB" >&6; }
15467else
15468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15469$as_echo "no" >&6; }
15470fi
15471
15472
15473fi
15474if test -z "$ac_cv_prog_RANLIB"; then
15475 ac_ct_RANLIB=$RANLIB
15476 # Extract the first word of "ranlib", so it can be a program name with args.
15477set dummy ranlib; ac_word=$2
15478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15479$as_echo_n "checking for $ac_word... " >&6; }
15480if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
15481 $as_echo_n "(cached) " >&6
15482else
15483 if test -n "$ac_ct_RANLIB"; then
15484 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15485else
15486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15487for as_dir in $PATH
15488do
15489 IFS=$as_save_IFS
15490 test -z "$as_dir" && as_dir=.
15491 for ac_exec_ext in '' $ac_executable_extensions; do
15492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15493 ac_cv_prog_ac_ct_RANLIB="ranlib"
15494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15495 break 2
15496 fi
15497done
15498 done
15499IFS=$as_save_IFS
15500
15501fi
15502fi
15503ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15504if test -n "$ac_ct_RANLIB"; then
15505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
15506$as_echo "$ac_ct_RANLIB" >&6; }
15507else
15508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15509$as_echo "no" >&6; }
15510fi
15511
15512 if test "x$ac_ct_RANLIB" = x; then
15513 RANLIB=":"
15514 else
15515 case $cross_compiling:$ac_tool_warned in
15516yes:)
15517{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15518$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15519ac_tool_warned=yes ;;
15520esac
15521 RANLIB=$ac_ct_RANLIB
15522 fi
15523else
15524 RANLIB="$ac_cv_prog_RANLIB"
15525fi
15526
15527
15528if test -n "$ac_tool_prefix"; then
15529 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
15530set dummy ${ac_tool_prefix}ar; ac_word=$2
15531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15532$as_echo_n "checking for $ac_word... " >&6; }
15533if test "${ac_cv_prog_AR+set}" = set; then :
15534 $as_echo_n "(cached) " >&6
15535else
15536 if test -n "$AR"; then
15537 ac_cv_prog_AR="$AR" # Let the user override the test.
15538else
15539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15540for as_dir in $PATH
15541do
15542 IFS=$as_save_IFS
15543 test -z "$as_dir" && as_dir=.
15544 for ac_exec_ext in '' $ac_executable_extensions; do
15545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15546 ac_cv_prog_AR="${ac_tool_prefix}ar"
15547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15548 break 2
15549 fi
15550done
15551 done
15552IFS=$as_save_IFS
15553
15554fi
15555fi
15556AR=$ac_cv_prog_AR
15557if test -n "$AR"; then
15558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
15559$as_echo "$AR" >&6; }
15560else
15561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15562$as_echo "no" >&6; }
15563fi
15564
15565
15566fi
15567if test -z "$ac_cv_prog_AR"; then
15568 ac_ct_AR=$AR
15569 # Extract the first word of "ar", so it can be a program name with args.
15570set dummy ar; ac_word=$2
15571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15572$as_echo_n "checking for $ac_word... " >&6; }
15573if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
15574 $as_echo_n "(cached) " >&6
15575else
15576 if test -n "$ac_ct_AR"; then
15577 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
15578else
15579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15580for as_dir in $PATH
15581do
15582 IFS=$as_save_IFS
15583 test -z "$as_dir" && as_dir=.
15584 for ac_exec_ext in '' $ac_executable_extensions; do
15585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15586 ac_cv_prog_ac_ct_AR="ar"
15587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15588 break 2
15589 fi
15590done
15591 done
15592IFS=$as_save_IFS
15593
15594fi
15595fi
15596ac_ct_AR=$ac_cv_prog_ac_ct_AR
15597if test -n "$ac_ct_AR"; then
15598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
15599$as_echo "$ac_ct_AR" >&6; }
15600else
15601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15602$as_echo "no" >&6; }
15603fi
15604
15605 if test "x$ac_ct_AR" = x; then
15606 AR=""
15607 else
15608 case $cross_compiling:$ac_tool_warned in
15609yes:)
15610{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15611$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15612ac_tool_warned=yes ;;
15613esac
15614 AR=$ac_ct_AR
15615 fi
15616else
15617 AR="$ac_cv_prog_AR"
15618fi
15619
15620
15621# ---------------------- #
15622# Checks for libraries. #
15623# ---------------------- #
15624
15625ac_config_files="$ac_config_files Makefile import/Makefile"
15626
15627ac_config_commands="$ac_config_commands default"
15628
15629cat >confcache <<\_ACEOF
15630# This file is a shell script that caches the results of configure
15631# tests run on this system so they can be shared between configure
15632# scripts and configure runs, see configure's option --config-cache.
15633# It is not useful on other systems. If it contains results you don't
15634# want to keep, you may remove or edit it.
15635#
15636# config.status only pays attention to the cache file if you give it
15637# the --recheck option to rerun configure.
15638#
15639# `ac_cv_env_foo' variables (set or unset) will be overridden when
15640# loading this file, other *unset* `ac_cv_foo' will be assigned the
15641# following values.
15642
15643_ACEOF
15644
15645# The following way of writing the cache mishandles newlines in values,
15646# but we know of no workaround that is simple, portable, and efficient.
15647# So, we kill variables containing newlines.
15648# Ultrix sh set writes to stderr and can't be redirected directly,
15649# and sets the high bit in the cache file unless we assign to the vars.
15650(
15651 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15652 eval ac_val=\$$ac_var
15653 case $ac_val in #(
15654 *${as_nl}*)
15655 case $ac_var in #(
15656 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15657$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15658 esac
15659 case $ac_var in #(
15660 _ | IFS | as_nl) ;; #(
15661 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15662 *) { eval $ac_var=; unset $ac_var;} ;;
15663 esac ;;
15664 esac
15665 done
15666
15667 (set) 2>&1 |
15668 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15669 *${as_nl}ac_space=\ *)
15670 # `set' does not quote correctly, so add quotes: double-quote
15671 # substitution turns \\\\ into \\, and sed turns \\ into \.
15672 sed -n \
15673 "s/'/'\\\\''/g;
15674 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15675 ;; #(
15676 *)
15677 # `set' quotes correctly as required by POSIX, so do not add quotes.
15678 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15679 ;;
15680 esac |
15681 sort
15682) |
15683 sed '
15684 /^ac_cv_env_/b end
15685 t clear
15686 :clear
15687 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15688 t end
15689 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15690 :end' >>confcache
15691if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15692 if test -w "$cache_file"; then
15693 test "x$cache_file" != "x/dev/null" &&
15694 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15695$as_echo "$as_me: updating cache $cache_file" >&6;}
15696 cat confcache >$cache_file
15697 else
15698 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15699$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15700 fi
15701fi
15702rm -f confcache
15703
15704test "x$prefix" = xNONE && prefix=$ac_default_prefix
15705# Let make expand exec_prefix.
15706test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15707
15708DEFS=-DHAVE_CONFIG_H
15709
15710ac_libobjs=
15711ac_ltlibobjs=
15712for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15713 # 1. Remove the extension, and $U if already installed.
15714 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15715 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15716 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15717 # will be set to the directory where LIBOBJS objects are built.
15718 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15719 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15720done
15721LIBOBJS=$ac_libobjs
15722
15723LTLIBOBJS=$ac_ltlibobjs
15724
15725
15726if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15727 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15728Usually this means the macro was only invoked conditionally." "$LINENO" 5
15729fi
15730if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
15731 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
15732Usually this means the macro was only invoked conditionally." "$LINENO" 5
15733fi
8690e634
JK
15734if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
15735 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
15736Usually this means the macro was only invoked conditionally." "$LINENO" 5
15737fi
88b48903
WN
15738if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
15739 as_fn_error "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
15740Usually this means the macro was only invoked conditionally." "$LINENO" 5
15741fi
8690e634
JK
15742if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
15743 as_fn_error "conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
15744Usually this means the macro was only invoked conditionally." "$LINENO" 5
15745fi
c971b7fa
PA
15746if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
15747 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
15748Usually this means the macro was only invoked conditionally." "$LINENO" 5
15749fi
88b48903
WN
15750
15751
8690e634
JK
15752if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
15753 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
15754Usually this means the macro was only invoked conditionally." "$LINENO" 5
15755fi
c971b7fa
PA
15756if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
15757 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
15758Usually this means the macro was only invoked conditionally." "$LINENO" 5
15759fi
15760
15761 gl_libobjs=
15762 gl_ltlibobjs=
15763 if test -n "$gl_LIBOBJS"; then
15764 # Remove the extension.
15765 sed_drop_objext='s/\.o$//;s/\.obj$//'
15766 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
15767 gl_libobjs="$gl_libobjs $i.$ac_objext"
15768 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
15769 done
15770 fi
15771 gl_LIBOBJS=$gl_libobjs
15772
15773 gl_LTLIBOBJS=$gl_ltlibobjs
15774
15775
15776
15777 gltests_libobjs=
15778 gltests_ltlibobjs=
15779 if test -n "$gltests_LIBOBJS"; then
15780 # Remove the extension.
15781 sed_drop_objext='s/\.o$//;s/\.obj$//'
15782 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
15783 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
15784 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
15785 done
15786 fi
15787 gltests_LIBOBJS=$gltests_libobjs
15788
15789 gltests_LTLIBOBJS=$gltests_ltlibobjs
15790
15791
15792if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15793 as_fn_error "conditional \"AMDEP\" was never defined.
15794Usually this means the macro was only invoked conditionally." "$LINENO" 5
15795fi
15796if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15797 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15798Usually this means the macro was only invoked conditionally." "$LINENO" 5
15799fi
15800 if test -n "$EXEEXT"; then
15801 am__EXEEXT_TRUE=
15802 am__EXEEXT_FALSE='#'
15803else
15804 am__EXEEXT_TRUE='#'
15805 am__EXEEXT_FALSE=
15806fi
15807
15808
15809: ${CONFIG_STATUS=./config.status}
15810ac_write_fail=0
15811ac_clean_files_save=$ac_clean_files
15812ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15813{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15814$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15815as_write_fail=0
15816cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15817#! $SHELL
15818# Generated by $as_me.
15819# Run this file to recreate the current configuration.
15820# Compiler output produced by configure, useful for debugging
15821# configure, is in config.log if it exists.
15822
15823debug=false
15824ac_cs_recheck=false
15825ac_cs_silent=false
15826
15827SHELL=\${CONFIG_SHELL-$SHELL}
15828export SHELL
15829_ASEOF
15830cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15831## -------------------- ##
15832## M4sh Initialization. ##
15833## -------------------- ##
15834
15835# Be more Bourne compatible
15836DUALCASE=1; export DUALCASE # for MKS sh
15837if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15838 emulate sh
15839 NULLCMD=:
15840 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15841 # is contrary to our usage. Disable this feature.
15842 alias -g '${1+"$@"}'='"$@"'
15843 setopt NO_GLOB_SUBST
15844else
15845 case `(set -o) 2>/dev/null` in #(
15846 *posix*) :
15847 set -o posix ;; #(
15848 *) :
15849 ;;
15850esac
15851fi
15852
15853
15854as_nl='
15855'
15856export as_nl
15857# Printing a long string crashes Solaris 7 /usr/bin/printf.
15858as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15859as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15860as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15861# Prefer a ksh shell builtin over an external printf program on Solaris,
15862# but without wasting forks for bash or zsh.
15863if test -z "$BASH_VERSION$ZSH_VERSION" \
15864 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15865 as_echo='print -r --'
15866 as_echo_n='print -rn --'
15867elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15868 as_echo='printf %s\n'
15869 as_echo_n='printf %s'
15870else
15871 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15872 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15873 as_echo_n='/usr/ucb/echo -n'
15874 else
15875 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15876 as_echo_n_body='eval
15877 arg=$1;
15878 case $arg in #(
15879 *"$as_nl"*)
15880 expr "X$arg" : "X\\(.*\\)$as_nl";
15881 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15882 esac;
15883 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15884 '
15885 export as_echo_n_body
15886 as_echo_n='sh -c $as_echo_n_body as_echo'
15887 fi
15888 export as_echo_body
15889 as_echo='sh -c $as_echo_body as_echo'
15890fi
15891
15892# The user is always right.
15893if test "${PATH_SEPARATOR+set}" != set; then
15894 PATH_SEPARATOR=:
15895 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15896 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15897 PATH_SEPARATOR=';'
15898 }
15899fi
15900
15901
15902# IFS
15903# We need space, tab and new line, in precisely that order. Quoting is
15904# there to prevent editors from complaining about space-tab.
15905# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15906# splitting by setting IFS to empty value.)
15907IFS=" "" $as_nl"
15908
15909# Find who we are. Look in the path if we contain no directory separator.
15910case $0 in #((
15911 *[\\/]* ) as_myself=$0 ;;
15912 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15913for as_dir in $PATH
15914do
15915 IFS=$as_save_IFS
15916 test -z "$as_dir" && as_dir=.
15917 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15918 done
15919IFS=$as_save_IFS
15920
15921 ;;
15922esac
15923# We did not find ourselves, most probably we were run as `sh COMMAND'
15924# in which case we are not to be found in the path.
15925if test "x$as_myself" = x; then
15926 as_myself=$0
15927fi
15928if test ! -f "$as_myself"; then
15929 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15930 exit 1
15931fi
15932
15933# Unset variables that we do not need and which cause bugs (e.g. in
15934# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15935# suppresses any "Segmentation fault" message there. '((' could
15936# trigger a bug in pdksh 5.2.14.
15937for as_var in BASH_ENV ENV MAIL MAILPATH
15938do eval test x\${$as_var+set} = xset \
15939 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15940done
15941PS1='$ '
15942PS2='> '
15943PS4='+ '
15944
15945# NLS nuisances.
15946LC_ALL=C
15947export LC_ALL
15948LANGUAGE=C
15949export LANGUAGE
15950
15951# CDPATH.
15952(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15953
15954
15955# as_fn_error ERROR [LINENO LOG_FD]
15956# ---------------------------------
15957# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15958# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15959# script with status $?, using 1 if that was 0.
15960as_fn_error ()
15961{
15962 as_status=$?; test $as_status -eq 0 && as_status=1
15963 if test "$3"; then
15964 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15965 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15966 fi
15967 $as_echo "$as_me: error: $1" >&2
15968 as_fn_exit $as_status
15969} # as_fn_error
15970
15971
15972# as_fn_set_status STATUS
15973# -----------------------
15974# Set $? to STATUS, without forking.
15975as_fn_set_status ()
15976{
15977 return $1
15978} # as_fn_set_status
15979
15980# as_fn_exit STATUS
15981# -----------------
15982# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15983as_fn_exit ()
15984{
15985 set +e
15986 as_fn_set_status $1
15987 exit $1
15988} # as_fn_exit
15989
15990# as_fn_unset VAR
15991# ---------------
15992# Portably unset VAR.
15993as_fn_unset ()
15994{
15995 { eval $1=; unset $1;}
15996}
15997as_unset=as_fn_unset
15998# as_fn_append VAR VALUE
15999# ----------------------
16000# Append the text in VALUE to the end of the definition contained in VAR. Take
16001# advantage of any shell optimizations that allow amortized linear growth over
16002# repeated appends, instead of the typical quadratic growth present in naive
16003# implementations.
16004if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16005 eval 'as_fn_append ()
16006 {
16007 eval $1+=\$2
16008 }'
16009else
16010 as_fn_append ()
16011 {
16012 eval $1=\$$1\$2
16013 }
16014fi # as_fn_append
16015
16016# as_fn_arith ARG...
16017# ------------------
16018# Perform arithmetic evaluation on the ARGs, and store the result in the
16019# global $as_val. Take advantage of shells that can avoid forks. The arguments
16020# must be portable across $(()) and expr.
16021if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16022 eval 'as_fn_arith ()
16023 {
16024 as_val=$(( $* ))
16025 }'
16026else
16027 as_fn_arith ()
16028 {
16029 as_val=`expr "$@" || test $? -eq 1`
16030 }
16031fi # as_fn_arith
16032
16033
16034if expr a : '\(a\)' >/dev/null 2>&1 &&
16035 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16036 as_expr=expr
16037else
16038 as_expr=false
16039fi
16040
16041if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16042 as_basename=basename
16043else
16044 as_basename=false
16045fi
16046
16047if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16048 as_dirname=dirname
16049else
16050 as_dirname=false
16051fi
16052
16053as_me=`$as_basename -- "$0" ||
16054$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16055 X"$0" : 'X\(//\)$' \| \
16056 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16057$as_echo X/"$0" |
16058 sed '/^.*\/\([^/][^/]*\)\/*$/{
16059 s//\1/
16060 q
16061 }
16062 /^X\/\(\/\/\)$/{
16063 s//\1/
16064 q
16065 }
16066 /^X\/\(\/\).*/{
16067 s//\1/
16068 q
16069 }
16070 s/.*/./; q'`
16071
16072# Avoid depending upon Character Ranges.
16073as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16074as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16075as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16076as_cr_digits='0123456789'
16077as_cr_alnum=$as_cr_Letters$as_cr_digits
16078
16079ECHO_C= ECHO_N= ECHO_T=
16080case `echo -n x` in #(((((
16081-n*)
16082 case `echo 'xy\c'` in
16083 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16084 xy) ECHO_C='\c';;
16085 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16086 ECHO_T=' ';;
16087 esac;;
16088*)
16089 ECHO_N='-n';;
16090esac
16091
16092rm -f conf$$ conf$$.exe conf$$.file
16093if test -d conf$$.dir; then
16094 rm -f conf$$.dir/conf$$.file
16095else
16096 rm -f conf$$.dir
16097 mkdir conf$$.dir 2>/dev/null
16098fi
16099if (echo >conf$$.file) 2>/dev/null; then
16100 if ln -s conf$$.file conf$$ 2>/dev/null; then
16101 as_ln_s='ln -s'
16102 # ... but there are two gotchas:
16103 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16104 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16105 # In both cases, we have to default to `cp -p'.
16106 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16107 as_ln_s='cp -p'
16108 elif ln conf$$.file conf$$ 2>/dev/null; then
16109 as_ln_s=ln
16110 else
16111 as_ln_s='cp -p'
16112 fi
16113else
16114 as_ln_s='cp -p'
16115fi
16116rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16117rmdir conf$$.dir 2>/dev/null
16118
16119
16120# as_fn_mkdir_p
16121# -------------
16122# Create "$as_dir" as a directory, including parents if necessary.
16123as_fn_mkdir_p ()
16124{
16125
16126 case $as_dir in #(
16127 -*) as_dir=./$as_dir;;
16128 esac
16129 test -d "$as_dir" || eval $as_mkdir_p || {
16130 as_dirs=
16131 while :; do
16132 case $as_dir in #(
16133 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16134 *) as_qdir=$as_dir;;
16135 esac
16136 as_dirs="'$as_qdir' $as_dirs"
16137 as_dir=`$as_dirname -- "$as_dir" ||
16138$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16139 X"$as_dir" : 'X\(//\)[^/]' \| \
16140 X"$as_dir" : 'X\(//\)$' \| \
16141 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16142$as_echo X"$as_dir" |
16143 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16144 s//\1/
16145 q
16146 }
16147 /^X\(\/\/\)[^/].*/{
16148 s//\1/
16149 q
16150 }
16151 /^X\(\/\/\)$/{
16152 s//\1/
16153 q
16154 }
16155 /^X\(\/\).*/{
16156 s//\1/
16157 q
16158 }
16159 s/.*/./; q'`
16160 test -d "$as_dir" && break
16161 done
16162 test -z "$as_dirs" || eval "mkdir $as_dirs"
16163 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16164
16165
16166} # as_fn_mkdir_p
16167if mkdir -p . 2>/dev/null; then
16168 as_mkdir_p='mkdir -p "$as_dir"'
16169else
16170 test -d ./-p && rmdir ./-p
16171 as_mkdir_p=false
16172fi
16173
16174if test -x / >/dev/null 2>&1; then
16175 as_test_x='test -x'
16176else
16177 if ls -dL / >/dev/null 2>&1; then
16178 as_ls_L_option=L
16179 else
16180 as_ls_L_option=
16181 fi
16182 as_test_x='
16183 eval sh -c '\''
16184 if test -d "$1"; then
16185 test -d "$1/.";
16186 else
16187 case $1 in #(
16188 -*)set "./$1";;
16189 esac;
16190 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16191 ???[sx]*):;;*)false;;esac;fi
16192 '\'' sh
16193 '
16194fi
16195as_executable_p=$as_test_x
16196
16197# Sed expression to map a string onto a valid CPP name.
16198as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16199
16200# Sed expression to map a string onto a valid variable name.
16201as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16202
16203
16204exec 6>&1
16205## ----------------------------------- ##
16206## Main body of $CONFIG_STATUS script. ##
16207## ----------------------------------- ##
16208_ASEOF
16209test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16210
16211cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16212# Save the log message, to keep $0 and so on meaningful, and to
16213# report actual input values of CONFIG_FILES etc. instead of their
16214# values after options handling.
16215ac_log="
16216This file was extended by $as_me, which was
16217generated by GNU Autoconf 2.64. Invocation command line was
16218
16219 CONFIG_FILES = $CONFIG_FILES
16220 CONFIG_HEADERS = $CONFIG_HEADERS
16221 CONFIG_LINKS = $CONFIG_LINKS
16222 CONFIG_COMMANDS = $CONFIG_COMMANDS
16223 $ $0 $@
16224
16225on `(hostname || uname -n) 2>/dev/null | sed 1q`
16226"
16227
16228_ACEOF
16229
16230case $ac_config_files in *"
16231"*) set x $ac_config_files; shift; ac_config_files=$*;;
16232esac
16233
16234case $ac_config_headers in *"
16235"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16236esac
16237
16238
16239cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16240# Files that config.status was made for.
16241config_files="$ac_config_files"
16242config_headers="$ac_config_headers"
16243config_commands="$ac_config_commands"
16244
16245_ACEOF
16246
16247cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16248ac_cs_usage="\
16249\`$as_me' instantiates files and other configuration actions
16250from templates according to the current configuration. Unless the files
16251and actions are specified as TAGs, all are instantiated by default.
16252
16253Usage: $0 [OPTION]... [TAG]...
16254
16255 -h, --help print this help, then exit
16256 -V, --version print version number and configuration settings, then exit
16257 -q, --quiet, --silent
16258 do not print progress messages
16259 -d, --debug don't remove temporary files
16260 --recheck update $as_me by reconfiguring in the same conditions
16261 --file=FILE[:TEMPLATE]
16262 instantiate the configuration file FILE
16263 --header=FILE[:TEMPLATE]
16264 instantiate the configuration header FILE
16265
16266Configuration files:
16267$config_files
16268
16269Configuration headers:
16270$config_headers
16271
16272Configuration commands:
16273$config_commands
16274
16275Report bugs to the package provider."
16276
16277_ACEOF
16278cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16279ac_cs_version="\\
16280config.status
16281configured by $0, generated by GNU Autoconf 2.64,
16282 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16283
16284Copyright (C) 2009 Free Software Foundation, Inc.
16285This config.status script is free software; the Free Software Foundation
16286gives unlimited permission to copy, distribute and modify it."
16287
16288ac_pwd='$ac_pwd'
16289srcdir='$srcdir'
16290INSTALL='$INSTALL'
16291MKDIR_P='$MKDIR_P'
16292AWK='$AWK'
16293test -n "\$AWK" || AWK=awk
16294_ACEOF
16295
16296cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16297# The default lists apply if the user does not specify any file.
16298ac_need_defaults=:
16299while test $# != 0
16300do
16301 case $1 in
16302 --*=*)
16303 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16304 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16305 ac_shift=:
16306 ;;
16307 *)
16308 ac_option=$1
16309 ac_optarg=$2
16310 ac_shift=shift
16311 ;;
16312 esac
16313
16314 case $ac_option in
16315 # Handling of the options.
16316 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16317 ac_cs_recheck=: ;;
16318 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16319 $as_echo "$ac_cs_version"; exit ;;
16320 --debug | --debu | --deb | --de | --d | -d )
16321 debug=: ;;
16322 --file | --fil | --fi | --f )
16323 $ac_shift
16324 case $ac_optarg in
16325 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16326 esac
16327 as_fn_append CONFIG_FILES " '$ac_optarg'"
16328 ac_need_defaults=false;;
16329 --header | --heade | --head | --hea )
16330 $ac_shift
16331 case $ac_optarg in
16332 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16333 esac
16334 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16335 ac_need_defaults=false;;
16336 --he | --h)
16337 # Conflict between --help and --header
16338 as_fn_error "ambiguous option: \`$1'
16339Try \`$0 --help' for more information.";;
16340 --help | --hel | -h )
16341 $as_echo "$ac_cs_usage"; exit ;;
16342 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16343 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16344 ac_cs_silent=: ;;
16345
16346 # This is an error.
16347 -*) as_fn_error "unrecognized option: \`$1'
16348Try \`$0 --help' for more information." ;;
16349
16350 *) as_fn_append ac_config_targets " $1"
16351 ac_need_defaults=false ;;
16352
16353 esac
16354 shift
16355done
16356
16357ac_configure_extra_args=
16358
16359if $ac_cs_silent; then
16360 exec 6>/dev/null
16361 ac_configure_extra_args="$ac_configure_extra_args --silent"
16362fi
16363
16364_ACEOF
16365cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16366if \$ac_cs_recheck; then
16367 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16368 shift
16369 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16370 CONFIG_SHELL='$SHELL'
16371 export CONFIG_SHELL
16372 exec "\$@"
16373fi
16374
16375_ACEOF
16376cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16377exec 5>>config.log
16378{
16379 echo
16380 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16381## Running $as_me. ##
16382_ASBOX
16383 $as_echo "$ac_log"
16384} >&5
16385
16386_ACEOF
16387cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16388#
16389# INIT-COMMANDS
16390#
16391AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16392
16393_ACEOF
16394
16395cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16396
16397# Handling of arguments.
16398for ac_config_target in $ac_config_targets
16399do
16400 case $ac_config_target in
16401 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
16402 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16403 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16404 "import/Makefile") CONFIG_FILES="$CONFIG_FILES import/Makefile" ;;
16405 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16406
16407 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16408 esac
16409done
16410
16411
16412# If the user did not use the arguments to specify the items to instantiate,
16413# then the envvar interface is used. Set only those that are not.
16414# We use the long form for the default assignment because of an extremely
16415# bizarre bug on SunOS 4.1.3.
16416if $ac_need_defaults; then
16417 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16418 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16419 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16420fi
16421
16422# Have a temporary directory for convenience. Make it in the build tree
16423# simply because there is no reason against having it here, and in addition,
16424# creating and moving files from /tmp can sometimes cause problems.
16425# Hook for its removal unless debugging.
16426# Note that there is a small window in which the directory will not be cleaned:
16427# after its creation but before its name has been assigned to `$tmp'.
16428$debug ||
16429{
16430 tmp=
16431 trap 'exit_status=$?
16432 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16433' 0
16434 trap 'as_fn_exit 1' 1 2 13 15
16435}
16436# Create a (secure) tmp directory for tmp files.
16437
16438{
16439 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16440 test -n "$tmp" && test -d "$tmp"
16441} ||
16442{
16443 tmp=./conf$$-$RANDOM
16444 (umask 077 && mkdir "$tmp")
16445} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16446
16447# Set up the scripts for CONFIG_FILES section.
16448# No need to generate them if there are no CONFIG_FILES.
16449# This happens for instance with `./config.status config.h'.
16450if test -n "$CONFIG_FILES"; then
16451
16452
16453ac_cr=`echo X | tr X '\015'`
16454# On cygwin, bash can eat \r inside `` if the user requested igncr.
16455# But we know of no other shell where ac_cr would be empty at this
16456# point, so we can use a bashism as a fallback.
16457if test "x$ac_cr" = x; then
16458 eval ac_cr=\$\'\\r\'
16459fi
16460ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16461if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16462 ac_cs_awk_cr='\r'
16463else
16464 ac_cs_awk_cr=$ac_cr
16465fi
16466
16467echo 'BEGIN {' >"$tmp/subs1.awk" &&
16468_ACEOF
16469
16470
16471{
16472 echo "cat >conf$$subs.awk <<_ACEOF" &&
16473 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16474 echo "_ACEOF"
16475} >conf$$subs.sh ||
16476 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16477ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16478ac_delim='%!_!# '
16479for ac_last_try in false false false false false :; do
16480 . ./conf$$subs.sh ||
16481 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16482
16483 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16484 if test $ac_delim_n = $ac_delim_num; then
16485 break
16486 elif $ac_last_try; then
16487 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16488 else
16489 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16490 fi
16491done
16492rm -f conf$$subs.sh
16493
16494cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16495cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16496_ACEOF
16497sed -n '
16498h
16499s/^/S["/; s/!.*/"]=/
16500p
16501g
16502s/^[^!]*!//
16503:repl
16504t repl
16505s/'"$ac_delim"'$//
16506t delim
16507:nl
16508h
16509s/\(.\{148\}\).*/\1/
16510t more1
16511s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16512p
16513n
16514b repl
16515:more1
16516s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16517p
16518g
16519s/.\{148\}//
16520t nl
16521:delim
16522h
16523s/\(.\{148\}\).*/\1/
16524t more2
16525s/["\\]/\\&/g; s/^/"/; s/$/"/
16526p
16527b
16528:more2
16529s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16530p
16531g
16532s/.\{148\}//
16533t delim
16534' <conf$$subs.awk | sed '
16535/^[^""]/{
16536 N
16537 s/\n//
16538}
16539' >>$CONFIG_STATUS || ac_write_fail=1
16540rm -f conf$$subs.awk
16541cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16542_ACAWK
16543cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16544 for (key in S) S_is_set[key] = 1
16545 FS = "\a"
16546
16547}
16548{
16549 line = $ 0
16550 nfields = split(line, field, "@")
16551 substed = 0
16552 len = length(field[1])
16553 for (i = 2; i < nfields; i++) {
16554 key = field[i]
16555 keylen = length(key)
16556 if (S_is_set[key]) {
16557 value = S[key]
16558 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16559 len += length(value) + length(field[++i])
16560 substed = 1
16561 } else
16562 len += 1 + keylen
16563 }
16564
16565 print line
16566}
16567
16568_ACAWK
16569_ACEOF
16570cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16571if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16572 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16573else
16574 cat
16575fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16576 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16577_ACEOF
16578
16579# VPATH may cause trouble with some makes, so we remove $(srcdir),
16580# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16581# trailing colons and then remove the whole line if VPATH becomes empty
16582# (actually we leave an empty line to preserve line numbers).
16583if test "x$srcdir" = x.; then
16584 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16585s/:*\$(srcdir):*/:/
16586s/:*\${srcdir}:*/:/
16587s/:*@srcdir@:*/:/
16588s/^\([^=]*=[ ]*\):*/\1/
16589s/:*$//
16590s/^[^=]*=[ ]*$//
16591}'
16592fi
16593
16594cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16595fi # test -n "$CONFIG_FILES"
16596
16597# Set up the scripts for CONFIG_HEADERS section.
16598# No need to generate them if there are no CONFIG_HEADERS.
16599# This happens for instance with `./config.status Makefile'.
16600if test -n "$CONFIG_HEADERS"; then
16601cat >"$tmp/defines.awk" <<\_ACAWK ||
16602BEGIN {
16603_ACEOF
16604
16605# Transform confdefs.h into an awk script `defines.awk', embedded as
16606# here-document in config.status, that substitutes the proper values into
16607# config.h.in to produce config.h.
16608
16609# Create a delimiter string that does not exist in confdefs.h, to ease
16610# handling of long lines.
16611ac_delim='%!_!# '
16612for ac_last_try in false false :; do
16613 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16614 if test -z "$ac_t"; then
16615 break
16616 elif $ac_last_try; then
16617 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16618 else
16619 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16620 fi
16621done
16622
16623# For the awk script, D is an array of macro values keyed by name,
16624# likewise P contains macro parameters if any. Preserve backslash
16625# newline sequences.
16626
16627ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16628sed -n '
16629s/.\{148\}/&'"$ac_delim"'/g
16630t rset
16631:rset
16632s/^[ ]*#[ ]*define[ ][ ]*/ /
16633t def
16634d
16635:def
16636s/\\$//
16637t bsnl
16638s/["\\]/\\&/g
16639s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16640D["\1"]=" \3"/p
16641s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16642d
16643:bsnl
16644s/["\\]/\\&/g
16645s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16646D["\1"]=" \3\\\\\\n"\\/p
16647t cont
16648s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16649t cont
16650d
16651:cont
16652n
16653s/.\{148\}/&'"$ac_delim"'/g
16654t clear
16655:clear
16656s/\\$//
16657t bsnlc
16658s/["\\]/\\&/g; s/^/"/; s/$/"/p
16659d
16660:bsnlc
16661s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16662b cont
16663' <confdefs.h | sed '
16664s/'"$ac_delim"'/"\\\
16665"/g' >>$CONFIG_STATUS || ac_write_fail=1
16666
16667cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16668 for (key in D) D_is_set[key] = 1
16669 FS = "\a"
16670}
16671/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16672 line = \$ 0
16673 split(line, arg, " ")
16674 if (arg[1] == "#") {
16675 defundef = arg[2]
16676 mac1 = arg[3]
16677 } else {
16678 defundef = substr(arg[1], 2)
16679 mac1 = arg[2]
16680 }
16681 split(mac1, mac2, "(") #)
16682 macro = mac2[1]
16683 prefix = substr(line, 1, index(line, defundef) - 1)
16684 if (D_is_set[macro]) {
16685 # Preserve the white space surrounding the "#".
16686 print prefix "define", macro P[macro] D[macro]
16687 next
16688 } else {
16689 # Replace #undef with comments. This is necessary, for example,
16690 # in the case of _POSIX_SOURCE, which is predefined and required
16691 # on some systems where configure will not decide to define it.
16692 if (defundef == "undef") {
16693 print "/*", prefix defundef, macro, "*/"
16694 next
16695 }
16696 }
16697}
16698{ print }
16699_ACAWK
16700_ACEOF
16701cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16702 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16703fi # test -n "$CONFIG_HEADERS"
16704
16705
16706eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16707shift
16708for ac_tag
16709do
16710 case $ac_tag in
16711 :[FHLC]) ac_mode=$ac_tag; continue;;
16712 esac
16713 case $ac_mode$ac_tag in
16714 :[FHL]*:*);;
16715 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16716 :[FH]-) ac_tag=-:-;;
16717 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16718 esac
16719 ac_save_IFS=$IFS
16720 IFS=:
16721 set x $ac_tag
16722 IFS=$ac_save_IFS
16723 shift
16724 ac_file=$1
16725 shift
16726
16727 case $ac_mode in
16728 :L) ac_source=$1;;
16729 :[FH])
16730 ac_file_inputs=
16731 for ac_f
16732 do
16733 case $ac_f in
16734 -) ac_f="$tmp/stdin";;
16735 *) # Look for the file first in the build tree, then in the source tree
16736 # (if the path is not absolute). The absolute path cannot be DOS-style,
16737 # because $ac_f cannot contain `:'.
16738 test -f "$ac_f" ||
16739 case $ac_f in
16740 [\\/$]*) false;;
16741 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16742 esac ||
16743 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16744 esac
16745 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16746 as_fn_append ac_file_inputs " '$ac_f'"
16747 done
16748
16749 # Let's still pretend it is `configure' which instantiates (i.e., don't
16750 # use $as_me), people would be surprised to read:
16751 # /* config.h. Generated by config.status. */
16752 configure_input='Generated from '`
16753 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16754 `' by configure.'
16755 if test x"$ac_file" != x-; then
16756 configure_input="$ac_file. $configure_input"
16757 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16758$as_echo "$as_me: creating $ac_file" >&6;}
16759 fi
16760 # Neutralize special characters interpreted by sed in replacement strings.
16761 case $configure_input in #(
16762 *\&* | *\|* | *\\* )
16763 ac_sed_conf_input=`$as_echo "$configure_input" |
16764 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16765 *) ac_sed_conf_input=$configure_input;;
16766 esac
16767
16768 case $ac_tag in
16769 *:-:* | *:-) cat >"$tmp/stdin" \
16770 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16771 esac
16772 ;;
16773 esac
16774
16775 ac_dir=`$as_dirname -- "$ac_file" ||
16776$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16777 X"$ac_file" : 'X\(//\)[^/]' \| \
16778 X"$ac_file" : 'X\(//\)$' \| \
16779 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16780$as_echo X"$ac_file" |
16781 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16782 s//\1/
16783 q
16784 }
16785 /^X\(\/\/\)[^/].*/{
16786 s//\1/
16787 q
16788 }
16789 /^X\(\/\/\)$/{
16790 s//\1/
16791 q
16792 }
16793 /^X\(\/\).*/{
16794 s//\1/
16795 q
16796 }
16797 s/.*/./; q'`
16798 as_dir="$ac_dir"; as_fn_mkdir_p
16799 ac_builddir=.
16800
16801case "$ac_dir" in
16802.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16803*)
16804 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16805 # A ".." for each directory in $ac_dir_suffix.
16806 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16807 case $ac_top_builddir_sub in
16808 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16809 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16810 esac ;;
16811esac
16812ac_abs_top_builddir=$ac_pwd
16813ac_abs_builddir=$ac_pwd$ac_dir_suffix
16814# for backward compatibility:
16815ac_top_builddir=$ac_top_build_prefix
16816
16817case $srcdir in
16818 .) # We are building in place.
16819 ac_srcdir=.
16820 ac_top_srcdir=$ac_top_builddir_sub
16821 ac_abs_top_srcdir=$ac_pwd ;;
16822 [\\/]* | ?:[\\/]* ) # Absolute name.
16823 ac_srcdir=$srcdir$ac_dir_suffix;
16824 ac_top_srcdir=$srcdir
16825 ac_abs_top_srcdir=$srcdir ;;
16826 *) # Relative name.
16827 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16828 ac_top_srcdir=$ac_top_build_prefix$srcdir
16829 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16830esac
16831ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16832
16833
16834 case $ac_mode in
16835 :F)
16836 #
16837 # CONFIG_FILE
16838 #
16839
16840 case $INSTALL in
16841 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16842 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16843 esac
16844 ac_MKDIR_P=$MKDIR_P
16845 case $MKDIR_P in
16846 [\\/$]* | ?:[\\/]* ) ;;
16847 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16848 esac
16849_ACEOF
16850
16851cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16852# If the template does not know about datarootdir, expand it.
16853# FIXME: This hack should be removed a few years after 2.60.
16854ac_datarootdir_hack=; ac_datarootdir_seen=
16855ac_sed_dataroot='
16856/datarootdir/ {
16857 p
16858 q
16859}
16860/@datadir@/p
16861/@docdir@/p
16862/@infodir@/p
16863/@localedir@/p
16864/@mandir@/p'
16865case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16866*datarootdir*) ac_datarootdir_seen=yes;;
16867*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16869$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16870_ACEOF
16871cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16872 ac_datarootdir_hack='
16873 s&@datadir@&$datadir&g
16874 s&@docdir@&$docdir&g
16875 s&@infodir@&$infodir&g
16876 s&@localedir@&$localedir&g
16877 s&@mandir@&$mandir&g
16878 s&\\\${datarootdir}&$datarootdir&g' ;;
16879esac
16880_ACEOF
16881
16882# Neutralize VPATH when `$srcdir' = `.'.
16883# Shell code in configure.ac might set extrasub.
16884# FIXME: do we really want to maintain this feature?
16885cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16886ac_sed_extra="$ac_vpsub
16887$extrasub
16888_ACEOF
16889cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16890:t
16891/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16892s|@configure_input@|$ac_sed_conf_input|;t t
16893s&@top_builddir@&$ac_top_builddir_sub&;t t
16894s&@top_build_prefix@&$ac_top_build_prefix&;t t
16895s&@srcdir@&$ac_srcdir&;t t
16896s&@abs_srcdir@&$ac_abs_srcdir&;t t
16897s&@top_srcdir@&$ac_top_srcdir&;t t
16898s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16899s&@builddir@&$ac_builddir&;t t
16900s&@abs_builddir@&$ac_abs_builddir&;t t
16901s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16902s&@INSTALL@&$ac_INSTALL&;t t
16903s&@MKDIR_P@&$ac_MKDIR_P&;t t
16904$ac_datarootdir_hack
16905"
16906eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16907 || as_fn_error "could not create $ac_file" "$LINENO" 5
16908
16909test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16910 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16911 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16913which seems to be undefined. Please make sure it is defined." >&5
16914$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16915which seems to be undefined. Please make sure it is defined." >&2;}
16916
16917 rm -f "$tmp/stdin"
16918 case $ac_file in
16919 -) cat "$tmp/out" && rm -f "$tmp/out";;
16920 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16921 esac \
16922 || as_fn_error "could not create $ac_file" "$LINENO" 5
16923 ;;
16924 :H)
16925 #
16926 # CONFIG_HEADER
16927 #
16928 if test x"$ac_file" != x-; then
16929 {
16930 $as_echo "/* $configure_input */" \
16931 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16932 } >"$tmp/config.h" \
16933 || as_fn_error "could not create $ac_file" "$LINENO" 5
16934 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16935 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16936$as_echo "$as_me: $ac_file is unchanged" >&6;}
16937 else
16938 rm -f "$ac_file"
16939 mv "$tmp/config.h" "$ac_file" \
16940 || as_fn_error "could not create $ac_file" "$LINENO" 5
16941 fi
16942 else
16943 $as_echo "/* $configure_input */" \
16944 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16945 || as_fn_error "could not create -" "$LINENO" 5
16946 fi
16947# Compute "$ac_file"'s index in $config_headers.
16948_am_arg="$ac_file"
16949_am_stamp_count=1
16950for _am_header in $config_headers :; do
16951 case $_am_header in
16952 $_am_arg | $_am_arg:* )
16953 break ;;
16954 * )
16955 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16956 esac
16957done
16958echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16959$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16960 X"$_am_arg" : 'X\(//\)[^/]' \| \
16961 X"$_am_arg" : 'X\(//\)$' \| \
16962 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16963$as_echo X"$_am_arg" |
16964 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16965 s//\1/
16966 q
16967 }
16968 /^X\(\/\/\)[^/].*/{
16969 s//\1/
16970 q
16971 }
16972 /^X\(\/\/\)$/{
16973 s//\1/
16974 q
16975 }
16976 /^X\(\/\).*/{
16977 s//\1/
16978 q
16979 }
16980 s/.*/./; q'`/stamp-h$_am_stamp_count
16981 ;;
16982
16983 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16984$as_echo "$as_me: executing $ac_file commands" >&6;}
16985 ;;
16986 esac
16987
16988
16989 case $ac_file$ac_mode in
16990 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16991 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16992 # are listed without --file. Let's play safe and only enable the eval
16993 # if we detect the quoting.
16994 case $CONFIG_FILES in
16995 *\'*) eval set x "$CONFIG_FILES" ;;
16996 *) set x $CONFIG_FILES ;;
16997 esac
16998 shift
16999 for mf
17000 do
17001 # Strip MF so we end up with the name of the file.
17002 mf=`echo "$mf" | sed -e 's/:.*$//'`
17003 # Check whether this is an Automake generated Makefile or not.
17004 # We used to match only the files named `Makefile.in', but
17005 # some people rename them; so instead we look at the file content.
17006 # Grep'ing the first line is not enough: some people post-process
17007 # each Makefile.in and add a new line on top of each file to say so.
17008 # Grep'ing the whole file is not good either: AIX grep has a line
17009 # limit of 2048, but all sed's we know have understand at least 4000.
17010 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17011 dirpart=`$as_dirname -- "$mf" ||
17012$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17013 X"$mf" : 'X\(//\)[^/]' \| \
17014 X"$mf" : 'X\(//\)$' \| \
17015 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17016$as_echo X"$mf" |
17017 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17018 s//\1/
17019 q
17020 }
17021 /^X\(\/\/\)[^/].*/{
17022 s//\1/
17023 q
17024 }
17025 /^X\(\/\/\)$/{
17026 s//\1/
17027 q
17028 }
17029 /^X\(\/\).*/{
17030 s//\1/
17031 q
17032 }
17033 s/.*/./; q'`
17034 else
17035 continue
17036 fi
17037 # Extract the definition of DEPDIR, am__include, and am__quote
17038 # from the Makefile without running `make'.
17039 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17040 test -z "$DEPDIR" && continue
17041 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17042 test -z "am__include" && continue
17043 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17044 # When using ansi2knr, U may be empty or an underscore; expand it
17045 U=`sed -n 's/^U = //p' < "$mf"`
17046 # Find all dependency output files, they are included files with
17047 # $(DEPDIR) in their names. We invoke sed twice because it is the
17048 # simplest approach to changing $(DEPDIR) to its actual value in the
17049 # expansion.
17050 for file in `sed -n "
17051 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17052 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17053 # Make sure the directory exists.
17054 test -f "$dirpart/$file" && continue
17055 fdir=`$as_dirname -- "$file" ||
17056$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17057 X"$file" : 'X\(//\)[^/]' \| \
17058 X"$file" : 'X\(//\)$' \| \
17059 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17060$as_echo X"$file" |
17061 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17062 s//\1/
17063 q
17064 }
17065 /^X\(\/\/\)[^/].*/{
17066 s//\1/
17067 q
17068 }
17069 /^X\(\/\/\)$/{
17070 s//\1/
17071 q
17072 }
17073 /^X\(\/\).*/{
17074 s//\1/
17075 q
17076 }
17077 s/.*/./; q'`
17078 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17079 # echo "creating $dirpart/$file"
17080 echo '# dummy' > "$dirpart/$file"
17081 done
17082 done
17083}
17084 ;;
17085 "default":C)
17086case x$CONFIG_HEADERS in
17087xconfig.h:config.in)
17088echo > stamp-h ;;
17089esac
17090 ;;
17091
17092 esac
17093done # for ac_tag
17094
17095
17096as_fn_exit 0
17097_ACEOF
17098ac_clean_files=$ac_clean_files_save
17099
17100test $ac_write_fail = 0 ||
17101 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17102
17103
17104# configure is writing to config.log, and then calls config.status.
17105# config.status does its own redirection, appending to config.log.
17106# Unfortunately, on DOS this fails, as config.log is still kept open
17107# by configure, so config.status won't be able to write to it; its
17108# output is simply discarded. So we exec the FD to /dev/null,
17109# effectively closing config.log, so it can be properly (re)opened and
17110# appended to by config.status. When coming back to configure, we
17111# need to make the FD available again.
17112if test "$no_create" != yes; then
17113 ac_cs_success=:
17114 ac_config_status_args=
17115 test "$silent" = yes &&
17116 ac_config_status_args="$ac_config_status_args --quiet"
17117 exec 5>/dev/null
17118 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17119 exec 5>>config.log
17120 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17121 # would make configure fail if this is the last instruction.
17122 $ac_cs_success || as_fn_exit $?
17123fi
17124if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17126$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17127fi
17128
17129
17130exit 0
This page took 0.972003 seconds and 4 git commands to generate.