sys/types.h cleanup
[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
63ce7108
TT
659MKDIR_P
660WINDOWS_64_BIT_OFF_T
661NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
662NEXT_SYS_TYPES_H
663NEXT_AS_FIRST_DIRECTIVE_STRING_H
664NEXT_STRING_H
665HAVE_WINSOCK2_H
c971b7fa
PA
666NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
667NEXT_STDDEF_H
668GL_GENERATE_STDDEF_H_FALSE
669GL_GENERATE_STDDEF_H_TRUE
670STDDEF_H
671HAVE_WCHAR_T
672REPLACE_NULL
8690e634
JK
673HAVE__BOOL
674GL_GENERATE_STDBOOL_H_FALSE
675GL_GENERATE_STDBOOL_H_TRUE
676STDBOOL_H
c971b7fa
PA
677UNDEFINE_STRTOK_R
678REPLACE_STRTOK_R
679REPLACE_STRSIGNAL
680REPLACE_STRNLEN
681REPLACE_STRNDUP
682REPLACE_STRNCAT
683REPLACE_STRERROR_R
684REPLACE_STRERROR
685REPLACE_STRCHRNUL
686REPLACE_STRCASESTR
687REPLACE_STRSTR
688REPLACE_STRDUP
689REPLACE_STPNCPY
690REPLACE_MEMMEM
691REPLACE_MEMCHR
692HAVE_STRVERSCMP
693HAVE_DECL_STRSIGNAL
694HAVE_DECL_STRERROR_R
695HAVE_DECL_STRTOK_R
696HAVE_STRCASESTR
697HAVE_STRSEP
698HAVE_STRPBRK
699HAVE_DECL_STRNLEN
700HAVE_DECL_STRNDUP
701HAVE_DECL_STRDUP
702HAVE_STRCHRNUL
703HAVE_STPNCPY
704HAVE_STPCPY
705HAVE_RAWMEMCHR
706HAVE_DECL_MEMRCHR
707HAVE_MEMPCPY
708HAVE_DECL_MEMMEM
709HAVE_MEMCHR
710HAVE_FFSLL
711HAVE_FFSL
712HAVE_MBSLEN
713GNULIB_STRVERSCMP
714GNULIB_STRSIGNAL
715GNULIB_STRERROR_R
716GNULIB_STRERROR
717GNULIB_MBSTOK_R
718GNULIB_MBSSEP
719GNULIB_MBSSPN
720GNULIB_MBSPBRK
721GNULIB_MBSCSPN
722GNULIB_MBSCASESTR
723GNULIB_MBSPCASECMP
724GNULIB_MBSNCASECMP
725GNULIB_MBSCASECMP
726GNULIB_MBSSTR
727GNULIB_MBSRCHR
728GNULIB_MBSCHR
729GNULIB_MBSNLEN
730GNULIB_MBSLEN
731GNULIB_STRTOK_R
732GNULIB_STRCASESTR
733GNULIB_STRSTR
734GNULIB_STRSEP
735GNULIB_STRPBRK
736GNULIB_STRNLEN
737GNULIB_STRNDUP
738GNULIB_STRNCAT
739GNULIB_STRDUP
740GNULIB_STRCHRNUL
741GNULIB_STPNCPY
742GNULIB_STPCPY
743GNULIB_RAWMEMCHR
744GNULIB_MEMRCHR
745GNULIB_MEMPCPY
746GNULIB_MEMMEM
747GNULIB_MEMCHR
748GNULIB_FFSLL
749GNULIB_FFSL
8690e634
JK
750LOCALE_FR
751LOCALE_FR_UTF8
752LOCALE_ZH_CN
753LOCALE_JA
754REPLACE_WCSWIDTH
755REPLACE_WCWIDTH
756REPLACE_WCSNRTOMBS
757REPLACE_WCSRTOMBS
758REPLACE_WCRTOMB
759REPLACE_MBSNRTOWCS
760REPLACE_MBSRTOWCS
761REPLACE_MBRLEN
762REPLACE_MBRTOWC
763REPLACE_MBSINIT
764REPLACE_WCTOB
765REPLACE_BTOWC
766REPLACE_MBSTATE_T
767HAVE_DECL_WCWIDTH
768HAVE_DECL_WCTOB
769HAVE_WCSWIDTH
770HAVE_WCSTOK
771HAVE_WCSSTR
772HAVE_WCSPBRK
773HAVE_WCSSPN
774HAVE_WCSCSPN
775HAVE_WCSRCHR
776HAVE_WCSCHR
777HAVE_WCSDUP
778HAVE_WCSXFRM
779HAVE_WCSCOLL
780HAVE_WCSNCASECMP
781HAVE_WCSCASECMP
782HAVE_WCSNCMP
783HAVE_WCSCMP
784HAVE_WCSNCAT
785HAVE_WCSCAT
786HAVE_WCPNCPY
787HAVE_WCSNCPY
788HAVE_WCPCPY
789HAVE_WCSCPY
790HAVE_WCSNLEN
791HAVE_WCSLEN
792HAVE_WMEMSET
793HAVE_WMEMMOVE
794HAVE_WMEMCPY
795HAVE_WMEMCMP
796HAVE_WMEMCHR
797HAVE_WCSNRTOMBS
798HAVE_WCSRTOMBS
799HAVE_WCRTOMB
800HAVE_MBSNRTOWCS
801HAVE_MBSRTOWCS
802HAVE_MBRLEN
803HAVE_MBRTOWC
804HAVE_MBSINIT
805HAVE_BTOWC
806GNULIB_WCSWIDTH
807GNULIB_WCSTOK
808GNULIB_WCSSTR
809GNULIB_WCSPBRK
810GNULIB_WCSSPN
811GNULIB_WCSCSPN
812GNULIB_WCSRCHR
813GNULIB_WCSCHR
814GNULIB_WCSDUP
815GNULIB_WCSXFRM
816GNULIB_WCSCOLL
817GNULIB_WCSNCASECMP
818GNULIB_WCSCASECMP
819GNULIB_WCSNCMP
820GNULIB_WCSCMP
821GNULIB_WCSNCAT
822GNULIB_WCSCAT
823GNULIB_WCPNCPY
824GNULIB_WCSNCPY
825GNULIB_WCPCPY
826GNULIB_WCSCPY
827GNULIB_WCSNLEN
828GNULIB_WCSLEN
829GNULIB_WMEMSET
830GNULIB_WMEMMOVE
831GNULIB_WMEMCPY
832GNULIB_WMEMCMP
833GNULIB_WMEMCHR
834GNULIB_WCWIDTH
835GNULIB_WCSNRTOMBS
836GNULIB_WCSRTOMBS
837GNULIB_WCRTOMB
838GNULIB_MBSNRTOWCS
839GNULIB_MBSRTOWCS
840GNULIB_MBRLEN
841GNULIB_MBRTOWC
842GNULIB_MBSINIT
843GNULIB_WCTOB
844GNULIB_BTOWC
88b48903
WN
845NEXT_AS_FIRST_DIRECTIVE_MATH_H
846NEXT_MATH_H
8690e634
JK
847LOCALCHARSET_TESTS_ENVIRONMENT
848GLIBC21
c971b7fa
PA
849NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
850NEXT_INTTYPES_H
851UINT64_MAX_EQ_ULONG_MAX
852UINT32_MAX_LT_UINTMAX_MAX
853PRIPTR_PREFIX
854PRI_MACROS_BROKEN
855INT64_MAX_EQ_LONG_MAX
856INT32_MAX_LT_INTMAX_MAX
857REPLACE_STRTOIMAX
858HAVE_DECL_STRTOUMAX
859HAVE_DECL_STRTOIMAX
860HAVE_DECL_IMAXDIV
861HAVE_DECL_IMAXABS
862GNULIB_STRTOUMAX
863GNULIB_STRTOIMAX
864GNULIB_IMAXDIV
865GNULIB_IMAXABS
866GL_GENERATE_STDINT_H_FALSE
867GL_GENERATE_STDINT_H_TRUE
868STDINT_H
869WINT_T_SUFFIX
870WCHAR_T_SUFFIX
871SIG_ATOMIC_T_SUFFIX
872SIZE_T_SUFFIX
873PTRDIFF_T_SUFFIX
874HAVE_SIGNED_WINT_T
875HAVE_SIGNED_WCHAR_T
876HAVE_SIGNED_SIG_ATOMIC_T
877BITSIZEOF_WINT_T
878BITSIZEOF_WCHAR_T
879BITSIZEOF_SIG_ATOMIC_T
880BITSIZEOF_SIZE_T
881BITSIZEOF_PTRDIFF_T
882APPLE_UNIVERSAL_BUILD
883HAVE_SYS_BITYPES_H
884HAVE_SYS_INTTYPES_H
885HAVE_STDINT_H
886NEXT_AS_FIRST_DIRECTIVE_STDINT_H
887NEXT_STDINT_H
c971b7fa
PA
888HAVE_SYS_TYPES_H
889HAVE_INTTYPES_H
890HAVE_WCHAR_H
891HAVE_UNSIGNED_LONG_LONG_INT
892HAVE_LONG_LONG_INT
88b48903
WN
893FREXPL_LIBM
894HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
895FREXP_LIBM
896REPLACE_TRUNCL
897REPLACE_TRUNCF
898REPLACE_TRUNC
899REPLACE_SQRTL
900REPLACE_SIGNBIT_USING_GCC
901REPLACE_SIGNBIT
902REPLACE_ROUNDL
903REPLACE_ROUNDF
904REPLACE_ROUND
905REPLACE_REMAINDERL
906REPLACE_REMAINDERF
907REPLACE_REMAINDER
908REPLACE_NAN
909REPLACE_MODFL
910REPLACE_MODFF
911REPLACE_MODF
912REPLACE_LOGBL
913REPLACE_LOGBF
914REPLACE_LOGB
915REPLACE_LOG2L
916REPLACE_LOG2F
917REPLACE_LOG2
918REPLACE_LOG1PL
919REPLACE_LOG1PF
920REPLACE_LOG1P
921REPLACE_LOG10L
922REPLACE_LOG10F
923REPLACE_LOG10
924REPLACE_LOGL
925REPLACE_LOGF
926REPLACE_LOG
927REPLACE_LDEXPL
928REPLACE_ISNAN
929REPLACE_ISINF
930REPLACE_ISFINITE
931REPLACE_ILOGBF
932REPLACE_ILOGB
933REPLACE_HYPOTL
934REPLACE_HYPOTF
935REPLACE_HYPOT
936REPLACE_HUGE_VAL
937REPLACE_FREXPL
938REPLACE_FREXP
939REPLACE_FREXPF
940REPLACE_FMODL
941REPLACE_FMODF
942REPLACE_FMOD
943REPLACE_FMAL
944REPLACE_FMAF
945REPLACE_FMA
946REPLACE_FLOORL
947REPLACE_FLOORF
948REPLACE_FLOOR
949REPLACE_FABSL
950REPLACE_EXP2L
951REPLACE_EXP2
952REPLACE_EXPM1F
953REPLACE_EXPM1
954REPLACE_CEILL
955REPLACE_CEILF
956REPLACE_CEIL
957REPLACE_CBRTL
958REPLACE_CBRTF
959HAVE_DECL_TRUNCL
960HAVE_DECL_TRUNCF
961HAVE_DECL_TRUNC
962HAVE_DECL_TANL
963HAVE_DECL_SQRTL
964HAVE_DECL_SINL
965HAVE_DECL_ROUNDL
966HAVE_DECL_ROUNDF
967HAVE_DECL_ROUND
968HAVE_DECL_RINTF
969HAVE_DECL_REMAINDERL
970HAVE_DECL_REMAINDER
971HAVE_DECL_LOGB
972HAVE_DECL_LOG2L
973HAVE_DECL_LOG2F
974HAVE_DECL_LOG2
975HAVE_DECL_LOG10L
976HAVE_DECL_LOGL
977HAVE_DECL_LDEXPL
978HAVE_DECL_FREXPL
979HAVE_DECL_FLOORL
980HAVE_DECL_FLOORF
981HAVE_DECL_EXPM1L
982HAVE_DECL_EXP2L
983HAVE_DECL_EXP2F
984HAVE_DECL_EXP2
985HAVE_DECL_EXPL
986HAVE_DECL_COSL
987HAVE_DECL_COPYSIGNF
988HAVE_DECL_CEILL
989HAVE_DECL_CEILF
990HAVE_DECL_CBRTL
991HAVE_DECL_CBRTF
992HAVE_DECL_ATANL
993HAVE_DECL_ASINL
994HAVE_DECL_ACOSL
995HAVE_TANHF
996HAVE_TANL
997HAVE_TANF
998HAVE_SQRTL
999HAVE_SQRTF
1000HAVE_SINHF
1001HAVE_SINL
1002HAVE_SINF
1003HAVE_RINTL
1004HAVE_RINT
1005HAVE_REMAINDERF
1006HAVE_REMAINDER
1007HAVE_POWF
1008HAVE_MODFL
1009HAVE_MODFF
1010HAVE_LOGBL
1011HAVE_LOGBF
1012HAVE_LOG1PL
1013HAVE_LOG1PF
1014HAVE_LOG1P
1015HAVE_LOG10L
1016HAVE_LOG10F
1017HAVE_LOGL
1018HAVE_LOGF
1019HAVE_LDEXPF
1020HAVE_ISNANL
1021HAVE_ISNAND
1022HAVE_ISNANF
1023HAVE_ILOGBL
1024HAVE_ILOGBF
1025HAVE_ILOGB
1026HAVE_HYPOTL
1027HAVE_HYPOTF
1028HAVE_FREXPF
1029HAVE_FMODL
1030HAVE_FMODF
1031HAVE_FMAL
1032HAVE_FMAF
1033HAVE_FMA
1034HAVE_FABSL
1035HAVE_FABSF
1036HAVE_EXPM1F
1037HAVE_EXPM1
1038HAVE_EXPL
1039HAVE_EXPF
1040HAVE_COSHF
1041HAVE_COSL
1042HAVE_COSF
1043HAVE_COPYSIGNL
1044HAVE_COPYSIGN
1045HAVE_CBRTL
1046HAVE_CBRTF
1047HAVE_CBRT
1048HAVE_ATAN2F
1049HAVE_ATANL
1050HAVE_ATANF
1051HAVE_ASINL
1052HAVE_ASINF
1053HAVE_ACOSL
1054HAVE_ACOSF
1055GNULIB_TRUNCL
1056GNULIB_TRUNCF
1057GNULIB_TRUNC
1058GNULIB_TANHF
1059GNULIB_TANL
1060GNULIB_TANF
1061GNULIB_SQRTL
1062GNULIB_SQRTF
1063GNULIB_SINHF
1064GNULIB_SINL
1065GNULIB_SINF
1066GNULIB_SIGNBIT
1067GNULIB_ROUNDL
1068GNULIB_ROUNDF
1069GNULIB_ROUND
1070GNULIB_RINTL
1071GNULIB_RINTF
1072GNULIB_RINT
1073GNULIB_REMAINDERL
1074GNULIB_REMAINDERF
1075GNULIB_REMAINDER
1076GNULIB_POWF
1077GNULIB_MODFL
1078GNULIB_MODFF
1079GNULIB_MODF
1080GNULIB_LOGBL
1081GNULIB_LOGBF
1082GNULIB_LOGB
1083GNULIB_LOG2L
1084GNULIB_LOG2F
1085GNULIB_LOG2
1086GNULIB_LOG1PL
1087GNULIB_LOG1PF
1088GNULIB_LOG1P
1089GNULIB_LOG10L
1090GNULIB_LOG10F
1091GNULIB_LOG10
1092GNULIB_LOGL
1093GNULIB_LOGF
1094GNULIB_LOG
1095GNULIB_LDEXPL
1096GNULIB_LDEXPF
1097GNULIB_ISNANL
1098GNULIB_ISNAND
1099GNULIB_ISNANF
1100GNULIB_ISNAN
1101GNULIB_ISINF
1102GNULIB_ISFINITE
1103GNULIB_ILOGBL
1104GNULIB_ILOGBF
1105GNULIB_ILOGB
1106GNULIB_HYPOTL
1107GNULIB_HYPOTF
1108GNULIB_HYPOT
1109GNULIB_FREXPL
1110GNULIB_FREXP
1111GNULIB_FREXPF
1112GNULIB_FMODL
1113GNULIB_FMODF
1114GNULIB_FMOD
1115GNULIB_FMAL
1116GNULIB_FMAF
1117GNULIB_FMA
1118GNULIB_FLOORL
1119GNULIB_FLOORF
1120GNULIB_FLOOR
1121GNULIB_FABSL
1122GNULIB_FABSF
1123GNULIB_EXPM1L
1124GNULIB_EXPM1F
1125GNULIB_EXPM1
1126GNULIB_EXP2L
1127GNULIB_EXP2F
1128GNULIB_EXP2
1129GNULIB_EXPL
1130GNULIB_EXPF
1131GNULIB_COSHF
1132GNULIB_COSL
1133GNULIB_COSF
1134GNULIB_COPYSIGNL
1135GNULIB_COPYSIGNF
1136GNULIB_COPYSIGN
1137GNULIB_CEILL
1138GNULIB_CEILF
1139GNULIB_CEIL
1140GNULIB_CBRTL
1141GNULIB_CBRTF
1142GNULIB_CBRT
1143GNULIB_ATAN2F
1144GNULIB_ATANL
1145GNULIB_ATANF
1146GNULIB_ASINL
1147GNULIB_ASINF
1148GNULIB_ACOSL
1149GNULIB_ACOSF
8690e634
JK
1150GL_GENERATE_FNMATCH_H_FALSE
1151GL_GENERATE_FNMATCH_H_TRUE
1152FNMATCH_H
88b48903
WN
1153REPLACE_ITOLD
1154GL_GENERATE_FLOAT_H_FALSE
1155GL_GENERATE_FLOAT_H_TRUE
1156FLOAT_H
1157NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1158NEXT_FLOAT_H
63ce7108
TT
1159EOVERFLOW_VALUE
1160EOVERFLOW_HIDDEN
1161ENOLINK_VALUE
1162ENOLINK_HIDDEN
1163EMULTIHOP_VALUE
1164EMULTIHOP_HIDDEN
1165GL_GENERATE_ERRNO_H_FALSE
1166GL_GENERATE_ERRNO_H_TRUE
1167ERRNO_H
1168NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1169NEXT_ERRNO_H
e26b6bb0
TT
1170HAVE_DIRENT_H
1171NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1172NEXT_DIRENT_H
88b48903
WN
1173PRAGMA_COLUMNS
1174PRAGMA_SYSTEM_HEADER
1175INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1176INCLUDE_NEXT
e26b6bb0
TT
1177REPLACE_FDOPENDIR
1178REPLACE_DIRFD
1179REPLACE_CLOSEDIR
1180REPLACE_OPENDIR
1181HAVE_ALPHASORT
1182HAVE_SCANDIR
1183HAVE_FDOPENDIR
1184HAVE_DECL_FDOPENDIR
1185HAVE_DECL_DIRFD
1186HAVE_CLOSEDIR
1187HAVE_REWINDDIR
1188HAVE_READDIR
1189HAVE_OPENDIR
1190GNULIB_ALPHASORT
1191GNULIB_SCANDIR
1192GNULIB_FDOPENDIR
1193GNULIB_DIRFD
1194GNULIB_CLOSEDIR
1195GNULIB_REWINDDIR
1196GNULIB_READDIR
1197GNULIB_OPENDIR
1198UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1199UNISTD_H_HAVE_WINSOCK2_H
1200REPLACE_WRITE
1201REPLACE_USLEEP
1202REPLACE_UNLINKAT
1203REPLACE_UNLINK
1204REPLACE_TTYNAME_R
1205REPLACE_SYMLINK
1206REPLACE_SLEEP
1207REPLACE_RMDIR
1208REPLACE_READLINK
1209REPLACE_READ
1210REPLACE_PWRITE
1211REPLACE_PREAD
1212REPLACE_LSEEK
1213REPLACE_LINKAT
1214REPLACE_LINK
1215REPLACE_LCHOWN
1216REPLACE_ISATTY
1217REPLACE_GETPAGESIZE
1218REPLACE_GETGROUPS
1219REPLACE_GETLOGIN_R
1220REPLACE_GETDOMAINNAME
1221REPLACE_GETCWD
1222REPLACE_FTRUNCATE
1223REPLACE_FCHOWNAT
1224REPLACE_DUP2
1225REPLACE_DUP
1226REPLACE_CLOSE
1227REPLACE_CHOWN
1228HAVE_SYS_PARAM_H
1229HAVE_OS_H
1230HAVE_DECL_TTYNAME_R
1231HAVE_DECL_SETHOSTNAME
1232HAVE_DECL_GETUSERSHELL
1233HAVE_DECL_GETPAGESIZE
1234HAVE_DECL_GETLOGIN_R
1235HAVE_DECL_GETDOMAINNAME
1236HAVE_DECL_FDATASYNC
1237HAVE_DECL_FCHDIR
1238HAVE_DECL_ENVIRON
1239HAVE_USLEEP
1240HAVE_UNLINKAT
1241HAVE_SYMLINKAT
1242HAVE_SYMLINK
1243HAVE_SLEEP
1244HAVE_SETHOSTNAME
1245HAVE_READLINKAT
1246HAVE_READLINK
1247HAVE_PWRITE
1248HAVE_PREAD
1249HAVE_PIPE2
1250HAVE_PIPE
1251HAVE_LINKAT
1252HAVE_LINK
1253HAVE_LCHOWN
1254HAVE_GROUP_MEMBER
1255HAVE_GETPAGESIZE
1256HAVE_GETLOGIN
1257HAVE_GETHOSTNAME
1258HAVE_GETGROUPS
1259HAVE_GETDTABLESIZE
1260HAVE_FTRUNCATE
1261HAVE_FSYNC
1262HAVE_FDATASYNC
1263HAVE_FCHOWNAT
1264HAVE_FCHDIR
1265HAVE_FACCESSAT
1266HAVE_EUIDACCESS
1267HAVE_DUP3
1268HAVE_DUP2
1269HAVE_CHOWN
1270GNULIB_WRITE
1271GNULIB_USLEEP
1272GNULIB_UNLINKAT
1273GNULIB_UNLINK
1274GNULIB_UNISTD_H_SIGPIPE
1275GNULIB_UNISTD_H_NONBLOCKING
1276GNULIB_TTYNAME_R
1277GNULIB_SYMLINKAT
1278GNULIB_SYMLINK
1279GNULIB_SLEEP
1280GNULIB_SETHOSTNAME
1281GNULIB_RMDIR
1282GNULIB_READLINKAT
1283GNULIB_READLINK
1284GNULIB_READ
1285GNULIB_PWRITE
1286GNULIB_PREAD
1287GNULIB_PIPE2
1288GNULIB_PIPE
1289GNULIB_LSEEK
1290GNULIB_LINKAT
1291GNULIB_LINK
1292GNULIB_LCHOWN
1293GNULIB_ISATTY
1294GNULIB_GROUP_MEMBER
1295GNULIB_GETUSERSHELL
1296GNULIB_GETPAGESIZE
1297GNULIB_GETLOGIN_R
1298GNULIB_GETLOGIN
1299GNULIB_GETHOSTNAME
1300GNULIB_GETGROUPS
1301GNULIB_GETDTABLESIZE
1302GNULIB_GETDOMAINNAME
1303GNULIB_GETCWD
1304GNULIB_FTRUNCATE
1305GNULIB_FSYNC
1306GNULIB_FDATASYNC
1307GNULIB_FCHOWNAT
1308GNULIB_FCHDIR
1309GNULIB_FACCESSAT
1310GNULIB_EUIDACCESS
1311GNULIB_ENVIRON
1312GNULIB_DUP3
1313GNULIB_DUP2
1314GNULIB_DUP
1315GNULIB_CLOSE
1316GNULIB_CHOWN
1317GNULIB_CHDIR
8690e634
JK
1318pkglibexecdir
1319lispdir
1320GL_GENERATE_ALLOCA_H_FALSE
1321GL_GENERATE_ALLOCA_H_TRUE
1322ALLOCA_H
1323ALLOCA
c971b7fa
PA
1324GL_COND_LIBTOOL_FALSE
1325GL_COND_LIBTOOL_TRUE
1326target_os
1327target_vendor
1328target_cpu
1329target
1330RANLIB
1331ARFLAGS
1332AR
1333EGREP
1334GREP
1335CPP
1336host_os
1337host_vendor
1338host_cpu
1339host
1340build_os
1341build_vendor
1342build_cpu
1343build
1344OBJEXT
1345EXEEXT
1346ac_ct_CC
1347CPPFLAGS
1348LDFLAGS
1349CFLAGS
1350CC
1351MAINT
1352MAINTAINER_MODE_FALSE
1353MAINTAINER_MODE_TRUE
1354target_alias
1355host_alias
1356build_alias
1357LIBS
1358ECHO_T
1359ECHO_N
1360ECHO_C
1361DEFS
1362mandir
1363localedir
1364libdir
1365psdir
1366pdfdir
1367dvidir
1368htmldir
1369infodir
1370docdir
1371oldincludedir
1372includedir
1373localstatedir
1374sharedstatedir
1375sysconfdir
1376datadir
1377datarootdir
1378libexecdir
1379sbindir
1380bindir
1381program_transform_name
1382prefix
1383exec_prefix
1384PACKAGE_URL
1385PACKAGE_BUGREPORT
1386PACKAGE_STRING
1387PACKAGE_VERSION
1388PACKAGE_TARNAME
1389PACKAGE_NAME
1390PATH_SEPARATOR
1391SHELL'
1392ac_subst_files=''
1393ac_user_opts='
1394enable_option_checking
1395enable_maintainer_mode
1396enable_dependency_tracking
1397'
1398 ac_precious_vars='build_alias
1399host_alias
1400target_alias
1401CC
1402CFLAGS
1403LDFLAGS
1404LIBS
1405CPPFLAGS
1406CPP'
1407
1408
1409# Initialize some variables set by options.
1410ac_init_help=
1411ac_init_version=false
1412ac_unrecognized_opts=
1413ac_unrecognized_sep=
1414# The variables have the same names as the options, with
1415# dashes changed to underlines.
1416cache_file=/dev/null
1417exec_prefix=NONE
1418no_create=
1419no_recursion=
1420prefix=NONE
1421program_prefix=NONE
1422program_suffix=NONE
1423program_transform_name=s,x,x,
1424silent=
1425site=
1426srcdir=
1427verbose=
1428x_includes=NONE
1429x_libraries=NONE
1430
1431# Installation directory options.
1432# These are left unexpanded so users can "make install exec_prefix=/foo"
1433# and all the variables that are supposed to be based on exec_prefix
1434# by default will actually change.
1435# Use braces instead of parens because sh, perl, etc. also accept them.
1436# (The list follows the same order as the GNU Coding Standards.)
1437bindir='${exec_prefix}/bin'
1438sbindir='${exec_prefix}/sbin'
1439libexecdir='${exec_prefix}/libexec'
1440datarootdir='${prefix}/share'
1441datadir='${datarootdir}'
1442sysconfdir='${prefix}/etc'
1443sharedstatedir='${prefix}/com'
1444localstatedir='${prefix}/var'
1445includedir='${prefix}/include'
1446oldincludedir='/usr/include'
1447docdir='${datarootdir}/doc/${PACKAGE}'
1448infodir='${datarootdir}/info'
1449htmldir='${docdir}'
1450dvidir='${docdir}'
1451pdfdir='${docdir}'
1452psdir='${docdir}'
1453libdir='${exec_prefix}/lib'
1454localedir='${datarootdir}/locale'
1455mandir='${datarootdir}/man'
1456
1457ac_prev=
1458ac_dashdash=
1459for ac_option
1460do
1461 # If the previous option needs an argument, assign it.
1462 if test -n "$ac_prev"; then
1463 eval $ac_prev=\$ac_option
1464 ac_prev=
1465 continue
1466 fi
1467
1468 case $ac_option in
1469 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1470 *) ac_optarg=yes ;;
1471 esac
1472
1473 # Accept the important Cygnus configure options, so we can diagnose typos.
1474
1475 case $ac_dashdash$ac_option in
1476 --)
1477 ac_dashdash=yes ;;
1478
1479 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1480 ac_prev=bindir ;;
1481 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1482 bindir=$ac_optarg ;;
1483
1484 -build | --build | --buil | --bui | --bu)
1485 ac_prev=build_alias ;;
1486 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1487 build_alias=$ac_optarg ;;
1488
1489 -cache-file | --cache-file | --cache-fil | --cache-fi \
1490 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1491 ac_prev=cache_file ;;
1492 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1493 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1494 cache_file=$ac_optarg ;;
1495
1496 --config-cache | -C)
1497 cache_file=config.cache ;;
1498
1499 -datadir | --datadir | --datadi | --datad)
1500 ac_prev=datadir ;;
1501 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1502 datadir=$ac_optarg ;;
1503
1504 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1505 | --dataroo | --dataro | --datar)
1506 ac_prev=datarootdir ;;
1507 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1508 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1509 datarootdir=$ac_optarg ;;
1510
1511 -disable-* | --disable-*)
1512 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1513 # Reject names that are not valid shell variable names.
1514 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1515 as_fn_error "invalid feature name: $ac_useropt"
1516 ac_useropt_orig=$ac_useropt
1517 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1518 case $ac_user_opts in
1519 *"
1520"enable_$ac_useropt"
1521"*) ;;
1522 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1523 ac_unrecognized_sep=', ';;
1524 esac
1525 eval enable_$ac_useropt=no ;;
1526
1527 -docdir | --docdir | --docdi | --doc | --do)
1528 ac_prev=docdir ;;
1529 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1530 docdir=$ac_optarg ;;
1531
1532 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1533 ac_prev=dvidir ;;
1534 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1535 dvidir=$ac_optarg ;;
1536
1537 -enable-* | --enable-*)
1538 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1539 # Reject names that are not valid shell variable names.
1540 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1541 as_fn_error "invalid feature name: $ac_useropt"
1542 ac_useropt_orig=$ac_useropt
1543 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1544 case $ac_user_opts in
1545 *"
1546"enable_$ac_useropt"
1547"*) ;;
1548 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1549 ac_unrecognized_sep=', ';;
1550 esac
1551 eval enable_$ac_useropt=\$ac_optarg ;;
1552
1553 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1554 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1555 | --exec | --exe | --ex)
1556 ac_prev=exec_prefix ;;
1557 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1558 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1559 | --exec=* | --exe=* | --ex=*)
1560 exec_prefix=$ac_optarg ;;
1561
1562 -gas | --gas | --ga | --g)
1563 # Obsolete; use --with-gas.
1564 with_gas=yes ;;
1565
1566 -help | --help | --hel | --he | -h)
1567 ac_init_help=long ;;
1568 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1569 ac_init_help=recursive ;;
1570 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1571 ac_init_help=short ;;
1572
1573 -host | --host | --hos | --ho)
1574 ac_prev=host_alias ;;
1575 -host=* | --host=* | --hos=* | --ho=*)
1576 host_alias=$ac_optarg ;;
1577
1578 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1579 ac_prev=htmldir ;;
1580 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1581 | --ht=*)
1582 htmldir=$ac_optarg ;;
1583
1584 -includedir | --includedir | --includedi | --included | --include \
1585 | --includ | --inclu | --incl | --inc)
1586 ac_prev=includedir ;;
1587 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1588 | --includ=* | --inclu=* | --incl=* | --inc=*)
1589 includedir=$ac_optarg ;;
1590
1591 -infodir | --infodir | --infodi | --infod | --info | --inf)
1592 ac_prev=infodir ;;
1593 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1594 infodir=$ac_optarg ;;
1595
1596 -libdir | --libdir | --libdi | --libd)
1597 ac_prev=libdir ;;
1598 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1599 libdir=$ac_optarg ;;
1600
1601 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1602 | --libexe | --libex | --libe)
1603 ac_prev=libexecdir ;;
1604 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1605 | --libexe=* | --libex=* | --libe=*)
1606 libexecdir=$ac_optarg ;;
1607
1608 -localedir | --localedir | --localedi | --localed | --locale)
1609 ac_prev=localedir ;;
1610 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1611 localedir=$ac_optarg ;;
1612
1613 -localstatedir | --localstatedir | --localstatedi | --localstated \
1614 | --localstate | --localstat | --localsta | --localst | --locals)
1615 ac_prev=localstatedir ;;
1616 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1617 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1618 localstatedir=$ac_optarg ;;
1619
1620 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1621 ac_prev=mandir ;;
1622 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1623 mandir=$ac_optarg ;;
1624
1625 -nfp | --nfp | --nf)
1626 # Obsolete; use --without-fp.
1627 with_fp=no ;;
1628
1629 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1630 | --no-cr | --no-c | -n)
1631 no_create=yes ;;
1632
1633 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1634 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1635 no_recursion=yes ;;
1636
1637 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1638 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1639 | --oldin | --oldi | --old | --ol | --o)
1640 ac_prev=oldincludedir ;;
1641 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1642 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1643 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1644 oldincludedir=$ac_optarg ;;
1645
1646 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1647 ac_prev=prefix ;;
1648 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1649 prefix=$ac_optarg ;;
1650
1651 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1652 | --program-pre | --program-pr | --program-p)
1653 ac_prev=program_prefix ;;
1654 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1655 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1656 program_prefix=$ac_optarg ;;
1657
1658 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1659 | --program-suf | --program-su | --program-s)
1660 ac_prev=program_suffix ;;
1661 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1662 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1663 program_suffix=$ac_optarg ;;
1664
1665 -program-transform-name | --program-transform-name \
1666 | --program-transform-nam | --program-transform-na \
1667 | --program-transform-n | --program-transform- \
1668 | --program-transform | --program-transfor \
1669 | --program-transfo | --program-transf \
1670 | --program-trans | --program-tran \
1671 | --progr-tra | --program-tr | --program-t)
1672 ac_prev=program_transform_name ;;
1673 -program-transform-name=* | --program-transform-name=* \
1674 | --program-transform-nam=* | --program-transform-na=* \
1675 | --program-transform-n=* | --program-transform-=* \
1676 | --program-transform=* | --program-transfor=* \
1677 | --program-transfo=* | --program-transf=* \
1678 | --program-trans=* | --program-tran=* \
1679 | --progr-tra=* | --program-tr=* | --program-t=*)
1680 program_transform_name=$ac_optarg ;;
1681
1682 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1683 ac_prev=pdfdir ;;
1684 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1685 pdfdir=$ac_optarg ;;
1686
1687 -psdir | --psdir | --psdi | --psd | --ps)
1688 ac_prev=psdir ;;
1689 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1690 psdir=$ac_optarg ;;
1691
1692 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1693 | -silent | --silent | --silen | --sile | --sil)
1694 silent=yes ;;
1695
1696 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1697 ac_prev=sbindir ;;
1698 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1699 | --sbi=* | --sb=*)
1700 sbindir=$ac_optarg ;;
1701
1702 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1703 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1704 | --sharedst | --shareds | --shared | --share | --shar \
1705 | --sha | --sh)
1706 ac_prev=sharedstatedir ;;
1707 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1708 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1709 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1710 | --sha=* | --sh=*)
1711 sharedstatedir=$ac_optarg ;;
1712
1713 -site | --site | --sit)
1714 ac_prev=site ;;
1715 -site=* | --site=* | --sit=*)
1716 site=$ac_optarg ;;
1717
1718 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1719 ac_prev=srcdir ;;
1720 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1721 srcdir=$ac_optarg ;;
1722
1723 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1724 | --syscon | --sysco | --sysc | --sys | --sy)
1725 ac_prev=sysconfdir ;;
1726 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1727 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1728 sysconfdir=$ac_optarg ;;
1729
1730 -target | --target | --targe | --targ | --tar | --ta | --t)
1731 ac_prev=target_alias ;;
1732 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1733 target_alias=$ac_optarg ;;
1734
1735 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1736 verbose=yes ;;
1737
1738 -version | --version | --versio | --versi | --vers | -V)
1739 ac_init_version=: ;;
1740
1741 -with-* | --with-*)
1742 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1743 # Reject names that are not valid shell variable names.
1744 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1745 as_fn_error "invalid package name: $ac_useropt"
1746 ac_useropt_orig=$ac_useropt
1747 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1748 case $ac_user_opts in
1749 *"
1750"with_$ac_useropt"
1751"*) ;;
1752 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1753 ac_unrecognized_sep=', ';;
1754 esac
1755 eval with_$ac_useropt=\$ac_optarg ;;
1756
1757 -without-* | --without-*)
1758 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1759 # Reject names that are not valid shell variable names.
1760 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1761 as_fn_error "invalid package name: $ac_useropt"
1762 ac_useropt_orig=$ac_useropt
1763 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1764 case $ac_user_opts in
1765 *"
1766"with_$ac_useropt"
1767"*) ;;
1768 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1769 ac_unrecognized_sep=', ';;
1770 esac
1771 eval with_$ac_useropt=no ;;
1772
1773 --x)
1774 # Obsolete; use --with-x.
1775 with_x=yes ;;
1776
1777 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1778 | --x-incl | --x-inc | --x-in | --x-i)
1779 ac_prev=x_includes ;;
1780 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1781 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1782 x_includes=$ac_optarg ;;
1783
1784 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1785 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1786 ac_prev=x_libraries ;;
1787 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1788 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1789 x_libraries=$ac_optarg ;;
1790
1791 -*) as_fn_error "unrecognized option: \`$ac_option'
1792Try \`$0 --help' for more information."
1793 ;;
1794
1795 *=*)
1796 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1797 # Reject names that are not valid shell variable names.
1798 case $ac_envvar in #(
1799 '' | [0-9]* | *[!_$as_cr_alnum]* )
1800 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1801 esac
1802 eval $ac_envvar=\$ac_optarg
1803 export $ac_envvar ;;
1804
1805 *)
1806 # FIXME: should be removed in autoconf 3.0.
1807 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1808 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1809 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1810 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1811 ;;
1812
1813 esac
1814done
1815
1816if test -n "$ac_prev"; then
1817 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1818 as_fn_error "missing argument to $ac_option"
1819fi
1820
1821if test -n "$ac_unrecognized_opts"; then
1822 case $enable_option_checking in
1823 no) ;;
1824 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1825 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1826 esac
1827fi
1828
1829# Check all directory arguments for consistency.
1830for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1831 datadir sysconfdir sharedstatedir localstatedir includedir \
1832 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1833 libdir localedir mandir
1834do
1835 eval ac_val=\$$ac_var
1836 # Remove trailing slashes.
1837 case $ac_val in
1838 */ )
1839 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1840 eval $ac_var=\$ac_val;;
1841 esac
1842 # Be sure to have absolute directory names.
1843 case $ac_val in
1844 [\\/$]* | ?:[\\/]* ) continue;;
1845 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1846 esac
1847 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1848done
1849
1850# There might be people who depend on the old broken behavior: `$host'
1851# used to hold the argument of --host etc.
1852# FIXME: To remove some day.
1853build=$build_alias
1854host=$host_alias
1855target=$target_alias
1856
1857# FIXME: To remove some day.
1858if test "x$host_alias" != x; then
1859 if test "x$build_alias" = x; then
1860 cross_compiling=maybe
1861 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1862 If a cross compiler is detected then cross compile mode will be used." >&2
1863 elif test "x$build_alias" != "x$host_alias"; then
1864 cross_compiling=yes
1865 fi
1866fi
1867
1868ac_tool_prefix=
1869test -n "$host_alias" && ac_tool_prefix=$host_alias-
1870
1871test "$silent" = yes && exec 6>/dev/null
1872
1873
1874ac_pwd=`pwd` && test -n "$ac_pwd" &&
1875ac_ls_di=`ls -di .` &&
1876ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1877 as_fn_error "working directory cannot be determined"
1878test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1879 as_fn_error "pwd does not report name of working directory"
1880
1881
1882# Find the source files, if location was not specified.
1883if test -z "$srcdir"; then
1884 ac_srcdir_defaulted=yes
1885 # Try the directory containing this script, then the parent directory.
1886 ac_confdir=`$as_dirname -- "$as_myself" ||
1887$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1888 X"$as_myself" : 'X\(//\)[^/]' \| \
1889 X"$as_myself" : 'X\(//\)$' \| \
1890 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1891$as_echo X"$as_myself" |
1892 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1893 s//\1/
1894 q
1895 }
1896 /^X\(\/\/\)[^/].*/{
1897 s//\1/
1898 q
1899 }
1900 /^X\(\/\/\)$/{
1901 s//\1/
1902 q
1903 }
1904 /^X\(\/\).*/{
1905 s//\1/
1906 q
1907 }
1908 s/.*/./; q'`
1909 srcdir=$ac_confdir
1910 if test ! -r "$srcdir/$ac_unique_file"; then
1911 srcdir=..
1912 fi
1913else
1914 ac_srcdir_defaulted=no
1915fi
1916if test ! -r "$srcdir/$ac_unique_file"; then
1917 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1918 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1919fi
1920ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1921ac_abs_confdir=`(
1922 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1923 pwd)`
1924# When building in place, set srcdir=.
1925if test "$ac_abs_confdir" = "$ac_pwd"; then
1926 srcdir=.
1927fi
1928# Remove unnecessary trailing slashes from srcdir.
1929# Double slashes in file names in object file debugging info
1930# mess up M-x gdb in Emacs.
1931case $srcdir in
1932*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1933esac
1934for ac_var in $ac_precious_vars; do
1935 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1936 eval ac_env_${ac_var}_value=\$${ac_var}
1937 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1938 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1939done
1940
1941#
1942# Report the --help message.
1943#
1944if test "$ac_init_help" = "long"; then
1945 # Omit some internal or obsolete options to make the list less imposing.
1946 # This message is too long to be a string in the A/UX 3.1 sh.
1947 cat <<_ACEOF
1948\`configure' configures this package to adapt to many kinds of systems.
1949
1950Usage: $0 [OPTION]... [VAR=VALUE]...
1951
1952To assign environment variables (e.g., CC, CFLAGS...), specify them as
1953VAR=VALUE. See below for descriptions of some of the useful variables.
1954
1955Defaults for the options are specified in brackets.
1956
1957Configuration:
1958 -h, --help display this help and exit
1959 --help=short display options specific to this package
1960 --help=recursive display the short help of all the included packages
1961 -V, --version display version information and exit
1962 -q, --quiet, --silent do not print \`checking...' messages
1963 --cache-file=FILE cache test results in FILE [disabled]
1964 -C, --config-cache alias for \`--cache-file=config.cache'
1965 -n, --no-create do not create output files
1966 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1967
1968Installation directories:
1969 --prefix=PREFIX install architecture-independent files in PREFIX
1970 [$ac_default_prefix]
1971 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1972 [PREFIX]
1973
1974By default, \`make install' will install all the files in
1975\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1976an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1977for instance \`--prefix=\$HOME'.
1978
1979For better control, use the options below.
1980
1981Fine tuning of the installation directories:
1982 --bindir=DIR user executables [EPREFIX/bin]
1983 --sbindir=DIR system admin executables [EPREFIX/sbin]
1984 --libexecdir=DIR program executables [EPREFIX/libexec]
1985 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1986 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1987 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1988 --libdir=DIR object code libraries [EPREFIX/lib]
1989 --includedir=DIR C header files [PREFIX/include]
1990 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1991 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1992 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1993 --infodir=DIR info documentation [DATAROOTDIR/info]
1994 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1995 --mandir=DIR man documentation [DATAROOTDIR/man]
1996 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1997 --htmldir=DIR html documentation [DOCDIR]
1998 --dvidir=DIR dvi documentation [DOCDIR]
1999 --pdfdir=DIR pdf documentation [DOCDIR]
2000 --psdir=DIR ps documentation [DOCDIR]
2001_ACEOF
2002
2003 cat <<\_ACEOF
2004
2005Program names:
2006 --program-prefix=PREFIX prepend PREFIX to installed program names
2007 --program-suffix=SUFFIX append SUFFIX to installed program names
2008 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2009
2010System types:
2011 --build=BUILD configure for building on BUILD [guessed]
2012 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2013 --target=TARGET configure for building compilers for TARGET [HOST]
2014_ACEOF
2015fi
2016
2017if test -n "$ac_init_help"; then
2018
2019 cat <<\_ACEOF
2020
2021Optional Features:
2022 --disable-option-checking ignore unrecognized --enable/--with options
2023 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2024 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2025 --enable-maintainer-mode enable make rules and dependencies not useful
2026 (and sometimes confusing) to the casual installer
2027 --disable-dependency-tracking speeds up one-time build
2028 --enable-dependency-tracking do not reject slow dependency extractors
2029
2030Some influential environment variables:
2031 CC C compiler command
2032 CFLAGS C compiler flags
2033 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2034 nonstandard directory <lib dir>
2035 LIBS libraries to pass to the linker, e.g. -l<library>
2036 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
2037 you have headers in a nonstandard directory <include dir>
2038 CPP C preprocessor
2039
2040Use these variables to override the choices made by `configure' or to help
2041it to find libraries and programs with nonstandard names/locations.
2042
2043Report bugs to the package provider.
2044_ACEOF
2045ac_status=$?
2046fi
2047
2048if test "$ac_init_help" = "recursive"; then
2049 # If there are subdirs, report their specific --help.
2050 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2051 test -d "$ac_dir" ||
2052 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2053 continue
2054 ac_builddir=.
2055
2056case "$ac_dir" in
2057.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2058*)
2059 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2060 # A ".." for each directory in $ac_dir_suffix.
2061 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2062 case $ac_top_builddir_sub in
2063 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2064 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2065 esac ;;
2066esac
2067ac_abs_top_builddir=$ac_pwd
2068ac_abs_builddir=$ac_pwd$ac_dir_suffix
2069# for backward compatibility:
2070ac_top_builddir=$ac_top_build_prefix
2071
2072case $srcdir in
2073 .) # We are building in place.
2074 ac_srcdir=.
2075 ac_top_srcdir=$ac_top_builddir_sub
2076 ac_abs_top_srcdir=$ac_pwd ;;
2077 [\\/]* | ?:[\\/]* ) # Absolute name.
2078 ac_srcdir=$srcdir$ac_dir_suffix;
2079 ac_top_srcdir=$srcdir
2080 ac_abs_top_srcdir=$srcdir ;;
2081 *) # Relative name.
2082 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2083 ac_top_srcdir=$ac_top_build_prefix$srcdir
2084 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2085esac
2086ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2087
2088 cd "$ac_dir" || { ac_status=$?; continue; }
2089 # Check for guested configure.
2090 if test -f "$ac_srcdir/configure.gnu"; then
2091 echo &&
2092 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2093 elif test -f "$ac_srcdir/configure"; then
2094 echo &&
2095 $SHELL "$ac_srcdir/configure" --help=recursive
2096 else
2097 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2098 fi || ac_status=$?
2099 cd "$ac_pwd" || { ac_status=$?; break; }
2100 done
2101fi
2102
2103test -n "$ac_init_help" && exit $ac_status
2104if $ac_init_version; then
2105 cat <<\_ACEOF
2106configure
2107generated by GNU Autoconf 2.64
2108
2109Copyright (C) 2009 Free Software Foundation, Inc.
2110This configure script is free software; the Free Software Foundation
2111gives unlimited permission to copy, distribute and modify it.
2112_ACEOF
2113 exit
2114fi
2115
2116## ------------------------ ##
2117## Autoconf initialization. ##
2118## ------------------------ ##
2119
2120# ac_fn_c_try_compile LINENO
2121# --------------------------
2122# Try to compile conftest.$ac_ext, and return whether this succeeded.
2123ac_fn_c_try_compile ()
2124{
2125 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2126 rm -f conftest.$ac_objext
2127 if { { ac_try="$ac_compile"
2128case "(($ac_try" in
2129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2130 *) ac_try_echo=$ac_try;;
2131esac
2132eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2133$as_echo "$ac_try_echo"; } >&5
2134 (eval "$ac_compile") 2>conftest.err
2135 ac_status=$?
2136 if test -s conftest.err; then
2137 grep -v '^ *+' conftest.err >conftest.er1
2138 cat conftest.er1 >&5
2139 mv -f conftest.er1 conftest.err
2140 fi
2141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2142 test $ac_status = 0; } && {
2143 test -z "$ac_c_werror_flag" ||
2144 test ! -s conftest.err
2145 } && test -s conftest.$ac_objext; then :
2146 ac_retval=0
2147else
2148 $as_echo "$as_me: failed program was:" >&5
2149sed 's/^/| /' conftest.$ac_ext >&5
2150
2151 ac_retval=1
2152fi
2153 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2154 return $ac_retval
2155
2156} # ac_fn_c_try_compile
2157
2158# ac_fn_c_try_cpp LINENO
2159# ----------------------
2160# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2161ac_fn_c_try_cpp ()
2162{
2163 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2164 if { { ac_try="$ac_cpp conftest.$ac_ext"
2165case "(($ac_try" in
2166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2167 *) ac_try_echo=$ac_try;;
2168esac
2169eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2170$as_echo "$ac_try_echo"; } >&5
2171 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2172 ac_status=$?
2173 if test -s conftest.err; then
2174 grep -v '^ *+' conftest.err >conftest.er1
2175 cat conftest.er1 >&5
2176 mv -f conftest.er1 conftest.err
2177 fi
2178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2179 test $ac_status = 0; } >/dev/null && {
2180 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2181 test ! -s conftest.err
2182 }; then :
2183 ac_retval=0
2184else
2185 $as_echo "$as_me: failed program was:" >&5
2186sed 's/^/| /' conftest.$ac_ext >&5
2187
2188 ac_retval=1
2189fi
2190 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2191 return $ac_retval
2192
2193} # ac_fn_c_try_cpp
2194
2195# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2196# -------------------------------------------------------
2197# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2198# the include files in INCLUDES and setting the cache variable VAR
2199# accordingly.
2200ac_fn_c_check_header_mongrel ()
2201{
2202 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2203 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2205$as_echo_n "checking for $2... " >&6; }
2206if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2207 $as_echo_n "(cached) " >&6
2208fi
2209eval ac_res=\$$3
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2211$as_echo "$ac_res" >&6; }
2212else
2213 # Is the header compilable?
2214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2215$as_echo_n "checking $2 usability... " >&6; }
2216cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2217/* end confdefs.h. */
2218$4
2219#include <$2>
2220_ACEOF
2221if ac_fn_c_try_compile "$LINENO"; then :
2222 ac_header_compiler=yes
2223else
2224 ac_header_compiler=no
2225fi
2226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2228$as_echo "$ac_header_compiler" >&6; }
2229
2230# Is the header present?
2231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2232$as_echo_n "checking $2 presence... " >&6; }
2233cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2234/* end confdefs.h. */
2235#include <$2>
2236_ACEOF
2237if ac_fn_c_try_cpp "$LINENO"; then :
2238 ac_header_preproc=yes
2239else
2240 ac_header_preproc=no
2241fi
2242rm -f conftest.err conftest.$ac_ext
2243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2244$as_echo "$ac_header_preproc" >&6; }
2245
2246# So? What about this header?
2247case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2248 yes:no: )
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2250$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2252$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2253 ;;
2254 no:yes:* )
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2256$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2258$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2260$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2262$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2264$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2265 ;;
2266esac
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2268$as_echo_n "checking for $2... " >&6; }
2269if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2270 $as_echo_n "(cached) " >&6
2271else
2272 eval "$3=\$ac_header_compiler"
2273fi
2274eval ac_res=\$$3
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2276$as_echo "$ac_res" >&6; }
2277fi
2278 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2279
2280} # ac_fn_c_check_header_mongrel
2281
2282# ac_fn_c_try_run LINENO
2283# ----------------------
2284# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2285# that executables *can* be run.
2286ac_fn_c_try_run ()
2287{
2288 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2289 if { { ac_try="$ac_link"
2290case "(($ac_try" in
2291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2292 *) ac_try_echo=$ac_try;;
2293esac
2294eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2295$as_echo "$ac_try_echo"; } >&5
2296 (eval "$ac_link") 2>&5
2297 ac_status=$?
2298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2299 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2300 { { case "(($ac_try" in
2301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2302 *) ac_try_echo=$ac_try;;
2303esac
2304eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2305$as_echo "$ac_try_echo"; } >&5
2306 (eval "$ac_try") 2>&5
2307 ac_status=$?
2308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2309 test $ac_status = 0; }; }; then :
2310 ac_retval=0
2311else
2312 $as_echo "$as_me: program exited with status $ac_status" >&5
2313 $as_echo "$as_me: failed program was:" >&5
2314sed 's/^/| /' conftest.$ac_ext >&5
2315
2316 ac_retval=$ac_status
2317fi
2318 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2319 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2320 return $ac_retval
2321
2322} # ac_fn_c_try_run
2323
2324# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2325# -------------------------------------------------------
2326# Tests whether HEADER exists and can be compiled using the include files in
2327# INCLUDES, setting the cache variable VAR accordingly.
2328ac_fn_c_check_header_compile ()
2329{
2330 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2332$as_echo_n "checking for $2... " >&6; }
2333if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2334 $as_echo_n "(cached) " >&6
2335else
2336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2337/* end confdefs.h. */
2338$4
2339#include <$2>
2340_ACEOF
2341if ac_fn_c_try_compile "$LINENO"; then :
2342 eval "$3=yes"
2343else
2344 eval "$3=no"
2345fi
2346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2347fi
2348eval ac_res=\$$3
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2350$as_echo "$ac_res" >&6; }
2351 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2352
2353} # ac_fn_c_check_header_compile
2354
2355# ac_fn_c_try_link LINENO
2356# -----------------------
2357# Try to link conftest.$ac_ext, and return whether this succeeded.
2358ac_fn_c_try_link ()
2359{
2360 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2361 rm -f conftest.$ac_objext conftest$ac_exeext
2362 if { { ac_try="$ac_link"
2363case "(($ac_try" in
2364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2365 *) ac_try_echo=$ac_try;;
2366esac
2367eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2368$as_echo "$ac_try_echo"; } >&5
2369 (eval "$ac_link") 2>conftest.err
2370 ac_status=$?
2371 if test -s conftest.err; then
2372 grep -v '^ *+' conftest.err >conftest.er1
2373 cat conftest.er1 >&5
2374 mv -f conftest.er1 conftest.err
2375 fi
2376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2377 test $ac_status = 0; } && {
2378 test -z "$ac_c_werror_flag" ||
2379 test ! -s conftest.err
2380 } && test -s conftest$ac_exeext && {
2381 test "$cross_compiling" = yes ||
2382 $as_test_x conftest$ac_exeext
2383 }; then :
2384 ac_retval=0
2385else
2386 $as_echo "$as_me: failed program was:" >&5
2387sed 's/^/| /' conftest.$ac_ext >&5
2388
2389 ac_retval=1
2390fi
2391 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2392 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2393 # interfere with the next link command; also delete a directory that is
2394 # left behind by Apple's compiler. We do this before executing the actions.
2395 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2396 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2397 return $ac_retval
2398
2399} # ac_fn_c_try_link
2400
8690e634
JK
2401# ac_fn_c_check_func LINENO FUNC VAR
2402# ----------------------------------
2403# Tests whether FUNC exists, setting the cache variable VAR accordingly
2404ac_fn_c_check_func ()
2405{
2406 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2408$as_echo_n "checking for $2... " >&6; }
2409if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2410 $as_echo_n "(cached) " >&6
2411else
2412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2413/* end confdefs.h. */
2414/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2415 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2416#define $2 innocuous_$2
2417
2418/* System header to define __stub macros and hopefully few prototypes,
2419 which can conflict with char $2 (); below.
2420 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2421 <limits.h> exists even on freestanding compilers. */
2422
2423#ifdef __STDC__
2424# include <limits.h>
2425#else
2426# include <assert.h>
2427#endif
2428
2429#undef $2
2430
2431/* Override any GCC internal prototype to avoid an error.
2432 Use char because int might match the return type of a GCC
2433 builtin and then its argument prototype would still apply. */
2434#ifdef __cplusplus
2435extern "C"
2436#endif
2437char $2 ();
2438/* The GNU C library defines this for functions which it implements
2439 to always fail with ENOSYS. Some functions are actually named
2440 something starting with __ and the normal name is an alias. */
2441#if defined __stub_$2 || defined __stub___$2
2442choke me
2443#endif
2444
2445int
2446main ()
2447{
2448return $2 ();
2449 ;
2450 return 0;
2451}
2452_ACEOF
2453if ac_fn_c_try_link "$LINENO"; then :
2454 eval "$3=yes"
2455else
2456 eval "$3=no"
2457fi
2458rm -f core conftest.err conftest.$ac_objext \
2459 conftest$ac_exeext conftest.$ac_ext
2460fi
2461eval ac_res=\$$3
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2463$as_echo "$ac_res" >&6; }
2464 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2465
2466} # ac_fn_c_check_func
2467
c971b7fa
PA
2468# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2469# --------------------------------------------
2470# Tries to find the compile-time value of EXPR in a program that includes
2471# INCLUDES, setting VAR accordingly. Returns whether the value could be
2472# computed
2473ac_fn_c_compute_int ()
2474{
2475 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2476 if test "$cross_compiling" = yes; then
2477 # Depending upon the size, compute the lo and hi bounds.
2478cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2479/* end confdefs.h. */
2480$4
2481int
2482main ()
2483{
2484static int test_array [1 - 2 * !(($2) >= 0)];
2485test_array [0] = 0
2486
2487 ;
2488 return 0;
2489}
2490_ACEOF
2491if ac_fn_c_try_compile "$LINENO"; then :
2492 ac_lo=0 ac_mid=0
2493 while :; do
2494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2495/* end confdefs.h. */
2496$4
2497int
2498main ()
2499{
2500static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2501test_array [0] = 0
2502
2503 ;
2504 return 0;
2505}
2506_ACEOF
2507if ac_fn_c_try_compile "$LINENO"; then :
2508 ac_hi=$ac_mid; break
2509else
2510 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2511 if test $ac_lo -le $ac_mid; then
2512 ac_lo= ac_hi=
2513 break
2514 fi
2515 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2516fi
2517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2518 done
2519else
2520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2521/* end confdefs.h. */
2522$4
2523int
2524main ()
2525{
2526static int test_array [1 - 2 * !(($2) < 0)];
2527test_array [0] = 0
2528
2529 ;
2530 return 0;
2531}
2532_ACEOF
2533if ac_fn_c_try_compile "$LINENO"; then :
2534 ac_hi=-1 ac_mid=-1
2535 while :; do
2536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2537/* end confdefs.h. */
2538$4
2539int
2540main ()
2541{
2542static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2543test_array [0] = 0
2544
2545 ;
2546 return 0;
2547}
2548_ACEOF
2549if ac_fn_c_try_compile "$LINENO"; then :
2550 ac_lo=$ac_mid; break
2551else
2552 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2553 if test $ac_mid -le $ac_hi; then
2554 ac_lo= ac_hi=
2555 break
2556 fi
2557 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2558fi
2559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2560 done
2561else
2562 ac_lo= ac_hi=
2563fi
2564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2565fi
2566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2567# Binary search between lo and hi bounds.
2568while test "x$ac_lo" != "x$ac_hi"; do
2569 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2571/* end confdefs.h. */
2572$4
2573int
2574main ()
2575{
2576static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2577test_array [0] = 0
2578
2579 ;
2580 return 0;
2581}
2582_ACEOF
2583if ac_fn_c_try_compile "$LINENO"; then :
2584 ac_hi=$ac_mid
2585else
2586 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2587fi
2588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2589done
2590case $ac_lo in #((
2591?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2592'') ac_retval=1 ;;
2593esac
2594 else
2595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2596/* end confdefs.h. */
2597$4
2598static long int longval () { return $2; }
2599static unsigned long int ulongval () { return $2; }
2600#include <stdio.h>
2601#include <stdlib.h>
2602int
2603main ()
2604{
2605
2606 FILE *f = fopen ("conftest.val", "w");
2607 if (! f)
2608 return 1;
2609 if (($2) < 0)
2610 {
2611 long int i = longval ();
2612 if (i != ($2))
2613 return 1;
2614 fprintf (f, "%ld", i);
2615 }
2616 else
2617 {
2618 unsigned long int i = ulongval ();
2619 if (i != ($2))
2620 return 1;
2621 fprintf (f, "%lu", i);
2622 }
2623 /* Do not output a trailing newline, as this causes \r\n confusion
2624 on some platforms. */
2625 return ferror (f) || fclose (f) != 0;
2626
2627 ;
2628 return 0;
2629}
2630_ACEOF
2631if ac_fn_c_try_run "$LINENO"; then :
2632 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2633else
2634 ac_retval=1
2635fi
2636rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2637 conftest.$ac_objext conftest.beam conftest.$ac_ext
2638rm -f conftest.val
2639
2640 fi
2641 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2642 return $ac_retval
2643
2644} # ac_fn_c_compute_int
2645
63ce7108
TT
2646# ac_fn_c_check_decl LINENO SYMBOL VAR
2647# ------------------------------------
2648# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2649ac_fn_c_check_decl ()
2650{
2651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2653$as_echo_n "checking whether $2 is declared... " >&6; }
2654if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2655 $as_echo_n "(cached) " >&6
2656else
2657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2658/* end confdefs.h. */
2659$4
2660int
2661main ()
2662{
2663#ifndef $2
2664 (void) $2;
2665#endif
2666
2667 ;
2668 return 0;
2669}
2670_ACEOF
2671if ac_fn_c_try_compile "$LINENO"; then :
2672 eval "$3=yes"
2673else
2674 eval "$3=no"
2675fi
2676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2677fi
2678eval ac_res=\$$3
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2680$as_echo "$ac_res" >&6; }
2681 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2682
2683} # ac_fn_c_check_decl
2684
8690e634
JK
2685# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2686# -------------------------------------------
2687# Tests whether TYPE exists after having included INCLUDES, setting cache
2688# variable VAR accordingly.
2689ac_fn_c_check_type ()
c971b7fa
PA
2690{
2691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2693$as_echo_n "checking for $2... " >&6; }
2694if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2695 $as_echo_n "(cached) " >&6
2696else
8690e634 2697 eval "$3=no"
c971b7fa
PA
2698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2699/* end confdefs.h. */
8690e634 2700$4
c971b7fa
PA
2701int
2702main ()
2703{
8690e634
JK
2704if (sizeof ($2))
2705 return 0;
c971b7fa
PA
2706 ;
2707 return 0;
2708}
2709_ACEOF
8690e634 2710if ac_fn_c_try_compile "$LINENO"; then :
c971b7fa
PA
2711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2712/* end confdefs.h. */
2713$4
2714int
2715main ()
2716{
8690e634
JK
2717if (sizeof (($2)))
2718 return 0;
c971b7fa
PA
2719 ;
2720 return 0;
2721}
2722_ACEOF
2723if ac_fn_c_try_compile "$LINENO"; then :
8690e634 2724
c971b7fa 2725else
8690e634
JK
2726 eval "$3=yes"
2727fi
2728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c971b7fa
PA
2729fi
2730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2731fi
2732eval ac_res=\$$3
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2734$as_echo "$ac_res" >&6; }
2735 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2736
8690e634 2737} # ac_fn_c_check_type
c971b7fa
PA
2738cat >config.log <<_ACEOF
2739This file contains any messages produced by compilers while
2740running configure, to aid debugging if configure makes a mistake.
2741
2742It was created by $as_me, which was
2743generated by GNU Autoconf 2.64. Invocation command line was
2744
2745 $ $0 $@
2746
2747_ACEOF
2748exec 5>>config.log
2749{
2750cat <<_ASUNAME
2751## --------- ##
2752## Platform. ##
2753## --------- ##
2754
2755hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2756uname -m = `(uname -m) 2>/dev/null || echo unknown`
2757uname -r = `(uname -r) 2>/dev/null || echo unknown`
2758uname -s = `(uname -s) 2>/dev/null || echo unknown`
2759uname -v = `(uname -v) 2>/dev/null || echo unknown`
2760
2761/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2762/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2763
2764/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2765/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2766/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2767/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2768/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2769/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2770/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2771
2772_ASUNAME
2773
2774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775for as_dir in $PATH
2776do
2777 IFS=$as_save_IFS
2778 test -z "$as_dir" && as_dir=.
2779 $as_echo "PATH: $as_dir"
2780 done
2781IFS=$as_save_IFS
2782
2783} >&5
2784
2785cat >&5 <<_ACEOF
2786
2787
2788## ----------- ##
2789## Core tests. ##
2790## ----------- ##
2791
2792_ACEOF
2793
2794
2795# Keep a trace of the command line.
2796# Strip out --no-create and --no-recursion so they do not pile up.
2797# Strip out --silent because we don't want to record it for future runs.
2798# Also quote any args containing shell meta-characters.
2799# Make two passes to allow for proper duplicate-argument suppression.
2800ac_configure_args=
2801ac_configure_args0=
2802ac_configure_args1=
2803ac_must_keep_next=false
2804for ac_pass in 1 2
2805do
2806 for ac_arg
2807 do
2808 case $ac_arg in
2809 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2810 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2811 | -silent | --silent | --silen | --sile | --sil)
2812 continue ;;
2813 *\'*)
2814 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2815 esac
2816 case $ac_pass in
2817 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2818 2)
2819 as_fn_append ac_configure_args1 " '$ac_arg'"
2820 if test $ac_must_keep_next = true; then
2821 ac_must_keep_next=false # Got value, back to normal.
2822 else
2823 case $ac_arg in
2824 *=* | --config-cache | -C | -disable-* | --disable-* \
2825 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2826 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2827 | -with-* | --with-* | -without-* | --without-* | --x)
2828 case "$ac_configure_args0 " in
2829 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2830 esac
2831 ;;
2832 -* ) ac_must_keep_next=true ;;
2833 esac
2834 fi
2835 as_fn_append ac_configure_args " '$ac_arg'"
2836 ;;
2837 esac
2838 done
2839done
2840{ ac_configure_args0=; unset ac_configure_args0;}
2841{ ac_configure_args1=; unset ac_configure_args1;}
2842
2843# When interrupted or exit'd, cleanup temporary files, and complete
2844# config.log. We remove comments because anyway the quotes in there
2845# would cause problems or look ugly.
2846# WARNING: Use '\'' to represent an apostrophe within the trap.
2847# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2848trap 'exit_status=$?
2849 # Save into config.log some information that might help in debugging.
2850 {
2851 echo
2852
2853 cat <<\_ASBOX
2854## ---------------- ##
2855## Cache variables. ##
2856## ---------------- ##
2857_ASBOX
2858 echo
2859 # The following way of writing the cache mishandles newlines in values,
2860(
2861 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2862 eval ac_val=\$$ac_var
2863 case $ac_val in #(
2864 *${as_nl}*)
2865 case $ac_var in #(
2866 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2867$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2868 esac
2869 case $ac_var in #(
2870 _ | IFS | as_nl) ;; #(
2871 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2872 *) { eval $ac_var=; unset $ac_var;} ;;
2873 esac ;;
2874 esac
2875 done
2876 (set) 2>&1 |
2877 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2878 *${as_nl}ac_space=\ *)
2879 sed -n \
2880 "s/'\''/'\''\\\\'\'''\''/g;
2881 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2882 ;; #(
2883 *)
2884 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2885 ;;
2886 esac |
2887 sort
2888)
2889 echo
2890
2891 cat <<\_ASBOX
2892## ----------------- ##
2893## Output variables. ##
2894## ----------------- ##
2895_ASBOX
2896 echo
2897 for ac_var in $ac_subst_vars
2898 do
2899 eval ac_val=\$$ac_var
2900 case $ac_val in
2901 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2902 esac
2903 $as_echo "$ac_var='\''$ac_val'\''"
2904 done | sort
2905 echo
2906
2907 if test -n "$ac_subst_files"; then
2908 cat <<\_ASBOX
2909## ------------------- ##
2910## File substitutions. ##
2911## ------------------- ##
2912_ASBOX
2913 echo
2914 for ac_var in $ac_subst_files
2915 do
2916 eval ac_val=\$$ac_var
2917 case $ac_val in
2918 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2919 esac
2920 $as_echo "$ac_var='\''$ac_val'\''"
2921 done | sort
2922 echo
2923 fi
2924
2925 if test -s confdefs.h; then
2926 cat <<\_ASBOX
2927## ----------- ##
2928## confdefs.h. ##
2929## ----------- ##
2930_ASBOX
2931 echo
2932 cat confdefs.h
2933 echo
2934 fi
2935 test "$ac_signal" != 0 &&
2936 $as_echo "$as_me: caught signal $ac_signal"
2937 $as_echo "$as_me: exit $exit_status"
2938 } >&5
2939 rm -f core *.core core.conftest.* &&
2940 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2941 exit $exit_status
2942' 0
2943for ac_signal in 1 2 13 15; do
2944 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2945done
2946ac_signal=0
2947
2948# confdefs.h avoids OS command line length limits that DEFS can exceed.
2949rm -f -r conftest* confdefs.h
2950
2951$as_echo "/* confdefs.h */" > confdefs.h
2952
2953# Predefined preprocessor variables.
2954
2955cat >>confdefs.h <<_ACEOF
2956#define PACKAGE_NAME "$PACKAGE_NAME"
2957_ACEOF
2958
2959cat >>confdefs.h <<_ACEOF
2960#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2961_ACEOF
2962
2963cat >>confdefs.h <<_ACEOF
2964#define PACKAGE_VERSION "$PACKAGE_VERSION"
2965_ACEOF
2966
2967cat >>confdefs.h <<_ACEOF
2968#define PACKAGE_STRING "$PACKAGE_STRING"
2969_ACEOF
2970
2971cat >>confdefs.h <<_ACEOF
2972#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2973_ACEOF
2974
2975cat >>confdefs.h <<_ACEOF
2976#define PACKAGE_URL "$PACKAGE_URL"
2977_ACEOF
2978
2979
2980# Let the site file select an alternate cache file if it wants to.
2981# Prefer an explicitly selected file to automatically selected ones.
2982ac_site_file1=NONE
2983ac_site_file2=NONE
2984if test -n "$CONFIG_SITE"; then
2985 ac_site_file1=$CONFIG_SITE
2986elif test "x$prefix" != xNONE; then
2987 ac_site_file1=$prefix/share/config.site
2988 ac_site_file2=$prefix/etc/config.site
2989else
2990 ac_site_file1=$ac_default_prefix/share/config.site
2991 ac_site_file2=$ac_default_prefix/etc/config.site
2992fi
2993for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2994do
2995 test "x$ac_site_file" = xNONE && continue
2996 if test -r "$ac_site_file"; then
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2998$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2999 sed 's/^/| /' "$ac_site_file" >&5
3000 . "$ac_site_file"
3001 fi
3002done
3003
3004if test -r "$cache_file"; then
3005 # Some versions of bash will fail to source /dev/null (special
3006 # files actually), so we avoid doing that.
3007 if test -f "$cache_file"; then
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3009$as_echo "$as_me: loading cache $cache_file" >&6;}
3010 case $cache_file in
3011 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3012 *) . "./$cache_file";;
3013 esac
3014 fi
3015else
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3017$as_echo "$as_me: creating cache $cache_file" >&6;}
3018 >$cache_file
3019fi
3020
e26b6bb0 3021as_fn_append ac_header_list " dirent.h"
3574124b
PA
3022as_fn_append ac_func_list " btowc"
3023as_fn_append ac_func_list " isblank"
3024as_fn_append ac_func_list " iswctype"
3025as_fn_append ac_func_list " mbsrtowcs"
3026as_fn_append ac_func_list " mempcpy"
3027as_fn_append ac_func_list " wmemchr"
3028as_fn_append ac_func_list " wmemcpy"
3029as_fn_append ac_func_list " wmempcpy"
3030as_fn_append ac_header_list " wctype.h"
8690e634 3031gl_fnmatch_required=GNU
3574124b
PA
3032as_fn_append ac_func_list " alarm"
3033as_fn_append ac_header_list " wchar.h"
3034as_fn_append ac_header_list " stdint.h"
3035as_fn_append ac_header_list " inttypes.h"
3036as_fn_append ac_header_list " unistd.h"
3037as_fn_append ac_func_list " symlink"
3038as_fn_append ac_header_list " math.h"
3039as_fn_append ac_func_list " mbsinit"
3040as_fn_append ac_func_list " mbrtowc"
3041as_fn_append ac_header_list " sys/mman.h"
3042as_fn_append ac_func_list " mprotect"
38ec2207 3043as_fn_append ac_header_list " sys/param.h"
63ce7108 3044as_fn_append ac_header_list " sys/socket.h"
3574124b
PA
3045as_fn_append ac_header_list " features.h"
3046as_fn_append ac_func_list " iswcntrl"
c971b7fa
PA
3047# Check that the precious variables saved in the cache have kept the same
3048# value.
3049ac_cache_corrupted=false
3050for ac_var in $ac_precious_vars; do
3051 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3052 eval ac_new_set=\$ac_env_${ac_var}_set
3053 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3054 eval ac_new_val=\$ac_env_${ac_var}_value
3055 case $ac_old_set,$ac_new_set in
3056 set,)
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3058$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3059 ac_cache_corrupted=: ;;
3060 ,set)
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3062$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3063 ac_cache_corrupted=: ;;
3064 ,);;
3065 *)
3066 if test "x$ac_old_val" != "x$ac_new_val"; then
3067 # differences in whitespace do not lead to failure.
3068 ac_old_val_w=`echo x $ac_old_val`
3069 ac_new_val_w=`echo x $ac_new_val`
3070 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3072$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3073 ac_cache_corrupted=:
3074 else
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3076$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3077 eval $ac_var=\$ac_old_val
3078 fi
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3080$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3082$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3083 fi;;
3084 esac
3085 # Pass precious variables to config.status.
3086 if test "$ac_new_set" = set; then
3087 case $ac_new_val in
3088 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3089 *) ac_arg=$ac_var=$ac_new_val ;;
3090 esac
3091 case " $ac_configure_args " in
3092 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3093 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3094 esac
3095 fi
3096done
3097if $ac_cache_corrupted; then
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3099$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3101$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3102 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3103fi
3104## -------------------- ##
3105## Main body of script. ##
3106## -------------------- ##
3107
3108ac_ext=c
3109ac_cpp='$CPP $CPPFLAGS'
3110ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3111ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3112ac_compiler_gnu=$ac_cv_c_compiler_gnu
3113
3114
3115ac_config_headers="$ac_config_headers config.h:config.in"
3116
3117
3118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3119$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3120 # Check whether --enable-maintainer-mode was given.
3121if test "${enable_maintainer_mode+set}" = set; then :
3122 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3123else
3124 USE_MAINTAINER_MODE=no
3125fi
3126
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3128$as_echo "$USE_MAINTAINER_MODE" >&6; }
3129 if test $USE_MAINTAINER_MODE = yes; then
3130 MAINTAINER_MODE_TRUE=
3131 MAINTAINER_MODE_FALSE='#'
3132else
3133 MAINTAINER_MODE_TRUE='#'
3134 MAINTAINER_MODE_FALSE=
3135fi
3136
3137 MAINT=$MAINTAINER_MODE_TRUE
3138
3139
3140
3141ac_ext=c
3142ac_cpp='$CPP $CPPFLAGS'
3143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3145ac_compiler_gnu=$ac_cv_c_compiler_gnu
3146if test -n "$ac_tool_prefix"; then
3147 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3148set dummy ${ac_tool_prefix}gcc; ac_word=$2
3149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3150$as_echo_n "checking for $ac_word... " >&6; }
3151if test "${ac_cv_prog_CC+set}" = set; then :
3152 $as_echo_n "(cached) " >&6
3153else
3154 if test -n "$CC"; then
3155 ac_cv_prog_CC="$CC" # Let the user override the test.
3156else
3157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3158for as_dir in $PATH
3159do
3160 IFS=$as_save_IFS
3161 test -z "$as_dir" && as_dir=.
3162 for ac_exec_ext in '' $ac_executable_extensions; do
3163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3164 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3166 break 2
3167 fi
3168done
3169 done
3170IFS=$as_save_IFS
3171
3172fi
3173fi
3174CC=$ac_cv_prog_CC
3175if test -n "$CC"; then
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3177$as_echo "$CC" >&6; }
3178else
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3180$as_echo "no" >&6; }
3181fi
3182
3183
3184fi
3185if test -z "$ac_cv_prog_CC"; then
3186 ac_ct_CC=$CC
3187 # Extract the first word of "gcc", so it can be a program name with args.
3188set dummy gcc; ac_word=$2
3189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3190$as_echo_n "checking for $ac_word... " >&6; }
3191if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3192 $as_echo_n "(cached) " >&6
3193else
3194 if test -n "$ac_ct_CC"; then
3195 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3196else
3197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3198for as_dir in $PATH
3199do
3200 IFS=$as_save_IFS
3201 test -z "$as_dir" && as_dir=.
3202 for ac_exec_ext in '' $ac_executable_extensions; do
3203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3204 ac_cv_prog_ac_ct_CC="gcc"
3205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3206 break 2
3207 fi
3208done
3209 done
3210IFS=$as_save_IFS
3211
3212fi
3213fi
3214ac_ct_CC=$ac_cv_prog_ac_ct_CC
3215if test -n "$ac_ct_CC"; then
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3217$as_echo "$ac_ct_CC" >&6; }
3218else
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3220$as_echo "no" >&6; }
3221fi
3222
3223 if test "x$ac_ct_CC" = x; then
3224 CC=""
3225 else
3226 case $cross_compiling:$ac_tool_warned in
3227yes:)
3228{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3229$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3230ac_tool_warned=yes ;;
3231esac
3232 CC=$ac_ct_CC
3233 fi
3234else
3235 CC="$ac_cv_prog_CC"
3236fi
3237
3238if test -z "$CC"; then
3239 if test -n "$ac_tool_prefix"; then
3240 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3241set dummy ${ac_tool_prefix}cc; ac_word=$2
3242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3243$as_echo_n "checking for $ac_word... " >&6; }
3244if test "${ac_cv_prog_CC+set}" = set; then :
3245 $as_echo_n "(cached) " >&6
3246else
3247 if test -n "$CC"; then
3248 ac_cv_prog_CC="$CC" # Let the user override the test.
3249else
3250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3251for as_dir in $PATH
3252do
3253 IFS=$as_save_IFS
3254 test -z "$as_dir" && as_dir=.
3255 for ac_exec_ext in '' $ac_executable_extensions; do
3256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3257 ac_cv_prog_CC="${ac_tool_prefix}cc"
3258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3259 break 2
3260 fi
3261done
3262 done
3263IFS=$as_save_IFS
3264
3265fi
3266fi
3267CC=$ac_cv_prog_CC
3268if test -n "$CC"; then
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3270$as_echo "$CC" >&6; }
3271else
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3273$as_echo "no" >&6; }
3274fi
3275
3276
3277 fi
3278fi
3279if test -z "$CC"; then
3280 # Extract the first word of "cc", so it can be a program name with args.
3281set dummy cc; ac_word=$2
3282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3283$as_echo_n "checking for $ac_word... " >&6; }
3284if test "${ac_cv_prog_CC+set}" = set; then :
3285 $as_echo_n "(cached) " >&6
3286else
3287 if test -n "$CC"; then
3288 ac_cv_prog_CC="$CC" # Let the user override the test.
3289else
3290 ac_prog_rejected=no
3291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3292for as_dir in $PATH
3293do
3294 IFS=$as_save_IFS
3295 test -z "$as_dir" && as_dir=.
3296 for ac_exec_ext in '' $ac_executable_extensions; do
3297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3298 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3299 ac_prog_rejected=yes
3300 continue
3301 fi
3302 ac_cv_prog_CC="cc"
3303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3304 break 2
3305 fi
3306done
3307 done
3308IFS=$as_save_IFS
3309
3310if test $ac_prog_rejected = yes; then
3311 # We found a bogon in the path, so make sure we never use it.
3312 set dummy $ac_cv_prog_CC
3313 shift
3314 if test $# != 0; then
3315 # We chose a different compiler from the bogus one.
3316 # However, it has the same basename, so the bogon will be chosen
3317 # first if we set CC to just the basename; use the full file name.
3318 shift
3319 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3320 fi
3321fi
3322fi
3323fi
3324CC=$ac_cv_prog_CC
3325if test -n "$CC"; then
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3327$as_echo "$CC" >&6; }
3328else
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3330$as_echo "no" >&6; }
3331fi
3332
3333
3334fi
3335if test -z "$CC"; then
3336 if test -n "$ac_tool_prefix"; then
3337 for ac_prog in cl.exe
3338 do
3339 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3340set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3342$as_echo_n "checking for $ac_word... " >&6; }
3343if test "${ac_cv_prog_CC+set}" = set; then :
3344 $as_echo_n "(cached) " >&6
3345else
3346 if test -n "$CC"; then
3347 ac_cv_prog_CC="$CC" # Let the user override the test.
3348else
3349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3350for as_dir in $PATH
3351do
3352 IFS=$as_save_IFS
3353 test -z "$as_dir" && as_dir=.
3354 for ac_exec_ext in '' $ac_executable_extensions; do
3355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3356 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3358 break 2
3359 fi
3360done
3361 done
3362IFS=$as_save_IFS
3363
3364fi
3365fi
3366CC=$ac_cv_prog_CC
3367if test -n "$CC"; then
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3369$as_echo "$CC" >&6; }
3370else
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3372$as_echo "no" >&6; }
3373fi
3374
3375
3376 test -n "$CC" && break
3377 done
3378fi
3379if test -z "$CC"; then
3380 ac_ct_CC=$CC
3381 for ac_prog in cl.exe
3382do
3383 # Extract the first word of "$ac_prog", so it can be a program name with args.
3384set dummy $ac_prog; ac_word=$2
3385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3386$as_echo_n "checking for $ac_word... " >&6; }
3387if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3388 $as_echo_n "(cached) " >&6
3389else
3390 if test -n "$ac_ct_CC"; then
3391 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3392else
3393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3394for as_dir in $PATH
3395do
3396 IFS=$as_save_IFS
3397 test -z "$as_dir" && as_dir=.
3398 for ac_exec_ext in '' $ac_executable_extensions; do
3399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3400 ac_cv_prog_ac_ct_CC="$ac_prog"
3401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3402 break 2
3403 fi
3404done
3405 done
3406IFS=$as_save_IFS
3407
3408fi
3409fi
3410ac_ct_CC=$ac_cv_prog_ac_ct_CC
3411if test -n "$ac_ct_CC"; then
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3413$as_echo "$ac_ct_CC" >&6; }
3414else
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3416$as_echo "no" >&6; }
3417fi
3418
3419
3420 test -n "$ac_ct_CC" && break
3421done
3422
3423 if test "x$ac_ct_CC" = x; then
3424 CC=""
3425 else
3426 case $cross_compiling:$ac_tool_warned in
3427yes:)
3428{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3429$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3430ac_tool_warned=yes ;;
3431esac
3432 CC=$ac_ct_CC
3433 fi
3434fi
3435
3436fi
3437
3438
3439test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3440$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3441as_fn_error "no acceptable C compiler found in \$PATH
3442See \`config.log' for more details." "$LINENO" 5; }
3443
3444# Provide some information about the compiler.
3445$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3446set X $ac_compile
3447ac_compiler=$2
3448for ac_option in --version -v -V -qversion; do
3449 { { ac_try="$ac_compiler $ac_option >&5"
3450case "(($ac_try" in
3451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3452 *) ac_try_echo=$ac_try;;
3453esac
3454eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3455$as_echo "$ac_try_echo"; } >&5
3456 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3457 ac_status=$?
3458 if test -s conftest.err; then
3459 sed '10a\
3460... rest of stderr output deleted ...
3461 10q' conftest.err >conftest.er1
3462 cat conftest.er1 >&5
3463 rm -f conftest.er1 conftest.err
3464 fi
3465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3466 test $ac_status = 0; }
3467done
3468
3469cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3470/* end confdefs.h. */
3471#include <stdio.h>
3472int
3473main ()
3474{
3475FILE *f = fopen ("conftest.out", "w");
3476 return ferror (f) || fclose (f) != 0;
3477
3478 ;
3479 return 0;
3480}
3481_ACEOF
3482ac_clean_files_save=$ac_clean_files
3483ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3484# Try to create an executable without -o first, disregard a.out.
3485# It will help us diagnose broken compilers, and finding out an intuition
3486# of exeext.
3487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3488$as_echo_n "checking for C compiler default output file name... " >&6; }
3489ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3490
3491# The possible output files:
3492ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3493
3494ac_rmfiles=
3495for ac_file in $ac_files
3496do
3497 case $ac_file in
3498 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3499 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3500 esac
3501done
3502rm -f $ac_rmfiles
3503
3504if { { ac_try="$ac_link_default"
3505case "(($ac_try" in
3506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3507 *) ac_try_echo=$ac_try;;
3508esac
3509eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3510$as_echo "$ac_try_echo"; } >&5
3511 (eval "$ac_link_default") 2>&5
3512 ac_status=$?
3513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3514 test $ac_status = 0; }; then :
3515 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3516# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3517# in a Makefile. We should not override ac_cv_exeext if it was cached,
3518# so that the user can short-circuit this test for compilers unknown to
3519# Autoconf.
3520for ac_file in $ac_files ''
3521do
3522 test -f "$ac_file" || continue
3523 case $ac_file in
3524 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3525 ;;
3526 [ab].out )
3527 # We found the default executable, but exeext='' is most
3528 # certainly right.
3529 break;;
3530 *.* )
3531 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3532 then :; else
3533 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3534 fi
3535 # We set ac_cv_exeext here because the later test for it is not
3536 # safe: cross compilers may not add the suffix if given an `-o'
3537 # argument, so we may need to know it at that point already.
3538 # Even if this section looks crufty: it has the advantage of
3539 # actually working.
3540 break;;
3541 * )
3542 break;;
3543 esac
3544done
3545test "$ac_cv_exeext" = no && ac_cv_exeext=
3546
3547else
3548 ac_file=''
3549fi
3550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3551$as_echo "$ac_file" >&6; }
3552if test -z "$ac_file"; then :
3553 $as_echo "$as_me: failed program was:" >&5
3554sed 's/^/| /' conftest.$ac_ext >&5
3555
3556{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3557$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3558{ as_fn_set_status 77
3559as_fn_error "C compiler cannot create executables
3560See \`config.log' for more details." "$LINENO" 5; }; }
3561fi
3562ac_exeext=$ac_cv_exeext
3563
3564# Check that the compiler produces executables we can run. If not, either
3565# the compiler is broken, or we cross compile.
3566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3567$as_echo_n "checking whether the C compiler works... " >&6; }
3568# If not cross compiling, check that we can run a simple program.
3569if test "$cross_compiling" != yes; then
3570 if { ac_try='./$ac_file'
3571 { { case "(($ac_try" in
3572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3573 *) ac_try_echo=$ac_try;;
3574esac
3575eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3576$as_echo "$ac_try_echo"; } >&5
3577 (eval "$ac_try") 2>&5
3578 ac_status=$?
3579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3580 test $ac_status = 0; }; }; then
3581 cross_compiling=no
3582 else
3583 if test "$cross_compiling" = maybe; then
3584 cross_compiling=yes
3585 else
3586 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3587$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3588as_fn_error "cannot run C compiled programs.
3589If you meant to cross compile, use \`--host'.
3590See \`config.log' for more details." "$LINENO" 5; }
3591 fi
3592 fi
3593fi
3594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3595$as_echo "yes" >&6; }
3596
3597rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3598ac_clean_files=$ac_clean_files_save
3599# Check that the compiler produces executables we can run. If not, either
3600# the compiler is broken, or we cross compile.
3601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3602$as_echo_n "checking whether we are cross compiling... " >&6; }
3603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3604$as_echo "$cross_compiling" >&6; }
3605
3606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3607$as_echo_n "checking for suffix of executables... " >&6; }
3608if { { ac_try="$ac_link"
3609case "(($ac_try" in
3610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3611 *) ac_try_echo=$ac_try;;
3612esac
3613eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3614$as_echo "$ac_try_echo"; } >&5
3615 (eval "$ac_link") 2>&5
3616 ac_status=$?
3617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3618 test $ac_status = 0; }; then :
3619 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3620# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3621# work properly (i.e., refer to `conftest.exe'), while it won't with
3622# `rm'.
3623for ac_file in conftest.exe conftest conftest.*; do
3624 test -f "$ac_file" || continue
3625 case $ac_file in
3626 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3627 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3628 break;;
3629 * ) break;;
3630 esac
3631done
3632else
3633 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3634$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3635as_fn_error "cannot compute suffix of executables: cannot compile and link
3636See \`config.log' for more details." "$LINENO" 5; }
3637fi
3638rm -f conftest$ac_cv_exeext
3639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3640$as_echo "$ac_cv_exeext" >&6; }
3641
3642rm -f conftest.$ac_ext
3643EXEEXT=$ac_cv_exeext
3644ac_exeext=$EXEEXT
3645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3646$as_echo_n "checking for suffix of object files... " >&6; }
3647if test "${ac_cv_objext+set}" = set; then :
3648 $as_echo_n "(cached) " >&6
3649else
3650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3651/* end confdefs.h. */
3652
3653int
3654main ()
3655{
3656
3657 ;
3658 return 0;
3659}
3660_ACEOF
3661rm -f conftest.o conftest.obj
3662if { { ac_try="$ac_compile"
3663case "(($ac_try" in
3664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3665 *) ac_try_echo=$ac_try;;
3666esac
3667eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3668$as_echo "$ac_try_echo"; } >&5
3669 (eval "$ac_compile") 2>&5
3670 ac_status=$?
3671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3672 test $ac_status = 0; }; then :
3673 for ac_file in conftest.o conftest.obj conftest.*; do
3674 test -f "$ac_file" || continue;
3675 case $ac_file in
3676 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3677 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3678 break;;
3679 esac
3680done
3681else
3682 $as_echo "$as_me: failed program was:" >&5
3683sed 's/^/| /' conftest.$ac_ext >&5
3684
3685{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3686$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3687as_fn_error "cannot compute suffix of object files: cannot compile
3688See \`config.log' for more details." "$LINENO" 5; }
3689fi
3690rm -f conftest.$ac_cv_objext conftest.$ac_ext
3691fi
3692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3693$as_echo "$ac_cv_objext" >&6; }
3694OBJEXT=$ac_cv_objext
3695ac_objext=$OBJEXT
3696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3697$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3698if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3699 $as_echo_n "(cached) " >&6
3700else
3701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3702/* end confdefs.h. */
3703
3704int
3705main ()
3706{
3707#ifndef __GNUC__
3708 choke me
3709#endif
3710
3711 ;
3712 return 0;
3713}
3714_ACEOF
3715if ac_fn_c_try_compile "$LINENO"; then :
3716 ac_compiler_gnu=yes
3717else
3718 ac_compiler_gnu=no
3719fi
3720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3721ac_cv_c_compiler_gnu=$ac_compiler_gnu
3722
3723fi
3724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3725$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3726if test $ac_compiler_gnu = yes; then
3727 GCC=yes
3728else
3729 GCC=
3730fi
3731ac_test_CFLAGS=${CFLAGS+set}
3732ac_save_CFLAGS=$CFLAGS
3733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3734$as_echo_n "checking whether $CC accepts -g... " >&6; }
3735if test "${ac_cv_prog_cc_g+set}" = set; then :
3736 $as_echo_n "(cached) " >&6
3737else
3738 ac_save_c_werror_flag=$ac_c_werror_flag
3739 ac_c_werror_flag=yes
3740 ac_cv_prog_cc_g=no
3741 CFLAGS="-g"
3742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3743/* end confdefs.h. */
3744
3745int
3746main ()
3747{
3748
3749 ;
3750 return 0;
3751}
3752_ACEOF
3753if ac_fn_c_try_compile "$LINENO"; then :
3754 ac_cv_prog_cc_g=yes
3755else
3756 CFLAGS=""
3757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3758/* end confdefs.h. */
3759
3760int
3761main ()
3762{
3763
3764 ;
3765 return 0;
3766}
3767_ACEOF
3768if ac_fn_c_try_compile "$LINENO"; then :
3769
3770else
3771 ac_c_werror_flag=$ac_save_c_werror_flag
3772 CFLAGS="-g"
3773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3774/* end confdefs.h. */
3775
3776int
3777main ()
3778{
3779
3780 ;
3781 return 0;
3782}
3783_ACEOF
3784if ac_fn_c_try_compile "$LINENO"; then :
3785 ac_cv_prog_cc_g=yes
3786fi
3787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3788fi
3789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3790fi
3791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3792 ac_c_werror_flag=$ac_save_c_werror_flag
3793fi
3794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3795$as_echo "$ac_cv_prog_cc_g" >&6; }
3796if test "$ac_test_CFLAGS" = set; then
3797 CFLAGS=$ac_save_CFLAGS
3798elif test $ac_cv_prog_cc_g = yes; then
3799 if test "$GCC" = yes; then
3800 CFLAGS="-g -O2"
3801 else
3802 CFLAGS="-g"
3803 fi
3804else
3805 if test "$GCC" = yes; then
3806 CFLAGS="-O2"
3807 else
3808 CFLAGS=
3809 fi
3810fi
3811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3812$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3813if test "${ac_cv_prog_cc_c89+set}" = set; then :
3814 $as_echo_n "(cached) " >&6
3815else
3816 ac_cv_prog_cc_c89=no
3817ac_save_CC=$CC
3818cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3819/* end confdefs.h. */
3820#include <stdarg.h>
3821#include <stdio.h>
3822#include <sys/types.h>
3823#include <sys/stat.h>
3824/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3825struct buf { int x; };
3826FILE * (*rcsopen) (struct buf *, struct stat *, int);
3827static char *e (p, i)
3828 char **p;
3829 int i;
3830{
3831 return p[i];
3832}
3833static char *f (char * (*g) (char **, int), char **p, ...)
3834{
3835 char *s;
3836 va_list v;
3837 va_start (v,p);
3838 s = g (p, va_arg (v,int));
3839 va_end (v);
3840 return s;
3841}
3842
3843/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3844 function prototypes and stuff, but not '\xHH' hex character constants.
3845 These don't provoke an error unfortunately, instead are silently treated
3846 as 'x'. The following induces an error, until -std is added to get
3847 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3848 array size at least. It's necessary to write '\x00'==0 to get something
3849 that's true only with -std. */
3850int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3851
3852/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3853 inside strings and character constants. */
3854#define FOO(x) 'x'
3855int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3856
3857int test (int i, double x);
3858struct s1 {int (*f) (int a);};
3859struct s2 {int (*f) (double a);};
3860int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3861int argc;
3862char **argv;
3863int
3864main ()
3865{
3866return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3867 ;
3868 return 0;
3869}
3870_ACEOF
3871for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3872 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3873do
3874 CC="$ac_save_CC $ac_arg"
3875 if ac_fn_c_try_compile "$LINENO"; then :
3876 ac_cv_prog_cc_c89=$ac_arg
3877fi
3878rm -f core conftest.err conftest.$ac_objext
3879 test "x$ac_cv_prog_cc_c89" != "xno" && break
3880done
3881rm -f conftest.$ac_ext
3882CC=$ac_save_CC
3883
3884fi
3885# AC_CACHE_VAL
3886case "x$ac_cv_prog_cc_c89" in
3887 x)
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3889$as_echo "none needed" >&6; } ;;
3890 xno)
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3892$as_echo "unsupported" >&6; } ;;
3893 *)
3894 CC="$CC $ac_cv_prog_cc_c89"
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3896$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3897esac
3898if test "x$ac_cv_prog_cc_c89" != xno; then :
3899
3900fi
3901
3902ac_ext=c
3903ac_cpp='$CPP $CPPFLAGS'
3904ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3905ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3906ac_compiler_gnu=$ac_cv_c_compiler_gnu
3907
3908ac_aux_dir=
3909for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3910 for ac_t in install-sh install.sh shtool; do
3911 if test -f "$ac_dir/$ac_t"; then
3912 ac_aux_dir=$ac_dir
3913 ac_install_sh="$ac_aux_dir/$ac_t -c"
3914 break 2
3915 fi
3916 done
3917done
3918if test -z "$ac_aux_dir"; then
3919 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3920fi
3921
3922# These three variables are undocumented and unsupported,
3923# and are intended to be withdrawn in a future Autoconf release.
3924# They can cause serious problems if a builder's source tree is in a directory
3925# whose full name contains unusual characters.
3926ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3927ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3928ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3929
3930
3931# Make sure we can run config.sub.
3932$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3933 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3934
3935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3936$as_echo_n "checking build system type... " >&6; }
3937if test "${ac_cv_build+set}" = set; then :
3938 $as_echo_n "(cached) " >&6
3939else
3940 ac_build_alias=$build_alias
3941test "x$ac_build_alias" = x &&
3942 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3943test "x$ac_build_alias" = x &&
3944 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3945ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3946 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3947
3948fi
3949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3950$as_echo "$ac_cv_build" >&6; }
3951case $ac_cv_build in
3952*-*-*) ;;
3953*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3954esac
3955build=$ac_cv_build
3956ac_save_IFS=$IFS; IFS='-'
3957set x $ac_cv_build
3958shift
3959build_cpu=$1
3960build_vendor=$2
3961shift; shift
3962# Remember, the first character of IFS is used to create $*,
3963# except with old shells:
3964build_os=$*
3965IFS=$ac_save_IFS
3966case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3967
3968
3969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3970$as_echo_n "checking host system type... " >&6; }
3971if test "${ac_cv_host+set}" = set; then :
3972 $as_echo_n "(cached) " >&6
3973else
3974 if test "x$host_alias" = x; then
3975 ac_cv_host=$ac_cv_build
3976else
3977 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3978 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3979fi
3980
3981fi
3982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3983$as_echo "$ac_cv_host" >&6; }
3984case $ac_cv_host in
3985*-*-*) ;;
3986*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3987esac
3988host=$ac_cv_host
3989ac_save_IFS=$IFS; IFS='-'
3990set x $ac_cv_host
3991shift
3992host_cpu=$1
3993host_vendor=$2
3994shift; shift
3995# Remember, the first character of IFS is used to create $*,
3996# except with old shells:
3997host_os=$*
3998IFS=$ac_save_IFS
3999case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4000
4001
4002
4003ac_ext=c
4004ac_cpp='$CPP $CPPFLAGS'
4005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4007ac_compiler_gnu=$ac_cv_c_compiler_gnu
4008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4009$as_echo_n "checking how to run the C preprocessor... " >&6; }
4010# On Suns, sometimes $CPP names a directory.
4011if test -n "$CPP" && test -d "$CPP"; then
4012 CPP=
4013fi
4014if test -z "$CPP"; then
4015 if test "${ac_cv_prog_CPP+set}" = set; then :
4016 $as_echo_n "(cached) " >&6
4017else
4018 # Double quotes because CPP needs to be expanded
4019 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4020 do
4021 ac_preproc_ok=false
4022for ac_c_preproc_warn_flag in '' yes
4023do
4024 # Use a header file that comes with gcc, so configuring glibc
4025 # with a fresh cross-compiler works.
4026 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4027 # <limits.h> exists even on freestanding compilers.
4028 # On the NeXT, cc -E runs the code through the compiler's parser,
4029 # not just through cpp. "Syntax error" is here to catch this case.
4030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4031/* end confdefs.h. */
4032#ifdef __STDC__
4033# include <limits.h>
4034#else
4035# include <assert.h>
4036#endif
4037 Syntax error
4038_ACEOF
4039if ac_fn_c_try_cpp "$LINENO"; then :
4040
4041else
4042 # Broken: fails on valid input.
4043continue
4044fi
4045rm -f conftest.err conftest.$ac_ext
4046
4047 # OK, works on sane cases. Now check whether nonexistent headers
4048 # can be detected and how.
4049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4050/* end confdefs.h. */
4051#include <ac_nonexistent.h>
4052_ACEOF
4053if ac_fn_c_try_cpp "$LINENO"; then :
4054 # Broken: success on invalid input.
4055continue
4056else
4057 # Passes both tests.
4058ac_preproc_ok=:
4059break
4060fi
4061rm -f conftest.err conftest.$ac_ext
4062
4063done
4064# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4065rm -f conftest.err conftest.$ac_ext
4066if $ac_preproc_ok; then :
4067 break
4068fi
4069
4070 done
4071 ac_cv_prog_CPP=$CPP
4072
4073fi
4074 CPP=$ac_cv_prog_CPP
4075else
4076 ac_cv_prog_CPP=$CPP
4077fi
4078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4079$as_echo "$CPP" >&6; }
4080ac_preproc_ok=false
4081for ac_c_preproc_warn_flag in '' yes
4082do
4083 # Use a header file that comes with gcc, so configuring glibc
4084 # with a fresh cross-compiler works.
4085 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4086 # <limits.h> exists even on freestanding compilers.
4087 # On the NeXT, cc -E runs the code through the compiler's parser,
4088 # not just through cpp. "Syntax error" is here to catch this case.
4089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4090/* end confdefs.h. */
4091#ifdef __STDC__
4092# include <limits.h>
4093#else
4094# include <assert.h>
4095#endif
4096 Syntax error
4097_ACEOF
4098if ac_fn_c_try_cpp "$LINENO"; then :
4099
4100else
4101 # Broken: fails on valid input.
4102continue
4103fi
4104rm -f conftest.err conftest.$ac_ext
4105
4106 # OK, works on sane cases. Now check whether nonexistent headers
4107 # can be detected and how.
4108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4109/* end confdefs.h. */
4110#include <ac_nonexistent.h>
4111_ACEOF
4112if ac_fn_c_try_cpp "$LINENO"; then :
4113 # Broken: success on invalid input.
4114continue
4115else
4116 # Passes both tests.
4117ac_preproc_ok=:
4118break
4119fi
4120rm -f conftest.err conftest.$ac_ext
4121
4122done
4123# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4124rm -f conftest.err conftest.$ac_ext
4125if $ac_preproc_ok; then :
4126
4127else
4128 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4129$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4130as_fn_error "C preprocessor \"$CPP\" fails sanity check
4131See \`config.log' for more details." "$LINENO" 5; }
4132fi
4133
4134ac_ext=c
4135ac_cpp='$CPP $CPPFLAGS'
4136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4137ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4138ac_compiler_gnu=$ac_cv_c_compiler_gnu
4139
4140
4141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4142$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4143if test "${ac_cv_path_GREP+set}" = set; then :
4144 $as_echo_n "(cached) " >&6
4145else
4146 if test -z "$GREP"; then
4147 ac_path_GREP_found=false
4148 # Loop through the user's path and test for each of PROGNAME-LIST
4149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4150for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4151do
4152 IFS=$as_save_IFS
4153 test -z "$as_dir" && as_dir=.
4154 for ac_prog in grep ggrep; do
4155 for ac_exec_ext in '' $ac_executable_extensions; do
4156 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4157 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4158# Check for GNU ac_path_GREP and select it if it is found.
4159 # Check for GNU $ac_path_GREP
4160case `"$ac_path_GREP" --version 2>&1` in
4161*GNU*)
4162 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4163*)
4164 ac_count=0
4165 $as_echo_n 0123456789 >"conftest.in"
4166 while :
4167 do
4168 cat "conftest.in" "conftest.in" >"conftest.tmp"
4169 mv "conftest.tmp" "conftest.in"
4170 cp "conftest.in" "conftest.nl"
4171 $as_echo 'GREP' >> "conftest.nl"
4172 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4173 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4174 as_fn_arith $ac_count + 1 && ac_count=$as_val
4175 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4176 # Best one so far, save it but keep looking for a better one
4177 ac_cv_path_GREP="$ac_path_GREP"
4178 ac_path_GREP_max=$ac_count
4179 fi
4180 # 10*(2^10) chars as input seems more than enough
4181 test $ac_count -gt 10 && break
4182 done
4183 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4184esac
4185
4186 $ac_path_GREP_found && break 3
4187 done
4188 done
4189 done
4190IFS=$as_save_IFS
4191 if test -z "$ac_cv_path_GREP"; then
4192 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4193 fi
4194else
4195 ac_cv_path_GREP=$GREP
4196fi
4197
4198fi
4199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4200$as_echo "$ac_cv_path_GREP" >&6; }
4201 GREP="$ac_cv_path_GREP"
4202
4203
4204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4205$as_echo_n "checking for egrep... " >&6; }
4206if test "${ac_cv_path_EGREP+set}" = set; then :
4207 $as_echo_n "(cached) " >&6
4208else
4209 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4210 then ac_cv_path_EGREP="$GREP -E"
4211 else
4212 if test -z "$EGREP"; then
4213 ac_path_EGREP_found=false
4214 # Loop through the user's path and test for each of PROGNAME-LIST
4215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4217do
4218 IFS=$as_save_IFS
4219 test -z "$as_dir" && as_dir=.
4220 for ac_prog in egrep; do
4221 for ac_exec_ext in '' $ac_executable_extensions; do
4222 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4223 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4224# Check for GNU ac_path_EGREP and select it if it is found.
4225 # Check for GNU $ac_path_EGREP
4226case `"$ac_path_EGREP" --version 2>&1` in
4227*GNU*)
4228 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4229*)
4230 ac_count=0
4231 $as_echo_n 0123456789 >"conftest.in"
4232 while :
4233 do
4234 cat "conftest.in" "conftest.in" >"conftest.tmp"
4235 mv "conftest.tmp" "conftest.in"
4236 cp "conftest.in" "conftest.nl"
4237 $as_echo 'EGREP' >> "conftest.nl"
4238 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4239 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4240 as_fn_arith $ac_count + 1 && ac_count=$as_val
4241 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4242 # Best one so far, save it but keep looking for a better one
4243 ac_cv_path_EGREP="$ac_path_EGREP"
4244 ac_path_EGREP_max=$ac_count
4245 fi
4246 # 10*(2^10) chars as input seems more than enough
4247 test $ac_count -gt 10 && break
4248 done
4249 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4250esac
4251
4252 $ac_path_EGREP_found && break 3
4253 done
4254 done
4255 done
4256IFS=$as_save_IFS
4257 if test -z "$ac_cv_path_EGREP"; then
4258 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4259 fi
4260else
4261 ac_cv_path_EGREP=$EGREP
4262fi
4263
4264 fi
4265fi
4266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4267$as_echo "$ac_cv_path_EGREP" >&6; }
4268 EGREP="$ac_cv_path_EGREP"
4269
4270
4271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4272$as_echo_n "checking for ANSI C header files... " >&6; }
4273if test "${ac_cv_header_stdc+set}" = set; then :
4274 $as_echo_n "(cached) " >&6
4275else
4276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4277/* end confdefs.h. */
4278#include <stdlib.h>
4279#include <stdarg.h>
4280#include <string.h>
4281#include <float.h>
4282
4283int
4284main ()
4285{
4286
4287 ;
4288 return 0;
4289}
4290_ACEOF
4291if ac_fn_c_try_compile "$LINENO"; then :
4292 ac_cv_header_stdc=yes
4293else
4294 ac_cv_header_stdc=no
4295fi
4296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4297
4298if test $ac_cv_header_stdc = yes; then
4299 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4301/* end confdefs.h. */
4302#include <string.h>
4303
4304_ACEOF
4305if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4306 $EGREP "memchr" >/dev/null 2>&1; then :
4307
4308else
4309 ac_cv_header_stdc=no
4310fi
4311rm -f conftest*
4312
4313fi
4314
4315if test $ac_cv_header_stdc = yes; then
4316 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4318/* end confdefs.h. */
4319#include <stdlib.h>
4320
4321_ACEOF
4322if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4323 $EGREP "free" >/dev/null 2>&1; then :
4324
4325else
4326 ac_cv_header_stdc=no
4327fi
4328rm -f conftest*
4329
4330fi
4331
4332if test $ac_cv_header_stdc = yes; then
4333 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4334 if test "$cross_compiling" = yes; then :
4335 :
4336else
4337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4338/* end confdefs.h. */
4339#include <ctype.h>
4340#include <stdlib.h>
4341#if ((' ' & 0x0FF) == 0x020)
4342# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4343# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4344#else
4345# define ISLOWER(c) \
4346 (('a' <= (c) && (c) <= 'i') \
4347 || ('j' <= (c) && (c) <= 'r') \
4348 || ('s' <= (c) && (c) <= 'z'))
4349# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4350#endif
4351
4352#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4353int
4354main ()
4355{
4356 int i;
4357 for (i = 0; i < 256; i++)
4358 if (XOR (islower (i), ISLOWER (i))
4359 || toupper (i) != TOUPPER (i))
4360 return 2;
4361 return 0;
4362}
4363_ACEOF
4364if ac_fn_c_try_run "$LINENO"; then :
4365
4366else
4367 ac_cv_header_stdc=no
4368fi
4369rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4370 conftest.$ac_objext conftest.beam conftest.$ac_ext
4371fi
4372
4373fi
4374fi
4375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4376$as_echo "$ac_cv_header_stdc" >&6; }
4377if test $ac_cv_header_stdc = yes; then
4378
4379$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4380
4381fi
4382
4383# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4384for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4385 inttypes.h stdint.h unistd.h
4386do :
4387 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4388ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4389"
4390eval as_val=\$$as_ac_Header
4391 if test "x$as_val" = x""yes; then :
4392 cat >>confdefs.h <<_ACEOF
4393#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4394_ACEOF
4395
4396fi
4397
4398done
4399
4400
4401
4402
4403
4404 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4405if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4406 MINIX=yes
4407else
4408 MINIX=
4409fi
4410
4411
4412 if test "$MINIX" = yes; then
4413
4414$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4415
4416
4417$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4418
4419
4420$as_echo "#define _MINIX 1" >>confdefs.h
4421
4422 fi
4423
4424 case "$host_os" in
4425 hpux*)
4426
4427$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4428
4429 ;;
4430 esac
4431
4432
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4434$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4435if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4436 $as_echo_n "(cached) " >&6
4437else
4438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4439/* end confdefs.h. */
4440
4441# define __EXTENSIONS__ 1
4442 $ac_includes_default
4443int
4444main ()
4445{
4446
4447 ;
4448 return 0;
4449}
4450_ACEOF
4451if ac_fn_c_try_compile "$LINENO"; then :
4452 ac_cv_safe_to_define___extensions__=yes
4453else
4454 ac_cv_safe_to_define___extensions__=no
4455fi
4456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4457fi
4458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4459$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4460 test $ac_cv_safe_to_define___extensions__ = yes &&
4461 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4462
4463 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4464
4465 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4466
4467 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4468
4469 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4470
4471 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4472
4473
4474
4475
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
4477$as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
4478if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
4479 $as_echo_n "(cached) " >&6
4480else
4481
4482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4483/* end confdefs.h. */
4484
4485#ifdef __ACK__
4486Amsterdam
4487#endif
4488
4489_ACEOF
4490if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4491 $EGREP "Amsterdam" >/dev/null 2>&1; then :
4492 gl_cv_c_amsterdam_compiler=yes
4493else
4494 gl_cv_c_amsterdam_compiler=no
4495fi
4496rm -f conftest*
4497
4498
4499fi
4500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
4501$as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
4502 if test -z "$AR"; then
4503 if test $gl_cv_c_amsterdam_compiler = yes; then
4504 AR='cc -c.a'
4505 if test -z "$ARFLAGS"; then
4506 ARFLAGS='-o'
4507 fi
4508 else
4509 if test -n "$ac_tool_prefix"; then
4510 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4511set dummy ${ac_tool_prefix}ar; ac_word=$2
4512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4513$as_echo_n "checking for $ac_word... " >&6; }
4514if test "${ac_cv_prog_AR+set}" = set; then :
4515 $as_echo_n "(cached) " >&6
4516else
4517 if test -n "$AR"; then
4518 ac_cv_prog_AR="$AR" # Let the user override the test.
4519else
4520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4521for as_dir in $PATH
4522do
4523 IFS=$as_save_IFS
4524 test -z "$as_dir" && as_dir=.
4525 for ac_exec_ext in '' $ac_executable_extensions; do
4526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4527 ac_cv_prog_AR="${ac_tool_prefix}ar"
4528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4529 break 2
4530 fi
4531done
4532 done
4533IFS=$as_save_IFS
4534
4535fi
4536fi
4537AR=$ac_cv_prog_AR
4538if test -n "$AR"; then
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4540$as_echo "$AR" >&6; }
4541else
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4543$as_echo "no" >&6; }
4544fi
4545
4546
4547fi
4548if test -z "$ac_cv_prog_AR"; then
4549 ac_ct_AR=$AR
4550 # Extract the first word of "ar", so it can be a program name with args.
4551set dummy ar; ac_word=$2
4552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4553$as_echo_n "checking for $ac_word... " >&6; }
4554if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4555 $as_echo_n "(cached) " >&6
4556else
4557 if test -n "$ac_ct_AR"; then
4558 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4559else
4560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4561for as_dir in $PATH
4562do
4563 IFS=$as_save_IFS
4564 test -z "$as_dir" && as_dir=.
4565 for ac_exec_ext in '' $ac_executable_extensions; do
4566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4567 ac_cv_prog_ac_ct_AR="ar"
4568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4569 break 2
4570 fi
4571done
4572 done
4573IFS=$as_save_IFS
4574
4575fi
4576fi
4577ac_ct_AR=$ac_cv_prog_ac_ct_AR
4578if test -n "$ac_ct_AR"; then
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4580$as_echo "$ac_ct_AR" >&6; }
4581else
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4583$as_echo "no" >&6; }
4584fi
4585
4586 if test "x$ac_ct_AR" = x; then
4587 AR="ar"
4588 else
4589 case $cross_compiling:$ac_tool_warned in
4590yes:)
4591{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4592$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4593ac_tool_warned=yes ;;
4594esac
4595 AR=$ac_ct_AR
4596 fi
4597else
4598 AR="$ac_cv_prog_AR"
4599fi
4600
4601 if test -z "$ARFLAGS"; then
4602 ARFLAGS='cru'
4603 fi
4604 fi
4605 else
4606 if test -z "$ARFLAGS"; then
4607 ARFLAGS='cru'
4608 fi
4609 fi
4610
4611
4612 if test -z "$RANLIB"; then
4613 if test $gl_cv_c_amsterdam_compiler = yes; then
4614 RANLIB=':'
4615 else
4616 if test -n "$ac_tool_prefix"; then
4617 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4618set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4620$as_echo_n "checking for $ac_word... " >&6; }
4621if test "${ac_cv_prog_RANLIB+set}" = set; then :
4622 $as_echo_n "(cached) " >&6
4623else
4624 if test -n "$RANLIB"; then
4625 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4626else
4627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4628for as_dir in $PATH
4629do
4630 IFS=$as_save_IFS
4631 test -z "$as_dir" && as_dir=.
4632 for ac_exec_ext in '' $ac_executable_extensions; do
4633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4634 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4636 break 2
4637 fi
4638done
4639 done
4640IFS=$as_save_IFS
4641
4642fi
4643fi
4644RANLIB=$ac_cv_prog_RANLIB
4645if test -n "$RANLIB"; then
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4647$as_echo "$RANLIB" >&6; }
4648else
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4650$as_echo "no" >&6; }
4651fi
4652
4653
4654fi
4655if test -z "$ac_cv_prog_RANLIB"; then
4656 ac_ct_RANLIB=$RANLIB
4657 # Extract the first word of "ranlib", so it can be a program name with args.
4658set dummy ranlib; ac_word=$2
4659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4660$as_echo_n "checking for $ac_word... " >&6; }
4661if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4662 $as_echo_n "(cached) " >&6
4663else
4664 if test -n "$ac_ct_RANLIB"; then
4665 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4666else
4667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4668for as_dir in $PATH
4669do
4670 IFS=$as_save_IFS
4671 test -z "$as_dir" && as_dir=.
4672 for ac_exec_ext in '' $ac_executable_extensions; do
4673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4674 ac_cv_prog_ac_ct_RANLIB="ranlib"
4675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4676 break 2
4677 fi
4678done
4679 done
4680IFS=$as_save_IFS
4681
4682fi
4683fi
4684ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4685if test -n "$ac_ct_RANLIB"; then
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4687$as_echo "$ac_ct_RANLIB" >&6; }
4688else
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4690$as_echo "no" >&6; }
4691fi
4692
4693 if test "x$ac_ct_RANLIB" = x; then
4694 RANLIB=":"
4695 else
4696 case $cross_compiling:$ac_tool_warned in
4697yes:)
4698{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4699$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4700ac_tool_warned=yes ;;
4701esac
4702 RANLIB=$ac_ct_RANLIB
4703 fi
4704else
4705 RANLIB="$ac_cv_prog_RANLIB"
4706fi
4707
4708 fi
4709 fi
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
88b48903
WN
4720
4721 # IEEE behaviour is the default on all CPUs except Alpha and SH
4722 # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
4723 # and the GCC 4.1.2 manual).
4724 case "$host_cpu" in
4725 alpha*)
4726 # On Alpha systems, a compiler option provides the behaviour.
4727 # See the ieee(3) manual page, also available at
4728 # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
4729 if test -n "$GCC"; then
4730 # GCC has the option -mieee.
4731 # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
4732 CPPFLAGS="$CPPFLAGS -mieee"
4733 else
4734 # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
4735 # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
4736 CPPFLAGS="$CPPFLAGS -ieee"
4737 fi
4738 ;;
4739 sh*)
4740 if test -n "$GCC"; then
4741 # GCC has the option -mieee.
4742 CPPFLAGS="$CPPFLAGS -mieee"
4743 fi
4744 ;;
4745 esac
4746
4747
4748
8690e634
JK
4749 # Code from module alloca:
4750 # Code from module alloca-opt:
4751 # Code from module configmake:
e26b6bb0 4752 # Code from module dirent:
63ce7108 4753 # Code from module errno:
c971b7fa
PA
4754 # Code from module extensions:
4755
a512b375 4756 # Code from module extern-inline:
88b48903 4757 # Code from module float:
8690e634
JK
4758 # Code from module fnmatch:
4759 # Code from module fnmatch-gnu:
88b48903
WN
4760 # Code from module fpieee:
4761
4762 # Code from module fpucw:
4763 # Code from module frexp:
4764 # Code from module frexpl:
c971b7fa 4765 # Code from module include_next:
63ce7108 4766 # Code from module intprops:
c971b7fa
PA
4767 # Code from module inttypes:
4768 # Code from module inttypes-incomplete:
88b48903
WN
4769 # Code from module isnand-nolibm:
4770 # Code from module isnanl-nolibm:
8690e634 4771 # Code from module localcharset:
88b48903 4772 # Code from module math:
8690e634
JK
4773 # Code from module mbrtowc:
4774 # Code from module mbsinit:
4775 # Code from module mbsrtowcs:
c971b7fa
PA
4776 # Code from module memchr:
4777 # Code from module memmem:
4778 # Code from module memmem-simple:
4779 # Code from module multiarch:
38ec2207 4780 # Code from module pathmax:
c971b7fa
PA
4781 # Code from module snippet/arg-nonnull:
4782 # Code from module snippet/c++defs:
4783 # Code from module snippet/warn-on-use:
8839a007 4784 # Code from module ssize_t:
8690e634 4785 # Code from module stdbool:
c971b7fa
PA
4786 # Code from module stddef:
4787 # Code from module stdint:
8690e634 4788 # Code from module streq:
63ce7108
TT
4789 # Code from module strerror:
4790 # Code from module strerror-override:
c971b7fa 4791 # Code from module string:
8690e634 4792 # Code from module strnlen1:
63ce7108
TT
4793 # Code from module strstr:
4794 # Code from module strstr-simple:
8839a007
PA
4795 # Code from module sys_types:
4796 # Code from module unistd:
c971b7fa 4797 # Code from module update-copyright:
8690e634
JK
4798 # Code from module verify:
4799 # Code from module wchar:
4800 # Code from module wctype-h:
c971b7fa
PA
4801
4802ac_ext=c
4803ac_cpp='$CPP $CPPFLAGS'
4804ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4805ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4806ac_compiler_gnu=$ac_cv_c_compiler_gnu
4807if test -n "$ac_tool_prefix"; then
4808 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4809set dummy ${ac_tool_prefix}gcc; ac_word=$2
4810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4811$as_echo_n "checking for $ac_word... " >&6; }
4812if test "${ac_cv_prog_CC+set}" = set; then :
4813 $as_echo_n "(cached) " >&6
4814else
4815 if test -n "$CC"; then
4816 ac_cv_prog_CC="$CC" # Let the user override the test.
4817else
4818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4819for as_dir in $PATH
4820do
4821 IFS=$as_save_IFS
4822 test -z "$as_dir" && as_dir=.
4823 for ac_exec_ext in '' $ac_executable_extensions; do
4824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4825 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4827 break 2
4828 fi
4829done
4830 done
4831IFS=$as_save_IFS
4832
4833fi
4834fi
4835CC=$ac_cv_prog_CC
4836if test -n "$CC"; then
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4838$as_echo "$CC" >&6; }
4839else
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4841$as_echo "no" >&6; }
4842fi
4843
4844
4845fi
4846if test -z "$ac_cv_prog_CC"; then
4847 ac_ct_CC=$CC
4848 # Extract the first word of "gcc", so it can be a program name with args.
4849set dummy gcc; ac_word=$2
4850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4851$as_echo_n "checking for $ac_word... " >&6; }
4852if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4853 $as_echo_n "(cached) " >&6
4854else
4855 if test -n "$ac_ct_CC"; then
4856 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4857else
4858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4859for as_dir in $PATH
4860do
4861 IFS=$as_save_IFS
4862 test -z "$as_dir" && as_dir=.
4863 for ac_exec_ext in '' $ac_executable_extensions; do
4864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4865 ac_cv_prog_ac_ct_CC="gcc"
4866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4867 break 2
4868 fi
4869done
4870 done
4871IFS=$as_save_IFS
4872
4873fi
4874fi
4875ac_ct_CC=$ac_cv_prog_ac_ct_CC
4876if test -n "$ac_ct_CC"; then
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4878$as_echo "$ac_ct_CC" >&6; }
4879else
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4881$as_echo "no" >&6; }
4882fi
4883
4884 if test "x$ac_ct_CC" = x; then
4885 CC=""
4886 else
4887 case $cross_compiling:$ac_tool_warned in
4888yes:)
4889{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4890$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4891ac_tool_warned=yes ;;
4892esac
4893 CC=$ac_ct_CC
4894 fi
4895else
4896 CC="$ac_cv_prog_CC"
4897fi
4898
4899if test -z "$CC"; then
4900 if test -n "$ac_tool_prefix"; then
4901 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4902set dummy ${ac_tool_prefix}cc; ac_word=$2
4903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4904$as_echo_n "checking for $ac_word... " >&6; }
4905if test "${ac_cv_prog_CC+set}" = set; then :
4906 $as_echo_n "(cached) " >&6
4907else
4908 if test -n "$CC"; then
4909 ac_cv_prog_CC="$CC" # Let the user override the test.
4910else
4911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4912for as_dir in $PATH
4913do
4914 IFS=$as_save_IFS
4915 test -z "$as_dir" && as_dir=.
4916 for ac_exec_ext in '' $ac_executable_extensions; do
4917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4918 ac_cv_prog_CC="${ac_tool_prefix}cc"
4919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4920 break 2
4921 fi
4922done
4923 done
4924IFS=$as_save_IFS
4925
4926fi
4927fi
4928CC=$ac_cv_prog_CC
4929if test -n "$CC"; then
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4931$as_echo "$CC" >&6; }
4932else
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4934$as_echo "no" >&6; }
4935fi
4936
4937
4938 fi
4939fi
4940if test -z "$CC"; then
4941 # Extract the first word of "cc", so it can be a program name with args.
4942set dummy cc; ac_word=$2
4943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4944$as_echo_n "checking for $ac_word... " >&6; }
4945if test "${ac_cv_prog_CC+set}" = set; then :
4946 $as_echo_n "(cached) " >&6
4947else
4948 if test -n "$CC"; then
4949 ac_cv_prog_CC="$CC" # Let the user override the test.
4950else
4951 ac_prog_rejected=no
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 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4960 ac_prog_rejected=yes
4961 continue
4962 fi
4963 ac_cv_prog_CC="cc"
4964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4965 break 2
4966 fi
4967done
4968 done
4969IFS=$as_save_IFS
4970
4971if test $ac_prog_rejected = yes; then
4972 # We found a bogon in the path, so make sure we never use it.
4973 set dummy $ac_cv_prog_CC
4974 shift
4975 if test $# != 0; then
4976 # We chose a different compiler from the bogus one.
4977 # However, it has the same basename, so the bogon will be chosen
4978 # first if we set CC to just the basename; use the full file name.
4979 shift
4980 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4981 fi
4982fi
4983fi
4984fi
4985CC=$ac_cv_prog_CC
4986if test -n "$CC"; then
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4988$as_echo "$CC" >&6; }
4989else
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4991$as_echo "no" >&6; }
4992fi
4993
4994
4995fi
4996if test -z "$CC"; then
4997 if test -n "$ac_tool_prefix"; then
4998 for ac_prog in cl.exe
4999 do
5000 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5001set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5003$as_echo_n "checking for $ac_word... " >&6; }
5004if test "${ac_cv_prog_CC+set}" = set; then :
5005 $as_echo_n "(cached) " >&6
5006else
5007 if test -n "$CC"; then
5008 ac_cv_prog_CC="$CC" # Let the user override the test.
5009else
5010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5011for as_dir in $PATH
5012do
5013 IFS=$as_save_IFS
5014 test -z "$as_dir" && as_dir=.
5015 for ac_exec_ext in '' $ac_executable_extensions; do
5016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5017 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5019 break 2
5020 fi
5021done
5022 done
5023IFS=$as_save_IFS
5024
5025fi
5026fi
5027CC=$ac_cv_prog_CC
5028if test -n "$CC"; then
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5030$as_echo "$CC" >&6; }
5031else
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5033$as_echo "no" >&6; }
5034fi
5035
5036
5037 test -n "$CC" && break
5038 done
5039fi
5040if test -z "$CC"; then
5041 ac_ct_CC=$CC
5042 for ac_prog in cl.exe
5043do
5044 # Extract the first word of "$ac_prog", so it can be a program name with args.
5045set dummy $ac_prog; ac_word=$2
5046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5047$as_echo_n "checking for $ac_word... " >&6; }
5048if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5049 $as_echo_n "(cached) " >&6
5050else
5051 if test -n "$ac_ct_CC"; then
5052 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5053else
5054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5055for as_dir in $PATH
5056do
5057 IFS=$as_save_IFS
5058 test -z "$as_dir" && as_dir=.
5059 for ac_exec_ext in '' $ac_executable_extensions; do
5060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5061 ac_cv_prog_ac_ct_CC="$ac_prog"
5062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5063 break 2
5064 fi
5065done
5066 done
5067IFS=$as_save_IFS
5068
5069fi
5070fi
5071ac_ct_CC=$ac_cv_prog_ac_ct_CC
5072if test -n "$ac_ct_CC"; then
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5074$as_echo "$ac_ct_CC" >&6; }
5075else
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5077$as_echo "no" >&6; }
5078fi
5079
5080
5081 test -n "$ac_ct_CC" && break
5082done
5083
5084 if test "x$ac_ct_CC" = x; then
5085 CC=""
5086 else
5087 case $cross_compiling:$ac_tool_warned in
5088yes:)
5089{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5090$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5091ac_tool_warned=yes ;;
5092esac
5093 CC=$ac_ct_CC
5094 fi
5095fi
5096
5097fi
5098
5099
5100test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5101$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5102as_fn_error "no acceptable C compiler found in \$PATH
5103See \`config.log' for more details." "$LINENO" 5; }
5104
5105# Provide some information about the compiler.
5106$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5107set X $ac_compile
5108ac_compiler=$2
5109for ac_option in --version -v -V -qversion; do
5110 { { ac_try="$ac_compiler $ac_option >&5"
5111case "(($ac_try" in
5112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5113 *) ac_try_echo=$ac_try;;
5114esac
5115eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5116$as_echo "$ac_try_echo"; } >&5
5117 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5118 ac_status=$?
5119 if test -s conftest.err; then
5120 sed '10a\
5121... rest of stderr output deleted ...
5122 10q' conftest.err >conftest.er1
5123 cat conftest.er1 >&5
5124 rm -f conftest.er1 conftest.err
5125 fi
5126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5127 test $ac_status = 0; }
5128done
5129
5130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5131$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5132if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5133 $as_echo_n "(cached) " >&6
5134else
5135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5136/* end confdefs.h. */
5137
5138int
5139main ()
5140{
5141#ifndef __GNUC__
5142 choke me
5143#endif
5144
5145 ;
5146 return 0;
5147}
5148_ACEOF
5149if ac_fn_c_try_compile "$LINENO"; then :
5150 ac_compiler_gnu=yes
5151else
5152 ac_compiler_gnu=no
5153fi
5154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5155ac_cv_c_compiler_gnu=$ac_compiler_gnu
5156
5157fi
5158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5159$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5160if test $ac_compiler_gnu = yes; then
5161 GCC=yes
5162else
5163 GCC=
5164fi
5165ac_test_CFLAGS=${CFLAGS+set}
5166ac_save_CFLAGS=$CFLAGS
5167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5168$as_echo_n "checking whether $CC accepts -g... " >&6; }
5169if test "${ac_cv_prog_cc_g+set}" = set; then :
5170 $as_echo_n "(cached) " >&6
5171else
5172 ac_save_c_werror_flag=$ac_c_werror_flag
5173 ac_c_werror_flag=yes
5174 ac_cv_prog_cc_g=no
5175 CFLAGS="-g"
5176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5177/* end confdefs.h. */
5178
5179int
5180main ()
5181{
5182
5183 ;
5184 return 0;
5185}
5186_ACEOF
5187if ac_fn_c_try_compile "$LINENO"; then :
5188 ac_cv_prog_cc_g=yes
5189else
5190 CFLAGS=""
5191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5192/* end confdefs.h. */
5193
5194int
5195main ()
5196{
5197
5198 ;
5199 return 0;
5200}
5201_ACEOF
5202if ac_fn_c_try_compile "$LINENO"; then :
5203
5204else
5205 ac_c_werror_flag=$ac_save_c_werror_flag
5206 CFLAGS="-g"
5207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5208/* end confdefs.h. */
5209
5210int
5211main ()
5212{
5213
5214 ;
5215 return 0;
5216}
5217_ACEOF
5218if ac_fn_c_try_compile "$LINENO"; then :
5219 ac_cv_prog_cc_g=yes
5220fi
5221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5222fi
5223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5224fi
5225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5226 ac_c_werror_flag=$ac_save_c_werror_flag
5227fi
5228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5229$as_echo "$ac_cv_prog_cc_g" >&6; }
5230if test "$ac_test_CFLAGS" = set; then
5231 CFLAGS=$ac_save_CFLAGS
5232elif test $ac_cv_prog_cc_g = yes; then
5233 if test "$GCC" = yes; then
5234 CFLAGS="-g -O2"
5235 else
5236 CFLAGS="-g"
5237 fi
5238else
5239 if test "$GCC" = yes; then
5240 CFLAGS="-O2"
5241 else
5242 CFLAGS=
5243 fi
5244fi
5245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5246$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5247if test "${ac_cv_prog_cc_c89+set}" = set; then :
5248 $as_echo_n "(cached) " >&6
5249else
5250 ac_cv_prog_cc_c89=no
5251ac_save_CC=$CC
5252cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5253/* end confdefs.h. */
5254#include <stdarg.h>
5255#include <stdio.h>
5256#include <sys/types.h>
5257#include <sys/stat.h>
5258/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5259struct buf { int x; };
5260FILE * (*rcsopen) (struct buf *, struct stat *, int);
5261static char *e (p, i)
5262 char **p;
5263 int i;
5264{
5265 return p[i];
5266}
5267static char *f (char * (*g) (char **, int), char **p, ...)
5268{
5269 char *s;
5270 va_list v;
5271 va_start (v,p);
5272 s = g (p, va_arg (v,int));
5273 va_end (v);
5274 return s;
5275}
5276
5277/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5278 function prototypes and stuff, but not '\xHH' hex character constants.
5279 These don't provoke an error unfortunately, instead are silently treated
5280 as 'x'. The following induces an error, until -std is added to get
5281 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5282 array size at least. It's necessary to write '\x00'==0 to get something
5283 that's true only with -std. */
5284int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5285
5286/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5287 inside strings and character constants. */
5288#define FOO(x) 'x'
5289int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5290
5291int test (int i, double x);
5292struct s1 {int (*f) (int a);};
5293struct s2 {int (*f) (double a);};
5294int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5295int argc;
5296char **argv;
5297int
5298main ()
5299{
5300return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5301 ;
5302 return 0;
5303}
5304_ACEOF
5305for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5306 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5307do
5308 CC="$ac_save_CC $ac_arg"
5309 if ac_fn_c_try_compile "$LINENO"; then :
5310 ac_cv_prog_cc_c89=$ac_arg
5311fi
5312rm -f core conftest.err conftest.$ac_objext
5313 test "x$ac_cv_prog_cc_c89" != "xno" && break
5314done
5315rm -f conftest.$ac_ext
5316CC=$ac_save_CC
5317
5318fi
5319# AC_CACHE_VAL
5320case "x$ac_cv_prog_cc_c89" in
5321 x)
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5323$as_echo "none needed" >&6; } ;;
5324 xno)
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5326$as_echo "unsupported" >&6; } ;;
5327 *)
5328 CC="$CC $ac_cv_prog_cc_c89"
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5330$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5331esac
5332if test "x$ac_cv_prog_cc_c89" != xno; then :
5333
5334fi
5335
5336ac_ext=c
5337ac_cpp='$CPP $CPPFLAGS'
5338ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5339ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5340ac_compiler_gnu=$ac_cv_c_compiler_gnu
5341
5342
5343am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5344
5345
5346ac_aux_dir=
5347for ac_dir in ../.. "$srcdir"/../..; do
5348 for ac_t in install-sh install.sh shtool; do
5349 if test -f "$ac_dir/$ac_t"; then
5350 ac_aux_dir=$ac_dir
5351 ac_install_sh="$ac_aux_dir/$ac_t -c"
5352 break 2
5353 fi
5354 done
5355done
5356if test -z "$ac_aux_dir"; then
5357 as_fn_error "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
5358fi
5359
5360# These three variables are undocumented and unsupported,
5361# and are intended to be withdrawn in a future Autoconf release.
5362# They can cause serious problems if a builder's source tree is in a directory
5363# whose full name contains unusual characters.
5364ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5365ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5366ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5367
5368
5369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
5370$as_echo_n "checking target system type... " >&6; }
5371if test "${ac_cv_target+set}" = set; then :
5372 $as_echo_n "(cached) " >&6
5373else
5374 if test "x$target_alias" = x; then
5375 ac_cv_target=$ac_cv_host
5376else
5377 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
5378 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5379fi
5380
5381fi
5382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
5383$as_echo "$ac_cv_target" >&6; }
5384case $ac_cv_target in
5385*-*-*) ;;
5386*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
5387esac
5388target=$ac_cv_target
5389ac_save_IFS=$IFS; IFS='-'
5390set x $ac_cv_target
5391shift
5392target_cpu=$1
5393target_vendor=$2
5394shift; shift
5395# Remember, the first character of IFS is used to create $*,
5396# except with old shells:
5397target_os=$*
5398IFS=$ac_save_IFS
5399case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
5400
5401
5402# The aliases save the names the user supplied, while $host etc.
5403# will get canonicalized.
5404test -n "$target_alias" &&
5405 test "$program_prefix$program_suffix$program_transform_name" = \
5406 NONENONEs,x,x, &&
5407 program_prefix=${target_alias}-
5408
5409
5410
5411
5412
5413
5414
5415 LIBC_FATAL_STDERR_=1
5416 export LIBC_FATAL_STDERR_
5417
8690e634
JK
5418# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5419# for constant arguments. Useless!
5420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5421$as_echo_n "checking for working alloca.h... " >&6; }
5422if test "${ac_cv_working_alloca_h+set}" = set; then :
c971b7fa
PA
5423 $as_echo_n "(cached) " >&6
5424else
8690e634 5425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa 5426/* end confdefs.h. */
8690e634 5427#include <alloca.h>
c971b7fa
PA
5428int
5429main ()
5430{
8690e634
JK
5431char *p = (char *) alloca (2 * sizeof (int));
5432 if (p) return 0;
c971b7fa
PA
5433 ;
5434 return 0;
5435}
c971b7fa
PA
5436_ACEOF
5437if ac_fn_c_try_link "$LINENO"; then :
8690e634 5438 ac_cv_working_alloca_h=yes
c971b7fa 5439else
8690e634 5440 ac_cv_working_alloca_h=no
c971b7fa
PA
5441fi
5442rm -f core conftest.err conftest.$ac_objext \
5443 conftest$ac_exeext conftest.$ac_ext
c971b7fa 5444fi
8690e634
JK
5445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5446$as_echo "$ac_cv_working_alloca_h" >&6; }
5447if test $ac_cv_working_alloca_h = yes; then
c971b7fa 5448
8690e634 5449$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
c971b7fa 5450
8690e634 5451fi
c971b7fa 5452
8690e634
JK
5453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5454$as_echo_n "checking for alloca... " >&6; }
5455if test "${ac_cv_func_alloca_works+set}" = set; then :
c971b7fa 5456 $as_echo_n "(cached) " >&6
c971b7fa
PA
5457else
5458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5459/* end confdefs.h. */
8690e634
JK
5460#ifdef __GNUC__
5461# define alloca __builtin_alloca
5462#else
5463# ifdef _MSC_VER
5464# include <malloc.h>
5465# define alloca _alloca
5466# else
5467# ifdef HAVE_ALLOCA_H
5468# include <alloca.h>
5469# else
5470# ifdef _AIX
5471 #pragma alloca
5472# else
5473# ifndef alloca /* predefined by HP cc +Olibcalls */
5474char *alloca ();
5475# endif
5476# endif
5477# endif
5478# endif
5479#endif
5480
c971b7fa
PA
5481int
5482main ()
5483{
8690e634
JK
5484char *p = (char *) alloca (1);
5485 if (p) return 0;
c971b7fa
PA
5486 ;
5487 return 0;
5488}
5489_ACEOF
8690e634
JK
5490if ac_fn_c_try_link "$LINENO"; then :
5491 ac_cv_func_alloca_works=yes
c971b7fa 5492else
8690e634 5493 ac_cv_func_alloca_works=no
c971b7fa 5494fi
8690e634
JK
5495rm -f core conftest.err conftest.$ac_objext \
5496 conftest$ac_exeext conftest.$ac_ext
c971b7fa 5497fi
a143c6de
JB
5498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5499$as_echo "$ac_cv_func_alloca_works" >&6; }
c971b7fa 5500
a143c6de 5501if test $ac_cv_func_alloca_works = yes; then
c971b7fa 5502
a143c6de 5503$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
c971b7fa 5504
a143c6de
JB
5505else
5506 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5507# that cause trouble. Some versions do not even contain alloca or
5508# contain a buggy version. If you still want to use their alloca,
5509# use ar to extract alloca.o from them instead of compiling alloca.c.
c971b7fa
PA
5510
5511
5512
5513
5514
a143c6de 5515ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
c971b7fa 5516
a143c6de 5517$as_echo "#define C_ALLOCA 1" >>confdefs.h
c971b7fa 5518
c971b7fa 5519
a143c6de
JB
5520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
5521$as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
5522if test "${ac_cv_os_cray+set}" = set; then :
8690e634
JK
5523 $as_echo_n "(cached) " >&6
5524else
a143c6de 5525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690e634 5526/* end confdefs.h. */
a143c6de
JB
5527#if defined CRAY && ! defined CRAY2
5528webecray
5529#else
5530wenotbecray
8690e634 5531#endif
c971b7fa 5532
8690e634
JK
5533_ACEOF
5534if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
a143c6de
JB
5535 $EGREP "webecray" >/dev/null 2>&1; then :
5536 ac_cv_os_cray=yes
8690e634 5537else
a143c6de 5538 ac_cv_os_cray=no
8690e634
JK
5539fi
5540rm -f conftest*
c971b7fa 5541
c0fc7f8b 5542fi
a143c6de
JB
5543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5544$as_echo "$ac_cv_os_cray" >&6; }
5545if test $ac_cv_os_cray = yes; then
5546 for ac_func in _getb67 GETB67 getb67; do
5547 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5548ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5549eval as_val=\$$as_ac_var
5550 if test "x$as_val" = x""yes; then :
c0fc7f8b 5551
a143c6de
JB
5552cat >>confdefs.h <<_ACEOF
5553#define CRAY_STACKSEG_END $ac_func
5554_ACEOF
c971b7fa 5555
a143c6de 5556 break
8690e634 5557fi
c971b7fa 5558
a143c6de 5559 done
8690e634 5560fi
c0fc7f8b 5561
a143c6de
JB
5562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5563$as_echo_n "checking stack direction for C alloca... " >&6; }
5564if test "${ac_cv_c_stack_direction+set}" = set; then :
c971b7fa
PA
5565 $as_echo_n "(cached) " >&6
5566else
a143c6de
JB
5567 if test "$cross_compiling" = yes; then :
5568 ac_cv_c_stack_direction=0
5569else
5570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa 5571/* end confdefs.h. */
a143c6de
JB
5572$ac_includes_default
5573int
5574find_stack_direction (int *addr, int depth)
5575{
5576 int dir, dummy = 0;
5577 if (! addr)
5578 addr = &dummy;
5579 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
5580 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
5581 return dir + dummy;
5582}
8690e634 5583
a143c6de
JB
5584int
5585main (int argc, char **argv)
5586{
5587 return find_stack_direction (0, argc + !argv + 20) < 0;
5588}
c971b7fa 5589_ACEOF
a143c6de
JB
5590if ac_fn_c_try_run "$LINENO"; then :
5591 ac_cv_c_stack_direction=1
c971b7fa 5592else
a143c6de 5593 ac_cv_c_stack_direction=-1
8690e634 5594fi
a143c6de
JB
5595rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5596 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 5597fi
c971b7fa
PA
5598
5599fi
a143c6de
JB
5600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5601$as_echo "$ac_cv_c_stack_direction" >&6; }
5602cat >>confdefs.h <<_ACEOF
5603#define STACK_DIRECTION $ac_cv_c_stack_direction
5604_ACEOF
8690e634 5605
c971b7fa
PA
5606
5607fi
c971b7fa
PA
5608
5609
e26b6bb0
TT
5610 GNULIB_CHDIR=0;
5611 GNULIB_CHOWN=0;
5612 GNULIB_CLOSE=0;
5613 GNULIB_DUP=0;
5614 GNULIB_DUP2=0;
5615 GNULIB_DUP3=0;
5616 GNULIB_ENVIRON=0;
5617 GNULIB_EUIDACCESS=0;
5618 GNULIB_FACCESSAT=0;
5619 GNULIB_FCHDIR=0;
5620 GNULIB_FCHOWNAT=0;
5621 GNULIB_FDATASYNC=0;
5622 GNULIB_FSYNC=0;
5623 GNULIB_FTRUNCATE=0;
5624 GNULIB_GETCWD=0;
5625 GNULIB_GETDOMAINNAME=0;
5626 GNULIB_GETDTABLESIZE=0;
5627 GNULIB_GETGROUPS=0;
5628 GNULIB_GETHOSTNAME=0;
5629 GNULIB_GETLOGIN=0;
5630 GNULIB_GETLOGIN_R=0;
5631 GNULIB_GETPAGESIZE=0;
5632 GNULIB_GETUSERSHELL=0;
5633 GNULIB_GROUP_MEMBER=0;
5634 GNULIB_ISATTY=0;
5635 GNULIB_LCHOWN=0;
5636 GNULIB_LINK=0;
5637 GNULIB_LINKAT=0;
5638 GNULIB_LSEEK=0;
5639 GNULIB_PIPE=0;
5640 GNULIB_PIPE2=0;
5641 GNULIB_PREAD=0;
5642 GNULIB_PWRITE=0;
5643 GNULIB_READ=0;
5644 GNULIB_READLINK=0;
5645 GNULIB_READLINKAT=0;
5646 GNULIB_RMDIR=0;
5647 GNULIB_SETHOSTNAME=0;
5648 GNULIB_SLEEP=0;
5649 GNULIB_SYMLINK=0;
5650 GNULIB_SYMLINKAT=0;
5651 GNULIB_TTYNAME_R=0;
5652 GNULIB_UNISTD_H_NONBLOCKING=0;
5653 GNULIB_UNISTD_H_SIGPIPE=0;
5654 GNULIB_UNLINK=0;
5655 GNULIB_UNLINKAT=0;
5656 GNULIB_USLEEP=0;
5657 GNULIB_WRITE=0;
5658 HAVE_CHOWN=1;
5659 HAVE_DUP2=1;
5660 HAVE_DUP3=1;
5661 HAVE_EUIDACCESS=1;
5662 HAVE_FACCESSAT=1;
5663 HAVE_FCHDIR=1;
5664 HAVE_FCHOWNAT=1;
5665 HAVE_FDATASYNC=1;
5666 HAVE_FSYNC=1;
5667 HAVE_FTRUNCATE=1;
5668 HAVE_GETDTABLESIZE=1;
5669 HAVE_GETGROUPS=1;
5670 HAVE_GETHOSTNAME=1;
5671 HAVE_GETLOGIN=1;
5672 HAVE_GETPAGESIZE=1;
5673 HAVE_GROUP_MEMBER=1;
5674 HAVE_LCHOWN=1;
5675 HAVE_LINK=1;
5676 HAVE_LINKAT=1;
5677 HAVE_PIPE=1;
5678 HAVE_PIPE2=1;
5679 HAVE_PREAD=1;
5680 HAVE_PWRITE=1;
5681 HAVE_READLINK=1;
5682 HAVE_READLINKAT=1;
5683 HAVE_SETHOSTNAME=1;
5684 HAVE_SLEEP=1;
5685 HAVE_SYMLINK=1;
5686 HAVE_SYMLINKAT=1;
5687 HAVE_UNLINKAT=1;
5688 HAVE_USLEEP=1;
5689 HAVE_DECL_ENVIRON=1;
5690 HAVE_DECL_FCHDIR=1;
5691 HAVE_DECL_FDATASYNC=1;
5692 HAVE_DECL_GETDOMAINNAME=1;
5693 HAVE_DECL_GETLOGIN_R=1;
5694 HAVE_DECL_GETPAGESIZE=1;
5695 HAVE_DECL_GETUSERSHELL=1;
5696 HAVE_DECL_SETHOSTNAME=1;
5697 HAVE_DECL_TTYNAME_R=1;
5698 HAVE_OS_H=0;
5699 HAVE_SYS_PARAM_H=0;
5700 REPLACE_CHOWN=0;
5701 REPLACE_CLOSE=0;
5702 REPLACE_DUP=0;
5703 REPLACE_DUP2=0;
5704 REPLACE_FCHOWNAT=0;
5705 REPLACE_FTRUNCATE=0;
5706 REPLACE_GETCWD=0;
5707 REPLACE_GETDOMAINNAME=0;
5708 REPLACE_GETLOGIN_R=0;
5709 REPLACE_GETGROUPS=0;
5710 REPLACE_GETPAGESIZE=0;
5711 REPLACE_ISATTY=0;
5712 REPLACE_LCHOWN=0;
5713 REPLACE_LINK=0;
5714 REPLACE_LINKAT=0;
5715 REPLACE_LSEEK=0;
5716 REPLACE_PREAD=0;
5717 REPLACE_PWRITE=0;
5718 REPLACE_READ=0;
5719 REPLACE_READLINK=0;
5720 REPLACE_RMDIR=0;
5721 REPLACE_SLEEP=0;
5722 REPLACE_SYMLINK=0;
5723 REPLACE_TTYNAME_R=0;
5724 REPLACE_UNLINK=0;
5725 REPLACE_UNLINKAT=0;
5726 REPLACE_USLEEP=0;
5727 REPLACE_WRITE=0;
5728 UNISTD_H_HAVE_WINSOCK2_H=0;
5729 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
5730
5731
5732
5733 GNULIB_OPENDIR=0;
5734 GNULIB_READDIR=0;
5735 GNULIB_REWINDDIR=0;
5736 GNULIB_CLOSEDIR=0;
5737 GNULIB_DIRFD=0;
5738 GNULIB_FDOPENDIR=0;
5739 GNULIB_SCANDIR=0;
5740 GNULIB_ALPHASORT=0;
5741 HAVE_OPENDIR=1;
5742 HAVE_READDIR=1;
5743 HAVE_REWINDDIR=1;
5744 HAVE_CLOSEDIR=1;
5745 HAVE_DECL_DIRFD=1;
5746 HAVE_DECL_FDOPENDIR=1;
5747 HAVE_FDOPENDIR=1;
5748 HAVE_SCANDIR=1;
5749 HAVE_ALPHASORT=1;
5750 REPLACE_OPENDIR=0;
5751 REPLACE_CLOSEDIR=0;
5752 REPLACE_DIRFD=0;
5753 REPLACE_FDOPENDIR=0;
5754
5755
5756
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
5758$as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
5759if test "${gl_cv_have_include_next+set}" = set; then :
5760 $as_echo_n "(cached) " >&6
5761else
5762 rm -rf conftestd1a conftestd1b conftestd2
5763 mkdir conftestd1a conftestd1b conftestd2
5764 cat <<EOF > conftestd1a/conftest.h
5765#define DEFINED_IN_CONFTESTD1
5766#include_next <conftest.h>
5767#ifdef DEFINED_IN_CONFTESTD2
5768int foo;
5769#else
88b48903
WN
5770#error "include_next doesn't work"
5771#endif
5772EOF
5773 cat <<EOF > conftestd1b/conftest.h
5774#define DEFINED_IN_CONFTESTD1
5775#include <stdio.h>
5776#include_next <conftest.h>
5777#ifdef DEFINED_IN_CONFTESTD2
5778int foo;
5779#else
5780#error "include_next doesn't work"
5781#endif
5782EOF
5783 cat <<EOF > conftestd2/conftest.h
5784#ifndef DEFINED_IN_CONFTESTD1
5785#error "include_next test doesn't work"
5786#endif
5787#define DEFINED_IN_CONFTESTD2
5788EOF
5789 gl_save_CPPFLAGS="$CPPFLAGS"
5790 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
5791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5792/* end confdefs.h. */
5793#include <conftest.h>
5794_ACEOF
5795if ac_fn_c_try_compile "$LINENO"; then :
5796 gl_cv_have_include_next=yes
5797else
5798 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
5799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5800/* end confdefs.h. */
5801#include <conftest.h>
5802_ACEOF
5803if ac_fn_c_try_compile "$LINENO"; then :
5804 gl_cv_have_include_next=buggy
5805else
5806 gl_cv_have_include_next=no
5807fi
5808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5809
5810fi
5811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5812 CPPFLAGS="$gl_save_CPPFLAGS"
5813 rm -rf conftestd1a conftestd1b conftestd2
5814
5815fi
5816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
5817$as_echo "$gl_cv_have_include_next" >&6; }
5818 PRAGMA_SYSTEM_HEADER=
5819 if test $gl_cv_have_include_next = yes; then
5820 INCLUDE_NEXT=include_next
5821 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5822 if test -n "$GCC"; then
5823 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
5824 fi
5825 else
5826 if test $gl_cv_have_include_next = buggy; then
5827 INCLUDE_NEXT=include
5828 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5829 else
5830 INCLUDE_NEXT=include
5831 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
5832 fi
5833 fi
5834
5835
5836
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
5838$as_echo_n "checking whether system header files limit the line length... " >&6; }
5839if test "${gl_cv_pragma_columns+set}" = set; then :
5840 $as_echo_n "(cached) " >&6
5841else
5842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5843/* end confdefs.h. */
5844
5845#ifdef __TANDEM
5846choke me
5847#endif
5848
5849_ACEOF
5850if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5851 $EGREP "choke me" >/dev/null 2>&1; then :
5852 gl_cv_pragma_columns=yes
5853else
5854 gl_cv_pragma_columns=no
5855fi
5856rm -f conftest*
5857
5858
5859fi
5860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
5861$as_echo "$gl_cv_pragma_columns" >&6; }
5862 if test $gl_cv_pragma_columns = yes; then
5863 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
5864 else
5865 PRAGMA_COLUMNS=
5866 fi
5867
5868
5869
5870
e26b6bb0
TT
5871
5872 for ac_header in $ac_header_list
5873do :
5874 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5875ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5876"
5877eval as_val=\$$as_ac_Header
5878 if test "x$as_val" = x""yes; then :
5879 cat >>confdefs.h <<_ACEOF
5880#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5881_ACEOF
5882
5883fi
5884
5885done
5886
5887
5888
5889
5890
63ce7108
TT
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
5892$as_echo_n "checking for complete errno.h... " >&6; }
5893if test "${gl_cv_header_errno_h_complete+set}" = set; then :
c971b7fa
PA
5894 $as_echo_n "(cached) " >&6
5895else
63ce7108
TT
5896
5897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa 5898/* end confdefs.h. */
63ce7108
TT
5899
5900#include <errno.h>
5901#if !defined ETXTBSY
5902booboo
5903#endif
5904#if !defined ENOMSG
5905booboo
5906#endif
5907#if !defined EIDRM
5908booboo
5909#endif
5910#if !defined ENOLINK
5911booboo
5912#endif
5913#if !defined EPROTO
5914booboo
5915#endif
5916#if !defined EMULTIHOP
5917booboo
5918#endif
5919#if !defined EBADMSG
5920booboo
5921#endif
5922#if !defined EOVERFLOW
5923booboo
5924#endif
5925#if !defined ENOTSUP
5926booboo
5927#endif
5928#if !defined ENETRESET
5929booboo
5930#endif
5931#if !defined ECONNABORTED
5932booboo
5933#endif
5934#if !defined ESTALE
5935booboo
5936#endif
5937#if !defined EDQUOT
5938booboo
5939#endif
5940#if !defined ECANCELED
5941booboo
5942#endif
5943#if !defined EOWNERDEAD
5944booboo
5945#endif
5946#if !defined ENOTRECOVERABLE
5947booboo
5948#endif
5949#if !defined EILSEQ
5950booboo
5951#endif
5952
c971b7fa 5953_ACEOF
63ce7108
TT
5954if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5955 $EGREP "booboo" >/dev/null 2>&1; then :
5956 gl_cv_header_errno_h_complete=no
c971b7fa 5957else
63ce7108 5958 gl_cv_header_errno_h_complete=yes
c971b7fa 5959fi
63ce7108
TT
5960rm -f conftest*
5961
5962
c971b7fa 5963fi
63ce7108
TT
5964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
5965$as_echo "$gl_cv_header_errno_h_complete" >&6; }
5966 if test $gl_cv_header_errno_h_complete = yes; then
5967 ERRNO_H=''
5968 else
c971b7fa
PA
5969
5970
5971
5972
5973
5974
5975
5976
63ce7108
TT
5977 if test $gl_cv_have_include_next = yes; then
5978 gl_cv_next_errno_h='<'errno.h'>'
5979 else
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
5981$as_echo_n "checking absolute name of <errno.h>... " >&6; }
5982if test "${gl_cv_next_errno_h+set}" = set; then :
5983 $as_echo_n "(cached) " >&6
5984else
5985
5986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5987/* end confdefs.h. */
5988#include <errno.h>
5989
c971b7fa 5990_ACEOF
63ce7108
TT
5991 case "$host_os" in
5992 aix*) gl_absname_cpp="$ac_cpp -C" ;;
5993 *) gl_absname_cpp="$ac_cpp" ;;
5994 esac
c971b7fa 5995
63ce7108
TT
5996 case "$host_os" in
5997 mingw*)
5998 gl_dirsep_regex='[/\\]'
5999 ;;
6000 *)
6001 gl_dirsep_regex='\/'
6002 ;;
6003 esac
6004 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
c971b7fa 6005
63ce7108
TT
6006 gl_header_literal_regex=`echo 'errno.h' \
6007 | sed -e "$gl_make_literal_regex_sed"`
6008 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
6009 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
6010 s|^/[^/]|//&|
6011 p
6012 q
6013 }'
6014 gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6015 sed -n "$gl_absolute_header_sed"`'"'
c971b7fa
PA
6016
6017
63ce7108
TT
6018fi
6019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
6020$as_echo "$gl_cv_next_errno_h" >&6; }
6021 fi
6022 NEXT_ERRNO_H=$gl_cv_next_errno_h
c971b7fa 6023
63ce7108
TT
6024 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6025 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6026 gl_next_as_first_directive='<'errno.h'>'
6027 else
6028 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6029 gl_next_as_first_directive=$gl_cv_next_errno_h
6030 fi
6031 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
c971b7fa 6032
c971b7fa
PA
6033
6034
c971b7fa 6035
63ce7108
TT
6036 ERRNO_H='errno.h'
6037 fi
c971b7fa 6038
63ce7108
TT
6039 if test -n "$ERRNO_H"; then
6040 GL_GENERATE_ERRNO_H_TRUE=
6041 GL_GENERATE_ERRNO_H_FALSE='#'
6042else
6043 GL_GENERATE_ERRNO_H_TRUE='#'
6044 GL_GENERATE_ERRNO_H_FALSE=
6045fi
c971b7fa 6046
c971b7fa 6047
63ce7108
TT
6048 if test -n "$ERRNO_H"; then
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
6050$as_echo_n "checking for EMULTIHOP value... " >&6; }
6051if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then :
6052 $as_echo_n "(cached) " >&6
6053else
c971b7fa 6054
63ce7108
TT
6055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6056/* end confdefs.h. */
c971b7fa 6057
63ce7108
TT
6058#include <errno.h>
6059#ifdef EMULTIHOP
6060yes
6061#endif
c971b7fa 6062
63ce7108
TT
6063_ACEOF
6064if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6065 $EGREP "yes" >/dev/null 2>&1; then :
6066 gl_cv_header_errno_h_EMULTIHOP=yes
6067else
6068 gl_cv_header_errno_h_EMULTIHOP=no
6069fi
6070rm -f conftest*
c971b7fa 6071
63ce7108
TT
6072 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
6073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6074/* end confdefs.h. */
c971b7fa 6075
63ce7108
TT
6076#define _XOPEN_SOURCE_EXTENDED 1
6077#include <errno.h>
6078#ifdef EMULTIHOP
6079yes
6080#endif
c971b7fa 6081
63ce7108
TT
6082_ACEOF
6083if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6084 $EGREP "yes" >/dev/null 2>&1; then :
6085 gl_cv_header_errno_h_EMULTIHOP=hidden
6086fi
6087rm -f conftest*
c971b7fa 6088
63ce7108
TT
6089 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
6090 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
6091#define _XOPEN_SOURCE_EXTENDED 1
6092#include <errno.h>
6093/* The following two lines are a workaround against an autoconf-2.52 bug. */
6094#include <stdio.h>
6095#include <stdlib.h>
6096"; then :
c971b7fa 6097
63ce7108 6098fi
c971b7fa 6099
63ce7108
TT
6100 fi
6101 fi
8690e634
JK
6102
6103fi
63ce7108
TT
6104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
6105$as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
6106 case $gl_cv_header_errno_h_EMULTIHOP in
6107 yes | no)
6108 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
6109 ;;
6110 *)
6111 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
6112 ;;
6113 esac
8690e634 6114
8690e634 6115
63ce7108 6116 fi
8690e634
JK
6117
6118
63ce7108
TT
6119 if test -n "$ERRNO_H"; then
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
6121$as_echo_n "checking for ENOLINK value... " >&6; }
6122if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then :
6123 $as_echo_n "(cached) " >&6
6124else
8690e634 6125
63ce7108
TT
6126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6127/* end confdefs.h. */
6128
6129#include <errno.h>
6130#ifdef ENOLINK
6131yes
6132#endif
6133
6134_ACEOF
6135if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6136 $EGREP "yes" >/dev/null 2>&1; then :
6137 gl_cv_header_errno_h_ENOLINK=yes
6138else
6139 gl_cv_header_errno_h_ENOLINK=no
6140fi
6141rm -f conftest*
6142
6143 if test $gl_cv_header_errno_h_ENOLINK = no; then
6144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6145/* end confdefs.h. */
6146
6147#define _XOPEN_SOURCE_EXTENDED 1
6148#include <errno.h>
6149#ifdef ENOLINK
6150yes
6151#endif
6152
6153_ACEOF
6154if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6155 $EGREP "yes" >/dev/null 2>&1; then :
6156 gl_cv_header_errno_h_ENOLINK=hidden
6157fi
6158rm -f conftest*
6159
6160 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
6161 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
6162#define _XOPEN_SOURCE_EXTENDED 1
6163#include <errno.h>
6164/* The following two lines are a workaround against an autoconf-2.52 bug. */
6165#include <stdio.h>
6166#include <stdlib.h>
6167"; then :
6168
6169fi
6170
6171 fi
6172 fi
6173
6174fi
6175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
6176$as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
6177 case $gl_cv_header_errno_h_ENOLINK in
6178 yes | no)
6179 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
6180 ;;
6181 *)
6182 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
6183 ;;
6184 esac
6185
6186
6187 fi
6188
6189
6190 if test -n "$ERRNO_H"; then
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
6192$as_echo_n "checking for EOVERFLOW value... " >&6; }
6193if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then :
6194 $as_echo_n "(cached) " >&6
6195else
6196
6197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6198/* end confdefs.h. */
6199
6200#include <errno.h>
6201#ifdef EOVERFLOW
6202yes
6203#endif
6204
6205_ACEOF
6206if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6207 $EGREP "yes" >/dev/null 2>&1; then :
6208 gl_cv_header_errno_h_EOVERFLOW=yes
6209else
6210 gl_cv_header_errno_h_EOVERFLOW=no
6211fi
6212rm -f conftest*
6213
6214 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
6215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6216/* end confdefs.h. */
6217
6218#define _XOPEN_SOURCE_EXTENDED 1
6219#include <errno.h>
6220#ifdef EOVERFLOW
6221yes
6222#endif
6223
6224_ACEOF
6225if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6226 $EGREP "yes" >/dev/null 2>&1; then :
6227 gl_cv_header_errno_h_EOVERFLOW=hidden
6228fi
6229rm -f conftest*
6230
6231 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
6232 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
6233#define _XOPEN_SOURCE_EXTENDED 1
6234#include <errno.h>
6235/* The following two lines are a workaround against an autoconf-2.52 bug. */
6236#include <stdio.h>
6237#include <stdlib.h>
6238"; then :
6239
6240fi
6241
6242 fi
6243 fi
6244
6245fi
6246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
6247$as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
6248 case $gl_cv_header_errno_h_EOVERFLOW in
6249 yes | no)
6250 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
6251 ;;
6252 *)
6253 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
6254 ;;
6255 esac
6256
6257
6258 fi
6259
6260
6261
6262
6263
6264
6265
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
6267$as_echo_n "checking for mbstate_t... " >&6; }
6268if test "${ac_cv_type_mbstate_t+set}" = set; then :
6269 $as_echo_n "(cached) " >&6
6270else
6271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6272/* end confdefs.h. */
6273$ac_includes_default
6274/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
6275 <wchar.h>.
6276 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6277 included before <wchar.h>. */
6278#include <stddef.h>
6279#include <stdio.h>
6280#include <time.h>
6281#include <wchar.h>
6282int
6283main ()
6284{
6285mbstate_t x; return sizeof x;
6286 ;
6287 return 0;
6288}
6289_ACEOF
6290if ac_fn_c_try_compile "$LINENO"; then :
6291 ac_cv_type_mbstate_t=yes
6292else
6293 ac_cv_type_mbstate_t=no
6294fi
6295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6296fi
6297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
6298$as_echo "$ac_cv_type_mbstate_t" >&6; }
6299 if test $ac_cv_type_mbstate_t = yes; then
6300
6301$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
6302
6303 else
6304
6305$as_echo "#define mbstate_t int" >>confdefs.h
6306
6307 fi
6308
6309
6310
6311
6312 for ac_func in $ac_func_list
6313do :
6314 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6315ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6316eval as_val=\$$as_ac_var
6317 if test "x$as_val" = x""yes; then :
6318 cat >>confdefs.h <<_ACEOF
6319#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6320_ACEOF
6321
6322fi
6323done
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
63ce7108
TT
6344 GNULIB_ACOSF=0;
6345 GNULIB_ACOSL=0;
6346 GNULIB_ASINF=0;
6347 GNULIB_ASINL=0;
6348 GNULIB_ATANF=0;
6349 GNULIB_ATANL=0;
6350 GNULIB_ATAN2F=0;
6351 GNULIB_CBRT=0;
6352 GNULIB_CBRTF=0;
6353 GNULIB_CBRTL=0;
6354 GNULIB_CEIL=0;
6355 GNULIB_CEILF=0;
6356 GNULIB_CEILL=0;
6357 GNULIB_COPYSIGN=0;
6358 GNULIB_COPYSIGNF=0;
88b48903
WN
6359 GNULIB_COPYSIGNL=0;
6360 GNULIB_COSF=0;
6361 GNULIB_COSL=0;
6362 GNULIB_COSHF=0;
6363 GNULIB_EXPF=0;
6364 GNULIB_EXPL=0;
6365 GNULIB_EXP2=0;
6366 GNULIB_EXP2F=0;
6367 GNULIB_EXP2L=0;
6368 GNULIB_EXPM1=0;
6369 GNULIB_EXPM1F=0;
6370 GNULIB_EXPM1L=0;
6371 GNULIB_FABSF=0;
6372 GNULIB_FABSL=0;
6373 GNULIB_FLOOR=0;
6374 GNULIB_FLOORF=0;
6375 GNULIB_FLOORL=0;
6376 GNULIB_FMA=0;
6377 GNULIB_FMAF=0;
6378 GNULIB_FMAL=0;
6379 GNULIB_FMOD=0;
6380 GNULIB_FMODF=0;
6381 GNULIB_FMODL=0;
6382 GNULIB_FREXPF=0;
6383 GNULIB_FREXP=0;
6384 GNULIB_FREXPL=0;
6385 GNULIB_HYPOT=0;
6386 GNULIB_HYPOTF=0;
6387 GNULIB_HYPOTL=0;
6388 GNULIB_ILOGB=0;
6389 GNULIB_ILOGBF=0;
6390 GNULIB_ILOGBL=0;
6391 GNULIB_ISFINITE=0;
6392 GNULIB_ISINF=0;
6393 GNULIB_ISNAN=0;
6394 GNULIB_ISNANF=0;
6395 GNULIB_ISNAND=0;
6396 GNULIB_ISNANL=0;
6397 GNULIB_LDEXPF=0;
6398 GNULIB_LDEXPL=0;
6399 GNULIB_LOG=0;
6400 GNULIB_LOGF=0;
6401 GNULIB_LOGL=0;
6402 GNULIB_LOG10=0;
6403 GNULIB_LOG10F=0;
6404 GNULIB_LOG10L=0;
6405 GNULIB_LOG1P=0;
6406 GNULIB_LOG1PF=0;
6407 GNULIB_LOG1PL=0;
6408 GNULIB_LOG2=0;
6409 GNULIB_LOG2F=0;
6410 GNULIB_LOG2L=0;
6411 GNULIB_LOGB=0;
6412 GNULIB_LOGBF=0;
6413 GNULIB_LOGBL=0;
6414 GNULIB_MODF=0;
6415 GNULIB_MODFF=0;
6416 GNULIB_MODFL=0;
6417 GNULIB_POWF=0;
6418 GNULIB_REMAINDER=0;
6419 GNULIB_REMAINDERF=0;
6420 GNULIB_REMAINDERL=0;
6421 GNULIB_RINT=0;
6422 GNULIB_RINTF=0;
6423 GNULIB_RINTL=0;
6424 GNULIB_ROUND=0;
6425 GNULIB_ROUNDF=0;
6426 GNULIB_ROUNDL=0;
6427 GNULIB_SIGNBIT=0;
6428 GNULIB_SINF=0;
6429 GNULIB_SINL=0;
6430 GNULIB_SINHF=0;
6431 GNULIB_SQRTF=0;
6432 GNULIB_SQRTL=0;
6433 GNULIB_TANF=0;
6434 GNULIB_TANL=0;
6435 GNULIB_TANHF=0;
6436 GNULIB_TRUNC=0;
6437 GNULIB_TRUNCF=0;
6438 GNULIB_TRUNCL=0;
6439 HAVE_ACOSF=1;
6440 HAVE_ACOSL=1;
6441 HAVE_ASINF=1;
6442 HAVE_ASINL=1;
6443 HAVE_ATANF=1;
6444 HAVE_ATANL=1;
6445 HAVE_ATAN2F=1;
6446 HAVE_CBRT=1;
6447 HAVE_CBRTF=1;
6448 HAVE_CBRTL=1;
6449 HAVE_COPYSIGN=1;
6450 HAVE_COPYSIGNL=1;
6451 HAVE_COSF=1;
6452 HAVE_COSL=1;
6453 HAVE_COSHF=1;
6454 HAVE_EXPF=1;
6455 HAVE_EXPL=1;
6456 HAVE_EXPM1=1;
6457 HAVE_EXPM1F=1;
6458 HAVE_FABSF=1;
6459 HAVE_FABSL=1;
6460 HAVE_FMA=1;
6461 HAVE_FMAF=1;
6462 HAVE_FMAL=1;
6463 HAVE_FMODF=1;
6464 HAVE_FMODL=1;
6465 HAVE_FREXPF=1;
6466 HAVE_HYPOTF=1;
6467 HAVE_HYPOTL=1;
6468 HAVE_ILOGB=1;
6469 HAVE_ILOGBF=1;
6470 HAVE_ILOGBL=1;
6471 HAVE_ISNANF=1;
6472 HAVE_ISNAND=1;
6473 HAVE_ISNANL=1;
6474 HAVE_LDEXPF=1;
6475 HAVE_LOGF=1;
6476 HAVE_LOGL=1;
6477 HAVE_LOG10F=1;
6478 HAVE_LOG10L=1;
6479 HAVE_LOG1P=1;
6480 HAVE_LOG1PF=1;
6481 HAVE_LOG1PL=1;
6482 HAVE_LOGBF=1;
6483 HAVE_LOGBL=1;
6484 HAVE_MODFF=1;
6485 HAVE_MODFL=1;
6486 HAVE_POWF=1;
6487 HAVE_REMAINDER=1;
6488 HAVE_REMAINDERF=1;
6489 HAVE_RINT=1;
6490 HAVE_RINTL=1;
6491 HAVE_SINF=1;
6492 HAVE_SINL=1;
6493 HAVE_SINHF=1;
6494 HAVE_SQRTF=1;
6495 HAVE_SQRTL=1;
6496 HAVE_TANF=1;
6497 HAVE_TANL=1;
6498 HAVE_TANHF=1;
6499 HAVE_DECL_ACOSL=1;
6500 HAVE_DECL_ASINL=1;
6501 HAVE_DECL_ATANL=1;
6502 HAVE_DECL_CBRTF=1;
6503 HAVE_DECL_CBRTL=1;
6504 HAVE_DECL_CEILF=1;
6505 HAVE_DECL_CEILL=1;
6506 HAVE_DECL_COPYSIGNF=1;
6507 HAVE_DECL_COSL=1;
6508 HAVE_DECL_EXPL=1;
6509 HAVE_DECL_EXP2=1;
6510 HAVE_DECL_EXP2F=1;
6511 HAVE_DECL_EXP2L=1;
6512 HAVE_DECL_EXPM1L=1;
6513 HAVE_DECL_FLOORF=1;
6514 HAVE_DECL_FLOORL=1;
6515 HAVE_DECL_FREXPL=1;
6516 HAVE_DECL_LDEXPL=1;
6517 HAVE_DECL_LOGL=1;
6518 HAVE_DECL_LOG10L=1;
6519 HAVE_DECL_LOG2=1;
6520 HAVE_DECL_LOG2F=1;
6521 HAVE_DECL_LOG2L=1;
6522 HAVE_DECL_LOGB=1;
6523 HAVE_DECL_REMAINDER=1;
6524 HAVE_DECL_REMAINDERL=1;
6525 HAVE_DECL_RINTF=1;
6526 HAVE_DECL_ROUND=1;
6527 HAVE_DECL_ROUNDF=1;
6528 HAVE_DECL_ROUNDL=1;
6529 HAVE_DECL_SINL=1;
6530 HAVE_DECL_SQRTL=1;
6531 HAVE_DECL_TANL=1;
6532 HAVE_DECL_TRUNC=1;
6533 HAVE_DECL_TRUNCF=1;
6534 HAVE_DECL_TRUNCL=1;
6535 REPLACE_CBRTF=0;
6536 REPLACE_CBRTL=0;
6537 REPLACE_CEIL=0;
6538 REPLACE_CEILF=0;
6539 REPLACE_CEILL=0;
6540 REPLACE_EXPM1=0;
6541 REPLACE_EXPM1F=0;
6542 REPLACE_EXP2=0;
6543 REPLACE_EXP2L=0;
6544 REPLACE_FABSL=0;
6545 REPLACE_FLOOR=0;
6546 REPLACE_FLOORF=0;
6547 REPLACE_FLOORL=0;
6548 REPLACE_FMA=0;
6549 REPLACE_FMAF=0;
6550 REPLACE_FMAL=0;
6551 REPLACE_FMOD=0;
6552 REPLACE_FMODF=0;
6553 REPLACE_FMODL=0;
6554 REPLACE_FREXPF=0;
6555 REPLACE_FREXP=0;
6556 REPLACE_FREXPL=0;
6557 REPLACE_HUGE_VAL=0;
6558 REPLACE_HYPOT=0;
6559 REPLACE_HYPOTF=0;
6560 REPLACE_HYPOTL=0;
6561 REPLACE_ILOGB=0;
6562 REPLACE_ILOGBF=0;
6563 REPLACE_ISFINITE=0;
6564 REPLACE_ISINF=0;
6565 REPLACE_ISNAN=0;
6566 REPLACE_LDEXPL=0;
6567 REPLACE_LOG=0;
6568 REPLACE_LOGF=0;
6569 REPLACE_LOGL=0;
6570 REPLACE_LOG10=0;
6571 REPLACE_LOG10F=0;
6572 REPLACE_LOG10L=0;
6573 REPLACE_LOG1P=0;
6574 REPLACE_LOG1PF=0;
6575 REPLACE_LOG1PL=0;
6576 REPLACE_LOG2=0;
6577 REPLACE_LOG2F=0;
6578 REPLACE_LOG2L=0;
6579 REPLACE_LOGB=0;
6580 REPLACE_LOGBF=0;
6581 REPLACE_LOGBL=0;
6582 REPLACE_MODF=0;
6583 REPLACE_MODFF=0;
6584 REPLACE_MODFL=0;
6585 REPLACE_NAN=0;
6586 REPLACE_REMAINDER=0;
6587 REPLACE_REMAINDERF=0;
6588 REPLACE_REMAINDERL=0;
6589 REPLACE_ROUND=0;
6590 REPLACE_ROUNDF=0;
6591 REPLACE_ROUNDL=0;
6592 REPLACE_SIGNBIT=0;
6593 REPLACE_SIGNBIT_USING_GCC=0;
6594 REPLACE_SQRTL=0;
6595 REPLACE_TRUNC=0;
6596 REPLACE_TRUNCF=0;
6597 REPLACE_TRUNCL=0;
6598
6599
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used without linking with libm" >&5
6601$as_echo_n "checking whether frexp() can be used without linking with libm... " >&6; }
6602if test "${gl_cv_func_frexp_no_libm+set}" = set; then :
6603 $as_echo_n "(cached) " >&6
6604else
6605
6606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6607/* end confdefs.h. */
6608#include <math.h>
6609 double x;
6610int
6611main ()
6612{
6613int e; return frexp (x, &e) > 0;
6614 ;
6615 return 0;
6616}
6617_ACEOF
6618if ac_fn_c_try_link "$LINENO"; then :
6619 gl_cv_func_frexp_no_libm=yes
6620else
6621 gl_cv_func_frexp_no_libm=no
6622fi
6623rm -f core conftest.err conftest.$ac_objext \
6624 conftest$ac_exeext conftest.$ac_ext
6625
6626fi
6627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
6628$as_echo "$gl_cv_func_frexp_no_libm" >&6; }
6629
6630
6631
6632
88b48903
WN
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double and double are the same" >&5
6634$as_echo_n "checking whether long double and double are the same... " >&6; }
6635if test "${gl_cv_long_double_equals_double+set}" = set; then :
6636 $as_echo_n "(cached) " >&6
6637else
6638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6639/* end confdefs.h. */
6640#include <float.h>
6641int
6642main ()
6643{
6644typedef int check[sizeof (long double) == sizeof (double)
6645 && LDBL_MANT_DIG == DBL_MANT_DIG
6646 && LDBL_MAX_EXP == DBL_MAX_EXP
6647 && LDBL_MIN_EXP == DBL_MIN_EXP
6648 ? 1 : -1];
6649
6650 ;
6651 return 0;
6652}
6653_ACEOF
6654if ac_fn_c_try_compile "$LINENO"; then :
6655 gl_cv_long_double_equals_double=yes
6656else
6657 gl_cv_long_double_equals_double=no
6658fi
6659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6660
6661fi
6662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_double_equals_double" >&5
6663$as_echo "$gl_cv_long_double_equals_double" >&6; }
6664 if test $gl_cv_long_double_equals_double = yes; then
6665
6666$as_echo "#define HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1" >>confdefs.h
6667
6668 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=1
6669 else
6670 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=0
6671 fi
6672
6673
6674
8690e634
JK
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6676$as_echo_n "checking for unsigned long long int... " >&6; }
6677if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6678 $as_echo_n "(cached) " >&6
6679else
6680 ac_cv_type_unsigned_long_long_int=yes
6681 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6683/* end confdefs.h. */
6684
6685 /* For now, do not test the preprocessor; as of 2007 there are too many
6686 implementations with broken preprocessors. Perhaps this can
6687 be revisited in 2012. In the meantime, code should not expect
6688 #if to work with literals wider than 32 bits. */
6689 /* Test literals. */
6690 long long int ll = 9223372036854775807ll;
6691 long long int nll = -9223372036854775807LL;
6692 unsigned long long int ull = 18446744073709551615ULL;
6693 /* Test constant expressions. */
6694 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6695 ? 1 : -1)];
6696 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6697 ? 1 : -1)];
6698 int i = 63;
6699int
6700main ()
6701{
6702/* Test availability of runtime routines for shift and division. */
6703 long long int llmax = 9223372036854775807ll;
6704 unsigned long long int ullmax = 18446744073709551615ull;
6705 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6706 | (llmax / ll) | (llmax % ll)
6707 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6708 | (ullmax / ull) | (ullmax % ull));
6709 ;
6710 return 0;
6711}
6712
6713_ACEOF
6714if ac_fn_c_try_link "$LINENO"; then :
6715
6716else
6717 ac_cv_type_unsigned_long_long_int=no
6718fi
6719rm -f core conftest.err conftest.$ac_objext \
6720 conftest$ac_exeext conftest.$ac_ext
6721 fi
6722fi
6723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6724$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6725 if test $ac_cv_type_unsigned_long_long_int = yes; then
6726
6727$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6728
6729 fi
6730
6731
6732
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6734$as_echo_n "checking for long long int... " >&6; }
6735if test "${ac_cv_type_long_long_int+set}" = set; then :
6736 $as_echo_n "(cached) " >&6
6737else
6738 ac_cv_type_long_long_int=yes
6739 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6740 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6741 if test $ac_cv_type_long_long_int = yes; then
6742 if test "$cross_compiling" = yes; then :
6743 :
6744else
6745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6746/* end confdefs.h. */
6747#include <limits.h>
6748 #ifndef LLONG_MAX
6749 # define HALF \
6750 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6751 # define LLONG_MAX (HALF - 1 + HALF)
6752 #endif
6753int
6754main ()
6755{
6756long long int n = 1;
6757 int i;
6758 for (i = 0; ; i++)
6759 {
6760 long long int m = n << i;
6761 if (m >> i != n)
6762 return 1;
6763 if (LLONG_MAX / 2 < m)
6764 break;
6765 }
6766 return 0;
6767 ;
6768 return 0;
6769}
6770_ACEOF
6771if ac_fn_c_try_run "$LINENO"; then :
6772
6773else
6774 ac_cv_type_long_long_int=no
6775fi
6776rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6777 conftest.$ac_objext conftest.beam conftest.$ac_ext
6778fi
6779
6780 fi
6781 fi
6782fi
6783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6784$as_echo "$ac_cv_type_long_long_int" >&6; }
6785 if test $ac_cv_type_long_long_int = yes; then
6786
6787$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6788
6789 fi
6790
6791
6792
6793
6794
6795
88b48903
WN
6796 gl_cv_c_multiarch=no
6797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a143c6de 6798/* end confdefs.h. */
88b48903
WN
6799#ifndef __APPLE_CC__
6800 not a universal capable compiler
6801 #endif
6802 typedef int dummy;
6803
8690e634
JK
6804_ACEOF
6805if ac_fn_c_try_compile "$LINENO"; then :
6806
6807 arch=
6808 prev=
6809 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
6810 if test -n "$prev"; then
6811 case $word in
6812 i?86 | x86_64 | ppc | ppc64)
6813 if test -z "$arch" || test "$arch" = "$word"; then
6814 arch="$word"
6815 else
6816 gl_cv_c_multiarch=yes
6817 fi
6818 ;;
6819 esac
6820 prev=
6821 else
6822 if test "x$word" = "x-arch"; then
6823 prev=arch
6824 fi
6825 fi
6826 done
6827
6828fi
6829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6830 if test $gl_cv_c_multiarch = yes; then
6831 APPLE_UNIVERSAL_BUILD=1
6832 else
6833 APPLE_UNIVERSAL_BUILD=0
6834 fi
6835
6836
6837
6838
6839
6840 if test $ac_cv_type_long_long_int = yes; then
6841 HAVE_LONG_LONG_INT=1
6842 else
6843 HAVE_LONG_LONG_INT=0
6844 fi
6845
6846
6847 if test $ac_cv_type_unsigned_long_long_int = yes; then
6848 HAVE_UNSIGNED_LONG_LONG_INT=1
6849 else
6850 HAVE_UNSIGNED_LONG_LONG_INT=0
6851 fi
6852
6853
6854
8690e634
JK
6855 if test $ac_cv_header_wchar_h = yes; then
6856 HAVE_WCHAR_H=1
6857 else
6858 HAVE_WCHAR_H=0
6859 fi
6860
6861
6862 if test $ac_cv_header_inttypes_h = yes; then
6863 HAVE_INTTYPES_H=1
6864 else
6865 HAVE_INTTYPES_H=0
6866 fi
6867
6868
6869 if test $ac_cv_header_sys_types_h = yes; then
6870 HAVE_SYS_TYPES_H=1
6871 else
6872 HAVE_SYS_TYPES_H=0
6873 fi
6874
6875
6876
6877
6878
6879
6880
6881
8690e634
JK
6882
6883
6884
6885 if test $gl_cv_have_include_next = yes; then
6886 gl_cv_next_stdint_h='<'stdint.h'>'
6887 else
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
6889$as_echo_n "checking absolute name of <stdint.h>... " >&6; }
6890if test "${gl_cv_next_stdint_h+set}" = set; then :
6891 $as_echo_n "(cached) " >&6
6892else
6893
6894 if test $ac_cv_header_stdint_h = yes; then
6895
6896
6897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6898/* end confdefs.h. */
6899#include <stdint.h>
6900
6901_ACEOF
6902 case "$host_os" in
6903 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6904 *) gl_absname_cpp="$ac_cpp" ;;
6905 esac
6906
6907 case "$host_os" in
6908 mingw*)
6909 gl_dirsep_regex='[/\\]'
6910 ;;
6911 *)
6912 gl_dirsep_regex='\/'
6913 ;;
6914 esac
6915 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
6916
6917 gl_header_literal_regex=`echo 'stdint.h' \
6918 | sed -e "$gl_make_literal_regex_sed"`
6919 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
6920 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
6921 s|^/[^/]|//&|
6922 p
6923 q
6924 }'
6925 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6926 sed -n "$gl_absolute_header_sed"`'"'
6927 else
6928 gl_cv_next_stdint_h='<'stdint.h'>'
6929 fi
6930
6931
6932fi
6933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
6934$as_echo "$gl_cv_next_stdint_h" >&6; }
6935 fi
6936 NEXT_STDINT_H=$gl_cv_next_stdint_h
6937
6938 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6939 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6940 gl_next_as_first_directive='<'stdint.h'>'
6941 else
6942 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6943 gl_next_as_first_directive=$gl_cv_next_stdint_h
6944 fi
6945 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
6946
6947
6948
6949
6950 if test $ac_cv_header_stdint_h = yes; then
6951 HAVE_STDINT_H=1
6952 else
6953 HAVE_STDINT_H=0
6954 fi
6955
6956
6957 if test $ac_cv_header_stdint_h = yes; then
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
6959$as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
6960if test "${gl_cv_header_working_stdint_h+set}" = set; then :
6961 $as_echo_n "(cached) " >&6
6962else
6963 gl_cv_header_working_stdint_h=no
6964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6965/* end confdefs.h. */
6966
6967
6968#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6969#include <stdint.h>
6970/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
6971#if !(defined WCHAR_MIN && defined WCHAR_MAX)
6972#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
6973#endif
6974
6975
6976 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6977 included before <wchar.h>. */
6978 #include <stddef.h>
6979 #include <signal.h>
6980 #if HAVE_WCHAR_H
6981 # include <stdio.h>
6982 # include <time.h>
6983 # include <wchar.h>
6984 #endif
6985
6986
6987#ifdef INT8_MAX
6988int8_t a1 = INT8_MAX;
6989int8_t a1min = INT8_MIN;
6990#endif
6991#ifdef INT16_MAX
6992int16_t a2 = INT16_MAX;
6993int16_t a2min = INT16_MIN;
6994#endif
6995#ifdef INT32_MAX
6996int32_t a3 = INT32_MAX;
6997int32_t a3min = INT32_MIN;
6998#endif
6999#ifdef INT64_MAX
7000int64_t a4 = INT64_MAX;
7001int64_t a4min = INT64_MIN;
7002#endif
7003#ifdef UINT8_MAX
7004uint8_t b1 = UINT8_MAX;
7005#else
7006typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
7007#endif
7008#ifdef UINT16_MAX
7009uint16_t b2 = UINT16_MAX;
7010#endif
7011#ifdef UINT32_MAX
7012uint32_t b3 = UINT32_MAX;
7013#endif
7014#ifdef UINT64_MAX
7015uint64_t b4 = UINT64_MAX;
7016#endif
7017int_least8_t c1 = INT8_C (0x7f);
7018int_least8_t c1max = INT_LEAST8_MAX;
7019int_least8_t c1min = INT_LEAST8_MIN;
7020int_least16_t c2 = INT16_C (0x7fff);
7021int_least16_t c2max = INT_LEAST16_MAX;
7022int_least16_t c2min = INT_LEAST16_MIN;
7023int_least32_t c3 = INT32_C (0x7fffffff);
7024int_least32_t c3max = INT_LEAST32_MAX;
7025int_least32_t c3min = INT_LEAST32_MIN;
7026int_least64_t c4 = INT64_C (0x7fffffffffffffff);
7027int_least64_t c4max = INT_LEAST64_MAX;
7028int_least64_t c4min = INT_LEAST64_MIN;
7029uint_least8_t d1 = UINT8_C (0xff);
7030uint_least8_t d1max = UINT_LEAST8_MAX;
7031uint_least16_t d2 = UINT16_C (0xffff);
7032uint_least16_t d2max = UINT_LEAST16_MAX;
7033uint_least32_t d3 = UINT32_C (0xffffffff);
7034uint_least32_t d3max = UINT_LEAST32_MAX;
7035uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
7036uint_least64_t d4max = UINT_LEAST64_MAX;
7037int_fast8_t e1 = INT_FAST8_MAX;
7038int_fast8_t e1min = INT_FAST8_MIN;
7039int_fast16_t e2 = INT_FAST16_MAX;
7040int_fast16_t e2min = INT_FAST16_MIN;
7041int_fast32_t e3 = INT_FAST32_MAX;
7042int_fast32_t e3min = INT_FAST32_MIN;
7043int_fast64_t e4 = INT_FAST64_MAX;
7044int_fast64_t e4min = INT_FAST64_MIN;
7045uint_fast8_t f1 = UINT_FAST8_MAX;
7046uint_fast16_t f2 = UINT_FAST16_MAX;
7047uint_fast32_t f3 = UINT_FAST32_MAX;
7048uint_fast64_t f4 = UINT_FAST64_MAX;
7049#ifdef INTPTR_MAX
7050intptr_t g = INTPTR_MAX;
7051intptr_t gmin = INTPTR_MIN;
7052#endif
7053#ifdef UINTPTR_MAX
7054uintptr_t h = UINTPTR_MAX;
7055#endif
7056intmax_t i = INTMAX_MAX;
7057uintmax_t j = UINTMAX_MAX;
7058
7059#include <limits.h> /* for CHAR_BIT */
7060#define TYPE_MINIMUM(t) \
7061 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
7062#define TYPE_MAXIMUM(t) \
7063 ((t) ((t) 0 < (t) -1 \
7064 ? (t) -1 \
7065 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
7066struct s {
7067 int check_PTRDIFF:
7068 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
7069 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
7070 ? 1 : -1;
7071 /* Detect bug in FreeBSD 6.0 / ia64. */
7072 int check_SIG_ATOMIC:
7073 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
7074 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
7075 ? 1 : -1;
7076 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
7077 int check_WCHAR:
7078 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
7079 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
7080 ? 1 : -1;
7081 /* Detect bug in mingw. */
7082 int check_WINT:
7083 WINT_MIN == TYPE_MINIMUM (wint_t)
7084 && WINT_MAX == TYPE_MAXIMUM (wint_t)
7085 ? 1 : -1;
7086
7087 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
7088 int check_UINT8_C:
7089 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
7090 int check_UINT16_C:
7091 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
7092
7093 /* Detect bugs in OpenBSD 3.9 stdint.h. */
7094#ifdef UINT8_MAX
7095 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
7096#endif
7097#ifdef UINT16_MAX
7098 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
7099#endif
7100#ifdef UINT32_MAX
7101 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
7102#endif
7103#ifdef UINT64_MAX
7104 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
7105#endif
7106 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
7107 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
7108 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
7109 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
7110 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
7111 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
7112 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
7113 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
7114 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
7115 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
7116 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
7117};
7118
7119int
7120main ()
7121{
7122
7123 ;
7124 return 0;
7125}
7126_ACEOF
7127if ac_fn_c_try_compile "$LINENO"; then :
7128 if test "$cross_compiling" = yes; then :
7129 gl_cv_header_working_stdint_h=yes
7130
7131else
7132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7133/* end confdefs.h. */
7134
7135
7136#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
7137#include <stdint.h>
7138
7139
7140 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7141 included before <wchar.h>. */
7142 #include <stddef.h>
7143 #include <signal.h>
7144 #if HAVE_WCHAR_H
7145 # include <stdio.h>
7146 # include <time.h>
7147 # include <wchar.h>
7148 #endif
7149
7150
7151#include <stdio.h>
7152#include <string.h>
7153#define MVAL(macro) MVAL1(macro)
7154#define MVAL1(expression) #expression
7155static const char *macro_values[] =
7156 {
7157#ifdef INT8_MAX
7158 MVAL (INT8_MAX),
7159#endif
7160#ifdef INT16_MAX
7161 MVAL (INT16_MAX),
7162#endif
7163#ifdef INT32_MAX
7164 MVAL (INT32_MAX),
7165#endif
7166#ifdef INT64_MAX
7167 MVAL (INT64_MAX),
7168#endif
7169#ifdef UINT8_MAX
7170 MVAL (UINT8_MAX),
7171#endif
7172#ifdef UINT16_MAX
7173 MVAL (UINT16_MAX),
7174#endif
7175#ifdef UINT32_MAX
7176 MVAL (UINT32_MAX),
7177#endif
7178#ifdef UINT64_MAX
7179 MVAL (UINT64_MAX),
7180#endif
7181 NULL
7182 };
7183
7184int
7185main ()
7186{
7187
7188 const char **mv;
7189 for (mv = macro_values; *mv != NULL; mv++)
7190 {
7191 const char *value = *mv;
7192 /* Test whether it looks like a cast expression. */
7193 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
7194 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
7195 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
7196 || strncmp (value, "((int)"/*)*/, 6) == 0
7197 || strncmp (value, "((signed short)"/*)*/, 15) == 0
7198 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
7199 return mv - macro_values + 1;
7200 }
7201 return 0;
7202
7203 ;
7204 return 0;
7205}
7206_ACEOF
7207if ac_fn_c_try_run "$LINENO"; then :
7208 gl_cv_header_working_stdint_h=yes
7209fi
7210rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7211 conftest.$ac_objext conftest.beam conftest.$ac_ext
7212fi
7213
7214
7215fi
7216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7217
7218fi
7219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
7220$as_echo "$gl_cv_header_working_stdint_h" >&6; }
7221 fi
7222 if test "$gl_cv_header_working_stdint_h" = yes; then
7223 STDINT_H=
7224 else
7225 for ac_header in sys/inttypes.h sys/bitypes.h
7226do :
7227 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7228ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7229eval as_val=\$$as_ac_Header
7230 if test "x$as_val" = x""yes; then :
7231 cat >>confdefs.h <<_ACEOF
7232#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7233_ACEOF
7234
7235fi
7236
7237done
7238
7239 if test $ac_cv_header_sys_inttypes_h = yes; then
7240 HAVE_SYS_INTTYPES_H=1
7241 else
7242 HAVE_SYS_INTTYPES_H=0
7243 fi
7244
7245 if test $ac_cv_header_sys_bitypes_h = yes; then
7246 HAVE_SYS_BITYPES_H=1
7247 else
7248 HAVE_SYS_BITYPES_H=0
7249 fi
7250
7251
7252
7253
7254 if test $APPLE_UNIVERSAL_BUILD = 0; then
7255
7256
7257 for gltype in ptrdiff_t size_t ; do
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
7259$as_echo_n "checking for bit size of $gltype... " >&6; }
7260if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
7261 $as_echo_n "(cached) " >&6
7262else
7263 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
7264 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7265 included before <wchar.h>. */
7266 #include <stddef.h>
7267 #include <signal.h>
7268 #if HAVE_WCHAR_H
7269 # include <stdio.h>
7270 # include <time.h>
7271 # include <wchar.h>
7272 #endif
7273
7274#include <limits.h>"; then :
7275
7276else
7277 result=unknown
7278fi
7279
7280 eval gl_cv_bitsizeof_${gltype}=\$result
7281
7282fi
7283eval ac_res=\$gl_cv_bitsizeof_${gltype}
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7285$as_echo "$ac_res" >&6; }
7286 eval result=\$gl_cv_bitsizeof_${gltype}
7287 if test $result = unknown; then
7288 result=0
7289 fi
7290 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
7291 cat >>confdefs.h <<_ACEOF
7292#define BITSIZEOF_${GLTYPE} $result
7293_ACEOF
7294
7295 eval BITSIZEOF_${GLTYPE}=\$result
7296 done
7297
7298
7299 fi
7300
7301
7302 for gltype in sig_atomic_t wchar_t wint_t ; do
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
7304$as_echo_n "checking for bit size of $gltype... " >&6; }
7305if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
7306 $as_echo_n "(cached) " >&6
7307else
7308 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
7309 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7310 included before <wchar.h>. */
7311 #include <stddef.h>
7312 #include <signal.h>
7313 #if HAVE_WCHAR_H
7314 # include <stdio.h>
7315 # include <time.h>
7316 # include <wchar.h>
7317 #endif
7318
7319#include <limits.h>"; then :
7320
7321else
7322 result=unknown
7323fi
7324
7325 eval gl_cv_bitsizeof_${gltype}=\$result
7326
7327fi
7328eval ac_res=\$gl_cv_bitsizeof_${gltype}
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7330$as_echo "$ac_res" >&6; }
7331 eval result=\$gl_cv_bitsizeof_${gltype}
7332 if test $result = unknown; then
7333 result=0
7334 fi
7335 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
7336 cat >>confdefs.h <<_ACEOF
7337#define BITSIZEOF_${GLTYPE} $result
7338_ACEOF
7339
7340 eval BITSIZEOF_${GLTYPE}=\$result
7341 done
7342
7343
7344
7345
7346 for gltype in sig_atomic_t wchar_t wint_t ; do
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
7348$as_echo_n "checking whether $gltype is signed... " >&6; }
7349if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
7350 $as_echo_n "(cached) " >&6
7351else
7352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7353/* end confdefs.h. */
7354
7355 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7356 included before <wchar.h>. */
7357 #include <stddef.h>
7358 #include <signal.h>
7359 #if HAVE_WCHAR_H
7360 # include <stdio.h>
7361 # include <time.h>
7362 # include <wchar.h>
7363 #endif
7364
7365 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
7366int
7367main ()
7368{
7369
7370 ;
7371 return 0;
7372}
7373_ACEOF
7374if ac_fn_c_try_compile "$LINENO"; then :
7375 result=yes
7376else
7377 result=no
7378fi
7379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7380 eval gl_cv_type_${gltype}_signed=\$result
7381
7382fi
7383eval ac_res=\$gl_cv_type_${gltype}_signed
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7385$as_echo "$ac_res" >&6; }
7386 eval result=\$gl_cv_type_${gltype}_signed
7387 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
7388 if test "$result" = yes; then
7389 cat >>confdefs.h <<_ACEOF
7390#define HAVE_SIGNED_${GLTYPE} 1
7391_ACEOF
7392
7393 eval HAVE_SIGNED_${GLTYPE}=1
7394 else
7395 eval HAVE_SIGNED_${GLTYPE}=0
7396 fi
7397 done
7398
7399
7400 gl_cv_type_ptrdiff_t_signed=yes
7401 gl_cv_type_size_t_signed=no
7402 if test $APPLE_UNIVERSAL_BUILD = 0; then
7403
7404
7405 for gltype in ptrdiff_t size_t ; do
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
7407$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
7408if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
7409 $as_echo_n "(cached) " >&6
7410else
7411 eval gl_cv_type_${gltype}_suffix=no
7412 eval result=\$gl_cv_type_${gltype}_signed
7413 if test "$result" = yes; then
7414 glsufu=
7415 else
7416 glsufu=u
7417 fi
7418 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
7419 case $glsuf in
7420 '') gltype1='int';;
7421 l) gltype1='long int';;
7422 ll) gltype1='long long int';;
7423 i64) gltype1='__int64';;
7424 u) gltype1='unsigned int';;
7425 ul) gltype1='unsigned long int';;
7426 ull) gltype1='unsigned long long int';;
7427 ui64)gltype1='unsigned __int64';;
7428 esac
7429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7430/* end confdefs.h. */
7431
7432 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7433 included before <wchar.h>. */
7434 #include <stddef.h>
7435 #include <signal.h>
7436 #if HAVE_WCHAR_H
7437 # include <stdio.h>
7438 # include <time.h>
7439 # include <wchar.h>
7440 #endif
7441
7442 extern $gltype foo;
7443 extern $gltype1 foo;
7444int
7445main ()
7446{
7447
7448 ;
7449 return 0;
7450}
7451_ACEOF
7452if ac_fn_c_try_compile "$LINENO"; then :
7453 eval gl_cv_type_${gltype}_suffix=\$glsuf
7454fi
7455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7456 eval result=\$gl_cv_type_${gltype}_suffix
7457 test "$result" != no && break
7458 done
7459fi
7460eval ac_res=\$gl_cv_type_${gltype}_suffix
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7462$as_echo "$ac_res" >&6; }
7463 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
7464 eval result=\$gl_cv_type_${gltype}_suffix
7465 test "$result" = no && result=
7466 eval ${GLTYPE}_SUFFIX=\$result
7467 cat >>confdefs.h <<_ACEOF
7468#define ${GLTYPE}_SUFFIX $result
7469_ACEOF
7470
7471 done
7472
7473
7474 fi
7475
7476
7477 for gltype in sig_atomic_t wchar_t wint_t ; do
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
7479$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
7480if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
7481 $as_echo_n "(cached) " >&6
7482else
7483 eval gl_cv_type_${gltype}_suffix=no
7484 eval result=\$gl_cv_type_${gltype}_signed
7485 if test "$result" = yes; then
7486 glsufu=
7487 else
7488 glsufu=u
7489 fi
7490 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
7491 case $glsuf in
7492 '') gltype1='int';;
7493 l) gltype1='long int';;
7494 ll) gltype1='long long int';;
7495 i64) gltype1='__int64';;
7496 u) gltype1='unsigned int';;
7497 ul) gltype1='unsigned long int';;
7498 ull) gltype1='unsigned long long int';;
7499 ui64)gltype1='unsigned __int64';;
7500 esac
7501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7502/* end confdefs.h. */
7503
7504 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7505 included before <wchar.h>. */
7506 #include <stddef.h>
7507 #include <signal.h>
7508 #if HAVE_WCHAR_H
7509 # include <stdio.h>
7510 # include <time.h>
7511 # include <wchar.h>
7512 #endif
7513
7514 extern $gltype foo;
7515 extern $gltype1 foo;
7516int
7517main ()
7518{
7519
7520 ;
7521 return 0;
7522}
7523_ACEOF
7524if ac_fn_c_try_compile "$LINENO"; then :
7525 eval gl_cv_type_${gltype}_suffix=\$glsuf
7526fi
7527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7528 eval result=\$gl_cv_type_${gltype}_suffix
7529 test "$result" != no && break
7530 done
7531fi
7532eval ac_res=\$gl_cv_type_${gltype}_suffix
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7534$as_echo "$ac_res" >&6; }
7535 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
7536 eval result=\$gl_cv_type_${gltype}_suffix
7537 test "$result" = no && result=
7538 eval ${GLTYPE}_SUFFIX=\$result
7539 cat >>confdefs.h <<_ACEOF
7540#define ${GLTYPE}_SUFFIX $result
7541_ACEOF
7542
7543 done
7544
7545
7546
7547 if test $BITSIZEOF_WINT_T -lt 32; then
7548 BITSIZEOF_WINT_T=32
7549 fi
7550
7551 STDINT_H=stdint.h
7552 fi
7553
7554 if test -n "$STDINT_H"; then
7555 GL_GENERATE_STDINT_H_TRUE=
7556 GL_GENERATE_STDINT_H_FALSE='#'
7557else
7558 GL_GENERATE_STDINT_H_TRUE='#'
7559 GL_GENERATE_STDINT_H_FALSE=
7560fi
7561
7562
7563
7564
7565
8690e634
JK
7566 GNULIB_IMAXABS=0;
7567 GNULIB_IMAXDIV=0;
7568 GNULIB_STRTOIMAX=0;
7569 GNULIB_STRTOUMAX=0;
7570 HAVE_DECL_IMAXABS=1;
7571 HAVE_DECL_IMAXDIV=1;
7572 HAVE_DECL_STRTOIMAX=1;
7573 HAVE_DECL_STRTOUMAX=1;
7574 REPLACE_STRTOIMAX=0;
7575 INT32_MAX_LT_INTMAX_MAX=1;
7576 INT64_MAX_EQ_LONG_MAX='defined _LP64';
7577 PRI_MACROS_BROKEN=0;
7578 PRIPTR_PREFIX=__PRIPTR_PREFIX;
7579 UINT32_MAX_LT_UINTMAX_MAX=1;
7580 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
7581
7582
7583
7584
8690e634
JK
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
8690e634
JK
7596 if test $gl_cv_have_include_next = yes; then
7597 gl_cv_next_inttypes_h='<'inttypes.h'>'
7598 else
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
7600$as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
7601if test "${gl_cv_next_inttypes_h+set}" = set; then :
7602 $as_echo_n "(cached) " >&6
7603else
7604
7605 if test $ac_cv_header_inttypes_h = yes; then
7606
7607
7608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7609/* end confdefs.h. */
7610#include <inttypes.h>
7611
7612_ACEOF
7613 case "$host_os" in
7614 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7615 *) gl_absname_cpp="$ac_cpp" ;;
7616 esac
7617
7618 case "$host_os" in
7619 mingw*)
7620 gl_dirsep_regex='[/\\]'
7621 ;;
7622 *)
7623 gl_dirsep_regex='\/'
7624 ;;
7625 esac
7626 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
7627
7628 gl_header_literal_regex=`echo 'inttypes.h' \
7629 | sed -e "$gl_make_literal_regex_sed"`
7630 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7631 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7632 s|^/[^/]|//&|
7633 p
7634 q
7635 }'
7636 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7637 sed -n "$gl_absolute_header_sed"`'"'
7638 else
7639 gl_cv_next_inttypes_h='<'inttypes.h'>'
7640 fi
7641
7642
7643fi
7644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
7645$as_echo "$gl_cv_next_inttypes_h" >&6; }
7646 fi
7647 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
7648
7649 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7650 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7651 gl_next_as_first_directive='<'inttypes.h'>'
7652 else
7653 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7654 gl_next_as_first_directive=$gl_cv_next_inttypes_h
7655 fi
7656 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
7657
7658
7659
7660
7661
7662
7663
7664
7665 for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
7666 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
7668$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
7669if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
7670 $as_echo_n "(cached) " >&6
7671else
7672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7673/* end confdefs.h. */
7674#include <inttypes.h>
7675
7676int
7677main ()
7678{
7679#undef $gl_func
7680 (void) $gl_func;
7681 ;
7682 return 0;
7683}
7684_ACEOF
7685if ac_fn_c_try_compile "$LINENO"; then :
7686 eval "$as_gl_Symbol=yes"
7687else
7688 eval "$as_gl_Symbol=no"
7689fi
7690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7691fi
7692eval ac_res=\$$as_gl_Symbol
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7694$as_echo "$ac_res" >&6; }
7695 eval as_val=\$$as_gl_Symbol
7696 if test "x$as_val" = x""yes; then :
7697 cat >>confdefs.h <<_ACEOF
7698#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
7699_ACEOF
7700
7701 eval ac_cv_have_decl_$gl_func=yes
7702fi
7703 done
7704
7705
7706
7707 for ac_header in inttypes.h
7708do :
7709 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7710if test "x$ac_cv_header_inttypes_h" = x""yes; then :
7711 cat >>confdefs.h <<_ACEOF
7712#define HAVE_INTTYPES_H 1
7713_ACEOF
7714
7715fi
7716
7717done
7718
7719 if test $ac_cv_header_inttypes_h = yes; then
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7721$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7722if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
7723 $as_echo_n "(cached) " >&6
7724else
7725
7726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7727/* end confdefs.h. */
7728
7729#include <inttypes.h>
7730#ifdef PRId32
7731char *p = PRId32;
7732#endif
7733
7734int
7735main ()
7736{
7737
7738 ;
7739 return 0;
7740}
7741_ACEOF
7742if ac_fn_c_try_compile "$LINENO"; then :
7743 gt_cv_inttypes_pri_broken=no
7744else
7745 gt_cv_inttypes_pri_broken=yes
7746fi
7747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7748
7749fi
7750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7751$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7752 fi
7753 if test "$gt_cv_inttypes_pri_broken" = yes; then
7754
7755cat >>confdefs.h <<_ACEOF
7756#define PRI_MACROS_BROKEN 1
7757_ACEOF
7758
7759 PRI_MACROS_BROKEN=1
7760 else
7761 PRI_MACROS_BROKEN=0
7762 fi
7763
7764
7765
88b48903
WN
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
7767$as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
7768if test "${gl_cv_cc_double_expbit0+set}" = set; then :
8690e634
JK
7769 $as_echo_n "(cached) " >&6
7770else
88b48903
WN
7771
7772 if test "$cross_compiling" = yes; then :
7773
7774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690e634 7775/* end confdefs.h. */
88b48903
WN
7776
7777#if defined arm || defined __arm || defined __arm__
7778 mixed_endianness
7779#endif
7780
7781_ACEOF
7782if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7783 $EGREP "mixed_endianness" >/dev/null 2>&1; then :
7784 gl_cv_cc_double_expbit0="unknown"
7785else
7786
7787 :
7788if test "${ac_cv_c_bigendian+set}" = set; then :
7789 $as_echo_n "(cached) " >&6
7790else
7791 ac_cv_c_bigendian=unknown
7792 # See if we're dealing with a universal compiler.
7793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7794/* end confdefs.h. */
7795#ifndef __APPLE_CC__
7796 not a universal capable compiler
7797 #endif
7798 typedef int dummy;
7799
7800_ACEOF
7801if ac_fn_c_try_compile "$LINENO"; then :
7802
7803 # Check for potential -arch flags. It is not universal unless
7804 # there are at least two -arch flags with different values.
7805 ac_arch=
7806 ac_prev=
7807 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7808 if test -n "$ac_prev"; then
7809 case $ac_word in
7810 i?86 | x86_64 | ppc | ppc64)
7811 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7812 ac_arch=$ac_word
7813 else
7814 ac_cv_c_bigendian=universal
7815 break
7816 fi
7817 ;;
7818 esac
7819 ac_prev=
7820 elif test "x$ac_word" = "x-arch"; then
7821 ac_prev=arch
7822 fi
7823 done
7824fi
7825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7826 if test $ac_cv_c_bigendian = unknown; then
7827 # See if sys/param.h defines the BYTE_ORDER macro.
7828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7829/* end confdefs.h. */
7830#include <sys/types.h>
7831 #include <sys/param.h>
7832
8690e634
JK
7833int
7834main ()
7835{
88b48903
WN
7836#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7837 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7838 && LITTLE_ENDIAN)
7839 bogus endian macros
7840 #endif
7841
8690e634
JK
7842 ;
7843 return 0;
7844}
7845_ACEOF
88b48903
WN
7846if ac_fn_c_try_compile "$LINENO"; then :
7847 # It does; now see whether it defined to BIG_ENDIAN or not.
7848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7849/* end confdefs.h. */
7850#include <sys/types.h>
7851 #include <sys/param.h>
7852
7853int
7854main ()
7855{
7856#if BYTE_ORDER != BIG_ENDIAN
7857 not big endian
7858 #endif
7859
7860 ;
7861 return 0;
7862}
7863_ACEOF
7864if ac_fn_c_try_compile "$LINENO"; then :
7865 ac_cv_c_bigendian=yes
8690e634 7866else
88b48903 7867 ac_cv_c_bigendian=no
8690e634 7868fi
88b48903 7869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8690e634 7870fi
88b48903
WN
7871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7872 fi
7873 if test $ac_cv_c_bigendian = unknown; then
7874 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7876/* end confdefs.h. */
7877#include <limits.h>
8690e634 7878
88b48903
WN
7879int
7880main ()
7881{
7882#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7883 bogus endian macros
7884 #endif
8690e634 7885
88b48903
WN
7886 ;
7887 return 0;
7888}
7889_ACEOF
7890if ac_fn_c_try_compile "$LINENO"; then :
7891 # It does; now see whether it defined to _BIG_ENDIAN or not.
7892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7893/* end confdefs.h. */
7894#include <limits.h>
8690e634 7895
88b48903
WN
7896int
7897main ()
7898{
7899#ifndef _BIG_ENDIAN
7900 not big endian
7901 #endif
8690e634 7902
88b48903
WN
7903 ;
7904 return 0;
7905}
7906_ACEOF
7907if ac_fn_c_try_compile "$LINENO"; then :
7908 ac_cv_c_bigendian=yes
7909else
7910 ac_cv_c_bigendian=no
7911fi
7912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7913fi
7914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7915 fi
7916 if test $ac_cv_c_bigendian = unknown; then
7917 # Compile a test program.
7918 if test "$cross_compiling" = yes; then :
7919 # Try to guess by grepping values from an object file.
7920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7921/* end confdefs.h. */
7922short int ascii_mm[] =
7923 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7924 short int ascii_ii[] =
7925 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7926 int use_ascii (int i) {
7927 return ascii_mm[i] + ascii_ii[i];
7928 }
7929 short int ebcdic_ii[] =
7930 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7931 short int ebcdic_mm[] =
7932 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7933 int use_ebcdic (int i) {
7934 return ebcdic_mm[i] + ebcdic_ii[i];
7935 }
7936 extern int foo;
8690e634 7937
88b48903
WN
7938int
7939main ()
7940{
7941return use_ascii (foo) == use_ebcdic (foo);
7942 ;
7943 return 0;
7944}
7945_ACEOF
7946if ac_fn_c_try_compile "$LINENO"; then :
7947 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7948 ac_cv_c_bigendian=yes
7949 fi
7950 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7951 if test "$ac_cv_c_bigendian" = unknown; then
7952 ac_cv_c_bigendian=no
7953 else
7954 # finding both strings is unlikely to happen, but who knows?
7955 ac_cv_c_bigendian=unknown
7956 fi
7957 fi
7958fi
7959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7960else
7961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7962/* end confdefs.h. */
7963$ac_includes_default
7964int
7965main ()
7966{
8690e634 7967
88b48903
WN
7968 /* Are we little or big endian? From Harbison&Steele. */
7969 union
7970 {
7971 long int l;
7972 char c[sizeof (long int)];
7973 } u;
7974 u.l = 1;
7975 return u.c[sizeof (long int) - 1] == 1;
8690e634 7976
88b48903
WN
7977 ;
7978 return 0;
7979}
7980_ACEOF
7981if ac_fn_c_try_run "$LINENO"; then :
7982 ac_cv_c_bigendian=no
7983else
7984 ac_cv_c_bigendian=yes
7985fi
7986rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7987 conftest.$ac_objext conftest.beam conftest.$ac_ext
7988fi
8690e634 7989
88b48903
WN
7990 fi
7991fi
7992:
7993 case $ac_cv_c_bigendian in #(
7994 yes)
7995 gl_cv_cc_double_expbit0="word 0 bit 20";; #(
7996 no)
7997 gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
7998 universal)
8690e634 7999
88b48903 8000$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8690e634 8001
88b48903
WN
8002 ;; #(
8003 *)
8004 gl_cv_cc_double_expbit0="unknown" ;;
8005 esac
8690e634
JK
8006
8007
88b48903
WN
8008fi
8009rm -f conftest*
8690e634 8010
8690e634 8011
88b48903
WN
8012else
8013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8014/* end confdefs.h. */
8690e634 8015
88b48903
WN
8016#include <float.h>
8017#include <stddef.h>
8018#include <stdio.h>
8019#include <string.h>
8020#define NWORDS \
8021 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
8022typedef union { double value; unsigned int word[NWORDS]; } memory_double;
8023static unsigned int ored_words[NWORDS];
8024static unsigned int anded_words[NWORDS];
8025static void add_to_ored_words (double x)
8026{
8027 memory_double m;
8028 size_t i;
8029 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
8030 memset (&m, 0, sizeof (memory_double));
8031 m.value = x;
8032 for (i = 0; i < NWORDS; i++)
8033 {
8034 ored_words[i] |= m.word[i];
8035 anded_words[i] &= m.word[i];
8036 }
8037}
8038int main ()
8039{
8040 size_t j;
8041 FILE *fp = fopen ("conftest.out", "w");
8042 if (fp == NULL)
8043 return 1;
8044 for (j = 0; j < NWORDS; j++)
8045 anded_words[j] = ~ (unsigned int) 0;
8046 add_to_ored_words (0.25);
8047 add_to_ored_words (0.5);
8048 add_to_ored_words (1.0);
8049 add_to_ored_words (2.0);
8050 add_to_ored_words (4.0);
8051 /* Remove bits that are common (e.g. if representation of the first mantissa
8052 bit is explicit). */
8053 for (j = 0; j < NWORDS; j++)
8054 ored_words[j] &= ~anded_words[j];
8055 /* Now find the nonzero word. */
8056 for (j = 0; j < NWORDS; j++)
8057 if (ored_words[j] != 0)
8058 break;
8059 if (j < NWORDS)
8060 {
8061 size_t i;
8062 for (i = j + 1; i < NWORDS; i++)
8063 if (ored_words[i] != 0)
8064 {
8065 fprintf (fp, "unknown");
8066 return (fclose (fp) != 0);
8067 }
8068 for (i = 0; ; i++)
8069 if ((ored_words[j] >> i) & 1)
8070 {
8071 fprintf (fp, "word %d bit %d", (int) j, (int) i);
8072 return (fclose (fp) != 0);
8073 }
8074 }
8075 fprintf (fp, "unknown");
8076 return (fclose (fp) != 0);
8077}
8690e634 8078
88b48903
WN
8079_ACEOF
8080if ac_fn_c_try_run "$LINENO"; then :
8081 gl_cv_cc_double_expbit0=`cat conftest.out`
8082else
8083 gl_cv_cc_double_expbit0="unknown"
8084fi
8085rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8086 conftest.$ac_objext conftest.beam conftest.$ac_ext
8087fi
8690e634 8088
88b48903 8089 rm -f conftest.out
8690e634 8090
88b48903
WN
8091fi
8092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
8093$as_echo "$gl_cv_cc_double_expbit0" >&6; }
8094 case "$gl_cv_cc_double_expbit0" in
8095 word*bit*)
8096 word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
8097 bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
8690e634 8098
88b48903
WN
8099cat >>confdefs.h <<_ACEOF
8100#define DBL_EXPBIT0_WORD $word
8101_ACEOF
8690e634
JK
8102
8103
88b48903
WN
8104cat >>confdefs.h <<_ACEOF
8105#define DBL_EXPBIT0_BIT $bit
8106_ACEOF
8690e634 8107
88b48903
WN
8108 ;;
8109 esac
8690e634
JK
8110
8111
88b48903
WN
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8113$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8114if test "${ac_cv_c_bigendian+set}" = set; then :
8690e634
JK
8115 $as_echo_n "(cached) " >&6
8116else
88b48903
WN
8117 ac_cv_c_bigendian=unknown
8118 # See if we're dealing with a universal compiler.
8119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8120/* end confdefs.h. */
8121#ifndef __APPLE_CC__
8122 not a universal capable compiler
8123 #endif
8124 typedef int dummy;
8125
8126_ACEOF
8127if ac_fn_c_try_compile "$LINENO"; then :
8128
8129 # Check for potential -arch flags. It is not universal unless
8130 # there are at least two -arch flags with different values.
8131 ac_arch=
8132 ac_prev=
8133 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8134 if test -n "$ac_prev"; then
8135 case $ac_word in
8136 i?86 | x86_64 | ppc | ppc64)
8137 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8138 ac_arch=$ac_word
8139 else
8140 ac_cv_c_bigendian=universal
8141 break
8142 fi
8143 ;;
8144 esac
8145 ac_prev=
8146 elif test "x$ac_word" = "x-arch"; then
8147 ac_prev=arch
8148 fi
8149 done
8150fi
8151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8152 if test $ac_cv_c_bigendian = unknown; then
8153 # See if sys/param.h defines the BYTE_ORDER macro.
8154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690e634
JK
8155/* end confdefs.h. */
8156#include <sys/types.h>
88b48903
WN
8157 #include <sys/param.h>
8158
8159int
8160main ()
8161{
8162#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8163 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8164 && LITTLE_ENDIAN)
8165 bogus endian macros
8166 #endif
8167
8168 ;
8169 return 0;
8170}
8171_ACEOF
8172if ac_fn_c_try_compile "$LINENO"; then :
8173 # It does; now see whether it defined to BIG_ENDIAN or not.
8174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8175/* end confdefs.h. */
8176#include <sys/types.h>
8177 #include <sys/param.h>
8178
8179int
8180main ()
8181{
8182#if BYTE_ORDER != BIG_ENDIAN
8183 not big endian
8184 #endif
8185
8186 ;
8187 return 0;
8188}
8189_ACEOF
8190if ac_fn_c_try_compile "$LINENO"; then :
8191 ac_cv_c_bigendian=yes
8192else
8193 ac_cv_c_bigendian=no
8194fi
8195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8196fi
8197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8198 fi
8199 if test $ac_cv_c_bigendian = unknown; then
8200 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8202/* end confdefs.h. */
8203#include <limits.h>
8204
8205int
8206main ()
8207{
8208#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8209 bogus endian macros
8210 #endif
8211
8212 ;
8213 return 0;
8214}
8215_ACEOF
8216if ac_fn_c_try_compile "$LINENO"; then :
8217 # It does; now see whether it defined to _BIG_ENDIAN or not.
8218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8219/* end confdefs.h. */
8220#include <limits.h>
8221
8222int
8223main ()
8224{
8225#ifndef _BIG_ENDIAN
8226 not big endian
8227 #endif
8228
8229 ;
8230 return 0;
8231}
8232_ACEOF
8233if ac_fn_c_try_compile "$LINENO"; then :
8234 ac_cv_c_bigendian=yes
8235else
8236 ac_cv_c_bigendian=no
8237fi
8238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8239fi
8240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8241 fi
8242 if test $ac_cv_c_bigendian = unknown; then
8243 # Compile a test program.
8244 if test "$cross_compiling" = yes; then :
8245 # Try to guess by grepping values from an object file.
8246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8247/* end confdefs.h. */
8248short int ascii_mm[] =
8249 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8250 short int ascii_ii[] =
8251 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8252 int use_ascii (int i) {
8253 return ascii_mm[i] + ascii_ii[i];
8254 }
8255 short int ebcdic_ii[] =
8256 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8257 short int ebcdic_mm[] =
8258 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8259 int use_ebcdic (int i) {
8260 return ebcdic_mm[i] + ebcdic_ii[i];
8261 }
8262 extern int foo;
8263
8264int
8265main ()
8266{
8267return use_ascii (foo) == use_ebcdic (foo);
8268 ;
8269 return 0;
8270}
8271_ACEOF
8272if ac_fn_c_try_compile "$LINENO"; then :
8273 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8274 ac_cv_c_bigendian=yes
8275 fi
8276 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8277 if test "$ac_cv_c_bigendian" = unknown; then
8278 ac_cv_c_bigendian=no
8279 else
8280 # finding both strings is unlikely to happen, but who knows?
8281 ac_cv_c_bigendian=unknown
8282 fi
8283 fi
8284fi
8285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8286else
8287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8288/* end confdefs.h. */
8289$ac_includes_default
8290int
8291main ()
8292{
8293
8294 /* Are we little or big endian? From Harbison&Steele. */
8295 union
8296 {
8297 long int l;
8298 char c[sizeof (long int)];
8299 } u;
8300 u.l = 1;
8301 return u.c[sizeof (long int) - 1] == 1;
8302
8303 ;
8304 return 0;
8305}
8306_ACEOF
8307if ac_fn_c_try_run "$LINENO"; then :
8308 ac_cv_c_bigendian=no
8309else
8310 ac_cv_c_bigendian=yes
8311fi
8312rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8313 conftest.$ac_objext conftest.beam conftest.$ac_ext
8314fi
8315
8316 fi
8317fi
8318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8319$as_echo "$ac_cv_c_bigendian" >&6; }
8320 case $ac_cv_c_bigendian in #(
8321 yes)
8322 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8323;; #(
8324 no)
8325 ;; #(
8326 universal)
8327
8328$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8329
8330 ;; #(
8331 *)
8332 as_fn_error "unknown endianness
8333 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8334 esac
8335
8336
8337
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8339$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8340if test "${am_cv_langinfo_codeset+set}" = set; then :
8341 $as_echo_n "(cached) " >&6
8342else
8343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8344/* end confdefs.h. */
8345#include <langinfo.h>
8346int
8347main ()
8348{
8349char* cs = nl_langinfo(CODESET); return !cs;
8350 ;
8351 return 0;
8352}
8353_ACEOF
8354if ac_fn_c_try_link "$LINENO"; then :
8355 am_cv_langinfo_codeset=yes
8356else
8357 am_cv_langinfo_codeset=no
8358fi
8359rm -f core conftest.err conftest.$ac_objext \
8360 conftest$ac_exeext conftest.$ac_ext
8361
8362fi
8363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8364$as_echo "$am_cv_langinfo_codeset" >&6; }
8365 if test $am_cv_langinfo_codeset = yes; then
8366
8367$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8368
8369 fi
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
88b48903
WN
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
8381$as_echo_n "checking for working fcntl.h... " >&6; }
8382if test "${gl_cv_header_working_fcntl_h+set}" = set; then :
8383 $as_echo_n "(cached) " >&6
8384else
8385 if test "$cross_compiling" = yes; then :
8386 gl_cv_header_working_fcntl_h=cross-compiling
8387else
8388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8389/* end confdefs.h. */
8390#include <sys/types.h>
8391 #include <sys/stat.h>
8392 #if HAVE_UNISTD_H
8393 # include <unistd.h>
8394 #else /* on Windows with MSVC */
8395 # include <io.h>
8396 # include <stdlib.h>
8690e634
JK
8397 # defined sleep(n) _sleep ((n) * 1000)
8398 #endif
8399 #include <fcntl.h>
8400 #ifndef O_NOATIME
8401 #define O_NOATIME 0
8402 #endif
8403 #ifndef O_NOFOLLOW
8404 #define O_NOFOLLOW 0
8405 #endif
8406 static int const constants[] =
8407 {
8408 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
8409 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
8410 };
8411
8412int
8413main ()
8414{
8415
8416 int result = !constants;
8417 #if HAVE_SYMLINK
8418 {
8419 static char const sym[] = "conftest.sym";
a512b375
JB
8420 if (symlink ("/dev/null", sym) != 0)
8421 result |= 2;
8422 else
8423 {
8424 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
8425 if (fd >= 0)
8426 {
8427 close (fd);
8428 result |= 4;
8429 }
8430 }
8431 if (unlink (sym) != 0 || symlink (".", sym) != 0)
8690e634
JK
8432 result |= 2;
8433 else
8434 {
8435 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
8436 if (fd >= 0)
8437 {
8438 close (fd);
8439 result |= 4;
8440 }
8441 }
8442 unlink (sym);
8443 }
8444 #endif
8445 {
8446 static char const file[] = "confdefs.h";
8447 int fd = open (file, O_RDONLY | O_NOATIME);
8448 if (fd < 0)
8449 result |= 8;
8450 else
8451 {
8452 struct stat st0;
8453 if (fstat (fd, &st0) != 0)
8454 result |= 16;
8455 else
8456 {
8457 char c;
8458 sleep (1);
8459 if (read (fd, &c, 1) != 1)
8460 result |= 24;
8461 else
8462 {
8463 if (close (fd) != 0)
8464 result |= 32;
8465 else
8466 {
8467 struct stat st1;
8468 if (stat (file, &st1) != 0)
8469 result |= 40;
8470 else
8471 if (st0.st_atime != st1.st_atime)
8472 result |= 64;
8473 }
8474 }
8475 }
8476 }
8477 }
8478 return result;
8479 ;
8480 return 0;
8481}
8482_ACEOF
8483if ac_fn_c_try_run "$LINENO"; then :
8484 gl_cv_header_working_fcntl_h=yes
8485else
8486 case $? in #(
8487 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
8488 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
8489 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
8490 *) gl_cv_header_working_fcntl_h='no';;
8491 esac
8492fi
8493rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8494 conftest.$ac_objext conftest.beam conftest.$ac_ext
8495fi
8496
8497fi
8498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
8499$as_echo "$gl_cv_header_working_fcntl_h" >&6; }
8500
8501 case $gl_cv_header_working_fcntl_h in #(
8502 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
8503 *) ac_val=1;;
8504 esac
8505
8506cat >>confdefs.h <<_ACEOF
8507#define HAVE_WORKING_O_NOATIME $ac_val
8508_ACEOF
8509
8510
8511 case $gl_cv_header_working_fcntl_h in #(
8512 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
8513 *) ac_val=1;;
8514 esac
8515
8516cat >>confdefs.h <<_ACEOF
8517#define HAVE_WORKING_O_NOFOLLOW $ac_val
8518_ACEOF
8519
8520
3574124b 8521ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
8690e634
JK
8522if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
8523 ac_have_decl=1
8524else
8525 ac_have_decl=0
8526fi
8527
8528cat >>confdefs.h <<_ACEOF
8529#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
8530_ACEOF
8531
8532
8690e634
JK
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
8534$as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
8535if test "${ac_cv_gnu_library_2_1+set}" = set; then :
8536 $as_echo_n "(cached) " >&6
8537else
8538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8539/* end confdefs.h. */
8540
8541#include <features.h>
8542#ifdef __GNU_LIBRARY__
8543 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
8544 Lucky GNU user
8545 #endif
8546#endif
8547#ifdef __UCLIBC__
8548 Lucky user
8549#endif
8550
8551_ACEOF
8552if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8553 $EGREP "Lucky" >/dev/null 2>&1; then :
8554 ac_cv_gnu_library_2_1=yes
8555else
8556 ac_cv_gnu_library_2_1=no
8557fi
8558rm -f conftest*
8559
8560
8561
8562fi
8563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
8564$as_echo "$ac_cv_gnu_library_2_1" >&6; }
8565
8566 GLIBC21="$ac_cv_gnu_library_2_1"
8567
8568
8569
88b48903
WN
8570
8571
8690e634
JK
8572 GNULIB_BTOWC=0;
8573 GNULIB_WCTOB=0;
8574 GNULIB_MBSINIT=0;
8575 GNULIB_MBRTOWC=0;
8576 GNULIB_MBRLEN=0;
8577 GNULIB_MBSRTOWCS=0;
8578 GNULIB_MBSNRTOWCS=0;
8579 GNULIB_WCRTOMB=0;
8580 GNULIB_WCSRTOMBS=0;
8581 GNULIB_WCSNRTOMBS=0;
8582 GNULIB_WCWIDTH=0;
8583 GNULIB_WMEMCHR=0;
8584 GNULIB_WMEMCMP=0;
8585 GNULIB_WMEMCPY=0;
8586 GNULIB_WMEMMOVE=0;
8587 GNULIB_WMEMSET=0;
8588 GNULIB_WCSLEN=0;
8589 GNULIB_WCSNLEN=0;
8590 GNULIB_WCSCPY=0;
8591 GNULIB_WCPCPY=0;
8592 GNULIB_WCSNCPY=0;
8593 GNULIB_WCPNCPY=0;
8594 GNULIB_WCSCAT=0;
8595 GNULIB_WCSNCAT=0;
8596 GNULIB_WCSCMP=0;
8597 GNULIB_WCSNCMP=0;
8598 GNULIB_WCSCASECMP=0;
8599 GNULIB_WCSNCASECMP=0;
8600 GNULIB_WCSCOLL=0;
8601 GNULIB_WCSXFRM=0;
8602 GNULIB_WCSDUP=0;
8603 GNULIB_WCSCHR=0;
8604 GNULIB_WCSRCHR=0;
8605 GNULIB_WCSCSPN=0;
8606 GNULIB_WCSSPN=0;
8607 GNULIB_WCSPBRK=0;
8608 GNULIB_WCSSTR=0;
8609 GNULIB_WCSTOK=0;
8610 GNULIB_WCSWIDTH=0;
8611 HAVE_BTOWC=1;
8612 HAVE_MBSINIT=1;
8613 HAVE_MBRTOWC=1;
8614 HAVE_MBRLEN=1;
8615 HAVE_MBSRTOWCS=1;
8616 HAVE_MBSNRTOWCS=1;
8617 HAVE_WCRTOMB=1;
8618 HAVE_WCSRTOMBS=1;
8619 HAVE_WCSNRTOMBS=1;
8620 HAVE_WMEMCHR=1;
8621 HAVE_WMEMCMP=1;
8622 HAVE_WMEMCPY=1;
8623 HAVE_WMEMMOVE=1;
8624 HAVE_WMEMSET=1;
8625 HAVE_WCSLEN=1;
8626 HAVE_WCSNLEN=1;
8627 HAVE_WCSCPY=1;
8628 HAVE_WCPCPY=1;
8629 HAVE_WCSNCPY=1;
8630 HAVE_WCPNCPY=1;
8631 HAVE_WCSCAT=1;
8632 HAVE_WCSNCAT=1;
8633 HAVE_WCSCMP=1;
8634 HAVE_WCSNCMP=1;
8635 HAVE_WCSCASECMP=1;
8636 HAVE_WCSNCASECMP=1;
8637 HAVE_WCSCOLL=1;
8638 HAVE_WCSXFRM=1;
8639 HAVE_WCSDUP=1;
8640 HAVE_WCSCHR=1;
8641 HAVE_WCSRCHR=1;
8642 HAVE_WCSCSPN=1;
8643 HAVE_WCSSPN=1;
8644 HAVE_WCSPBRK=1;
8645 HAVE_WCSSTR=1;
8646 HAVE_WCSTOK=1;
8647 HAVE_WCSWIDTH=1;
8648 HAVE_DECL_WCTOB=1;
8649 HAVE_DECL_WCWIDTH=1;
8650 REPLACE_MBSTATE_T=0;
8651 REPLACE_BTOWC=0;
8652 REPLACE_WCTOB=0;
8653 REPLACE_MBSINIT=0;
8654 REPLACE_MBRTOWC=0;
8655 REPLACE_MBRLEN=0;
8656 REPLACE_MBSRTOWCS=0;
8657 REPLACE_MBSNRTOWCS=0;
8658 REPLACE_WCRTOMB=0;
8659 REPLACE_WCSRTOMBS=0;
8660 REPLACE_WCSNRTOMBS=0;
8661 REPLACE_WCWIDTH=0;
8662 REPLACE_WCSWIDTH=0;
8663
8664
8665
8666
8667
8668
8669
8670
8690e634
JK
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
8672$as_echo_n "checking for a traditional japanese locale... " >&6; }
8673if test "${gt_cv_locale_ja+set}" = set; then :
8674 $as_echo_n "(cached) " >&6
8675else
8676
8677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8678/* end confdefs.h. */
8679
8680#include <locale.h>
8681#include <time.h>
8682#if HAVE_LANGINFO_CODESET
8683# include <langinfo.h>
8684#endif
8685#include <stdlib.h>
8686#include <string.h>
8687struct tm t;
8688char buf[16];
8689int main ()
8690{
8691 const char *p;
8692 /* Check whether the given locale name is recognized by the system. */
8693#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
8694 /* On native Windows, setlocale(category, "") looks at the system settings,
8695 not at the environment variables. Also, when an encoding suffix such
8696 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
8697 category of the locale to "C". */
8698 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
8699 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
8700 return 1;
8701#else
8702 if (setlocale (LC_ALL, "") == NULL) return 1;
8703#endif
8704 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
8705 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
8706 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
8707 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
8708 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
8709 some unit tests fail.
8710 On MirBSD 10, when an unsupported locale is specified, setlocale()
8711 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
8712#if HAVE_LANGINFO_CODESET
8713 {
8714 const char *cs = nl_langinfo (CODESET);
8715 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
8716 || strcmp (cs, "UTF-8") == 0)
8717 return 1;
8718 }
8719#endif
8720#ifdef __CYGWIN__
8721 /* On Cygwin, avoid locale names without encoding suffix, because the
8722 locale_charset() function relies on the encoding suffix. Note that
8723 LC_ALL is set on the command line. */
8724 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
8725#endif
8726 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
8727 on Cygwin 1.5.x. */
8728 if (MB_CUR_MAX == 1)
8729 return 1;
8730 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
8731 This excludes the UTF-8 encoding (except on MirBSD). */
8732 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
8733 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
8734 for (p = buf; *p != '\0'; p++)
8735 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
8736 return 1;
8737 return 0;
8738}
8739
8740_ACEOF
8741 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8742 (eval $ac_link) 2>&5
8743 ac_status=$?
8744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8745 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8746 case "$host_os" in
8747 # Handle native Windows specially, because there setlocale() interprets
8748 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
8749 # "fr" or "fra" as "French" or "French_France.1252",
8750 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
8751 # "ja" as "Japanese" or "Japanese_Japan.932",
8752 # and similar.
8753 mingw*)
8754 # Note that on native Windows, the Japanese locale is
8755 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
8756 # cannot use it here.
8757 gt_cv_locale_ja=none
8758 ;;
8759 *)
8760 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
8761 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
8762 # configure script would override the LC_ALL setting. Likewise for
8763 # LC_CTYPE, which is also set at the beginning of the configure script.
8764 # Test for the AIX locale name.
8765 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8766 gt_cv_locale_ja=ja_JP
8767 else
8768 # Test for the locale name with explicit encoding suffix.
8769 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8770 gt_cv_locale_ja=ja_JP.EUC-JP
8771 else
8772 # Test for the HP-UX, OSF/1, NetBSD locale name.
8773 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8774 gt_cv_locale_ja=ja_JP.eucJP
8775 else
8776 # Test for the IRIX, FreeBSD locale name.
8777 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8778 gt_cv_locale_ja=ja_JP.EUC
8779 else
8780 # Test for the Solaris 7 locale name.
8781 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8782 gt_cv_locale_ja=ja
8783 else
8784 # Special test for NetBSD 1.6.
8785 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
8786 gt_cv_locale_ja=ja_JP.eucJP
8787 else
8788 # None found.
8789 gt_cv_locale_ja=none
8790 fi
8791 fi
8792 fi
8793 fi
8794 fi
8795 fi
8796 ;;
8797 esac
8798 fi
8799 rm -fr conftest*
8800
8801fi
8802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
8803$as_echo "$gt_cv_locale_ja" >&6; }
8804 LOCALE_JA=$gt_cv_locale_ja
8805
8806
8807
8808
8809
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
8811$as_echo_n "checking for a transitional chinese locale... " >&6; }
8812if test "${gt_cv_locale_zh_CN+set}" = set; then :
8813 $as_echo_n "(cached) " >&6
8814else
8815
8816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8817/* end confdefs.h. */
8818
8819#include <locale.h>
8820#include <stdlib.h>
8821#include <time.h>
8822#if HAVE_LANGINFO_CODESET
8823# include <langinfo.h>
8824#endif
8825#include <stdlib.h>
8826#include <string.h>
8827struct tm t;
8828char buf[16];
8829int main ()
8830{
8831 const char *p;
8832 /* Check whether the given locale name is recognized by the system. */
8833#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
8834 /* On native Windows, setlocale(category, "") looks at the system settings,
8835 not at the environment variables. Also, when an encoding suffix such
8836 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
8837 category of the locale to "C". */
8838 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
8839 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
8840 return 1;
8841#else
8842 if (setlocale (LC_ALL, "") == NULL) return 1;
8843#endif
8844 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
8845 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
8846 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
8847 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
8848 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
8849 some unit tests fail.
8850 On MirBSD 10, when an unsupported locale is specified, setlocale()
8851 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
8852#if HAVE_LANGINFO_CODESET
8853 {
8854 const char *cs = nl_langinfo (CODESET);
8855 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
8856 || strcmp (cs, "UTF-8") == 0)
8857 return 1;
8858 }
8859#endif
8860#ifdef __CYGWIN__
8861 /* On Cygwin, avoid locale names without encoding suffix, because the
8862 locale_charset() function relies on the encoding suffix. Note that
8863 LC_ALL is set on the command line. */
8864 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
8865#endif
8866 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
8867 This excludes the UTF-8 encoding (except on MirBSD). */
8868 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
8869 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
8870 for (p = buf; *p != '\0'; p++)
8871 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
8872 return 1;
8873 /* Check whether a typical GB18030 multibyte sequence is recognized as a
8874 single wide character. This excludes the GB2312 and GBK encodings. */
8875 if (mblen ("\203\062\332\066", 5) != 4)
8876 return 1;
8877 return 0;
8878}
8879
8880_ACEOF
8881 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8882 (eval $ac_link) 2>&5
8883 ac_status=$?
8884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8885 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8886 case "$host_os" in
8887 # Handle native Windows specially, because there setlocale() interprets
8888 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
8889 # "fr" or "fra" as "French" or "French_France.1252",
8890 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
8891 # "ja" as "Japanese" or "Japanese_Japan.932",
8892 # and similar.
8893 mingw*)
8894 # Test for the hypothetical native Windows locale name.
8895 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8896 gt_cv_locale_zh_CN=Chinese_China.54936
8897 else
8898 # None found.
8899 gt_cv_locale_zh_CN=none
8900 fi
8901 ;;
8902 solaris2.8)
8903 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
8904 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
8905 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
8906 gt_cv_locale_zh_CN=none
8907 ;;
8908 *)
8909 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
8910 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
8911 # configure script would override the LC_ALL setting. Likewise for
8912 # LC_CTYPE, which is also set at the beginning of the configure script.
8913 # Test for the locale name without encoding suffix.
8914 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8915 gt_cv_locale_zh_CN=zh_CN
8916 else
8917 # Test for the locale name with explicit encoding suffix.
8918 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8919 gt_cv_locale_zh_CN=zh_CN.GB18030
8920 else
8921 # None found.
8922 gt_cv_locale_zh_CN=none
8923 fi
8924 fi
8925 ;;
8926 esac
8927 else
8928 # If there was a link error, due to mblen(), the system is so old that
8929 # it certainly doesn't have a chinese locale.
8930 gt_cv_locale_zh_CN=none
8931 fi
8932 rm -fr conftest*
8933
8934fi
8935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
8936$as_echo "$gt_cv_locale_zh_CN" >&6; }
8937 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
8938
8939
8940
8941
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
8943$as_echo_n "checking for a french Unicode locale... " >&6; }
8944if test "${gt_cv_locale_fr_utf8+set}" = set; then :
8945 $as_echo_n "(cached) " >&6
8946else
8947
8948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8949/* end confdefs.h. */
8950
8951#include <locale.h>
8952#include <time.h>
8953#if HAVE_LANGINFO_CODESET
8954# include <langinfo.h>
8955#endif
8956#include <stdlib.h>
8957#include <string.h>
8958struct tm t;
8959char buf[16];
8960int main () {
8961 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
8962 imitates locale dependent behaviour by looking at the environment
8963 variables, and all locales use the UTF-8 encoding. */
8964#if !(defined __BEOS__ || defined __HAIKU__)
8965 /* Check whether the given locale name is recognized by the system. */
8966# if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
8967 /* On native Windows, setlocale(category, "") looks at the system settings,
8968 not at the environment variables. Also, when an encoding suffix such
8969 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
8970 category of the locale to "C". */
8971 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
8972 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
8973 return 1;
8974# else
8975 if (setlocale (LC_ALL, "") == NULL) return 1;
8976# endif
8977 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
8978 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
8979 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
8980 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
8981 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
8982 some unit tests fail. */
8983# if HAVE_LANGINFO_CODESET
8984 {
8985 const char *cs = nl_langinfo (CODESET);
8986 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
8987 return 1;
8988 }
8989# endif
8990# ifdef __CYGWIN__
8991 /* On Cygwin, avoid locale names without encoding suffix, because the
8992 locale_charset() function relies on the encoding suffix. Note that
8993 LC_ALL is set on the command line. */
8994 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
8995# endif
8996 /* Check whether in the abbreviation of the second month, the second
8997 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
8998 two bytes long, with UTF-8 encoding. */
8999 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
9000 if (strftime (buf, sizeof (buf), "%b", &t) < 4
9001 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
9002 return 1;
9003#endif
9004#if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
9005 /* Check whether the decimal separator is a comma.
9006 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
9007 are nl_langinfo(RADIXCHAR) are both ".". */
9008 if (localeconv () ->decimal_point[0] != ',') return 1;
9009#endif
9010 return 0;
9011}
9012
9013_ACEOF
9014 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9015 (eval $ac_link) 2>&5
9016 ac_status=$?
9017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9018 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9019 case "$host_os" in
9020 # Handle native Windows specially, because there setlocale() interprets
9021 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
9022 # "fr" or "fra" as "French" or "French_France.1252",
9023 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
9024 # "ja" as "Japanese" or "Japanese_Japan.932",
9025 # and similar.
9026 mingw*)
9027 # Test for the hypothetical native Windows locale name.
9028 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9029 gt_cv_locale_fr_utf8=French_France.65001
9030 else
9031 # None found.
9032 gt_cv_locale_fr_utf8=none
9033 fi
9034 ;;
9035 *)
9036 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
9037 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
9038 # configure script would override the LC_ALL setting. Likewise for
9039 # LC_CTYPE, which is also set at the beginning of the configure script.
9040 # Test for the usual locale name.
9041 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9042 gt_cv_locale_fr_utf8=fr_FR
9043 else
9044 # Test for the locale name with explicit encoding suffix.
9045 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9046 gt_cv_locale_fr_utf8=fr_FR.UTF-8
9047 else
9048 # Test for the Solaris 7 locale name.
9049 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9050 gt_cv_locale_fr_utf8=fr.UTF-8
9051 else
9052 # None found.
9053 gt_cv_locale_fr_utf8=none
9054 fi
9055 fi
9056 fi
9057 ;;
9058 esac
9059 fi
9060 rm -fr conftest*
9061
9062fi
9063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
9064$as_echo "$gt_cv_locale_fr_utf8" >&6; }
9065 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
9066
9067
9068
9069
9070
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
9072$as_echo_n "checking for a traditional french locale... " >&6; }
9073if test "${gt_cv_locale_fr+set}" = set; then :
9074 $as_echo_n "(cached) " >&6
9075else
9076
9077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9078/* end confdefs.h. */
9079
9080#include <locale.h>
9081#include <time.h>
9082#if HAVE_LANGINFO_CODESET
9083# include <langinfo.h>
9084#endif
9085#include <stdlib.h>
9086#include <string.h>
9087struct tm t;
9088char buf[16];
9089int main () {
9090 /* Check whether the given locale name is recognized by the system. */
9091#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
9092 /* On native Windows, setlocale(category, "") looks at the system settings,
9093 not at the environment variables. Also, when an encoding suffix such
9094 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
9095 category of the locale to "C". */
9096 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
9097 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
9098 return 1;
9099#else
9100 if (setlocale (LC_ALL, "") == NULL) return 1;
9101#endif
9102 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
9103 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
9104 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
9105 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
9106 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
9107 some unit tests fail.
9108 On MirBSD 10, when an unsupported locale is specified, setlocale()
9109 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
9110#if HAVE_LANGINFO_CODESET
9111 {
9112 const char *cs = nl_langinfo (CODESET);
9113 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
9114 || strcmp (cs, "UTF-8") == 0)
9115 return 1;
9116 }
9117#endif
9118#ifdef __CYGWIN__
9119 /* On Cygwin, avoid locale names without encoding suffix, because the
9120 locale_charset() function relies on the encoding suffix. Note that
9121 LC_ALL is set on the command line. */
9122 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
9123#endif
9124 /* Check whether in the abbreviation of the second month, the second
9125 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
9126 one byte long. This excludes the UTF-8 encoding. */
9127 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
9128 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
9129#if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
9130 /* Check whether the decimal separator is a comma.
9131 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
9132 are nl_langinfo(RADIXCHAR) are both ".". */
9133 if (localeconv () ->decimal_point[0] != ',') return 1;
9134#endif
9135 return 0;
9136}
9137
9138_ACEOF
9139 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9140 (eval $ac_link) 2>&5
9141 ac_status=$?
9142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9143 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9144 case "$host_os" in
9145 # Handle native Windows specially, because there setlocale() interprets
9146 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
9147 # "fr" or "fra" as "French" or "French_France.1252",
9148 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
9149 # "ja" as "Japanese" or "Japanese_Japan.932",
9150 # and similar.
9151 mingw*)
9152 # Test for the native Windows locale name.
9153 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9154 gt_cv_locale_fr=French_France.1252
9155 else
9156 # None found.
9157 gt_cv_locale_fr=none
9158 fi
9159 ;;
9160 *)
9161 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
9162 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
9163 # configure script would override the LC_ALL setting. Likewise for
9164 # LC_CTYPE, which is also set at the beginning of the configure script.
9165 # Test for the usual locale name.
9166 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9167 gt_cv_locale_fr=fr_FR
9168 else
9169 # Test for the locale name with explicit encoding suffix.
9170 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9171 gt_cv_locale_fr=fr_FR.ISO-8859-1
9172 else
9173 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
9174 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9175 gt_cv_locale_fr=fr_FR.ISO8859-1
9176 else
9177 # Test for the HP-UX locale name.
9178 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9179 gt_cv_locale_fr=fr_FR.iso88591
9180 else
9181 # Test for the Solaris 7 locale name.
9182 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9183 gt_cv_locale_fr=fr
9184 else
9185 # None found.
9186 gt_cv_locale_fr=none
9187 fi
9188 fi
9189 fi
9190 fi
9191 fi
9192 ;;
9193 esac
9194 fi
9195 rm -fr conftest*
9196
9197fi
9198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
9199$as_echo "$gt_cv_locale_fr" >&6; }
9200 LOCALE_FR=$gt_cv_locale_fr
9201
9202
9203
9204
9205
9206
9207
8690e634
JK
9208 GNULIB_FFSL=0;
9209 GNULIB_FFSLL=0;
9210 GNULIB_MEMCHR=0;
9211 GNULIB_MEMMEM=0;
9212 GNULIB_MEMPCPY=0;
9213 GNULIB_MEMRCHR=0;
9214 GNULIB_RAWMEMCHR=0;
9215 GNULIB_STPCPY=0;
9216 GNULIB_STPNCPY=0;
9217 GNULIB_STRCHRNUL=0;
9218 GNULIB_STRDUP=0;
9219 GNULIB_STRNCAT=0;
9220 GNULIB_STRNDUP=0;
9221 GNULIB_STRNLEN=0;
9222 GNULIB_STRPBRK=0;
9223 GNULIB_STRSEP=0;
9224 GNULIB_STRSTR=0;
9225 GNULIB_STRCASESTR=0;
9226 GNULIB_STRTOK_R=0;
9227 GNULIB_MBSLEN=0;
9228 GNULIB_MBSNLEN=0;
9229 GNULIB_MBSCHR=0;
9230 GNULIB_MBSRCHR=0;
9231 GNULIB_MBSSTR=0;
9232 GNULIB_MBSCASECMP=0;
9233 GNULIB_MBSNCASECMP=0;
9234 GNULIB_MBSPCASECMP=0;
9235 GNULIB_MBSCASESTR=0;
9236 GNULIB_MBSCSPN=0;
9237 GNULIB_MBSPBRK=0;
9238 GNULIB_MBSSPN=0;
9239 GNULIB_MBSSEP=0;
9240 GNULIB_MBSTOK_R=0;
9241 GNULIB_STRERROR=0;
9242 GNULIB_STRERROR_R=0;
9243 GNULIB_STRSIGNAL=0;
9244 GNULIB_STRVERSCMP=0;
9245 HAVE_MBSLEN=0;
9246 HAVE_FFSL=1;
9247 HAVE_FFSLL=1;
9248 HAVE_MEMCHR=1;
9249 HAVE_DECL_MEMMEM=1;
9250 HAVE_MEMPCPY=1;
9251 HAVE_DECL_MEMRCHR=1;
9252 HAVE_RAWMEMCHR=1;
9253 HAVE_STPCPY=1;
9254 HAVE_STPNCPY=1;
9255 HAVE_STRCHRNUL=1;
9256 HAVE_DECL_STRDUP=1;
9257 HAVE_DECL_STRNDUP=1;
9258 HAVE_DECL_STRNLEN=1;
9259 HAVE_STRPBRK=1;
9260 HAVE_STRSEP=1;
9261 HAVE_STRCASESTR=1;
9262 HAVE_DECL_STRTOK_R=1;
9263 HAVE_DECL_STRERROR_R=1;
9264 HAVE_DECL_STRSIGNAL=1;
9265 HAVE_STRVERSCMP=1;
9266 REPLACE_MEMCHR=0;
9267 REPLACE_MEMMEM=0;
9268 REPLACE_STPNCPY=0;
9269 REPLACE_STRDUP=0;
9270 REPLACE_STRSTR=0;
9271 REPLACE_STRCASESTR=0;
9272 REPLACE_STRCHRNUL=0;
9273 REPLACE_STRERROR=0;
9274 REPLACE_STRERROR_R=0;
9275 REPLACE_STRNCAT=0;
9276 REPLACE_STRNDUP=0;
9277 REPLACE_STRNLEN=0;
9278 REPLACE_STRSIGNAL=0;
9279 REPLACE_STRTOK_R=0;
9280 UNDEFINE_STRTOK_R=0;
9281
9282
9283
9284
9285
9286 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
9287 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
9288 # irrelevant for anonymous mappings.
9289 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9290if test "x$ac_cv_func_mmap" = x""yes; then :
9291 gl_have_mmap=yes
9292else
9293 gl_have_mmap=no
9294fi
9295
9296
9297 # Try to allow MAP_ANONYMOUS.
9298 gl_have_mmap_anonymous=no
9299 if test $gl_have_mmap = yes; then
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
9301$as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
9302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9303/* end confdefs.h. */
9304
9305#include <sys/mman.h>
9306#ifdef MAP_ANONYMOUS
9307 I cannot identify this map
9308#endif
9309
9310_ACEOF
9311if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9312 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
9313 gl_have_mmap_anonymous=yes
9314fi
9315rm -f conftest*
9316
9317 if test $gl_have_mmap_anonymous != yes; then
9318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9319/* end confdefs.h. */
9320
9321#include <sys/mman.h>
9322#ifdef MAP_ANON
9323 I cannot identify this map
9324#endif
9325
9326_ACEOF
9327if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9328 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
9329
9330$as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
9331
9332 gl_have_mmap_anonymous=yes
9333fi
9334rm -f conftest*
9335
9336 fi
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
9338$as_echo "$gl_have_mmap_anonymous" >&6; }
9339 if test $gl_have_mmap_anonymous = yes; then
9340
9341$as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
9342
9343 fi
9344 fi
9345
9346
8690e634
JK
9347
9348
9349
9350
9351 if test $HAVE_MEMCHR = 1; then
9352 # Detect platform-specific bugs in some versions of glibc:
9353 # memchr should not dereference anything with length 0
9354 # http://bugzilla.redhat.com/499689
9355 # memchr should not dereference overestimated length after a match
9356 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
9357 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
9358 # Assume that memchr works on platforms that lack mprotect.
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
9360$as_echo_n "checking whether memchr works... " >&6; }
9361if test "${gl_cv_func_memchr_works+set}" = set; then :
9362 $as_echo_n "(cached) " >&6
9363else
9364 if test "$cross_compiling" = yes; then :
9365 gl_cv_func_memchr_works="guessing no"
9366else
9367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9368/* end confdefs.h. */
9369
9370#include <string.h>
9371#if HAVE_SYS_MMAN_H
9372# include <fcntl.h>
9373# include <unistd.h>
9374# include <sys/types.h>
9375# include <sys/mman.h>
9376# ifndef MAP_FILE
9377# define MAP_FILE 0
9378# endif
9379#endif
9380
9381int
9382main ()
9383{
9384
9385 int result = 0;
9386 char *fence = NULL;
9387#if HAVE_SYS_MMAN_H && HAVE_MPROTECT
9388# if HAVE_MAP_ANONYMOUS
9389 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
9390 const int fd = -1;
9391# else /* !HAVE_MAP_ANONYMOUS */
9392 const int flags = MAP_FILE | MAP_PRIVATE;
9393 int fd = open ("/dev/zero", O_RDONLY, 0666);
9394 if (fd >= 0)
9395# endif
9396 {
9397 int pagesize = getpagesize ();
9398 char *two_pages =
9399 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
9400 flags, fd, 0);
9401 if (two_pages != (char *)(-1)
9402 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
9403 fence = two_pages + pagesize;
9404 }
9405#endif
9406 if (fence)
9407 {
9408 if (memchr (fence, 0, 0))
9409 result |= 1;
9410 strcpy (fence - 9, "12345678");
9411 if (memchr (fence - 9, 0, 79) != fence - 1)
9412 result |= 2;
9413 if (memchr (fence - 1, 0, 3) != fence - 1)
9414 result |= 4;
9415 }
9416 return result;
9417
9418 ;
9419 return 0;
9420}
9421_ACEOF
9422if ac_fn_c_try_run "$LINENO"; then :
9423 gl_cv_func_memchr_works=yes
9424else
9425 gl_cv_func_memchr_works=no
9426fi
9427rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9428 conftest.$ac_objext conftest.beam conftest.$ac_ext
9429fi
9430
9431fi
9432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
9433$as_echo "$gl_cv_func_memchr_works" >&6; }
9434 if test "$gl_cv_func_memchr_works" != yes; then
9435 REPLACE_MEMCHR=1
9436 fi
9437 fi
9438
3574124b 9439ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
8690e634
JK
9440if test "x$ac_cv_have_decl_memmem" = x""yes; then :
9441 ac_have_decl=1
9442else
9443 ac_have_decl=0
9444fi
9445
9446cat >>confdefs.h <<_ACEOF
9447#define HAVE_DECL_MEMMEM $ac_have_decl
9448_ACEOF
9449
9450
9451
9452
9453
8690e634
JK
9454 for ac_func in memmem
9455do :
9456 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
9457if test "x$ac_cv_func_memmem" = x""yes; then :
9458 cat >>confdefs.h <<_ACEOF
9459#define HAVE_MEMMEM 1
9460_ACEOF
9461
9462fi
9463done
9464
9465 if test $ac_cv_func_memmem = yes; then
9466 HAVE_MEMMEM=1
9467 else
9468 HAVE_MEMMEM=0
9469 fi
9470
8690e634
JK
9471 if test $ac_cv_have_decl_memmem = no; then
9472 HAVE_DECL_MEMMEM=0
9473 else
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
9475$as_echo_n "checking whether memmem works... " >&6; }
9476if test "${gl_cv_func_memmem_works_always+set}" = set; then :
9477 $as_echo_n "(cached) " >&6
9478else
9479 if test "$cross_compiling" = yes; then :
9480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9481/* end confdefs.h. */
9482
9483#ifdef __GNU_LIBRARY__
9484 #include <features.h>
9485 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
9486 || __GLIBC_MINOR__ > 12)) \
9487 || (__GLIBC__ > 2)) \
9488 || defined __UCLIBC__
9489 Lucky user
9490 #endif
9491#elif defined __CYGWIN__
9492 #include <cygwin/version.h>
9493 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
9494 Lucky user
9495 #endif
9496#else
9497 Lucky user
9498#endif
9499
9500_ACEOF
9501if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9502 $EGREP "Lucky user" >/dev/null 2>&1; then :
9503 gl_cv_func_memmem_works_always="guessing yes"
9504else
9505 gl_cv_func_memmem_works_always="guessing no"
9506fi
9507rm -f conftest*
9508
9509
9510else
9511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9512/* end confdefs.h. */
9513
9514#include <string.h> /* for memmem */
9515#define P "_EF_BF_BD"
9516#define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
9517#define NEEDLE P P P P P
9518
9519int
9520main ()
9521{
9522
9523 int result = 0;
9524 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
9525 result |= 1;
9526 /* Check for empty needle behavior. */
9527 {
9528 const char *haystack = "AAA";
9529 if (memmem (haystack, 3, NULL, 0) != haystack)
9530 result |= 2;
9531 }
9532 return result;
9533
9534 ;
9535 return 0;
9536}
9537_ACEOF
9538if ac_fn_c_try_run "$LINENO"; then :
9539 gl_cv_func_memmem_works_always=yes
9540else
9541 gl_cv_func_memmem_works_always=no
9542fi
9543rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9544 conftest.$ac_objext conftest.beam conftest.$ac_ext
9545fi
9546
9547
9548fi
9549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
9550$as_echo "$gl_cv_func_memmem_works_always" >&6; }
9551 case "$gl_cv_func_memmem_works_always" in
9552 *yes) ;;
9553 *)
9554 REPLACE_MEMMEM=1
9555 ;;
9556 esac
9557 fi
9558 :
9559
38ec2207
PA
9560
9561
8690e634
JK
9562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
9563$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
9564if test "${ac_cv_header_stdbool_h+set}" = set; then :
9565 $as_echo_n "(cached) " >&6
9566else
9567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9568/* end confdefs.h. */
9569
9570 #include <stdbool.h>
9571 #ifndef bool
9572 "error: bool is not defined"
9573 #endif
9574 #ifndef false
9575 "error: false is not defined"
9576 #endif
9577 #if false
9578 "error: false is not 0"
9579 #endif
9580 #ifndef true
9581 "error: true is not defined"
9582 #endif
9583 #if true != 1
9584 "error: true is not 1"
9585 #endif
9586 #ifndef __bool_true_false_are_defined
9587 "error: __bool_true_false_are_defined is not defined"
9588 #endif
9589
9590 struct s { _Bool s: 1; _Bool t; } s;
9591
9592 char a[true == 1 ? 1 : -1];
9593 char b[false == 0 ? 1 : -1];
9594 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
9595 char d[(bool) 0.5 == true ? 1 : -1];
9596 /* See body of main program for 'e'. */
9597 char f[(_Bool) 0.0 == false ? 1 : -1];
9598 char g[true];
9599 char h[sizeof (_Bool)];
9600 char i[sizeof s.t];
9601 enum { j = false, k = true, l = false * true, m = true * 256 };
9602 /* The following fails for
9603 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
9604 _Bool n[m];
9605 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
9606 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
9607 /* Catch a bug in an HP-UX C compiler. See
9608 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
9609 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
9610 */
9611 _Bool q = true;
9612 _Bool *pq = &q;
9613
9614int
9615main ()
9616{
9617
9618 bool e = &s;
9619 *pq |= q;
9620 *pq |= ! q;
9621 /* Refer to every declared value, to avoid compiler optimizations. */
9622 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
9623 + !m + !n + !o + !p + !q + !pq);
9624
9625 ;
9626 return 0;
9627}
9628_ACEOF
9629if ac_fn_c_try_compile "$LINENO"; then :
9630 ac_cv_header_stdbool_h=yes
9631else
9632 ac_cv_header_stdbool_h=no
9633fi
9634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9635fi
9636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
9637$as_echo "$ac_cv_header_stdbool_h" >&6; }
9638 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
9639if test "x$ac_cv_type__Bool" = x""yes; then :
9640
9641cat >>confdefs.h <<_ACEOF
9642#define HAVE__BOOL 1
9643_ACEOF
9644
9645
9646fi
9647
9648
9649
9650 REPLACE_NULL=0;
9651 HAVE_WCHAR_T=1;
9652
9653
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9655$as_echo_n "checking for wchar_t... " >&6; }
9656if test "${gt_cv_c_wchar_t+set}" = set; then :
9657 $as_echo_n "(cached) " >&6
9658else
9659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9660/* end confdefs.h. */
9661#include <stddef.h>
9662 wchar_t foo = (wchar_t)'\0';
9663int
9664main ()
9665{
9666
9667 ;
9668 return 0;
9669}
9670_ACEOF
9671if ac_fn_c_try_compile "$LINENO"; then :
9672 gt_cv_c_wchar_t=yes
9673else
9674 gt_cv_c_wchar_t=no
9675fi
9676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9677fi
9678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9679$as_echo "$gt_cv_c_wchar_t" >&6; }
9680 if test $gt_cv_c_wchar_t = yes; then
9681
9682$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
9683
9684 fi
9685
63ce7108
TT
9686
9687 REPLACE_STRERROR_0=0
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
9689$as_echo_n "checking whether strerror(0) succeeds... " >&6; }
9690if test "${gl_cv_func_strerror_0_works+set}" = set; then :
8690e634
JK
9691 $as_echo_n "(cached) " >&6
9692else
63ce7108
TT
9693 if test "$cross_compiling" = yes; then :
9694 case "$host_os" in
9695 # Guess yes on glibc systems.
9696 *-gnu*) gl_cv_func_strerror_0_works="guessing yes" ;;
9697 # If we don't know, assume the worst.
9698 *) gl_cv_func_strerror_0_works="guessing no" ;;
9699 esac
9700
9701else
9702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690e634 9703/* end confdefs.h. */
63ce7108
TT
9704#include <string.h>
9705 #include <errno.h>
9706
8690e634
JK
9707int
9708main ()
9709{
63ce7108
TT
9710int result = 0;
9711 char *str;
9712 errno = 0;
9713 str = strerror (0);
9714 if (!*str) result |= 1;
9715 if (errno) result |= 2;
9716 if (strstr (str, "nknown") || strstr (str, "ndefined"))
9717 result |= 4;
9718 return result;
8690e634
JK
9719 ;
9720 return 0;
9721}
9722_ACEOF
63ce7108
TT
9723if ac_fn_c_try_run "$LINENO"; then :
9724 gl_cv_func_strerror_0_works=yes
9725else
9726 gl_cv_func_strerror_0_works=no
8690e634 9727fi
63ce7108
TT
9728rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9729 conftest.$ac_objext conftest.beam conftest.$ac_ext
8690e634 9730fi
63ce7108
TT
9731
9732
9733fi
9734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
9735$as_echo "$gl_cv_func_strerror_0_works" >&6; }
9736 case "$gl_cv_func_strerror_0_works" in
9737 *yes) ;;
9738 *)
9739 REPLACE_STRERROR_0=1
9740
9741$as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
9742
9743 ;;
9744 esac
9745
9746
63ce7108
TT
9747
9748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
9749$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
9750if test "${ac_cv_c_restrict+set}" = set; then :
9751 $as_echo_n "(cached) " >&6
9752else
9753 ac_cv_c_restrict=no
9754 # The order here caters to the fact that C++ does not require restrict.
9755 for ac_kw in __restrict __restrict__ _Restrict restrict; do
9756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9757/* end confdefs.h. */
9758typedef int * int_ptr;
9759 int foo (int_ptr $ac_kw ip) {
9760 return ip[0];
9761 }
9762int
9763main ()
9764{
9765int s[1];
9766 int * $ac_kw t = s;
9767 t[0] = 0;
9768 return foo(t)
9769 ;
9770 return 0;
9771}
9772_ACEOF
9773if ac_fn_c_try_compile "$LINENO"; then :
9774 ac_cv_c_restrict=$ac_kw
9775fi
9776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9777 test "$ac_cv_c_restrict" != no && break
9778 done
9779
9780fi
9781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
9782$as_echo "$ac_cv_c_restrict" >&6; }
9783
9784 case $ac_cv_c_restrict in
9785 restrict) ;;
9786 no) $as_echo "#define restrict /**/" >>confdefs.h
9787 ;;
9788 *) cat >>confdefs.h <<_ACEOF
9789#define restrict $ac_cv_c_restrict
9790_ACEOF
9791 ;;
9792 esac
9793
9794
9795
9796
9797
8690e634
JK
9798
9799
9800
9801
9802
9803
9804
9805 if test $gl_cv_have_include_next = yes; then
9806 gl_cv_next_string_h='<'string.h'>'
9807 else
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
9809$as_echo_n "checking absolute name of <string.h>... " >&6; }
9810if test "${gl_cv_next_string_h+set}" = set; then :
9811 $as_echo_n "(cached) " >&6
9812else
9813
9814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9815/* end confdefs.h. */
9816#include <string.h>
9817
9818_ACEOF
9819 case "$host_os" in
9820 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9821 *) gl_absname_cpp="$ac_cpp" ;;
9822 esac
9823
9824 case "$host_os" in
c971b7fa
PA
9825 mingw*)
9826 gl_dirsep_regex='[/\\]'
9827 ;;
9828 *)
9829 gl_dirsep_regex='\/'
9830 ;;
9831 esac
9832 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9833
8690e634
JK
9834 gl_header_literal_regex=`echo 'string.h' \
9835 | sed -e "$gl_make_literal_regex_sed"`
9836 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9837 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9838 s|^/[^/]|//&|
9839 p
9840 q
9841 }'
9842 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9843 sed -n "$gl_absolute_header_sed"`'"'
9844
9845
9846fi
9847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
9848$as_echo "$gl_cv_next_string_h" >&6; }
9849 fi
9850 NEXT_STRING_H=$gl_cv_next_string_h
9851
9852 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9853 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9854 gl_next_as_first_directive='<'string.h'>'
9855 else
9856 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9857 gl_next_as_first_directive=$gl_cv_next_string_h
9858 fi
9859 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
9860
9861
9862
9863
9864
9865
9866 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
9867 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
9868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
9869$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
9870if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
9871 $as_echo_n "(cached) " >&6
9872else
9873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9874/* end confdefs.h. */
9875#include <string.h>
9876
9877int
9878main ()
9879{
9880#undef $gl_func
9881 (void) $gl_func;
9882 ;
9883 return 0;
9884}
9885_ACEOF
9886if ac_fn_c_try_compile "$LINENO"; then :
9887 eval "$as_gl_Symbol=yes"
9888else
9889 eval "$as_gl_Symbol=no"
9890fi
9891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9892fi
9893eval ac_res=\$$as_gl_Symbol
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9895$as_echo "$ac_res" >&6; }
9896 eval as_val=\$$as_gl_Symbol
9897 if test "x$as_val" = x""yes; then :
9898 cat >>confdefs.h <<_ACEOF
9899#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
9900_ACEOF
9901
9902 eval ac_cv_have_decl_$gl_func=yes
9903fi
9904 done
9905
9906
9907
8839a007 9908
63ce7108
TT
9909
9910 if test "$gl_cv_func_memchr_works" != yes; then
9911 REPLACE_STRSTR=1
9912 else
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
9914$as_echo_n "checking whether strstr works... " >&6; }
9915if test "${gl_cv_func_strstr_works_always+set}" = set; then :
9916 $as_echo_n "(cached) " >&6
9917else
9918 if test "$cross_compiling" = yes; then :
9919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9920/* end confdefs.h. */
9921
9922#ifdef __GNU_LIBRARY__
9923 #include <features.h>
9924 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
9925 || defined __UCLIBC__
9926 Lucky user
9927 #endif
9928#elif defined __CYGWIN__
9929 #include <cygwin/version.h>
9930 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
9931 Lucky user
9932 #endif
9933#else
9934 Lucky user
9935#endif
9936
9937_ACEOF
9938if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9939 $EGREP "Lucky user" >/dev/null 2>&1; then :
9940 gl_cv_func_strstr_works_always="guessing yes"
9941else
9942 gl_cv_func_strstr_works_always="guessing no"
9943fi
9944rm -f conftest*
9945
9946
9947else
9948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9949/* end confdefs.h. */
9950
9951#include <string.h> /* for strstr */
9952#define P "_EF_BF_BD"
9953#define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
9954#define NEEDLE P P P P P
9955
9956int
9957main ()
9958{
9959return !!strstr (HAYSTACK, NEEDLE);
9960
9961 ;
9962 return 0;
9963}
9964_ACEOF
9965if ac_fn_c_try_run "$LINENO"; then :
9966 gl_cv_func_strstr_works_always=yes
9967else
9968 gl_cv_func_strstr_works_always=no
9969fi
9970rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9971 conftest.$ac_objext conftest.beam conftest.$ac_ext
9972fi
9973
9974
9975fi
9976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
9977$as_echo "$gl_cv_func_strstr_works_always" >&6; }
9978 case "$gl_cv_func_strstr_works_always" in
9979 *yes) ;;
9980 *)
9981 REPLACE_STRSTR=1
9982 ;;
9983 esac
9984 fi
9985
9986
9987
8839a007
PA
9988ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9989if test "x$ac_cv_type_pid_t" = x""yes; then :
9990
9991else
9992
9993cat >>confdefs.h <<_ACEOF
9994#define pid_t int
9995_ACEOF
9996
9997fi
9998
9999ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
10000if test "x$ac_cv_type_mode_t" = x""yes; then :
10001
10002else
10003
10004cat >>confdefs.h <<_ACEOF
10005#define mode_t int
10006_ACEOF
10007
10008fi
10009
10010
10011
10012 WINDOWS_64_BIT_OFF_T=0
10013
10014
10015
10016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
10017$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
10018if test -z "$MKDIR_P"; then
10019 if test "${ac_cv_path_mkdir+set}" = set; then :
10020 $as_echo_n "(cached) " >&6
10021else
10022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10023for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
10024do
10025 IFS=$as_save_IFS
10026 test -z "$as_dir" && as_dir=.
10027 for ac_prog in mkdir gmkdir; do
10028 for ac_exec_ext in '' $ac_executable_extensions; do
10029 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
10030 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
10031 'mkdir (GNU coreutils) '* | \
10032 'mkdir (coreutils) '* | \
10033 'mkdir (fileutils) '4.1*)
10034 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
10035 break 3;;
10036 esac
10037 done
10038 done
10039 done
10040IFS=$as_save_IFS
10041
10042fi
10043
10044 if test "${ac_cv_path_mkdir+set}" = set; then
10045 MKDIR_P="$ac_cv_path_mkdir -p"
10046 else
10047 # As a last resort, use the slow shell script. Don't cache a
10048 # value for MKDIR_P within a source directory, because that will
10049 # break other packages using the cache if that directory is
10050 # removed, or if the value is a relative name.
10051 test -d ./--version && rmdir ./--version
10052 MKDIR_P="$ac_install_sh -d"
10053 fi
10054fi
10055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
10056$as_echo "$MKDIR_P" >&6; }
10057
10058
8690e634
JK
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
10060$as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
10061if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
10062 $as_echo_n "(cached) " >&6
10063else
10064 gl_cv_header_wchar_h_correct_inline=yes
10065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10066/* end confdefs.h. */
10067
10068 #define wcstod renamed_wcstod
10069/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
10070 <wchar.h>.
10071 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10072 included before <wchar.h>. */
10073#include <stddef.h>
10074#include <stdio.h>
10075#include <time.h>
10076#include <wchar.h>
10077extern int zero (void);
10078int main () { return zero(); }
10079
10080_ACEOF
10081 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10082 (eval $ac_compile) 2>&5
10083 ac_status=$?
10084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10085 test $ac_status = 0; }; then
10086 mv conftest.$ac_objext conftest1.$ac_objext
10087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10088/* end confdefs.h. */
10089
10090 #define wcstod renamed_wcstod
10091/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
10092 <wchar.h>.
10093 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10094 included before <wchar.h>. */
10095#include <stddef.h>
10096#include <stdio.h>
10097#include <time.h>
10098#include <wchar.h>
10099int zero (void) { return 0; }
10100
10101_ACEOF
10102 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10103 (eval $ac_compile) 2>&5
10104 ac_status=$?
10105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10106 test $ac_status = 0; }; then
10107 mv conftest.$ac_objext conftest2.$ac_objext
10108 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
10109 :
10110 else
10111 gl_cv_header_wchar_h_correct_inline=no
10112 fi
10113 fi
10114 fi
10115 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
10116
10117fi
10118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
10119$as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
10120 if test $gl_cv_header_wchar_h_correct_inline = no; then
10121 as_fn_error "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
10122This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
10123C99 mode. You have four options:
10124 - Add the flag -fgnu89-inline to CC and reconfigure, or
10125 - Fix your include files, using parts of
10126 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
10127 - Use a gcc version older than 4.3, or
10128 - Don't use the flags -std=c99 or -std=gnu99.
10129Configuration aborted." "$LINENO" 5
10130 fi
10131
10132
10133
10134
10135
8690e634
JK
10136 if test $ac_cv_header_features_h = yes; then
10137 HAVE_FEATURES_H=1
10138 else
10139 HAVE_FEATURES_H=0
10140 fi
10141
10142
10143
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
10145$as_echo_n "checking for wint_t... " >&6; }
10146if test "${gt_cv_c_wint_t+set}" = set; then :
10147 $as_echo_n "(cached) " >&6
10148else
10149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10150/* end confdefs.h. */
10151
10152/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
10153 <wchar.h>.
10154 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
10155 before <wchar.h>. */
10156#include <stddef.h>
10157#include <stdio.h>
10158#include <time.h>
10159#include <wchar.h>
10160 wint_t foo = (wchar_t)'\0';
10161int
10162main ()
10163{
10164
10165 ;
10166 return 0;
10167}
10168_ACEOF
10169if ac_fn_c_try_compile "$LINENO"; then :
10170 gt_cv_c_wint_t=yes
10171else
10172 gt_cv_c_wint_t=no
10173fi
10174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10175fi
10176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
10177$as_echo "$gt_cv_c_wint_t" >&6; }
10178 if test $gt_cv_c_wint_t = yes; then
10179
10180$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
10181
10182 fi
10183
10184
10185 GNULIB_ISWBLANK=0;
10186 GNULIB_WCTYPE=0;
10187 GNULIB_ISWCTYPE=0;
10188 GNULIB_WCTRANS=0;
10189 GNULIB_TOWCTRANS=0;
10190 HAVE_ISWBLANK=1;
10191 HAVE_WCTYPE_T=1;
10192 HAVE_WCTRANS_T=1;
10193 REPLACE_ISWBLANK=0;
10194
10195
10196
10197
8690e634
JK
10198 if false; then
10199 GL_COND_LIBTOOL_TRUE=
10200 GL_COND_LIBTOOL_FALSE='#'
10201else
10202 GL_COND_LIBTOOL_TRUE='#'
10203 GL_COND_LIBTOOL_FALSE=
10204fi
10205
10206 gl_cond_libtool=false
10207 gl_libdeps=
10208 gl_ltlibdeps=
10209 gl_m4_base='import/m4'
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219 gl_source_base='import'
10220
10221
10222 if test $ac_cv_func_alloca_works = no; then
10223 :
10224 fi
10225
10226 # Define an additional variable used in the Makefile substitution.
10227 if test $ac_cv_working_alloca_h = yes; then
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
10229$as_echo_n "checking for alloca as a compiler built-in... " >&6; }
10230if test "${gl_cv_rpl_alloca+set}" = set; then :
10231 $as_echo_n "(cached) " >&6
10232else
10233
10234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10235/* end confdefs.h. */
10236
10237#if defined __GNUC__ || defined _AIX || defined _MSC_VER
10238 Need own alloca
10239#endif
10240
10241_ACEOF
10242if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10243 $EGREP "Need own alloca" >/dev/null 2>&1; then :
10244 gl_cv_rpl_alloca=yes
10245else
10246 gl_cv_rpl_alloca=no
10247fi
10248rm -f conftest*
10249
10250
10251fi
10252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
10253$as_echo "$gl_cv_rpl_alloca" >&6; }
10254 if test $gl_cv_rpl_alloca = yes; then
10255
10256$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
10257
10258 ALLOCA_H=alloca.h
10259 else
10260 ALLOCA_H=
10261 fi
10262 else
10263 ALLOCA_H=alloca.h
10264 fi
10265
10266 if test -n "$ALLOCA_H"; then
10267 GL_GENERATE_ALLOCA_H_TRUE=
10268 GL_GENERATE_ALLOCA_H_FALSE='#'
10269else
10270 GL_GENERATE_ALLOCA_H_TRUE='#'
10271 GL_GENERATE_ALLOCA_H_FALSE=
10272fi
10273
10274
10275
10276 if test "x$datarootdir" = x; then
10277 datarootdir='${datadir}'
10278
10279 fi
10280 if test "x$docdir" = x; then
10281 docdir='${datarootdir}/doc/${PACKAGE}'
10282
10283 fi
10284 if test "x$htmldir" = x; then
10285 htmldir='${docdir}'
10286
10287 fi
10288 if test "x$dvidir" = x; then
10289 dvidir='${docdir}'
10290
10291 fi
10292 if test "x$pdfdir" = x; then
10293 pdfdir='${docdir}'
10294
10295 fi
10296 if test "x$psdir" = x; then
10297 psdir='${docdir}'
10298
10299 fi
10300 if test "x$lispdir" = x; then
10301 lispdir='${datarootdir}/emacs/site-lisp'
10302
10303 fi
10304 if test "x$localedir" = x; then
10305 localedir='${datarootdir}/locale'
10306
10307 fi
10308
10309 pkglibexecdir='${libexecdir}/${PACKAGE}'
10310
10311
10312
10313
10314
10315
63ce7108 10316
e26b6bb0
TT
10317
10318
10319
10320
10321
10322
10323
10324 if test $gl_cv_have_include_next = yes; then
10325 gl_cv_next_dirent_h='<'dirent.h'>'
10326 else
10327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
10328$as_echo_n "checking absolute name of <dirent.h>... " >&6; }
10329if test "${gl_cv_next_dirent_h+set}" = set; then :
10330 $as_echo_n "(cached) " >&6
10331else
10332
10333 if test $ac_cv_header_dirent_h = yes; then
10334
10335
10336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10337/* end confdefs.h. */
10338#include <dirent.h>
10339
10340_ACEOF
10341 case "$host_os" in
10342 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10343 *) gl_absname_cpp="$ac_cpp" ;;
10344 esac
10345
10346 case "$host_os" in
10347 mingw*)
10348 gl_dirsep_regex='[/\\]'
10349 ;;
10350 *)
10351 gl_dirsep_regex='\/'
10352 ;;
10353 esac
10354 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10355
10356 gl_header_literal_regex=`echo 'dirent.h' \
10357 | sed -e "$gl_make_literal_regex_sed"`
10358 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10359 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10360 s|^/[^/]|//&|
10361 p
10362 q
10363 }'
10364 gl_cv_next_dirent_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10365 sed -n "$gl_absolute_header_sed"`'"'
10366 else
10367 gl_cv_next_dirent_h='<'dirent.h'>'
10368 fi
10369
10370
10371fi
10372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
10373$as_echo "$gl_cv_next_dirent_h" >&6; }
10374 fi
10375 NEXT_DIRENT_H=$gl_cv_next_dirent_h
10376
10377 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10378 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10379 gl_next_as_first_directive='<'dirent.h'>'
10380 else
10381 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10382 gl_next_as_first_directive=$gl_cv_next_dirent_h
10383 fi
10384 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H=$gl_next_as_first_directive
10385
10386
10387
10388
10389 if test $ac_cv_header_dirent_h = yes; then
10390 HAVE_DIRENT_H=1
10391 else
10392 HAVE_DIRENT_H=0
10393 fi
10394
10395
10396
10397 for gl_func in alphasort closedir dirfd fdopendir opendir readdir rewinddir scandir; do
10398 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
10400$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
10401if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
10402 $as_echo_n "(cached) " >&6
10403else
10404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10405/* end confdefs.h. */
10406#include <dirent.h>
10407
10408int
10409main ()
10410{
10411#undef $gl_func
10412 (void) $gl_func;
10413 ;
10414 return 0;
10415}
10416_ACEOF
10417if ac_fn_c_try_compile "$LINENO"; then :
10418 eval "$as_gl_Symbol=yes"
10419else
10420 eval "$as_gl_Symbol=no"
10421fi
10422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10423fi
10424eval ac_res=\$$as_gl_Symbol
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10426$as_echo "$ac_res" >&6; }
10427 eval as_val=\$$as_gl_Symbol
10428 if test "x$as_val" = x""yes; then :
10429 cat >>confdefs.h <<_ACEOF
10430#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
10431_ACEOF
10432
10433 eval ac_cv_have_decl_$gl_func=yes
10434fi
10435 done
10436
10437
10438
10439
10440
10441
10442
88b48903
WN
10443 FLOAT_H=
10444 REPLACE_FLOAT_LDBL=0
10445 case "$host_os" in
10446 aix* | beos* | openbsd* | mirbsd* | irix*)
10447 FLOAT_H=float.h
10448 ;;
10449 freebsd*)
10450 case "$host_cpu" in
10451 i[34567]86 )
10452 FLOAT_H=float.h
10453 ;;
10454 x86_64 )
10455 # On x86_64 systems, the C compiler may still be generating
10456 # 32-bit code.
10457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10458/* end confdefs.h. */
10459#if defined __LP64__ || defined __x86_64__ || defined __amd64__
10460 yes
10461 #endif
10462_ACEOF
10463if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10464 $EGREP "yes" >/dev/null 2>&1; then :
10465
10466else
10467 FLOAT_H=float.h
10468fi
10469rm -f conftest*
8690e634 10470
88b48903
WN
10471 ;;
10472 esac
10473 ;;
10474 linux*)
10475 case "$host_cpu" in
10476 powerpc*)
10477 FLOAT_H=float.h
10478 ;;
10479 esac
10480 ;;
10481 esac
10482 case "$host_os" in
10483 aix* | freebsd* | linux*)
10484 if test -n "$FLOAT_H"; then
10485 REPLACE_FLOAT_LDBL=1
10486 fi
10487 ;;
10488 esac
a512b375 10489
88b48903
WN
10490 REPLACE_ITOLD=0
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
10492$as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
10493if test "${gl_cv_func_itold_works+set}" = set; then :
8690e634
JK
10494 $as_echo_n "(cached) " >&6
10495else
88b48903
WN
10496
10497 if test "$cross_compiling" = yes; then :
10498 case "$host" in
10499 sparc*-*-linux*)
10500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10501/* end confdefs.h. */
10502#if defined __LP64__ || defined __arch64__
10503 yes
10504 #endif
10505_ACEOF
10506if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10507 $EGREP "yes" >/dev/null 2>&1; then :
10508 gl_cv_func_itold_works="guessing no"
10509else
10510 gl_cv_func_itold_works="guessing yes"
10511fi
10512rm -f conftest*
10513
10514 ;;
10515 *) gl_cv_func_itold_works="guessing yes" ;;
10516 esac
10517
8690e634
JK
10518else
10519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10520/* end confdefs.h. */
8690e634 10521
88b48903
WN
10522int i = -1;
10523volatile long double ld;
10524int main ()
8690e634 10525{
88b48903
WN
10526 ld += i * 1.0L;
10527 if (ld > 0)
10528 return 1;
10529 return 0;
10530}
10531_ACEOF
10532if ac_fn_c_try_run "$LINENO"; then :
10533 gl_cv_func_itold_works=yes
10534else
10535 gl_cv_func_itold_works=no
10536fi
10537rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10538 conftest.$ac_objext conftest.beam conftest.$ac_ext
10539fi
10540
10541
10542fi
10543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
10544$as_echo "$gl_cv_func_itold_works" >&6; }
10545 case "$gl_cv_func_itold_works" in
10546 *no)
10547 REPLACE_ITOLD=1
10548 FLOAT_H=float.h
10549 ;;
10550 esac
10551
10552 if test -n "$FLOAT_H"; then
10553
10554
10555
10556
10557
10558
10559
10560
10561 if test $gl_cv_have_include_next = yes; then
10562 gl_cv_next_float_h='<'float.h'>'
10563 else
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
10565$as_echo_n "checking absolute name of <float.h>... " >&6; }
10566if test "${gl_cv_next_float_h+set}" = set; then :
10567 $as_echo_n "(cached) " >&6
10568else
10569
10570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10571/* end confdefs.h. */
10572#include <float.h>
10573
10574_ACEOF
10575 case "$host_os" in
10576 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10577 *) gl_absname_cpp="$ac_cpp" ;;
10578 esac
10579
10580 case "$host_os" in
10581 mingw*)
10582 gl_dirsep_regex='[/\\]'
10583 ;;
10584 *)
10585 gl_dirsep_regex='\/'
10586 ;;
10587 esac
10588 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10589
10590 gl_header_literal_regex=`echo 'float.h' \
10591 | sed -e "$gl_make_literal_regex_sed"`
10592 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10593 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10594 s|^/[^/]|//&|
10595 p
10596 q
10597 }'
10598 gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10599 sed -n "$gl_absolute_header_sed"`'"'
10600
10601
10602fi
10603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
10604$as_echo "$gl_cv_next_float_h" >&6; }
10605 fi
10606 NEXT_FLOAT_H=$gl_cv_next_float_h
10607
10608 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10609 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10610 gl_next_as_first_directive='<'float.h'>'
10611 else
10612 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10613 gl_next_as_first_directive=$gl_cv_next_float_h
10614 fi
10615 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
10616
10617
10618
10619
10620 fi
10621
10622 if test -n "$FLOAT_H"; then
10623 GL_GENERATE_FLOAT_H_TRUE=
10624 GL_GENERATE_FLOAT_H_FALSE='#'
10625else
10626 GL_GENERATE_FLOAT_H_TRUE='#'
10627 GL_GENERATE_FLOAT_H_FALSE=
10628fi
10629
10630
10631
10632 if test $REPLACE_FLOAT_LDBL = 1; then
10633
10634
10635
10636
10637
10638
10639
10640
10641 gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
10642
10643 fi
10644 if test $REPLACE_ITOLD = 1; then
10645
10646
10647
10648
10649
10650
10651
10652
10653 gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
10654
10655 fi
10656
10657
10658
10659
10660
10661 FNMATCH_H=
10662 gl_fnmatch_required_lowercase=`
10663 echo $gl_fnmatch_required | LC_ALL=C tr '[A-Z]' '[a-z]'
10664 `
10665 gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
10667$as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
10668if { as_var=$gl_fnmatch_cache_var; eval "test \"\${$as_var+set}\" = set"; }; then :
10669 $as_echo_n "(cached) " >&6
10670else
10671 if test $gl_fnmatch_required = GNU; then
10672 gl_fnmatch_gnu_start=
10673 gl_fnmatch_gnu_end=
10674 else
10675 gl_fnmatch_gnu_start='#if 0'
10676 gl_fnmatch_gnu_end='#endif'
10677 fi
10678 if test "$cross_compiling" = yes; then :
10679 eval "$gl_fnmatch_cache_var=\"guessing no\""
10680else
10681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10682/* end confdefs.h. */
10683#include <fnmatch.h>
10684 static int
10685 y (char const *pattern, char const *string, int flags)
10686 {
10687 return fnmatch (pattern, string, flags) == 0;
10688 }
10689 static int
10690 n (char const *pattern, char const *string, int flags)
10691 {
10692 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
10693 }
10694
10695int
10696main ()
10697{
10698char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
10699 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
10700 static char const A_1[] = { 'A' - 1, 0 };
10701 static char const A01[] = { 'A' + 1, 0 };
10702 static char const a_1[] = { 'a' - 1, 0 };
10703 static char const a01[] = { 'a' + 1, 0 };
10704 static char const bs_1[] = { '\\\\' - 1, 0 };
8690e634
JK
10705 static char const bs01[] = { '\\\\' + 1, 0 };
10706 int result = 0;
10707 if (!n ("a*", "", 0))
10708 return 1;
10709 if (!y ("a*", "abc", 0))
10710 return 1;
10711 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
10712 return 1;
10713 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
10714 return 2;
10715 if (!y ("a\\\\bc", "abc", 0))
10716 return 3;
10717 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
10718 return 3;
10719 if (!y ("*x", ".x", 0))
10720 return 4;
10721 if (!n ("*x", ".x", FNM_PERIOD))
10722 return 4;
10723 if (!y (Apat, "\\\\", 0))
10724 return 5;
10725 if (!y (Apat, "A", 0))
10726 return 5;
10727 if (!y (apat, "\\\\", 0))
10728 return 5;
10729 if (!y (apat, "a", 0))
10730 return 5;
10731 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
10732 return 5;
10733 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
10734 return 5;
10735 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
10736 return 5;
10737 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
10738 return 5;
10739 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
10740 return 5;
10741 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
10742 return 5;
10743 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
10744 return 5;
10745 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
10746 return 5;
10747 $gl_fnmatch_gnu_start
10748 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
10749 result |= 8;
10750 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
10751 result |= 16;
10752 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
10753 result |= 32;
10754 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
10755 result |= 64;
10756 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
10757 result |= 64;
10758 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
10759 result |= 64;
10760 $gl_fnmatch_gnu_end
10761 return result;
10762
10763 ;
10764 return 0;
10765}
10766_ACEOF
10767if ac_fn_c_try_run "$LINENO"; then :
10768 eval "$gl_fnmatch_cache_var=yes"
10769else
10770 eval "$gl_fnmatch_cache_var=no"
10771fi
10772rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10773 conftest.$ac_objext conftest.beam conftest.$ac_ext
10774fi
10775
10776
10777fi
10778eval ac_res=\$$gl_fnmatch_cache_var
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10780$as_echo "$ac_res" >&6; }
10781 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
10782 if test "$gl_fnmatch_result" = yes; then
10783 rm -f "$gl_source_base/fnmatch.h"
10784 else
10785 FNMATCH_H=fnmatch.h
10786 fi
10787
10788 if test -n "$FNMATCH_H"; then
10789 GL_GENERATE_FNMATCH_H_TRUE=
10790 GL_GENERATE_FNMATCH_H_FALSE='#'
10791else
10792 GL_GENERATE_FNMATCH_H_TRUE='#'
10793 GL_GENERATE_FNMATCH_H_FALSE=
10794fi
10795
10796
a512b375 10797 if test -n "$FNMATCH_H"; then
8690e634
JK
10798
10799
10800
10801
10802
10803
10804
10805
10806 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
10807
10808
10809
10810cat >>confdefs.h <<_ACEOF
10811#define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
10812_ACEOF
10813
10814
10815 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
10816"
10817if test "x$ac_cv_have_decl_isblank" = x""yes; then :
10818 ac_have_decl=1
10819else
10820 ac_have_decl=0
10821fi
10822
10823cat >>confdefs.h <<_ACEOF
10824#define HAVE_DECL_ISBLANK $ac_have_decl
10825_ACEOF
10826
10827
c971b7fa 10828
c971b7fa 10829
a512b375 10830 fi
c971b7fa 10831
c971b7fa 10832
c971b7fa 10833
c971b7fa 10834
c971b7fa 10835
a512b375 10836 if test -n "$FNMATCH_H"; then
c971b7fa 10837
c971b7fa 10838
c971b7fa
PA
10839
10840
c971b7fa
PA
10841
10842
c971b7fa
PA
10843
10844
8690e634 10845 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
c971b7fa 10846
c971b7fa 10847
c971b7fa 10848
8690e634
JK
10849cat >>confdefs.h <<_ACEOF
10850#define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
10851_ACEOF
c971b7fa
PA
10852
10853
8690e634
JK
10854 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
10855"
10856if test "x$ac_cv_have_decl_isblank" = x""yes; then :
10857 ac_have_decl=1
10858else
10859 ac_have_decl=0
c971b7fa 10860fi
c971b7fa 10861
8690e634
JK
10862cat >>confdefs.h <<_ACEOF
10863#define HAVE_DECL_ISBLANK $ac_have_decl
c971b7fa
PA
10864_ACEOF
10865
c971b7fa 10866
8690e634 10867
c971b7fa 10868
88b48903
WN
10869 fi
10870
10871
10872
10873 FREXP_LIBM=
10874 if test $gl_cv_func_frexp_no_libm = no; then
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used with libm" >&5
10876$as_echo_n "checking whether frexp() can be used with libm... " >&6; }
10877if test "${gl_cv_func_frexp_in_libm+set}" = set; then :
10878 $as_echo_n "(cached) " >&6
10879else
10880
10881 save_LIBS="$LIBS"
10882 LIBS="$LIBS -lm"
10883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10884/* end confdefs.h. */
10885#include <math.h>
10886 double x;
10887int
10888main ()
10889{
10890int e; return frexp (x, &e) > 0;
10891 ;
10892 return 0;
10893}
10894_ACEOF
10895if ac_fn_c_try_link "$LINENO"; then :
10896 gl_cv_func_frexp_in_libm=yes
10897else
10898 gl_cv_func_frexp_in_libm=no
10899fi
10900rm -f core conftest.err conftest.$ac_objext \
10901 conftest$ac_exeext conftest.$ac_ext
10902 LIBS="$save_LIBS"
10903
10904fi
10905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_in_libm" >&5
10906$as_echo "$gl_cv_func_frexp_in_libm" >&6; }
10907 if test $gl_cv_func_frexp_in_libm = yes; then
10908 FREXP_LIBM=-lm
10909 fi
10910 fi
10911 if test $gl_cv_func_frexp_no_libm = yes \
10912 || test $gl_cv_func_frexp_in_libm = yes; then
10913 save_LIBS="$LIBS"
10914 LIBS="$LIBS $FREXP_LIBM"
10915
10916
10917
88b48903
WN
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
10919$as_echo_n "checking whether frexp works... " >&6; }
10920if test "${gl_cv_func_frexp_works+set}" = set; then :
10921 $as_echo_n "(cached) " >&6
10922else
10923
10924 if test "$cross_compiling" = yes; then :
10925 case "$host_os" in
10926 netbsd* | irix* | mingw*) gl_cv_func_frexp_works="guessing no";;
10927 *) gl_cv_func_frexp_works="guessing yes";;
10928 esac
10929
10930else
10931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10932/* end confdefs.h. */
10933
10934#include <float.h>
10935#include <math.h>
10936#include <string.h>
10937#if HAVE_ALARM
10938# include <unistd.h>
10939#endif
10940/* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
10941 ICC 10.0 has a bug when optimizing the expression -zero.
10942 The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
10943 to PowerPC on Mac OS X 10.5. */
10944#if defined __hpux || defined __sgi || defined __ICC
10945static double
10946compute_minus_zero (void)
10947{
10948 return -DBL_MIN * DBL_MIN;
10949}
10950# define minus_zero compute_minus_zero ()
10951#else
10952double minus_zero = -0.0;
10953#endif
10954int main()
10955{
10956 int result = 0;
10957 int i;
10958 volatile double x;
10959 double zero = 0.0;
10960#if HAVE_ALARM
10961 /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
10962 number. Let the test fail in this case. */
10963 alarm (5);
10964#endif
10965 /* Test on denormalized numbers. */
10966 for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
10967 ;
10968 if (x > 0.0)
10969 {
10970 int exp;
10971 double y = frexp (x, &exp);
10972 /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
10973 On NetBSD: y = 0.75. Correct: y = 0.5. */
10974 if (y != 0.5)
10975 result |= 1;
10976 }
10977 /* Test on infinite numbers. */
10978 x = 1.0 / zero;
10979 {
10980 int exp;
10981 double y = frexp (x, &exp);
10982 if (y != x)
10983 result |= 2;
10984 }
10985 /* Test on negative zero. */
10986 x = minus_zero;
10987 {
10988 int exp;
10989 double y = frexp (x, &exp);
10990 if (memcmp (&y, &x, sizeof x))
10991 result |= 4;
10992 }
10993 return result;
10994}
10995_ACEOF
10996if ac_fn_c_try_run "$LINENO"; then :
10997 gl_cv_func_frexp_works=yes
10998else
10999 gl_cv_func_frexp_works=no
11000fi
11001rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11002 conftest.$ac_objext conftest.beam conftest.$ac_ext
11003fi
11004
11005
11006fi
11007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
11008$as_echo "$gl_cv_func_frexp_works" >&6; }
11009
11010 LIBS="$save_LIBS"
11011 case "$gl_cv_func_frexp_works" in
11012 *yes) gl_func_frexp=yes ;;
11013 *) gl_func_frexp=no; REPLACE_FREXP=1; FREXP_LIBM= ;;
11014 esac
11015 else
11016 gl_func_frexp=no
11017 fi
11018 if test $gl_func_frexp = yes; then
11019
11020$as_echo "#define HAVE_FREXP 1" >>confdefs.h
11021
11022 fi
11023
11024
11025 if test $gl_func_frexp != yes; then
11026
11027
11028
11029
11030
11031
11032
11033
11034 gl_LIBOBJS="$gl_LIBOBJS frexp.$ac_objext"
11035
11036 fi
11037
11038
11039
11040
11041
11042 GNULIB_FREXP=1
11043
11044
11045
11046
11047
11048$as_echo "#define GNULIB_TEST_FREXP 1" >>confdefs.h
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058 ac_fn_c_check_decl "$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
11059"
11060if test "x$ac_cv_have_decl_frexpl" = x""yes; then :
11061
11062else
11063 HAVE_DECL_FREXPL=0
11064fi
11065
11066
11067 FREXPL_LIBM=
11068 if test $HAVE_DECL_FREXPL = 1; then
11069
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
11071$as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
11072if test "${gl_cv_func_frexpl_no_libm+set}" = set; then :
11073 $as_echo_n "(cached) " >&6
11074else
11075
11076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11077/* end confdefs.h. */
11078#include <math.h>
11079 long double x;
11080int
11081main ()
11082{
11083int e; return frexpl (x, &e) > 0;
11084 ;
11085 return 0;
11086}
11087_ACEOF
11088if ac_fn_c_try_link "$LINENO"; then :
11089 gl_cv_func_frexpl_no_libm=yes
11090else
11091 gl_cv_func_frexpl_no_libm=no
11092fi
11093rm -f core conftest.err conftest.$ac_objext \
11094 conftest$ac_exeext conftest.$ac_ext
11095
11096fi
11097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
11098$as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
11099
11100 if test $gl_cv_func_frexpl_no_libm = no; then
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used with libm" >&5
11102$as_echo_n "checking whether frexpl() can be used with libm... " >&6; }
11103if test "${gl_cv_func_frexpl_in_libm+set}" = set; then :
11104 $as_echo_n "(cached) " >&6
11105else
11106
11107 save_LIBS="$LIBS"
11108 LIBS="$LIBS -lm"
11109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11110/* end confdefs.h. */
11111#include <math.h>
11112 long double x;
11113int
11114main ()
11115{
11116int e; return frexpl (x, &e) > 0;
11117 ;
11118 return 0;
11119}
11120_ACEOF
11121if ac_fn_c_try_link "$LINENO"; then :
11122 gl_cv_func_frexpl_in_libm=yes
11123else
11124 gl_cv_func_frexpl_in_libm=no
11125fi
11126rm -f core conftest.err conftest.$ac_objext \
11127 conftest$ac_exeext conftest.$ac_ext
11128 LIBS="$save_LIBS"
11129
11130fi
11131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_in_libm" >&5
11132$as_echo "$gl_cv_func_frexpl_in_libm" >&6; }
11133 if test $gl_cv_func_frexpl_in_libm = yes; then
11134 FREXPL_LIBM=-lm
11135 fi
11136 fi
11137 if test $gl_cv_func_frexpl_no_libm = yes \
11138 || test $gl_cv_func_frexpl_in_libm = yes; then
11139 save_LIBS="$LIBS"
11140 LIBS="$LIBS $FREXPL_LIBM"
11141
11142
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
11144$as_echo_n "checking whether frexpl works... " >&6; }
11145if test "${gl_cv_func_frexpl_works+set}" = set; then :
11146 $as_echo_n "(cached) " >&6
11147else
11148
11149 if test "$cross_compiling" = yes; then :
11150
11151 case "$host_os" in
11152 aix | aix[3-6]* | beos* | darwin* | irix* | mingw* | pw*)
11153 gl_cv_func_frexpl_works="guessing no";;
11154 *) gl_cv_func_frexpl_works="guessing yes";;
11155 esac
11156
11157else
11158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11159/* end confdefs.h. */
11160
11161#include <float.h>
11162#include <math.h>
11163/* Override the values of <float.h>, like done in float.in.h. */
11164#if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
11165# undef LDBL_MIN_EXP
11166# define LDBL_MIN_EXP (-16381)
11167#endif
11168#if defined __i386__ && defined __FreeBSD__
11169# undef LDBL_MIN_EXP
11170# define LDBL_MIN_EXP (-16381)
11171#endif
11172#if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
11173# undef LDBL_MIN_EXP
11174# define LDBL_MIN_EXP DBL_MIN_EXP
11175#endif
11176#if defined __sgi && (LDBL_MANT_DIG >= 106)
11177# if defined __GNUC__
11178# undef LDBL_MIN_EXP
11179# define LDBL_MIN_EXP DBL_MIN_EXP
11180# endif
11181#endif
11182extern
11183#ifdef __cplusplus
11184"C"
11185#endif
11186long double frexpl (long double, int *);
11187int main()
11188{
11189 int result = 0;
11190 volatile long double x;
11191 /* Test on finite numbers that fails on AIX 5.1. */
11192 x = 16.0L;
11193 {
11194 int exp = -9999;
11195 frexpl (x, &exp);
11196 if (exp != 5)
11197 result |= 1;
11198 }
11199 /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
11200 function returns an invalid (incorrectly normalized) value: it returns
11201 y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
11202 but the correct result is
11203 0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 } */
11204 x = 1.01L;
11205 {
11206 int exp = -9999;
11207 long double y = frexpl (x, &exp);
11208 if (!(exp == 1 && y == 0.505L))
11209 result |= 2;
11210 }
11211 /* Test on large finite numbers. This fails on BeOS at i = 16322, while
11212 LDBL_MAX_EXP = 16384.
11213 In the loop end test, we test x against Infinity, rather than comparing
11214 i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP. */
11215 {
11216 int i;
11217 for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
11218 {
11219 int exp = -9999;
11220 frexpl (x, &exp);
11221 if (exp != i)
11222 {
11223 result |= 4;
11224 break;
11225 }
11226 }
11227 }
11228 /* Test on denormalized numbers. */
11229 {
11230 int i;
11231 for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
11232 ;
11233 if (x > 0.0L)
11234 {
11235 int exp;
11236 long double y = frexpl (x, &exp);
11237 /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
11238 exp = -16382, y = 0.5. On Mac OS X 10.5: exp = -16384, y = 0.5. */
11239 if (exp != LDBL_MIN_EXP - 1)
11240 result |= 8;
11241 }
11242 }
11243 /* Test on infinite numbers. */
11244 x = 1.0L / 0.0L;
11245 {
11246 int exp;
11247 long double y = frexpl (x, &exp);
11248 if (y != x)
11249 result |= 16;
11250 }
11251 return result;
11252}
11253_ACEOF
11254if ac_fn_c_try_run "$LINENO"; then :
11255 gl_cv_func_frexpl_works=yes
11256else
11257 gl_cv_func_frexpl_works=no
11258fi
11259rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11260 conftest.$ac_objext conftest.beam conftest.$ac_ext
11261fi
11262
11263
11264fi
11265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
11266$as_echo "$gl_cv_func_frexpl_works" >&6; }
11267
11268 LIBS="$save_LIBS"
11269 case "$gl_cv_func_frexpl_works" in
11270 *yes) gl_func_frexpl=yes ;;
11271 *) gl_func_frexpl=no; REPLACE_FREXPL=1 ;;
11272 esac
11273 else
11274 gl_func_frexpl=no
11275 fi
11276 if test $gl_func_frexpl = yes; then
11277
11278$as_echo "#define HAVE_FREXPL 1" >>confdefs.h
11279
11280 fi
11281 fi
11282 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
11283 if test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1; then
11284
11285 FREXPL_LIBM="$FREXP_LIBM"
11286 else
11287 FREXPL_LIBM=
11288 fi
11289 fi
11290
11291
11292 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
11293
11294
11295
11296
11297
11298
11299
11300
11301 gl_LIBOBJS="$gl_LIBOBJS frexpl.$ac_objext"
11302
11303 fi
11304
11305
11306
11307
11308
11309 GNULIB_FREXPL=1
11310
11311
11312
11313
11314
11315$as_echo "#define GNULIB_TEST_FREXPL 1" >>confdefs.h
11316
11317
11318
11319
11320
11321
11322
11323
11324 PRIPTR_PREFIX=
11325 if test -n "$STDINT_H"; then
11326 PRIPTR_PREFIX='"l"'
11327 else
11328 for glpfx in '' l ll I64; do
11329 case $glpfx in
11330 '') gltype1='int';;
11331 l) gltype1='long int';;
11332 ll) gltype1='long long int';;
11333 I64) gltype1='__int64';;
11334 esac
11335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11336/* end confdefs.h. */
11337#include <stdint.h>
11338 extern intptr_t foo;
11339 extern $gltype1 foo;
11340int
11341main ()
11342{
11343
11344 ;
11345 return 0;
11346}
11347_ACEOF
11348if ac_fn_c_try_compile "$LINENO"; then :
11349 PRIPTR_PREFIX='"'$glpfx'"'
11350fi
11351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11352 test -n "$PRIPTR_PREFIX" && break
11353 done
11354 fi
11355
11356
11357
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
11359$as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
11360if test "${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+set}" = set; then :
11361 $as_echo_n "(cached) " >&6
11362else
11363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11364/* end confdefs.h. */
11365/* Work also in C++ mode. */
11366 #define __STDC_LIMIT_MACROS 1
11367
11368 /* Work if build is not clean. */
11369 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
11370
11371 #include <limits.h>
11372 #if HAVE_STDINT_H
11373 #include <stdint.h>
11374 #endif
11375
11376 #if defined INT32_MAX && defined INTMAX_MAX
11377 #define CONDITION (INT32_MAX < INTMAX_MAX)
11378 #elif HAVE_LONG_LONG_INT
11379 #define CONDITION (sizeof (int) < sizeof (long long int))
11380 #else
11381 #define CONDITION 0
11382 #endif
11383 int test[CONDITION ? 1 : -1];
11384int
11385main ()
11386{
11387
11388 ;
11389 return 0;
11390}
11391_ACEOF
11392if ac_fn_c_try_compile "$LINENO"; then :
11393 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
11394else
11395 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
11396fi
11397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11398fi
11399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
11400$as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
11401 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
11402 INT32_MAX_LT_INTMAX_MAX=1;
11403 else
11404 INT32_MAX_LT_INTMAX_MAX=0;
11405 fi
11406
11407
11408 if test $APPLE_UNIVERSAL_BUILD = 0; then
11409
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
11411$as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
11412if test "${gl_cv_test_INT64_MAX_EQ_LONG_MAX+set}" = set; then :
11413 $as_echo_n "(cached) " >&6
11414else
11415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11416/* end confdefs.h. */
11417/* Work also in C++ mode. */
11418 #define __STDC_LIMIT_MACROS 1
11419
11420 /* Work if build is not clean. */
11421 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
11422
11423 #include <limits.h>
11424 #if HAVE_STDINT_H
11425 #include <stdint.h>
11426 #endif
11427
11428 #if defined INT64_MAX
11429 #define CONDITION (INT64_MAX == LONG_MAX)
11430 #elif HAVE_LONG_LONG_INT
11431 #define CONDITION (sizeof (long long int) == sizeof (long int))
11432 #else
11433 #define CONDITION 0
11434 #endif
11435 int test[CONDITION ? 1 : -1];
11436int
11437main ()
11438{
11439
11440 ;
11441 return 0;
11442}
11443_ACEOF
11444if ac_fn_c_try_compile "$LINENO"; then :
11445 gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
11446else
11447 gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
11448fi
11449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11450fi
11451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
11452$as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
11453 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
11454 INT64_MAX_EQ_LONG_MAX=1;
11455 else
11456 INT64_MAX_EQ_LONG_MAX=0;
11457 fi
11458
11459
11460 else
11461 INT64_MAX_EQ_LONG_MAX=-1
11462 fi
11463
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
11465$as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
11466if test "${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+set}" = set; then :
11467 $as_echo_n "(cached) " >&6
11468else
11469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11470/* end confdefs.h. */
11471/* Work also in C++ mode. */
11472 #define __STDC_LIMIT_MACROS 1
11473
11474 /* Work if build is not clean. */
11475 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
11476
11477 #include <limits.h>
11478 #if HAVE_STDINT_H
11479 #include <stdint.h>
11480 #endif
11481
11482 #if defined UINT32_MAX && defined UINTMAX_MAX
11483 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
11484 #elif HAVE_LONG_LONG_INT
11485 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
11486 #else
11487 #define CONDITION 0
11488 #endif
11489 int test[CONDITION ? 1 : -1];
11490int
11491main ()
11492{
11493
11494 ;
11495 return 0;
11496}
11497_ACEOF
11498if ac_fn_c_try_compile "$LINENO"; then :
11499 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
11500else
11501 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
11502fi
11503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11504fi
11505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
11506$as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
11507 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
11508 UINT32_MAX_LT_UINTMAX_MAX=1;
11509 else
11510 UINT32_MAX_LT_UINTMAX_MAX=0;
11511 fi
11512
11513
11514 if test $APPLE_UNIVERSAL_BUILD = 0; then
11515
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
11517$as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
11518if test "${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+set}" = set; then :
11519 $as_echo_n "(cached) " >&6
11520else
11521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11522/* end confdefs.h. */
11523/* Work also in C++ mode. */
11524 #define __STDC_LIMIT_MACROS 1
11525
11526 /* Work if build is not clean. */
11527 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
11528
11529 #include <limits.h>
11530 #if HAVE_STDINT_H
11531 #include <stdint.h>
11532 #endif
11533
11534 #if defined UINT64_MAX
11535 #define CONDITION (UINT64_MAX == ULONG_MAX)
11536 #elif HAVE_LONG_LONG_INT
11537 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
11538 #else
11539 #define CONDITION 0
11540 #endif
11541 int test[CONDITION ? 1 : -1];
11542int
11543main ()
11544{
11545
11546 ;
11547 return 0;
11548}
11549_ACEOF
11550if ac_fn_c_try_compile "$LINENO"; then :
11551 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
11552else
11553 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
11554fi
11555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11556fi
11557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
11558$as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
11559 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
11560 UINT64_MAX_EQ_ULONG_MAX=1;
11561 else
11562 UINT64_MAX_EQ_ULONG_MAX=0;
11563 fi
11564
11565
11566 else
11567 UINT64_MAX_EQ_ULONG_MAX=-1
11568 fi
11569
11570
11571
11572
11573
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
11575$as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
11576if test "${gl_cv_func_isnand_no_libm+set}" = set; then :
11577 $as_echo_n "(cached) " >&6
11578else
11579
11580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11581/* end confdefs.h. */
11582#include <math.h>
11583 #if __GNUC__ >= 4
11584 # undef isnand
11585 # define isnand(x) __builtin_isnan ((double)(x))
11586 #else
11587 # undef isnand
11588 # define isnand(x) isnan ((double)(x))
11589 #endif
11590 double x;
11591int
11592main ()
11593{
11594return isnand (x);
11595 ;
11596 return 0;
11597}
11598_ACEOF
11599if ac_fn_c_try_link "$LINENO"; then :
11600 gl_cv_func_isnand_no_libm=yes
11601else
11602 gl_cv_func_isnand_no_libm=no
11603fi
11604rm -f core conftest.err conftest.$ac_objext \
11605 conftest$ac_exeext conftest.$ac_ext
11606
11607fi
11608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
11609$as_echo "$gl_cv_func_isnand_no_libm" >&6; }
11610
11611 gl_func_isnand_no_libm=$gl_cv_func_isnand_no_libm
11612 if test $gl_cv_func_isnand_no_libm = yes; then
11613
11614$as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
11615
11616 fi
11617
11618 if test $gl_func_isnand_no_libm != yes; then
11619
11620
11621
11622
11623
11624
11625
11626
11627 gl_LIBOBJS="$gl_LIBOBJS isnand.$ac_objext"
11628
11629
11630
11631
11632 fi
11633
11634
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
11636$as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
11637if test "${gl_cv_func_isnanl_no_libm+set}" = set; then :
11638 $as_echo_n "(cached) " >&6
11639else
11640
11641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11642/* end confdefs.h. */
11643#include <math.h>
11644 #if __GNUC__ >= 4
11645 # undef isnanl
11646 # define isnanl(x) __builtin_isnanl ((long double)(x))
11647 #elif defined isnan
11648 # undef isnanl
11649 # define isnanl(x) isnan ((long double)(x))
11650 #endif
11651 long double x;
11652int
11653main ()
11654{
11655return isnanl (x);
11656 ;
11657 return 0;
11658}
11659_ACEOF
11660if ac_fn_c_try_link "$LINENO"; then :
11661 gl_cv_func_isnanl_no_libm=yes
11662else
11663 gl_cv_func_isnanl_no_libm=no
11664fi
11665rm -f core conftest.err conftest.$ac_objext \
11666 conftest$ac_exeext conftest.$ac_ext
11667
11668fi
11669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
11670$as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
11671
11672 gl_func_isnanl_no_libm=$gl_cv_func_isnanl_no_libm
11673 if test $gl_func_isnanl_no_libm = yes; then
11674
11675
11676
11677
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
11679$as_echo_n "checking whether isnanl works... " >&6; }
11680if test "${gl_cv_func_isnanl_works+set}" = set; then :
11681 $as_echo_n "(cached) " >&6
11682else
11683
11684 if test "$cross_compiling" = yes; then :
11685 case "$host_cpu" in
11686 # Guess no on ia64, x86_64, i386.
11687 ia64 | x86_64 | i*86) gl_cv_func_isnanl_works="guessing no";;
11688 *)
11689 case "$host_os" in
11690 netbsd*) gl_cv_func_isnanl_works="guessing no";;
11691 *) gl_cv_func_isnanl_works="guessing yes";;
11692 esac
11693 ;;
11694 esac
11695
11696else
11697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11698/* end confdefs.h. */
11699
11700#include <float.h>
11701#include <limits.h>
11702#include <math.h>
11703#if __GNUC__ >= 4
11704# undef isnanl
11705# define isnanl(x) __builtin_isnanl ((long double)(x))
11706#elif defined isnan
11707# undef isnanl
11708# define isnanl(x) isnan ((long double)(x))
11709#endif
11710#define NWORDS \
11711 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
11712typedef union { unsigned int word[NWORDS]; long double value; }
11713 memory_long_double;
11714/* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
11715 runtime type conversion. */
11716#ifdef __sgi
11717static long double NaNl ()
11718{
11719 double zero = 0.0;
11720 return zero / zero;
11721}
11722#else
11723# define NaNl() (0.0L / 0.0L)
11724#endif
11725int main ()
11726{
11727 int result = 0;
11728
11729 if (!isnanl (NaNl ()))
11730 result |= 1;
11731
11732 {
11733 memory_long_double m;
11734 unsigned int i;
11735
11736 /* The isnanl function should be immune against changes in the sign bit and
11737 in the mantissa bits. The xor operation twiddles a bit that can only be
11738 a sign bit or a mantissa bit (since the exponent never extends to
11739 bit 31). */
11740 m.value = NaNl ();
11741 m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
11742 for (i = 0; i < NWORDS; i++)
11743 m.word[i] |= 1;
11744 if (!isnanl (m.value))
11745 result |= 1;
11746 }
11747
11748#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
11749/* Representation of an 80-bit 'long double' as an initializer for a sequence
11750 of 'unsigned int' words. */
11751# ifdef WORDS_BIGENDIAN
11752# define LDBL80_WORDS(exponent,manthi,mantlo) \
11753 { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
11754 ((unsigned int) (manthi) << 16) | (unsigned int) (mantlo) >> 16), \
11755 (unsigned int) (mantlo) << 16 \
11756 }
11757# else
11758# define LDBL80_WORDS(exponent,manthi,mantlo) \
11759 { mantlo, manthi, exponent }
11760# endif
11761 { /* Quiet NaN. */
11762 static memory_long_double x =
11763 { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
11764 if (!isnanl (x.value))
11765 result |= 2;
11766 }
11767 {
11768 /* Signalling NaN. */
11769 static memory_long_double x =
11770 { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
11771 if (!isnanl (x.value))
11772 result |= 2;
11773 }
11774 /* The isnanl function should recognize Pseudo-NaNs, Pseudo-Infinities,
11775 Pseudo-Zeroes, Unnormalized Numbers, and Pseudo-Denormals, as defined in
11776 Intel IA-64 Architecture Software Developer's Manual, Volume 1:
11777 Application Architecture.
11778 Table 5-2 "Floating-Point Register Encodings"
11779 Figure 5-6 "Memory to Floating-Point Register Data Translation"
11780 */
11781 { /* Pseudo-NaN. */
11782 static memory_long_double x =
11783 { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
11784 if (!isnanl (x.value))
11785 result |= 4;
11786 }
11787 { /* Pseudo-Infinity. */
11788 static memory_long_double x =
11789 { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
11790 if (!isnanl (x.value))
11791 result |= 8;
11792 }
11793 { /* Pseudo-Zero. */
11794 static memory_long_double x =
11795 { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
11796 if (!isnanl (x.value))
11797 result |= 16;
11798 }
11799 { /* Unnormalized number. */
11800 static memory_long_double x =
11801 { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
11802 if (!isnanl (x.value))
11803 result |= 32;
11804 }
11805 { /* Pseudo-Denormal. */
11806 static memory_long_double x =
11807 { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
11808 if (!isnanl (x.value))
11809 result |= 64;
11810 }
11811#endif
11812
11813 return result;
11814}
11815_ACEOF
11816if ac_fn_c_try_run "$LINENO"; then :
11817 gl_cv_func_isnanl_works=yes
11818else
11819 gl_cv_func_isnanl_works=no
11820fi
11821rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11822 conftest.$ac_objext conftest.beam conftest.$ac_ext
11823fi
11824
11825
11826fi
11827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
11828$as_echo "$gl_cv_func_isnanl_works" >&6; }
11829
11830 case "$gl_cv_func_isnanl_works" in
11831 *yes) ;;
11832 *) gl_func_isnanl_no_libm=no ;;
11833 esac
11834 fi
11835 if test $gl_func_isnanl_no_libm = yes; then
11836
11837$as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
11838
11839 fi
11840
11841 if test $gl_func_isnanl_no_libm != yes; then
11842
11843
11844
11845
11846
11847
11848
11849
11850 gl_LIBOBJS="$gl_LIBOBJS isnanl.$ac_objext"
11851
11852
11853
11854
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
11856$as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
11857if test "${gl_cv_cc_long_double_expbit0+set}" = set; then :
11858 $as_echo_n "(cached) " >&6
11859else
11860
11861 if test "$cross_compiling" = yes; then :
11862
11863 gl_cv_cc_long_double_expbit0="unknown"
11864
11865else
11866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11867/* end confdefs.h. */
11868
11869#include <float.h>
11870#include <stddef.h>
11871#include <stdio.h>
11872#include <string.h>
11873#define NWORDS \
11874 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
11875typedef union { long double value; unsigned int word[NWORDS]; }
11876 memory_long_double;
11877static unsigned int ored_words[NWORDS];
11878static unsigned int anded_words[NWORDS];
11879static void add_to_ored_words (long double x)
11880{
11881 memory_long_double m;
11882 size_t i;
11883 /* Clear it first, in case
11884 sizeof (long double) < sizeof (memory_long_double). */
11885 memset (&m, 0, sizeof (memory_long_double));
11886 m.value = x;
11887 for (i = 0; i < NWORDS; i++)
11888 {
11889 ored_words[i] |= m.word[i];
11890 anded_words[i] &= m.word[i];
11891 }
11892}
11893int main ()
11894{
11895 size_t j;
11896 FILE *fp = fopen ("conftest.out", "w");
11897 if (fp == NULL)
11898 return 1;
11899 for (j = 0; j < NWORDS; j++)
11900 anded_words[j] = ~ (unsigned int) 0;
11901 add_to_ored_words (0.25L);
11902 add_to_ored_words (0.5L);
11903 add_to_ored_words (1.0L);
11904 add_to_ored_words (2.0L);
11905 add_to_ored_words (4.0L);
11906 /* Remove bits that are common (e.g. if representation of the first mantissa
11907 bit is explicit). */
11908 for (j = 0; j < NWORDS; j++)
11909 ored_words[j] &= ~anded_words[j];
11910 /* Now find the nonzero word. */
11911 for (j = 0; j < NWORDS; j++)
11912 if (ored_words[j] != 0)
11913 break;
11914 if (j < NWORDS)
11915 {
11916 size_t i;
11917 for (i = j + 1; i < NWORDS; i++)
11918 if (ored_words[i] != 0)
11919 {
11920 fprintf (fp, "unknown");
11921 return (fclose (fp) != 0);
11922 }
11923 for (i = 0; ; i++)
11924 if ((ored_words[j] >> i) & 1)
11925 {
11926 fprintf (fp, "word %d bit %d", (int) j, (int) i);
11927 return (fclose (fp) != 0);
11928 }
11929 }
11930 fprintf (fp, "unknown");
11931 return (fclose (fp) != 0);
11932}
11933
11934_ACEOF
11935if ac_fn_c_try_run "$LINENO"; then :
11936 gl_cv_cc_long_double_expbit0=`cat conftest.out`
11937else
11938 gl_cv_cc_long_double_expbit0="unknown"
11939fi
11940rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11941 conftest.$ac_objext conftest.beam conftest.$ac_ext
11942fi
11943
11944 rm -f conftest.out
11945
11946fi
11947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
11948$as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
11949 case "$gl_cv_cc_long_double_expbit0" in
11950 word*bit*)
11951 word=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
11952 bit=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
11953
11954cat >>confdefs.h <<_ACEOF
11955#define LDBL_EXPBIT0_WORD $word
11956_ACEOF
11957
11958
11959cat >>confdefs.h <<_ACEOF
11960#define LDBL_EXPBIT0_BIT $bit
11961_ACEOF
11962
11963 ;;
11964 esac
11965
11966
11967
11968 fi
11969
11970
11971
11972
88b48903
WN
11973
11974
11975
11976
11977 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
11978
11979
11980
11981
11982
11983
11984
11985
11986
88b48903 11987
c971b7fa 11988
c971b7fa 11989
88b48903
WN
11990 if test $gl_cv_have_include_next = yes; then
11991 gl_cv_next_math_h='<'math.h'>'
11992 else
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
11994$as_echo_n "checking absolute name of <math.h>... " >&6; }
11995if test "${gl_cv_next_math_h+set}" = set; then :
11996 $as_echo_n "(cached) " >&6
11997else
c971b7fa 11998
88b48903 11999 if test $ac_cv_header_math_h = yes; then
c971b7fa
PA
12000
12001
88b48903 12002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690e634 12003/* end confdefs.h. */
88b48903 12004#include <math.h>
8690e634 12005
8690e634 12006_ACEOF
88b48903
WN
12007 case "$host_os" in
12008 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12009 *) gl_absname_cpp="$ac_cpp" ;;
12010 esac
8690e634 12011
88b48903
WN
12012 case "$host_os" in
12013 mingw*)
12014 gl_dirsep_regex='[/\\]'
12015 ;;
12016 *)
12017 gl_dirsep_regex='\/'
12018 ;;
12019 esac
12020 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
8690e634 12021
88b48903
WN
12022 gl_header_literal_regex=`echo 'math.h' \
12023 | sed -e "$gl_make_literal_regex_sed"`
12024 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12025 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12026 s|^/[^/]|//&|
12027 p
12028 q
12029 }'
12030 gl_cv_next_math_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12031 sed -n "$gl_absolute_header_sed"`'"'
12032 else
12033 gl_cv_next_math_h='<'math.h'>'
12034 fi
8690e634 12035
c971b7fa 12036
88b48903
WN
12037fi
12038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
12039$as_echo "$gl_cv_next_math_h" >&6; }
12040 fi
12041 NEXT_MATH_H=$gl_cv_next_math_h
c971b7fa 12042
88b48903
WN
12043 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12044 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12045 gl_next_as_first_directive='<'math.h'>'
12046 else
12047 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12048 gl_next_as_first_directive=$gl_cv_next_math_h
12049 fi
12050 NEXT_AS_FIRST_DIRECTIVE_MATH_H=$gl_next_as_first_directive
8690e634 12051
c971b7fa 12052
c971b7fa
PA
12053
12054
c971b7fa 12055
88b48903
WN
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
12057$as_echo_n "checking whether NAN macro works... " >&6; }
12058if test "${gl_cv_header_math_nan_works+set}" = set; then :
c971b7fa
PA
12059 $as_echo_n "(cached) " >&6
12060else
8690e634
JK
12061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12062/* end confdefs.h. */
88b48903 12063#include <math.h>
c971b7fa
PA
12064int
12065main ()
12066{
88b48903
WN
12067/* Solaris 10 has a broken definition of NAN. Other platforms
12068 fail to provide NAN, or provide it only in C99 mode; this
12069 test only needs to fail when NAN is provided but wrong. */
12070 float f = 1.0f;
12071#ifdef NAN
12072 f = NAN;
12073#endif
12074 return f == 0;
c971b7fa
PA
12075 ;
12076 return 0;
12077}
12078_ACEOF
12079if ac_fn_c_try_compile "$LINENO"; then :
88b48903 12080 gl_cv_header_math_nan_works=yes
8690e634 12081else
88b48903 12082 gl_cv_header_math_nan_works=no
c971b7fa
PA
12083fi
12084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c971b7fa 12085fi
88b48903
WN
12086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
12087$as_echo "$gl_cv_header_math_nan_works" >&6; }
12088 if test $gl_cv_header_math_nan_works = no; then
12089 REPLACE_NAN=1
c971b7fa 12090 fi
88b48903
WN
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
12092$as_echo_n "checking whether HUGE_VAL works... " >&6; }
12093if test "${gl_cv_header_math_huge_val_works+set}" = set; then :
c971b7fa
PA
12094 $as_echo_n "(cached) " >&6
12095else
8690e634 12096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa 12097/* end confdefs.h. */
88b48903 12098#include <math.h>
c971b7fa
PA
12099int
12100main ()
12101{
88b48903
WN
12102/* Solaris 10 has a broken definition of HUGE_VAL. */
12103 double d = HUGE_VAL;
12104 return d == 0;
c971b7fa
PA
12105 ;
12106 return 0;
12107}
12108_ACEOF
12109if ac_fn_c_try_compile "$LINENO"; then :
88b48903 12110 gl_cv_header_math_huge_val_works=yes
8690e634 12111else
88b48903 12112 gl_cv_header_math_huge_val_works=no
c971b7fa
PA
12113fi
12114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c971b7fa 12115fi
88b48903
WN
12116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
12117$as_echo "$gl_cv_header_math_huge_val_works" >&6; }
12118 if test $gl_cv_header_math_huge_val_works = no; then
12119 REPLACE_HUGE_VAL=1
8690e634 12120 fi
c971b7fa 12121
c971b7fa 12122
88b48903
WN
12123 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
12124 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
12126$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
12127if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
8690e634
JK
12128 $as_echo_n "(cached) " >&6
12129else
12130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12131/* end confdefs.h. */
88b48903 12132#include <math.h>
8690e634
JK
12133int
12134main ()
12135{
88b48903
WN
12136#undef $gl_func
12137 (void) $gl_func;
8690e634
JK
12138 ;
12139 return 0;
12140}
12141_ACEOF
12142if ac_fn_c_try_compile "$LINENO"; then :
88b48903 12143 eval "$as_gl_Symbol=yes"
c971b7fa 12144else
88b48903 12145 eval "$as_gl_Symbol=no"
c971b7fa 12146fi
8690e634
JK
12147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12148fi
88b48903
WN
12149eval ac_res=\$$as_gl_Symbol
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12151$as_echo "$ac_res" >&6; }
12152 eval as_val=\$$as_gl_Symbol
12153 if test "x$as_val" = x""yes; then :
12154 cat >>confdefs.h <<_ACEOF
12155#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
12156_ACEOF
c971b7fa 12157
88b48903
WN
12158 eval ac_cv_have_decl_$gl_func=yes
12159fi
12160 done
c971b7fa
PA
12161
12162
12163
12164
12165
c971b7fa 12166
c971b7fa 12167
c971b7fa 12168
c971b7fa
PA
12169
12170
c971b7fa 12171
8690e634
JK
12172
12173 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
12174
12175
12176
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
12178$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
12179if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
c971b7fa
PA
12180 $as_echo_n "(cached) " >&6
12181else
8690e634
JK
12182
12183 case "$host_os" in
12184 # Guess no on AIX and OSF/1.
12185 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
12186 # Guess yes otherwise.
12187 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
12188 esac
12189 if test $LOCALE_JA != none; then
12190 if test "$cross_compiling" = yes; then :
12191 :
12192else
c971b7fa
PA
12193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12194/* end confdefs.h. */
c971b7fa 12195
8690e634
JK
12196#include <locale.h>
12197#include <string.h>
12198/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12199 <wchar.h>.
12200 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12201 included before <wchar.h>. */
12202#include <stddef.h>
12203#include <stdio.h>
12204#include <time.h>
12205#include <wchar.h>
12206int main ()
c971b7fa 12207{
8690e634
JK
12208 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
12209 {
12210 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
12211 mbstate_t state;
12212 wchar_t wc;
12213
12214 memset (&state, '\0', sizeof (mbstate_t));
12215 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
12216 if (mbsinit (&state))
12217 return 1;
12218 }
c971b7fa
PA
12219 return 0;
12220}
12221_ACEOF
8690e634
JK
12222if ac_fn_c_try_run "$LINENO"; then :
12223 gl_cv_func_mbrtowc_incomplete_state=yes
c971b7fa 12224else
8690e634 12225 gl_cv_func_mbrtowc_incomplete_state=no
c971b7fa 12226fi
8690e634
JK
12227rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12228 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 12229fi
c971b7fa 12230
8690e634 12231 fi
c971b7fa 12232
8690e634
JK
12233fi
12234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
12235$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
c971b7fa 12236
c971b7fa 12237
c971b7fa 12238
c971b7fa 12239
8690e634
JK
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
12241$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
12242if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
c971b7fa
PA
12243 $as_echo_n "(cached) " >&6
12244else
12245
8690e634
JK
12246 case "$host_os" in
12247 # Guess no on Solaris 8.
12248 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
12249 # Guess yes otherwise.
12250 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
12251 esac
12252 if test $LOCALE_ZH_CN != none; then
12253 if test "$cross_compiling" = yes; then :
12254 :
12255else
12256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa
PA
12257/* end confdefs.h. */
12258
8690e634
JK
12259#include <locale.h>
12260#include <stdlib.h>
12261#include <string.h>
12262/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12263 <wchar.h>.
12264 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12265 included before <wchar.h>. */
12266#include <stddef.h>
12267#include <stdio.h>
12268#include <time.h>
12269#include <wchar.h>
12270int main ()
c971b7fa 12271{
8690e634
JK
12272 /* This fails on Solaris 8:
12273 mbrtowc returns 2, and sets wc to 0x00F0.
12274 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
12275 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
12276 {
12277 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
12278 mbstate_t state;
12279 wchar_t wc;
12280
12281 memset (&state, '\0', sizeof (mbstate_t));
12282 if (mbrtowc (&wc, input + 3, 6, &state) != 4
12283 && mbtowc (&wc, input + 3, 6) == 4)
12284 return 1;
12285 }
c971b7fa
PA
12286 return 0;
12287}
12288_ACEOF
8690e634
JK
12289if ac_fn_c_try_run "$LINENO"; then :
12290 gl_cv_func_mbrtowc_sanitycheck=yes
c971b7fa 12291else
8690e634 12292 gl_cv_func_mbrtowc_sanitycheck=no
c971b7fa 12293fi
8690e634
JK
12294rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12295 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 12296fi
c971b7fa 12297
8690e634 12298 fi
c971b7fa 12299
8690e634
JK
12300fi
12301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
12302$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
12303
12304 REPLACE_MBSTATE_T=0
12305 case "$gl_cv_func_mbrtowc_incomplete_state" in
12306 *yes) ;;
12307 *) REPLACE_MBSTATE_T=1 ;;
12308 esac
12309 case "$gl_cv_func_mbrtowc_sanitycheck" in
12310 *yes) ;;
12311 *) REPLACE_MBSTATE_T=1 ;;
12312 esac
c971b7fa 12313 else
8690e634 12314 REPLACE_MBSTATE_T=1
c971b7fa
PA
12315 fi
12316
12317
12318
8690e634
JK
12319 if test $ac_cv_func_mbrtowc = no; then
12320 HAVE_MBRTOWC=0
12321 ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
12322/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12323 <wchar.h>.
12324 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12325 included before <wchar.h>. */
12326#include <stddef.h>
12327#include <stdio.h>
12328#include <time.h>
12329#include <wchar.h>
c971b7fa 12330
8690e634
JK
12331"
12332if test "x$ac_cv_have_decl_mbrtowc" = x""yes; then :
12333 ac_have_decl=1
12334else
12335 ac_have_decl=0
c971b7fa 12336fi
c971b7fa 12337
8690e634
JK
12338cat >>confdefs.h <<_ACEOF
12339#define HAVE_DECL_MBRTOWC $ac_have_decl
12340_ACEOF
c971b7fa 12341
8690e634
JK
12342 if test $ac_cv_have_decl_mbrtowc = yes; then
12343 REPLACE_MBRTOWC=1
12344 fi
12345 else
12346 if test $REPLACE_MBSTATE_T = 1; then
12347 REPLACE_MBRTOWC=1
12348 else
c971b7fa
PA
12349
12350
12351
8690e634
JK
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
12353$as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
12354if test "${gl_cv_func_mbrtowc_null_arg1+set}" = set; then :
12355 $as_echo_n "(cached) " >&6
c971b7fa 12356else
c971b7fa 12357
8690e634
JK
12358 case "$host_os" in
12359 # Guess no on Solaris.
12360 solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
12361 # Guess yes otherwise.
12362 *) gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
12363 esac
12364 if test $LOCALE_FR_UTF8 != none; then
12365 if test "$cross_compiling" = yes; then :
12366 :
12367else
12368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa
PA
12369/* end confdefs.h. */
12370
8690e634
JK
12371#include <locale.h>
12372#include <stdlib.h>
12373#include <string.h>
12374/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12375 <wchar.h>.
12376 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12377 included before <wchar.h>. */
12378#include <stddef.h>
12379#include <stdio.h>
12380#include <time.h>
12381#include <wchar.h>
12382int main ()
12383{
12384 int result = 0;
12385
12386 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
12387 {
12388 char input[] = "\303\237er";
12389 mbstate_t state;
12390 wchar_t wc;
12391 size_t ret;
12392
12393 memset (&state, '\0', sizeof (mbstate_t));
12394 wc = (wchar_t) 0xBADFACE;
12395 ret = mbrtowc (&wc, input, 5, &state);
12396 if (ret != 2)
12397 result |= 1;
12398 if (!mbsinit (&state))
12399 result |= 2;
c971b7fa 12400
8690e634
JK
12401 memset (&state, '\0', sizeof (mbstate_t));
12402 ret = mbrtowc (NULL, input, 5, &state);
12403 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
12404 result |= 4;
12405 if (!mbsinit (&state))
12406 result |= 8;
12407 }
12408 return result;
12409}
c971b7fa 12410_ACEOF
8690e634
JK
12411if ac_fn_c_try_run "$LINENO"; then :
12412 gl_cv_func_mbrtowc_null_arg1=yes
12413else
12414 gl_cv_func_mbrtowc_null_arg1=no
12415fi
12416rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12417 conftest.$ac_objext conftest.beam conftest.$ac_ext
12418fi
c971b7fa 12419
8690e634 12420 fi
c971b7fa 12421
c971b7fa 12422fi
8690e634
JK
12423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
12424$as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
c971b7fa 12425
c971b7fa 12426
c971b7fa 12427
c971b7fa 12428
8690e634
JK
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
12430$as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
12431if test "${gl_cv_func_mbrtowc_null_arg2+set}" = set; then :
12432 $as_echo_n "(cached) " >&6
12433else
c971b7fa 12434
8690e634
JK
12435 case "$host_os" in
12436 # Guess no on OSF/1.
12437 osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
12438 # Guess yes otherwise.
12439 *) gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
12440 esac
12441 if test $LOCALE_FR_UTF8 != none; then
12442 if test "$cross_compiling" = yes; then :
c971b7fa 12443 :
8690e634
JK
12444else
12445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12446/* end confdefs.h. */
12447
12448#include <locale.h>
12449#include <string.h>
12450/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12451 <wchar.h>.
12452 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12453 included before <wchar.h>. */
12454#include <stddef.h>
12455#include <stdio.h>
12456#include <time.h>
12457#include <wchar.h>
12458int main ()
12459{
12460 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
12461 {
12462 mbstate_t state;
12463 wchar_t wc;
12464 int ret;
12465
12466 memset (&state, '\0', sizeof (mbstate_t));
12467 wc = (wchar_t) 0xBADFACE;
12468 mbrtowc (&wc, NULL, 5, &state);
12469 /* Check that wc was not modified. */
12470 if (wc != (wchar_t) 0xBADFACE)
12471 return 1;
12472 }
12473 return 0;
12474}
12475_ACEOF
12476if ac_fn_c_try_run "$LINENO"; then :
12477 gl_cv_func_mbrtowc_null_arg2=yes
12478else
12479 gl_cv_func_mbrtowc_null_arg2=no
12480fi
12481rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12482 conftest.$ac_objext conftest.beam conftest.$ac_ext
12483fi
12484
12485 fi
12486
12487fi
12488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
12489$as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
c971b7fa
PA
12490
12491
12492
12493
12494
12495
8690e634
JK
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
12497$as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
12498if test "${gl_cv_func_mbrtowc_retval+set}" = set; then :
12499 $as_echo_n "(cached) " >&6
12500else
12501
12502 case "$host_os" in
12503 # Guess no on HP-UX, Solaris, native Windows.
12504 hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
12505 # Guess yes otherwise.
12506 *) gl_cv_func_mbrtowc_retval="guessing yes" ;;
12507 esac
12508 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
12509 || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
12510 if test "$cross_compiling" = yes; then :
c971b7fa 12511 :
8690e634
JK
12512else
12513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12514/* end confdefs.h. */
c971b7fa 12515
8690e634
JK
12516#include <locale.h>
12517#include <string.h>
12518/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12519 <wchar.h>.
12520 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12521 included before <wchar.h>. */
12522#include <stddef.h>
12523#include <stdio.h>
12524#include <time.h>
12525#include <wchar.h>
12526int main ()
12527{
12528 int result = 0;
12529 int found_some_locale = 0;
12530 /* This fails on Solaris. */
12531 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
12532 {
12533 char input[] = "B\303\274\303\237er"; /* "Büßer" */
12534 mbstate_t state;
12535 wchar_t wc;
12536
12537 memset (&state, '\0', sizeof (mbstate_t));
12538 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
12539 {
12540 input[1] = '\0';
12541 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
12542 result |= 1;
12543 }
12544 found_some_locale = 1;
12545 }
12546 /* This fails on HP-UX 11.11. */
12547 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
12548 {
12549 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
12550 mbstate_t state;
12551 wchar_t wc;
12552
12553 memset (&state, '\0', sizeof (mbstate_t));
12554 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
12555 {
12556 input[1] = '\0';
12557 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
12558 result |= 2;
12559 }
12560 found_some_locale = 1;
12561 }
12562 /* This fails on native Windows. */
12563 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
12564 {
12565 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
12566 mbstate_t state;
12567 wchar_t wc;
12568
12569 memset (&state, '\0', sizeof (mbstate_t));
12570 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
12571 {
12572 input[3] = '\0';
12573 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
12574 result |= 4;
12575 }
12576 found_some_locale = 1;
12577 }
12578 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
12579 {
12580 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
12581 mbstate_t state;
12582 wchar_t wc;
12583
12584 memset (&state, '\0', sizeof (mbstate_t));
12585 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
12586 {
12587 input[3] = '\0';
12588 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
12589 result |= 8;
12590 }
12591 found_some_locale = 1;
12592 }
12593 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
12594 {
12595 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
12596 mbstate_t state;
12597 wchar_t wc;
12598
12599 memset (&state, '\0', sizeof (mbstate_t));
12600 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
12601 {
12602 input[3] = '\0';
12603 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
12604 result |= 16;
12605 }
12606 found_some_locale = 1;
12607 }
12608 return (found_some_locale ? result : 77);
12609}
12610_ACEOF
12611if ac_fn_c_try_run "$LINENO"; then :
12612 gl_cv_func_mbrtowc_retval=yes
12613else
12614 if test $? != 77; then
12615 gl_cv_func_mbrtowc_retval=no
12616 fi
c971b7fa 12617
8690e634
JK
12618fi
12619rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12620 conftest.$ac_objext conftest.beam conftest.$ac_ext
12621fi
c971b7fa 12622
8690e634 12623 fi
c971b7fa 12624
8690e634
JK
12625fi
12626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
12627$as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
c971b7fa
PA
12628
12629
12630
12631
8690e634
JK
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
12633$as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
12634if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then :
c971b7fa
PA
12635 $as_echo_n "(cached) " >&6
12636else
8690e634
JK
12637
12638 case "$host_os" in
12639 # Guess no on Solaris 8 and 9.
12640 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
12641 # Guess yes otherwise.
12642 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
12643 esac
12644 if test $LOCALE_ZH_CN != none; then
12645 if test "$cross_compiling" = yes; then :
12646 :
c971b7fa
PA
12647else
12648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12649/* end confdefs.h. */
12650
8690e634 12651#include <locale.h>
c971b7fa 12652#include <string.h>
8690e634
JK
12653/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12654 <wchar.h>.
12655 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12656 included before <wchar.h>. */
12657#include <stddef.h>
12658#include <stdio.h>
12659#include <time.h>
12660#include <wchar.h>
12661int main ()
c971b7fa 12662{
8690e634
JK
12663 /* This fails on Solaris 8 and 9. */
12664 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
c971b7fa 12665 {
8690e634
JK
12666 mbstate_t state;
12667 wchar_t wc;
c971b7fa 12668
8690e634
JK
12669 memset (&state, '\0', sizeof (mbstate_t));
12670 if (mbrtowc (&wc, "", 1, &state) != 0)
12671 return 1;
12672 }
c971b7fa
PA
12673 return 0;
12674}
12675_ACEOF
12676if ac_fn_c_try_run "$LINENO"; then :
8690e634 12677 gl_cv_func_mbrtowc_nul_retval=yes
c971b7fa 12678else
8690e634 12679 gl_cv_func_mbrtowc_nul_retval=no
c971b7fa
PA
12680fi
12681rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12682 conftest.$ac_objext conftest.beam conftest.$ac_ext
12683fi
12684
8690e634
JK
12685 fi
12686
c971b7fa 12687fi
8690e634
JK
12688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
12689$as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
12690
12691 case "$gl_cv_func_mbrtowc_null_arg1" in
12692 *yes) ;;
12693 *)
12694$as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
12695
12696 REPLACE_MBRTOWC=1
12697 ;;
12698 esac
12699 case "$gl_cv_func_mbrtowc_null_arg2" in
12700 *yes) ;;
12701 *)
12702$as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
12703
12704 REPLACE_MBRTOWC=1
12705 ;;
12706 esac
12707 case "$gl_cv_func_mbrtowc_retval" in
12708 *yes) ;;
12709 *)
12710$as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
12711
12712 REPLACE_MBRTOWC=1
12713 ;;
12714 esac
12715 case "$gl_cv_func_mbrtowc_nul_retval" in
12716 *yes) ;;
12717 *)
12718$as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
12719
12720 REPLACE_MBRTOWC=1
12721 ;;
12722 esac
c971b7fa
PA
12723 fi
12724 fi
12725
a512b375 12726 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
c971b7fa 12727
c971b7fa 12728
c971b7fa
PA
12729
12730
12731
12732
12733
12734
8690e634
JK
12735 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
12736
12737
12738 :
c971b7fa 12739
a512b375 12740 fi
c971b7fa 12741
8690e634
JK
12742
12743
12744
12745
12746 GNULIB_MBRTOWC=1
12747
12748
12749
12750
12751
12752$as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
c971b7fa 12765
c971b7fa 12766
8690e634 12767 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
c971b7fa 12768
8690e634
JK
12769
12770
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
12772$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
12773if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
12774 $as_echo_n "(cached) " >&6
12775else
12776
12777 case "$host_os" in
12778 # Guess no on AIX and OSF/1.
12779 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
12780 # Guess yes otherwise.
12781 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
12782 esac
12783 if test $LOCALE_JA != none; then
12784 if test "$cross_compiling" = yes; then :
12785 :
c971b7fa
PA
12786else
12787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12788/* end confdefs.h. */
12789
8690e634
JK
12790#include <locale.h>
12791#include <string.h>
12792/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12793 <wchar.h>.
12794 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12795 included before <wchar.h>. */
12796#include <stddef.h>
12797#include <stdio.h>
12798#include <time.h>
12799#include <wchar.h>
12800int main ()
c971b7fa 12801{
8690e634 12802 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
c971b7fa 12803 {
8690e634
JK
12804 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
12805 mbstate_t state;
12806 wchar_t wc;
12807
12808 memset (&state, '\0', sizeof (mbstate_t));
12809 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
12810 if (mbsinit (&state))
12811 return 1;
c971b7fa 12812 }
c971b7fa
PA
12813 return 0;
12814}
12815_ACEOF
12816if ac_fn_c_try_run "$LINENO"; then :
8690e634 12817 gl_cv_func_mbrtowc_incomplete_state=yes
c971b7fa 12818else
8690e634 12819 gl_cv_func_mbrtowc_incomplete_state=no
c971b7fa
PA
12820fi
12821rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12822 conftest.$ac_objext conftest.beam conftest.$ac_ext
12823fi
12824
8690e634 12825 fi
c971b7fa
PA
12826
12827fi
8690e634
JK
12828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
12829$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
c971b7fa
PA
12830
12831
c971b7fa
PA
12832
12833
8690e634
JK
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
12835$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
12836if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
c971b7fa
PA
12837 $as_echo_n "(cached) " >&6
12838else
8690e634
JK
12839
12840 case "$host_os" in
12841 # Guess no on Solaris 8.
12842 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
12843 # Guess yes otherwise.
12844 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
12845 esac
12846 if test $LOCALE_ZH_CN != none; then
12847 if test "$cross_compiling" = yes; then :
12848 :
12849else
c971b7fa
PA
12850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12851/* end confdefs.h. */
8690e634
JK
12852
12853#include <locale.h>
12854#include <stdlib.h>
12855#include <string.h>
12856/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12857 <wchar.h>.
12858 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12859 included before <wchar.h>. */
c971b7fa 12860#include <stddef.h>
8690e634
JK
12861#include <stdio.h>
12862#include <time.h>
12863#include <wchar.h>
12864int main ()
c971b7fa 12865{
8690e634
JK
12866 /* This fails on Solaris 8:
12867 mbrtowc returns 2, and sets wc to 0x00F0.
12868 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
12869 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
12870 {
12871 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
12872 mbstate_t state;
12873 wchar_t wc;
12874
12875 memset (&state, '\0', sizeof (mbstate_t));
12876 if (mbrtowc (&wc, input + 3, 6, &state) != 4
12877 && mbtowc (&wc, input + 3, 6) == 4)
12878 return 1;
12879 }
c971b7fa
PA
12880 return 0;
12881}
12882_ACEOF
8690e634
JK
12883if ac_fn_c_try_run "$LINENO"; then :
12884 gl_cv_func_mbrtowc_sanitycheck=yes
c971b7fa 12885else
8690e634 12886 gl_cv_func_mbrtowc_sanitycheck=no
c971b7fa 12887fi
8690e634
JK
12888rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12889 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 12890fi
c971b7fa 12891
8690e634
JK
12892 fi
12893
12894fi
12895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
12896$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
c971b7fa 12897
8690e634
JK
12898 REPLACE_MBSTATE_T=0
12899 case "$gl_cv_func_mbrtowc_incomplete_state" in
12900 *yes) ;;
12901 *) REPLACE_MBSTATE_T=1 ;;
12902 esac
12903 case "$gl_cv_func_mbrtowc_sanitycheck" in
12904 *yes) ;;
12905 *) REPLACE_MBSTATE_T=1 ;;
12906 esac
12907 else
12908 REPLACE_MBSTATE_T=1
c971b7fa
PA
12909 fi
12910
c971b7fa 12911
8690e634 12912
8690e634
JK
12913 if test $ac_cv_func_mbsinit = no; then
12914 HAVE_MBSINIT=0
12915 ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
12916/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12917 <wchar.h>.
12918 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12919 included before <wchar.h>. */
12920#include <stddef.h>
12921#include <stdio.h>
12922#include <time.h>
12923#include <wchar.h>
12924
12925"
12926if test "x$ac_cv_have_decl_mbsinit" = x""yes; then :
12927 ac_have_decl=1
12928else
12929 ac_have_decl=0
c971b7fa 12930fi
c971b7fa 12931
8690e634
JK
12932cat >>confdefs.h <<_ACEOF
12933#define HAVE_DECL_MBSINIT $ac_have_decl
c971b7fa 12934_ACEOF
c971b7fa 12935
8690e634
JK
12936 if test $ac_cv_have_decl_mbsinit = yes; then
12937 REPLACE_MBSINIT=1
12938 fi
12939 else
12940 if test $REPLACE_MBSTATE_T = 1; then
12941 REPLACE_MBSINIT=1
12942 else
12943 case "$host_os" in
12944 mingw*) REPLACE_MBSINIT=1 ;;
12945 esac
12946 fi
12947 fi
c971b7fa 12948
a512b375 12949 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
c971b7fa
PA
12950
12951
12952
12953
12954
12955
12956
12957
8690e634 12958 gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
c971b7fa
PA
12959
12960
8690e634 12961 :
c971b7fa 12962
a512b375 12963 fi
c971b7fa 12964
c971b7fa 12965
c971b7fa 12966
c971b7fa
PA
12967
12968
8690e634 12969 GNULIB_MBSINIT=1
c971b7fa 12970
c971b7fa
PA
12971
12972
12973
12974
8690e634 12975$as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
c971b7fa
PA
12976
12977
c971b7fa 12978
c971b7fa 12979
c971b7fa
PA
12980
12981
12982
c971b7fa 12983
c971b7fa
PA
12984
12985
12986
12987
8690e634
JK
12988
12989 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
c971b7fa
PA
12990
12991
12992
8690e634
JK
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
12994$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
12995if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
12996 $as_echo_n "(cached) " >&6
12997else
c971b7fa 12998
8690e634
JK
12999 case "$host_os" in
13000 # Guess no on AIX and OSF/1.
13001 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
13002 # Guess yes otherwise.
13003 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
c971b7fa 13004 esac
8690e634
JK
13005 if test $LOCALE_JA != none; then
13006 if test "$cross_compiling" = yes; then :
13007 :
13008else
13009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa 13010/* end confdefs.h. */
c971b7fa 13011
8690e634
JK
13012#include <locale.h>
13013#include <string.h>
13014/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13015 <wchar.h>.
13016 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13017 included before <wchar.h>. */
13018#include <stddef.h>
13019#include <stdio.h>
13020#include <time.h>
13021#include <wchar.h>
13022int main ()
13023{
13024 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
13025 {
13026 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
13027 mbstate_t state;
13028 wchar_t wc;
13029
13030 memset (&state, '\0', sizeof (mbstate_t));
13031 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
13032 if (mbsinit (&state))
13033 return 1;
13034 }
c971b7fa
PA
13035 return 0;
13036}
13037_ACEOF
8690e634
JK
13038if ac_fn_c_try_run "$LINENO"; then :
13039 gl_cv_func_mbrtowc_incomplete_state=yes
13040else
13041 gl_cv_func_mbrtowc_incomplete_state=no
13042fi
13043rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13044 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 13045fi
c971b7fa 13046
8690e634 13047 fi
c971b7fa 13048
8690e634
JK
13049fi
13050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
13051$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
c971b7fa 13052
8690e634
JK
13053
13054
13055
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
13057$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
13058if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
c971b7fa
PA
13059 $as_echo_n "(cached) " >&6
13060else
8690e634
JK
13061
13062 case "$host_os" in
13063 # Guess no on Solaris 8.
13064 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
13065 # Guess yes otherwise.
13066 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
13067 esac
13068 if test $LOCALE_ZH_CN != none; then
13069 if test "$cross_compiling" = yes; then :
13070 :
13071else
c971b7fa
PA
13072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13073/* end confdefs.h. */
c971b7fa 13074
8690e634
JK
13075#include <locale.h>
13076#include <stdlib.h>
13077#include <string.h>
13078/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13079 <wchar.h>.
13080 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13081 included before <wchar.h>. */
13082#include <stddef.h>
13083#include <stdio.h>
13084#include <time.h>
13085#include <wchar.h>
13086int main ()
c971b7fa 13087{
8690e634
JK
13088 /* This fails on Solaris 8:
13089 mbrtowc returns 2, and sets wc to 0x00F0.
13090 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
13091 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
13092 {
13093 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
13094 mbstate_t state;
13095 wchar_t wc;
13096
13097 memset (&state, '\0', sizeof (mbstate_t));
13098 if (mbrtowc (&wc, input + 3, 6, &state) != 4
13099 && mbtowc (&wc, input + 3, 6) == 4)
13100 return 1;
13101 }
c971b7fa
PA
13102 return 0;
13103}
13104_ACEOF
8690e634
JK
13105if ac_fn_c_try_run "$LINENO"; then :
13106 gl_cv_func_mbrtowc_sanitycheck=yes
c971b7fa 13107else
8690e634 13108 gl_cv_func_mbrtowc_sanitycheck=no
c971b7fa 13109fi
8690e634
JK
13110rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13111 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 13112fi
8690e634
JK
13113
13114 fi
13115
13116fi
13117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
13118$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
13119
13120 REPLACE_MBSTATE_T=0
13121 case "$gl_cv_func_mbrtowc_incomplete_state" in
13122 *yes) ;;
13123 *) REPLACE_MBSTATE_T=1 ;;
13124 esac
13125 case "$gl_cv_func_mbrtowc_sanitycheck" in
13126 *yes) ;;
13127 *) REPLACE_MBSTATE_T=1 ;;
13128 esac
c971b7fa 13129 else
8690e634 13130 REPLACE_MBSTATE_T=1
c971b7fa
PA
13131 fi
13132
13133
c971b7fa 13134
8690e634
JK
13135 if test $ac_cv_func_mbsrtowcs = no; then
13136 HAVE_MBSRTOWCS=0
13137 ac_fn_c_check_decl "$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
13138/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13139 <wchar.h>.
13140 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13141 included before <wchar.h>. */
13142#include <stddef.h>
13143#include <stdio.h>
13144#include <time.h>
13145#include <wchar.h>
13146
13147"
13148if test "x$ac_cv_have_decl_mbsrtowcs" = x""yes; then :
13149 ac_have_decl=1
c971b7fa 13150else
8690e634 13151 ac_have_decl=0
c971b7fa 13152fi
c971b7fa 13153
8690e634
JK
13154cat >>confdefs.h <<_ACEOF
13155#define HAVE_DECL_MBSRTOWCS $ac_have_decl
13156_ACEOF
c971b7fa 13157
8690e634
JK
13158 if test $ac_cv_have_decl_mbsrtowcs = yes; then
13159 REPLACE_MBSRTOWCS=1
13160 fi
c971b7fa 13161 else
8690e634
JK
13162 if test $REPLACE_MBSTATE_T = 1; then
13163 REPLACE_MBSRTOWCS=1
13164 else
c971b7fa 13165
8690e634
JK
13166
13167
13168
13169
13170
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
13172$as_echo_n "checking whether mbsrtowcs works... " >&6; }
13173if test "${gl_cv_func_mbsrtowcs_works+set}" = set; then :
c971b7fa
PA
13174 $as_echo_n "(cached) " >&6
13175else
8690e634
JK
13176
13177 case "$host_os" in
13178 # Guess no on HP-UX, Solaris, mingw.
13179 hpux* | solaris* | mingw*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
13180 # Guess yes otherwise.
13181 *) gl_cv_func_mbsrtowcs_works="guessing yes" ;;
13182 esac
13183 if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
13184 if test "$cross_compiling" = yes; then :
13185 :
13186else
c971b7fa
PA
13187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13188/* end confdefs.h. */
c971b7fa 13189
8690e634
JK
13190#include <locale.h>
13191#include <string.h>
13192/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13193 <wchar.h>.
13194 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13195 included before <wchar.h>. */
13196#include <stddef.h>
13197#include <stdio.h>
13198#include <time.h>
13199#include <wchar.h>
13200int main ()
c971b7fa 13201{
8690e634
JK
13202 int result = 0;
13203 /* Test whether the function supports a NULL destination argument.
13204 This fails on native Windows. */
13205 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
13206 {
13207 const char input[] = "\337er";
13208 const char *src = input;
13209 mbstate_t state;
c971b7fa 13210
8690e634
JK
13211 memset (&state, '\0', sizeof (mbstate_t));
13212 if (mbsrtowcs (NULL, &src, 1, &state) != 3
13213 || src != input)
13214 result |= 1;
13215 }
13216 /* Test whether the function works when started with a conversion state
13217 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
13218 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
13219 {
13220 const char input[] = "B\303\274\303\237er";
13221 mbstate_t state;
13222
13223 memset (&state, '\0', sizeof (mbstate_t));
13224 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
13225 if (!mbsinit (&state))
13226 {
13227 const char *src = input + 2;
13228 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
13229 result |= 2;
13230 }
13231 }
13232 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
13233 {
13234 const char input[] = "<\306\374\313\334\270\354>";
13235 mbstate_t state;
13236
13237 memset (&state, '\0', sizeof (mbstate_t));
13238 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
13239 if (!mbsinit (&state))
13240 {
13241 const char *src = input + 4;
13242 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
13243 result |= 4;
13244 }
13245 }
13246 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
13247 {
13248 const char input[] = "B\250\271\201\060\211\070er";
13249 mbstate_t state;
13250
13251 memset (&state, '\0', sizeof (mbstate_t));
13252 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
13253 if (!mbsinit (&state))
13254 {
13255 const char *src = input + 2;
13256 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
13257 result |= 8;
13258 }
13259 }
13260 return result;
c971b7fa
PA
13261}
13262_ACEOF
8690e634
JK
13263if ac_fn_c_try_run "$LINENO"; then :
13264 gl_cv_func_mbsrtowcs_works=yes
c971b7fa 13265else
8690e634 13266 gl_cv_func_mbsrtowcs_works=no
c971b7fa 13267fi
8690e634
JK
13268rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13269 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 13270fi
8690e634
JK
13271
13272 fi
13273
13274fi
13275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
13276$as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
13277
13278 case "$gl_cv_func_mbsrtowcs_works" in
13279 *yes) ;;
13280 *) REPLACE_MBSRTOWCS=1 ;;
13281 esac
13282 fi
c971b7fa
PA
13283 fi
13284
a512b375 13285 if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
c971b7fa 13286
c971b7fa 13287
c971b7fa 13288
c971b7fa 13289
c971b7fa 13290
c971b7fa 13291
c971b7fa
PA
13292
13293
8690e634
JK
13294 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext"
13295
13296
13297
13298
13299
13300
13301
13302
13303
13304 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
13305
13306
13307 :
13308
a512b375 13309 fi
8690e634
JK
13310
13311
13312
13313
13314
13315 GNULIB_MBSRTOWCS=1
13316
13317
13318
13319
13320
13321$as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
c971b7fa
PA
13322
13323
13324
13325
a512b375 13326 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
c971b7fa
PA
13327
13328
13329
13330
13331
13332
13333
13334
13335 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
13336
13337
13338 for ac_header in bp-sym.h
13339do :
13340 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
13341if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
13342 cat >>confdefs.h <<_ACEOF
13343#define HAVE_BP_SYM_H 1
13344_ACEOF
13345
13346fi
13347
13348done
13349
13350
a512b375 13351 fi
c971b7fa
PA
13352
13353
13354
13355
13356
13357 GNULIB_MEMCHR=1
13358
13359
13360
13361
13362
13363$as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
13364
13365
13366
13367
13368
13369 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
13371$as_echo_n "checking whether memmem works in linear time... " >&6; }
13372if test "${gl_cv_func_memmem_works_fast+set}" = set; then :
13373 $as_echo_n "(cached) " >&6
13374else
13375 if test "$cross_compiling" = yes; then :
13376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13377/* end confdefs.h. */
13378
13379#include <features.h>
13380#ifdef __GNU_LIBRARY__
13381 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
13382 && !defined __UCLIBC__
13383 Lucky user
13384 #endif
13385#endif
13386#ifdef __CYGWIN__
13387 #include <cygwin/version.h>
13388 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
13389 Lucky user
13390 #endif
13391#endif
13392
13393_ACEOF
13394if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13395 $EGREP "Lucky user" >/dev/null 2>&1; then :
63ce7108
TT
13396 gl_cv_func_memmem_works_fast="guessing yes"
13397else
13398 gl_cv_func_memmem_works_fast="guessing no"
13399fi
13400rm -f conftest*
13401
13402
13403else
13404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13405/* end confdefs.h. */
13406
13407#include <signal.h> /* for signal */
13408#include <string.h> /* for memmem */
13409#include <stdlib.h> /* for malloc */
13410#include <unistd.h> /* for alarm */
13411static void quit (int sig) { exit (sig + 128); }
13412
13413int
13414main ()
13415{
13416
13417 int result = 0;
13418 size_t m = 1000000;
13419 char *haystack = (char *) malloc (2 * m + 1);
13420 char *needle = (char *) malloc (m + 1);
13421 /* Failure to compile this test due to missing alarm is okay,
13422 since all such platforms (mingw) also lack memmem. */
13423 signal (SIGALRM, quit);
13424 alarm (5);
13425 /* Check for quadratic performance. */
13426 if (haystack && needle)
13427 {
13428 memset (haystack, 'A', 2 * m);
13429 haystack[2 * m] = 'B';
13430 memset (needle, 'A', m);
13431 needle[m] = 'B';
13432 if (!memmem (haystack, 2 * m + 1, needle, m + 1))
13433 result |= 1;
13434 }
13435 return result;
13436
13437 ;
13438 return 0;
13439}
13440_ACEOF
13441if ac_fn_c_try_run "$LINENO"; then :
13442 gl_cv_func_memmem_works_fast=yes
13443else
13444 gl_cv_func_memmem_works_fast=no
13445fi
13446rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13447 conftest.$ac_objext conftest.beam conftest.$ac_ext
13448fi
13449
13450
13451fi
13452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
13453$as_echo "$gl_cv_func_memmem_works_fast" >&6; }
13454 case "$gl_cv_func_memmem_works_fast" in
13455 *yes) ;;
13456 *)
13457 REPLACE_MEMMEM=1
13458 ;;
13459 esac
13460 fi
13461
13462 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
13463
13464
13465
13466
13467
13468
13469
13470
13471 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
13472
13473 fi
13474
13475
13476
13477
13478 for ac_func in memmem
13479do :
13480 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
13481if test "x$ac_cv_func_memmem" = x""yes; then :
13482 cat >>confdefs.h <<_ACEOF
13483#define HAVE_MEMMEM 1
13484_ACEOF
13485
13486fi
13487done
13488
13489 if test $ac_cv_func_memmem = yes; then
13490 HAVE_MEMMEM=1
13491 else
13492 HAVE_MEMMEM=0
13493 fi
13494
13495 if test $ac_cv_have_decl_memmem = no; then
13496 HAVE_DECL_MEMMEM=0
13497 else
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
13499$as_echo_n "checking whether memmem works... " >&6; }
13500if test "${gl_cv_func_memmem_works_always+set}" = set; then :
13501 $as_echo_n "(cached) " >&6
13502else
13503 if test "$cross_compiling" = yes; then :
13504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13505/* end confdefs.h. */
13506
13507#ifdef __GNU_LIBRARY__
13508 #include <features.h>
13509 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
13510 || __GLIBC_MINOR__ > 12)) \
13511 || (__GLIBC__ > 2)) \
13512 || defined __UCLIBC__
13513 Lucky user
13514 #endif
13515#elif defined __CYGWIN__
13516 #include <cygwin/version.h>
13517 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
13518 Lucky user
13519 #endif
13520#else
13521 Lucky user
13522#endif
13523
13524_ACEOF
13525if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13526 $EGREP "Lucky user" >/dev/null 2>&1; then :
13527 gl_cv_func_memmem_works_always="guessing yes"
13528else
13529 gl_cv_func_memmem_works_always="guessing no"
13530fi
13531rm -f conftest*
13532
13533
13534else
13535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13536/* end confdefs.h. */
13537
13538#include <string.h> /* for memmem */
13539#define P "_EF_BF_BD"
13540#define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
13541#define NEEDLE P P P P P
13542
13543int
13544main ()
13545{
13546
13547 int result = 0;
13548 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
13549 result |= 1;
13550 /* Check for empty needle behavior. */
13551 {
13552 const char *haystack = "AAA";
13553 if (memmem (haystack, 3, NULL, 0) != haystack)
13554 result |= 2;
13555 }
13556 return result;
13557
13558 ;
13559 return 0;
13560}
13561_ACEOF
13562if ac_fn_c_try_run "$LINENO"; then :
13563 gl_cv_func_memmem_works_always=yes
13564else
13565 gl_cv_func_memmem_works_always=no
13566fi
13567rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13568 conftest.$ac_objext conftest.beam conftest.$ac_ext
13569fi
13570
13571
13572fi
13573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
13574$as_echo "$gl_cv_func_memmem_works_always" >&6; }
13575 case "$gl_cv_func_memmem_works_always" in
13576 *yes) ;;
13577 *)
13578 REPLACE_MEMMEM=1
13579 ;;
13580 esac
13581 fi
13582 :
13583
13584 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
13585
13586
13587
13588
13589
13590
13591
13592
13593 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
13594
13595 fi
13596
13597
13598
13599
13600
13601 GNULIB_MEMMEM=1
13602
13603
13604
13605
13606
13607$as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
13608
13609
13610
13611
13612
13613
13614
13615
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
13617$as_echo_n "checking for ssize_t... " >&6; }
13618if test "${gt_cv_ssize_t+set}" = set; then :
13619 $as_echo_n "(cached) " >&6
13620else
13621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13622/* end confdefs.h. */
13623#include <sys/types.h>
13624int
13625main ()
13626{
13627int x = sizeof (ssize_t *) + sizeof (ssize_t);
13628 return !x;
13629 ;
13630 return 0;
13631}
13632_ACEOF
13633if ac_fn_c_try_compile "$LINENO"; then :
13634 gt_cv_ssize_t=yes
13635else
13636 gt_cv_ssize_t=no
13637fi
13638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13639fi
13640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
13641$as_echo "$gt_cv_ssize_t" >&6; }
13642 if test $gt_cv_ssize_t = no; then
13643
13644$as_echo "#define ssize_t int" >>confdefs.h
13645
13646 fi
13647
13648
13649
13650
13651 # Define two additional variables used in the Makefile substitution.
13652
13653 if test "$ac_cv_header_stdbool_h" = yes; then
13654 STDBOOL_H=''
13655 else
13656 STDBOOL_H='stdbool.h'
13657 fi
13658
13659 if test -n "$STDBOOL_H"; then
13660 GL_GENERATE_STDBOOL_H_TRUE=
13661 GL_GENERATE_STDBOOL_H_FALSE='#'
13662else
13663 GL_GENERATE_STDBOOL_H_TRUE='#'
13664 GL_GENERATE_STDBOOL_H_FALSE=
13665fi
13666
13667
13668 if test "$ac_cv_type__Bool" = yes; then
13669 HAVE__BOOL=1
13670 else
13671 HAVE__BOOL=0
13672 fi
13673
13674
13675
13676
13677
13678 STDDEF_H=
13679 if test $gt_cv_c_wchar_t = no; then
13680 HAVE_WCHAR_T=0
13681 STDDEF_H=stddef.h
13682 fi
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
13684$as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
13685if test "${gl_cv_decl_null_works+set}" = set; then :
13686 $as_echo_n "(cached) " >&6
13687else
13688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13689/* end confdefs.h. */
13690#include <stddef.h>
13691 int test[2 * (sizeof NULL == sizeof (void *)) -1];
13692
13693int
13694main ()
13695{
13696
13697 ;
13698 return 0;
13699}
13700_ACEOF
13701if ac_fn_c_try_compile "$LINENO"; then :
13702 gl_cv_decl_null_works=yes
13703else
13704 gl_cv_decl_null_works=no
13705fi
13706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13707fi
13708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
13709$as_echo "$gl_cv_decl_null_works" >&6; }
13710 if test $gl_cv_decl_null_works = no; then
13711 REPLACE_NULL=1
13712 STDDEF_H=stddef.h
13713 fi
13714
13715 if test -n "$STDDEF_H"; then
13716 GL_GENERATE_STDDEF_H_TRUE=
13717 GL_GENERATE_STDDEF_H_FALSE='#'
13718else
13719 GL_GENERATE_STDDEF_H_TRUE='#'
13720 GL_GENERATE_STDDEF_H_FALSE=
13721fi
13722
13723 if test -n "$STDDEF_H"; then
13724
13725
13726
13727
13728
13729
13730
13731
13732 if test $gl_cv_have_include_next = yes; then
13733 gl_cv_next_stddef_h='<'stddef.h'>'
13734 else
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
13736$as_echo_n "checking absolute name of <stddef.h>... " >&6; }
13737if test "${gl_cv_next_stddef_h+set}" = set; then :
13738 $as_echo_n "(cached) " >&6
13739else
13740
13741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13742/* end confdefs.h. */
13743#include <stddef.h>
13744
13745_ACEOF
13746 case "$host_os" in
13747 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13748 *) gl_absname_cpp="$ac_cpp" ;;
13749 esac
13750
13751 case "$host_os" in
13752 mingw*)
13753 gl_dirsep_regex='[/\\]'
13754 ;;
13755 *)
13756 gl_dirsep_regex='\/'
13757 ;;
13758 esac
13759 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
13760
13761 gl_header_literal_regex=`echo 'stddef.h' \
13762 | sed -e "$gl_make_literal_regex_sed"`
13763 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13764 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13765 s|^/[^/]|//&|
13766 p
13767 q
13768 }'
13769 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13770 sed -n "$gl_absolute_header_sed"`'"'
13771
13772
13773fi
13774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
13775$as_echo "$gl_cv_next_stddef_h" >&6; }
13776 fi
13777 NEXT_STDDEF_H=$gl_cv_next_stddef_h
13778
13779 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13780 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13781 gl_next_as_first_directive='<'stddef.h'>'
13782 else
13783 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13784 gl_next_as_first_directive=$gl_cv_next_stddef_h
13785 fi
13786 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
13787
13788
13789
13790
13791 fi
13792
13793
13794
13795
13796
13797
13798
13799 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
13801$as_echo_n "checking for working strerror function... " >&6; }
13802if test "${gl_cv_func_working_strerror+set}" = set; then :
13803 $as_echo_n "(cached) " >&6
13804else
13805 if test "$cross_compiling" = yes; then :
13806 case "$host_os" in
13807 # Guess yes on glibc systems.
13808 *-gnu*) gl_cv_func_working_strerror="guessing yes" ;;
13809 # If we don't know, assume the worst.
13810 *) gl_cv_func_working_strerror="guessing no" ;;
13811 esac
13812
13813else
13814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13815/* end confdefs.h. */
13816#include <string.h>
13817
13818int
13819main ()
13820{
13821if (!*strerror (-2)) return 1;
13822 ;
13823 return 0;
13824}
13825_ACEOF
13826if ac_fn_c_try_run "$LINENO"; then :
13827 gl_cv_func_working_strerror=yes
13828else
13829 gl_cv_func_working_strerror=no
13830fi
13831rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13832 conftest.$ac_objext conftest.beam conftest.$ac_ext
13833fi
13834
13835
13836fi
13837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
13838$as_echo "$gl_cv_func_working_strerror" >&6; }
13839 case "$gl_cv_func_working_strerror" in
13840 *yes) ;;
13841 *)
13842 REPLACE_STRERROR=1
13843 ;;
13844 esac
13845
13846 else
13847 REPLACE_STRERROR=1
13848 fi
13849
13850 if test $REPLACE_STRERROR = 1; then
13851
13852
13853
13854
13855
13856
13857
13858
13859 gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
13860
13861 fi
13862
13863
13864cat >>confdefs.h <<_ACEOF
13865#define GNULIB_STRERROR 1
13866_ACEOF
13867
13868
13869
13870
13871
13872
13873
13874 GNULIB_STRERROR=1
13875
13876
13877
13878
13879
13880$as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
13881
13882
13883
13884
13885
13886 if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
13887
13888
13889
13890
13891
13892
13893
13894
13895 gl_LIBOBJS="$gl_LIBOBJS strerror-override.$ac_objext"
13896
13897
13898
13899
13900
13901 if test $ac_cv_header_sys_socket_h != yes; then
13902 for ac_header in winsock2.h
13903do :
13904 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
13905if test "x$ac_cv_header_winsock2_h" = x""yes; then :
13906 cat >>confdefs.h <<_ACEOF
13907#define HAVE_WINSOCK2_H 1
13908_ACEOF
13909
13910fi
13911
13912done
13913
13914 fi
13915 if test "$ac_cv_header_winsock2_h" = yes; then
13916 HAVE_WINSOCK2_H=1
13917 UNISTD_H_HAVE_WINSOCK2_H=1
13918 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
13919 else
13920 HAVE_WINSOCK2_H=0
13921 fi
13922
13923
13924 fi
13925
13926
13927
13928
13929
13930 if test $REPLACE_STRSTR = 0; then
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works in linear time" >&5
13932$as_echo_n "checking whether strstr works in linear time... " >&6; }
13933if test "${gl_cv_func_strstr_linear+set}" = set; then :
13934 $as_echo_n "(cached) " >&6
13935else
13936 if test "$cross_compiling" = yes; then :
13937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13938/* end confdefs.h. */
13939
13940#include <features.h>
13941#ifdef __GNU_LIBRARY__
13942 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
13943 && !(defined __i386__ || defined __x86_64__) \
13944 && !defined __UCLIBC__
13945 Lucky user
13946 #endif
13947#endif
13948#ifdef __CYGWIN__
13949 #include <cygwin/version.h>
13950 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
13951 Lucky user
13952 #endif
13953#endif
13954
13955_ACEOF
13956if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13957 $EGREP "Lucky user" >/dev/null 2>&1; then :
13958 gl_cv_func_strstr_linear="guessing yes"
c971b7fa 13959else
63ce7108 13960 gl_cv_func_strstr_linear="guessing no"
c971b7fa
PA
13961fi
13962rm -f conftest*
13963
13964
13965else
13966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13967/* end confdefs.h. */
13968
13969#include <signal.h> /* for signal */
63ce7108 13970#include <string.h> /* for strstr */
c971b7fa
PA
13971#include <stdlib.h> /* for malloc */
13972#include <unistd.h> /* for alarm */
13973static void quit (int sig) { exit (sig + 128); }
13974
13975int
13976main ()
13977{
13978
13979 int result = 0;
13980 size_t m = 1000000;
63ce7108
TT
13981 char *haystack = (char *) malloc (2 * m + 2);
13982 char *needle = (char *) malloc (m + 2);
c971b7fa 13983 /* Failure to compile this test due to missing alarm is okay,
63ce7108 13984 since all such platforms (mingw) also have quadratic strstr. */
c971b7fa
PA
13985 signal (SIGALRM, quit);
13986 alarm (5);
13987 /* Check for quadratic performance. */
13988 if (haystack && needle)
13989 {
13990 memset (haystack, 'A', 2 * m);
13991 haystack[2 * m] = 'B';
63ce7108 13992 haystack[2 * m + 1] = 0;
c971b7fa
PA
13993 memset (needle, 'A', m);
13994 needle[m] = 'B';
63ce7108
TT
13995 needle[m + 1] = 0;
13996 if (!strstr (haystack, needle))
c971b7fa
PA
13997 result |= 1;
13998 }
13999 return result;
14000
14001 ;
14002 return 0;
14003}
14004_ACEOF
14005if ac_fn_c_try_run "$LINENO"; then :
63ce7108 14006 gl_cv_func_strstr_linear=yes
c971b7fa 14007else
63ce7108 14008 gl_cv_func_strstr_linear=no
c971b7fa
PA
14009fi
14010rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14011 conftest.$ac_objext conftest.beam conftest.$ac_ext
14012fi
14013
14014
14015fi
63ce7108
TT
14016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_linear" >&5
14017$as_echo "$gl_cv_func_strstr_linear" >&6; }
14018 case "$gl_cv_func_strstr_linear" in
40a73391
JK
14019 *yes) ;;
14020 *)
63ce7108 14021 REPLACE_STRSTR=1
40a73391
JK
14022 ;;
14023 esac
c971b7fa
PA
14024 fi
14025
63ce7108 14026 if test $REPLACE_STRSTR = 1; then
c971b7fa
PA
14027
14028
14029
14030
14031
14032
14033
14034
63ce7108 14035 gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
c971b7fa 14036
a512b375 14037 fi
c971b7fa
PA
14038
14039
14040
63ce7108
TT
14041 if test "$gl_cv_func_memchr_works" != yes; then
14042 REPLACE_STRSTR=1
c971b7fa 14043 else
63ce7108
TT
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
14045$as_echo_n "checking whether strstr works... " >&6; }
14046if test "${gl_cv_func_strstr_works_always+set}" = set; then :
c971b7fa
PA
14047 $as_echo_n "(cached) " >&6
14048else
14049 if test "$cross_compiling" = yes; then :
63ce7108 14050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa
PA
14051/* end confdefs.h. */
14052
14053#ifdef __GNU_LIBRARY__
14054 #include <features.h>
63ce7108 14055 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
c971b7fa
PA
14056 || defined __UCLIBC__
14057 Lucky user
14058 #endif
14059#elif defined __CYGWIN__
14060 #include <cygwin/version.h>
14061 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
14062 Lucky user
14063 #endif
14064#else
14065 Lucky user
14066#endif
14067
14068_ACEOF
14069if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14070 $EGREP "Lucky user" >/dev/null 2>&1; then :
63ce7108 14071 gl_cv_func_strstr_works_always="guessing yes"
c971b7fa 14072else
63ce7108 14073 gl_cv_func_strstr_works_always="guessing no"
c971b7fa
PA
14074fi
14075rm -f conftest*
14076
14077
14078else
14079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14080/* end confdefs.h. */
14081
63ce7108 14082#include <string.h> /* for strstr */
c971b7fa
PA
14083#define P "_EF_BF_BD"
14084#define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
14085#define NEEDLE P P P P P
14086
14087int
14088main ()
14089{
63ce7108 14090return !!strstr (HAYSTACK, NEEDLE);
c971b7fa
PA
14091
14092 ;
14093 return 0;
14094}
14095_ACEOF
14096if ac_fn_c_try_run "$LINENO"; then :
63ce7108 14097 gl_cv_func_strstr_works_always=yes
c971b7fa 14098else
63ce7108 14099 gl_cv_func_strstr_works_always=no
c971b7fa
PA
14100fi
14101rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14102 conftest.$ac_objext conftest.beam conftest.$ac_ext
14103fi
14104
14105
14106fi
63ce7108
TT
14107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
14108$as_echo "$gl_cv_func_strstr_works_always" >&6; }
14109 case "$gl_cv_func_strstr_works_always" in
40a73391
JK
14110 *yes) ;;
14111 *)
63ce7108 14112 REPLACE_STRSTR=1
40a73391
JK
14113 ;;
14114 esac
c971b7fa 14115 fi
8839a007 14116
63ce7108 14117 if test $REPLACE_STRSTR = 1; then
8839a007 14118
8690e634
JK
14119
14120
8690e634
JK
14121
14122
14123
14124
14125
63ce7108 14126 gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
8690e634 14127
8690e634
JK
14128 fi
14129
8690e634
JK
14130
14131
8690e634 14132
8690e634 14133
63ce7108 14134 GNULIB_STRSTR=1
8690e634
JK
14135
14136
14137
8690e634
JK
14138
14139
63ce7108 14140$as_echo "#define GNULIB_TEST_STRSTR 1" >>confdefs.h
8690e634
JK
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
8690e634 14153
8839a007
PA
14154 if test $gl_cv_have_include_next = yes; then
14155 gl_cv_next_sys_types_h='<'sys/types.h'>'
14156 else
14157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
14158$as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
14159if test "${gl_cv_next_sys_types_h+set}" = set; then :
14160 $as_echo_n "(cached) " >&6
14161else
14162
14163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14164/* end confdefs.h. */
14165#include <sys/types.h>
14166
14167_ACEOF
14168 case "$host_os" in
14169 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14170 *) gl_absname_cpp="$ac_cpp" ;;
14171 esac
14172
14173 case "$host_os" in
14174 mingw*)
14175 gl_dirsep_regex='[/\\]'
14176 ;;
14177 *)
14178 gl_dirsep_regex='\/'
14179 ;;
14180 esac
14181 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14182
14183 gl_header_literal_regex=`echo 'sys/types.h' \
14184 | sed -e "$gl_make_literal_regex_sed"`
14185 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14186 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14187 s|^/[^/]|//&|
14188 p
14189 q
14190 }'
14191 gl_cv_next_sys_types_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14192 sed -n "$gl_absolute_header_sed"`'"'
14193
14194
14195fi
14196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
14197$as_echo "$gl_cv_next_sys_types_h" >&6; }
14198 fi
14199 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
14200
14201 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14202 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14203 gl_next_as_first_directive='<'sys/types.h'>'
14204 else
14205 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14206 gl_next_as_first_directive=$gl_cv_next_sys_types_h
14207 fi
14208 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218
14219
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234 if test $gl_cv_have_include_next = yes; then
14235 gl_cv_next_unistd_h='<'unistd.h'>'
14236 else
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
14238$as_echo_n "checking absolute name of <unistd.h>... " >&6; }
14239if test "${gl_cv_next_unistd_h+set}" = set; then :
14240 $as_echo_n "(cached) " >&6
14241else
14242
14243 if test $ac_cv_header_unistd_h = yes; then
14244
14245
14246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14247/* end confdefs.h. */
14248#include <unistd.h>
14249
14250_ACEOF
14251 case "$host_os" in
14252 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14253 *) gl_absname_cpp="$ac_cpp" ;;
14254 esac
14255
14256 case "$host_os" in
14257 mingw*)
14258 gl_dirsep_regex='[/\\]'
14259 ;;
14260 *)
14261 gl_dirsep_regex='\/'
14262 ;;
14263 esac
14264 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14265
14266 gl_header_literal_regex=`echo 'unistd.h' \
14267 | sed -e "$gl_make_literal_regex_sed"`
14268 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14269 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14270 s|^/[^/]|//&|
14271 p
14272 q
14273 }'
14274 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14275 sed -n "$gl_absolute_header_sed"`'"'
14276 else
14277 gl_cv_next_unistd_h='<'unistd.h'>'
14278 fi
14279
14280
14281fi
14282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
14283$as_echo "$gl_cv_next_unistd_h" >&6; }
14284 fi
14285 NEXT_UNISTD_H=$gl_cv_next_unistd_h
14286
14287 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14288 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14289 gl_next_as_first_directive='<'unistd.h'>'
14290 else
14291 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14292 gl_next_as_first_directive=$gl_cv_next_unistd_h
14293 fi
14294 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
14295
14296
14297
14298
14299 if test $ac_cv_header_unistd_h = yes; then
14300 HAVE_UNISTD_H=1
14301 else
14302 HAVE_UNISTD_H=0
14303 fi
14304
14305
14306
14307
14308
14309
14310
14311 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
14312 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
14314$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
14315if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
14316 $as_echo_n "(cached) " >&6
14317else
14318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14319/* end confdefs.h. */
14320
14321#if HAVE_UNISTD_H
14322# include <unistd.h>
14323#endif
14324/* Some systems declare various items in the wrong headers. */
14325#if !(defined __GLIBC__ && !defined __UCLIBC__)
14326# include <fcntl.h>
14327# include <stdio.h>
14328# include <stdlib.h>
14329# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
14330# include <io.h>
14331# endif
14332#endif
14333
14334int
14335main ()
14336{
14337#undef $gl_func
14338 (void) $gl_func;
14339 ;
14340 return 0;
14341}
14342_ACEOF
14343if ac_fn_c_try_compile "$LINENO"; then :
14344 eval "$as_gl_Symbol=yes"
14345else
14346 eval "$as_gl_Symbol=no"
14347fi
14348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14349fi
14350eval ac_res=\$$as_gl_Symbol
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14352$as_echo "$ac_res" >&6; }
14353 eval as_val=\$$as_gl_Symbol
14354 if test "x$as_val" = x""yes; then :
14355 cat >>confdefs.h <<_ACEOF
14356#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
14357_ACEOF
14358
14359 eval ac_cv_have_decl_$gl_func=yes
14360fi
14361 done
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
8690e634
JK
14374
14375
14376 if test $gl_cv_have_include_next = yes; then
14377 gl_cv_next_wchar_h='<'wchar.h'>'
14378 else
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
14380$as_echo_n "checking absolute name of <wchar.h>... " >&6; }
14381if test "${gl_cv_next_wchar_h+set}" = set; then :
14382 $as_echo_n "(cached) " >&6
14383else
14384
14385 if test $ac_cv_header_wchar_h = yes; then
14386
14387
14388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14389/* end confdefs.h. */
14390#include <wchar.h>
14391
14392_ACEOF
14393 case "$host_os" in
14394 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14395 *) gl_absname_cpp="$ac_cpp" ;;
14396 esac
14397
14398 case "$host_os" in
14399 mingw*)
14400 gl_dirsep_regex='[/\\]'
14401 ;;
14402 *)
14403 gl_dirsep_regex='\/'
14404 ;;
14405 esac
14406 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14407
14408 gl_header_literal_regex=`echo 'wchar.h' \
14409 | sed -e "$gl_make_literal_regex_sed"`
14410 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14411 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14412 s|^/[^/]|//&|
14413 p
14414 q
14415 }'
14416 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14417 sed -n "$gl_absolute_header_sed"`'"'
14418 else
14419 gl_cv_next_wchar_h='<'wchar.h'>'
14420 fi
14421
14422
14423fi
14424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
14425$as_echo "$gl_cv_next_wchar_h" >&6; }
14426 fi
14427 NEXT_WCHAR_H=$gl_cv_next_wchar_h
14428
14429 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14430 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14431 gl_next_as_first_directive='<'wchar.h'>'
14432 else
14433 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14434 gl_next_as_first_directive=$gl_cv_next_wchar_h
14435 fi
14436 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
14437
14438
14439
14440
14441 if test $ac_cv_header_wchar_h = yes; then
14442 HAVE_WCHAR_H=1
14443 else
14444 HAVE_WCHAR_H=0
14445 fi
14446
c971b7fa
PA
14447
14448
14449
14450
8690e634
JK
14451 if test $gt_cv_c_wint_t = yes; then
14452 HAVE_WINT_T=1
14453 else
14454 HAVE_WINT_T=0
14455 fi
c971b7fa
PA
14456
14457
14458
8690e634
JK
14459 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
14460 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
14462$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
14463if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
c971b7fa
PA
14464 $as_echo_n "(cached) " >&6
14465else
14466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14467/* end confdefs.h. */
8690e634
JK
14468
14469/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14470 <wchar.h>.
14471 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14472 included before <wchar.h>. */
14473#if !(defined __GLIBC__ && !defined __UCLIBC__)
14474# include <stddef.h>
14475# include <stdio.h>
14476# include <time.h>
14477#endif
14478#include <wchar.h>
c971b7fa
PA
14479
14480int
14481main ()
14482{
8690e634
JK
14483#undef $gl_func
14484 (void) $gl_func;
c971b7fa
PA
14485 ;
14486 return 0;
14487}
14488_ACEOF
14489if ac_fn_c_try_compile "$LINENO"; then :
8690e634 14490 eval "$as_gl_Symbol=yes"
c971b7fa 14491else
8690e634 14492 eval "$as_gl_Symbol=no"
c971b7fa
PA
14493fi
14494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14495fi
8690e634
JK
14496eval ac_res=\$$as_gl_Symbol
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14498$as_echo "$ac_res" >&6; }
14499 eval as_val=\$$as_gl_Symbol
14500 if test "x$as_val" = x""yes; then :
14501 cat >>confdefs.h <<_ACEOF
14502#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
14503_ACEOF
c971b7fa 14504
8690e634 14505 eval ac_cv_have_decl_$gl_func=yes
c971b7fa 14506fi
8690e634
JK
14507 done
14508
14509
14510
14511
14512
14513
14514
8690e634
JK
14515 if test $ac_cv_func_iswcntrl = yes; then
14516 HAVE_ISWCNTRL=1
14517 else
14518 HAVE_ISWCNTRL=0
14519 fi
14520
14521
14522
8690e634
JK
14523 if test $gt_cv_c_wint_t = yes; then
14524 HAVE_WINT_T=1
14525 else
14526 HAVE_WINT_T=0
14527 fi
14528
14529
14530
14531
14532
14533
c971b7fa 14534
8690e634 14535
c971b7fa
PA
14536
14537
14538
14539 if test $gl_cv_have_include_next = yes; then
8690e634 14540 gl_cv_next_wctype_h='<'wctype.h'>'
c971b7fa 14541 else
8690e634
JK
14542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
14543$as_echo_n "checking absolute name of <wctype.h>... " >&6; }
14544if test "${gl_cv_next_wctype_h+set}" = set; then :
c971b7fa
PA
14545 $as_echo_n "(cached) " >&6
14546else
14547
8690e634
JK
14548 if test $ac_cv_header_wctype_h = yes; then
14549
14550
c971b7fa
PA
14551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14552/* end confdefs.h. */
8690e634 14553#include <wctype.h>
c971b7fa
PA
14554
14555_ACEOF
14556 case "$host_os" in
14557 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14558 *) gl_absname_cpp="$ac_cpp" ;;
14559 esac
14560
14561 case "$host_os" in
14562 mingw*)
14563 gl_dirsep_regex='[/\\]'
14564 ;;
14565 *)
14566 gl_dirsep_regex='\/'
14567 ;;
14568 esac
14569 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14570
8690e634 14571 gl_header_literal_regex=`echo 'wctype.h' \
c971b7fa
PA
14572 | sed -e "$gl_make_literal_regex_sed"`
14573 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14574 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14575 s|^/[^/]|//&|
14576 p
14577 q
14578 }'
8690e634 14579 gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
c971b7fa 14580 sed -n "$gl_absolute_header_sed"`'"'
8690e634
JK
14581 else
14582 gl_cv_next_wctype_h='<'wctype.h'>'
14583 fi
c971b7fa
PA
14584
14585
14586fi
8690e634
JK
14587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
14588$as_echo "$gl_cv_next_wctype_h" >&6; }
c971b7fa 14589 fi
8690e634 14590 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
c971b7fa
PA
14591
14592 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14593 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8690e634 14594 gl_next_as_first_directive='<'wctype.h'>'
c971b7fa
PA
14595 else
14596 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8690e634 14597 gl_next_as_first_directive=$gl_cv_next_wctype_h
c971b7fa 14598 fi
8690e634
JK
14599 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
14600
14601
14602
14603
14604 if test $ac_cv_header_wctype_h = yes; then
14605 if test $ac_cv_func_iswcntrl = yes; then
14606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
14607$as_echo_n "checking whether iswcntrl works... " >&6; }
14608if test "${gl_cv_func_iswcntrl_works+set}" = set; then :
14609 $as_echo_n "(cached) " >&6
14610else
14611
14612 if test "$cross_compiling" = yes; then :
14613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14614/* end confdefs.h. */
14615#include <stdlib.h>
14616 #if __GNU_LIBRARY__ == 1
14617 Linux libc5 i18n is broken.
14618 #endif
14619int
14620main ()
14621{
14622
14623 ;
14624 return 0;
14625}
14626_ACEOF
14627if ac_fn_c_try_compile "$LINENO"; then :
14628 gl_cv_func_iswcntrl_works="guessing yes"
14629else
14630 gl_cv_func_iswcntrl_works="guessing no"
14631fi
14632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14633
14634else
14635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14636/* end confdefs.h. */
14637
14638 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
14639 included before <wchar.h>.
14640 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
14641 must be included before <wchar.h>. */
14642 #include <stddef.h>
14643 #include <stdio.h>
14644 #include <time.h>
14645 #include <wchar.h>
14646 #include <wctype.h>
14647 int main () { return iswprint ('x') == 0; }
14648
14649_ACEOF
14650if ac_fn_c_try_run "$LINENO"; then :
14651 gl_cv_func_iswcntrl_works=yes
14652else
14653 gl_cv_func_iswcntrl_works=no
14654fi
14655rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14656 conftest.$ac_objext conftest.beam conftest.$ac_ext
14657fi
14658
14659
14660fi
14661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
14662$as_echo "$gl_cv_func_iswcntrl_works" >&6; }
14663 fi
14664 HAVE_WCTYPE_H=1
14665 else
14666 HAVE_WCTYPE_H=0
14667 fi
14668
14669
14670 case "$gl_cv_func_iswcntrl_works" in
14671 *yes) REPLACE_ISWCNTRL=0 ;;
14672 *) REPLACE_ISWCNTRL=1 ;;
14673 esac
14674
14675
14676 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
14677 :
14678 fi
14679
14680 if test $REPLACE_ISWCNTRL = 1; then
14681 REPLACE_TOWLOWER=1
14682 else
14683 for ac_func in towlower
14684do :
14685 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
14686if test "x$ac_cv_func_towlower" = x""yes; then :
14687 cat >>confdefs.h <<_ACEOF
14688#define HAVE_TOWLOWER 1
14689_ACEOF
14690
14691fi
14692done
14693
14694 if test $ac_cv_func_towlower = yes; then
14695 REPLACE_TOWLOWER=0
14696 else
14697 ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
14698 included before <wchar.h>.
14699 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
14700 must be included before <wchar.h>. */
14701 #include <stddef.h>
14702 #include <stdio.h>
14703 #include <time.h>
14704 #include <wchar.h>
14705 #if HAVE_WCTYPE_H
14706 # include <wctype.h>
14707 #endif
14708
14709"
14710if test "x$ac_cv_have_decl_towlower" = x""yes; then :
14711 ac_have_decl=1
14712else
14713 ac_have_decl=0
14714fi
14715
14716cat >>confdefs.h <<_ACEOF
14717#define HAVE_DECL_TOWLOWER $ac_have_decl
14718_ACEOF
14719
14720 if test $ac_cv_have_decl_towlower = yes; then
14721 REPLACE_TOWLOWER=1
14722 else
14723 REPLACE_TOWLOWER=0
14724 fi
14725 fi
14726 fi
14727
14728
14729 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
14730 :
14731 fi
14732
14733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
14734$as_echo_n "checking for wctype_t... " >&6; }
14735if test "${gl_cv_type_wctype_t+set}" = set; then :
14736 $as_echo_n "(cached) " >&6
14737else
14738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14739/* end confdefs.h. */
14740/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
14741 included before <wchar.h>.
14742 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
14743 must be included before <wchar.h>. */
14744 #include <stddef.h>
14745 #include <stdio.h>
14746 #include <time.h>
14747 #include <wchar.h>
14748 #if HAVE_WCTYPE_H
14749 # include <wctype.h>
14750 #endif
14751 wctype_t a;
14752
14753int
14754main ()
14755{
14756
14757 ;
14758 return 0;
14759}
14760_ACEOF
14761if ac_fn_c_try_compile "$LINENO"; then :
14762 gl_cv_type_wctype_t=yes
14763else
14764 gl_cv_type_wctype_t=no
14765fi
14766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c971b7fa 14767
8690e634
JK
14768fi
14769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
14770$as_echo "$gl_cv_type_wctype_t" >&6; }
14771 if test $gl_cv_type_wctype_t = no; then
14772 HAVE_WCTYPE_T=0
14773 fi
14774
14775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
14776$as_echo_n "checking for wctrans_t... " >&6; }
14777if test "${gl_cv_type_wctrans_t+set}" = set; then :
14778 $as_echo_n "(cached) " >&6
14779else
14780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14781/* end confdefs.h. */
14782/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
14783 included before <wchar.h>.
14784 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
14785 must be included before <wchar.h>. */
14786 #include <stddef.h>
14787 #include <stdio.h>
14788 #include <time.h>
14789 #include <wchar.h>
14790 #include <wctype.h>
14791 wctrans_t a;
c971b7fa 14792
8690e634
JK
14793int
14794main ()
14795{
c971b7fa 14796
8690e634
JK
14797 ;
14798 return 0;
14799}
14800_ACEOF
14801if ac_fn_c_try_compile "$LINENO"; then :
14802 gl_cv_type_wctrans_t=yes
14803else
14804 gl_cv_type_wctrans_t=no
14805fi
14806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c971b7fa 14807
8690e634
JK
14808fi
14809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
14810$as_echo "$gl_cv_type_wctrans_t" >&6; }
14811 if test $gl_cv_type_wctrans_t = no; then
14812 HAVE_WCTRANS_T=0
c971b7fa
PA
14813 fi
14814
14815
8690e634
JK
14816 for gl_func in wctype iswctype wctrans towctrans ; do
14817 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
14819$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
14820if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
14821 $as_echo_n "(cached) " >&6
14822else
14823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14824/* end confdefs.h. */
14825
14826/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14827 <wchar.h>.
14828 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14829 included before <wchar.h>. */
14830#if !(defined __GLIBC__ && !defined __UCLIBC__)
14831# include <stddef.h>
14832# include <stdio.h>
14833# include <time.h>
14834# include <wchar.h>
14835#endif
14836#include <wctype.h>
14837
14838int
14839main ()
14840{
14841#undef $gl_func
14842 (void) $gl_func;
14843 ;
14844 return 0;
14845}
14846_ACEOF
14847if ac_fn_c_try_compile "$LINENO"; then :
14848 eval "$as_gl_Symbol=yes"
14849else
14850 eval "$as_gl_Symbol=no"
14851fi
14852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14853fi
14854eval ac_res=\$$as_gl_Symbol
14855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14856$as_echo "$ac_res" >&6; }
14857 eval as_val=\$$as_gl_Symbol
14858 if test "x$as_val" = x""yes; then :
14859 cat >>confdefs.h <<_ACEOF
14860#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
14861_ACEOF
c971b7fa 14862
8690e634
JK
14863 eval ac_cv_have_decl_$gl_func=yes
14864fi
14865 done
c971b7fa
PA
14866
14867
14868 # End of code from modules
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878 gltests_libdeps=
14879 gltests_ltlibdeps=
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889 gl_source_base='tests'
14890 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
14891
14892 gl_module_indicator_condition=$gltests_WITNESS
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902 LIBGNU_LIBDEPS="$gl_libdeps"
14903
14904 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
14905
14906
14907
14908# We don't use automake, but gnulib does. This line lets us generate
14909# its Makefile.in.
14910am__api_version='1.11'
14911
14912# Find a good install program. We prefer a C program (faster),
14913# so one script is as good as another. But avoid the broken or
14914# incompatible versions:
14915# SysV /etc/install, /usr/sbin/install
14916# SunOS /usr/etc/install
14917# IRIX /sbin/install
14918# AIX /bin/install
14919# AmigaOS /C/install, which installs bootblocks on floppy discs
14920# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
14921# AFS /usr/afsws/bin/install, which mishandles nonexistent args
14922# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
14923# OS/2's system install, which has a completely different semantic
14924# ./install, which can be erroneously created by make from ./install.sh.
14925# Reject install programs that cannot install multiple files.
14926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
14927$as_echo_n "checking for a BSD-compatible install... " >&6; }
14928if test -z "$INSTALL"; then
14929if test "${ac_cv_path_install+set}" = set; then :
14930 $as_echo_n "(cached) " >&6
14931else
14932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14933for as_dir in $PATH
14934do
14935 IFS=$as_save_IFS
14936 test -z "$as_dir" && as_dir=.
14937 # Account for people who put trailing slashes in PATH elements.
14938case $as_dir/ in #((
14939 ./ | .// | /[cC]/* | \
14940 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
14941 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
14942 /usr/ucb/* ) ;;
14943 *)
14944 # OSF1 and SCO ODT 3.0 have their own names for install.
14945 # Don't use installbsd from OSF since it installs stuff as root
14946 # by default.
14947 for ac_prog in ginstall scoinst install; do
14948 for ac_exec_ext in '' $ac_executable_extensions; do
14949 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
14950 if test $ac_prog = install &&
14951 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14952 # AIX install. It has an incompatible calling convention.
14953 :
14954 elif test $ac_prog = install &&
14955 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14956 # program-specific install script used by HP pwplus--don't use.
14957 :
14958 else
14959 rm -rf conftest.one conftest.two conftest.dir
14960 echo one > conftest.one
14961 echo two > conftest.two
14962 mkdir conftest.dir
14963 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
14964 test -s conftest.one && test -s conftest.two &&
14965 test -s conftest.dir/conftest.one &&
14966 test -s conftest.dir/conftest.two
14967 then
14968 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
14969 break 3
14970 fi
14971 fi
14972 fi
14973 done
14974 done
14975 ;;
14976esac
14977
14978 done
14979IFS=$as_save_IFS
14980
14981rm -rf conftest.one conftest.two conftest.dir
14982
14983fi
14984 if test "${ac_cv_path_install+set}" = set; then
14985 INSTALL=$ac_cv_path_install
14986 else
14987 # As a last resort, use the slow shell script. Don't cache a
14988 # value for INSTALL within a source directory, because that will
14989 # break other packages using the cache if that directory is
14990 # removed, or if the value is a relative name.
14991 INSTALL=$ac_install_sh
14992 fi
14993fi
14994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
14995$as_echo "$INSTALL" >&6; }
14996
14997# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
14998# It thinks the first close brace ends the variable substitution.
14999test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
15000
15001test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
15002
15003test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
15004
15005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
15006$as_echo_n "checking whether build environment is sane... " >&6; }
15007# Just in case
15008sleep 1
15009echo timestamp > conftest.file
15010# Reject unsafe characters in $srcdir or the absolute working directory
15011# name. Accept space and tab only in the latter.
15012am_lf='
15013'
15014case `pwd` in
15015 *[\\\"\#\$\&\'\`$am_lf]*)
15016 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
15017esac
15018case $srcdir in
15019 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
15020 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
15021esac
15022
15023# Do `set' in a subshell so we don't clobber the current shell's
15024# arguments. Must try -L first in case configure is actually a
15025# symlink; some systems play weird games with the mod time of symlinks
15026# (eg FreeBSD returns the mod time of the symlink's containing
15027# directory).
15028if (
15029 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
15030 if test "$*" = "X"; then
15031 # -L didn't work.
15032 set X `ls -t "$srcdir/configure" conftest.file`
15033 fi
15034 rm -f conftest.file
15035 if test "$*" != "X $srcdir/configure conftest.file" \
15036 && test "$*" != "X conftest.file $srcdir/configure"; then
15037
15038 # If neither matched, then we have a broken ls. This can happen
15039 # if, for instance, CONFIG_SHELL is bash and it inherits a
15040 # broken ls alias from the environment. This has actually
15041 # happened. Such a system could not be considered "sane".
15042 as_fn_error "ls -t appears to fail. Make sure there is not a broken
15043alias in your environment" "$LINENO" 5
15044 fi
15045
15046 test "$2" = conftest.file
15047 )
15048then
15049 # Ok.
15050 :
15051else
15052 as_fn_error "newly created file is older than distributed files!
15053Check your system clock" "$LINENO" 5
15054fi
15055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15056$as_echo "yes" >&6; }
15057test "$program_prefix" != NONE &&
15058 program_transform_name="s&^&$program_prefix&;$program_transform_name"
15059# Use a double $ so make ignores it.
15060test "$program_suffix" != NONE &&
15061 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
15062# Double any \ or $.
15063# By default was `s,x,x', remove it if useless.
15064ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
15065program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
15066
15067# expand $ac_aux_dir to an absolute path
15068am_aux_dir=`cd $ac_aux_dir && pwd`
15069
15070if test x"${MISSING+set}" != xset; then
15071 case $am_aux_dir in
15072 *\ * | *\ *)
15073 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
15074 *)
15075 MISSING="\${SHELL} $am_aux_dir/missing" ;;
15076 esac
15077fi
15078# Use eval to expand $SHELL
15079if eval "$MISSING --run true"; then
15080 am_missing_run="$MISSING --run "
15081else
15082 am_missing_run=
15083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
15084$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
15085fi
15086
15087if test x"${install_sh}" != xset; then
15088 case $am_aux_dir in
15089 *\ * | *\ *)
15090 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
15091 *)
15092 install_sh="\${SHELL} $am_aux_dir/install-sh"
15093 esac
15094fi
15095
15096# Installed binaries are usually stripped using `strip' when the user
15097# run `make install-strip'. However `strip' might not be the right
15098# tool to use in cross-compilation environments, therefore Automake
15099# will honor the `STRIP' environment variable to overrule this program.
15100if test "$cross_compiling" != no; then
15101 if test -n "$ac_tool_prefix"; then
15102 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
15103set dummy ${ac_tool_prefix}strip; ac_word=$2
15104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15105$as_echo_n "checking for $ac_word... " >&6; }
15106if test "${ac_cv_prog_STRIP+set}" = set; then :
15107 $as_echo_n "(cached) " >&6
15108else
15109 if test -n "$STRIP"; then
15110 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15111else
15112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15113for as_dir in $PATH
15114do
15115 IFS=$as_save_IFS
15116 test -z "$as_dir" && as_dir=.
15117 for ac_exec_ext in '' $ac_executable_extensions; do
15118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15119 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
15120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15121 break 2
15122 fi
15123done
15124 done
15125IFS=$as_save_IFS
15126
15127fi
15128fi
15129STRIP=$ac_cv_prog_STRIP
15130if test -n "$STRIP"; then
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
15132$as_echo "$STRIP" >&6; }
15133else
15134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15135$as_echo "no" >&6; }
15136fi
15137
15138
15139fi
15140if test -z "$ac_cv_prog_STRIP"; then
15141 ac_ct_STRIP=$STRIP
15142 # Extract the first word of "strip", so it can be a program name with args.
15143set dummy strip; ac_word=$2
15144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15145$as_echo_n "checking for $ac_word... " >&6; }
15146if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
15147 $as_echo_n "(cached) " >&6
15148else
15149 if test -n "$ac_ct_STRIP"; then
15150 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15151else
15152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15153for as_dir in $PATH
15154do
15155 IFS=$as_save_IFS
15156 test -z "$as_dir" && as_dir=.
15157 for ac_exec_ext in '' $ac_executable_extensions; do
15158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15159 ac_cv_prog_ac_ct_STRIP="strip"
15160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15161 break 2
15162 fi
15163done
15164 done
15165IFS=$as_save_IFS
15166
15167fi
15168fi
15169ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15170if test -n "$ac_ct_STRIP"; then
15171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
15172$as_echo "$ac_ct_STRIP" >&6; }
15173else
15174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15175$as_echo "no" >&6; }
15176fi
15177
15178 if test "x$ac_ct_STRIP" = x; then
15179 STRIP=":"
15180 else
15181 case $cross_compiling:$ac_tool_warned in
15182yes:)
15183{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15184$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15185ac_tool_warned=yes ;;
15186esac
15187 STRIP=$ac_ct_STRIP
15188 fi
15189else
15190 STRIP="$ac_cv_prog_STRIP"
15191fi
15192
15193fi
15194INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
15195
c971b7fa
PA
15196mkdir_p="$MKDIR_P"
15197case $mkdir_p in
15198 [\\/$]* | ?:[\\/]*) ;;
15199 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
15200esac
15201
15202for ac_prog in gawk mawk nawk awk
15203do
15204 # Extract the first word of "$ac_prog", so it can be a program name with args.
15205set dummy $ac_prog; ac_word=$2
15206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15207$as_echo_n "checking for $ac_word... " >&6; }
15208if test "${ac_cv_prog_AWK+set}" = set; then :
15209 $as_echo_n "(cached) " >&6
15210else
15211 if test -n "$AWK"; then
15212 ac_cv_prog_AWK="$AWK" # Let the user override the test.
15213else
15214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15215for as_dir in $PATH
15216do
15217 IFS=$as_save_IFS
15218 test -z "$as_dir" && as_dir=.
15219 for ac_exec_ext in '' $ac_executable_extensions; do
15220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15221 ac_cv_prog_AWK="$ac_prog"
15222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15223 break 2
15224 fi
15225done
15226 done
15227IFS=$as_save_IFS
15228
15229fi
15230fi
15231AWK=$ac_cv_prog_AWK
15232if test -n "$AWK"; then
15233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
15234$as_echo "$AWK" >&6; }
15235else
15236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15237$as_echo "no" >&6; }
15238fi
15239
15240
15241 test -n "$AWK" && break
15242done
15243
15244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
15245$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
15246set x ${MAKE-make}
15247ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
15248if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
15249 $as_echo_n "(cached) " >&6
15250else
15251 cat >conftest.make <<\_ACEOF
15252SHELL = /bin/sh
15253all:
15254 @echo '@@@%%%=$(MAKE)=@@@%%%'
15255_ACEOF
15256# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
15257case `${MAKE-make} -f conftest.make 2>/dev/null` in
15258 *@@@%%%=?*=@@@%%%*)
15259 eval ac_cv_prog_make_${ac_make}_set=yes;;
15260 *)
15261 eval ac_cv_prog_make_${ac_make}_set=no;;
15262esac
15263rm -f conftest.make
15264fi
15265if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
15266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15267$as_echo "yes" >&6; }
15268 SET_MAKE=
15269else
15270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15271$as_echo "no" >&6; }
15272 SET_MAKE="MAKE=${MAKE-make}"
15273fi
15274
15275rm -rf .tst 2>/dev/null
15276mkdir .tst 2>/dev/null
15277if test -d .tst; then
15278 am__leading_dot=.
15279else
15280 am__leading_dot=_
15281fi
15282rmdir .tst 2>/dev/null
15283
15284DEPDIR="${am__leading_dot}deps"
15285
15286ac_config_commands="$ac_config_commands depfiles"
15287
15288
15289am_make=${MAKE-make}
15290cat > confinc << 'END'
15291am__doit:
15292 @echo this is the am__doit target
15293.PHONY: am__doit
15294END
15295# If we don't find an include directive, just comment out the code.
15296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
15297$as_echo_n "checking for style of include used by $am_make... " >&6; }
15298am__include="#"
15299am__quote=
15300_am_result=none
15301# First try GNU make style include.
15302echo "include confinc" > confmf
15303# Ignore all kinds of additional output from `make'.
15304case `$am_make -s -f confmf 2> /dev/null` in #(
15305*the\ am__doit\ target*)
15306 am__include=include
15307 am__quote=
15308 _am_result=GNU
15309 ;;
15310esac
15311# Now try BSD make style include.
15312if test "$am__include" = "#"; then
15313 echo '.include "confinc"' > confmf
15314 case `$am_make -s -f confmf 2> /dev/null` in #(
15315 *the\ am__doit\ target*)
15316 am__include=.include
15317 am__quote="\""
15318 _am_result=BSD
15319 ;;
15320 esac
15321fi
15322
15323
15324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
15325$as_echo "$_am_result" >&6; }
15326rm -f confinc confmf
15327
15328# Check whether --enable-dependency-tracking was given.
15329if test "${enable_dependency_tracking+set}" = set; then :
15330 enableval=$enable_dependency_tracking;
15331fi
15332
15333if test "x$enable_dependency_tracking" != xno; then
15334 am_depcomp="$ac_aux_dir/depcomp"
15335 AMDEPBACKSLASH='\'
15336fi
15337 if test "x$enable_dependency_tracking" != xno; then
15338 AMDEP_TRUE=
15339 AMDEP_FALSE='#'
15340else
15341 AMDEP_TRUE='#'
15342 AMDEP_FALSE=
15343fi
15344
15345
15346if test "`cd $srcdir && pwd`" != "`pwd`"; then
15347 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
15348 # is not polluted with repeated "-I."
15349 am__isrc=' -I$(srcdir)'
15350 # test to see if srcdir already configured
15351 if test -f $srcdir/config.status; then
15352 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
15353 fi
15354fi
15355
15356# test whether we have cygpath
15357if test -z "$CYGPATH_W"; then
15358 if (cygpath --version) >/dev/null 2>/dev/null; then
15359 CYGPATH_W='cygpath -w'
15360 else
15361 CYGPATH_W=echo
15362 fi
15363fi
15364
15365
15366# Define the identity of the package.
15367 PACKAGE=libgnu
15368 VERSION=UNUSED-VERSION
15369
15370
15371# Some tools Automake needs.
15372
15373ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
15374
15375
15376AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
15377
15378
15379AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
15380
15381
15382AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
15383
15384
15385MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
15386
15387# We need awk for the "check" target. The system "awk" is bad on
15388# some platforms.
15389# Always define AMTAR for backward compatibility.
15390
15391AMTAR=${AMTAR-"${am_missing_run}tar"}
15392
15393am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
15394
15395
15396
15397
15398depcc="$CC" am_compiler_list=
15399
15400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
15401$as_echo_n "checking dependency style of $depcc... " >&6; }
15402if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
15403 $as_echo_n "(cached) " >&6
15404else
15405 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15406 # We make a subdir and do the tests there. Otherwise we can end up
15407 # making bogus files that we don't know about and never remove. For
15408 # instance it was reported that on HP-UX the gcc test will end up
15409 # making a dummy file named `D' -- because `-MD' means `put the output
15410 # in D'.
15411 mkdir conftest.dir
15412 # Copy depcomp to subdir because otherwise we won't find it if we're
15413 # using a relative directory.
15414 cp "$am_depcomp" conftest.dir
15415 cd conftest.dir
15416 # We will build objects and dependencies in a subdirectory because
15417 # it helps to detect inapplicable dependency modes. For instance
15418 # both Tru64's cc and ICC support -MD to output dependencies as a
15419 # side effect of compilation, but ICC will put the dependencies in
15420 # the current directory while Tru64 will put them in the object
15421 # directory.
15422 mkdir sub
15423
15424 am_cv_CC_dependencies_compiler_type=none
15425 if test "$am_compiler_list" = ""; then
15426 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15427 fi
15428 am__universal=false
15429 case " $depcc " in #(
15430 *\ -arch\ *\ -arch\ *) am__universal=true ;;
15431 esac
15432
15433 for depmode in $am_compiler_list; do
15434 # Setup a source with many dependencies, because some compilers
15435 # like to wrap large dependency lists on column 80 (with \), and
15436 # we should not choose a depcomp mode which is confused by this.
15437 #
15438 # We need to recreate these files for each test, as the compiler may
15439 # overwrite some of them when testing with obscure command lines.
15440 # This happens at least with the AIX C compiler.
15441 : > sub/conftest.c
15442 for i in 1 2 3 4 5 6; do
15443 echo '#include "conftst'$i'.h"' >> sub/conftest.c
15444 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
15445 # Solaris 8's {/usr,}/bin/sh.
15446 touch sub/conftst$i.h
15447 done
15448 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15449
15450 # We check with `-c' and `-o' for the sake of the "dashmstdout"
15451 # mode. It turns out that the SunPro C++ compiler does not properly
15452 # handle `-M -o', and we need to detect this. Also, some Intel
15453 # versions had trouble with output in subdirs
15454 am__obj=sub/conftest.${OBJEXT-o}
15455 am__minus_obj="-o $am__obj"
15456 case $depmode in
15457 gcc)
15458 # This depmode causes a compiler race in universal mode.
15459 test "$am__universal" = false || continue
15460 ;;
15461 nosideeffect)
15462 # after this tag, mechanisms are not by side-effect, so they'll
15463 # only be used when explicitly requested
15464 if test "x$enable_dependency_tracking" = xyes; then
15465 continue
15466 else
15467 break
15468 fi
15469 ;;
15470 msvisualcpp | msvcmsys)
15471 # This compiler won't grok `-c -o', but also, the minuso test has
15472 # not run yet. These depmodes are late enough in the game, and
15473 # so weak that their functioning should not be impacted.
15474 am__obj=conftest.${OBJEXT-o}
15475 am__minus_obj=
15476 ;;
15477 none) break ;;
15478 esac
15479 if depmode=$depmode \
15480 source=sub/conftest.c object=$am__obj \
15481 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
15482 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
15483 >/dev/null 2>conftest.err &&
15484 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
15485 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
15486 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
15487 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
15488 # icc doesn't choke on unknown options, it will just issue warnings
15489 # or remarks (even with -Werror). So we grep stderr for any message
15490 # that says an option was ignored or not supported.
15491 # When given -MP, icc 7.0 and 7.1 complain thusly:
15492 # icc: Command line warning: ignoring option '-M'; no argument required
15493 # The diagnosis changed in icc 8.0:
15494 # icc: Command line remark: option '-MP' not supported
15495 if (grep 'ignoring option' conftest.err ||
15496 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
15497 am_cv_CC_dependencies_compiler_type=$depmode
15498 break
15499 fi
15500 fi
15501 done
15502
15503 cd ..
15504 rm -rf conftest.dir
15505else
15506 am_cv_CC_dependencies_compiler_type=none
15507fi
15508
15509fi
15510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
15511$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
15512CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
15513
15514 if
15515 test "x$enable_dependency_tracking" != xno \
15516 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
15517 am__fastdepCC_TRUE=
15518 am__fastdepCC_FALSE='#'
15519else
15520 am__fastdepCC_TRUE='#'
15521 am__fastdepCC_FALSE=
15522fi
15523
15524
15525
15526
15527# --------------------- #
15528# Checks for programs. #
15529# --------------------- #
15530
15531
15532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
15533$as_echo_n "checking whether ln -s works... " >&6; }
15534LN_S=$as_ln_s
15535if test "$LN_S" = "ln -s"; then
15536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15537$as_echo "yes" >&6; }
15538else
15539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
15540$as_echo "no, using $LN_S" >&6; }
15541fi
15542
15543if test -n "$ac_tool_prefix"; then
15544 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
15545set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15547$as_echo_n "checking for $ac_word... " >&6; }
15548if test "${ac_cv_prog_RANLIB+set}" = set; then :
15549 $as_echo_n "(cached) " >&6
15550else
15551 if test -n "$RANLIB"; then
15552 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15553else
15554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15555for as_dir in $PATH
15556do
15557 IFS=$as_save_IFS
15558 test -z "$as_dir" && as_dir=.
15559 for ac_exec_ext in '' $ac_executable_extensions; do
15560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15561 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
15562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15563 break 2
15564 fi
15565done
15566 done
15567IFS=$as_save_IFS
15568
15569fi
15570fi
15571RANLIB=$ac_cv_prog_RANLIB
15572if test -n "$RANLIB"; then
15573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
15574$as_echo "$RANLIB" >&6; }
15575else
15576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15577$as_echo "no" >&6; }
15578fi
15579
15580
15581fi
15582if test -z "$ac_cv_prog_RANLIB"; then
15583 ac_ct_RANLIB=$RANLIB
15584 # Extract the first word of "ranlib", so it can be a program name with args.
15585set dummy ranlib; ac_word=$2
15586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15587$as_echo_n "checking for $ac_word... " >&6; }
15588if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
15589 $as_echo_n "(cached) " >&6
15590else
15591 if test -n "$ac_ct_RANLIB"; then
15592 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15593else
15594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15595for as_dir in $PATH
15596do
15597 IFS=$as_save_IFS
15598 test -z "$as_dir" && as_dir=.
15599 for ac_exec_ext in '' $ac_executable_extensions; do
15600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15601 ac_cv_prog_ac_ct_RANLIB="ranlib"
15602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15603 break 2
15604 fi
15605done
15606 done
15607IFS=$as_save_IFS
15608
15609fi
15610fi
15611ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15612if test -n "$ac_ct_RANLIB"; then
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
15614$as_echo "$ac_ct_RANLIB" >&6; }
15615else
15616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15617$as_echo "no" >&6; }
15618fi
15619
15620 if test "x$ac_ct_RANLIB" = x; then
15621 RANLIB=":"
15622 else
15623 case $cross_compiling:$ac_tool_warned in
15624yes:)
15625{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15626$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15627ac_tool_warned=yes ;;
15628esac
15629 RANLIB=$ac_ct_RANLIB
15630 fi
15631else
15632 RANLIB="$ac_cv_prog_RANLIB"
15633fi
15634
15635
15636if test -n "$ac_tool_prefix"; then
15637 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
15638set dummy ${ac_tool_prefix}ar; ac_word=$2
15639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15640$as_echo_n "checking for $ac_word... " >&6; }
15641if test "${ac_cv_prog_AR+set}" = set; then :
15642 $as_echo_n "(cached) " >&6
15643else
15644 if test -n "$AR"; then
15645 ac_cv_prog_AR="$AR" # Let the user override the test.
15646else
15647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15648for as_dir in $PATH
15649do
15650 IFS=$as_save_IFS
15651 test -z "$as_dir" && as_dir=.
15652 for ac_exec_ext in '' $ac_executable_extensions; do
15653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15654 ac_cv_prog_AR="${ac_tool_prefix}ar"
15655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15656 break 2
15657 fi
15658done
15659 done
15660IFS=$as_save_IFS
15661
15662fi
15663fi
15664AR=$ac_cv_prog_AR
15665if test -n "$AR"; then
15666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
15667$as_echo "$AR" >&6; }
15668else
15669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15670$as_echo "no" >&6; }
15671fi
15672
15673
15674fi
15675if test -z "$ac_cv_prog_AR"; then
15676 ac_ct_AR=$AR
15677 # Extract the first word of "ar", so it can be a program name with args.
15678set dummy ar; ac_word=$2
15679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15680$as_echo_n "checking for $ac_word... " >&6; }
15681if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
15682 $as_echo_n "(cached) " >&6
15683else
15684 if test -n "$ac_ct_AR"; then
15685 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
15686else
15687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15688for as_dir in $PATH
15689do
15690 IFS=$as_save_IFS
15691 test -z "$as_dir" && as_dir=.
15692 for ac_exec_ext in '' $ac_executable_extensions; do
15693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15694 ac_cv_prog_ac_ct_AR="ar"
15695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15696 break 2
15697 fi
15698done
15699 done
15700IFS=$as_save_IFS
15701
15702fi
15703fi
15704ac_ct_AR=$ac_cv_prog_ac_ct_AR
15705if test -n "$ac_ct_AR"; then
15706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
15707$as_echo "$ac_ct_AR" >&6; }
15708else
15709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15710$as_echo "no" >&6; }
15711fi
15712
15713 if test "x$ac_ct_AR" = x; then
15714 AR=""
15715 else
15716 case $cross_compiling:$ac_tool_warned in
15717yes:)
15718{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15719$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15720ac_tool_warned=yes ;;
15721esac
15722 AR=$ac_ct_AR
15723 fi
15724else
15725 AR="$ac_cv_prog_AR"
15726fi
15727
15728
15729# ---------------------- #
15730# Checks for libraries. #
15731# ---------------------- #
15732
15733ac_config_files="$ac_config_files Makefile import/Makefile"
15734
15735ac_config_commands="$ac_config_commands default"
15736
15737cat >confcache <<\_ACEOF
15738# This file is a shell script that caches the results of configure
15739# tests run on this system so they can be shared between configure
15740# scripts and configure runs, see configure's option --config-cache.
15741# It is not useful on other systems. If it contains results you don't
15742# want to keep, you may remove or edit it.
15743#
15744# config.status only pays attention to the cache file if you give it
15745# the --recheck option to rerun configure.
15746#
15747# `ac_cv_env_foo' variables (set or unset) will be overridden when
15748# loading this file, other *unset* `ac_cv_foo' will be assigned the
15749# following values.
15750
15751_ACEOF
15752
15753# The following way of writing the cache mishandles newlines in values,
15754# but we know of no workaround that is simple, portable, and efficient.
15755# So, we kill variables containing newlines.
15756# Ultrix sh set writes to stderr and can't be redirected directly,
15757# and sets the high bit in the cache file unless we assign to the vars.
15758(
15759 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15760 eval ac_val=\$$ac_var
15761 case $ac_val in #(
15762 *${as_nl}*)
15763 case $ac_var in #(
15764 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15765$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15766 esac
15767 case $ac_var in #(
15768 _ | IFS | as_nl) ;; #(
15769 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15770 *) { eval $ac_var=; unset $ac_var;} ;;
15771 esac ;;
15772 esac
15773 done
15774
15775 (set) 2>&1 |
15776 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15777 *${as_nl}ac_space=\ *)
15778 # `set' does not quote correctly, so add quotes: double-quote
15779 # substitution turns \\\\ into \\, and sed turns \\ into \.
15780 sed -n \
15781 "s/'/'\\\\''/g;
15782 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15783 ;; #(
15784 *)
15785 # `set' quotes correctly as required by POSIX, so do not add quotes.
15786 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15787 ;;
15788 esac |
15789 sort
15790) |
15791 sed '
15792 /^ac_cv_env_/b end
15793 t clear
15794 :clear
15795 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15796 t end
15797 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15798 :end' >>confcache
15799if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15800 if test -w "$cache_file"; then
15801 test "x$cache_file" != "x/dev/null" &&
15802 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15803$as_echo "$as_me: updating cache $cache_file" >&6;}
15804 cat confcache >$cache_file
15805 else
15806 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15807$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15808 fi
15809fi
15810rm -f confcache
15811
15812test "x$prefix" = xNONE && prefix=$ac_default_prefix
15813# Let make expand exec_prefix.
15814test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15815
15816DEFS=-DHAVE_CONFIG_H
15817
15818ac_libobjs=
15819ac_ltlibobjs=
15820for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15821 # 1. Remove the extension, and $U if already installed.
15822 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15823 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15824 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15825 # will be set to the directory where LIBOBJS objects are built.
15826 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15827 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15828done
15829LIBOBJS=$ac_libobjs
15830
15831LTLIBOBJS=$ac_ltlibobjs
15832
15833
15834if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15835 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15836Usually this means the macro was only invoked conditionally." "$LINENO" 5
15837fi
15838if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
15839 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
15840Usually this means the macro was only invoked conditionally." "$LINENO" 5
15841fi
8690e634
JK
15842if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
15843 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
15844Usually this means the macro was only invoked conditionally." "$LINENO" 5
15845fi
63ce7108
TT
15846if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
15847 as_fn_error "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
15848Usually this means the macro was only invoked conditionally." "$LINENO" 5
15849fi
88b48903
WN
15850if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
15851 as_fn_error "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
15852Usually this means the macro was only invoked conditionally." "$LINENO" 5
15853fi
8690e634
JK
15854if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
15855 as_fn_error "conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
15856Usually this means the macro was only invoked conditionally." "$LINENO" 5
15857fi
c971b7fa
PA
15858if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
15859 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
15860Usually this means the macro was only invoked conditionally." "$LINENO" 5
15861fi
88b48903
WN
15862
15863
8690e634
JK
15864if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
15865 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
15866Usually this means the macro was only invoked conditionally." "$LINENO" 5
15867fi
c971b7fa
PA
15868if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
15869 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
15870Usually this means the macro was only invoked conditionally." "$LINENO" 5
15871fi
15872
15873 gl_libobjs=
15874 gl_ltlibobjs=
15875 if test -n "$gl_LIBOBJS"; then
15876 # Remove the extension.
15877 sed_drop_objext='s/\.o$//;s/\.obj$//'
15878 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
15879 gl_libobjs="$gl_libobjs $i.$ac_objext"
15880 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
15881 done
15882 fi
15883 gl_LIBOBJS=$gl_libobjs
15884
15885 gl_LTLIBOBJS=$gl_ltlibobjs
15886
15887
15888
15889 gltests_libobjs=
15890 gltests_ltlibobjs=
15891 if test -n "$gltests_LIBOBJS"; then
15892 # Remove the extension.
15893 sed_drop_objext='s/\.o$//;s/\.obj$//'
15894 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
15895 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
15896 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
15897 done
15898 fi
15899 gltests_LIBOBJS=$gltests_libobjs
15900
15901 gltests_LTLIBOBJS=$gltests_ltlibobjs
15902
15903
15904if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15905 as_fn_error "conditional \"AMDEP\" was never defined.
15906Usually this means the macro was only invoked conditionally." "$LINENO" 5
15907fi
15908if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15909 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15910Usually this means the macro was only invoked conditionally." "$LINENO" 5
15911fi
15912 if test -n "$EXEEXT"; then
15913 am__EXEEXT_TRUE=
15914 am__EXEEXT_FALSE='#'
15915else
15916 am__EXEEXT_TRUE='#'
15917 am__EXEEXT_FALSE=
15918fi
15919
15920
15921: ${CONFIG_STATUS=./config.status}
15922ac_write_fail=0
15923ac_clean_files_save=$ac_clean_files
15924ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15925{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15926$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15927as_write_fail=0
15928cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15929#! $SHELL
15930# Generated by $as_me.
15931# Run this file to recreate the current configuration.
15932# Compiler output produced by configure, useful for debugging
15933# configure, is in config.log if it exists.
15934
15935debug=false
15936ac_cs_recheck=false
15937ac_cs_silent=false
15938
15939SHELL=\${CONFIG_SHELL-$SHELL}
15940export SHELL
15941_ASEOF
15942cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15943## -------------------- ##
15944## M4sh Initialization. ##
15945## -------------------- ##
15946
15947# Be more Bourne compatible
15948DUALCASE=1; export DUALCASE # for MKS sh
15949if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15950 emulate sh
15951 NULLCMD=:
15952 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15953 # is contrary to our usage. Disable this feature.
15954 alias -g '${1+"$@"}'='"$@"'
15955 setopt NO_GLOB_SUBST
15956else
15957 case `(set -o) 2>/dev/null` in #(
15958 *posix*) :
15959 set -o posix ;; #(
15960 *) :
15961 ;;
15962esac
15963fi
15964
15965
15966as_nl='
15967'
15968export as_nl
15969# Printing a long string crashes Solaris 7 /usr/bin/printf.
15970as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15971as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15972as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15973# Prefer a ksh shell builtin over an external printf program on Solaris,
15974# but without wasting forks for bash or zsh.
15975if test -z "$BASH_VERSION$ZSH_VERSION" \
15976 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15977 as_echo='print -r --'
15978 as_echo_n='print -rn --'
15979elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15980 as_echo='printf %s\n'
15981 as_echo_n='printf %s'
15982else
15983 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15984 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15985 as_echo_n='/usr/ucb/echo -n'
15986 else
15987 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15988 as_echo_n_body='eval
15989 arg=$1;
15990 case $arg in #(
15991 *"$as_nl"*)
15992 expr "X$arg" : "X\\(.*\\)$as_nl";
15993 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15994 esac;
15995 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15996 '
15997 export as_echo_n_body
15998 as_echo_n='sh -c $as_echo_n_body as_echo'
15999 fi
16000 export as_echo_body
16001 as_echo='sh -c $as_echo_body as_echo'
16002fi
16003
16004# The user is always right.
16005if test "${PATH_SEPARATOR+set}" != set; then
16006 PATH_SEPARATOR=:
16007 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16008 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16009 PATH_SEPARATOR=';'
16010 }
16011fi
16012
16013
16014# IFS
16015# We need space, tab and new line, in precisely that order. Quoting is
16016# there to prevent editors from complaining about space-tab.
16017# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16018# splitting by setting IFS to empty value.)
16019IFS=" "" $as_nl"
16020
16021# Find who we are. Look in the path if we contain no directory separator.
16022case $0 in #((
16023 *[\\/]* ) as_myself=$0 ;;
16024 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16025for as_dir in $PATH
16026do
16027 IFS=$as_save_IFS
16028 test -z "$as_dir" && as_dir=.
16029 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16030 done
16031IFS=$as_save_IFS
16032
16033 ;;
16034esac
16035# We did not find ourselves, most probably we were run as `sh COMMAND'
16036# in which case we are not to be found in the path.
16037if test "x$as_myself" = x; then
16038 as_myself=$0
16039fi
16040if test ! -f "$as_myself"; then
16041 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16042 exit 1
16043fi
16044
16045# Unset variables that we do not need and which cause bugs (e.g. in
16046# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16047# suppresses any "Segmentation fault" message there. '((' could
16048# trigger a bug in pdksh 5.2.14.
16049for as_var in BASH_ENV ENV MAIL MAILPATH
16050do eval test x\${$as_var+set} = xset \
16051 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16052done
16053PS1='$ '
16054PS2='> '
16055PS4='+ '
16056
16057# NLS nuisances.
16058LC_ALL=C
16059export LC_ALL
16060LANGUAGE=C
16061export LANGUAGE
16062
16063# CDPATH.
16064(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16065
16066
16067# as_fn_error ERROR [LINENO LOG_FD]
16068# ---------------------------------
16069# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16070# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16071# script with status $?, using 1 if that was 0.
16072as_fn_error ()
16073{
16074 as_status=$?; test $as_status -eq 0 && as_status=1
16075 if test "$3"; then
16076 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16077 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16078 fi
16079 $as_echo "$as_me: error: $1" >&2
16080 as_fn_exit $as_status
16081} # as_fn_error
16082
16083
16084# as_fn_set_status STATUS
16085# -----------------------
16086# Set $? to STATUS, without forking.
16087as_fn_set_status ()
16088{
16089 return $1
16090} # as_fn_set_status
16091
16092# as_fn_exit STATUS
16093# -----------------
16094# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16095as_fn_exit ()
16096{
16097 set +e
16098 as_fn_set_status $1
16099 exit $1
16100} # as_fn_exit
16101
16102# as_fn_unset VAR
16103# ---------------
16104# Portably unset VAR.
16105as_fn_unset ()
16106{
16107 { eval $1=; unset $1;}
16108}
16109as_unset=as_fn_unset
16110# as_fn_append VAR VALUE
16111# ----------------------
16112# Append the text in VALUE to the end of the definition contained in VAR. Take
16113# advantage of any shell optimizations that allow amortized linear growth over
16114# repeated appends, instead of the typical quadratic growth present in naive
16115# implementations.
16116if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16117 eval 'as_fn_append ()
16118 {
16119 eval $1+=\$2
16120 }'
16121else
16122 as_fn_append ()
16123 {
16124 eval $1=\$$1\$2
16125 }
16126fi # as_fn_append
16127
16128# as_fn_arith ARG...
16129# ------------------
16130# Perform arithmetic evaluation on the ARGs, and store the result in the
16131# global $as_val. Take advantage of shells that can avoid forks. The arguments
16132# must be portable across $(()) and expr.
16133if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16134 eval 'as_fn_arith ()
16135 {
16136 as_val=$(( $* ))
16137 }'
16138else
16139 as_fn_arith ()
16140 {
16141 as_val=`expr "$@" || test $? -eq 1`
16142 }
16143fi # as_fn_arith
16144
16145
16146if expr a : '\(a\)' >/dev/null 2>&1 &&
16147 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16148 as_expr=expr
16149else
16150 as_expr=false
16151fi
16152
16153if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16154 as_basename=basename
16155else
16156 as_basename=false
16157fi
16158
16159if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16160 as_dirname=dirname
16161else
16162 as_dirname=false
16163fi
16164
16165as_me=`$as_basename -- "$0" ||
16166$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16167 X"$0" : 'X\(//\)$' \| \
16168 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16169$as_echo X/"$0" |
16170 sed '/^.*\/\([^/][^/]*\)\/*$/{
16171 s//\1/
16172 q
16173 }
16174 /^X\/\(\/\/\)$/{
16175 s//\1/
16176 q
16177 }
16178 /^X\/\(\/\).*/{
16179 s//\1/
16180 q
16181 }
16182 s/.*/./; q'`
16183
16184# Avoid depending upon Character Ranges.
16185as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16186as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16187as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16188as_cr_digits='0123456789'
16189as_cr_alnum=$as_cr_Letters$as_cr_digits
16190
16191ECHO_C= ECHO_N= ECHO_T=
16192case `echo -n x` in #(((((
16193-n*)
16194 case `echo 'xy\c'` in
16195 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16196 xy) ECHO_C='\c';;
16197 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16198 ECHO_T=' ';;
16199 esac;;
16200*)
16201 ECHO_N='-n';;
16202esac
16203
16204rm -f conf$$ conf$$.exe conf$$.file
16205if test -d conf$$.dir; then
16206 rm -f conf$$.dir/conf$$.file
16207else
16208 rm -f conf$$.dir
16209 mkdir conf$$.dir 2>/dev/null
16210fi
16211if (echo >conf$$.file) 2>/dev/null; then
16212 if ln -s conf$$.file conf$$ 2>/dev/null; then
16213 as_ln_s='ln -s'
16214 # ... but there are two gotchas:
16215 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16216 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16217 # In both cases, we have to default to `cp -p'.
16218 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16219 as_ln_s='cp -p'
16220 elif ln conf$$.file conf$$ 2>/dev/null; then
16221 as_ln_s=ln
16222 else
16223 as_ln_s='cp -p'
16224 fi
16225else
16226 as_ln_s='cp -p'
16227fi
16228rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16229rmdir conf$$.dir 2>/dev/null
16230
16231
16232# as_fn_mkdir_p
16233# -------------
16234# Create "$as_dir" as a directory, including parents if necessary.
16235as_fn_mkdir_p ()
16236{
16237
16238 case $as_dir in #(
16239 -*) as_dir=./$as_dir;;
16240 esac
16241 test -d "$as_dir" || eval $as_mkdir_p || {
16242 as_dirs=
16243 while :; do
16244 case $as_dir in #(
16245 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16246 *) as_qdir=$as_dir;;
16247 esac
16248 as_dirs="'$as_qdir' $as_dirs"
16249 as_dir=`$as_dirname -- "$as_dir" ||
16250$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16251 X"$as_dir" : 'X\(//\)[^/]' \| \
16252 X"$as_dir" : 'X\(//\)$' \| \
16253 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16254$as_echo X"$as_dir" |
16255 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16256 s//\1/
16257 q
16258 }
16259 /^X\(\/\/\)[^/].*/{
16260 s//\1/
16261 q
16262 }
16263 /^X\(\/\/\)$/{
16264 s//\1/
16265 q
16266 }
16267 /^X\(\/\).*/{
16268 s//\1/
16269 q
16270 }
16271 s/.*/./; q'`
16272 test -d "$as_dir" && break
16273 done
16274 test -z "$as_dirs" || eval "mkdir $as_dirs"
16275 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16276
16277
16278} # as_fn_mkdir_p
16279if mkdir -p . 2>/dev/null; then
16280 as_mkdir_p='mkdir -p "$as_dir"'
16281else
16282 test -d ./-p && rmdir ./-p
16283 as_mkdir_p=false
16284fi
16285
16286if test -x / >/dev/null 2>&1; then
16287 as_test_x='test -x'
16288else
16289 if ls -dL / >/dev/null 2>&1; then
16290 as_ls_L_option=L
16291 else
16292 as_ls_L_option=
16293 fi
16294 as_test_x='
16295 eval sh -c '\''
16296 if test -d "$1"; then
16297 test -d "$1/.";
16298 else
16299 case $1 in #(
16300 -*)set "./$1";;
16301 esac;
16302 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16303 ???[sx]*):;;*)false;;esac;fi
16304 '\'' sh
16305 '
16306fi
16307as_executable_p=$as_test_x
16308
16309# Sed expression to map a string onto a valid CPP name.
16310as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16311
16312# Sed expression to map a string onto a valid variable name.
16313as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16314
16315
16316exec 6>&1
16317## ----------------------------------- ##
16318## Main body of $CONFIG_STATUS script. ##
16319## ----------------------------------- ##
16320_ASEOF
16321test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16322
16323cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16324# Save the log message, to keep $0 and so on meaningful, and to
16325# report actual input values of CONFIG_FILES etc. instead of their
16326# values after options handling.
16327ac_log="
16328This file was extended by $as_me, which was
16329generated by GNU Autoconf 2.64. Invocation command line was
16330
16331 CONFIG_FILES = $CONFIG_FILES
16332 CONFIG_HEADERS = $CONFIG_HEADERS
16333 CONFIG_LINKS = $CONFIG_LINKS
16334 CONFIG_COMMANDS = $CONFIG_COMMANDS
16335 $ $0 $@
16336
16337on `(hostname || uname -n) 2>/dev/null | sed 1q`
16338"
16339
16340_ACEOF
16341
16342case $ac_config_files in *"
16343"*) set x $ac_config_files; shift; ac_config_files=$*;;
16344esac
16345
16346case $ac_config_headers in *"
16347"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16348esac
16349
16350
16351cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16352# Files that config.status was made for.
16353config_files="$ac_config_files"
16354config_headers="$ac_config_headers"
16355config_commands="$ac_config_commands"
16356
16357_ACEOF
16358
16359cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16360ac_cs_usage="\
16361\`$as_me' instantiates files and other configuration actions
16362from templates according to the current configuration. Unless the files
16363and actions are specified as TAGs, all are instantiated by default.
16364
16365Usage: $0 [OPTION]... [TAG]...
16366
16367 -h, --help print this help, then exit
16368 -V, --version print version number and configuration settings, then exit
16369 -q, --quiet, --silent
16370 do not print progress messages
16371 -d, --debug don't remove temporary files
16372 --recheck update $as_me by reconfiguring in the same conditions
16373 --file=FILE[:TEMPLATE]
16374 instantiate the configuration file FILE
16375 --header=FILE[:TEMPLATE]
16376 instantiate the configuration header FILE
16377
16378Configuration files:
16379$config_files
16380
16381Configuration headers:
16382$config_headers
16383
16384Configuration commands:
16385$config_commands
16386
16387Report bugs to the package provider."
16388
16389_ACEOF
16390cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16391ac_cs_version="\\
16392config.status
16393configured by $0, generated by GNU Autoconf 2.64,
16394 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16395
16396Copyright (C) 2009 Free Software Foundation, Inc.
16397This config.status script is free software; the Free Software Foundation
16398gives unlimited permission to copy, distribute and modify it."
16399
16400ac_pwd='$ac_pwd'
16401srcdir='$srcdir'
16402INSTALL='$INSTALL'
16403MKDIR_P='$MKDIR_P'
16404AWK='$AWK'
16405test -n "\$AWK" || AWK=awk
16406_ACEOF
16407
16408cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16409# The default lists apply if the user does not specify any file.
16410ac_need_defaults=:
16411while test $# != 0
16412do
16413 case $1 in
16414 --*=*)
16415 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16416 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16417 ac_shift=:
16418 ;;
16419 *)
16420 ac_option=$1
16421 ac_optarg=$2
16422 ac_shift=shift
16423 ;;
16424 esac
16425
16426 case $ac_option in
16427 # Handling of the options.
16428 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16429 ac_cs_recheck=: ;;
16430 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16431 $as_echo "$ac_cs_version"; exit ;;
16432 --debug | --debu | --deb | --de | --d | -d )
16433 debug=: ;;
16434 --file | --fil | --fi | --f )
16435 $ac_shift
16436 case $ac_optarg in
16437 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16438 esac
16439 as_fn_append CONFIG_FILES " '$ac_optarg'"
16440 ac_need_defaults=false;;
16441 --header | --heade | --head | --hea )
16442 $ac_shift
16443 case $ac_optarg in
16444 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16445 esac
16446 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16447 ac_need_defaults=false;;
16448 --he | --h)
16449 # Conflict between --help and --header
16450 as_fn_error "ambiguous option: \`$1'
16451Try \`$0 --help' for more information.";;
16452 --help | --hel | -h )
16453 $as_echo "$ac_cs_usage"; exit ;;
16454 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16455 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16456 ac_cs_silent=: ;;
16457
16458 # This is an error.
16459 -*) as_fn_error "unrecognized option: \`$1'
16460Try \`$0 --help' for more information." ;;
16461
16462 *) as_fn_append ac_config_targets " $1"
16463 ac_need_defaults=false ;;
16464
16465 esac
16466 shift
16467done
16468
16469ac_configure_extra_args=
16470
16471if $ac_cs_silent; then
16472 exec 6>/dev/null
16473 ac_configure_extra_args="$ac_configure_extra_args --silent"
16474fi
16475
16476_ACEOF
16477cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16478if \$ac_cs_recheck; then
16479 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16480 shift
16481 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16482 CONFIG_SHELL='$SHELL'
16483 export CONFIG_SHELL
16484 exec "\$@"
16485fi
16486
16487_ACEOF
16488cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16489exec 5>>config.log
16490{
16491 echo
16492 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16493## Running $as_me. ##
16494_ASBOX
16495 $as_echo "$ac_log"
16496} >&5
16497
16498_ACEOF
16499cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16500#
16501# INIT-COMMANDS
16502#
16503AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16504
16505_ACEOF
16506
16507cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16508
16509# Handling of arguments.
16510for ac_config_target in $ac_config_targets
16511do
16512 case $ac_config_target in
16513 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
16514 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16515 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16516 "import/Makefile") CONFIG_FILES="$CONFIG_FILES import/Makefile" ;;
16517 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16518
16519 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16520 esac
16521done
16522
16523
16524# If the user did not use the arguments to specify the items to instantiate,
16525# then the envvar interface is used. Set only those that are not.
16526# We use the long form for the default assignment because of an extremely
16527# bizarre bug on SunOS 4.1.3.
16528if $ac_need_defaults; then
16529 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16530 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16531 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16532fi
16533
16534# Have a temporary directory for convenience. Make it in the build tree
16535# simply because there is no reason against having it here, and in addition,
16536# creating and moving files from /tmp can sometimes cause problems.
16537# Hook for its removal unless debugging.
16538# Note that there is a small window in which the directory will not be cleaned:
16539# after its creation but before its name has been assigned to `$tmp'.
16540$debug ||
16541{
16542 tmp=
16543 trap 'exit_status=$?
16544 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16545' 0
16546 trap 'as_fn_exit 1' 1 2 13 15
16547}
16548# Create a (secure) tmp directory for tmp files.
16549
16550{
16551 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16552 test -n "$tmp" && test -d "$tmp"
16553} ||
16554{
16555 tmp=./conf$$-$RANDOM
16556 (umask 077 && mkdir "$tmp")
16557} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16558
16559# Set up the scripts for CONFIG_FILES section.
16560# No need to generate them if there are no CONFIG_FILES.
16561# This happens for instance with `./config.status config.h'.
16562if test -n "$CONFIG_FILES"; then
16563
16564
16565ac_cr=`echo X | tr X '\015'`
16566# On cygwin, bash can eat \r inside `` if the user requested igncr.
16567# But we know of no other shell where ac_cr would be empty at this
16568# point, so we can use a bashism as a fallback.
16569if test "x$ac_cr" = x; then
16570 eval ac_cr=\$\'\\r\'
16571fi
16572ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16573if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16574 ac_cs_awk_cr='\r'
16575else
16576 ac_cs_awk_cr=$ac_cr
16577fi
16578
16579echo 'BEGIN {' >"$tmp/subs1.awk" &&
16580_ACEOF
16581
16582
16583{
16584 echo "cat >conf$$subs.awk <<_ACEOF" &&
16585 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16586 echo "_ACEOF"
16587} >conf$$subs.sh ||
16588 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16589ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16590ac_delim='%!_!# '
16591for ac_last_try in false false false false false :; do
16592 . ./conf$$subs.sh ||
16593 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16594
16595 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16596 if test $ac_delim_n = $ac_delim_num; then
16597 break
16598 elif $ac_last_try; then
16599 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16600 else
16601 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16602 fi
16603done
16604rm -f conf$$subs.sh
16605
16606cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16607cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16608_ACEOF
16609sed -n '
16610h
16611s/^/S["/; s/!.*/"]=/
16612p
16613g
16614s/^[^!]*!//
16615:repl
16616t repl
16617s/'"$ac_delim"'$//
16618t delim
16619:nl
16620h
16621s/\(.\{148\}\).*/\1/
16622t more1
16623s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16624p
16625n
16626b repl
16627:more1
16628s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16629p
16630g
16631s/.\{148\}//
16632t nl
16633:delim
16634h
16635s/\(.\{148\}\).*/\1/
16636t more2
16637s/["\\]/\\&/g; s/^/"/; s/$/"/
16638p
16639b
16640:more2
16641s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16642p
16643g
16644s/.\{148\}//
16645t delim
16646' <conf$$subs.awk | sed '
16647/^[^""]/{
16648 N
16649 s/\n//
16650}
16651' >>$CONFIG_STATUS || ac_write_fail=1
16652rm -f conf$$subs.awk
16653cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16654_ACAWK
16655cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16656 for (key in S) S_is_set[key] = 1
16657 FS = "\a"
16658
16659}
16660{
16661 line = $ 0
16662 nfields = split(line, field, "@")
16663 substed = 0
16664 len = length(field[1])
16665 for (i = 2; i < nfields; i++) {
16666 key = field[i]
16667 keylen = length(key)
16668 if (S_is_set[key]) {
16669 value = S[key]
16670 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16671 len += length(value) + length(field[++i])
16672 substed = 1
16673 } else
16674 len += 1 + keylen
16675 }
16676
16677 print line
16678}
16679
16680_ACAWK
16681_ACEOF
16682cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16683if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16684 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16685else
16686 cat
16687fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16688 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16689_ACEOF
16690
16691# VPATH may cause trouble with some makes, so we remove $(srcdir),
16692# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16693# trailing colons and then remove the whole line if VPATH becomes empty
16694# (actually we leave an empty line to preserve line numbers).
16695if test "x$srcdir" = x.; then
16696 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16697s/:*\$(srcdir):*/:/
16698s/:*\${srcdir}:*/:/
16699s/:*@srcdir@:*/:/
16700s/^\([^=]*=[ ]*\):*/\1/
16701s/:*$//
16702s/^[^=]*=[ ]*$//
16703}'
16704fi
16705
16706cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16707fi # test -n "$CONFIG_FILES"
16708
16709# Set up the scripts for CONFIG_HEADERS section.
16710# No need to generate them if there are no CONFIG_HEADERS.
16711# This happens for instance with `./config.status Makefile'.
16712if test -n "$CONFIG_HEADERS"; then
16713cat >"$tmp/defines.awk" <<\_ACAWK ||
16714BEGIN {
16715_ACEOF
16716
16717# Transform confdefs.h into an awk script `defines.awk', embedded as
16718# here-document in config.status, that substitutes the proper values into
16719# config.h.in to produce config.h.
16720
16721# Create a delimiter string that does not exist in confdefs.h, to ease
16722# handling of long lines.
16723ac_delim='%!_!# '
16724for ac_last_try in false false :; do
16725 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16726 if test -z "$ac_t"; then
16727 break
16728 elif $ac_last_try; then
16729 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16730 else
16731 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16732 fi
16733done
16734
16735# For the awk script, D is an array of macro values keyed by name,
16736# likewise P contains macro parameters if any. Preserve backslash
16737# newline sequences.
16738
16739ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16740sed -n '
16741s/.\{148\}/&'"$ac_delim"'/g
16742t rset
16743:rset
16744s/^[ ]*#[ ]*define[ ][ ]*/ /
16745t def
16746d
16747:def
16748s/\\$//
16749t bsnl
16750s/["\\]/\\&/g
16751s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16752D["\1"]=" \3"/p
16753s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16754d
16755:bsnl
16756s/["\\]/\\&/g
16757s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16758D["\1"]=" \3\\\\\\n"\\/p
16759t cont
16760s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16761t cont
16762d
16763:cont
16764n
16765s/.\{148\}/&'"$ac_delim"'/g
16766t clear
16767:clear
16768s/\\$//
16769t bsnlc
16770s/["\\]/\\&/g; s/^/"/; s/$/"/p
16771d
16772:bsnlc
16773s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16774b cont
16775' <confdefs.h | sed '
16776s/'"$ac_delim"'/"\\\
16777"/g' >>$CONFIG_STATUS || ac_write_fail=1
16778
16779cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16780 for (key in D) D_is_set[key] = 1
16781 FS = "\a"
16782}
16783/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16784 line = \$ 0
16785 split(line, arg, " ")
16786 if (arg[1] == "#") {
16787 defundef = arg[2]
16788 mac1 = arg[3]
16789 } else {
16790 defundef = substr(arg[1], 2)
16791 mac1 = arg[2]
16792 }
16793 split(mac1, mac2, "(") #)
16794 macro = mac2[1]
16795 prefix = substr(line, 1, index(line, defundef) - 1)
16796 if (D_is_set[macro]) {
16797 # Preserve the white space surrounding the "#".
16798 print prefix "define", macro P[macro] D[macro]
16799 next
16800 } else {
16801 # Replace #undef with comments. This is necessary, for example,
16802 # in the case of _POSIX_SOURCE, which is predefined and required
16803 # on some systems where configure will not decide to define it.
16804 if (defundef == "undef") {
16805 print "/*", prefix defundef, macro, "*/"
16806 next
16807 }
16808 }
16809}
16810{ print }
16811_ACAWK
16812_ACEOF
16813cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16814 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16815fi # test -n "$CONFIG_HEADERS"
16816
16817
16818eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16819shift
16820for ac_tag
16821do
16822 case $ac_tag in
16823 :[FHLC]) ac_mode=$ac_tag; continue;;
16824 esac
16825 case $ac_mode$ac_tag in
16826 :[FHL]*:*);;
16827 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16828 :[FH]-) ac_tag=-:-;;
16829 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16830 esac
16831 ac_save_IFS=$IFS
16832 IFS=:
16833 set x $ac_tag
16834 IFS=$ac_save_IFS
16835 shift
16836 ac_file=$1
16837 shift
16838
16839 case $ac_mode in
16840 :L) ac_source=$1;;
16841 :[FH])
16842 ac_file_inputs=
16843 for ac_f
16844 do
16845 case $ac_f in
16846 -) ac_f="$tmp/stdin";;
16847 *) # Look for the file first in the build tree, then in the source tree
16848 # (if the path is not absolute). The absolute path cannot be DOS-style,
16849 # because $ac_f cannot contain `:'.
16850 test -f "$ac_f" ||
16851 case $ac_f in
16852 [\\/$]*) false;;
16853 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16854 esac ||
16855 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16856 esac
16857 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16858 as_fn_append ac_file_inputs " '$ac_f'"
16859 done
16860
16861 # Let's still pretend it is `configure' which instantiates (i.e., don't
16862 # use $as_me), people would be surprised to read:
16863 # /* config.h. Generated by config.status. */
16864 configure_input='Generated from '`
16865 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16866 `' by configure.'
16867 if test x"$ac_file" != x-; then
16868 configure_input="$ac_file. $configure_input"
16869 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16870$as_echo "$as_me: creating $ac_file" >&6;}
16871 fi
16872 # Neutralize special characters interpreted by sed in replacement strings.
16873 case $configure_input in #(
16874 *\&* | *\|* | *\\* )
16875 ac_sed_conf_input=`$as_echo "$configure_input" |
16876 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16877 *) ac_sed_conf_input=$configure_input;;
16878 esac
16879
16880 case $ac_tag in
16881 *:-:* | *:-) cat >"$tmp/stdin" \
16882 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16883 esac
16884 ;;
16885 esac
16886
16887 ac_dir=`$as_dirname -- "$ac_file" ||
16888$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16889 X"$ac_file" : 'X\(//\)[^/]' \| \
16890 X"$ac_file" : 'X\(//\)$' \| \
16891 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16892$as_echo X"$ac_file" |
16893 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16894 s//\1/
16895 q
16896 }
16897 /^X\(\/\/\)[^/].*/{
16898 s//\1/
16899 q
16900 }
16901 /^X\(\/\/\)$/{
16902 s//\1/
16903 q
16904 }
16905 /^X\(\/\).*/{
16906 s//\1/
16907 q
16908 }
16909 s/.*/./; q'`
16910 as_dir="$ac_dir"; as_fn_mkdir_p
16911 ac_builddir=.
16912
16913case "$ac_dir" in
16914.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16915*)
16916 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16917 # A ".." for each directory in $ac_dir_suffix.
16918 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16919 case $ac_top_builddir_sub in
16920 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16921 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16922 esac ;;
16923esac
16924ac_abs_top_builddir=$ac_pwd
16925ac_abs_builddir=$ac_pwd$ac_dir_suffix
16926# for backward compatibility:
16927ac_top_builddir=$ac_top_build_prefix
16928
16929case $srcdir in
16930 .) # We are building in place.
16931 ac_srcdir=.
16932 ac_top_srcdir=$ac_top_builddir_sub
16933 ac_abs_top_srcdir=$ac_pwd ;;
16934 [\\/]* | ?:[\\/]* ) # Absolute name.
16935 ac_srcdir=$srcdir$ac_dir_suffix;
16936 ac_top_srcdir=$srcdir
16937 ac_abs_top_srcdir=$srcdir ;;
16938 *) # Relative name.
16939 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16940 ac_top_srcdir=$ac_top_build_prefix$srcdir
16941 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16942esac
16943ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16944
16945
16946 case $ac_mode in
16947 :F)
16948 #
16949 # CONFIG_FILE
16950 #
16951
16952 case $INSTALL in
16953 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16954 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16955 esac
16956 ac_MKDIR_P=$MKDIR_P
16957 case $MKDIR_P in
16958 [\\/$]* | ?:[\\/]* ) ;;
16959 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16960 esac
16961_ACEOF
16962
16963cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16964# If the template does not know about datarootdir, expand it.
16965# FIXME: This hack should be removed a few years after 2.60.
16966ac_datarootdir_hack=; ac_datarootdir_seen=
16967ac_sed_dataroot='
16968/datarootdir/ {
16969 p
16970 q
16971}
16972/@datadir@/p
16973/@docdir@/p
16974/@infodir@/p
16975/@localedir@/p
16976/@mandir@/p'
16977case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16978*datarootdir*) ac_datarootdir_seen=yes;;
16979*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16981$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16982_ACEOF
16983cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16984 ac_datarootdir_hack='
16985 s&@datadir@&$datadir&g
16986 s&@docdir@&$docdir&g
16987 s&@infodir@&$infodir&g
16988 s&@localedir@&$localedir&g
16989 s&@mandir@&$mandir&g
16990 s&\\\${datarootdir}&$datarootdir&g' ;;
16991esac
16992_ACEOF
16993
16994# Neutralize VPATH when `$srcdir' = `.'.
16995# Shell code in configure.ac might set extrasub.
16996# FIXME: do we really want to maintain this feature?
16997cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16998ac_sed_extra="$ac_vpsub
16999$extrasub
17000_ACEOF
17001cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17002:t
17003/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17004s|@configure_input@|$ac_sed_conf_input|;t t
17005s&@top_builddir@&$ac_top_builddir_sub&;t t
17006s&@top_build_prefix@&$ac_top_build_prefix&;t t
17007s&@srcdir@&$ac_srcdir&;t t
17008s&@abs_srcdir@&$ac_abs_srcdir&;t t
17009s&@top_srcdir@&$ac_top_srcdir&;t t
17010s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17011s&@builddir@&$ac_builddir&;t t
17012s&@abs_builddir@&$ac_abs_builddir&;t t
17013s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17014s&@INSTALL@&$ac_INSTALL&;t t
17015s&@MKDIR_P@&$ac_MKDIR_P&;t t
17016$ac_datarootdir_hack
17017"
17018eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17019 || as_fn_error "could not create $ac_file" "$LINENO" 5
17020
17021test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17022 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17023 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17025which seems to be undefined. Please make sure it is defined." >&5
17026$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17027which seems to be undefined. Please make sure it is defined." >&2;}
17028
17029 rm -f "$tmp/stdin"
17030 case $ac_file in
17031 -) cat "$tmp/out" && rm -f "$tmp/out";;
17032 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17033 esac \
17034 || as_fn_error "could not create $ac_file" "$LINENO" 5
17035 ;;
17036 :H)
17037 #
17038 # CONFIG_HEADER
17039 #
17040 if test x"$ac_file" != x-; then
17041 {
17042 $as_echo "/* $configure_input */" \
17043 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17044 } >"$tmp/config.h" \
17045 || as_fn_error "could not create $ac_file" "$LINENO" 5
17046 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17047 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17048$as_echo "$as_me: $ac_file is unchanged" >&6;}
17049 else
17050 rm -f "$ac_file"
17051 mv "$tmp/config.h" "$ac_file" \
17052 || as_fn_error "could not create $ac_file" "$LINENO" 5
17053 fi
17054 else
17055 $as_echo "/* $configure_input */" \
17056 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17057 || as_fn_error "could not create -" "$LINENO" 5
17058 fi
17059# Compute "$ac_file"'s index in $config_headers.
17060_am_arg="$ac_file"
17061_am_stamp_count=1
17062for _am_header in $config_headers :; do
17063 case $_am_header in
17064 $_am_arg | $_am_arg:* )
17065 break ;;
17066 * )
17067 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17068 esac
17069done
17070echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17071$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17072 X"$_am_arg" : 'X\(//\)[^/]' \| \
17073 X"$_am_arg" : 'X\(//\)$' \| \
17074 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17075$as_echo X"$_am_arg" |
17076 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17077 s//\1/
17078 q
17079 }
17080 /^X\(\/\/\)[^/].*/{
17081 s//\1/
17082 q
17083 }
17084 /^X\(\/\/\)$/{
17085 s//\1/
17086 q
17087 }
17088 /^X\(\/\).*/{
17089 s//\1/
17090 q
17091 }
17092 s/.*/./; q'`/stamp-h$_am_stamp_count
17093 ;;
17094
17095 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17096$as_echo "$as_me: executing $ac_file commands" >&6;}
17097 ;;
17098 esac
17099
17100
17101 case $ac_file$ac_mode in
17102 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17103 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17104 # are listed without --file. Let's play safe and only enable the eval
17105 # if we detect the quoting.
17106 case $CONFIG_FILES in
17107 *\'*) eval set x "$CONFIG_FILES" ;;
17108 *) set x $CONFIG_FILES ;;
17109 esac
17110 shift
17111 for mf
17112 do
17113 # Strip MF so we end up with the name of the file.
17114 mf=`echo "$mf" | sed -e 's/:.*$//'`
17115 # Check whether this is an Automake generated Makefile or not.
17116 # We used to match only the files named `Makefile.in', but
17117 # some people rename them; so instead we look at the file content.
17118 # Grep'ing the first line is not enough: some people post-process
17119 # each Makefile.in and add a new line on top of each file to say so.
17120 # Grep'ing the whole file is not good either: AIX grep has a line
17121 # limit of 2048, but all sed's we know have understand at least 4000.
17122 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17123 dirpart=`$as_dirname -- "$mf" ||
17124$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17125 X"$mf" : 'X\(//\)[^/]' \| \
17126 X"$mf" : 'X\(//\)$' \| \
17127 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17128$as_echo X"$mf" |
17129 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17130 s//\1/
17131 q
17132 }
17133 /^X\(\/\/\)[^/].*/{
17134 s//\1/
17135 q
17136 }
17137 /^X\(\/\/\)$/{
17138 s//\1/
17139 q
17140 }
17141 /^X\(\/\).*/{
17142 s//\1/
17143 q
17144 }
17145 s/.*/./; q'`
17146 else
17147 continue
17148 fi
17149 # Extract the definition of DEPDIR, am__include, and am__quote
17150 # from the Makefile without running `make'.
17151 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17152 test -z "$DEPDIR" && continue
17153 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17154 test -z "am__include" && continue
17155 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17156 # When using ansi2knr, U may be empty or an underscore; expand it
17157 U=`sed -n 's/^U = //p' < "$mf"`
17158 # Find all dependency output files, they are included files with
17159 # $(DEPDIR) in their names. We invoke sed twice because it is the
17160 # simplest approach to changing $(DEPDIR) to its actual value in the
17161 # expansion.
17162 for file in `sed -n "
17163 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17164 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17165 # Make sure the directory exists.
17166 test -f "$dirpart/$file" && continue
17167 fdir=`$as_dirname -- "$file" ||
17168$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17169 X"$file" : 'X\(//\)[^/]' \| \
17170 X"$file" : 'X\(//\)$' \| \
17171 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17172$as_echo X"$file" |
17173 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17174 s//\1/
17175 q
17176 }
17177 /^X\(\/\/\)[^/].*/{
17178 s//\1/
17179 q
17180 }
17181 /^X\(\/\/\)$/{
17182 s//\1/
17183 q
17184 }
17185 /^X\(\/\).*/{
17186 s//\1/
17187 q
17188 }
17189 s/.*/./; q'`
17190 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17191 # echo "creating $dirpart/$file"
17192 echo '# dummy' > "$dirpart/$file"
17193 done
17194 done
17195}
17196 ;;
17197 "default":C)
17198case x$CONFIG_HEADERS in
17199xconfig.h:config.in)
17200echo > stamp-h ;;
17201esac
17202 ;;
17203
17204 esac
17205done # for ac_tag
17206
17207
17208as_fn_exit 0
17209_ACEOF
17210ac_clean_files=$ac_clean_files_save
17211
17212test $ac_write_fail = 0 ||
17213 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17214
17215
17216# configure is writing to config.log, and then calls config.status.
17217# config.status does its own redirection, appending to config.log.
17218# Unfortunately, on DOS this fails, as config.log is still kept open
17219# by configure, so config.status won't be able to write to it; its
17220# output is simply discarded. So we exec the FD to /dev/null,
17221# effectively closing config.log, so it can be properly (re)opened and
17222# appended to by config.status. When coming back to configure, we
17223# need to make the FD available again.
17224if test "$no_create" != yes; then
17225 ac_cs_success=:
17226 ac_config_status_args=
17227 test "$silent" = yes &&
17228 ac_config_status_args="$ac_config_status_args --quiet"
17229 exec 5>/dev/null
17230 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17231 exec 5>>config.log
17232 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17233 # would make configure fail if this is the last instruction.
17234 $ac_cs_success || as_fn_exit $?
17235fi
17236if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17238$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17239fi
17240
17241
17242exit 0
This page took 0.88519 seconds and 4 git commands to generate.