Reimplement DJGPP's .gdbinit -> gdb.ini renaming.
[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
8690e634 591gl_fnmatch_required=POSIX
3574124b
PA
592ac_func_list=
593ac_header_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
659UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
660UNISTD_H_HAVE_WINSOCK2_H
661REPLACE_WRITE
662REPLACE_USLEEP
663REPLACE_UNLINKAT
664REPLACE_UNLINK
665REPLACE_TTYNAME_R
666REPLACE_SYMLINK
667REPLACE_SLEEP
668REPLACE_RMDIR
669REPLACE_READLINK
670REPLACE_READ
671REPLACE_PWRITE
672REPLACE_PREAD
673REPLACE_LSEEK
674REPLACE_LINKAT
675REPLACE_LINK
676REPLACE_LCHOWN
677REPLACE_ISATTY
678REPLACE_GETPAGESIZE
679REPLACE_GETGROUPS
680REPLACE_GETLOGIN_R
681REPLACE_GETDOMAINNAME
682REPLACE_GETCWD
683REPLACE_FTRUNCATE
684REPLACE_FCHOWNAT
685REPLACE_DUP2
686REPLACE_DUP
687REPLACE_CLOSE
688REPLACE_CHOWN
689HAVE_SYS_PARAM_H
690HAVE_OS_H
691HAVE_DECL_TTYNAME_R
692HAVE_DECL_SETHOSTNAME
693HAVE_DECL_GETUSERSHELL
694HAVE_DECL_GETPAGESIZE
695HAVE_DECL_GETLOGIN_R
696HAVE_DECL_GETDOMAINNAME
697HAVE_DECL_FDATASYNC
698HAVE_DECL_FCHDIR
699HAVE_DECL_ENVIRON
700HAVE_USLEEP
701HAVE_UNLINKAT
702HAVE_SYMLINKAT
703HAVE_SYMLINK
704HAVE_SLEEP
705HAVE_SETHOSTNAME
706HAVE_READLINKAT
707HAVE_READLINK
708HAVE_PWRITE
709HAVE_PREAD
710HAVE_PIPE2
711HAVE_PIPE
712HAVE_LINKAT
713HAVE_LINK
714HAVE_LCHOWN
715HAVE_GROUP_MEMBER
716HAVE_GETPAGESIZE
717HAVE_GETLOGIN
718HAVE_GETHOSTNAME
719HAVE_GETGROUPS
720HAVE_GETDTABLESIZE
721HAVE_FTRUNCATE
722HAVE_FSYNC
723HAVE_FDATASYNC
724HAVE_FCHOWNAT
725HAVE_FCHDIR
726HAVE_FACCESSAT
727HAVE_EUIDACCESS
728HAVE_DUP3
729HAVE_DUP2
730HAVE_CHOWN
731GNULIB_WRITE
732GNULIB_USLEEP
733GNULIB_UNLINKAT
734GNULIB_UNLINK
735GNULIB_UNISTD_H_SIGPIPE
736GNULIB_UNISTD_H_NONBLOCKING
737GNULIB_TTYNAME_R
738GNULIB_SYMLINKAT
739GNULIB_SYMLINK
740GNULIB_SLEEP
741GNULIB_SETHOSTNAME
742GNULIB_RMDIR
743GNULIB_READLINKAT
744GNULIB_READLINK
745GNULIB_READ
746GNULIB_PWRITE
747GNULIB_PREAD
748GNULIB_PIPE2
749GNULIB_PIPE
750GNULIB_LSEEK
751GNULIB_LINKAT
752GNULIB_LINK
753GNULIB_LCHOWN
754GNULIB_ISATTY
755GNULIB_GROUP_MEMBER
756GNULIB_GETUSERSHELL
757GNULIB_GETPAGESIZE
758GNULIB_GETLOGIN_R
759GNULIB_GETLOGIN
760GNULIB_GETHOSTNAME
761GNULIB_GETGROUPS
762GNULIB_GETDTABLESIZE
763GNULIB_GETDOMAINNAME
764GNULIB_GETCWD
765GNULIB_FTRUNCATE
766GNULIB_FSYNC
767GNULIB_FDATASYNC
768GNULIB_FCHOWNAT
769GNULIB_FCHDIR
770GNULIB_FACCESSAT
771GNULIB_EUIDACCESS
772GNULIB_ENVIRON
773GNULIB_DUP3
774GNULIB_DUP2
775GNULIB_DUP
776GNULIB_CLOSE
777GNULIB_CHOWN
778GNULIB_CHDIR
779MKDIR_P
780WINDOWS_64_BIT_OFF_T
781NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
782NEXT_SYS_TYPES_H
c971b7fa
PA
783NEXT_AS_FIRST_DIRECTIVE_STRING_H
784NEXT_STRING_H
785NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
786NEXT_STDDEF_H
787GL_GENERATE_STDDEF_H_FALSE
788GL_GENERATE_STDDEF_H_TRUE
789STDDEF_H
790HAVE_WCHAR_T
791REPLACE_NULL
8690e634
JK
792HAVE__BOOL
793GL_GENERATE_STDBOOL_H_FALSE
794GL_GENERATE_STDBOOL_H_TRUE
795STDBOOL_H
c971b7fa
PA
796UNDEFINE_STRTOK_R
797REPLACE_STRTOK_R
798REPLACE_STRSIGNAL
799REPLACE_STRNLEN
800REPLACE_STRNDUP
801REPLACE_STRNCAT
802REPLACE_STRERROR_R
803REPLACE_STRERROR
804REPLACE_STRCHRNUL
805REPLACE_STRCASESTR
806REPLACE_STRSTR
807REPLACE_STRDUP
808REPLACE_STPNCPY
809REPLACE_MEMMEM
810REPLACE_MEMCHR
811HAVE_STRVERSCMP
812HAVE_DECL_STRSIGNAL
813HAVE_DECL_STRERROR_R
814HAVE_DECL_STRTOK_R
815HAVE_STRCASESTR
816HAVE_STRSEP
817HAVE_STRPBRK
818HAVE_DECL_STRNLEN
819HAVE_DECL_STRNDUP
820HAVE_DECL_STRDUP
821HAVE_STRCHRNUL
822HAVE_STPNCPY
823HAVE_STPCPY
824HAVE_RAWMEMCHR
825HAVE_DECL_MEMRCHR
826HAVE_MEMPCPY
827HAVE_DECL_MEMMEM
828HAVE_MEMCHR
829HAVE_FFSLL
830HAVE_FFSL
831HAVE_MBSLEN
832GNULIB_STRVERSCMP
833GNULIB_STRSIGNAL
834GNULIB_STRERROR_R
835GNULIB_STRERROR
836GNULIB_MBSTOK_R
837GNULIB_MBSSEP
838GNULIB_MBSSPN
839GNULIB_MBSPBRK
840GNULIB_MBSCSPN
841GNULIB_MBSCASESTR
842GNULIB_MBSPCASECMP
843GNULIB_MBSNCASECMP
844GNULIB_MBSCASECMP
845GNULIB_MBSSTR
846GNULIB_MBSRCHR
847GNULIB_MBSCHR
848GNULIB_MBSNLEN
849GNULIB_MBSLEN
850GNULIB_STRTOK_R
851GNULIB_STRCASESTR
852GNULIB_STRSTR
853GNULIB_STRSEP
854GNULIB_STRPBRK
855GNULIB_STRNLEN
856GNULIB_STRNDUP
857GNULIB_STRNCAT
858GNULIB_STRDUP
859GNULIB_STRCHRNUL
860GNULIB_STPNCPY
861GNULIB_STPCPY
862GNULIB_RAWMEMCHR
863GNULIB_MEMRCHR
864GNULIB_MEMPCPY
865GNULIB_MEMMEM
866GNULIB_MEMCHR
867GNULIB_FFSLL
868GNULIB_FFSL
8690e634
JK
869LOCALE_FR
870LOCALE_FR_UTF8
871LOCALE_ZH_CN
872LOCALE_JA
873REPLACE_WCSWIDTH
874REPLACE_WCWIDTH
875REPLACE_WCSNRTOMBS
876REPLACE_WCSRTOMBS
877REPLACE_WCRTOMB
878REPLACE_MBSNRTOWCS
879REPLACE_MBSRTOWCS
880REPLACE_MBRLEN
881REPLACE_MBRTOWC
882REPLACE_MBSINIT
883REPLACE_WCTOB
884REPLACE_BTOWC
885REPLACE_MBSTATE_T
886HAVE_DECL_WCWIDTH
887HAVE_DECL_WCTOB
888HAVE_WCSWIDTH
889HAVE_WCSTOK
890HAVE_WCSSTR
891HAVE_WCSPBRK
892HAVE_WCSSPN
893HAVE_WCSCSPN
894HAVE_WCSRCHR
895HAVE_WCSCHR
896HAVE_WCSDUP
897HAVE_WCSXFRM
898HAVE_WCSCOLL
899HAVE_WCSNCASECMP
900HAVE_WCSCASECMP
901HAVE_WCSNCMP
902HAVE_WCSCMP
903HAVE_WCSNCAT
904HAVE_WCSCAT
905HAVE_WCPNCPY
906HAVE_WCSNCPY
907HAVE_WCPCPY
908HAVE_WCSCPY
909HAVE_WCSNLEN
910HAVE_WCSLEN
911HAVE_WMEMSET
912HAVE_WMEMMOVE
913HAVE_WMEMCPY
914HAVE_WMEMCMP
915HAVE_WMEMCHR
916HAVE_WCSNRTOMBS
917HAVE_WCSRTOMBS
918HAVE_WCRTOMB
919HAVE_MBSNRTOWCS
920HAVE_MBSRTOWCS
921HAVE_MBRLEN
922HAVE_MBRTOWC
923HAVE_MBSINIT
924HAVE_BTOWC
925GNULIB_WCSWIDTH
926GNULIB_WCSTOK
927GNULIB_WCSSTR
928GNULIB_WCSPBRK
929GNULIB_WCSSPN
930GNULIB_WCSCSPN
931GNULIB_WCSRCHR
932GNULIB_WCSCHR
933GNULIB_WCSDUP
934GNULIB_WCSXFRM
935GNULIB_WCSCOLL
936GNULIB_WCSNCASECMP
937GNULIB_WCSCASECMP
938GNULIB_WCSNCMP
939GNULIB_WCSCMP
940GNULIB_WCSNCAT
941GNULIB_WCSCAT
942GNULIB_WCPNCPY
943GNULIB_WCSNCPY
944GNULIB_WCPCPY
945GNULIB_WCSCPY
946GNULIB_WCSNLEN
947GNULIB_WCSLEN
948GNULIB_WMEMSET
949GNULIB_WMEMMOVE
950GNULIB_WMEMCPY
951GNULIB_WMEMCMP
952GNULIB_WMEMCHR
953GNULIB_WCWIDTH
954GNULIB_WCSNRTOMBS
955GNULIB_WCSRTOMBS
956GNULIB_WCRTOMB
957GNULIB_MBSNRTOWCS
958GNULIB_MBSRTOWCS
959GNULIB_MBRLEN
960GNULIB_MBRTOWC
961GNULIB_MBSINIT
962GNULIB_WCTOB
963GNULIB_BTOWC
88b48903
WN
964NEXT_AS_FIRST_DIRECTIVE_MATH_H
965NEXT_MATH_H
8690e634
JK
966LOCALCHARSET_TESTS_ENVIRONMENT
967GLIBC21
c971b7fa
PA
968NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
969NEXT_INTTYPES_H
970UINT64_MAX_EQ_ULONG_MAX
971UINT32_MAX_LT_UINTMAX_MAX
972PRIPTR_PREFIX
973PRI_MACROS_BROKEN
974INT64_MAX_EQ_LONG_MAX
975INT32_MAX_LT_INTMAX_MAX
976REPLACE_STRTOIMAX
977HAVE_DECL_STRTOUMAX
978HAVE_DECL_STRTOIMAX
979HAVE_DECL_IMAXDIV
980HAVE_DECL_IMAXABS
981GNULIB_STRTOUMAX
982GNULIB_STRTOIMAX
983GNULIB_IMAXDIV
984GNULIB_IMAXABS
985GL_GENERATE_STDINT_H_FALSE
986GL_GENERATE_STDINT_H_TRUE
987STDINT_H
988WINT_T_SUFFIX
989WCHAR_T_SUFFIX
990SIG_ATOMIC_T_SUFFIX
991SIZE_T_SUFFIX
992PTRDIFF_T_SUFFIX
993HAVE_SIGNED_WINT_T
994HAVE_SIGNED_WCHAR_T
995HAVE_SIGNED_SIG_ATOMIC_T
996BITSIZEOF_WINT_T
997BITSIZEOF_WCHAR_T
998BITSIZEOF_SIG_ATOMIC_T
999BITSIZEOF_SIZE_T
1000BITSIZEOF_PTRDIFF_T
1001APPLE_UNIVERSAL_BUILD
1002HAVE_SYS_BITYPES_H
1003HAVE_SYS_INTTYPES_H
1004HAVE_STDINT_H
1005NEXT_AS_FIRST_DIRECTIVE_STDINT_H
1006NEXT_STDINT_H
c971b7fa
PA
1007HAVE_SYS_TYPES_H
1008HAVE_INTTYPES_H
1009HAVE_WCHAR_H
1010HAVE_UNSIGNED_LONG_LONG_INT
1011HAVE_LONG_LONG_INT
88b48903
WN
1012FREXPL_LIBM
1013HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
1014FREXP_LIBM
1015REPLACE_TRUNCL
1016REPLACE_TRUNCF
1017REPLACE_TRUNC
1018REPLACE_SQRTL
1019REPLACE_SIGNBIT_USING_GCC
1020REPLACE_SIGNBIT
1021REPLACE_ROUNDL
1022REPLACE_ROUNDF
1023REPLACE_ROUND
1024REPLACE_REMAINDERL
1025REPLACE_REMAINDERF
1026REPLACE_REMAINDER
1027REPLACE_NAN
1028REPLACE_MODFL
1029REPLACE_MODFF
1030REPLACE_MODF
1031REPLACE_LOGBL
1032REPLACE_LOGBF
1033REPLACE_LOGB
1034REPLACE_LOG2L
1035REPLACE_LOG2F
1036REPLACE_LOG2
1037REPLACE_LOG1PL
1038REPLACE_LOG1PF
1039REPLACE_LOG1P
1040REPLACE_LOG10L
1041REPLACE_LOG10F
1042REPLACE_LOG10
1043REPLACE_LOGL
1044REPLACE_LOGF
1045REPLACE_LOG
1046REPLACE_LDEXPL
1047REPLACE_ISNAN
1048REPLACE_ISINF
1049REPLACE_ISFINITE
1050REPLACE_ILOGBF
1051REPLACE_ILOGB
1052REPLACE_HYPOTL
1053REPLACE_HYPOTF
1054REPLACE_HYPOT
1055REPLACE_HUGE_VAL
1056REPLACE_FREXPL
1057REPLACE_FREXP
1058REPLACE_FREXPF
1059REPLACE_FMODL
1060REPLACE_FMODF
1061REPLACE_FMOD
1062REPLACE_FMAL
1063REPLACE_FMAF
1064REPLACE_FMA
1065REPLACE_FLOORL
1066REPLACE_FLOORF
1067REPLACE_FLOOR
1068REPLACE_FABSL
1069REPLACE_EXP2L
1070REPLACE_EXP2
1071REPLACE_EXPM1F
1072REPLACE_EXPM1
1073REPLACE_CEILL
1074REPLACE_CEILF
1075REPLACE_CEIL
1076REPLACE_CBRTL
1077REPLACE_CBRTF
1078HAVE_DECL_TRUNCL
1079HAVE_DECL_TRUNCF
1080HAVE_DECL_TRUNC
1081HAVE_DECL_TANL
1082HAVE_DECL_SQRTL
1083HAVE_DECL_SINL
1084HAVE_DECL_ROUNDL
1085HAVE_DECL_ROUNDF
1086HAVE_DECL_ROUND
1087HAVE_DECL_RINTF
1088HAVE_DECL_REMAINDERL
1089HAVE_DECL_REMAINDER
1090HAVE_DECL_LOGB
1091HAVE_DECL_LOG2L
1092HAVE_DECL_LOG2F
1093HAVE_DECL_LOG2
1094HAVE_DECL_LOG10L
1095HAVE_DECL_LOGL
1096HAVE_DECL_LDEXPL
1097HAVE_DECL_FREXPL
1098HAVE_DECL_FLOORL
1099HAVE_DECL_FLOORF
1100HAVE_DECL_EXPM1L
1101HAVE_DECL_EXP2L
1102HAVE_DECL_EXP2F
1103HAVE_DECL_EXP2
1104HAVE_DECL_EXPL
1105HAVE_DECL_COSL
1106HAVE_DECL_COPYSIGNF
1107HAVE_DECL_CEILL
1108HAVE_DECL_CEILF
1109HAVE_DECL_CBRTL
1110HAVE_DECL_CBRTF
1111HAVE_DECL_ATANL
1112HAVE_DECL_ASINL
1113HAVE_DECL_ACOSL
1114HAVE_TANHF
1115HAVE_TANL
1116HAVE_TANF
1117HAVE_SQRTL
1118HAVE_SQRTF
1119HAVE_SINHF
1120HAVE_SINL
1121HAVE_SINF
1122HAVE_RINTL
1123HAVE_RINT
1124HAVE_REMAINDERF
1125HAVE_REMAINDER
1126HAVE_POWF
1127HAVE_MODFL
1128HAVE_MODFF
1129HAVE_LOGBL
1130HAVE_LOGBF
1131HAVE_LOG1PL
1132HAVE_LOG1PF
1133HAVE_LOG1P
1134HAVE_LOG10L
1135HAVE_LOG10F
1136HAVE_LOGL
1137HAVE_LOGF
1138HAVE_LDEXPF
1139HAVE_ISNANL
1140HAVE_ISNAND
1141HAVE_ISNANF
1142HAVE_ILOGBL
1143HAVE_ILOGBF
1144HAVE_ILOGB
1145HAVE_HYPOTL
1146HAVE_HYPOTF
1147HAVE_FREXPF
1148HAVE_FMODL
1149HAVE_FMODF
1150HAVE_FMAL
1151HAVE_FMAF
1152HAVE_FMA
1153HAVE_FABSL
1154HAVE_FABSF
1155HAVE_EXPM1F
1156HAVE_EXPM1
1157HAVE_EXPL
1158HAVE_EXPF
1159HAVE_COSHF
1160HAVE_COSL
1161HAVE_COSF
1162HAVE_COPYSIGNL
1163HAVE_COPYSIGN
1164HAVE_CBRTL
1165HAVE_CBRTF
1166HAVE_CBRT
1167HAVE_ATAN2F
1168HAVE_ATANL
1169HAVE_ATANF
1170HAVE_ASINL
1171HAVE_ASINF
1172HAVE_ACOSL
1173HAVE_ACOSF
1174GNULIB_TRUNCL
1175GNULIB_TRUNCF
1176GNULIB_TRUNC
1177GNULIB_TANHF
1178GNULIB_TANL
1179GNULIB_TANF
1180GNULIB_SQRTL
1181GNULIB_SQRTF
1182GNULIB_SINHF
1183GNULIB_SINL
1184GNULIB_SINF
1185GNULIB_SIGNBIT
1186GNULIB_ROUNDL
1187GNULIB_ROUNDF
1188GNULIB_ROUND
1189GNULIB_RINTL
1190GNULIB_RINTF
1191GNULIB_RINT
1192GNULIB_REMAINDERL
1193GNULIB_REMAINDERF
1194GNULIB_REMAINDER
1195GNULIB_POWF
1196GNULIB_MODFL
1197GNULIB_MODFF
1198GNULIB_MODF
1199GNULIB_LOGBL
1200GNULIB_LOGBF
1201GNULIB_LOGB
1202GNULIB_LOG2L
1203GNULIB_LOG2F
1204GNULIB_LOG2
1205GNULIB_LOG1PL
1206GNULIB_LOG1PF
1207GNULIB_LOG1P
1208GNULIB_LOG10L
1209GNULIB_LOG10F
1210GNULIB_LOG10
1211GNULIB_LOGL
1212GNULIB_LOGF
1213GNULIB_LOG
1214GNULIB_LDEXPL
1215GNULIB_LDEXPF
1216GNULIB_ISNANL
1217GNULIB_ISNAND
1218GNULIB_ISNANF
1219GNULIB_ISNAN
1220GNULIB_ISINF
1221GNULIB_ISFINITE
1222GNULIB_ILOGBL
1223GNULIB_ILOGBF
1224GNULIB_ILOGB
1225GNULIB_HYPOTL
1226GNULIB_HYPOTF
1227GNULIB_HYPOT
1228GNULIB_FREXPL
1229GNULIB_FREXP
1230GNULIB_FREXPF
1231GNULIB_FMODL
1232GNULIB_FMODF
1233GNULIB_FMOD
1234GNULIB_FMAL
1235GNULIB_FMAF
1236GNULIB_FMA
1237GNULIB_FLOORL
1238GNULIB_FLOORF
1239GNULIB_FLOOR
1240GNULIB_FABSL
1241GNULIB_FABSF
1242GNULIB_EXPM1L
1243GNULIB_EXPM1F
1244GNULIB_EXPM1
1245GNULIB_EXP2L
1246GNULIB_EXP2F
1247GNULIB_EXP2
1248GNULIB_EXPL
1249GNULIB_EXPF
1250GNULIB_COSHF
1251GNULIB_COSL
1252GNULIB_COSF
1253GNULIB_COPYSIGNL
1254GNULIB_COPYSIGNF
1255GNULIB_COPYSIGN
1256GNULIB_CEILL
1257GNULIB_CEILF
1258GNULIB_CEIL
1259GNULIB_CBRTL
1260GNULIB_CBRTF
1261GNULIB_CBRT
1262GNULIB_ATAN2F
1263GNULIB_ATANL
1264GNULIB_ATANF
1265GNULIB_ASINL
1266GNULIB_ASINF
1267GNULIB_ACOSL
1268GNULIB_ACOSF
8690e634
JK
1269GL_GENERATE_FNMATCH_H_FALSE
1270GL_GENERATE_FNMATCH_H_TRUE
1271FNMATCH_H
88b48903
WN
1272REPLACE_ITOLD
1273GL_GENERATE_FLOAT_H_FALSE
1274GL_GENERATE_FLOAT_H_TRUE
1275FLOAT_H
1276NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1277NEXT_FLOAT_H
1278PRAGMA_COLUMNS
1279PRAGMA_SYSTEM_HEADER
1280INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1281INCLUDE_NEXT
8690e634
JK
1282pkglibexecdir
1283lispdir
1284GL_GENERATE_ALLOCA_H_FALSE
1285GL_GENERATE_ALLOCA_H_TRUE
1286ALLOCA_H
1287ALLOCA
c971b7fa
PA
1288GL_COND_LIBTOOL_FALSE
1289GL_COND_LIBTOOL_TRUE
1290target_os
1291target_vendor
1292target_cpu
1293target
1294RANLIB
1295ARFLAGS
1296AR
1297EGREP
1298GREP
1299CPP
1300host_os
1301host_vendor
1302host_cpu
1303host
1304build_os
1305build_vendor
1306build_cpu
1307build
1308OBJEXT
1309EXEEXT
1310ac_ct_CC
1311CPPFLAGS
1312LDFLAGS
1313CFLAGS
1314CC
1315MAINT
1316MAINTAINER_MODE_FALSE
1317MAINTAINER_MODE_TRUE
1318target_alias
1319host_alias
1320build_alias
1321LIBS
1322ECHO_T
1323ECHO_N
1324ECHO_C
1325DEFS
1326mandir
1327localedir
1328libdir
1329psdir
1330pdfdir
1331dvidir
1332htmldir
1333infodir
1334docdir
1335oldincludedir
1336includedir
1337localstatedir
1338sharedstatedir
1339sysconfdir
1340datadir
1341datarootdir
1342libexecdir
1343sbindir
1344bindir
1345program_transform_name
1346prefix
1347exec_prefix
1348PACKAGE_URL
1349PACKAGE_BUGREPORT
1350PACKAGE_STRING
1351PACKAGE_VERSION
1352PACKAGE_TARNAME
1353PACKAGE_NAME
1354PATH_SEPARATOR
1355SHELL'
1356ac_subst_files=''
1357ac_user_opts='
1358enable_option_checking
1359enable_maintainer_mode
1360enable_dependency_tracking
1361'
1362 ac_precious_vars='build_alias
1363host_alias
1364target_alias
1365CC
1366CFLAGS
1367LDFLAGS
1368LIBS
1369CPPFLAGS
1370CPP'
1371
1372
1373# Initialize some variables set by options.
1374ac_init_help=
1375ac_init_version=false
1376ac_unrecognized_opts=
1377ac_unrecognized_sep=
1378# The variables have the same names as the options, with
1379# dashes changed to underlines.
1380cache_file=/dev/null
1381exec_prefix=NONE
1382no_create=
1383no_recursion=
1384prefix=NONE
1385program_prefix=NONE
1386program_suffix=NONE
1387program_transform_name=s,x,x,
1388silent=
1389site=
1390srcdir=
1391verbose=
1392x_includes=NONE
1393x_libraries=NONE
1394
1395# Installation directory options.
1396# These are left unexpanded so users can "make install exec_prefix=/foo"
1397# and all the variables that are supposed to be based on exec_prefix
1398# by default will actually change.
1399# Use braces instead of parens because sh, perl, etc. also accept them.
1400# (The list follows the same order as the GNU Coding Standards.)
1401bindir='${exec_prefix}/bin'
1402sbindir='${exec_prefix}/sbin'
1403libexecdir='${exec_prefix}/libexec'
1404datarootdir='${prefix}/share'
1405datadir='${datarootdir}'
1406sysconfdir='${prefix}/etc'
1407sharedstatedir='${prefix}/com'
1408localstatedir='${prefix}/var'
1409includedir='${prefix}/include'
1410oldincludedir='/usr/include'
1411docdir='${datarootdir}/doc/${PACKAGE}'
1412infodir='${datarootdir}/info'
1413htmldir='${docdir}'
1414dvidir='${docdir}'
1415pdfdir='${docdir}'
1416psdir='${docdir}'
1417libdir='${exec_prefix}/lib'
1418localedir='${datarootdir}/locale'
1419mandir='${datarootdir}/man'
1420
1421ac_prev=
1422ac_dashdash=
1423for ac_option
1424do
1425 # If the previous option needs an argument, assign it.
1426 if test -n "$ac_prev"; then
1427 eval $ac_prev=\$ac_option
1428 ac_prev=
1429 continue
1430 fi
1431
1432 case $ac_option in
1433 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1434 *) ac_optarg=yes ;;
1435 esac
1436
1437 # Accept the important Cygnus configure options, so we can diagnose typos.
1438
1439 case $ac_dashdash$ac_option in
1440 --)
1441 ac_dashdash=yes ;;
1442
1443 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1444 ac_prev=bindir ;;
1445 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1446 bindir=$ac_optarg ;;
1447
1448 -build | --build | --buil | --bui | --bu)
1449 ac_prev=build_alias ;;
1450 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1451 build_alias=$ac_optarg ;;
1452
1453 -cache-file | --cache-file | --cache-fil | --cache-fi \
1454 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1455 ac_prev=cache_file ;;
1456 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1457 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1458 cache_file=$ac_optarg ;;
1459
1460 --config-cache | -C)
1461 cache_file=config.cache ;;
1462
1463 -datadir | --datadir | --datadi | --datad)
1464 ac_prev=datadir ;;
1465 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1466 datadir=$ac_optarg ;;
1467
1468 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1469 | --dataroo | --dataro | --datar)
1470 ac_prev=datarootdir ;;
1471 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1472 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1473 datarootdir=$ac_optarg ;;
1474
1475 -disable-* | --disable-*)
1476 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1477 # Reject names that are not valid shell variable names.
1478 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1479 as_fn_error "invalid feature name: $ac_useropt"
1480 ac_useropt_orig=$ac_useropt
1481 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1482 case $ac_user_opts in
1483 *"
1484"enable_$ac_useropt"
1485"*) ;;
1486 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1487 ac_unrecognized_sep=', ';;
1488 esac
1489 eval enable_$ac_useropt=no ;;
1490
1491 -docdir | --docdir | --docdi | --doc | --do)
1492 ac_prev=docdir ;;
1493 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1494 docdir=$ac_optarg ;;
1495
1496 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1497 ac_prev=dvidir ;;
1498 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1499 dvidir=$ac_optarg ;;
1500
1501 -enable-* | --enable-*)
1502 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1503 # Reject names that are not valid shell variable names.
1504 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1505 as_fn_error "invalid feature name: $ac_useropt"
1506 ac_useropt_orig=$ac_useropt
1507 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1508 case $ac_user_opts in
1509 *"
1510"enable_$ac_useropt"
1511"*) ;;
1512 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1513 ac_unrecognized_sep=', ';;
1514 esac
1515 eval enable_$ac_useropt=\$ac_optarg ;;
1516
1517 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1518 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1519 | --exec | --exe | --ex)
1520 ac_prev=exec_prefix ;;
1521 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1522 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1523 | --exec=* | --exe=* | --ex=*)
1524 exec_prefix=$ac_optarg ;;
1525
1526 -gas | --gas | --ga | --g)
1527 # Obsolete; use --with-gas.
1528 with_gas=yes ;;
1529
1530 -help | --help | --hel | --he | -h)
1531 ac_init_help=long ;;
1532 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1533 ac_init_help=recursive ;;
1534 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1535 ac_init_help=short ;;
1536
1537 -host | --host | --hos | --ho)
1538 ac_prev=host_alias ;;
1539 -host=* | --host=* | --hos=* | --ho=*)
1540 host_alias=$ac_optarg ;;
1541
1542 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1543 ac_prev=htmldir ;;
1544 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1545 | --ht=*)
1546 htmldir=$ac_optarg ;;
1547
1548 -includedir | --includedir | --includedi | --included | --include \
1549 | --includ | --inclu | --incl | --inc)
1550 ac_prev=includedir ;;
1551 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1552 | --includ=* | --inclu=* | --incl=* | --inc=*)
1553 includedir=$ac_optarg ;;
1554
1555 -infodir | --infodir | --infodi | --infod | --info | --inf)
1556 ac_prev=infodir ;;
1557 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1558 infodir=$ac_optarg ;;
1559
1560 -libdir | --libdir | --libdi | --libd)
1561 ac_prev=libdir ;;
1562 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1563 libdir=$ac_optarg ;;
1564
1565 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1566 | --libexe | --libex | --libe)
1567 ac_prev=libexecdir ;;
1568 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1569 | --libexe=* | --libex=* | --libe=*)
1570 libexecdir=$ac_optarg ;;
1571
1572 -localedir | --localedir | --localedi | --localed | --locale)
1573 ac_prev=localedir ;;
1574 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1575 localedir=$ac_optarg ;;
1576
1577 -localstatedir | --localstatedir | --localstatedi | --localstated \
1578 | --localstate | --localstat | --localsta | --localst | --locals)
1579 ac_prev=localstatedir ;;
1580 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1581 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1582 localstatedir=$ac_optarg ;;
1583
1584 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1585 ac_prev=mandir ;;
1586 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1587 mandir=$ac_optarg ;;
1588
1589 -nfp | --nfp | --nf)
1590 # Obsolete; use --without-fp.
1591 with_fp=no ;;
1592
1593 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1594 | --no-cr | --no-c | -n)
1595 no_create=yes ;;
1596
1597 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1598 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1599 no_recursion=yes ;;
1600
1601 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1602 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1603 | --oldin | --oldi | --old | --ol | --o)
1604 ac_prev=oldincludedir ;;
1605 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1606 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1607 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1608 oldincludedir=$ac_optarg ;;
1609
1610 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1611 ac_prev=prefix ;;
1612 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1613 prefix=$ac_optarg ;;
1614
1615 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1616 | --program-pre | --program-pr | --program-p)
1617 ac_prev=program_prefix ;;
1618 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1619 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1620 program_prefix=$ac_optarg ;;
1621
1622 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1623 | --program-suf | --program-su | --program-s)
1624 ac_prev=program_suffix ;;
1625 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1626 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1627 program_suffix=$ac_optarg ;;
1628
1629 -program-transform-name | --program-transform-name \
1630 | --program-transform-nam | --program-transform-na \
1631 | --program-transform-n | --program-transform- \
1632 | --program-transform | --program-transfor \
1633 | --program-transfo | --program-transf \
1634 | --program-trans | --program-tran \
1635 | --progr-tra | --program-tr | --program-t)
1636 ac_prev=program_transform_name ;;
1637 -program-transform-name=* | --program-transform-name=* \
1638 | --program-transform-nam=* | --program-transform-na=* \
1639 | --program-transform-n=* | --program-transform-=* \
1640 | --program-transform=* | --program-transfor=* \
1641 | --program-transfo=* | --program-transf=* \
1642 | --program-trans=* | --program-tran=* \
1643 | --progr-tra=* | --program-tr=* | --program-t=*)
1644 program_transform_name=$ac_optarg ;;
1645
1646 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1647 ac_prev=pdfdir ;;
1648 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1649 pdfdir=$ac_optarg ;;
1650
1651 -psdir | --psdir | --psdi | --psd | --ps)
1652 ac_prev=psdir ;;
1653 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1654 psdir=$ac_optarg ;;
1655
1656 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1657 | -silent | --silent | --silen | --sile | --sil)
1658 silent=yes ;;
1659
1660 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1661 ac_prev=sbindir ;;
1662 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1663 | --sbi=* | --sb=*)
1664 sbindir=$ac_optarg ;;
1665
1666 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1667 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1668 | --sharedst | --shareds | --shared | --share | --shar \
1669 | --sha | --sh)
1670 ac_prev=sharedstatedir ;;
1671 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1672 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1673 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1674 | --sha=* | --sh=*)
1675 sharedstatedir=$ac_optarg ;;
1676
1677 -site | --site | --sit)
1678 ac_prev=site ;;
1679 -site=* | --site=* | --sit=*)
1680 site=$ac_optarg ;;
1681
1682 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1683 ac_prev=srcdir ;;
1684 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1685 srcdir=$ac_optarg ;;
1686
1687 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1688 | --syscon | --sysco | --sysc | --sys | --sy)
1689 ac_prev=sysconfdir ;;
1690 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1691 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1692 sysconfdir=$ac_optarg ;;
1693
1694 -target | --target | --targe | --targ | --tar | --ta | --t)
1695 ac_prev=target_alias ;;
1696 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1697 target_alias=$ac_optarg ;;
1698
1699 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1700 verbose=yes ;;
1701
1702 -version | --version | --versio | --versi | --vers | -V)
1703 ac_init_version=: ;;
1704
1705 -with-* | --with-*)
1706 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1707 # Reject names that are not valid shell variable names.
1708 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1709 as_fn_error "invalid package name: $ac_useropt"
1710 ac_useropt_orig=$ac_useropt
1711 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1712 case $ac_user_opts in
1713 *"
1714"with_$ac_useropt"
1715"*) ;;
1716 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1717 ac_unrecognized_sep=', ';;
1718 esac
1719 eval with_$ac_useropt=\$ac_optarg ;;
1720
1721 -without-* | --without-*)
1722 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1723 # Reject names that are not valid shell variable names.
1724 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1725 as_fn_error "invalid package name: $ac_useropt"
1726 ac_useropt_orig=$ac_useropt
1727 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1728 case $ac_user_opts in
1729 *"
1730"with_$ac_useropt"
1731"*) ;;
1732 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1733 ac_unrecognized_sep=', ';;
1734 esac
1735 eval with_$ac_useropt=no ;;
1736
1737 --x)
1738 # Obsolete; use --with-x.
1739 with_x=yes ;;
1740
1741 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1742 | --x-incl | --x-inc | --x-in | --x-i)
1743 ac_prev=x_includes ;;
1744 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1745 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1746 x_includes=$ac_optarg ;;
1747
1748 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1749 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1750 ac_prev=x_libraries ;;
1751 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1752 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1753 x_libraries=$ac_optarg ;;
1754
1755 -*) as_fn_error "unrecognized option: \`$ac_option'
1756Try \`$0 --help' for more information."
1757 ;;
1758
1759 *=*)
1760 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1761 # Reject names that are not valid shell variable names.
1762 case $ac_envvar in #(
1763 '' | [0-9]* | *[!_$as_cr_alnum]* )
1764 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1765 esac
1766 eval $ac_envvar=\$ac_optarg
1767 export $ac_envvar ;;
1768
1769 *)
1770 # FIXME: should be removed in autoconf 3.0.
1771 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1772 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1773 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1774 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1775 ;;
1776
1777 esac
1778done
1779
1780if test -n "$ac_prev"; then
1781 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1782 as_fn_error "missing argument to $ac_option"
1783fi
1784
1785if test -n "$ac_unrecognized_opts"; then
1786 case $enable_option_checking in
1787 no) ;;
1788 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1789 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1790 esac
1791fi
1792
1793# Check all directory arguments for consistency.
1794for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1795 datadir sysconfdir sharedstatedir localstatedir includedir \
1796 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1797 libdir localedir mandir
1798do
1799 eval ac_val=\$$ac_var
1800 # Remove trailing slashes.
1801 case $ac_val in
1802 */ )
1803 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1804 eval $ac_var=\$ac_val;;
1805 esac
1806 # Be sure to have absolute directory names.
1807 case $ac_val in
1808 [\\/$]* | ?:[\\/]* ) continue;;
1809 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1810 esac
1811 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1812done
1813
1814# There might be people who depend on the old broken behavior: `$host'
1815# used to hold the argument of --host etc.
1816# FIXME: To remove some day.
1817build=$build_alias
1818host=$host_alias
1819target=$target_alias
1820
1821# FIXME: To remove some day.
1822if test "x$host_alias" != x; then
1823 if test "x$build_alias" = x; then
1824 cross_compiling=maybe
1825 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1826 If a cross compiler is detected then cross compile mode will be used." >&2
1827 elif test "x$build_alias" != "x$host_alias"; then
1828 cross_compiling=yes
1829 fi
1830fi
1831
1832ac_tool_prefix=
1833test -n "$host_alias" && ac_tool_prefix=$host_alias-
1834
1835test "$silent" = yes && exec 6>/dev/null
1836
1837
1838ac_pwd=`pwd` && test -n "$ac_pwd" &&
1839ac_ls_di=`ls -di .` &&
1840ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1841 as_fn_error "working directory cannot be determined"
1842test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1843 as_fn_error "pwd does not report name of working directory"
1844
1845
1846# Find the source files, if location was not specified.
1847if test -z "$srcdir"; then
1848 ac_srcdir_defaulted=yes
1849 # Try the directory containing this script, then the parent directory.
1850 ac_confdir=`$as_dirname -- "$as_myself" ||
1851$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1852 X"$as_myself" : 'X\(//\)[^/]' \| \
1853 X"$as_myself" : 'X\(//\)$' \| \
1854 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1855$as_echo X"$as_myself" |
1856 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1857 s//\1/
1858 q
1859 }
1860 /^X\(\/\/\)[^/].*/{
1861 s//\1/
1862 q
1863 }
1864 /^X\(\/\/\)$/{
1865 s//\1/
1866 q
1867 }
1868 /^X\(\/\).*/{
1869 s//\1/
1870 q
1871 }
1872 s/.*/./; q'`
1873 srcdir=$ac_confdir
1874 if test ! -r "$srcdir/$ac_unique_file"; then
1875 srcdir=..
1876 fi
1877else
1878 ac_srcdir_defaulted=no
1879fi
1880if test ! -r "$srcdir/$ac_unique_file"; then
1881 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1882 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1883fi
1884ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1885ac_abs_confdir=`(
1886 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1887 pwd)`
1888# When building in place, set srcdir=.
1889if test "$ac_abs_confdir" = "$ac_pwd"; then
1890 srcdir=.
1891fi
1892# Remove unnecessary trailing slashes from srcdir.
1893# Double slashes in file names in object file debugging info
1894# mess up M-x gdb in Emacs.
1895case $srcdir in
1896*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1897esac
1898for ac_var in $ac_precious_vars; do
1899 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1900 eval ac_env_${ac_var}_value=\$${ac_var}
1901 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1902 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1903done
1904
1905#
1906# Report the --help message.
1907#
1908if test "$ac_init_help" = "long"; then
1909 # Omit some internal or obsolete options to make the list less imposing.
1910 # This message is too long to be a string in the A/UX 3.1 sh.
1911 cat <<_ACEOF
1912\`configure' configures this package to adapt to many kinds of systems.
1913
1914Usage: $0 [OPTION]... [VAR=VALUE]...
1915
1916To assign environment variables (e.g., CC, CFLAGS...), specify them as
1917VAR=VALUE. See below for descriptions of some of the useful variables.
1918
1919Defaults for the options are specified in brackets.
1920
1921Configuration:
1922 -h, --help display this help and exit
1923 --help=short display options specific to this package
1924 --help=recursive display the short help of all the included packages
1925 -V, --version display version information and exit
1926 -q, --quiet, --silent do not print \`checking...' messages
1927 --cache-file=FILE cache test results in FILE [disabled]
1928 -C, --config-cache alias for \`--cache-file=config.cache'
1929 -n, --no-create do not create output files
1930 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1931
1932Installation directories:
1933 --prefix=PREFIX install architecture-independent files in PREFIX
1934 [$ac_default_prefix]
1935 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1936 [PREFIX]
1937
1938By default, \`make install' will install all the files in
1939\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1940an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1941for instance \`--prefix=\$HOME'.
1942
1943For better control, use the options below.
1944
1945Fine tuning of the installation directories:
1946 --bindir=DIR user executables [EPREFIX/bin]
1947 --sbindir=DIR system admin executables [EPREFIX/sbin]
1948 --libexecdir=DIR program executables [EPREFIX/libexec]
1949 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1950 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1951 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1952 --libdir=DIR object code libraries [EPREFIX/lib]
1953 --includedir=DIR C header files [PREFIX/include]
1954 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1955 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1956 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1957 --infodir=DIR info documentation [DATAROOTDIR/info]
1958 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1959 --mandir=DIR man documentation [DATAROOTDIR/man]
1960 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1961 --htmldir=DIR html documentation [DOCDIR]
1962 --dvidir=DIR dvi documentation [DOCDIR]
1963 --pdfdir=DIR pdf documentation [DOCDIR]
1964 --psdir=DIR ps documentation [DOCDIR]
1965_ACEOF
1966
1967 cat <<\_ACEOF
1968
1969Program names:
1970 --program-prefix=PREFIX prepend PREFIX to installed program names
1971 --program-suffix=SUFFIX append SUFFIX to installed program names
1972 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1973
1974System types:
1975 --build=BUILD configure for building on BUILD [guessed]
1976 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1977 --target=TARGET configure for building compilers for TARGET [HOST]
1978_ACEOF
1979fi
1980
1981if test -n "$ac_init_help"; then
1982
1983 cat <<\_ACEOF
1984
1985Optional Features:
1986 --disable-option-checking ignore unrecognized --enable/--with options
1987 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1988 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1989 --enable-maintainer-mode enable make rules and dependencies not useful
1990 (and sometimes confusing) to the casual installer
1991 --disable-dependency-tracking speeds up one-time build
1992 --enable-dependency-tracking do not reject slow dependency extractors
1993
1994Some influential environment variables:
1995 CC C compiler command
1996 CFLAGS C compiler flags
1997 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1998 nonstandard directory <lib dir>
1999 LIBS libraries to pass to the linker, e.g. -l<library>
2000 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
2001 you have headers in a nonstandard directory <include dir>
2002 CPP C preprocessor
2003
2004Use these variables to override the choices made by `configure' or to help
2005it to find libraries and programs with nonstandard names/locations.
2006
2007Report bugs to the package provider.
2008_ACEOF
2009ac_status=$?
2010fi
2011
2012if test "$ac_init_help" = "recursive"; then
2013 # If there are subdirs, report their specific --help.
2014 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2015 test -d "$ac_dir" ||
2016 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2017 continue
2018 ac_builddir=.
2019
2020case "$ac_dir" in
2021.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2022*)
2023 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2024 # A ".." for each directory in $ac_dir_suffix.
2025 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2026 case $ac_top_builddir_sub in
2027 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2028 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2029 esac ;;
2030esac
2031ac_abs_top_builddir=$ac_pwd
2032ac_abs_builddir=$ac_pwd$ac_dir_suffix
2033# for backward compatibility:
2034ac_top_builddir=$ac_top_build_prefix
2035
2036case $srcdir in
2037 .) # We are building in place.
2038 ac_srcdir=.
2039 ac_top_srcdir=$ac_top_builddir_sub
2040 ac_abs_top_srcdir=$ac_pwd ;;
2041 [\\/]* | ?:[\\/]* ) # Absolute name.
2042 ac_srcdir=$srcdir$ac_dir_suffix;
2043 ac_top_srcdir=$srcdir
2044 ac_abs_top_srcdir=$srcdir ;;
2045 *) # Relative name.
2046 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2047 ac_top_srcdir=$ac_top_build_prefix$srcdir
2048 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2049esac
2050ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2051
2052 cd "$ac_dir" || { ac_status=$?; continue; }
2053 # Check for guested configure.
2054 if test -f "$ac_srcdir/configure.gnu"; then
2055 echo &&
2056 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2057 elif test -f "$ac_srcdir/configure"; then
2058 echo &&
2059 $SHELL "$ac_srcdir/configure" --help=recursive
2060 else
2061 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2062 fi || ac_status=$?
2063 cd "$ac_pwd" || { ac_status=$?; break; }
2064 done
2065fi
2066
2067test -n "$ac_init_help" && exit $ac_status
2068if $ac_init_version; then
2069 cat <<\_ACEOF
2070configure
2071generated by GNU Autoconf 2.64
2072
2073Copyright (C) 2009 Free Software Foundation, Inc.
2074This configure script is free software; the Free Software Foundation
2075gives unlimited permission to copy, distribute and modify it.
2076_ACEOF
2077 exit
2078fi
2079
2080## ------------------------ ##
2081## Autoconf initialization. ##
2082## ------------------------ ##
2083
2084# ac_fn_c_try_compile LINENO
2085# --------------------------
2086# Try to compile conftest.$ac_ext, and return whether this succeeded.
2087ac_fn_c_try_compile ()
2088{
2089 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2090 rm -f conftest.$ac_objext
2091 if { { ac_try="$ac_compile"
2092case "(($ac_try" in
2093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2094 *) ac_try_echo=$ac_try;;
2095esac
2096eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2097$as_echo "$ac_try_echo"; } >&5
2098 (eval "$ac_compile") 2>conftest.err
2099 ac_status=$?
2100 if test -s conftest.err; then
2101 grep -v '^ *+' conftest.err >conftest.er1
2102 cat conftest.er1 >&5
2103 mv -f conftest.er1 conftest.err
2104 fi
2105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2106 test $ac_status = 0; } && {
2107 test -z "$ac_c_werror_flag" ||
2108 test ! -s conftest.err
2109 } && test -s conftest.$ac_objext; then :
2110 ac_retval=0
2111else
2112 $as_echo "$as_me: failed program was:" >&5
2113sed 's/^/| /' conftest.$ac_ext >&5
2114
2115 ac_retval=1
2116fi
2117 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2118 return $ac_retval
2119
2120} # ac_fn_c_try_compile
2121
2122# ac_fn_c_try_cpp LINENO
2123# ----------------------
2124# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2125ac_fn_c_try_cpp ()
2126{
2127 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2128 if { { ac_try="$ac_cpp conftest.$ac_ext"
2129case "(($ac_try" in
2130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2131 *) ac_try_echo=$ac_try;;
2132esac
2133eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2134$as_echo "$ac_try_echo"; } >&5
2135 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2136 ac_status=$?
2137 if test -s conftest.err; then
2138 grep -v '^ *+' conftest.err >conftest.er1
2139 cat conftest.er1 >&5
2140 mv -f conftest.er1 conftest.err
2141 fi
2142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2143 test $ac_status = 0; } >/dev/null && {
2144 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2145 test ! -s conftest.err
2146 }; then :
2147 ac_retval=0
2148else
2149 $as_echo "$as_me: failed program was:" >&5
2150sed 's/^/| /' conftest.$ac_ext >&5
2151
2152 ac_retval=1
2153fi
2154 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2155 return $ac_retval
2156
2157} # ac_fn_c_try_cpp
2158
2159# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2160# -------------------------------------------------------
2161# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2162# the include files in INCLUDES and setting the cache variable VAR
2163# accordingly.
2164ac_fn_c_check_header_mongrel ()
2165{
2166 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2167 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2169$as_echo_n "checking for $2... " >&6; }
2170if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2171 $as_echo_n "(cached) " >&6
2172fi
2173eval ac_res=\$$3
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2175$as_echo "$ac_res" >&6; }
2176else
2177 # Is the header compilable?
2178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2179$as_echo_n "checking $2 usability... " >&6; }
2180cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2181/* end confdefs.h. */
2182$4
2183#include <$2>
2184_ACEOF
2185if ac_fn_c_try_compile "$LINENO"; then :
2186 ac_header_compiler=yes
2187else
2188 ac_header_compiler=no
2189fi
2190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2192$as_echo "$ac_header_compiler" >&6; }
2193
2194# Is the header present?
2195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2196$as_echo_n "checking $2 presence... " >&6; }
2197cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2198/* end confdefs.h. */
2199#include <$2>
2200_ACEOF
2201if ac_fn_c_try_cpp "$LINENO"; then :
2202 ac_header_preproc=yes
2203else
2204 ac_header_preproc=no
2205fi
2206rm -f conftest.err conftest.$ac_ext
2207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2208$as_echo "$ac_header_preproc" >&6; }
2209
2210# So? What about this header?
2211case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2212 yes:no: )
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2214$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2216$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2217 ;;
2218 no:yes:* )
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2220$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2222$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2224$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2226$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2228$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2229 ;;
2230esac
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2232$as_echo_n "checking for $2... " >&6; }
2233if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2234 $as_echo_n "(cached) " >&6
2235else
2236 eval "$3=\$ac_header_compiler"
2237fi
2238eval ac_res=\$$3
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2240$as_echo "$ac_res" >&6; }
2241fi
2242 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2243
2244} # ac_fn_c_check_header_mongrel
2245
2246# ac_fn_c_try_run LINENO
2247# ----------------------
2248# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2249# that executables *can* be run.
2250ac_fn_c_try_run ()
2251{
2252 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2253 if { { ac_try="$ac_link"
2254case "(($ac_try" in
2255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2256 *) ac_try_echo=$ac_try;;
2257esac
2258eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2259$as_echo "$ac_try_echo"; } >&5
2260 (eval "$ac_link") 2>&5
2261 ac_status=$?
2262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2263 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2264 { { case "(($ac_try" in
2265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2266 *) ac_try_echo=$ac_try;;
2267esac
2268eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2269$as_echo "$ac_try_echo"; } >&5
2270 (eval "$ac_try") 2>&5
2271 ac_status=$?
2272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2273 test $ac_status = 0; }; }; then :
2274 ac_retval=0
2275else
2276 $as_echo "$as_me: program exited with status $ac_status" >&5
2277 $as_echo "$as_me: failed program was:" >&5
2278sed 's/^/| /' conftest.$ac_ext >&5
2279
2280 ac_retval=$ac_status
2281fi
2282 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2283 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2284 return $ac_retval
2285
2286} # ac_fn_c_try_run
2287
2288# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2289# -------------------------------------------------------
2290# Tests whether HEADER exists and can be compiled using the include files in
2291# INCLUDES, setting the cache variable VAR accordingly.
2292ac_fn_c_check_header_compile ()
2293{
2294 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2296$as_echo_n "checking for $2... " >&6; }
2297if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2298 $as_echo_n "(cached) " >&6
2299else
2300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2301/* end confdefs.h. */
2302$4
2303#include <$2>
2304_ACEOF
2305if ac_fn_c_try_compile "$LINENO"; then :
2306 eval "$3=yes"
2307else
2308 eval "$3=no"
2309fi
2310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2311fi
2312eval ac_res=\$$3
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2314$as_echo "$ac_res" >&6; }
2315 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2316
2317} # ac_fn_c_check_header_compile
2318
2319# ac_fn_c_try_link LINENO
2320# -----------------------
2321# Try to link conftest.$ac_ext, and return whether this succeeded.
2322ac_fn_c_try_link ()
2323{
2324 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2325 rm -f conftest.$ac_objext conftest$ac_exeext
2326 if { { ac_try="$ac_link"
2327case "(($ac_try" in
2328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2329 *) ac_try_echo=$ac_try;;
2330esac
2331eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2332$as_echo "$ac_try_echo"; } >&5
2333 (eval "$ac_link") 2>conftest.err
2334 ac_status=$?
2335 if test -s conftest.err; then
2336 grep -v '^ *+' conftest.err >conftest.er1
2337 cat conftest.er1 >&5
2338 mv -f conftest.er1 conftest.err
2339 fi
2340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2341 test $ac_status = 0; } && {
2342 test -z "$ac_c_werror_flag" ||
2343 test ! -s conftest.err
2344 } && test -s conftest$ac_exeext && {
2345 test "$cross_compiling" = yes ||
2346 $as_test_x conftest$ac_exeext
2347 }; then :
2348 ac_retval=0
2349else
2350 $as_echo "$as_me: failed program was:" >&5
2351sed 's/^/| /' conftest.$ac_ext >&5
2352
2353 ac_retval=1
2354fi
2355 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2356 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2357 # interfere with the next link command; also delete a directory that is
2358 # left behind by Apple's compiler. We do this before executing the actions.
2359 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2360 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2361 return $ac_retval
2362
2363} # ac_fn_c_try_link
2364
8690e634
JK
2365# ac_fn_c_check_func LINENO FUNC VAR
2366# ----------------------------------
2367# Tests whether FUNC exists, setting the cache variable VAR accordingly
2368ac_fn_c_check_func ()
2369{
2370 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2372$as_echo_n "checking for $2... " >&6; }
2373if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2374 $as_echo_n "(cached) " >&6
2375else
2376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2377/* end confdefs.h. */
2378/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2379 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2380#define $2 innocuous_$2
2381
2382/* System header to define __stub macros and hopefully few prototypes,
2383 which can conflict with char $2 (); below.
2384 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2385 <limits.h> exists even on freestanding compilers. */
2386
2387#ifdef __STDC__
2388# include <limits.h>
2389#else
2390# include <assert.h>
2391#endif
2392
2393#undef $2
2394
2395/* Override any GCC internal prototype to avoid an error.
2396 Use char because int might match the return type of a GCC
2397 builtin and then its argument prototype would still apply. */
2398#ifdef __cplusplus
2399extern "C"
2400#endif
2401char $2 ();
2402/* The GNU C library defines this for functions which it implements
2403 to always fail with ENOSYS. Some functions are actually named
2404 something starting with __ and the normal name is an alias. */
2405#if defined __stub_$2 || defined __stub___$2
2406choke me
2407#endif
2408
2409int
2410main ()
2411{
2412return $2 ();
2413 ;
2414 return 0;
2415}
2416_ACEOF
2417if ac_fn_c_try_link "$LINENO"; then :
2418 eval "$3=yes"
2419else
2420 eval "$3=no"
2421fi
2422rm -f core conftest.err conftest.$ac_objext \
2423 conftest$ac_exeext conftest.$ac_ext
2424fi
2425eval ac_res=\$$3
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2427$as_echo "$ac_res" >&6; }
2428 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2429
2430} # ac_fn_c_check_func
2431
a143c6de
JB
2432# ac_fn_c_check_decl LINENO SYMBOL VAR
2433# ------------------------------------
2434# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2435ac_fn_c_check_decl ()
2436{
2437 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2439$as_echo_n "checking whether $2 is declared... " >&6; }
2440if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2441 $as_echo_n "(cached) " >&6
2442else
2443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2444/* end confdefs.h. */
2445$4
2446int
2447main ()
2448{
2449#ifndef $2
2450 (void) $2;
2451#endif
2452
2453 ;
2454 return 0;
2455}
2456_ACEOF
2457if ac_fn_c_try_compile "$LINENO"; then :
2458 eval "$3=yes"
2459else
2460 eval "$3=no"
2461fi
2462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2463fi
2464eval ac_res=\$$3
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2466$as_echo "$ac_res" >&6; }
2467 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2468
2469} # ac_fn_c_check_decl
2470
c971b7fa
PA
2471# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2472# --------------------------------------------
2473# Tries to find the compile-time value of EXPR in a program that includes
2474# INCLUDES, setting VAR accordingly. Returns whether the value could be
2475# computed
2476ac_fn_c_compute_int ()
2477{
2478 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2479 if test "$cross_compiling" = yes; then
2480 # Depending upon the size, compute the lo and hi bounds.
2481cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2482/* end confdefs.h. */
2483$4
2484int
2485main ()
2486{
2487static int test_array [1 - 2 * !(($2) >= 0)];
2488test_array [0] = 0
2489
2490 ;
2491 return 0;
2492}
2493_ACEOF
2494if ac_fn_c_try_compile "$LINENO"; then :
2495 ac_lo=0 ac_mid=0
2496 while :; do
2497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2498/* end confdefs.h. */
2499$4
2500int
2501main ()
2502{
2503static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2504test_array [0] = 0
2505
2506 ;
2507 return 0;
2508}
2509_ACEOF
2510if ac_fn_c_try_compile "$LINENO"; then :
2511 ac_hi=$ac_mid; break
2512else
2513 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2514 if test $ac_lo -le $ac_mid; then
2515 ac_lo= ac_hi=
2516 break
2517 fi
2518 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2519fi
2520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2521 done
2522else
2523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2524/* end confdefs.h. */
2525$4
2526int
2527main ()
2528{
2529static int test_array [1 - 2 * !(($2) < 0)];
2530test_array [0] = 0
2531
2532 ;
2533 return 0;
2534}
2535_ACEOF
2536if ac_fn_c_try_compile "$LINENO"; then :
2537 ac_hi=-1 ac_mid=-1
2538 while :; do
2539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2540/* end confdefs.h. */
2541$4
2542int
2543main ()
2544{
2545static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2546test_array [0] = 0
2547
2548 ;
2549 return 0;
2550}
2551_ACEOF
2552if ac_fn_c_try_compile "$LINENO"; then :
2553 ac_lo=$ac_mid; break
2554else
2555 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2556 if test $ac_mid -le $ac_hi; then
2557 ac_lo= ac_hi=
2558 break
2559 fi
2560 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2561fi
2562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2563 done
2564else
2565 ac_lo= ac_hi=
2566fi
2567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2568fi
2569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2570# Binary search between lo and hi bounds.
2571while test "x$ac_lo" != "x$ac_hi"; do
2572 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2574/* end confdefs.h. */
2575$4
2576int
2577main ()
2578{
2579static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2580test_array [0] = 0
2581
2582 ;
2583 return 0;
2584}
2585_ACEOF
2586if ac_fn_c_try_compile "$LINENO"; then :
2587 ac_hi=$ac_mid
2588else
2589 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2590fi
2591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2592done
2593case $ac_lo in #((
2594?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2595'') ac_retval=1 ;;
2596esac
2597 else
2598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2599/* end confdefs.h. */
2600$4
2601static long int longval () { return $2; }
2602static unsigned long int ulongval () { return $2; }
2603#include <stdio.h>
2604#include <stdlib.h>
2605int
2606main ()
2607{
2608
2609 FILE *f = fopen ("conftest.val", "w");
2610 if (! f)
2611 return 1;
2612 if (($2) < 0)
2613 {
2614 long int i = longval ();
2615 if (i != ($2))
2616 return 1;
2617 fprintf (f, "%ld", i);
2618 }
2619 else
2620 {
2621 unsigned long int i = ulongval ();
2622 if (i != ($2))
2623 return 1;
2624 fprintf (f, "%lu", i);
2625 }
2626 /* Do not output a trailing newline, as this causes \r\n confusion
2627 on some platforms. */
2628 return ferror (f) || fclose (f) != 0;
2629
2630 ;
2631 return 0;
2632}
2633_ACEOF
2634if ac_fn_c_try_run "$LINENO"; then :
2635 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2636else
2637 ac_retval=1
2638fi
2639rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2640 conftest.$ac_objext conftest.beam conftest.$ac_ext
2641rm -f conftest.val
2642
2643 fi
2644 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2645 return $ac_retval
2646
2647} # ac_fn_c_compute_int
2648
8690e634
JK
2649# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2650# -------------------------------------------
2651# Tests whether TYPE exists after having included INCLUDES, setting cache
2652# variable VAR accordingly.
2653ac_fn_c_check_type ()
c971b7fa
PA
2654{
2655 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2657$as_echo_n "checking for $2... " >&6; }
2658if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2659 $as_echo_n "(cached) " >&6
2660else
8690e634 2661 eval "$3=no"
c971b7fa
PA
2662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2663/* end confdefs.h. */
8690e634 2664$4
c971b7fa
PA
2665int
2666main ()
2667{
8690e634
JK
2668if (sizeof ($2))
2669 return 0;
c971b7fa
PA
2670 ;
2671 return 0;
2672}
2673_ACEOF
8690e634 2674if ac_fn_c_try_compile "$LINENO"; then :
c971b7fa
PA
2675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2676/* end confdefs.h. */
2677$4
2678int
2679main ()
2680{
8690e634
JK
2681if (sizeof (($2)))
2682 return 0;
c971b7fa
PA
2683 ;
2684 return 0;
2685}
2686_ACEOF
2687if ac_fn_c_try_compile "$LINENO"; then :
8690e634 2688
c971b7fa 2689else
8690e634
JK
2690 eval "$3=yes"
2691fi
2692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c971b7fa
PA
2693fi
2694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2695fi
2696eval ac_res=\$$3
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2698$as_echo "$ac_res" >&6; }
2699 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2700
8690e634 2701} # ac_fn_c_check_type
c971b7fa
PA
2702cat >config.log <<_ACEOF
2703This file contains any messages produced by compilers while
2704running configure, to aid debugging if configure makes a mistake.
2705
2706It was created by $as_me, which was
2707generated by GNU Autoconf 2.64. Invocation command line was
2708
2709 $ $0 $@
2710
2711_ACEOF
2712exec 5>>config.log
2713{
2714cat <<_ASUNAME
2715## --------- ##
2716## Platform. ##
2717## --------- ##
2718
2719hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2720uname -m = `(uname -m) 2>/dev/null || echo unknown`
2721uname -r = `(uname -r) 2>/dev/null || echo unknown`
2722uname -s = `(uname -s) 2>/dev/null || echo unknown`
2723uname -v = `(uname -v) 2>/dev/null || echo unknown`
2724
2725/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2726/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2727
2728/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2729/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2730/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2731/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2732/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2733/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2734/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2735
2736_ASUNAME
2737
2738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2739for as_dir in $PATH
2740do
2741 IFS=$as_save_IFS
2742 test -z "$as_dir" && as_dir=.
2743 $as_echo "PATH: $as_dir"
2744 done
2745IFS=$as_save_IFS
2746
2747} >&5
2748
2749cat >&5 <<_ACEOF
2750
2751
2752## ----------- ##
2753## Core tests. ##
2754## ----------- ##
2755
2756_ACEOF
2757
2758
2759# Keep a trace of the command line.
2760# Strip out --no-create and --no-recursion so they do not pile up.
2761# Strip out --silent because we don't want to record it for future runs.
2762# Also quote any args containing shell meta-characters.
2763# Make two passes to allow for proper duplicate-argument suppression.
2764ac_configure_args=
2765ac_configure_args0=
2766ac_configure_args1=
2767ac_must_keep_next=false
2768for ac_pass in 1 2
2769do
2770 for ac_arg
2771 do
2772 case $ac_arg in
2773 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2774 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2775 | -silent | --silent | --silen | --sile | --sil)
2776 continue ;;
2777 *\'*)
2778 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2779 esac
2780 case $ac_pass in
2781 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2782 2)
2783 as_fn_append ac_configure_args1 " '$ac_arg'"
2784 if test $ac_must_keep_next = true; then
2785 ac_must_keep_next=false # Got value, back to normal.
2786 else
2787 case $ac_arg in
2788 *=* | --config-cache | -C | -disable-* | --disable-* \
2789 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2790 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2791 | -with-* | --with-* | -without-* | --without-* | --x)
2792 case "$ac_configure_args0 " in
2793 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2794 esac
2795 ;;
2796 -* ) ac_must_keep_next=true ;;
2797 esac
2798 fi
2799 as_fn_append ac_configure_args " '$ac_arg'"
2800 ;;
2801 esac
2802 done
2803done
2804{ ac_configure_args0=; unset ac_configure_args0;}
2805{ ac_configure_args1=; unset ac_configure_args1;}
2806
2807# When interrupted or exit'd, cleanup temporary files, and complete
2808# config.log. We remove comments because anyway the quotes in there
2809# would cause problems or look ugly.
2810# WARNING: Use '\'' to represent an apostrophe within the trap.
2811# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2812trap 'exit_status=$?
2813 # Save into config.log some information that might help in debugging.
2814 {
2815 echo
2816
2817 cat <<\_ASBOX
2818## ---------------- ##
2819## Cache variables. ##
2820## ---------------- ##
2821_ASBOX
2822 echo
2823 # The following way of writing the cache mishandles newlines in values,
2824(
2825 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2826 eval ac_val=\$$ac_var
2827 case $ac_val in #(
2828 *${as_nl}*)
2829 case $ac_var in #(
2830 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2831$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2832 esac
2833 case $ac_var in #(
2834 _ | IFS | as_nl) ;; #(
2835 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2836 *) { eval $ac_var=; unset $ac_var;} ;;
2837 esac ;;
2838 esac
2839 done
2840 (set) 2>&1 |
2841 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2842 *${as_nl}ac_space=\ *)
2843 sed -n \
2844 "s/'\''/'\''\\\\'\'''\''/g;
2845 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2846 ;; #(
2847 *)
2848 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2849 ;;
2850 esac |
2851 sort
2852)
2853 echo
2854
2855 cat <<\_ASBOX
2856## ----------------- ##
2857## Output variables. ##
2858## ----------------- ##
2859_ASBOX
2860 echo
2861 for ac_var in $ac_subst_vars
2862 do
2863 eval ac_val=\$$ac_var
2864 case $ac_val in
2865 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2866 esac
2867 $as_echo "$ac_var='\''$ac_val'\''"
2868 done | sort
2869 echo
2870
2871 if test -n "$ac_subst_files"; then
2872 cat <<\_ASBOX
2873## ------------------- ##
2874## File substitutions. ##
2875## ------------------- ##
2876_ASBOX
2877 echo
2878 for ac_var in $ac_subst_files
2879 do
2880 eval ac_val=\$$ac_var
2881 case $ac_val in
2882 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2883 esac
2884 $as_echo "$ac_var='\''$ac_val'\''"
2885 done | sort
2886 echo
2887 fi
2888
2889 if test -s confdefs.h; then
2890 cat <<\_ASBOX
2891## ----------- ##
2892## confdefs.h. ##
2893## ----------- ##
2894_ASBOX
2895 echo
2896 cat confdefs.h
2897 echo
2898 fi
2899 test "$ac_signal" != 0 &&
2900 $as_echo "$as_me: caught signal $ac_signal"
2901 $as_echo "$as_me: exit $exit_status"
2902 } >&5
2903 rm -f core *.core core.conftest.* &&
2904 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2905 exit $exit_status
2906' 0
2907for ac_signal in 1 2 13 15; do
2908 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2909done
2910ac_signal=0
2911
2912# confdefs.h avoids OS command line length limits that DEFS can exceed.
2913rm -f -r conftest* confdefs.h
2914
2915$as_echo "/* confdefs.h */" > confdefs.h
2916
2917# Predefined preprocessor variables.
2918
2919cat >>confdefs.h <<_ACEOF
2920#define PACKAGE_NAME "$PACKAGE_NAME"
2921_ACEOF
2922
2923cat >>confdefs.h <<_ACEOF
2924#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2925_ACEOF
2926
2927cat >>confdefs.h <<_ACEOF
2928#define PACKAGE_VERSION "$PACKAGE_VERSION"
2929_ACEOF
2930
2931cat >>confdefs.h <<_ACEOF
2932#define PACKAGE_STRING "$PACKAGE_STRING"
2933_ACEOF
2934
2935cat >>confdefs.h <<_ACEOF
2936#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2937_ACEOF
2938
2939cat >>confdefs.h <<_ACEOF
2940#define PACKAGE_URL "$PACKAGE_URL"
2941_ACEOF
2942
2943
2944# Let the site file select an alternate cache file if it wants to.
2945# Prefer an explicitly selected file to automatically selected ones.
2946ac_site_file1=NONE
2947ac_site_file2=NONE
2948if test -n "$CONFIG_SITE"; then
2949 ac_site_file1=$CONFIG_SITE
2950elif test "x$prefix" != xNONE; then
2951 ac_site_file1=$prefix/share/config.site
2952 ac_site_file2=$prefix/etc/config.site
2953else
2954 ac_site_file1=$ac_default_prefix/share/config.site
2955 ac_site_file2=$ac_default_prefix/etc/config.site
2956fi
2957for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2958do
2959 test "x$ac_site_file" = xNONE && continue
2960 if test -r "$ac_site_file"; then
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2962$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2963 sed 's/^/| /' "$ac_site_file" >&5
2964 . "$ac_site_file"
2965 fi
2966done
2967
2968if test -r "$cache_file"; then
2969 # Some versions of bash will fail to source /dev/null (special
2970 # files actually), so we avoid doing that.
2971 if test -f "$cache_file"; then
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2973$as_echo "$as_me: loading cache $cache_file" >&6;}
2974 case $cache_file in
2975 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2976 *) . "./$cache_file";;
2977 esac
2978 fi
2979else
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2981$as_echo "$as_me: creating cache $cache_file" >&6;}
2982 >$cache_file
2983fi
2984
3574124b
PA
2985as_fn_append ac_func_list " btowc"
2986as_fn_append ac_func_list " isblank"
2987as_fn_append ac_func_list " iswctype"
2988as_fn_append ac_func_list " mbsrtowcs"
2989as_fn_append ac_func_list " mempcpy"
2990as_fn_append ac_func_list " wmemchr"
2991as_fn_append ac_func_list " wmemcpy"
2992as_fn_append ac_func_list " wmempcpy"
2993as_fn_append ac_header_list " wctype.h"
8690e634 2994gl_fnmatch_required=GNU
3574124b
PA
2995as_fn_append ac_func_list " alarm"
2996as_fn_append ac_header_list " wchar.h"
2997as_fn_append ac_header_list " stdint.h"
2998as_fn_append ac_header_list " inttypes.h"
2999as_fn_append ac_header_list " unistd.h"
3000as_fn_append ac_func_list " symlink"
3001as_fn_append ac_header_list " math.h"
3002as_fn_append ac_func_list " mbsinit"
3003as_fn_append ac_func_list " mbrtowc"
3004as_fn_append ac_header_list " sys/mman.h"
3005as_fn_append ac_func_list " mprotect"
3006as_fn_append ac_header_list " features.h"
3007as_fn_append ac_func_list " iswcntrl"
c971b7fa
PA
3008# Check that the precious variables saved in the cache have kept the same
3009# value.
3010ac_cache_corrupted=false
3011for ac_var in $ac_precious_vars; do
3012 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3013 eval ac_new_set=\$ac_env_${ac_var}_set
3014 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3015 eval ac_new_val=\$ac_env_${ac_var}_value
3016 case $ac_old_set,$ac_new_set in
3017 set,)
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3019$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3020 ac_cache_corrupted=: ;;
3021 ,set)
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3023$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3024 ac_cache_corrupted=: ;;
3025 ,);;
3026 *)
3027 if test "x$ac_old_val" != "x$ac_new_val"; then
3028 # differences in whitespace do not lead to failure.
3029 ac_old_val_w=`echo x $ac_old_val`
3030 ac_new_val_w=`echo x $ac_new_val`
3031 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3033$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3034 ac_cache_corrupted=:
3035 else
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3037$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3038 eval $ac_var=\$ac_old_val
3039 fi
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3041$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3043$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3044 fi;;
3045 esac
3046 # Pass precious variables to config.status.
3047 if test "$ac_new_set" = set; then
3048 case $ac_new_val in
3049 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3050 *) ac_arg=$ac_var=$ac_new_val ;;
3051 esac
3052 case " $ac_configure_args " in
3053 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3054 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3055 esac
3056 fi
3057done
3058if $ac_cache_corrupted; then
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3060$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3062$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3063 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3064fi
3065## -------------------- ##
3066## Main body of script. ##
3067## -------------------- ##
3068
3069ac_ext=c
3070ac_cpp='$CPP $CPPFLAGS'
3071ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3072ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3073ac_compiler_gnu=$ac_cv_c_compiler_gnu
3074
3075
3076ac_config_headers="$ac_config_headers config.h:config.in"
3077
3078
3079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3080$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3081 # Check whether --enable-maintainer-mode was given.
3082if test "${enable_maintainer_mode+set}" = set; then :
3083 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3084else
3085 USE_MAINTAINER_MODE=no
3086fi
3087
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3089$as_echo "$USE_MAINTAINER_MODE" >&6; }
3090 if test $USE_MAINTAINER_MODE = yes; then
3091 MAINTAINER_MODE_TRUE=
3092 MAINTAINER_MODE_FALSE='#'
3093else
3094 MAINTAINER_MODE_TRUE='#'
3095 MAINTAINER_MODE_FALSE=
3096fi
3097
3098 MAINT=$MAINTAINER_MODE_TRUE
3099
3100
3101
3102ac_ext=c
3103ac_cpp='$CPP $CPPFLAGS'
3104ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3105ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3106ac_compiler_gnu=$ac_cv_c_compiler_gnu
3107if test -n "$ac_tool_prefix"; then
3108 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3109set dummy ${ac_tool_prefix}gcc; ac_word=$2
3110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3111$as_echo_n "checking for $ac_word... " >&6; }
3112if test "${ac_cv_prog_CC+set}" = set; then :
3113 $as_echo_n "(cached) " >&6
3114else
3115 if test -n "$CC"; then
3116 ac_cv_prog_CC="$CC" # Let the user override the test.
3117else
3118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3119for as_dir in $PATH
3120do
3121 IFS=$as_save_IFS
3122 test -z "$as_dir" && as_dir=.
3123 for ac_exec_ext in '' $ac_executable_extensions; do
3124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3125 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3127 break 2
3128 fi
3129done
3130 done
3131IFS=$as_save_IFS
3132
3133fi
3134fi
3135CC=$ac_cv_prog_CC
3136if test -n "$CC"; then
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3138$as_echo "$CC" >&6; }
3139else
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3141$as_echo "no" >&6; }
3142fi
3143
3144
3145fi
3146if test -z "$ac_cv_prog_CC"; then
3147 ac_ct_CC=$CC
3148 # Extract the first word of "gcc", so it can be a program name with args.
3149set dummy gcc; ac_word=$2
3150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3151$as_echo_n "checking for $ac_word... " >&6; }
3152if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3153 $as_echo_n "(cached) " >&6
3154else
3155 if test -n "$ac_ct_CC"; then
3156 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3157else
3158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3159for as_dir in $PATH
3160do
3161 IFS=$as_save_IFS
3162 test -z "$as_dir" && as_dir=.
3163 for ac_exec_ext in '' $ac_executable_extensions; do
3164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3165 ac_cv_prog_ac_ct_CC="gcc"
3166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3167 break 2
3168 fi
3169done
3170 done
3171IFS=$as_save_IFS
3172
3173fi
3174fi
3175ac_ct_CC=$ac_cv_prog_ac_ct_CC
3176if test -n "$ac_ct_CC"; then
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3178$as_echo "$ac_ct_CC" >&6; }
3179else
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3181$as_echo "no" >&6; }
3182fi
3183
3184 if test "x$ac_ct_CC" = x; then
3185 CC=""
3186 else
3187 case $cross_compiling:$ac_tool_warned in
3188yes:)
3189{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3190$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3191ac_tool_warned=yes ;;
3192esac
3193 CC=$ac_ct_CC
3194 fi
3195else
3196 CC="$ac_cv_prog_CC"
3197fi
3198
3199if test -z "$CC"; then
3200 if test -n "$ac_tool_prefix"; then
3201 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3202set dummy ${ac_tool_prefix}cc; ac_word=$2
3203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3204$as_echo_n "checking for $ac_word... " >&6; }
3205if test "${ac_cv_prog_CC+set}" = set; then :
3206 $as_echo_n "(cached) " >&6
3207else
3208 if test -n "$CC"; then
3209 ac_cv_prog_CC="$CC" # Let the user override the test.
3210else
3211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3212for as_dir in $PATH
3213do
3214 IFS=$as_save_IFS
3215 test -z "$as_dir" && as_dir=.
3216 for ac_exec_ext in '' $ac_executable_extensions; do
3217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3218 ac_cv_prog_CC="${ac_tool_prefix}cc"
3219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3220 break 2
3221 fi
3222done
3223 done
3224IFS=$as_save_IFS
3225
3226fi
3227fi
3228CC=$ac_cv_prog_CC
3229if test -n "$CC"; then
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3231$as_echo "$CC" >&6; }
3232else
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3234$as_echo "no" >&6; }
3235fi
3236
3237
3238 fi
3239fi
3240if test -z "$CC"; then
3241 # Extract the first word of "cc", so it can be a program name with args.
3242set dummy cc; ac_word=$2
3243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3244$as_echo_n "checking for $ac_word... " >&6; }
3245if test "${ac_cv_prog_CC+set}" = set; then :
3246 $as_echo_n "(cached) " >&6
3247else
3248 if test -n "$CC"; then
3249 ac_cv_prog_CC="$CC" # Let the user override the test.
3250else
3251 ac_prog_rejected=no
3252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3253for as_dir in $PATH
3254do
3255 IFS=$as_save_IFS
3256 test -z "$as_dir" && as_dir=.
3257 for ac_exec_ext in '' $ac_executable_extensions; do
3258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3259 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3260 ac_prog_rejected=yes
3261 continue
3262 fi
3263 ac_cv_prog_CC="cc"
3264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3265 break 2
3266 fi
3267done
3268 done
3269IFS=$as_save_IFS
3270
3271if test $ac_prog_rejected = yes; then
3272 # We found a bogon in the path, so make sure we never use it.
3273 set dummy $ac_cv_prog_CC
3274 shift
3275 if test $# != 0; then
3276 # We chose a different compiler from the bogus one.
3277 # However, it has the same basename, so the bogon will be chosen
3278 # first if we set CC to just the basename; use the full file name.
3279 shift
3280 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3281 fi
3282fi
3283fi
3284fi
3285CC=$ac_cv_prog_CC
3286if test -n "$CC"; then
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3288$as_echo "$CC" >&6; }
3289else
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3291$as_echo "no" >&6; }
3292fi
3293
3294
3295fi
3296if test -z "$CC"; then
3297 if test -n "$ac_tool_prefix"; then
3298 for ac_prog in cl.exe
3299 do
3300 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3301set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3303$as_echo_n "checking for $ac_word... " >&6; }
3304if test "${ac_cv_prog_CC+set}" = set; then :
3305 $as_echo_n "(cached) " >&6
3306else
3307 if test -n "$CC"; then
3308 ac_cv_prog_CC="$CC" # Let the user override the test.
3309else
3310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3311for as_dir in $PATH
3312do
3313 IFS=$as_save_IFS
3314 test -z "$as_dir" && as_dir=.
3315 for ac_exec_ext in '' $ac_executable_extensions; do
3316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3317 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3319 break 2
3320 fi
3321done
3322 done
3323IFS=$as_save_IFS
3324
3325fi
3326fi
3327CC=$ac_cv_prog_CC
3328if test -n "$CC"; then
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3330$as_echo "$CC" >&6; }
3331else
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3333$as_echo "no" >&6; }
3334fi
3335
3336
3337 test -n "$CC" && break
3338 done
3339fi
3340if test -z "$CC"; then
3341 ac_ct_CC=$CC
3342 for ac_prog in cl.exe
3343do
3344 # Extract the first word of "$ac_prog", so it can be a program name with args.
3345set dummy $ac_prog; ac_word=$2
3346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3347$as_echo_n "checking for $ac_word... " >&6; }
3348if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3349 $as_echo_n "(cached) " >&6
3350else
3351 if test -n "$ac_ct_CC"; then
3352 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3353else
3354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3355for as_dir in $PATH
3356do
3357 IFS=$as_save_IFS
3358 test -z "$as_dir" && as_dir=.
3359 for ac_exec_ext in '' $ac_executable_extensions; do
3360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3361 ac_cv_prog_ac_ct_CC="$ac_prog"
3362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3363 break 2
3364 fi
3365done
3366 done
3367IFS=$as_save_IFS
3368
3369fi
3370fi
3371ac_ct_CC=$ac_cv_prog_ac_ct_CC
3372if test -n "$ac_ct_CC"; then
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3374$as_echo "$ac_ct_CC" >&6; }
3375else
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3377$as_echo "no" >&6; }
3378fi
3379
3380
3381 test -n "$ac_ct_CC" && break
3382done
3383
3384 if test "x$ac_ct_CC" = x; then
3385 CC=""
3386 else
3387 case $cross_compiling:$ac_tool_warned in
3388yes:)
3389{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3390$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3391ac_tool_warned=yes ;;
3392esac
3393 CC=$ac_ct_CC
3394 fi
3395fi
3396
3397fi
3398
3399
3400test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3401$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3402as_fn_error "no acceptable C compiler found in \$PATH
3403See \`config.log' for more details." "$LINENO" 5; }
3404
3405# Provide some information about the compiler.
3406$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3407set X $ac_compile
3408ac_compiler=$2
3409for ac_option in --version -v -V -qversion; do
3410 { { ac_try="$ac_compiler $ac_option >&5"
3411case "(($ac_try" in
3412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3413 *) ac_try_echo=$ac_try;;
3414esac
3415eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3416$as_echo "$ac_try_echo"; } >&5
3417 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3418 ac_status=$?
3419 if test -s conftest.err; then
3420 sed '10a\
3421... rest of stderr output deleted ...
3422 10q' conftest.err >conftest.er1
3423 cat conftest.er1 >&5
3424 rm -f conftest.er1 conftest.err
3425 fi
3426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3427 test $ac_status = 0; }
3428done
3429
3430cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3431/* end confdefs.h. */
3432#include <stdio.h>
3433int
3434main ()
3435{
3436FILE *f = fopen ("conftest.out", "w");
3437 return ferror (f) || fclose (f) != 0;
3438
3439 ;
3440 return 0;
3441}
3442_ACEOF
3443ac_clean_files_save=$ac_clean_files
3444ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3445# Try to create an executable without -o first, disregard a.out.
3446# It will help us diagnose broken compilers, and finding out an intuition
3447# of exeext.
3448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3449$as_echo_n "checking for C compiler default output file name... " >&6; }
3450ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3451
3452# The possible output files:
3453ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3454
3455ac_rmfiles=
3456for ac_file in $ac_files
3457do
3458 case $ac_file in
3459 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3460 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3461 esac
3462done
3463rm -f $ac_rmfiles
3464
3465if { { ac_try="$ac_link_default"
3466case "(($ac_try" in
3467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3468 *) ac_try_echo=$ac_try;;
3469esac
3470eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3471$as_echo "$ac_try_echo"; } >&5
3472 (eval "$ac_link_default") 2>&5
3473 ac_status=$?
3474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3475 test $ac_status = 0; }; then :
3476 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3477# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3478# in a Makefile. We should not override ac_cv_exeext if it was cached,
3479# so that the user can short-circuit this test for compilers unknown to
3480# Autoconf.
3481for ac_file in $ac_files ''
3482do
3483 test -f "$ac_file" || continue
3484 case $ac_file in
3485 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3486 ;;
3487 [ab].out )
3488 # We found the default executable, but exeext='' is most
3489 # certainly right.
3490 break;;
3491 *.* )
3492 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3493 then :; else
3494 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3495 fi
3496 # We set ac_cv_exeext here because the later test for it is not
3497 # safe: cross compilers may not add the suffix if given an `-o'
3498 # argument, so we may need to know it at that point already.
3499 # Even if this section looks crufty: it has the advantage of
3500 # actually working.
3501 break;;
3502 * )
3503 break;;
3504 esac
3505done
3506test "$ac_cv_exeext" = no && ac_cv_exeext=
3507
3508else
3509 ac_file=''
3510fi
3511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3512$as_echo "$ac_file" >&6; }
3513if test -z "$ac_file"; then :
3514 $as_echo "$as_me: failed program was:" >&5
3515sed 's/^/| /' conftest.$ac_ext >&5
3516
3517{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3518$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3519{ as_fn_set_status 77
3520as_fn_error "C compiler cannot create executables
3521See \`config.log' for more details." "$LINENO" 5; }; }
3522fi
3523ac_exeext=$ac_cv_exeext
3524
3525# Check that the compiler produces executables we can run. If not, either
3526# the compiler is broken, or we cross compile.
3527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3528$as_echo_n "checking whether the C compiler works... " >&6; }
3529# If not cross compiling, check that we can run a simple program.
3530if test "$cross_compiling" != yes; then
3531 if { ac_try='./$ac_file'
3532 { { case "(($ac_try" in
3533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3534 *) ac_try_echo=$ac_try;;
3535esac
3536eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3537$as_echo "$ac_try_echo"; } >&5
3538 (eval "$ac_try") 2>&5
3539 ac_status=$?
3540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3541 test $ac_status = 0; }; }; then
3542 cross_compiling=no
3543 else
3544 if test "$cross_compiling" = maybe; then
3545 cross_compiling=yes
3546 else
3547 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3548$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3549as_fn_error "cannot run C compiled programs.
3550If you meant to cross compile, use \`--host'.
3551See \`config.log' for more details." "$LINENO" 5; }
3552 fi
3553 fi
3554fi
3555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3556$as_echo "yes" >&6; }
3557
3558rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3559ac_clean_files=$ac_clean_files_save
3560# Check that the compiler produces executables we can run. If not, either
3561# the compiler is broken, or we cross compile.
3562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3563$as_echo_n "checking whether we are cross compiling... " >&6; }
3564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3565$as_echo "$cross_compiling" >&6; }
3566
3567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3568$as_echo_n "checking for suffix of executables... " >&6; }
3569if { { ac_try="$ac_link"
3570case "(($ac_try" in
3571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3572 *) ac_try_echo=$ac_try;;
3573esac
3574eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3575$as_echo "$ac_try_echo"; } >&5
3576 (eval "$ac_link") 2>&5
3577 ac_status=$?
3578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3579 test $ac_status = 0; }; then :
3580 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3581# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3582# work properly (i.e., refer to `conftest.exe'), while it won't with
3583# `rm'.
3584for ac_file in conftest.exe conftest conftest.*; do
3585 test -f "$ac_file" || continue
3586 case $ac_file in
3587 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3588 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3589 break;;
3590 * ) break;;
3591 esac
3592done
3593else
3594 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3595$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3596as_fn_error "cannot compute suffix of executables: cannot compile and link
3597See \`config.log' for more details." "$LINENO" 5; }
3598fi
3599rm -f conftest$ac_cv_exeext
3600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3601$as_echo "$ac_cv_exeext" >&6; }
3602
3603rm -f conftest.$ac_ext
3604EXEEXT=$ac_cv_exeext
3605ac_exeext=$EXEEXT
3606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3607$as_echo_n "checking for suffix of object files... " >&6; }
3608if test "${ac_cv_objext+set}" = set; then :
3609 $as_echo_n "(cached) " >&6
3610else
3611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3612/* end confdefs.h. */
3613
3614int
3615main ()
3616{
3617
3618 ;
3619 return 0;
3620}
3621_ACEOF
3622rm -f conftest.o conftest.obj
3623if { { ac_try="$ac_compile"
3624case "(($ac_try" in
3625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3626 *) ac_try_echo=$ac_try;;
3627esac
3628eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3629$as_echo "$ac_try_echo"; } >&5
3630 (eval "$ac_compile") 2>&5
3631 ac_status=$?
3632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3633 test $ac_status = 0; }; then :
3634 for ac_file in conftest.o conftest.obj conftest.*; do
3635 test -f "$ac_file" || continue;
3636 case $ac_file in
3637 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3638 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3639 break;;
3640 esac
3641done
3642else
3643 $as_echo "$as_me: failed program was:" >&5
3644sed 's/^/| /' conftest.$ac_ext >&5
3645
3646{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3647$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3648as_fn_error "cannot compute suffix of object files: cannot compile
3649See \`config.log' for more details." "$LINENO" 5; }
3650fi
3651rm -f conftest.$ac_cv_objext conftest.$ac_ext
3652fi
3653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3654$as_echo "$ac_cv_objext" >&6; }
3655OBJEXT=$ac_cv_objext
3656ac_objext=$OBJEXT
3657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3658$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3659if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3660 $as_echo_n "(cached) " >&6
3661else
3662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3663/* end confdefs.h. */
3664
3665int
3666main ()
3667{
3668#ifndef __GNUC__
3669 choke me
3670#endif
3671
3672 ;
3673 return 0;
3674}
3675_ACEOF
3676if ac_fn_c_try_compile "$LINENO"; then :
3677 ac_compiler_gnu=yes
3678else
3679 ac_compiler_gnu=no
3680fi
3681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3682ac_cv_c_compiler_gnu=$ac_compiler_gnu
3683
3684fi
3685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3686$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3687if test $ac_compiler_gnu = yes; then
3688 GCC=yes
3689else
3690 GCC=
3691fi
3692ac_test_CFLAGS=${CFLAGS+set}
3693ac_save_CFLAGS=$CFLAGS
3694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3695$as_echo_n "checking whether $CC accepts -g... " >&6; }
3696if test "${ac_cv_prog_cc_g+set}" = set; then :
3697 $as_echo_n "(cached) " >&6
3698else
3699 ac_save_c_werror_flag=$ac_c_werror_flag
3700 ac_c_werror_flag=yes
3701 ac_cv_prog_cc_g=no
3702 CFLAGS="-g"
3703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3704/* end confdefs.h. */
3705
3706int
3707main ()
3708{
3709
3710 ;
3711 return 0;
3712}
3713_ACEOF
3714if ac_fn_c_try_compile "$LINENO"; then :
3715 ac_cv_prog_cc_g=yes
3716else
3717 CFLAGS=""
3718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3719/* end confdefs.h. */
3720
3721int
3722main ()
3723{
3724
3725 ;
3726 return 0;
3727}
3728_ACEOF
3729if ac_fn_c_try_compile "$LINENO"; then :
3730
3731else
3732 ac_c_werror_flag=$ac_save_c_werror_flag
3733 CFLAGS="-g"
3734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3735/* end confdefs.h. */
3736
3737int
3738main ()
3739{
3740
3741 ;
3742 return 0;
3743}
3744_ACEOF
3745if ac_fn_c_try_compile "$LINENO"; then :
3746 ac_cv_prog_cc_g=yes
3747fi
3748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3749fi
3750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3751fi
3752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3753 ac_c_werror_flag=$ac_save_c_werror_flag
3754fi
3755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3756$as_echo "$ac_cv_prog_cc_g" >&6; }
3757if test "$ac_test_CFLAGS" = set; then
3758 CFLAGS=$ac_save_CFLAGS
3759elif test $ac_cv_prog_cc_g = yes; then
3760 if test "$GCC" = yes; then
3761 CFLAGS="-g -O2"
3762 else
3763 CFLAGS="-g"
3764 fi
3765else
3766 if test "$GCC" = yes; then
3767 CFLAGS="-O2"
3768 else
3769 CFLAGS=
3770 fi
3771fi
3772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3773$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3774if test "${ac_cv_prog_cc_c89+set}" = set; then :
3775 $as_echo_n "(cached) " >&6
3776else
3777 ac_cv_prog_cc_c89=no
3778ac_save_CC=$CC
3779cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3780/* end confdefs.h. */
3781#include <stdarg.h>
3782#include <stdio.h>
3783#include <sys/types.h>
3784#include <sys/stat.h>
3785/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3786struct buf { int x; };
3787FILE * (*rcsopen) (struct buf *, struct stat *, int);
3788static char *e (p, i)
3789 char **p;
3790 int i;
3791{
3792 return p[i];
3793}
3794static char *f (char * (*g) (char **, int), char **p, ...)
3795{
3796 char *s;
3797 va_list v;
3798 va_start (v,p);
3799 s = g (p, va_arg (v,int));
3800 va_end (v);
3801 return s;
3802}
3803
3804/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3805 function prototypes and stuff, but not '\xHH' hex character constants.
3806 These don't provoke an error unfortunately, instead are silently treated
3807 as 'x'. The following induces an error, until -std is added to get
3808 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3809 array size at least. It's necessary to write '\x00'==0 to get something
3810 that's true only with -std. */
3811int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3812
3813/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3814 inside strings and character constants. */
3815#define FOO(x) 'x'
3816int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3817
3818int test (int i, double x);
3819struct s1 {int (*f) (int a);};
3820struct s2 {int (*f) (double a);};
3821int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3822int argc;
3823char **argv;
3824int
3825main ()
3826{
3827return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3828 ;
3829 return 0;
3830}
3831_ACEOF
3832for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3833 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3834do
3835 CC="$ac_save_CC $ac_arg"
3836 if ac_fn_c_try_compile "$LINENO"; then :
3837 ac_cv_prog_cc_c89=$ac_arg
3838fi
3839rm -f core conftest.err conftest.$ac_objext
3840 test "x$ac_cv_prog_cc_c89" != "xno" && break
3841done
3842rm -f conftest.$ac_ext
3843CC=$ac_save_CC
3844
3845fi
3846# AC_CACHE_VAL
3847case "x$ac_cv_prog_cc_c89" in
3848 x)
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3850$as_echo "none needed" >&6; } ;;
3851 xno)
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3853$as_echo "unsupported" >&6; } ;;
3854 *)
3855 CC="$CC $ac_cv_prog_cc_c89"
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3857$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3858esac
3859if test "x$ac_cv_prog_cc_c89" != xno; then :
3860
3861fi
3862
3863ac_ext=c
3864ac_cpp='$CPP $CPPFLAGS'
3865ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3866ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3867ac_compiler_gnu=$ac_cv_c_compiler_gnu
3868
3869ac_aux_dir=
3870for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3871 for ac_t in install-sh install.sh shtool; do
3872 if test -f "$ac_dir/$ac_t"; then
3873 ac_aux_dir=$ac_dir
3874 ac_install_sh="$ac_aux_dir/$ac_t -c"
3875 break 2
3876 fi
3877 done
3878done
3879if test -z "$ac_aux_dir"; then
3880 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3881fi
3882
3883# These three variables are undocumented and unsupported,
3884# and are intended to be withdrawn in a future Autoconf release.
3885# They can cause serious problems if a builder's source tree is in a directory
3886# whose full name contains unusual characters.
3887ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3888ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3889ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3890
3891
3892# Make sure we can run config.sub.
3893$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3894 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3895
3896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3897$as_echo_n "checking build system type... " >&6; }
3898if test "${ac_cv_build+set}" = set; then :
3899 $as_echo_n "(cached) " >&6
3900else
3901 ac_build_alias=$build_alias
3902test "x$ac_build_alias" = x &&
3903 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3904test "x$ac_build_alias" = x &&
3905 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3906ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3907 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3908
3909fi
3910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3911$as_echo "$ac_cv_build" >&6; }
3912case $ac_cv_build in
3913*-*-*) ;;
3914*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3915esac
3916build=$ac_cv_build
3917ac_save_IFS=$IFS; IFS='-'
3918set x $ac_cv_build
3919shift
3920build_cpu=$1
3921build_vendor=$2
3922shift; shift
3923# Remember, the first character of IFS is used to create $*,
3924# except with old shells:
3925build_os=$*
3926IFS=$ac_save_IFS
3927case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3928
3929
3930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3931$as_echo_n "checking host system type... " >&6; }
3932if test "${ac_cv_host+set}" = set; then :
3933 $as_echo_n "(cached) " >&6
3934else
3935 if test "x$host_alias" = x; then
3936 ac_cv_host=$ac_cv_build
3937else
3938 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3939 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3940fi
3941
3942fi
3943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3944$as_echo "$ac_cv_host" >&6; }
3945case $ac_cv_host in
3946*-*-*) ;;
3947*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3948esac
3949host=$ac_cv_host
3950ac_save_IFS=$IFS; IFS='-'
3951set x $ac_cv_host
3952shift
3953host_cpu=$1
3954host_vendor=$2
3955shift; shift
3956# Remember, the first character of IFS is used to create $*,
3957# except with old shells:
3958host_os=$*
3959IFS=$ac_save_IFS
3960case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3961
3962
3963
3964ac_ext=c
3965ac_cpp='$CPP $CPPFLAGS'
3966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3968ac_compiler_gnu=$ac_cv_c_compiler_gnu
3969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3970$as_echo_n "checking how to run the C preprocessor... " >&6; }
3971# On Suns, sometimes $CPP names a directory.
3972if test -n "$CPP" && test -d "$CPP"; then
3973 CPP=
3974fi
3975if test -z "$CPP"; then
3976 if test "${ac_cv_prog_CPP+set}" = set; then :
3977 $as_echo_n "(cached) " >&6
3978else
3979 # Double quotes because CPP needs to be expanded
3980 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3981 do
3982 ac_preproc_ok=false
3983for ac_c_preproc_warn_flag in '' yes
3984do
3985 # Use a header file that comes with gcc, so configuring glibc
3986 # with a fresh cross-compiler works.
3987 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3988 # <limits.h> exists even on freestanding compilers.
3989 # On the NeXT, cc -E runs the code through the compiler's parser,
3990 # not just through cpp. "Syntax error" is here to catch this case.
3991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3992/* end confdefs.h. */
3993#ifdef __STDC__
3994# include <limits.h>
3995#else
3996# include <assert.h>
3997#endif
3998 Syntax error
3999_ACEOF
4000if ac_fn_c_try_cpp "$LINENO"; then :
4001
4002else
4003 # Broken: fails on valid input.
4004continue
4005fi
4006rm -f conftest.err conftest.$ac_ext
4007
4008 # OK, works on sane cases. Now check whether nonexistent headers
4009 # can be detected and how.
4010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4011/* end confdefs.h. */
4012#include <ac_nonexistent.h>
4013_ACEOF
4014if ac_fn_c_try_cpp "$LINENO"; then :
4015 # Broken: success on invalid input.
4016continue
4017else
4018 # Passes both tests.
4019ac_preproc_ok=:
4020break
4021fi
4022rm -f conftest.err conftest.$ac_ext
4023
4024done
4025# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4026rm -f conftest.err conftest.$ac_ext
4027if $ac_preproc_ok; then :
4028 break
4029fi
4030
4031 done
4032 ac_cv_prog_CPP=$CPP
4033
4034fi
4035 CPP=$ac_cv_prog_CPP
4036else
4037 ac_cv_prog_CPP=$CPP
4038fi
4039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4040$as_echo "$CPP" >&6; }
4041ac_preproc_ok=false
4042for ac_c_preproc_warn_flag in '' yes
4043do
4044 # Use a header file that comes with gcc, so configuring glibc
4045 # with a fresh cross-compiler works.
4046 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4047 # <limits.h> exists even on freestanding compilers.
4048 # On the NeXT, cc -E runs the code through the compiler's parser,
4049 # not just through cpp. "Syntax error" is here to catch this case.
4050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4051/* end confdefs.h. */
4052#ifdef __STDC__
4053# include <limits.h>
4054#else
4055# include <assert.h>
4056#endif
4057 Syntax error
4058_ACEOF
4059if ac_fn_c_try_cpp "$LINENO"; then :
4060
4061else
4062 # Broken: fails on valid input.
4063continue
4064fi
4065rm -f conftest.err conftest.$ac_ext
4066
4067 # OK, works on sane cases. Now check whether nonexistent headers
4068 # can be detected and how.
4069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4070/* end confdefs.h. */
4071#include <ac_nonexistent.h>
4072_ACEOF
4073if ac_fn_c_try_cpp "$LINENO"; then :
4074 # Broken: success on invalid input.
4075continue
4076else
4077 # Passes both tests.
4078ac_preproc_ok=:
4079break
4080fi
4081rm -f conftest.err conftest.$ac_ext
4082
4083done
4084# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4085rm -f conftest.err conftest.$ac_ext
4086if $ac_preproc_ok; then :
4087
4088else
4089 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4090$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4091as_fn_error "C preprocessor \"$CPP\" fails sanity check
4092See \`config.log' for more details." "$LINENO" 5; }
4093fi
4094
4095ac_ext=c
4096ac_cpp='$CPP $CPPFLAGS'
4097ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4098ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4099ac_compiler_gnu=$ac_cv_c_compiler_gnu
4100
4101
4102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4103$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4104if test "${ac_cv_path_GREP+set}" = set; then :
4105 $as_echo_n "(cached) " >&6
4106else
4107 if test -z "$GREP"; then
4108 ac_path_GREP_found=false
4109 # Loop through the user's path and test for each of PROGNAME-LIST
4110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4111for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4112do
4113 IFS=$as_save_IFS
4114 test -z "$as_dir" && as_dir=.
4115 for ac_prog in grep ggrep; do
4116 for ac_exec_ext in '' $ac_executable_extensions; do
4117 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4118 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4119# Check for GNU ac_path_GREP and select it if it is found.
4120 # Check for GNU $ac_path_GREP
4121case `"$ac_path_GREP" --version 2>&1` in
4122*GNU*)
4123 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4124*)
4125 ac_count=0
4126 $as_echo_n 0123456789 >"conftest.in"
4127 while :
4128 do
4129 cat "conftest.in" "conftest.in" >"conftest.tmp"
4130 mv "conftest.tmp" "conftest.in"
4131 cp "conftest.in" "conftest.nl"
4132 $as_echo 'GREP' >> "conftest.nl"
4133 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4134 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4135 as_fn_arith $ac_count + 1 && ac_count=$as_val
4136 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4137 # Best one so far, save it but keep looking for a better one
4138 ac_cv_path_GREP="$ac_path_GREP"
4139 ac_path_GREP_max=$ac_count
4140 fi
4141 # 10*(2^10) chars as input seems more than enough
4142 test $ac_count -gt 10 && break
4143 done
4144 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4145esac
4146
4147 $ac_path_GREP_found && break 3
4148 done
4149 done
4150 done
4151IFS=$as_save_IFS
4152 if test -z "$ac_cv_path_GREP"; then
4153 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4154 fi
4155else
4156 ac_cv_path_GREP=$GREP
4157fi
4158
4159fi
4160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4161$as_echo "$ac_cv_path_GREP" >&6; }
4162 GREP="$ac_cv_path_GREP"
4163
4164
4165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4166$as_echo_n "checking for egrep... " >&6; }
4167if test "${ac_cv_path_EGREP+set}" = set; then :
4168 $as_echo_n "(cached) " >&6
4169else
4170 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4171 then ac_cv_path_EGREP="$GREP -E"
4172 else
4173 if test -z "$EGREP"; then
4174 ac_path_EGREP_found=false
4175 # Loop through the user's path and test for each of PROGNAME-LIST
4176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4177for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4178do
4179 IFS=$as_save_IFS
4180 test -z "$as_dir" && as_dir=.
4181 for ac_prog in egrep; do
4182 for ac_exec_ext in '' $ac_executable_extensions; do
4183 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4184 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4185# Check for GNU ac_path_EGREP and select it if it is found.
4186 # Check for GNU $ac_path_EGREP
4187case `"$ac_path_EGREP" --version 2>&1` in
4188*GNU*)
4189 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4190*)
4191 ac_count=0
4192 $as_echo_n 0123456789 >"conftest.in"
4193 while :
4194 do
4195 cat "conftest.in" "conftest.in" >"conftest.tmp"
4196 mv "conftest.tmp" "conftest.in"
4197 cp "conftest.in" "conftest.nl"
4198 $as_echo 'EGREP' >> "conftest.nl"
4199 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4200 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4201 as_fn_arith $ac_count + 1 && ac_count=$as_val
4202 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4203 # Best one so far, save it but keep looking for a better one
4204 ac_cv_path_EGREP="$ac_path_EGREP"
4205 ac_path_EGREP_max=$ac_count
4206 fi
4207 # 10*(2^10) chars as input seems more than enough
4208 test $ac_count -gt 10 && break
4209 done
4210 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4211esac
4212
4213 $ac_path_EGREP_found && break 3
4214 done
4215 done
4216 done
4217IFS=$as_save_IFS
4218 if test -z "$ac_cv_path_EGREP"; then
4219 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4220 fi
4221else
4222 ac_cv_path_EGREP=$EGREP
4223fi
4224
4225 fi
4226fi
4227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4228$as_echo "$ac_cv_path_EGREP" >&6; }
4229 EGREP="$ac_cv_path_EGREP"
4230
4231
4232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4233$as_echo_n "checking for ANSI C header files... " >&6; }
4234if test "${ac_cv_header_stdc+set}" = set; then :
4235 $as_echo_n "(cached) " >&6
4236else
4237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4238/* end confdefs.h. */
4239#include <stdlib.h>
4240#include <stdarg.h>
4241#include <string.h>
4242#include <float.h>
4243
4244int
4245main ()
4246{
4247
4248 ;
4249 return 0;
4250}
4251_ACEOF
4252if ac_fn_c_try_compile "$LINENO"; then :
4253 ac_cv_header_stdc=yes
4254else
4255 ac_cv_header_stdc=no
4256fi
4257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4258
4259if test $ac_cv_header_stdc = yes; then
4260 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4262/* end confdefs.h. */
4263#include <string.h>
4264
4265_ACEOF
4266if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4267 $EGREP "memchr" >/dev/null 2>&1; then :
4268
4269else
4270 ac_cv_header_stdc=no
4271fi
4272rm -f conftest*
4273
4274fi
4275
4276if test $ac_cv_header_stdc = yes; then
4277 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4279/* end confdefs.h. */
4280#include <stdlib.h>
4281
4282_ACEOF
4283if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4284 $EGREP "free" >/dev/null 2>&1; then :
4285
4286else
4287 ac_cv_header_stdc=no
4288fi
4289rm -f conftest*
4290
4291fi
4292
4293if test $ac_cv_header_stdc = yes; then
4294 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4295 if test "$cross_compiling" = yes; then :
4296 :
4297else
4298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4299/* end confdefs.h. */
4300#include <ctype.h>
4301#include <stdlib.h>
4302#if ((' ' & 0x0FF) == 0x020)
4303# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4304# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4305#else
4306# define ISLOWER(c) \
4307 (('a' <= (c) && (c) <= 'i') \
4308 || ('j' <= (c) && (c) <= 'r') \
4309 || ('s' <= (c) && (c) <= 'z'))
4310# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4311#endif
4312
4313#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4314int
4315main ()
4316{
4317 int i;
4318 for (i = 0; i < 256; i++)
4319 if (XOR (islower (i), ISLOWER (i))
4320 || toupper (i) != TOUPPER (i))
4321 return 2;
4322 return 0;
4323}
4324_ACEOF
4325if ac_fn_c_try_run "$LINENO"; then :
4326
4327else
4328 ac_cv_header_stdc=no
4329fi
4330rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4331 conftest.$ac_objext conftest.beam conftest.$ac_ext
4332fi
4333
4334fi
4335fi
4336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4337$as_echo "$ac_cv_header_stdc" >&6; }
4338if test $ac_cv_header_stdc = yes; then
4339
4340$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4341
4342fi
4343
4344# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4345for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4346 inttypes.h stdint.h unistd.h
4347do :
4348 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4349ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4350"
4351eval as_val=\$$as_ac_Header
4352 if test "x$as_val" = x""yes; then :
4353 cat >>confdefs.h <<_ACEOF
4354#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4355_ACEOF
4356
4357fi
4358
4359done
4360
4361
4362
4363
4364
4365 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4366if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4367 MINIX=yes
4368else
4369 MINIX=
4370fi
4371
4372
4373 if test "$MINIX" = yes; then
4374
4375$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4376
4377
4378$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4379
4380
4381$as_echo "#define _MINIX 1" >>confdefs.h
4382
4383 fi
4384
4385 case "$host_os" in
4386 hpux*)
4387
4388$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4389
4390 ;;
4391 esac
4392
4393
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4395$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4396if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4397 $as_echo_n "(cached) " >&6
4398else
4399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4400/* end confdefs.h. */
4401
4402# define __EXTENSIONS__ 1
4403 $ac_includes_default
4404int
4405main ()
4406{
4407
4408 ;
4409 return 0;
4410}
4411_ACEOF
4412if ac_fn_c_try_compile "$LINENO"; then :
4413 ac_cv_safe_to_define___extensions__=yes
4414else
4415 ac_cv_safe_to_define___extensions__=no
4416fi
4417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4418fi
4419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4420$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4421 test $ac_cv_safe_to_define___extensions__ = yes &&
4422 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4423
4424 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4425
4426 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4427
4428 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4429
4430 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4431
4432 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4433
4434
4435
4436
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
4438$as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
4439if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
4440 $as_echo_n "(cached) " >&6
4441else
4442
4443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4444/* end confdefs.h. */
4445
4446#ifdef __ACK__
4447Amsterdam
4448#endif
4449
4450_ACEOF
4451if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4452 $EGREP "Amsterdam" >/dev/null 2>&1; then :
4453 gl_cv_c_amsterdam_compiler=yes
4454else
4455 gl_cv_c_amsterdam_compiler=no
4456fi
4457rm -f conftest*
4458
4459
4460fi
4461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
4462$as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
4463 if test -z "$AR"; then
4464 if test $gl_cv_c_amsterdam_compiler = yes; then
4465 AR='cc -c.a'
4466 if test -z "$ARFLAGS"; then
4467 ARFLAGS='-o'
4468 fi
4469 else
4470 if test -n "$ac_tool_prefix"; then
4471 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4472set dummy ${ac_tool_prefix}ar; ac_word=$2
4473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4474$as_echo_n "checking for $ac_word... " >&6; }
4475if test "${ac_cv_prog_AR+set}" = set; then :
4476 $as_echo_n "(cached) " >&6
4477else
4478 if test -n "$AR"; then
4479 ac_cv_prog_AR="$AR" # Let the user override the test.
4480else
4481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4482for as_dir in $PATH
4483do
4484 IFS=$as_save_IFS
4485 test -z "$as_dir" && as_dir=.
4486 for ac_exec_ext in '' $ac_executable_extensions; do
4487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4488 ac_cv_prog_AR="${ac_tool_prefix}ar"
4489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4490 break 2
4491 fi
4492done
4493 done
4494IFS=$as_save_IFS
4495
4496fi
4497fi
4498AR=$ac_cv_prog_AR
4499if test -n "$AR"; then
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4501$as_echo "$AR" >&6; }
4502else
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4504$as_echo "no" >&6; }
4505fi
4506
4507
4508fi
4509if test -z "$ac_cv_prog_AR"; then
4510 ac_ct_AR=$AR
4511 # Extract the first word of "ar", so it can be a program name with args.
4512set dummy ar; ac_word=$2
4513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4514$as_echo_n "checking for $ac_word... " >&6; }
4515if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4516 $as_echo_n "(cached) " >&6
4517else
4518 if test -n "$ac_ct_AR"; then
4519 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4520else
4521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4522for as_dir in $PATH
4523do
4524 IFS=$as_save_IFS
4525 test -z "$as_dir" && as_dir=.
4526 for ac_exec_ext in '' $ac_executable_extensions; do
4527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4528 ac_cv_prog_ac_ct_AR="ar"
4529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4530 break 2
4531 fi
4532done
4533 done
4534IFS=$as_save_IFS
4535
4536fi
4537fi
4538ac_ct_AR=$ac_cv_prog_ac_ct_AR
4539if test -n "$ac_ct_AR"; then
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4541$as_echo "$ac_ct_AR" >&6; }
4542else
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4544$as_echo "no" >&6; }
4545fi
4546
4547 if test "x$ac_ct_AR" = x; then
4548 AR="ar"
4549 else
4550 case $cross_compiling:$ac_tool_warned in
4551yes:)
4552{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4553$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4554ac_tool_warned=yes ;;
4555esac
4556 AR=$ac_ct_AR
4557 fi
4558else
4559 AR="$ac_cv_prog_AR"
4560fi
4561
4562 if test -z "$ARFLAGS"; then
4563 ARFLAGS='cru'
4564 fi
4565 fi
4566 else
4567 if test -z "$ARFLAGS"; then
4568 ARFLAGS='cru'
4569 fi
4570 fi
4571
4572
4573 if test -z "$RANLIB"; then
4574 if test $gl_cv_c_amsterdam_compiler = yes; then
4575 RANLIB=':'
4576 else
4577 if test -n "$ac_tool_prefix"; then
4578 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4579set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4581$as_echo_n "checking for $ac_word... " >&6; }
4582if test "${ac_cv_prog_RANLIB+set}" = set; then :
4583 $as_echo_n "(cached) " >&6
4584else
4585 if test -n "$RANLIB"; then
4586 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4587else
4588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4589for as_dir in $PATH
4590do
4591 IFS=$as_save_IFS
4592 test -z "$as_dir" && as_dir=.
4593 for ac_exec_ext in '' $ac_executable_extensions; do
4594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4595 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4597 break 2
4598 fi
4599done
4600 done
4601IFS=$as_save_IFS
4602
4603fi
4604fi
4605RANLIB=$ac_cv_prog_RANLIB
4606if test -n "$RANLIB"; then
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4608$as_echo "$RANLIB" >&6; }
4609else
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4611$as_echo "no" >&6; }
4612fi
4613
4614
4615fi
4616if test -z "$ac_cv_prog_RANLIB"; then
4617 ac_ct_RANLIB=$RANLIB
4618 # Extract the first word of "ranlib", so it can be a program name with args.
4619set dummy ranlib; ac_word=$2
4620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4621$as_echo_n "checking for $ac_word... " >&6; }
4622if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4623 $as_echo_n "(cached) " >&6
4624else
4625 if test -n "$ac_ct_RANLIB"; then
4626 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4627else
4628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4629for as_dir in $PATH
4630do
4631 IFS=$as_save_IFS
4632 test -z "$as_dir" && as_dir=.
4633 for ac_exec_ext in '' $ac_executable_extensions; do
4634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4635 ac_cv_prog_ac_ct_RANLIB="ranlib"
4636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4637 break 2
4638 fi
4639done
4640 done
4641IFS=$as_save_IFS
4642
4643fi
4644fi
4645ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4646if test -n "$ac_ct_RANLIB"; then
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4648$as_echo "$ac_ct_RANLIB" >&6; }
4649else
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4651$as_echo "no" >&6; }
4652fi
4653
4654 if test "x$ac_ct_RANLIB" = x; then
4655 RANLIB=":"
4656 else
4657 case $cross_compiling:$ac_tool_warned in
4658yes:)
4659{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4660$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4661ac_tool_warned=yes ;;
4662esac
4663 RANLIB=$ac_ct_RANLIB
4664 fi
4665else
4666 RANLIB="$ac_cv_prog_RANLIB"
4667fi
4668
4669 fi
4670 fi
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
88b48903
WN
4681
4682 # IEEE behaviour is the default on all CPUs except Alpha and SH
4683 # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
4684 # and the GCC 4.1.2 manual).
4685 case "$host_cpu" in
4686 alpha*)
4687 # On Alpha systems, a compiler option provides the behaviour.
4688 # See the ieee(3) manual page, also available at
4689 # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
4690 if test -n "$GCC"; then
4691 # GCC has the option -mieee.
4692 # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
4693 CPPFLAGS="$CPPFLAGS -mieee"
4694 else
4695 # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
4696 # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
4697 CPPFLAGS="$CPPFLAGS -ieee"
4698 fi
4699 ;;
4700 sh*)
4701 if test -n "$GCC"; then
4702 # GCC has the option -mieee.
4703 CPPFLAGS="$CPPFLAGS -mieee"
4704 fi
4705 ;;
4706 esac
4707
4708
4709
8690e634
JK
4710 # Code from module alloca:
4711 # Code from module alloca-opt:
4712 # Code from module configmake:
c971b7fa
PA
4713 # Code from module extensions:
4714
a512b375 4715 # Code from module extern-inline:
88b48903 4716 # Code from module float:
8690e634
JK
4717 # Code from module fnmatch:
4718 # Code from module fnmatch-gnu:
88b48903
WN
4719 # Code from module fpieee:
4720
4721 # Code from module fpucw:
4722 # Code from module frexp:
4723 # Code from module frexpl:
c971b7fa
PA
4724 # Code from module include_next:
4725 # Code from module inttypes:
4726 # Code from module inttypes-incomplete:
88b48903
WN
4727 # Code from module isnand-nolibm:
4728 # Code from module isnanl-nolibm:
8690e634 4729 # Code from module localcharset:
88b48903 4730 # Code from module math:
8690e634
JK
4731 # Code from module mbrtowc:
4732 # Code from module mbsinit:
4733 # Code from module mbsrtowcs:
c971b7fa
PA
4734 # Code from module memchr:
4735 # Code from module memmem:
4736 # Code from module memmem-simple:
4737 # Code from module multiarch:
4738 # Code from module snippet/arg-nonnull:
4739 # Code from module snippet/c++defs:
4740 # Code from module snippet/warn-on-use:
8839a007 4741 # Code from module ssize_t:
8690e634 4742 # Code from module stdbool:
c971b7fa
PA
4743 # Code from module stddef:
4744 # Code from module stdint:
8690e634 4745 # Code from module streq:
c971b7fa 4746 # Code from module string:
8690e634 4747 # Code from module strnlen1:
8839a007
PA
4748 # Code from module sys_types:
4749 # Code from module unistd:
c971b7fa 4750 # Code from module update-copyright:
8690e634
JK
4751 # Code from module verify:
4752 # Code from module wchar:
4753 # Code from module wctype-h:
c971b7fa
PA
4754
4755ac_ext=c
4756ac_cpp='$CPP $CPPFLAGS'
4757ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4758ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4759ac_compiler_gnu=$ac_cv_c_compiler_gnu
4760if test -n "$ac_tool_prefix"; then
4761 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4762set dummy ${ac_tool_prefix}gcc; ac_word=$2
4763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4764$as_echo_n "checking for $ac_word... " >&6; }
4765if test "${ac_cv_prog_CC+set}" = set; then :
4766 $as_echo_n "(cached) " >&6
4767else
4768 if test -n "$CC"; then
4769 ac_cv_prog_CC="$CC" # Let the user override the test.
4770else
4771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4772for as_dir in $PATH
4773do
4774 IFS=$as_save_IFS
4775 test -z "$as_dir" && as_dir=.
4776 for ac_exec_ext in '' $ac_executable_extensions; do
4777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4778 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4780 break 2
4781 fi
4782done
4783 done
4784IFS=$as_save_IFS
4785
4786fi
4787fi
4788CC=$ac_cv_prog_CC
4789if test -n "$CC"; then
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4791$as_echo "$CC" >&6; }
4792else
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4794$as_echo "no" >&6; }
4795fi
4796
4797
4798fi
4799if test -z "$ac_cv_prog_CC"; then
4800 ac_ct_CC=$CC
4801 # Extract the first word of "gcc", so it can be a program name with args.
4802set dummy gcc; ac_word=$2
4803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4804$as_echo_n "checking for $ac_word... " >&6; }
4805if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4806 $as_echo_n "(cached) " >&6
4807else
4808 if test -n "$ac_ct_CC"; then
4809 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4810else
4811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4812for as_dir in $PATH
4813do
4814 IFS=$as_save_IFS
4815 test -z "$as_dir" && as_dir=.
4816 for ac_exec_ext in '' $ac_executable_extensions; do
4817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4818 ac_cv_prog_ac_ct_CC="gcc"
4819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4820 break 2
4821 fi
4822done
4823 done
4824IFS=$as_save_IFS
4825
4826fi
4827fi
4828ac_ct_CC=$ac_cv_prog_ac_ct_CC
4829if test -n "$ac_ct_CC"; then
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4831$as_echo "$ac_ct_CC" >&6; }
4832else
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4834$as_echo "no" >&6; }
4835fi
4836
4837 if test "x$ac_ct_CC" = x; then
4838 CC=""
4839 else
4840 case $cross_compiling:$ac_tool_warned in
4841yes:)
4842{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4843$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4844ac_tool_warned=yes ;;
4845esac
4846 CC=$ac_ct_CC
4847 fi
4848else
4849 CC="$ac_cv_prog_CC"
4850fi
4851
4852if test -z "$CC"; then
4853 if test -n "$ac_tool_prefix"; then
4854 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4855set dummy ${ac_tool_prefix}cc; ac_word=$2
4856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4857$as_echo_n "checking for $ac_word... " >&6; }
4858if test "${ac_cv_prog_CC+set}" = set; then :
4859 $as_echo_n "(cached) " >&6
4860else
4861 if test -n "$CC"; then
4862 ac_cv_prog_CC="$CC" # Let the user override the test.
4863else
4864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4865for as_dir in $PATH
4866do
4867 IFS=$as_save_IFS
4868 test -z "$as_dir" && as_dir=.
4869 for ac_exec_ext in '' $ac_executable_extensions; do
4870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4871 ac_cv_prog_CC="${ac_tool_prefix}cc"
4872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4873 break 2
4874 fi
4875done
4876 done
4877IFS=$as_save_IFS
4878
4879fi
4880fi
4881CC=$ac_cv_prog_CC
4882if test -n "$CC"; then
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4884$as_echo "$CC" >&6; }
4885else
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4887$as_echo "no" >&6; }
4888fi
4889
4890
4891 fi
4892fi
4893if test -z "$CC"; then
4894 # Extract the first word of "cc", so it can be a program name with args.
4895set dummy cc; ac_word=$2
4896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4897$as_echo_n "checking for $ac_word... " >&6; }
4898if test "${ac_cv_prog_CC+set}" = set; then :
4899 $as_echo_n "(cached) " >&6
4900else
4901 if test -n "$CC"; then
4902 ac_cv_prog_CC="$CC" # Let the user override the test.
4903else
4904 ac_prog_rejected=no
4905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906for as_dir in $PATH
4907do
4908 IFS=$as_save_IFS
4909 test -z "$as_dir" && as_dir=.
4910 for ac_exec_ext in '' $ac_executable_extensions; do
4911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4912 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4913 ac_prog_rejected=yes
4914 continue
4915 fi
4916 ac_cv_prog_CC="cc"
4917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4918 break 2
4919 fi
4920done
4921 done
4922IFS=$as_save_IFS
4923
4924if test $ac_prog_rejected = yes; then
4925 # We found a bogon in the path, so make sure we never use it.
4926 set dummy $ac_cv_prog_CC
4927 shift
4928 if test $# != 0; then
4929 # We chose a different compiler from the bogus one.
4930 # However, it has the same basename, so the bogon will be chosen
4931 # first if we set CC to just the basename; use the full file name.
4932 shift
4933 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4934 fi
4935fi
4936fi
4937fi
4938CC=$ac_cv_prog_CC
4939if test -n "$CC"; then
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4941$as_echo "$CC" >&6; }
4942else
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4944$as_echo "no" >&6; }
4945fi
4946
4947
4948fi
4949if test -z "$CC"; then
4950 if test -n "$ac_tool_prefix"; then
4951 for ac_prog in cl.exe
4952 do
4953 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4954set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4956$as_echo_n "checking for $ac_word... " >&6; }
4957if test "${ac_cv_prog_CC+set}" = set; then :
4958 $as_echo_n "(cached) " >&6
4959else
4960 if test -n "$CC"; then
4961 ac_cv_prog_CC="$CC" # Let the user override the test.
4962else
4963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4964for as_dir in $PATH
4965do
4966 IFS=$as_save_IFS
4967 test -z "$as_dir" && as_dir=.
4968 for ac_exec_ext in '' $ac_executable_extensions; do
4969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4970 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4972 break 2
4973 fi
4974done
4975 done
4976IFS=$as_save_IFS
4977
4978fi
4979fi
4980CC=$ac_cv_prog_CC
4981if test -n "$CC"; then
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4983$as_echo "$CC" >&6; }
4984else
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4986$as_echo "no" >&6; }
4987fi
4988
4989
4990 test -n "$CC" && break
4991 done
4992fi
4993if test -z "$CC"; then
4994 ac_ct_CC=$CC
4995 for ac_prog in cl.exe
4996do
4997 # Extract the first word of "$ac_prog", so it can be a program name with args.
4998set dummy $ac_prog; ac_word=$2
4999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5000$as_echo_n "checking for $ac_word... " >&6; }
5001if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5002 $as_echo_n "(cached) " >&6
5003else
5004 if test -n "$ac_ct_CC"; then
5005 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5006else
5007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5008for as_dir in $PATH
5009do
5010 IFS=$as_save_IFS
5011 test -z "$as_dir" && as_dir=.
5012 for ac_exec_ext in '' $ac_executable_extensions; do
5013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5014 ac_cv_prog_ac_ct_CC="$ac_prog"
5015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5016 break 2
5017 fi
5018done
5019 done
5020IFS=$as_save_IFS
5021
5022fi
5023fi
5024ac_ct_CC=$ac_cv_prog_ac_ct_CC
5025if test -n "$ac_ct_CC"; then
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5027$as_echo "$ac_ct_CC" >&6; }
5028else
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5030$as_echo "no" >&6; }
5031fi
5032
5033
5034 test -n "$ac_ct_CC" && break
5035done
5036
5037 if test "x$ac_ct_CC" = x; then
5038 CC=""
5039 else
5040 case $cross_compiling:$ac_tool_warned in
5041yes:)
5042{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5043$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5044ac_tool_warned=yes ;;
5045esac
5046 CC=$ac_ct_CC
5047 fi
5048fi
5049
5050fi
5051
5052
5053test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5054$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5055as_fn_error "no acceptable C compiler found in \$PATH
5056See \`config.log' for more details." "$LINENO" 5; }
5057
5058# Provide some information about the compiler.
5059$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5060set X $ac_compile
5061ac_compiler=$2
5062for ac_option in --version -v -V -qversion; do
5063 { { ac_try="$ac_compiler $ac_option >&5"
5064case "(($ac_try" in
5065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5066 *) ac_try_echo=$ac_try;;
5067esac
5068eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5069$as_echo "$ac_try_echo"; } >&5
5070 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5071 ac_status=$?
5072 if test -s conftest.err; then
5073 sed '10a\
5074... rest of stderr output deleted ...
5075 10q' conftest.err >conftest.er1
5076 cat conftest.er1 >&5
5077 rm -f conftest.er1 conftest.err
5078 fi
5079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5080 test $ac_status = 0; }
5081done
5082
5083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5084$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5085if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5086 $as_echo_n "(cached) " >&6
5087else
5088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5089/* end confdefs.h. */
5090
5091int
5092main ()
5093{
5094#ifndef __GNUC__
5095 choke me
5096#endif
5097
5098 ;
5099 return 0;
5100}
5101_ACEOF
5102if ac_fn_c_try_compile "$LINENO"; then :
5103 ac_compiler_gnu=yes
5104else
5105 ac_compiler_gnu=no
5106fi
5107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5108ac_cv_c_compiler_gnu=$ac_compiler_gnu
5109
5110fi
5111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5112$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5113if test $ac_compiler_gnu = yes; then
5114 GCC=yes
5115else
5116 GCC=
5117fi
5118ac_test_CFLAGS=${CFLAGS+set}
5119ac_save_CFLAGS=$CFLAGS
5120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5121$as_echo_n "checking whether $CC accepts -g... " >&6; }
5122if test "${ac_cv_prog_cc_g+set}" = set; then :
5123 $as_echo_n "(cached) " >&6
5124else
5125 ac_save_c_werror_flag=$ac_c_werror_flag
5126 ac_c_werror_flag=yes
5127 ac_cv_prog_cc_g=no
5128 CFLAGS="-g"
5129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5130/* end confdefs.h. */
5131
5132int
5133main ()
5134{
5135
5136 ;
5137 return 0;
5138}
5139_ACEOF
5140if ac_fn_c_try_compile "$LINENO"; then :
5141 ac_cv_prog_cc_g=yes
5142else
5143 CFLAGS=""
5144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5145/* end confdefs.h. */
5146
5147int
5148main ()
5149{
5150
5151 ;
5152 return 0;
5153}
5154_ACEOF
5155if ac_fn_c_try_compile "$LINENO"; then :
5156
5157else
5158 ac_c_werror_flag=$ac_save_c_werror_flag
5159 CFLAGS="-g"
5160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5161/* end confdefs.h. */
5162
5163int
5164main ()
5165{
5166
5167 ;
5168 return 0;
5169}
5170_ACEOF
5171if ac_fn_c_try_compile "$LINENO"; then :
5172 ac_cv_prog_cc_g=yes
5173fi
5174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5175fi
5176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5177fi
5178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5179 ac_c_werror_flag=$ac_save_c_werror_flag
5180fi
5181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5182$as_echo "$ac_cv_prog_cc_g" >&6; }
5183if test "$ac_test_CFLAGS" = set; then
5184 CFLAGS=$ac_save_CFLAGS
5185elif test $ac_cv_prog_cc_g = yes; then
5186 if test "$GCC" = yes; then
5187 CFLAGS="-g -O2"
5188 else
5189 CFLAGS="-g"
5190 fi
5191else
5192 if test "$GCC" = yes; then
5193 CFLAGS="-O2"
5194 else
5195 CFLAGS=
5196 fi
5197fi
5198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5199$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5200if test "${ac_cv_prog_cc_c89+set}" = set; then :
5201 $as_echo_n "(cached) " >&6
5202else
5203 ac_cv_prog_cc_c89=no
5204ac_save_CC=$CC
5205cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5206/* end confdefs.h. */
5207#include <stdarg.h>
5208#include <stdio.h>
5209#include <sys/types.h>
5210#include <sys/stat.h>
5211/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5212struct buf { int x; };
5213FILE * (*rcsopen) (struct buf *, struct stat *, int);
5214static char *e (p, i)
5215 char **p;
5216 int i;
5217{
5218 return p[i];
5219}
5220static char *f (char * (*g) (char **, int), char **p, ...)
5221{
5222 char *s;
5223 va_list v;
5224 va_start (v,p);
5225 s = g (p, va_arg (v,int));
5226 va_end (v);
5227 return s;
5228}
5229
5230/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5231 function prototypes and stuff, but not '\xHH' hex character constants.
5232 These don't provoke an error unfortunately, instead are silently treated
5233 as 'x'. The following induces an error, until -std is added to get
5234 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5235 array size at least. It's necessary to write '\x00'==0 to get something
5236 that's true only with -std. */
5237int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5238
5239/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5240 inside strings and character constants. */
5241#define FOO(x) 'x'
5242int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5243
5244int test (int i, double x);
5245struct s1 {int (*f) (int a);};
5246struct s2 {int (*f) (double a);};
5247int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5248int argc;
5249char **argv;
5250int
5251main ()
5252{
5253return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5254 ;
5255 return 0;
5256}
5257_ACEOF
5258for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5259 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5260do
5261 CC="$ac_save_CC $ac_arg"
5262 if ac_fn_c_try_compile "$LINENO"; then :
5263 ac_cv_prog_cc_c89=$ac_arg
5264fi
5265rm -f core conftest.err conftest.$ac_objext
5266 test "x$ac_cv_prog_cc_c89" != "xno" && break
5267done
5268rm -f conftest.$ac_ext
5269CC=$ac_save_CC
5270
5271fi
5272# AC_CACHE_VAL
5273case "x$ac_cv_prog_cc_c89" in
5274 x)
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5276$as_echo "none needed" >&6; } ;;
5277 xno)
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5279$as_echo "unsupported" >&6; } ;;
5280 *)
5281 CC="$CC $ac_cv_prog_cc_c89"
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5283$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5284esac
5285if test "x$ac_cv_prog_cc_c89" != xno; then :
5286
5287fi
5288
5289ac_ext=c
5290ac_cpp='$CPP $CPPFLAGS'
5291ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5292ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5293ac_compiler_gnu=$ac_cv_c_compiler_gnu
5294
5295
5296am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5297
5298
5299ac_aux_dir=
5300for ac_dir in ../.. "$srcdir"/../..; do
5301 for ac_t in install-sh install.sh shtool; do
5302 if test -f "$ac_dir/$ac_t"; then
5303 ac_aux_dir=$ac_dir
5304 ac_install_sh="$ac_aux_dir/$ac_t -c"
5305 break 2
5306 fi
5307 done
5308done
5309if test -z "$ac_aux_dir"; then
5310 as_fn_error "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
5311fi
5312
5313# These three variables are undocumented and unsupported,
5314# and are intended to be withdrawn in a future Autoconf release.
5315# They can cause serious problems if a builder's source tree is in a directory
5316# whose full name contains unusual characters.
5317ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5318ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5319ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5320
5321
5322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
5323$as_echo_n "checking target system type... " >&6; }
5324if test "${ac_cv_target+set}" = set; then :
5325 $as_echo_n "(cached) " >&6
5326else
5327 if test "x$target_alias" = x; then
5328 ac_cv_target=$ac_cv_host
5329else
5330 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
5331 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5332fi
5333
5334fi
5335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
5336$as_echo "$ac_cv_target" >&6; }
5337case $ac_cv_target in
5338*-*-*) ;;
5339*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
5340esac
5341target=$ac_cv_target
5342ac_save_IFS=$IFS; IFS='-'
5343set x $ac_cv_target
5344shift
5345target_cpu=$1
5346target_vendor=$2
5347shift; shift
5348# Remember, the first character of IFS is used to create $*,
5349# except with old shells:
5350target_os=$*
5351IFS=$ac_save_IFS
5352case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
5353
5354
5355# The aliases save the names the user supplied, while $host etc.
5356# will get canonicalized.
5357test -n "$target_alias" &&
5358 test "$program_prefix$program_suffix$program_transform_name" = \
5359 NONENONEs,x,x, &&
5360 program_prefix=${target_alias}-
5361
5362
5363
5364
5365
5366
5367
5368 LIBC_FATAL_STDERR_=1
5369 export LIBC_FATAL_STDERR_
5370
8690e634
JK
5371# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5372# for constant arguments. Useless!
5373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5374$as_echo_n "checking for working alloca.h... " >&6; }
5375if test "${ac_cv_working_alloca_h+set}" = set; then :
c971b7fa
PA
5376 $as_echo_n "(cached) " >&6
5377else
8690e634 5378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa 5379/* end confdefs.h. */
8690e634 5380#include <alloca.h>
c971b7fa
PA
5381int
5382main ()
5383{
8690e634
JK
5384char *p = (char *) alloca (2 * sizeof (int));
5385 if (p) return 0;
c971b7fa
PA
5386 ;
5387 return 0;
5388}
c971b7fa
PA
5389_ACEOF
5390if ac_fn_c_try_link "$LINENO"; then :
8690e634 5391 ac_cv_working_alloca_h=yes
c971b7fa 5392else
8690e634 5393 ac_cv_working_alloca_h=no
c971b7fa
PA
5394fi
5395rm -f core conftest.err conftest.$ac_objext \
5396 conftest$ac_exeext conftest.$ac_ext
c971b7fa 5397fi
8690e634
JK
5398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5399$as_echo "$ac_cv_working_alloca_h" >&6; }
5400if test $ac_cv_working_alloca_h = yes; then
c971b7fa 5401
8690e634 5402$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
c971b7fa 5403
8690e634 5404fi
c971b7fa 5405
8690e634
JK
5406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5407$as_echo_n "checking for alloca... " >&6; }
5408if test "${ac_cv_func_alloca_works+set}" = set; then :
c971b7fa 5409 $as_echo_n "(cached) " >&6
c971b7fa
PA
5410else
5411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5412/* end confdefs.h. */
8690e634
JK
5413#ifdef __GNUC__
5414# define alloca __builtin_alloca
5415#else
5416# ifdef _MSC_VER
5417# include <malloc.h>
5418# define alloca _alloca
5419# else
5420# ifdef HAVE_ALLOCA_H
5421# include <alloca.h>
5422# else
5423# ifdef _AIX
5424 #pragma alloca
5425# else
5426# ifndef alloca /* predefined by HP cc +Olibcalls */
5427char *alloca ();
5428# endif
5429# endif
5430# endif
5431# endif
5432#endif
5433
c971b7fa
PA
5434int
5435main ()
5436{
8690e634
JK
5437char *p = (char *) alloca (1);
5438 if (p) return 0;
c971b7fa
PA
5439 ;
5440 return 0;
5441}
5442_ACEOF
8690e634
JK
5443if ac_fn_c_try_link "$LINENO"; then :
5444 ac_cv_func_alloca_works=yes
c971b7fa 5445else
8690e634 5446 ac_cv_func_alloca_works=no
c971b7fa 5447fi
8690e634
JK
5448rm -f core conftest.err conftest.$ac_objext \
5449 conftest$ac_exeext conftest.$ac_ext
c971b7fa 5450fi
a143c6de
JB
5451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5452$as_echo "$ac_cv_func_alloca_works" >&6; }
c971b7fa 5453
a143c6de 5454if test $ac_cv_func_alloca_works = yes; then
c971b7fa 5455
a143c6de 5456$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
c971b7fa 5457
a143c6de
JB
5458else
5459 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5460# that cause trouble. Some versions do not even contain alloca or
5461# contain a buggy version. If you still want to use their alloca,
5462# use ar to extract alloca.o from them instead of compiling alloca.c.
c971b7fa
PA
5463
5464
5465
5466
5467
a143c6de 5468ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
c971b7fa 5469
a143c6de 5470$as_echo "#define C_ALLOCA 1" >>confdefs.h
c971b7fa 5471
c971b7fa 5472
a143c6de
JB
5473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
5474$as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
5475if test "${ac_cv_os_cray+set}" = set; then :
8690e634
JK
5476 $as_echo_n "(cached) " >&6
5477else
a143c6de 5478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690e634 5479/* end confdefs.h. */
a143c6de
JB
5480#if defined CRAY && ! defined CRAY2
5481webecray
5482#else
5483wenotbecray
8690e634 5484#endif
c971b7fa 5485
8690e634
JK
5486_ACEOF
5487if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
a143c6de
JB
5488 $EGREP "webecray" >/dev/null 2>&1; then :
5489 ac_cv_os_cray=yes
8690e634 5490else
a143c6de 5491 ac_cv_os_cray=no
8690e634
JK
5492fi
5493rm -f conftest*
c971b7fa 5494
c0fc7f8b 5495fi
a143c6de
JB
5496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5497$as_echo "$ac_cv_os_cray" >&6; }
5498if test $ac_cv_os_cray = yes; then
5499 for ac_func in _getb67 GETB67 getb67; do
5500 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5501ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5502eval as_val=\$$as_ac_var
5503 if test "x$as_val" = x""yes; then :
c0fc7f8b 5504
a143c6de
JB
5505cat >>confdefs.h <<_ACEOF
5506#define CRAY_STACKSEG_END $ac_func
5507_ACEOF
c971b7fa 5508
a143c6de 5509 break
8690e634 5510fi
c971b7fa 5511
a143c6de 5512 done
8690e634 5513fi
c0fc7f8b 5514
a143c6de
JB
5515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5516$as_echo_n "checking stack direction for C alloca... " >&6; }
5517if test "${ac_cv_c_stack_direction+set}" = set; then :
c971b7fa
PA
5518 $as_echo_n "(cached) " >&6
5519else
a143c6de
JB
5520 if test "$cross_compiling" = yes; then :
5521 ac_cv_c_stack_direction=0
5522else
5523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa 5524/* end confdefs.h. */
a143c6de
JB
5525$ac_includes_default
5526int
5527find_stack_direction (int *addr, int depth)
5528{
5529 int dir, dummy = 0;
5530 if (! addr)
5531 addr = &dummy;
5532 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
5533 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
5534 return dir + dummy;
5535}
8690e634 5536
a143c6de
JB
5537int
5538main (int argc, char **argv)
5539{
5540 return find_stack_direction (0, argc + !argv + 20) < 0;
5541}
c971b7fa 5542_ACEOF
a143c6de
JB
5543if ac_fn_c_try_run "$LINENO"; then :
5544 ac_cv_c_stack_direction=1
c971b7fa 5545else
a143c6de 5546 ac_cv_c_stack_direction=-1
8690e634 5547fi
a143c6de
JB
5548rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5549 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 5550fi
c971b7fa
PA
5551
5552fi
a143c6de
JB
5553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5554$as_echo "$ac_cv_c_stack_direction" >&6; }
5555cat >>confdefs.h <<_ACEOF
5556#define STACK_DIRECTION $ac_cv_c_stack_direction
5557_ACEOF
8690e634 5558
c971b7fa
PA
5559
5560fi
c971b7fa
PA
5561
5562
5563
a512b375
JB
5564
5565
5566
88b48903
WN
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
5568$as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
5569if test "${gl_cv_have_include_next+set}" = set; then :
5570 $as_echo_n "(cached) " >&6
5571else
5572 rm -rf conftestd1a conftestd1b conftestd2
5573 mkdir conftestd1a conftestd1b conftestd2
5574 cat <<EOF > conftestd1a/conftest.h
5575#define DEFINED_IN_CONFTESTD1
5576#include_next <conftest.h>
5577#ifdef DEFINED_IN_CONFTESTD2
5578int foo;
5579#else
5580#error "include_next doesn't work"
5581#endif
5582EOF
5583 cat <<EOF > conftestd1b/conftest.h
5584#define DEFINED_IN_CONFTESTD1
5585#include <stdio.h>
5586#include_next <conftest.h>
5587#ifdef DEFINED_IN_CONFTESTD2
5588int foo;
5589#else
5590#error "include_next doesn't work"
5591#endif
5592EOF
5593 cat <<EOF > conftestd2/conftest.h
5594#ifndef DEFINED_IN_CONFTESTD1
5595#error "include_next test doesn't work"
5596#endif
5597#define DEFINED_IN_CONFTESTD2
5598EOF
5599 gl_save_CPPFLAGS="$CPPFLAGS"
5600 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
5601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5602/* end confdefs.h. */
5603#include <conftest.h>
5604_ACEOF
5605if ac_fn_c_try_compile "$LINENO"; then :
5606 gl_cv_have_include_next=yes
5607else
5608 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
5609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5610/* end confdefs.h. */
5611#include <conftest.h>
5612_ACEOF
5613if ac_fn_c_try_compile "$LINENO"; then :
5614 gl_cv_have_include_next=buggy
5615else
5616 gl_cv_have_include_next=no
5617fi
5618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5619
5620fi
5621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5622 CPPFLAGS="$gl_save_CPPFLAGS"
5623 rm -rf conftestd1a conftestd1b conftestd2
5624
5625fi
5626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
5627$as_echo "$gl_cv_have_include_next" >&6; }
5628 PRAGMA_SYSTEM_HEADER=
5629 if test $gl_cv_have_include_next = yes; then
5630 INCLUDE_NEXT=include_next
5631 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5632 if test -n "$GCC"; then
5633 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
5634 fi
5635 else
5636 if test $gl_cv_have_include_next = buggy; then
5637 INCLUDE_NEXT=include
5638 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5639 else
5640 INCLUDE_NEXT=include
5641 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
5642 fi
5643 fi
5644
5645
5646
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
5648$as_echo_n "checking whether system header files limit the line length... " >&6; }
5649if test "${gl_cv_pragma_columns+set}" = set; then :
5650 $as_echo_n "(cached) " >&6
5651else
5652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5653/* end confdefs.h. */
5654
5655#ifdef __TANDEM
5656choke me
5657#endif
5658
5659_ACEOF
5660if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5661 $EGREP "choke me" >/dev/null 2>&1; then :
5662 gl_cv_pragma_columns=yes
5663else
5664 gl_cv_pragma_columns=no
5665fi
5666rm -f conftest*
5667
5668
5669fi
5670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
5671$as_echo "$gl_cv_pragma_columns" >&6; }
5672 if test $gl_cv_pragma_columns = yes; then
5673 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
5674 else
5675 PRAGMA_COLUMNS=
5676 fi
5677
5678
5679
5680
8690e634
JK
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
5682$as_echo_n "checking for mbstate_t... " >&6; }
5683if test "${ac_cv_type_mbstate_t+set}" = set; then :
c971b7fa
PA
5684 $as_echo_n "(cached) " >&6
5685else
8690e634 5686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa 5687/* end confdefs.h. */
8690e634
JK
5688$ac_includes_default
5689/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
5690 <wchar.h>.
5691 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5692 included before <wchar.h>. */
5693#include <stddef.h>
5694#include <stdio.h>
5695#include <time.h>
5696#include <wchar.h>
5697int
5698main ()
5699{
5700mbstate_t x; return sizeof x;
5701 ;
5702 return 0;
5703}
c971b7fa 5704_ACEOF
8690e634
JK
5705if ac_fn_c_try_compile "$LINENO"; then :
5706 ac_cv_type_mbstate_t=yes
c971b7fa 5707else
8690e634 5708 ac_cv_type_mbstate_t=no
c971b7fa 5709fi
8690e634 5710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c971b7fa 5711fi
8690e634
JK
5712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
5713$as_echo "$ac_cv_type_mbstate_t" >&6; }
5714 if test $ac_cv_type_mbstate_t = yes; then
c971b7fa 5715
8690e634 5716$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
c971b7fa 5717
8690e634 5718 else
c971b7fa 5719
8690e634 5720$as_echo "#define mbstate_t int" >>confdefs.h
c971b7fa 5721
8690e634 5722 fi
c971b7fa
PA
5723
5724
5725
5726
3574124b 5727 for ac_func in $ac_func_list
8690e634
JK
5728do :
5729 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5730ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5731eval as_val=\$$as_ac_var
5732 if test "x$as_val" = x""yes; then :
5733 cat >>confdefs.h <<_ACEOF
5734#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
c971b7fa 5735_ACEOF
c971b7fa
PA
5736
5737fi
8690e634 5738done
c971b7fa
PA
5739
5740
5741
5742
5743
c971b7fa
PA
5744
5745
c971b7fa
PA
5746
5747
5748
c971b7fa
PA
5749
5750
5751
5752
5753
c971b7fa
PA
5754
5755
c971b7fa
PA
5756
5757
c971b7fa 5758
3574124b 5759 for ac_header in $ac_header_list
8690e634
JK
5760do :
5761 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3574124b
PA
5762ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5763"
8690e634
JK
5764eval as_val=\$$as_ac_Header
5765 if test "x$as_val" = x""yes; then :
5766 cat >>confdefs.h <<_ACEOF
5767#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5768_ACEOF
5769
5770fi
5771
5772done
5773
5774
5775
5776
88b48903
WN
5777 GNULIB_ACOSF=0;
5778 GNULIB_ACOSL=0;
5779 GNULIB_ASINF=0;
5780 GNULIB_ASINL=0;
5781 GNULIB_ATANF=0;
5782 GNULIB_ATANL=0;
5783 GNULIB_ATAN2F=0;
5784 GNULIB_CBRT=0;
5785 GNULIB_CBRTF=0;
5786 GNULIB_CBRTL=0;
5787 GNULIB_CEIL=0;
5788 GNULIB_CEILF=0;
5789 GNULIB_CEILL=0;
5790 GNULIB_COPYSIGN=0;
5791 GNULIB_COPYSIGNF=0;
5792 GNULIB_COPYSIGNL=0;
5793 GNULIB_COSF=0;
5794 GNULIB_COSL=0;
5795 GNULIB_COSHF=0;
5796 GNULIB_EXPF=0;
5797 GNULIB_EXPL=0;
5798 GNULIB_EXP2=0;
5799 GNULIB_EXP2F=0;
5800 GNULIB_EXP2L=0;
5801 GNULIB_EXPM1=0;
5802 GNULIB_EXPM1F=0;
5803 GNULIB_EXPM1L=0;
5804 GNULIB_FABSF=0;
5805 GNULIB_FABSL=0;
5806 GNULIB_FLOOR=0;
5807 GNULIB_FLOORF=0;
5808 GNULIB_FLOORL=0;
5809 GNULIB_FMA=0;
5810 GNULIB_FMAF=0;
5811 GNULIB_FMAL=0;
5812 GNULIB_FMOD=0;
5813 GNULIB_FMODF=0;
5814 GNULIB_FMODL=0;
5815 GNULIB_FREXPF=0;
5816 GNULIB_FREXP=0;
5817 GNULIB_FREXPL=0;
5818 GNULIB_HYPOT=0;
5819 GNULIB_HYPOTF=0;
5820 GNULIB_HYPOTL=0;
5821 GNULIB_ILOGB=0;
5822 GNULIB_ILOGBF=0;
5823 GNULIB_ILOGBL=0;
5824 GNULIB_ISFINITE=0;
5825 GNULIB_ISINF=0;
5826 GNULIB_ISNAN=0;
5827 GNULIB_ISNANF=0;
5828 GNULIB_ISNAND=0;
5829 GNULIB_ISNANL=0;
5830 GNULIB_LDEXPF=0;
5831 GNULIB_LDEXPL=0;
5832 GNULIB_LOG=0;
5833 GNULIB_LOGF=0;
5834 GNULIB_LOGL=0;
5835 GNULIB_LOG10=0;
5836 GNULIB_LOG10F=0;
5837 GNULIB_LOG10L=0;
5838 GNULIB_LOG1P=0;
5839 GNULIB_LOG1PF=0;
5840 GNULIB_LOG1PL=0;
5841 GNULIB_LOG2=0;
5842 GNULIB_LOG2F=0;
5843 GNULIB_LOG2L=0;
5844 GNULIB_LOGB=0;
5845 GNULIB_LOGBF=0;
5846 GNULIB_LOGBL=0;
5847 GNULIB_MODF=0;
5848 GNULIB_MODFF=0;
5849 GNULIB_MODFL=0;
5850 GNULIB_POWF=0;
5851 GNULIB_REMAINDER=0;
5852 GNULIB_REMAINDERF=0;
5853 GNULIB_REMAINDERL=0;
5854 GNULIB_RINT=0;
5855 GNULIB_RINTF=0;
5856 GNULIB_RINTL=0;
5857 GNULIB_ROUND=0;
5858 GNULIB_ROUNDF=0;
5859 GNULIB_ROUNDL=0;
5860 GNULIB_SIGNBIT=0;
5861 GNULIB_SINF=0;
5862 GNULIB_SINL=0;
5863 GNULIB_SINHF=0;
5864 GNULIB_SQRTF=0;
5865 GNULIB_SQRTL=0;
5866 GNULIB_TANF=0;
5867 GNULIB_TANL=0;
5868 GNULIB_TANHF=0;
5869 GNULIB_TRUNC=0;
5870 GNULIB_TRUNCF=0;
5871 GNULIB_TRUNCL=0;
5872 HAVE_ACOSF=1;
5873 HAVE_ACOSL=1;
5874 HAVE_ASINF=1;
5875 HAVE_ASINL=1;
5876 HAVE_ATANF=1;
5877 HAVE_ATANL=1;
5878 HAVE_ATAN2F=1;
5879 HAVE_CBRT=1;
5880 HAVE_CBRTF=1;
5881 HAVE_CBRTL=1;
5882 HAVE_COPYSIGN=1;
5883 HAVE_COPYSIGNL=1;
5884 HAVE_COSF=1;
5885 HAVE_COSL=1;
5886 HAVE_COSHF=1;
5887 HAVE_EXPF=1;
5888 HAVE_EXPL=1;
5889 HAVE_EXPM1=1;
5890 HAVE_EXPM1F=1;
5891 HAVE_FABSF=1;
5892 HAVE_FABSL=1;
5893 HAVE_FMA=1;
5894 HAVE_FMAF=1;
5895 HAVE_FMAL=1;
5896 HAVE_FMODF=1;
5897 HAVE_FMODL=1;
5898 HAVE_FREXPF=1;
5899 HAVE_HYPOTF=1;
5900 HAVE_HYPOTL=1;
5901 HAVE_ILOGB=1;
5902 HAVE_ILOGBF=1;
5903 HAVE_ILOGBL=1;
5904 HAVE_ISNANF=1;
5905 HAVE_ISNAND=1;
5906 HAVE_ISNANL=1;
5907 HAVE_LDEXPF=1;
5908 HAVE_LOGF=1;
5909 HAVE_LOGL=1;
5910 HAVE_LOG10F=1;
5911 HAVE_LOG10L=1;
5912 HAVE_LOG1P=1;
5913 HAVE_LOG1PF=1;
5914 HAVE_LOG1PL=1;
5915 HAVE_LOGBF=1;
5916 HAVE_LOGBL=1;
5917 HAVE_MODFF=1;
5918 HAVE_MODFL=1;
5919 HAVE_POWF=1;
5920 HAVE_REMAINDER=1;
5921 HAVE_REMAINDERF=1;
5922 HAVE_RINT=1;
5923 HAVE_RINTL=1;
5924 HAVE_SINF=1;
5925 HAVE_SINL=1;
5926 HAVE_SINHF=1;
5927 HAVE_SQRTF=1;
5928 HAVE_SQRTL=1;
5929 HAVE_TANF=1;
5930 HAVE_TANL=1;
5931 HAVE_TANHF=1;
5932 HAVE_DECL_ACOSL=1;
5933 HAVE_DECL_ASINL=1;
5934 HAVE_DECL_ATANL=1;
5935 HAVE_DECL_CBRTF=1;
5936 HAVE_DECL_CBRTL=1;
5937 HAVE_DECL_CEILF=1;
5938 HAVE_DECL_CEILL=1;
5939 HAVE_DECL_COPYSIGNF=1;
5940 HAVE_DECL_COSL=1;
5941 HAVE_DECL_EXPL=1;
5942 HAVE_DECL_EXP2=1;
5943 HAVE_DECL_EXP2F=1;
5944 HAVE_DECL_EXP2L=1;
5945 HAVE_DECL_EXPM1L=1;
5946 HAVE_DECL_FLOORF=1;
5947 HAVE_DECL_FLOORL=1;
5948 HAVE_DECL_FREXPL=1;
5949 HAVE_DECL_LDEXPL=1;
5950 HAVE_DECL_LOGL=1;
5951 HAVE_DECL_LOG10L=1;
5952 HAVE_DECL_LOG2=1;
5953 HAVE_DECL_LOG2F=1;
5954 HAVE_DECL_LOG2L=1;
5955 HAVE_DECL_LOGB=1;
5956 HAVE_DECL_REMAINDER=1;
5957 HAVE_DECL_REMAINDERL=1;
5958 HAVE_DECL_RINTF=1;
5959 HAVE_DECL_ROUND=1;
5960 HAVE_DECL_ROUNDF=1;
5961 HAVE_DECL_ROUNDL=1;
5962 HAVE_DECL_SINL=1;
5963 HAVE_DECL_SQRTL=1;
5964 HAVE_DECL_TANL=1;
5965 HAVE_DECL_TRUNC=1;
5966 HAVE_DECL_TRUNCF=1;
5967 HAVE_DECL_TRUNCL=1;
5968 REPLACE_CBRTF=0;
5969 REPLACE_CBRTL=0;
5970 REPLACE_CEIL=0;
5971 REPLACE_CEILF=0;
5972 REPLACE_CEILL=0;
5973 REPLACE_EXPM1=0;
5974 REPLACE_EXPM1F=0;
5975 REPLACE_EXP2=0;
5976 REPLACE_EXP2L=0;
5977 REPLACE_FABSL=0;
5978 REPLACE_FLOOR=0;
5979 REPLACE_FLOORF=0;
5980 REPLACE_FLOORL=0;
5981 REPLACE_FMA=0;
5982 REPLACE_FMAF=0;
5983 REPLACE_FMAL=0;
5984 REPLACE_FMOD=0;
5985 REPLACE_FMODF=0;
5986 REPLACE_FMODL=0;
5987 REPLACE_FREXPF=0;
5988 REPLACE_FREXP=0;
5989 REPLACE_FREXPL=0;
5990 REPLACE_HUGE_VAL=0;
5991 REPLACE_HYPOT=0;
5992 REPLACE_HYPOTF=0;
5993 REPLACE_HYPOTL=0;
5994 REPLACE_ILOGB=0;
5995 REPLACE_ILOGBF=0;
5996 REPLACE_ISFINITE=0;
5997 REPLACE_ISINF=0;
5998 REPLACE_ISNAN=0;
5999 REPLACE_LDEXPL=0;
6000 REPLACE_LOG=0;
6001 REPLACE_LOGF=0;
6002 REPLACE_LOGL=0;
6003 REPLACE_LOG10=0;
6004 REPLACE_LOG10F=0;
6005 REPLACE_LOG10L=0;
6006 REPLACE_LOG1P=0;
6007 REPLACE_LOG1PF=0;
6008 REPLACE_LOG1PL=0;
6009 REPLACE_LOG2=0;
6010 REPLACE_LOG2F=0;
6011 REPLACE_LOG2L=0;
6012 REPLACE_LOGB=0;
6013 REPLACE_LOGBF=0;
6014 REPLACE_LOGBL=0;
6015 REPLACE_MODF=0;
6016 REPLACE_MODFF=0;
6017 REPLACE_MODFL=0;
6018 REPLACE_NAN=0;
6019 REPLACE_REMAINDER=0;
6020 REPLACE_REMAINDERF=0;
6021 REPLACE_REMAINDERL=0;
6022 REPLACE_ROUND=0;
6023 REPLACE_ROUNDF=0;
6024 REPLACE_ROUNDL=0;
6025 REPLACE_SIGNBIT=0;
6026 REPLACE_SIGNBIT_USING_GCC=0;
6027 REPLACE_SQRTL=0;
6028 REPLACE_TRUNC=0;
6029 REPLACE_TRUNCF=0;
6030 REPLACE_TRUNCL=0;
6031
6032
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used without linking with libm" >&5
6034$as_echo_n "checking whether frexp() can be used without linking with libm... " >&6; }
6035if test "${gl_cv_func_frexp_no_libm+set}" = set; then :
6036 $as_echo_n "(cached) " >&6
6037else
6038
6039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6040/* end confdefs.h. */
6041#include <math.h>
6042 double x;
6043int
6044main ()
6045{
6046int e; return frexp (x, &e) > 0;
6047 ;
6048 return 0;
6049}
6050_ACEOF
6051if ac_fn_c_try_link "$LINENO"; then :
6052 gl_cv_func_frexp_no_libm=yes
6053else
6054 gl_cv_func_frexp_no_libm=no
6055fi
6056rm -f core conftest.err conftest.$ac_objext \
6057 conftest$ac_exeext conftest.$ac_ext
6058
6059fi
6060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
6061$as_echo "$gl_cv_func_frexp_no_libm" >&6; }
6062
6063
6064
6065
88b48903
WN
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double and double are the same" >&5
6067$as_echo_n "checking whether long double and double are the same... " >&6; }
6068if test "${gl_cv_long_double_equals_double+set}" = set; then :
6069 $as_echo_n "(cached) " >&6
6070else
6071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6072/* end confdefs.h. */
6073#include <float.h>
6074int
6075main ()
6076{
6077typedef int check[sizeof (long double) == sizeof (double)
6078 && LDBL_MANT_DIG == DBL_MANT_DIG
6079 && LDBL_MAX_EXP == DBL_MAX_EXP
6080 && LDBL_MIN_EXP == DBL_MIN_EXP
6081 ? 1 : -1];
6082
6083 ;
6084 return 0;
6085}
6086_ACEOF
6087if ac_fn_c_try_compile "$LINENO"; then :
6088 gl_cv_long_double_equals_double=yes
6089else
6090 gl_cv_long_double_equals_double=no
6091fi
6092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6093
6094fi
6095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_double_equals_double" >&5
6096$as_echo "$gl_cv_long_double_equals_double" >&6; }
6097 if test $gl_cv_long_double_equals_double = yes; then
6098
6099$as_echo "#define HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1" >>confdefs.h
6100
6101 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=1
6102 else
6103 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=0
6104 fi
6105
6106
6107
8690e634
JK
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6109$as_echo_n "checking for unsigned long long int... " >&6; }
6110if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6111 $as_echo_n "(cached) " >&6
6112else
6113 ac_cv_type_unsigned_long_long_int=yes
6114 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6116/* end confdefs.h. */
6117
6118 /* For now, do not test the preprocessor; as of 2007 there are too many
6119 implementations with broken preprocessors. Perhaps this can
6120 be revisited in 2012. In the meantime, code should not expect
6121 #if to work with literals wider than 32 bits. */
6122 /* Test literals. */
6123 long long int ll = 9223372036854775807ll;
6124 long long int nll = -9223372036854775807LL;
6125 unsigned long long int ull = 18446744073709551615ULL;
6126 /* Test constant expressions. */
6127 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6128 ? 1 : -1)];
6129 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6130 ? 1 : -1)];
6131 int i = 63;
6132int
6133main ()
6134{
6135/* Test availability of runtime routines for shift and division. */
6136 long long int llmax = 9223372036854775807ll;
6137 unsigned long long int ullmax = 18446744073709551615ull;
6138 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6139 | (llmax / ll) | (llmax % ll)
6140 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6141 | (ullmax / ull) | (ullmax % ull));
6142 ;
6143 return 0;
6144}
6145
6146_ACEOF
6147if ac_fn_c_try_link "$LINENO"; then :
6148
6149else
6150 ac_cv_type_unsigned_long_long_int=no
6151fi
6152rm -f core conftest.err conftest.$ac_objext \
6153 conftest$ac_exeext conftest.$ac_ext
6154 fi
6155fi
6156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6157$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6158 if test $ac_cv_type_unsigned_long_long_int = yes; then
6159
6160$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6161
6162 fi
6163
6164
6165
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6167$as_echo_n "checking for long long int... " >&6; }
6168if test "${ac_cv_type_long_long_int+set}" = set; then :
6169 $as_echo_n "(cached) " >&6
6170else
6171 ac_cv_type_long_long_int=yes
6172 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6173 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6174 if test $ac_cv_type_long_long_int = yes; then
6175 if test "$cross_compiling" = yes; then :
6176 :
6177else
6178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6179/* end confdefs.h. */
6180#include <limits.h>
6181 #ifndef LLONG_MAX
6182 # define HALF \
6183 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6184 # define LLONG_MAX (HALF - 1 + HALF)
6185 #endif
6186int
6187main ()
6188{
6189long long int n = 1;
6190 int i;
6191 for (i = 0; ; i++)
6192 {
6193 long long int m = n << i;
6194 if (m >> i != n)
6195 return 1;
6196 if (LLONG_MAX / 2 < m)
6197 break;
6198 }
6199 return 0;
6200 ;
6201 return 0;
6202}
6203_ACEOF
6204if ac_fn_c_try_run "$LINENO"; then :
6205
6206else
6207 ac_cv_type_long_long_int=no
6208fi
6209rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6210 conftest.$ac_objext conftest.beam conftest.$ac_ext
6211fi
6212
6213 fi
6214 fi
6215fi
6216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6217$as_echo "$ac_cv_type_long_long_int" >&6; }
6218 if test $ac_cv_type_long_long_int = yes; then
6219
6220$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6221
6222 fi
6223
6224
6225
6226
6227
6228
88b48903
WN
6229 gl_cv_c_multiarch=no
6230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a143c6de 6231/* end confdefs.h. */
88b48903
WN
6232#ifndef __APPLE_CC__
6233 not a universal capable compiler
6234 #endif
6235 typedef int dummy;
6236
8690e634
JK
6237_ACEOF
6238if ac_fn_c_try_compile "$LINENO"; then :
6239
6240 arch=
6241 prev=
6242 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
6243 if test -n "$prev"; then
6244 case $word in
6245 i?86 | x86_64 | ppc | ppc64)
6246 if test -z "$arch" || test "$arch" = "$word"; then
6247 arch="$word"
6248 else
6249 gl_cv_c_multiarch=yes
6250 fi
6251 ;;
6252 esac
6253 prev=
6254 else
6255 if test "x$word" = "x-arch"; then
6256 prev=arch
6257 fi
6258 fi
6259 done
6260
6261fi
6262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6263 if test $gl_cv_c_multiarch = yes; then
6264 APPLE_UNIVERSAL_BUILD=1
6265 else
6266 APPLE_UNIVERSAL_BUILD=0
6267 fi
6268
6269
6270
6271
6272
6273 if test $ac_cv_type_long_long_int = yes; then
6274 HAVE_LONG_LONG_INT=1
6275 else
6276 HAVE_LONG_LONG_INT=0
6277 fi
6278
6279
6280 if test $ac_cv_type_unsigned_long_long_int = yes; then
6281 HAVE_UNSIGNED_LONG_LONG_INT=1
6282 else
6283 HAVE_UNSIGNED_LONG_LONG_INT=0
6284 fi
6285
6286
6287
8690e634
JK
6288 if test $ac_cv_header_wchar_h = yes; then
6289 HAVE_WCHAR_H=1
6290 else
6291 HAVE_WCHAR_H=0
6292 fi
6293
6294
6295 if test $ac_cv_header_inttypes_h = yes; then
6296 HAVE_INTTYPES_H=1
6297 else
6298 HAVE_INTTYPES_H=0
6299 fi
6300
6301
6302 if test $ac_cv_header_sys_types_h = yes; then
6303 HAVE_SYS_TYPES_H=1
6304 else
6305 HAVE_SYS_TYPES_H=0
6306 fi
6307
6308
6309
6310
6311
6312
6313
6314
8690e634
JK
6315
6316
6317
6318 if test $gl_cv_have_include_next = yes; then
6319 gl_cv_next_stdint_h='<'stdint.h'>'
6320 else
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
6322$as_echo_n "checking absolute name of <stdint.h>... " >&6; }
6323if test "${gl_cv_next_stdint_h+set}" = set; then :
6324 $as_echo_n "(cached) " >&6
6325else
6326
6327 if test $ac_cv_header_stdint_h = yes; then
6328
6329
6330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6331/* end confdefs.h. */
6332#include <stdint.h>
6333
6334_ACEOF
6335 case "$host_os" in
6336 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6337 *) gl_absname_cpp="$ac_cpp" ;;
6338 esac
6339
6340 case "$host_os" in
6341 mingw*)
6342 gl_dirsep_regex='[/\\]'
6343 ;;
6344 *)
6345 gl_dirsep_regex='\/'
6346 ;;
6347 esac
6348 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
6349
6350 gl_header_literal_regex=`echo 'stdint.h' \
6351 | sed -e "$gl_make_literal_regex_sed"`
6352 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
6353 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
6354 s|^/[^/]|//&|
6355 p
6356 q
6357 }'
6358 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6359 sed -n "$gl_absolute_header_sed"`'"'
6360 else
6361 gl_cv_next_stdint_h='<'stdint.h'>'
6362 fi
6363
6364
6365fi
6366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
6367$as_echo "$gl_cv_next_stdint_h" >&6; }
6368 fi
6369 NEXT_STDINT_H=$gl_cv_next_stdint_h
6370
6371 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6372 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6373 gl_next_as_first_directive='<'stdint.h'>'
6374 else
6375 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6376 gl_next_as_first_directive=$gl_cv_next_stdint_h
6377 fi
6378 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
6379
6380
6381
6382
6383 if test $ac_cv_header_stdint_h = yes; then
6384 HAVE_STDINT_H=1
6385 else
6386 HAVE_STDINT_H=0
6387 fi
6388
6389
6390 if test $ac_cv_header_stdint_h = yes; then
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
6392$as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
6393if test "${gl_cv_header_working_stdint_h+set}" = set; then :
6394 $as_echo_n "(cached) " >&6
6395else
6396 gl_cv_header_working_stdint_h=no
6397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6398/* end confdefs.h. */
6399
6400
6401#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6402#include <stdint.h>
6403/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
6404#if !(defined WCHAR_MIN && defined WCHAR_MAX)
6405#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
6406#endif
6407
6408
6409 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6410 included before <wchar.h>. */
6411 #include <stddef.h>
6412 #include <signal.h>
6413 #if HAVE_WCHAR_H
6414 # include <stdio.h>
6415 # include <time.h>
6416 # include <wchar.h>
6417 #endif
6418
6419
6420#ifdef INT8_MAX
6421int8_t a1 = INT8_MAX;
6422int8_t a1min = INT8_MIN;
6423#endif
6424#ifdef INT16_MAX
6425int16_t a2 = INT16_MAX;
6426int16_t a2min = INT16_MIN;
6427#endif
6428#ifdef INT32_MAX
6429int32_t a3 = INT32_MAX;
6430int32_t a3min = INT32_MIN;
6431#endif
6432#ifdef INT64_MAX
6433int64_t a4 = INT64_MAX;
6434int64_t a4min = INT64_MIN;
6435#endif
6436#ifdef UINT8_MAX
6437uint8_t b1 = UINT8_MAX;
6438#else
6439typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
6440#endif
6441#ifdef UINT16_MAX
6442uint16_t b2 = UINT16_MAX;
6443#endif
6444#ifdef UINT32_MAX
6445uint32_t b3 = UINT32_MAX;
6446#endif
6447#ifdef UINT64_MAX
6448uint64_t b4 = UINT64_MAX;
6449#endif
6450int_least8_t c1 = INT8_C (0x7f);
6451int_least8_t c1max = INT_LEAST8_MAX;
6452int_least8_t c1min = INT_LEAST8_MIN;
6453int_least16_t c2 = INT16_C (0x7fff);
6454int_least16_t c2max = INT_LEAST16_MAX;
6455int_least16_t c2min = INT_LEAST16_MIN;
6456int_least32_t c3 = INT32_C (0x7fffffff);
6457int_least32_t c3max = INT_LEAST32_MAX;
6458int_least32_t c3min = INT_LEAST32_MIN;
6459int_least64_t c4 = INT64_C (0x7fffffffffffffff);
6460int_least64_t c4max = INT_LEAST64_MAX;
6461int_least64_t c4min = INT_LEAST64_MIN;
6462uint_least8_t d1 = UINT8_C (0xff);
6463uint_least8_t d1max = UINT_LEAST8_MAX;
6464uint_least16_t d2 = UINT16_C (0xffff);
6465uint_least16_t d2max = UINT_LEAST16_MAX;
6466uint_least32_t d3 = UINT32_C (0xffffffff);
6467uint_least32_t d3max = UINT_LEAST32_MAX;
6468uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
6469uint_least64_t d4max = UINT_LEAST64_MAX;
6470int_fast8_t e1 = INT_FAST8_MAX;
6471int_fast8_t e1min = INT_FAST8_MIN;
6472int_fast16_t e2 = INT_FAST16_MAX;
6473int_fast16_t e2min = INT_FAST16_MIN;
6474int_fast32_t e3 = INT_FAST32_MAX;
6475int_fast32_t e3min = INT_FAST32_MIN;
6476int_fast64_t e4 = INT_FAST64_MAX;
6477int_fast64_t e4min = INT_FAST64_MIN;
6478uint_fast8_t f1 = UINT_FAST8_MAX;
6479uint_fast16_t f2 = UINT_FAST16_MAX;
6480uint_fast32_t f3 = UINT_FAST32_MAX;
6481uint_fast64_t f4 = UINT_FAST64_MAX;
6482#ifdef INTPTR_MAX
6483intptr_t g = INTPTR_MAX;
6484intptr_t gmin = INTPTR_MIN;
6485#endif
6486#ifdef UINTPTR_MAX
6487uintptr_t h = UINTPTR_MAX;
6488#endif
6489intmax_t i = INTMAX_MAX;
6490uintmax_t j = UINTMAX_MAX;
6491
6492#include <limits.h> /* for CHAR_BIT */
6493#define TYPE_MINIMUM(t) \
6494 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
6495#define TYPE_MAXIMUM(t) \
6496 ((t) ((t) 0 < (t) -1 \
6497 ? (t) -1 \
6498 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
6499struct s {
6500 int check_PTRDIFF:
6501 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
6502 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
6503 ? 1 : -1;
6504 /* Detect bug in FreeBSD 6.0 / ia64. */
6505 int check_SIG_ATOMIC:
6506 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
6507 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
6508 ? 1 : -1;
6509 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
6510 int check_WCHAR:
6511 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
6512 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
6513 ? 1 : -1;
6514 /* Detect bug in mingw. */
6515 int check_WINT:
6516 WINT_MIN == TYPE_MINIMUM (wint_t)
6517 && WINT_MAX == TYPE_MAXIMUM (wint_t)
6518 ? 1 : -1;
6519
6520 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
6521 int check_UINT8_C:
6522 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
6523 int check_UINT16_C:
6524 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
6525
6526 /* Detect bugs in OpenBSD 3.9 stdint.h. */
6527#ifdef UINT8_MAX
6528 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
6529#endif
6530#ifdef UINT16_MAX
6531 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
6532#endif
6533#ifdef UINT32_MAX
6534 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
6535#endif
6536#ifdef UINT64_MAX
6537 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
6538#endif
6539 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
6540 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
6541 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
6542 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
6543 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
6544 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
6545 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
6546 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
6547 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
6548 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
6549 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
6550};
6551
6552int
6553main ()
6554{
6555
6556 ;
6557 return 0;
6558}
6559_ACEOF
6560if ac_fn_c_try_compile "$LINENO"; then :
6561 if test "$cross_compiling" = yes; then :
6562 gl_cv_header_working_stdint_h=yes
6563
6564else
6565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6566/* end confdefs.h. */
6567
6568
6569#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6570#include <stdint.h>
6571
6572
6573 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6574 included before <wchar.h>. */
6575 #include <stddef.h>
6576 #include <signal.h>
6577 #if HAVE_WCHAR_H
6578 # include <stdio.h>
6579 # include <time.h>
6580 # include <wchar.h>
6581 #endif
6582
6583
6584#include <stdio.h>
6585#include <string.h>
6586#define MVAL(macro) MVAL1(macro)
6587#define MVAL1(expression) #expression
6588static const char *macro_values[] =
6589 {
6590#ifdef INT8_MAX
6591 MVAL (INT8_MAX),
6592#endif
6593#ifdef INT16_MAX
6594 MVAL (INT16_MAX),
6595#endif
6596#ifdef INT32_MAX
6597 MVAL (INT32_MAX),
6598#endif
6599#ifdef INT64_MAX
6600 MVAL (INT64_MAX),
6601#endif
6602#ifdef UINT8_MAX
6603 MVAL (UINT8_MAX),
6604#endif
6605#ifdef UINT16_MAX
6606 MVAL (UINT16_MAX),
6607#endif
6608#ifdef UINT32_MAX
6609 MVAL (UINT32_MAX),
6610#endif
6611#ifdef UINT64_MAX
6612 MVAL (UINT64_MAX),
6613#endif
6614 NULL
6615 };
6616
6617int
6618main ()
6619{
6620
6621 const char **mv;
6622 for (mv = macro_values; *mv != NULL; mv++)
6623 {
6624 const char *value = *mv;
6625 /* Test whether it looks like a cast expression. */
6626 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
6627 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
6628 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
6629 || strncmp (value, "((int)"/*)*/, 6) == 0
6630 || strncmp (value, "((signed short)"/*)*/, 15) == 0
6631 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
6632 return mv - macro_values + 1;
6633 }
6634 return 0;
6635
6636 ;
6637 return 0;
6638}
6639_ACEOF
6640if ac_fn_c_try_run "$LINENO"; then :
6641 gl_cv_header_working_stdint_h=yes
6642fi
6643rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6644 conftest.$ac_objext conftest.beam conftest.$ac_ext
6645fi
6646
6647
6648fi
6649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6650
6651fi
6652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
6653$as_echo "$gl_cv_header_working_stdint_h" >&6; }
6654 fi
6655 if test "$gl_cv_header_working_stdint_h" = yes; then
6656 STDINT_H=
6657 else
6658 for ac_header in sys/inttypes.h sys/bitypes.h
6659do :
6660 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6661ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6662eval as_val=\$$as_ac_Header
6663 if test "x$as_val" = x""yes; then :
6664 cat >>confdefs.h <<_ACEOF
6665#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6666_ACEOF
6667
6668fi
6669
6670done
6671
6672 if test $ac_cv_header_sys_inttypes_h = yes; then
6673 HAVE_SYS_INTTYPES_H=1
6674 else
6675 HAVE_SYS_INTTYPES_H=0
6676 fi
6677
6678 if test $ac_cv_header_sys_bitypes_h = yes; then
6679 HAVE_SYS_BITYPES_H=1
6680 else
6681 HAVE_SYS_BITYPES_H=0
6682 fi
6683
6684
6685
6686
6687 if test $APPLE_UNIVERSAL_BUILD = 0; then
6688
6689
6690 for gltype in ptrdiff_t size_t ; do
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6692$as_echo_n "checking for bit size of $gltype... " >&6; }
6693if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6694 $as_echo_n "(cached) " >&6
6695else
6696 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
6697 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6698 included before <wchar.h>. */
6699 #include <stddef.h>
6700 #include <signal.h>
6701 #if HAVE_WCHAR_H
6702 # include <stdio.h>
6703 # include <time.h>
6704 # include <wchar.h>
6705 #endif
6706
6707#include <limits.h>"; then :
6708
6709else
6710 result=unknown
6711fi
6712
6713 eval gl_cv_bitsizeof_${gltype}=\$result
6714
6715fi
6716eval ac_res=\$gl_cv_bitsizeof_${gltype}
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6718$as_echo "$ac_res" >&6; }
6719 eval result=\$gl_cv_bitsizeof_${gltype}
6720 if test $result = unknown; then
6721 result=0
6722 fi
6723 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6724 cat >>confdefs.h <<_ACEOF
6725#define BITSIZEOF_${GLTYPE} $result
6726_ACEOF
6727
6728 eval BITSIZEOF_${GLTYPE}=\$result
6729 done
6730
6731
6732 fi
6733
6734
6735 for gltype in sig_atomic_t wchar_t wint_t ; do
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6737$as_echo_n "checking for bit size of $gltype... " >&6; }
6738if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6739 $as_echo_n "(cached) " >&6
6740else
6741 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
6742 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6743 included before <wchar.h>. */
6744 #include <stddef.h>
6745 #include <signal.h>
6746 #if HAVE_WCHAR_H
6747 # include <stdio.h>
6748 # include <time.h>
6749 # include <wchar.h>
6750 #endif
6751
6752#include <limits.h>"; then :
6753
6754else
6755 result=unknown
6756fi
6757
6758 eval gl_cv_bitsizeof_${gltype}=\$result
6759
6760fi
6761eval ac_res=\$gl_cv_bitsizeof_${gltype}
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6763$as_echo "$ac_res" >&6; }
6764 eval result=\$gl_cv_bitsizeof_${gltype}
6765 if test $result = unknown; then
6766 result=0
6767 fi
6768 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6769 cat >>confdefs.h <<_ACEOF
6770#define BITSIZEOF_${GLTYPE} $result
6771_ACEOF
6772
6773 eval BITSIZEOF_${GLTYPE}=\$result
6774 done
6775
6776
6777
6778
6779 for gltype in sig_atomic_t wchar_t wint_t ; do
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
6781$as_echo_n "checking whether $gltype is signed... " >&6; }
6782if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
6783 $as_echo_n "(cached) " >&6
6784else
6785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6786/* end confdefs.h. */
6787
6788 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6789 included before <wchar.h>. */
6790 #include <stddef.h>
6791 #include <signal.h>
6792 #if HAVE_WCHAR_H
6793 # include <stdio.h>
6794 # include <time.h>
6795 # include <wchar.h>
6796 #endif
6797
6798 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
6799int
6800main ()
6801{
6802
6803 ;
6804 return 0;
6805}
6806_ACEOF
6807if ac_fn_c_try_compile "$LINENO"; then :
6808 result=yes
6809else
6810 result=no
6811fi
6812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6813 eval gl_cv_type_${gltype}_signed=\$result
6814
6815fi
6816eval ac_res=\$gl_cv_type_${gltype}_signed
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6818$as_echo "$ac_res" >&6; }
6819 eval result=\$gl_cv_type_${gltype}_signed
6820 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6821 if test "$result" = yes; then
6822 cat >>confdefs.h <<_ACEOF
6823#define HAVE_SIGNED_${GLTYPE} 1
6824_ACEOF
6825
6826 eval HAVE_SIGNED_${GLTYPE}=1
6827 else
6828 eval HAVE_SIGNED_${GLTYPE}=0
6829 fi
6830 done
6831
6832
6833 gl_cv_type_ptrdiff_t_signed=yes
6834 gl_cv_type_size_t_signed=no
6835 if test $APPLE_UNIVERSAL_BUILD = 0; then
6836
6837
6838 for gltype in ptrdiff_t size_t ; do
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6840$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6841if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6842 $as_echo_n "(cached) " >&6
6843else
6844 eval gl_cv_type_${gltype}_suffix=no
6845 eval result=\$gl_cv_type_${gltype}_signed
6846 if test "$result" = yes; then
6847 glsufu=
6848 else
6849 glsufu=u
6850 fi
6851 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6852 case $glsuf in
6853 '') gltype1='int';;
6854 l) gltype1='long int';;
6855 ll) gltype1='long long int';;
6856 i64) gltype1='__int64';;
6857 u) gltype1='unsigned int';;
6858 ul) gltype1='unsigned long int';;
6859 ull) gltype1='unsigned long long int';;
6860 ui64)gltype1='unsigned __int64';;
6861 esac
6862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6863/* end confdefs.h. */
6864
6865 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6866 included before <wchar.h>. */
6867 #include <stddef.h>
6868 #include <signal.h>
6869 #if HAVE_WCHAR_H
6870 # include <stdio.h>
6871 # include <time.h>
6872 # include <wchar.h>
6873 #endif
6874
6875 extern $gltype foo;
6876 extern $gltype1 foo;
6877int
6878main ()
6879{
6880
6881 ;
6882 return 0;
6883}
6884_ACEOF
6885if ac_fn_c_try_compile "$LINENO"; then :
6886 eval gl_cv_type_${gltype}_suffix=\$glsuf
6887fi
6888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6889 eval result=\$gl_cv_type_${gltype}_suffix
6890 test "$result" != no && break
6891 done
6892fi
6893eval ac_res=\$gl_cv_type_${gltype}_suffix
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6895$as_echo "$ac_res" >&6; }
6896 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6897 eval result=\$gl_cv_type_${gltype}_suffix
6898 test "$result" = no && result=
6899 eval ${GLTYPE}_SUFFIX=\$result
6900 cat >>confdefs.h <<_ACEOF
6901#define ${GLTYPE}_SUFFIX $result
6902_ACEOF
6903
6904 done
6905
6906
6907 fi
6908
6909
6910 for gltype in sig_atomic_t wchar_t wint_t ; do
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6912$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6913if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6914 $as_echo_n "(cached) " >&6
6915else
6916 eval gl_cv_type_${gltype}_suffix=no
6917 eval result=\$gl_cv_type_${gltype}_signed
6918 if test "$result" = yes; then
6919 glsufu=
6920 else
6921 glsufu=u
6922 fi
6923 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6924 case $glsuf in
6925 '') gltype1='int';;
6926 l) gltype1='long int';;
6927 ll) gltype1='long long int';;
6928 i64) gltype1='__int64';;
6929 u) gltype1='unsigned int';;
6930 ul) gltype1='unsigned long int';;
6931 ull) gltype1='unsigned long long int';;
6932 ui64)gltype1='unsigned __int64';;
6933 esac
6934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6935/* end confdefs.h. */
6936
6937 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6938 included before <wchar.h>. */
6939 #include <stddef.h>
6940 #include <signal.h>
6941 #if HAVE_WCHAR_H
6942 # include <stdio.h>
6943 # include <time.h>
6944 # include <wchar.h>
6945 #endif
6946
6947 extern $gltype foo;
6948 extern $gltype1 foo;
6949int
6950main ()
6951{
6952
6953 ;
6954 return 0;
6955}
6956_ACEOF
6957if ac_fn_c_try_compile "$LINENO"; then :
6958 eval gl_cv_type_${gltype}_suffix=\$glsuf
6959fi
6960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6961 eval result=\$gl_cv_type_${gltype}_suffix
6962 test "$result" != no && break
6963 done
6964fi
6965eval ac_res=\$gl_cv_type_${gltype}_suffix
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6967$as_echo "$ac_res" >&6; }
6968 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6969 eval result=\$gl_cv_type_${gltype}_suffix
6970 test "$result" = no && result=
6971 eval ${GLTYPE}_SUFFIX=\$result
6972 cat >>confdefs.h <<_ACEOF
6973#define ${GLTYPE}_SUFFIX $result
6974_ACEOF
6975
6976 done
6977
6978
6979
6980 if test $BITSIZEOF_WINT_T -lt 32; then
6981 BITSIZEOF_WINT_T=32
6982 fi
6983
6984 STDINT_H=stdint.h
6985 fi
6986
6987 if test -n "$STDINT_H"; then
6988 GL_GENERATE_STDINT_H_TRUE=
6989 GL_GENERATE_STDINT_H_FALSE='#'
6990else
6991 GL_GENERATE_STDINT_H_TRUE='#'
6992 GL_GENERATE_STDINT_H_FALSE=
6993fi
6994
6995
6996
6997
6998
8690e634
JK
6999 GNULIB_IMAXABS=0;
7000 GNULIB_IMAXDIV=0;
7001 GNULIB_STRTOIMAX=0;
7002 GNULIB_STRTOUMAX=0;
7003 HAVE_DECL_IMAXABS=1;
7004 HAVE_DECL_IMAXDIV=1;
7005 HAVE_DECL_STRTOIMAX=1;
7006 HAVE_DECL_STRTOUMAX=1;
7007 REPLACE_STRTOIMAX=0;
7008 INT32_MAX_LT_INTMAX_MAX=1;
7009 INT64_MAX_EQ_LONG_MAX='defined _LP64';
7010 PRI_MACROS_BROKEN=0;
7011 PRIPTR_PREFIX=__PRIPTR_PREFIX;
7012 UINT32_MAX_LT_UINTMAX_MAX=1;
7013 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
7014
7015
7016
7017
8690e634
JK
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
8690e634
JK
7029 if test $gl_cv_have_include_next = yes; then
7030 gl_cv_next_inttypes_h='<'inttypes.h'>'
7031 else
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
7033$as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
7034if test "${gl_cv_next_inttypes_h+set}" = set; then :
7035 $as_echo_n "(cached) " >&6
7036else
7037
7038 if test $ac_cv_header_inttypes_h = yes; then
7039
7040
7041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7042/* end confdefs.h. */
7043#include <inttypes.h>
7044
7045_ACEOF
7046 case "$host_os" in
7047 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7048 *) gl_absname_cpp="$ac_cpp" ;;
7049 esac
7050
7051 case "$host_os" in
7052 mingw*)
7053 gl_dirsep_regex='[/\\]'
7054 ;;
7055 *)
7056 gl_dirsep_regex='\/'
7057 ;;
7058 esac
7059 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
7060
7061 gl_header_literal_regex=`echo 'inttypes.h' \
7062 | sed -e "$gl_make_literal_regex_sed"`
7063 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7064 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7065 s|^/[^/]|//&|
7066 p
7067 q
7068 }'
7069 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7070 sed -n "$gl_absolute_header_sed"`'"'
7071 else
7072 gl_cv_next_inttypes_h='<'inttypes.h'>'
7073 fi
7074
7075
7076fi
7077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
7078$as_echo "$gl_cv_next_inttypes_h" >&6; }
7079 fi
7080 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
7081
7082 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7083 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7084 gl_next_as_first_directive='<'inttypes.h'>'
7085 else
7086 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7087 gl_next_as_first_directive=$gl_cv_next_inttypes_h
7088 fi
7089 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
7090
7091
7092
7093
7094
7095
7096
7097
7098 for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
7099 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
7101$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
7102if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
7103 $as_echo_n "(cached) " >&6
7104else
7105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7106/* end confdefs.h. */
7107#include <inttypes.h>
7108
7109int
7110main ()
7111{
7112#undef $gl_func
7113 (void) $gl_func;
7114 ;
7115 return 0;
7116}
7117_ACEOF
7118if ac_fn_c_try_compile "$LINENO"; then :
7119 eval "$as_gl_Symbol=yes"
7120else
7121 eval "$as_gl_Symbol=no"
7122fi
7123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7124fi
7125eval ac_res=\$$as_gl_Symbol
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7127$as_echo "$ac_res" >&6; }
7128 eval as_val=\$$as_gl_Symbol
7129 if test "x$as_val" = x""yes; then :
7130 cat >>confdefs.h <<_ACEOF
7131#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
7132_ACEOF
7133
7134 eval ac_cv_have_decl_$gl_func=yes
7135fi
7136 done
7137
7138
7139
7140 for ac_header in inttypes.h
7141do :
7142 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7143if test "x$ac_cv_header_inttypes_h" = x""yes; then :
7144 cat >>confdefs.h <<_ACEOF
7145#define HAVE_INTTYPES_H 1
7146_ACEOF
7147
7148fi
7149
7150done
7151
7152 if test $ac_cv_header_inttypes_h = yes; then
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7154$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7155if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
7156 $as_echo_n "(cached) " >&6
7157else
7158
7159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7160/* end confdefs.h. */
7161
7162#include <inttypes.h>
7163#ifdef PRId32
7164char *p = PRId32;
7165#endif
7166
7167int
7168main ()
7169{
7170
7171 ;
7172 return 0;
7173}
7174_ACEOF
7175if ac_fn_c_try_compile "$LINENO"; then :
7176 gt_cv_inttypes_pri_broken=no
7177else
7178 gt_cv_inttypes_pri_broken=yes
7179fi
7180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7181
7182fi
7183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7184$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7185 fi
7186 if test "$gt_cv_inttypes_pri_broken" = yes; then
7187
7188cat >>confdefs.h <<_ACEOF
7189#define PRI_MACROS_BROKEN 1
7190_ACEOF
7191
7192 PRI_MACROS_BROKEN=1
7193 else
7194 PRI_MACROS_BROKEN=0
7195 fi
7196
7197
7198
88b48903
WN
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
7200$as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
7201if test "${gl_cv_cc_double_expbit0+set}" = set; then :
8690e634
JK
7202 $as_echo_n "(cached) " >&6
7203else
88b48903
WN
7204
7205 if test "$cross_compiling" = yes; then :
7206
7207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690e634 7208/* end confdefs.h. */
88b48903
WN
7209
7210#if defined arm || defined __arm || defined __arm__
7211 mixed_endianness
7212#endif
7213
7214_ACEOF
7215if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7216 $EGREP "mixed_endianness" >/dev/null 2>&1; then :
7217 gl_cv_cc_double_expbit0="unknown"
7218else
7219
7220 :
7221if test "${ac_cv_c_bigendian+set}" = set; then :
7222 $as_echo_n "(cached) " >&6
7223else
7224 ac_cv_c_bigendian=unknown
7225 # See if we're dealing with a universal compiler.
7226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7227/* end confdefs.h. */
7228#ifndef __APPLE_CC__
7229 not a universal capable compiler
7230 #endif
7231 typedef int dummy;
7232
7233_ACEOF
7234if ac_fn_c_try_compile "$LINENO"; then :
7235
7236 # Check for potential -arch flags. It is not universal unless
7237 # there are at least two -arch flags with different values.
7238 ac_arch=
7239 ac_prev=
7240 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7241 if test -n "$ac_prev"; then
7242 case $ac_word in
7243 i?86 | x86_64 | ppc | ppc64)
7244 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7245 ac_arch=$ac_word
7246 else
7247 ac_cv_c_bigendian=universal
7248 break
7249 fi
7250 ;;
7251 esac
7252 ac_prev=
7253 elif test "x$ac_word" = "x-arch"; then
7254 ac_prev=arch
7255 fi
7256 done
7257fi
7258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7259 if test $ac_cv_c_bigendian = unknown; then
7260 # See if sys/param.h defines the BYTE_ORDER macro.
7261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7262/* end confdefs.h. */
7263#include <sys/types.h>
7264 #include <sys/param.h>
7265
8690e634
JK
7266int
7267main ()
7268{
88b48903
WN
7269#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7270 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7271 && LITTLE_ENDIAN)
7272 bogus endian macros
7273 #endif
7274
8690e634
JK
7275 ;
7276 return 0;
7277}
7278_ACEOF
88b48903
WN
7279if ac_fn_c_try_compile "$LINENO"; then :
7280 # It does; now see whether it defined to BIG_ENDIAN or not.
7281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7282/* end confdefs.h. */
7283#include <sys/types.h>
7284 #include <sys/param.h>
7285
7286int
7287main ()
7288{
7289#if BYTE_ORDER != BIG_ENDIAN
7290 not big endian
7291 #endif
7292
7293 ;
7294 return 0;
7295}
7296_ACEOF
7297if ac_fn_c_try_compile "$LINENO"; then :
7298 ac_cv_c_bigendian=yes
8690e634 7299else
88b48903 7300 ac_cv_c_bigendian=no
8690e634 7301fi
88b48903 7302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8690e634 7303fi
88b48903
WN
7304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7305 fi
7306 if test $ac_cv_c_bigendian = unknown; then
7307 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7309/* end confdefs.h. */
7310#include <limits.h>
8690e634 7311
88b48903
WN
7312int
7313main ()
7314{
7315#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7316 bogus endian macros
7317 #endif
8690e634 7318
88b48903
WN
7319 ;
7320 return 0;
7321}
7322_ACEOF
7323if ac_fn_c_try_compile "$LINENO"; then :
7324 # It does; now see whether it defined to _BIG_ENDIAN or not.
7325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7326/* end confdefs.h. */
7327#include <limits.h>
8690e634 7328
88b48903
WN
7329int
7330main ()
7331{
7332#ifndef _BIG_ENDIAN
7333 not big endian
7334 #endif
8690e634 7335
88b48903
WN
7336 ;
7337 return 0;
7338}
7339_ACEOF
7340if ac_fn_c_try_compile "$LINENO"; then :
7341 ac_cv_c_bigendian=yes
7342else
7343 ac_cv_c_bigendian=no
7344fi
7345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7346fi
7347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7348 fi
7349 if test $ac_cv_c_bigendian = unknown; then
7350 # Compile a test program.
7351 if test "$cross_compiling" = yes; then :
7352 # Try to guess by grepping values from an object file.
7353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7354/* end confdefs.h. */
7355short int ascii_mm[] =
7356 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7357 short int ascii_ii[] =
7358 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7359 int use_ascii (int i) {
7360 return ascii_mm[i] + ascii_ii[i];
7361 }
7362 short int ebcdic_ii[] =
7363 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7364 short int ebcdic_mm[] =
7365 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7366 int use_ebcdic (int i) {
7367 return ebcdic_mm[i] + ebcdic_ii[i];
7368 }
7369 extern int foo;
8690e634 7370
88b48903
WN
7371int
7372main ()
7373{
7374return use_ascii (foo) == use_ebcdic (foo);
7375 ;
7376 return 0;
7377}
7378_ACEOF
7379if ac_fn_c_try_compile "$LINENO"; then :
7380 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7381 ac_cv_c_bigendian=yes
7382 fi
7383 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7384 if test "$ac_cv_c_bigendian" = unknown; then
7385 ac_cv_c_bigendian=no
7386 else
7387 # finding both strings is unlikely to happen, but who knows?
7388 ac_cv_c_bigendian=unknown
7389 fi
7390 fi
7391fi
7392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7393else
7394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7395/* end confdefs.h. */
7396$ac_includes_default
7397int
7398main ()
7399{
8690e634 7400
88b48903
WN
7401 /* Are we little or big endian? From Harbison&Steele. */
7402 union
7403 {
7404 long int l;
7405 char c[sizeof (long int)];
7406 } u;
7407 u.l = 1;
7408 return u.c[sizeof (long int) - 1] == 1;
8690e634 7409
88b48903
WN
7410 ;
7411 return 0;
7412}
7413_ACEOF
7414if ac_fn_c_try_run "$LINENO"; then :
7415 ac_cv_c_bigendian=no
7416else
7417 ac_cv_c_bigendian=yes
7418fi
7419rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7420 conftest.$ac_objext conftest.beam conftest.$ac_ext
7421fi
8690e634 7422
88b48903
WN
7423 fi
7424fi
7425:
7426 case $ac_cv_c_bigendian in #(
7427 yes)
7428 gl_cv_cc_double_expbit0="word 0 bit 20";; #(
7429 no)
7430 gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
7431 universal)
8690e634 7432
88b48903 7433$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8690e634 7434
88b48903
WN
7435 ;; #(
7436 *)
7437 gl_cv_cc_double_expbit0="unknown" ;;
7438 esac
8690e634
JK
7439
7440
88b48903
WN
7441fi
7442rm -f conftest*
8690e634 7443
8690e634 7444
88b48903
WN
7445else
7446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7447/* end confdefs.h. */
8690e634 7448
88b48903
WN
7449#include <float.h>
7450#include <stddef.h>
7451#include <stdio.h>
7452#include <string.h>
7453#define NWORDS \
7454 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
7455typedef union { double value; unsigned int word[NWORDS]; } memory_double;
7456static unsigned int ored_words[NWORDS];
7457static unsigned int anded_words[NWORDS];
7458static void add_to_ored_words (double x)
7459{
7460 memory_double m;
7461 size_t i;
7462 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
7463 memset (&m, 0, sizeof (memory_double));
7464 m.value = x;
7465 for (i = 0; i < NWORDS; i++)
7466 {
7467 ored_words[i] |= m.word[i];
7468 anded_words[i] &= m.word[i];
7469 }
7470}
7471int main ()
7472{
7473 size_t j;
7474 FILE *fp = fopen ("conftest.out", "w");
7475 if (fp == NULL)
7476 return 1;
7477 for (j = 0; j < NWORDS; j++)
7478 anded_words[j] = ~ (unsigned int) 0;
7479 add_to_ored_words (0.25);
7480 add_to_ored_words (0.5);
7481 add_to_ored_words (1.0);
7482 add_to_ored_words (2.0);
7483 add_to_ored_words (4.0);
7484 /* Remove bits that are common (e.g. if representation of the first mantissa
7485 bit is explicit). */
7486 for (j = 0; j < NWORDS; j++)
7487 ored_words[j] &= ~anded_words[j];
7488 /* Now find the nonzero word. */
7489 for (j = 0; j < NWORDS; j++)
7490 if (ored_words[j] != 0)
7491 break;
7492 if (j < NWORDS)
7493 {
7494 size_t i;
7495 for (i = j + 1; i < NWORDS; i++)
7496 if (ored_words[i] != 0)
7497 {
7498 fprintf (fp, "unknown");
7499 return (fclose (fp) != 0);
7500 }
7501 for (i = 0; ; i++)
7502 if ((ored_words[j] >> i) & 1)
7503 {
7504 fprintf (fp, "word %d bit %d", (int) j, (int) i);
7505 return (fclose (fp) != 0);
7506 }
7507 }
7508 fprintf (fp, "unknown");
7509 return (fclose (fp) != 0);
7510}
8690e634 7511
88b48903
WN
7512_ACEOF
7513if ac_fn_c_try_run "$LINENO"; then :
7514 gl_cv_cc_double_expbit0=`cat conftest.out`
7515else
7516 gl_cv_cc_double_expbit0="unknown"
7517fi
7518rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7519 conftest.$ac_objext conftest.beam conftest.$ac_ext
7520fi
8690e634 7521
88b48903 7522 rm -f conftest.out
8690e634 7523
88b48903
WN
7524fi
7525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
7526$as_echo "$gl_cv_cc_double_expbit0" >&6; }
7527 case "$gl_cv_cc_double_expbit0" in
7528 word*bit*)
7529 word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
7530 bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
8690e634 7531
88b48903
WN
7532cat >>confdefs.h <<_ACEOF
7533#define DBL_EXPBIT0_WORD $word
7534_ACEOF
8690e634
JK
7535
7536
88b48903
WN
7537cat >>confdefs.h <<_ACEOF
7538#define DBL_EXPBIT0_BIT $bit
7539_ACEOF
8690e634 7540
88b48903
WN
7541 ;;
7542 esac
8690e634
JK
7543
7544
88b48903
WN
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7546$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7547if test "${ac_cv_c_bigendian+set}" = set; then :
8690e634
JK
7548 $as_echo_n "(cached) " >&6
7549else
88b48903
WN
7550 ac_cv_c_bigendian=unknown
7551 # See if we're dealing with a universal compiler.
7552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7553/* end confdefs.h. */
7554#ifndef __APPLE_CC__
7555 not a universal capable compiler
7556 #endif
7557 typedef int dummy;
7558
7559_ACEOF
7560if ac_fn_c_try_compile "$LINENO"; then :
7561
7562 # Check for potential -arch flags. It is not universal unless
7563 # there are at least two -arch flags with different values.
7564 ac_arch=
7565 ac_prev=
7566 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7567 if test -n "$ac_prev"; then
7568 case $ac_word in
7569 i?86 | x86_64 | ppc | ppc64)
7570 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7571 ac_arch=$ac_word
7572 else
7573 ac_cv_c_bigendian=universal
7574 break
7575 fi
7576 ;;
7577 esac
7578 ac_prev=
7579 elif test "x$ac_word" = "x-arch"; then
7580 ac_prev=arch
7581 fi
7582 done
7583fi
7584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7585 if test $ac_cv_c_bigendian = unknown; then
7586 # See if sys/param.h defines the BYTE_ORDER macro.
7587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690e634
JK
7588/* end confdefs.h. */
7589#include <sys/types.h>
88b48903
WN
7590 #include <sys/param.h>
7591
7592int
7593main ()
7594{
7595#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7596 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7597 && LITTLE_ENDIAN)
7598 bogus endian macros
7599 #endif
7600
7601 ;
7602 return 0;
7603}
7604_ACEOF
7605if ac_fn_c_try_compile "$LINENO"; then :
7606 # It does; now see whether it defined to BIG_ENDIAN or not.
7607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7608/* end confdefs.h. */
7609#include <sys/types.h>
7610 #include <sys/param.h>
7611
7612int
7613main ()
7614{
7615#if BYTE_ORDER != BIG_ENDIAN
7616 not big endian
7617 #endif
7618
7619 ;
7620 return 0;
7621}
7622_ACEOF
7623if ac_fn_c_try_compile "$LINENO"; then :
7624 ac_cv_c_bigendian=yes
7625else
7626 ac_cv_c_bigendian=no
7627fi
7628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7629fi
7630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7631 fi
7632 if test $ac_cv_c_bigendian = unknown; then
7633 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7635/* end confdefs.h. */
7636#include <limits.h>
7637
7638int
7639main ()
7640{
7641#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7642 bogus endian macros
7643 #endif
7644
7645 ;
7646 return 0;
7647}
7648_ACEOF
7649if ac_fn_c_try_compile "$LINENO"; then :
7650 # It does; now see whether it defined to _BIG_ENDIAN or not.
7651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7652/* end confdefs.h. */
7653#include <limits.h>
7654
7655int
7656main ()
7657{
7658#ifndef _BIG_ENDIAN
7659 not big endian
7660 #endif
7661
7662 ;
7663 return 0;
7664}
7665_ACEOF
7666if ac_fn_c_try_compile "$LINENO"; then :
7667 ac_cv_c_bigendian=yes
7668else
7669 ac_cv_c_bigendian=no
7670fi
7671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7672fi
7673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7674 fi
7675 if test $ac_cv_c_bigendian = unknown; then
7676 # Compile a test program.
7677 if test "$cross_compiling" = yes; then :
7678 # Try to guess by grepping values from an object file.
7679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7680/* end confdefs.h. */
7681short int ascii_mm[] =
7682 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7683 short int ascii_ii[] =
7684 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7685 int use_ascii (int i) {
7686 return ascii_mm[i] + ascii_ii[i];
7687 }
7688 short int ebcdic_ii[] =
7689 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7690 short int ebcdic_mm[] =
7691 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7692 int use_ebcdic (int i) {
7693 return ebcdic_mm[i] + ebcdic_ii[i];
7694 }
7695 extern int foo;
7696
7697int
7698main ()
7699{
7700return use_ascii (foo) == use_ebcdic (foo);
7701 ;
7702 return 0;
7703}
7704_ACEOF
7705if ac_fn_c_try_compile "$LINENO"; then :
7706 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7707 ac_cv_c_bigendian=yes
7708 fi
7709 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7710 if test "$ac_cv_c_bigendian" = unknown; then
7711 ac_cv_c_bigendian=no
7712 else
7713 # finding both strings is unlikely to happen, but who knows?
7714 ac_cv_c_bigendian=unknown
7715 fi
7716 fi
7717fi
7718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7719else
7720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7721/* end confdefs.h. */
7722$ac_includes_default
7723int
7724main ()
7725{
7726
7727 /* Are we little or big endian? From Harbison&Steele. */
7728 union
7729 {
7730 long int l;
7731 char c[sizeof (long int)];
7732 } u;
7733 u.l = 1;
7734 return u.c[sizeof (long int) - 1] == 1;
7735
7736 ;
7737 return 0;
7738}
7739_ACEOF
7740if ac_fn_c_try_run "$LINENO"; then :
7741 ac_cv_c_bigendian=no
7742else
7743 ac_cv_c_bigendian=yes
7744fi
7745rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7746 conftest.$ac_objext conftest.beam conftest.$ac_ext
7747fi
7748
7749 fi
7750fi
7751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7752$as_echo "$ac_cv_c_bigendian" >&6; }
7753 case $ac_cv_c_bigendian in #(
7754 yes)
7755 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
7756;; #(
7757 no)
7758 ;; #(
7759 universal)
7760
7761$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7762
7763 ;; #(
7764 *)
7765 as_fn_error "unknown endianness
7766 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7767 esac
7768
7769
7770
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
7772$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
7773if test "${am_cv_langinfo_codeset+set}" = set; then :
7774 $as_echo_n "(cached) " >&6
7775else
7776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7777/* end confdefs.h. */
7778#include <langinfo.h>
7779int
7780main ()
7781{
7782char* cs = nl_langinfo(CODESET); return !cs;
7783 ;
7784 return 0;
7785}
7786_ACEOF
7787if ac_fn_c_try_link "$LINENO"; then :
7788 am_cv_langinfo_codeset=yes
7789else
7790 am_cv_langinfo_codeset=no
7791fi
7792rm -f core conftest.err conftest.$ac_objext \
7793 conftest$ac_exeext conftest.$ac_ext
7794
7795fi
7796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
7797$as_echo "$am_cv_langinfo_codeset" >&6; }
7798 if test $am_cv_langinfo_codeset = yes; then
7799
7800$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
7801
7802 fi
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
88b48903
WN
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
7814$as_echo_n "checking for working fcntl.h... " >&6; }
7815if test "${gl_cv_header_working_fcntl_h+set}" = set; then :
7816 $as_echo_n "(cached) " >&6
7817else
7818 if test "$cross_compiling" = yes; then :
7819 gl_cv_header_working_fcntl_h=cross-compiling
7820else
7821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7822/* end confdefs.h. */
7823#include <sys/types.h>
7824 #include <sys/stat.h>
7825 #if HAVE_UNISTD_H
7826 # include <unistd.h>
7827 #else /* on Windows with MSVC */
7828 # include <io.h>
7829 # include <stdlib.h>
8690e634
JK
7830 # defined sleep(n) _sleep ((n) * 1000)
7831 #endif
7832 #include <fcntl.h>
7833 #ifndef O_NOATIME
7834 #define O_NOATIME 0
7835 #endif
7836 #ifndef O_NOFOLLOW
7837 #define O_NOFOLLOW 0
7838 #endif
7839 static int const constants[] =
7840 {
7841 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
7842 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
7843 };
7844
7845int
7846main ()
7847{
7848
7849 int result = !constants;
7850 #if HAVE_SYMLINK
7851 {
7852 static char const sym[] = "conftest.sym";
a512b375
JB
7853 if (symlink ("/dev/null", sym) != 0)
7854 result |= 2;
7855 else
7856 {
7857 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
7858 if (fd >= 0)
7859 {
7860 close (fd);
7861 result |= 4;
7862 }
7863 }
7864 if (unlink (sym) != 0 || symlink (".", sym) != 0)
8690e634
JK
7865 result |= 2;
7866 else
7867 {
7868 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
7869 if (fd >= 0)
7870 {
7871 close (fd);
7872 result |= 4;
7873 }
7874 }
7875 unlink (sym);
7876 }
7877 #endif
7878 {
7879 static char const file[] = "confdefs.h";
7880 int fd = open (file, O_RDONLY | O_NOATIME);
7881 if (fd < 0)
7882 result |= 8;
7883 else
7884 {
7885 struct stat st0;
7886 if (fstat (fd, &st0) != 0)
7887 result |= 16;
7888 else
7889 {
7890 char c;
7891 sleep (1);
7892 if (read (fd, &c, 1) != 1)
7893 result |= 24;
7894 else
7895 {
7896 if (close (fd) != 0)
7897 result |= 32;
7898 else
7899 {
7900 struct stat st1;
7901 if (stat (file, &st1) != 0)
7902 result |= 40;
7903 else
7904 if (st0.st_atime != st1.st_atime)
7905 result |= 64;
7906 }
7907 }
7908 }
7909 }
7910 }
7911 return result;
7912 ;
7913 return 0;
7914}
7915_ACEOF
7916if ac_fn_c_try_run "$LINENO"; then :
7917 gl_cv_header_working_fcntl_h=yes
7918else
7919 case $? in #(
7920 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
7921 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
7922 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
7923 *) gl_cv_header_working_fcntl_h='no';;
7924 esac
7925fi
7926rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7927 conftest.$ac_objext conftest.beam conftest.$ac_ext
7928fi
7929
7930fi
7931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
7932$as_echo "$gl_cv_header_working_fcntl_h" >&6; }
7933
7934 case $gl_cv_header_working_fcntl_h in #(
7935 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
7936 *) ac_val=1;;
7937 esac
7938
7939cat >>confdefs.h <<_ACEOF
7940#define HAVE_WORKING_O_NOATIME $ac_val
7941_ACEOF
7942
7943
7944 case $gl_cv_header_working_fcntl_h in #(
7945 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
7946 *) ac_val=1;;
7947 esac
7948
7949cat >>confdefs.h <<_ACEOF
7950#define HAVE_WORKING_O_NOFOLLOW $ac_val
7951_ACEOF
7952
7953
3574124b 7954ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
8690e634
JK
7955if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
7956 ac_have_decl=1
7957else
7958 ac_have_decl=0
7959fi
7960
7961cat >>confdefs.h <<_ACEOF
7962#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
7963_ACEOF
7964
7965
8690e634
JK
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
7967$as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
7968if test "${ac_cv_gnu_library_2_1+set}" = set; then :
7969 $as_echo_n "(cached) " >&6
7970else
7971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7972/* end confdefs.h. */
7973
7974#include <features.h>
7975#ifdef __GNU_LIBRARY__
7976 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7977 Lucky GNU user
7978 #endif
7979#endif
7980#ifdef __UCLIBC__
7981 Lucky user
7982#endif
7983
7984_ACEOF
7985if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7986 $EGREP "Lucky" >/dev/null 2>&1; then :
7987 ac_cv_gnu_library_2_1=yes
7988else
7989 ac_cv_gnu_library_2_1=no
7990fi
7991rm -f conftest*
7992
7993
7994
7995fi
7996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
7997$as_echo "$ac_cv_gnu_library_2_1" >&6; }
7998
7999 GLIBC21="$ac_cv_gnu_library_2_1"
8000
8001
8002
88b48903
WN
8003
8004
8690e634
JK
8005 GNULIB_BTOWC=0;
8006 GNULIB_WCTOB=0;
8007 GNULIB_MBSINIT=0;
8008 GNULIB_MBRTOWC=0;
8009 GNULIB_MBRLEN=0;
8010 GNULIB_MBSRTOWCS=0;
8011 GNULIB_MBSNRTOWCS=0;
8012 GNULIB_WCRTOMB=0;
8013 GNULIB_WCSRTOMBS=0;
8014 GNULIB_WCSNRTOMBS=0;
8015 GNULIB_WCWIDTH=0;
8016 GNULIB_WMEMCHR=0;
8017 GNULIB_WMEMCMP=0;
8018 GNULIB_WMEMCPY=0;
8019 GNULIB_WMEMMOVE=0;
8020 GNULIB_WMEMSET=0;
8021 GNULIB_WCSLEN=0;
8022 GNULIB_WCSNLEN=0;
8023 GNULIB_WCSCPY=0;
8024 GNULIB_WCPCPY=0;
8025 GNULIB_WCSNCPY=0;
8026 GNULIB_WCPNCPY=0;
8027 GNULIB_WCSCAT=0;
8028 GNULIB_WCSNCAT=0;
8029 GNULIB_WCSCMP=0;
8030 GNULIB_WCSNCMP=0;
8031 GNULIB_WCSCASECMP=0;
8032 GNULIB_WCSNCASECMP=0;
8033 GNULIB_WCSCOLL=0;
8034 GNULIB_WCSXFRM=0;
8035 GNULIB_WCSDUP=0;
8036 GNULIB_WCSCHR=0;
8037 GNULIB_WCSRCHR=0;
8038 GNULIB_WCSCSPN=0;
8039 GNULIB_WCSSPN=0;
8040 GNULIB_WCSPBRK=0;
8041 GNULIB_WCSSTR=0;
8042 GNULIB_WCSTOK=0;
8043 GNULIB_WCSWIDTH=0;
8044 HAVE_BTOWC=1;
8045 HAVE_MBSINIT=1;
8046 HAVE_MBRTOWC=1;
8047 HAVE_MBRLEN=1;
8048 HAVE_MBSRTOWCS=1;
8049 HAVE_MBSNRTOWCS=1;
8050 HAVE_WCRTOMB=1;
8051 HAVE_WCSRTOMBS=1;
8052 HAVE_WCSNRTOMBS=1;
8053 HAVE_WMEMCHR=1;
8054 HAVE_WMEMCMP=1;
8055 HAVE_WMEMCPY=1;
8056 HAVE_WMEMMOVE=1;
8057 HAVE_WMEMSET=1;
8058 HAVE_WCSLEN=1;
8059 HAVE_WCSNLEN=1;
8060 HAVE_WCSCPY=1;
8061 HAVE_WCPCPY=1;
8062 HAVE_WCSNCPY=1;
8063 HAVE_WCPNCPY=1;
8064 HAVE_WCSCAT=1;
8065 HAVE_WCSNCAT=1;
8066 HAVE_WCSCMP=1;
8067 HAVE_WCSNCMP=1;
8068 HAVE_WCSCASECMP=1;
8069 HAVE_WCSNCASECMP=1;
8070 HAVE_WCSCOLL=1;
8071 HAVE_WCSXFRM=1;
8072 HAVE_WCSDUP=1;
8073 HAVE_WCSCHR=1;
8074 HAVE_WCSRCHR=1;
8075 HAVE_WCSCSPN=1;
8076 HAVE_WCSSPN=1;
8077 HAVE_WCSPBRK=1;
8078 HAVE_WCSSTR=1;
8079 HAVE_WCSTOK=1;
8080 HAVE_WCSWIDTH=1;
8081 HAVE_DECL_WCTOB=1;
8082 HAVE_DECL_WCWIDTH=1;
8083 REPLACE_MBSTATE_T=0;
8084 REPLACE_BTOWC=0;
8085 REPLACE_WCTOB=0;
8086 REPLACE_MBSINIT=0;
8087 REPLACE_MBRTOWC=0;
8088 REPLACE_MBRLEN=0;
8089 REPLACE_MBSRTOWCS=0;
8090 REPLACE_MBSNRTOWCS=0;
8091 REPLACE_WCRTOMB=0;
8092 REPLACE_WCSRTOMBS=0;
8093 REPLACE_WCSNRTOMBS=0;
8094 REPLACE_WCWIDTH=0;
8095 REPLACE_WCSWIDTH=0;
8096
8097
8098
8099
8100
8101
8102
8103
8690e634
JK
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
8105$as_echo_n "checking for a traditional japanese locale... " >&6; }
8106if test "${gt_cv_locale_ja+set}" = set; then :
8107 $as_echo_n "(cached) " >&6
8108else
8109
8110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8111/* end confdefs.h. */
8112
8113#include <locale.h>
8114#include <time.h>
8115#if HAVE_LANGINFO_CODESET
8116# include <langinfo.h>
8117#endif
8118#include <stdlib.h>
8119#include <string.h>
8120struct tm t;
8121char buf[16];
8122int main ()
8123{
8124 const char *p;
8125 /* Check whether the given locale name is recognized by the system. */
8126#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
8127 /* On native Windows, setlocale(category, "") looks at the system settings,
8128 not at the environment variables. Also, when an encoding suffix such
8129 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
8130 category of the locale to "C". */
8131 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
8132 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
8133 return 1;
8134#else
8135 if (setlocale (LC_ALL, "") == NULL) return 1;
8136#endif
8137 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
8138 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
8139 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
8140 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
8141 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
8142 some unit tests fail.
8143 On MirBSD 10, when an unsupported locale is specified, setlocale()
8144 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
8145#if HAVE_LANGINFO_CODESET
8146 {
8147 const char *cs = nl_langinfo (CODESET);
8148 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
8149 || strcmp (cs, "UTF-8") == 0)
8150 return 1;
8151 }
8152#endif
8153#ifdef __CYGWIN__
8154 /* On Cygwin, avoid locale names without encoding suffix, because the
8155 locale_charset() function relies on the encoding suffix. Note that
8156 LC_ALL is set on the command line. */
8157 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
8158#endif
8159 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
8160 on Cygwin 1.5.x. */
8161 if (MB_CUR_MAX == 1)
8162 return 1;
8163 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
8164 This excludes the UTF-8 encoding (except on MirBSD). */
8165 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
8166 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
8167 for (p = buf; *p != '\0'; p++)
8168 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
8169 return 1;
8170 return 0;
8171}
8172
8173_ACEOF
8174 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8175 (eval $ac_link) 2>&5
8176 ac_status=$?
8177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8178 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8179 case "$host_os" in
8180 # Handle native Windows specially, because there setlocale() interprets
8181 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
8182 # "fr" or "fra" as "French" or "French_France.1252",
8183 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
8184 # "ja" as "Japanese" or "Japanese_Japan.932",
8185 # and similar.
8186 mingw*)
8187 # Note that on native Windows, the Japanese locale is
8188 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
8189 # cannot use it here.
8190 gt_cv_locale_ja=none
8191 ;;
8192 *)
8193 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
8194 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
8195 # configure script would override the LC_ALL setting. Likewise for
8196 # LC_CTYPE, which is also set at the beginning of the configure script.
8197 # Test for the AIX locale name.
8198 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8199 gt_cv_locale_ja=ja_JP
8200 else
8201 # Test for the locale name with explicit encoding suffix.
8202 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8203 gt_cv_locale_ja=ja_JP.EUC-JP
8204 else
8205 # Test for the HP-UX, OSF/1, NetBSD locale name.
8206 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8207 gt_cv_locale_ja=ja_JP.eucJP
8208 else
8209 # Test for the IRIX, FreeBSD locale name.
8210 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8211 gt_cv_locale_ja=ja_JP.EUC
8212 else
8213 # Test for the Solaris 7 locale name.
8214 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8215 gt_cv_locale_ja=ja
8216 else
8217 # Special test for NetBSD 1.6.
8218 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
8219 gt_cv_locale_ja=ja_JP.eucJP
8220 else
8221 # None found.
8222 gt_cv_locale_ja=none
8223 fi
8224 fi
8225 fi
8226 fi
8227 fi
8228 fi
8229 ;;
8230 esac
8231 fi
8232 rm -fr conftest*
8233
8234fi
8235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
8236$as_echo "$gt_cv_locale_ja" >&6; }
8237 LOCALE_JA=$gt_cv_locale_ja
8238
8239
8240
8241
8242
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
8244$as_echo_n "checking for a transitional chinese locale... " >&6; }
8245if test "${gt_cv_locale_zh_CN+set}" = set; then :
8246 $as_echo_n "(cached) " >&6
8247else
8248
8249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8250/* end confdefs.h. */
8251
8252#include <locale.h>
8253#include <stdlib.h>
8254#include <time.h>
8255#if HAVE_LANGINFO_CODESET
8256# include <langinfo.h>
8257#endif
8258#include <stdlib.h>
8259#include <string.h>
8260struct tm t;
8261char buf[16];
8262int main ()
8263{
8264 const char *p;
8265 /* Check whether the given locale name is recognized by the system. */
8266#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
8267 /* On native Windows, setlocale(category, "") looks at the system settings,
8268 not at the environment variables. Also, when an encoding suffix such
8269 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
8270 category of the locale to "C". */
8271 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
8272 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
8273 return 1;
8274#else
8275 if (setlocale (LC_ALL, "") == NULL) return 1;
8276#endif
8277 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
8278 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
8279 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
8280 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
8281 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
8282 some unit tests fail.
8283 On MirBSD 10, when an unsupported locale is specified, setlocale()
8284 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
8285#if HAVE_LANGINFO_CODESET
8286 {
8287 const char *cs = nl_langinfo (CODESET);
8288 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
8289 || strcmp (cs, "UTF-8") == 0)
8290 return 1;
8291 }
8292#endif
8293#ifdef __CYGWIN__
8294 /* On Cygwin, avoid locale names without encoding suffix, because the
8295 locale_charset() function relies on the encoding suffix. Note that
8296 LC_ALL is set on the command line. */
8297 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
8298#endif
8299 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
8300 This excludes the UTF-8 encoding (except on MirBSD). */
8301 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
8302 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
8303 for (p = buf; *p != '\0'; p++)
8304 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
8305 return 1;
8306 /* Check whether a typical GB18030 multibyte sequence is recognized as a
8307 single wide character. This excludes the GB2312 and GBK encodings. */
8308 if (mblen ("\203\062\332\066", 5) != 4)
8309 return 1;
8310 return 0;
8311}
8312
8313_ACEOF
8314 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8315 (eval $ac_link) 2>&5
8316 ac_status=$?
8317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8318 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8319 case "$host_os" in
8320 # Handle native Windows specially, because there setlocale() interprets
8321 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
8322 # "fr" or "fra" as "French" or "French_France.1252",
8323 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
8324 # "ja" as "Japanese" or "Japanese_Japan.932",
8325 # and similar.
8326 mingw*)
8327 # Test for the hypothetical native Windows locale name.
8328 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8329 gt_cv_locale_zh_CN=Chinese_China.54936
8330 else
8331 # None found.
8332 gt_cv_locale_zh_CN=none
8333 fi
8334 ;;
8335 solaris2.8)
8336 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
8337 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
8338 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
8339 gt_cv_locale_zh_CN=none
8340 ;;
8341 *)
8342 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
8343 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
8344 # configure script would override the LC_ALL setting. Likewise for
8345 # LC_CTYPE, which is also set at the beginning of the configure script.
8346 # Test for the locale name without encoding suffix.
8347 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8348 gt_cv_locale_zh_CN=zh_CN
8349 else
8350 # Test for the locale name with explicit encoding suffix.
8351 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8352 gt_cv_locale_zh_CN=zh_CN.GB18030
8353 else
8354 # None found.
8355 gt_cv_locale_zh_CN=none
8356 fi
8357 fi
8358 ;;
8359 esac
8360 else
8361 # If there was a link error, due to mblen(), the system is so old that
8362 # it certainly doesn't have a chinese locale.
8363 gt_cv_locale_zh_CN=none
8364 fi
8365 rm -fr conftest*
8366
8367fi
8368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
8369$as_echo "$gt_cv_locale_zh_CN" >&6; }
8370 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
8371
8372
8373
8374
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
8376$as_echo_n "checking for a french Unicode locale... " >&6; }
8377if test "${gt_cv_locale_fr_utf8+set}" = set; then :
8378 $as_echo_n "(cached) " >&6
8379else
8380
8381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8382/* end confdefs.h. */
8383
8384#include <locale.h>
8385#include <time.h>
8386#if HAVE_LANGINFO_CODESET
8387# include <langinfo.h>
8388#endif
8389#include <stdlib.h>
8390#include <string.h>
8391struct tm t;
8392char buf[16];
8393int main () {
8394 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
8395 imitates locale dependent behaviour by looking at the environment
8396 variables, and all locales use the UTF-8 encoding. */
8397#if !(defined __BEOS__ || defined __HAIKU__)
8398 /* Check whether the given locale name is recognized by the system. */
8399# if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
8400 /* On native Windows, setlocale(category, "") looks at the system settings,
8401 not at the environment variables. Also, when an encoding suffix such
8402 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
8403 category of the locale to "C". */
8404 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
8405 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
8406 return 1;
8407# else
8408 if (setlocale (LC_ALL, "") == NULL) return 1;
8409# endif
8410 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
8411 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
8412 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
8413 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
8414 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
8415 some unit tests fail. */
8416# if HAVE_LANGINFO_CODESET
8417 {
8418 const char *cs = nl_langinfo (CODESET);
8419 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
8420 return 1;
8421 }
8422# endif
8423# ifdef __CYGWIN__
8424 /* On Cygwin, avoid locale names without encoding suffix, because the
8425 locale_charset() function relies on the encoding suffix. Note that
8426 LC_ALL is set on the command line. */
8427 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
8428# endif
8429 /* Check whether in the abbreviation of the second month, the second
8430 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
8431 two bytes long, with UTF-8 encoding. */
8432 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
8433 if (strftime (buf, sizeof (buf), "%b", &t) < 4
8434 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
8435 return 1;
8436#endif
8437#if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
8438 /* Check whether the decimal separator is a comma.
8439 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
8440 are nl_langinfo(RADIXCHAR) are both ".". */
8441 if (localeconv () ->decimal_point[0] != ',') return 1;
8442#endif
8443 return 0;
8444}
8445
8446_ACEOF
8447 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8448 (eval $ac_link) 2>&5
8449 ac_status=$?
8450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8451 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8452 case "$host_os" in
8453 # Handle native Windows specially, because there setlocale() interprets
8454 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
8455 # "fr" or "fra" as "French" or "French_France.1252",
8456 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
8457 # "ja" as "Japanese" or "Japanese_Japan.932",
8458 # and similar.
8459 mingw*)
8460 # Test for the hypothetical native Windows locale name.
8461 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8462 gt_cv_locale_fr_utf8=French_France.65001
8463 else
8464 # None found.
8465 gt_cv_locale_fr_utf8=none
8466 fi
8467 ;;
8468 *)
8469 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
8470 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
8471 # configure script would override the LC_ALL setting. Likewise for
8472 # LC_CTYPE, which is also set at the beginning of the configure script.
8473 # Test for the usual locale name.
8474 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8475 gt_cv_locale_fr_utf8=fr_FR
8476 else
8477 # Test for the locale name with explicit encoding suffix.
8478 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8479 gt_cv_locale_fr_utf8=fr_FR.UTF-8
8480 else
8481 # Test for the Solaris 7 locale name.
8482 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8483 gt_cv_locale_fr_utf8=fr.UTF-8
8484 else
8485 # None found.
8486 gt_cv_locale_fr_utf8=none
8487 fi
8488 fi
8489 fi
8490 ;;
8491 esac
8492 fi
8493 rm -fr conftest*
8494
8495fi
8496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
8497$as_echo "$gt_cv_locale_fr_utf8" >&6; }
8498 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
8499
8500
8501
8502
8503
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
8505$as_echo_n "checking for a traditional french locale... " >&6; }
8506if test "${gt_cv_locale_fr+set}" = set; then :
8507 $as_echo_n "(cached) " >&6
8508else
8509
8510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8511/* end confdefs.h. */
8512
8513#include <locale.h>
8514#include <time.h>
8515#if HAVE_LANGINFO_CODESET
8516# include <langinfo.h>
8517#endif
8518#include <stdlib.h>
8519#include <string.h>
8520struct tm t;
8521char buf[16];
8522int main () {
8523 /* Check whether the given locale name is recognized by the system. */
8524#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
8525 /* On native Windows, setlocale(category, "") looks at the system settings,
8526 not at the environment variables. Also, when an encoding suffix such
8527 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
8528 category of the locale to "C". */
8529 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
8530 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
8531 return 1;
8532#else
8533 if (setlocale (LC_ALL, "") == NULL) return 1;
8534#endif
8535 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
8536 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
8537 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
8538 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
8539 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
8540 some unit tests fail.
8541 On MirBSD 10, when an unsupported locale is specified, setlocale()
8542 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
8543#if HAVE_LANGINFO_CODESET
8544 {
8545 const char *cs = nl_langinfo (CODESET);
8546 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
8547 || strcmp (cs, "UTF-8") == 0)
8548 return 1;
8549 }
8550#endif
8551#ifdef __CYGWIN__
8552 /* On Cygwin, avoid locale names without encoding suffix, because the
8553 locale_charset() function relies on the encoding suffix. Note that
8554 LC_ALL is set on the command line. */
8555 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
8556#endif
8557 /* Check whether in the abbreviation of the second month, the second
8558 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
8559 one byte long. This excludes the UTF-8 encoding. */
8560 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
8561 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
8562#if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
8563 /* Check whether the decimal separator is a comma.
8564 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
8565 are nl_langinfo(RADIXCHAR) are both ".". */
8566 if (localeconv () ->decimal_point[0] != ',') return 1;
8567#endif
8568 return 0;
8569}
8570
8571_ACEOF
8572 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8573 (eval $ac_link) 2>&5
8574 ac_status=$?
8575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8576 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8577 case "$host_os" in
8578 # Handle native Windows specially, because there setlocale() interprets
8579 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
8580 # "fr" or "fra" as "French" or "French_France.1252",
8581 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
8582 # "ja" as "Japanese" or "Japanese_Japan.932",
8583 # and similar.
8584 mingw*)
8585 # Test for the native Windows locale name.
8586 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8587 gt_cv_locale_fr=French_France.1252
8588 else
8589 # None found.
8590 gt_cv_locale_fr=none
8591 fi
8592 ;;
8593 *)
8594 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
8595 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
8596 # configure script would override the LC_ALL setting. Likewise for
8597 # LC_CTYPE, which is also set at the beginning of the configure script.
8598 # Test for the usual locale name.
8599 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8600 gt_cv_locale_fr=fr_FR
8601 else
8602 # Test for the locale name with explicit encoding suffix.
8603 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8604 gt_cv_locale_fr=fr_FR.ISO-8859-1
8605 else
8606 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
8607 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8608 gt_cv_locale_fr=fr_FR.ISO8859-1
8609 else
8610 # Test for the HP-UX locale name.
8611 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8612 gt_cv_locale_fr=fr_FR.iso88591
8613 else
8614 # Test for the Solaris 7 locale name.
8615 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8616 gt_cv_locale_fr=fr
8617 else
8618 # None found.
8619 gt_cv_locale_fr=none
8620 fi
8621 fi
8622 fi
8623 fi
8624 fi
8625 ;;
8626 esac
8627 fi
8628 rm -fr conftest*
8629
8630fi
8631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
8632$as_echo "$gt_cv_locale_fr" >&6; }
8633 LOCALE_FR=$gt_cv_locale_fr
8634
8635
8636
8637
8638
8639
8640
8690e634
JK
8641 GNULIB_FFSL=0;
8642 GNULIB_FFSLL=0;
8643 GNULIB_MEMCHR=0;
8644 GNULIB_MEMMEM=0;
8645 GNULIB_MEMPCPY=0;
8646 GNULIB_MEMRCHR=0;
8647 GNULIB_RAWMEMCHR=0;
8648 GNULIB_STPCPY=0;
8649 GNULIB_STPNCPY=0;
8650 GNULIB_STRCHRNUL=0;
8651 GNULIB_STRDUP=0;
8652 GNULIB_STRNCAT=0;
8653 GNULIB_STRNDUP=0;
8654 GNULIB_STRNLEN=0;
8655 GNULIB_STRPBRK=0;
8656 GNULIB_STRSEP=0;
8657 GNULIB_STRSTR=0;
8658 GNULIB_STRCASESTR=0;
8659 GNULIB_STRTOK_R=0;
8660 GNULIB_MBSLEN=0;
8661 GNULIB_MBSNLEN=0;
8662 GNULIB_MBSCHR=0;
8663 GNULIB_MBSRCHR=0;
8664 GNULIB_MBSSTR=0;
8665 GNULIB_MBSCASECMP=0;
8666 GNULIB_MBSNCASECMP=0;
8667 GNULIB_MBSPCASECMP=0;
8668 GNULIB_MBSCASESTR=0;
8669 GNULIB_MBSCSPN=0;
8670 GNULIB_MBSPBRK=0;
8671 GNULIB_MBSSPN=0;
8672 GNULIB_MBSSEP=0;
8673 GNULIB_MBSTOK_R=0;
8674 GNULIB_STRERROR=0;
8675 GNULIB_STRERROR_R=0;
8676 GNULIB_STRSIGNAL=0;
8677 GNULIB_STRVERSCMP=0;
8678 HAVE_MBSLEN=0;
8679 HAVE_FFSL=1;
8680 HAVE_FFSLL=1;
8681 HAVE_MEMCHR=1;
8682 HAVE_DECL_MEMMEM=1;
8683 HAVE_MEMPCPY=1;
8684 HAVE_DECL_MEMRCHR=1;
8685 HAVE_RAWMEMCHR=1;
8686 HAVE_STPCPY=1;
8687 HAVE_STPNCPY=1;
8688 HAVE_STRCHRNUL=1;
8689 HAVE_DECL_STRDUP=1;
8690 HAVE_DECL_STRNDUP=1;
8691 HAVE_DECL_STRNLEN=1;
8692 HAVE_STRPBRK=1;
8693 HAVE_STRSEP=1;
8694 HAVE_STRCASESTR=1;
8695 HAVE_DECL_STRTOK_R=1;
8696 HAVE_DECL_STRERROR_R=1;
8697 HAVE_DECL_STRSIGNAL=1;
8698 HAVE_STRVERSCMP=1;
8699 REPLACE_MEMCHR=0;
8700 REPLACE_MEMMEM=0;
8701 REPLACE_STPNCPY=0;
8702 REPLACE_STRDUP=0;
8703 REPLACE_STRSTR=0;
8704 REPLACE_STRCASESTR=0;
8705 REPLACE_STRCHRNUL=0;
8706 REPLACE_STRERROR=0;
8707 REPLACE_STRERROR_R=0;
8708 REPLACE_STRNCAT=0;
8709 REPLACE_STRNDUP=0;
8710 REPLACE_STRNLEN=0;
8711 REPLACE_STRSIGNAL=0;
8712 REPLACE_STRTOK_R=0;
8713 UNDEFINE_STRTOK_R=0;
8714
8715
8716
8717
8718
8719 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
8720 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
8721 # irrelevant for anonymous mappings.
8722 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
8723if test "x$ac_cv_func_mmap" = x""yes; then :
8724 gl_have_mmap=yes
8725else
8726 gl_have_mmap=no
8727fi
8728
8729
8730 # Try to allow MAP_ANONYMOUS.
8731 gl_have_mmap_anonymous=no
8732 if test $gl_have_mmap = yes; then
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
8734$as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
8735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8736/* end confdefs.h. */
8737
8738#include <sys/mman.h>
8739#ifdef MAP_ANONYMOUS
8740 I cannot identify this map
8741#endif
8742
8743_ACEOF
8744if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8745 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
8746 gl_have_mmap_anonymous=yes
8747fi
8748rm -f conftest*
8749
8750 if test $gl_have_mmap_anonymous != yes; then
8751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8752/* end confdefs.h. */
8753
8754#include <sys/mman.h>
8755#ifdef MAP_ANON
8756 I cannot identify this map
8757#endif
8758
8759_ACEOF
8760if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8761 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
8762
8763$as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
8764
8765 gl_have_mmap_anonymous=yes
8766fi
8767rm -f conftest*
8768
8769 fi
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
8771$as_echo "$gl_have_mmap_anonymous" >&6; }
8772 if test $gl_have_mmap_anonymous = yes; then
8773
8774$as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
8775
8776 fi
8777 fi
8778
8779
8690e634
JK
8780
8781
8782
8783
8784 if test $HAVE_MEMCHR = 1; then
8785 # Detect platform-specific bugs in some versions of glibc:
8786 # memchr should not dereference anything with length 0
8787 # http://bugzilla.redhat.com/499689
8788 # memchr should not dereference overestimated length after a match
8789 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
8790 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
8791 # Assume that memchr works on platforms that lack mprotect.
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
8793$as_echo_n "checking whether memchr works... " >&6; }
8794if test "${gl_cv_func_memchr_works+set}" = set; then :
8795 $as_echo_n "(cached) " >&6
8796else
8797 if test "$cross_compiling" = yes; then :
8798 gl_cv_func_memchr_works="guessing no"
8799else
8800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8801/* end confdefs.h. */
8802
8803#include <string.h>
8804#if HAVE_SYS_MMAN_H
8805# include <fcntl.h>
8806# include <unistd.h>
8807# include <sys/types.h>
8808# include <sys/mman.h>
8809# ifndef MAP_FILE
8810# define MAP_FILE 0
8811# endif
8812#endif
8813
8814int
8815main ()
8816{
8817
8818 int result = 0;
8819 char *fence = NULL;
8820#if HAVE_SYS_MMAN_H && HAVE_MPROTECT
8821# if HAVE_MAP_ANONYMOUS
8822 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
8823 const int fd = -1;
8824# else /* !HAVE_MAP_ANONYMOUS */
8825 const int flags = MAP_FILE | MAP_PRIVATE;
8826 int fd = open ("/dev/zero", O_RDONLY, 0666);
8827 if (fd >= 0)
8828# endif
8829 {
8830 int pagesize = getpagesize ();
8831 char *two_pages =
8832 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
8833 flags, fd, 0);
8834 if (two_pages != (char *)(-1)
8835 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
8836 fence = two_pages + pagesize;
8837 }
8838#endif
8839 if (fence)
8840 {
8841 if (memchr (fence, 0, 0))
8842 result |= 1;
8843 strcpy (fence - 9, "12345678");
8844 if (memchr (fence - 9, 0, 79) != fence - 1)
8845 result |= 2;
8846 if (memchr (fence - 1, 0, 3) != fence - 1)
8847 result |= 4;
8848 }
8849 return result;
8850
8851 ;
8852 return 0;
8853}
8854_ACEOF
8855if ac_fn_c_try_run "$LINENO"; then :
8856 gl_cv_func_memchr_works=yes
8857else
8858 gl_cv_func_memchr_works=no
8859fi
8860rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8861 conftest.$ac_objext conftest.beam conftest.$ac_ext
8862fi
8863
8864fi
8865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
8866$as_echo "$gl_cv_func_memchr_works" >&6; }
8867 if test "$gl_cv_func_memchr_works" != yes; then
8868 REPLACE_MEMCHR=1
8869 fi
8870 fi
8871
3574124b 8872ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
8690e634
JK
8873if test "x$ac_cv_have_decl_memmem" = x""yes; then :
8874 ac_have_decl=1
8875else
8876 ac_have_decl=0
8877fi
8878
8879cat >>confdefs.h <<_ACEOF
8880#define HAVE_DECL_MEMMEM $ac_have_decl
8881_ACEOF
8882
8883
8884
8885
8886
8690e634
JK
8887 for ac_func in memmem
8888do :
8889 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
8890if test "x$ac_cv_func_memmem" = x""yes; then :
8891 cat >>confdefs.h <<_ACEOF
8892#define HAVE_MEMMEM 1
8893_ACEOF
8894
8895fi
8896done
8897
8898 if test $ac_cv_func_memmem = yes; then
8899 HAVE_MEMMEM=1
8900 else
8901 HAVE_MEMMEM=0
8902 fi
8903
8690e634
JK
8904 if test $ac_cv_have_decl_memmem = no; then
8905 HAVE_DECL_MEMMEM=0
8906 else
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
8908$as_echo_n "checking whether memmem works... " >&6; }
8909if test "${gl_cv_func_memmem_works_always+set}" = set; then :
8910 $as_echo_n "(cached) " >&6
8911else
8912 if test "$cross_compiling" = yes; then :
8913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8914/* end confdefs.h. */
8915
8916#ifdef __GNU_LIBRARY__
8917 #include <features.h>
8918 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
8919 || __GLIBC_MINOR__ > 12)) \
8920 || (__GLIBC__ > 2)) \
8921 || defined __UCLIBC__
8922 Lucky user
8923 #endif
8924#elif defined __CYGWIN__
8925 #include <cygwin/version.h>
8926 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
8927 Lucky user
8928 #endif
8929#else
8930 Lucky user
8931#endif
8932
8933_ACEOF
8934if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8935 $EGREP "Lucky user" >/dev/null 2>&1; then :
8936 gl_cv_func_memmem_works_always="guessing yes"
8937else
8938 gl_cv_func_memmem_works_always="guessing no"
8939fi
8940rm -f conftest*
8941
8942
8943else
8944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8945/* end confdefs.h. */
8946
8947#include <string.h> /* for memmem */
8948#define P "_EF_BF_BD"
8949#define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
8950#define NEEDLE P P P P P
8951
8952int
8953main ()
8954{
8955
8956 int result = 0;
8957 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
8958 result |= 1;
8959 /* Check for empty needle behavior. */
8960 {
8961 const char *haystack = "AAA";
8962 if (memmem (haystack, 3, NULL, 0) != haystack)
8963 result |= 2;
8964 }
8965 return result;
8966
8967 ;
8968 return 0;
8969}
8970_ACEOF
8971if ac_fn_c_try_run "$LINENO"; then :
8972 gl_cv_func_memmem_works_always=yes
8973else
8974 gl_cv_func_memmem_works_always=no
8975fi
8976rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8977 conftest.$ac_objext conftest.beam conftest.$ac_ext
8978fi
8979
8980
8981fi
8982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
8983$as_echo "$gl_cv_func_memmem_works_always" >&6; }
8984 case "$gl_cv_func_memmem_works_always" in
8985 *yes) ;;
8986 *)
8987 REPLACE_MEMMEM=1
8988 ;;
8989 esac
8990 fi
8991 :
8992
8993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
8994$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
8995if test "${ac_cv_header_stdbool_h+set}" = set; then :
8996 $as_echo_n "(cached) " >&6
8997else
8998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8999/* end confdefs.h. */
9000
9001 #include <stdbool.h>
9002 #ifndef bool
9003 "error: bool is not defined"
9004 #endif
9005 #ifndef false
9006 "error: false is not defined"
9007 #endif
9008 #if false
9009 "error: false is not 0"
9010 #endif
9011 #ifndef true
9012 "error: true is not defined"
9013 #endif
9014 #if true != 1
9015 "error: true is not 1"
9016 #endif
9017 #ifndef __bool_true_false_are_defined
9018 "error: __bool_true_false_are_defined is not defined"
9019 #endif
9020
9021 struct s { _Bool s: 1; _Bool t; } s;
9022
9023 char a[true == 1 ? 1 : -1];
9024 char b[false == 0 ? 1 : -1];
9025 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
9026 char d[(bool) 0.5 == true ? 1 : -1];
9027 /* See body of main program for 'e'. */
9028 char f[(_Bool) 0.0 == false ? 1 : -1];
9029 char g[true];
9030 char h[sizeof (_Bool)];
9031 char i[sizeof s.t];
9032 enum { j = false, k = true, l = false * true, m = true * 256 };
9033 /* The following fails for
9034 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
9035 _Bool n[m];
9036 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
9037 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
9038 /* Catch a bug in an HP-UX C compiler. See
9039 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
9040 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
9041 */
9042 _Bool q = true;
9043 _Bool *pq = &q;
9044
9045int
9046main ()
9047{
9048
9049 bool e = &s;
9050 *pq |= q;
9051 *pq |= ! q;
9052 /* Refer to every declared value, to avoid compiler optimizations. */
9053 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
9054 + !m + !n + !o + !p + !q + !pq);
9055
9056 ;
9057 return 0;
9058}
9059_ACEOF
9060if ac_fn_c_try_compile "$LINENO"; then :
9061 ac_cv_header_stdbool_h=yes
9062else
9063 ac_cv_header_stdbool_h=no
9064fi
9065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9066fi
9067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
9068$as_echo "$ac_cv_header_stdbool_h" >&6; }
9069 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
9070if test "x$ac_cv_type__Bool" = x""yes; then :
9071
9072cat >>confdefs.h <<_ACEOF
9073#define HAVE__BOOL 1
9074_ACEOF
9075
9076
9077fi
9078
9079
9080
9081 REPLACE_NULL=0;
9082 HAVE_WCHAR_T=1;
9083
9084
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9086$as_echo_n "checking for wchar_t... " >&6; }
9087if test "${gt_cv_c_wchar_t+set}" = set; then :
9088 $as_echo_n "(cached) " >&6
9089else
9090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9091/* end confdefs.h. */
9092#include <stddef.h>
9093 wchar_t foo = (wchar_t)'\0';
9094int
9095main ()
9096{
9097
9098 ;
9099 return 0;
9100}
9101_ACEOF
9102if ac_fn_c_try_compile "$LINENO"; then :
9103 gt_cv_c_wchar_t=yes
9104else
9105 gt_cv_c_wchar_t=no
9106fi
9107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9108fi
9109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9110$as_echo "$gt_cv_c_wchar_t" >&6; }
9111 if test $gt_cv_c_wchar_t = yes; then
9112
9113$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
9114
9115 fi
9116
9117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
9118$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
9119if test "${ac_cv_c_restrict+set}" = set; then :
9120 $as_echo_n "(cached) " >&6
9121else
9122 ac_cv_c_restrict=no
9123 # The order here caters to the fact that C++ does not require restrict.
9124 for ac_kw in __restrict __restrict__ _Restrict restrict; do
9125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9126/* end confdefs.h. */
9127typedef int * int_ptr;
9128 int foo (int_ptr $ac_kw ip) {
9129 return ip[0];
9130 }
9131int
9132main ()
9133{
9134int s[1];
9135 int * $ac_kw t = s;
9136 t[0] = 0;
9137 return foo(t)
9138 ;
9139 return 0;
9140}
9141_ACEOF
9142if ac_fn_c_try_compile "$LINENO"; then :
9143 ac_cv_c_restrict=$ac_kw
9144fi
9145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9146 test "$ac_cv_c_restrict" != no && break
9147 done
9148
9149fi
9150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
9151$as_echo "$ac_cv_c_restrict" >&6; }
9152
9153 case $ac_cv_c_restrict in
9154 restrict) ;;
9155 no) $as_echo "#define restrict /**/" >>confdefs.h
9156 ;;
9157 *) cat >>confdefs.h <<_ACEOF
9158#define restrict $ac_cv_c_restrict
9159_ACEOF
9160 ;;
9161 esac
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174 if test $gl_cv_have_include_next = yes; then
9175 gl_cv_next_string_h='<'string.h'>'
9176 else
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
9178$as_echo_n "checking absolute name of <string.h>... " >&6; }
9179if test "${gl_cv_next_string_h+set}" = set; then :
9180 $as_echo_n "(cached) " >&6
9181else
9182
9183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9184/* end confdefs.h. */
9185#include <string.h>
9186
9187_ACEOF
9188 case "$host_os" in
9189 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9190 *) gl_absname_cpp="$ac_cpp" ;;
9191 esac
9192
9193 case "$host_os" in
c971b7fa
PA
9194 mingw*)
9195 gl_dirsep_regex='[/\\]'
9196 ;;
9197 *)
9198 gl_dirsep_regex='\/'
9199 ;;
9200 esac
9201 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9202
8690e634
JK
9203 gl_header_literal_regex=`echo 'string.h' \
9204 | sed -e "$gl_make_literal_regex_sed"`
9205 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9206 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9207 s|^/[^/]|//&|
9208 p
9209 q
9210 }'
9211 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9212 sed -n "$gl_absolute_header_sed"`'"'
9213
9214
9215fi
9216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
9217$as_echo "$gl_cv_next_string_h" >&6; }
9218 fi
9219 NEXT_STRING_H=$gl_cv_next_string_h
9220
9221 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9222 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9223 gl_next_as_first_directive='<'string.h'>'
9224 else
9225 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9226 gl_next_as_first_directive=$gl_cv_next_string_h
9227 fi
9228 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
9229
9230
9231
9232
9233
9234
9235 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
9236 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
9238$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
9239if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
9240 $as_echo_n "(cached) " >&6
9241else
9242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9243/* end confdefs.h. */
9244#include <string.h>
9245
9246int
9247main ()
9248{
9249#undef $gl_func
9250 (void) $gl_func;
9251 ;
9252 return 0;
9253}
9254_ACEOF
9255if ac_fn_c_try_compile "$LINENO"; then :
9256 eval "$as_gl_Symbol=yes"
9257else
9258 eval "$as_gl_Symbol=no"
9259fi
9260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9261fi
9262eval ac_res=\$$as_gl_Symbol
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9264$as_echo "$ac_res" >&6; }
9265 eval as_val=\$$as_gl_Symbol
9266 if test "x$as_val" = x""yes; then :
9267 cat >>confdefs.h <<_ACEOF
9268#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
9269_ACEOF
9270
9271 eval ac_cv_have_decl_$gl_func=yes
9272fi
9273 done
9274
9275
9276
8839a007
PA
9277
9278ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9279if test "x$ac_cv_type_pid_t" = x""yes; then :
9280
9281else
9282
9283cat >>confdefs.h <<_ACEOF
9284#define pid_t int
9285_ACEOF
9286
9287fi
9288
9289ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
9290if test "x$ac_cv_type_mode_t" = x""yes; then :
9291
9292else
9293
9294cat >>confdefs.h <<_ACEOF
9295#define mode_t int
9296_ACEOF
9297
9298fi
9299
9300
9301
9302 WINDOWS_64_BIT_OFF_T=0
9303
9304
9305
9306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
9307$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
9308if test -z "$MKDIR_P"; then
9309 if test "${ac_cv_path_mkdir+set}" = set; then :
9310 $as_echo_n "(cached) " >&6
9311else
9312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9313for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
9314do
9315 IFS=$as_save_IFS
9316 test -z "$as_dir" && as_dir=.
9317 for ac_prog in mkdir gmkdir; do
9318 for ac_exec_ext in '' $ac_executable_extensions; do
9319 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
9320 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
9321 'mkdir (GNU coreutils) '* | \
9322 'mkdir (coreutils) '* | \
9323 'mkdir (fileutils) '4.1*)
9324 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
9325 break 3;;
9326 esac
9327 done
9328 done
9329 done
9330IFS=$as_save_IFS
9331
9332fi
9333
9334 if test "${ac_cv_path_mkdir+set}" = set; then
9335 MKDIR_P="$ac_cv_path_mkdir -p"
9336 else
9337 # As a last resort, use the slow shell script. Don't cache a
9338 # value for MKDIR_P within a source directory, because that will
9339 # break other packages using the cache if that directory is
9340 # removed, or if the value is a relative name.
9341 test -d ./--version && rmdir ./--version
9342 MKDIR_P="$ac_install_sh -d"
9343 fi
9344fi
9345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
9346$as_echo "$MKDIR_P" >&6; }
9347
9348
9349 GNULIB_CHDIR=0;
9350 GNULIB_CHOWN=0;
9351 GNULIB_CLOSE=0;
9352 GNULIB_DUP=0;
9353 GNULIB_DUP2=0;
9354 GNULIB_DUP3=0;
9355 GNULIB_ENVIRON=0;
9356 GNULIB_EUIDACCESS=0;
9357 GNULIB_FACCESSAT=0;
9358 GNULIB_FCHDIR=0;
9359 GNULIB_FCHOWNAT=0;
9360 GNULIB_FDATASYNC=0;
9361 GNULIB_FSYNC=0;
9362 GNULIB_FTRUNCATE=0;
9363 GNULIB_GETCWD=0;
9364 GNULIB_GETDOMAINNAME=0;
9365 GNULIB_GETDTABLESIZE=0;
9366 GNULIB_GETGROUPS=0;
9367 GNULIB_GETHOSTNAME=0;
9368 GNULIB_GETLOGIN=0;
9369 GNULIB_GETLOGIN_R=0;
9370 GNULIB_GETPAGESIZE=0;
9371 GNULIB_GETUSERSHELL=0;
9372 GNULIB_GROUP_MEMBER=0;
9373 GNULIB_ISATTY=0;
9374 GNULIB_LCHOWN=0;
9375 GNULIB_LINK=0;
9376 GNULIB_LINKAT=0;
9377 GNULIB_LSEEK=0;
9378 GNULIB_PIPE=0;
9379 GNULIB_PIPE2=0;
9380 GNULIB_PREAD=0;
9381 GNULIB_PWRITE=0;
9382 GNULIB_READ=0;
9383 GNULIB_READLINK=0;
9384 GNULIB_READLINKAT=0;
9385 GNULIB_RMDIR=0;
9386 GNULIB_SETHOSTNAME=0;
9387 GNULIB_SLEEP=0;
9388 GNULIB_SYMLINK=0;
9389 GNULIB_SYMLINKAT=0;
9390 GNULIB_TTYNAME_R=0;
9391 GNULIB_UNISTD_H_NONBLOCKING=0;
9392 GNULIB_UNISTD_H_SIGPIPE=0;
9393 GNULIB_UNLINK=0;
9394 GNULIB_UNLINKAT=0;
9395 GNULIB_USLEEP=0;
9396 GNULIB_WRITE=0;
9397 HAVE_CHOWN=1;
9398 HAVE_DUP2=1;
9399 HAVE_DUP3=1;
9400 HAVE_EUIDACCESS=1;
9401 HAVE_FACCESSAT=1;
9402 HAVE_FCHDIR=1;
9403 HAVE_FCHOWNAT=1;
9404 HAVE_FDATASYNC=1;
9405 HAVE_FSYNC=1;
9406 HAVE_FTRUNCATE=1;
9407 HAVE_GETDTABLESIZE=1;
9408 HAVE_GETGROUPS=1;
9409 HAVE_GETHOSTNAME=1;
9410 HAVE_GETLOGIN=1;
9411 HAVE_GETPAGESIZE=1;
9412 HAVE_GROUP_MEMBER=1;
9413 HAVE_LCHOWN=1;
9414 HAVE_LINK=1;
9415 HAVE_LINKAT=1;
9416 HAVE_PIPE=1;
9417 HAVE_PIPE2=1;
9418 HAVE_PREAD=1;
9419 HAVE_PWRITE=1;
9420 HAVE_READLINK=1;
9421 HAVE_READLINKAT=1;
9422 HAVE_SETHOSTNAME=1;
9423 HAVE_SLEEP=1;
9424 HAVE_SYMLINK=1;
9425 HAVE_SYMLINKAT=1;
9426 HAVE_UNLINKAT=1;
9427 HAVE_USLEEP=1;
9428 HAVE_DECL_ENVIRON=1;
9429 HAVE_DECL_FCHDIR=1;
9430 HAVE_DECL_FDATASYNC=1;
9431 HAVE_DECL_GETDOMAINNAME=1;
9432 HAVE_DECL_GETLOGIN_R=1;
9433 HAVE_DECL_GETPAGESIZE=1;
9434 HAVE_DECL_GETUSERSHELL=1;
9435 HAVE_DECL_SETHOSTNAME=1;
9436 HAVE_DECL_TTYNAME_R=1;
9437 HAVE_OS_H=0;
9438 HAVE_SYS_PARAM_H=0;
9439 REPLACE_CHOWN=0;
9440 REPLACE_CLOSE=0;
9441 REPLACE_DUP=0;
9442 REPLACE_DUP2=0;
9443 REPLACE_FCHOWNAT=0;
9444 REPLACE_FTRUNCATE=0;
9445 REPLACE_GETCWD=0;
9446 REPLACE_GETDOMAINNAME=0;
9447 REPLACE_GETLOGIN_R=0;
9448 REPLACE_GETGROUPS=0;
9449 REPLACE_GETPAGESIZE=0;
9450 REPLACE_ISATTY=0;
9451 REPLACE_LCHOWN=0;
9452 REPLACE_LINK=0;
9453 REPLACE_LINKAT=0;
9454 REPLACE_LSEEK=0;
9455 REPLACE_PREAD=0;
9456 REPLACE_PWRITE=0;
9457 REPLACE_READ=0;
9458 REPLACE_READLINK=0;
9459 REPLACE_RMDIR=0;
9460 REPLACE_SLEEP=0;
9461 REPLACE_SYMLINK=0;
9462 REPLACE_TTYNAME_R=0;
9463 REPLACE_UNLINK=0;
9464 REPLACE_UNLINKAT=0;
9465 REPLACE_USLEEP=0;
9466 REPLACE_WRITE=0;
9467 UNISTD_H_HAVE_WINSOCK2_H=0;
9468 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
9469
9470
9471
8690e634
JK
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
9473$as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
9474if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
9475 $as_echo_n "(cached) " >&6
9476else
9477 gl_cv_header_wchar_h_correct_inline=yes
9478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9479/* end confdefs.h. */
9480
9481 #define wcstod renamed_wcstod
9482/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9483 <wchar.h>.
9484 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9485 included before <wchar.h>. */
9486#include <stddef.h>
9487#include <stdio.h>
9488#include <time.h>
9489#include <wchar.h>
9490extern int zero (void);
9491int main () { return zero(); }
9492
9493_ACEOF
9494 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9495 (eval $ac_compile) 2>&5
9496 ac_status=$?
9497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9498 test $ac_status = 0; }; then
9499 mv conftest.$ac_objext conftest1.$ac_objext
9500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9501/* end confdefs.h. */
9502
9503 #define wcstod renamed_wcstod
9504/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9505 <wchar.h>.
9506 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9507 included before <wchar.h>. */
9508#include <stddef.h>
9509#include <stdio.h>
9510#include <time.h>
9511#include <wchar.h>
9512int zero (void) { return 0; }
9513
9514_ACEOF
9515 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9516 (eval $ac_compile) 2>&5
9517 ac_status=$?
9518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9519 test $ac_status = 0; }; then
9520 mv conftest.$ac_objext conftest2.$ac_objext
9521 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
9522 :
9523 else
9524 gl_cv_header_wchar_h_correct_inline=no
9525 fi
9526 fi
9527 fi
9528 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
9529
9530fi
9531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
9532$as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
9533 if test $gl_cv_header_wchar_h_correct_inline = no; then
9534 as_fn_error "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
9535This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
9536C99 mode. You have four options:
9537 - Add the flag -fgnu89-inline to CC and reconfigure, or
9538 - Fix your include files, using parts of
9539 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
9540 - Use a gcc version older than 4.3, or
9541 - Don't use the flags -std=c99 or -std=gnu99.
9542Configuration aborted." "$LINENO" 5
9543 fi
9544
9545
9546
9547
9548
8690e634
JK
9549 if test $ac_cv_header_features_h = yes; then
9550 HAVE_FEATURES_H=1
9551 else
9552 HAVE_FEATURES_H=0
9553 fi
9554
9555
9556
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
9558$as_echo_n "checking for wint_t... " >&6; }
9559if test "${gt_cv_c_wint_t+set}" = set; then :
9560 $as_echo_n "(cached) " >&6
9561else
9562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9563/* end confdefs.h. */
9564
9565/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9566 <wchar.h>.
9567 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
9568 before <wchar.h>. */
9569#include <stddef.h>
9570#include <stdio.h>
9571#include <time.h>
9572#include <wchar.h>
9573 wint_t foo = (wchar_t)'\0';
9574int
9575main ()
9576{
9577
9578 ;
9579 return 0;
9580}
9581_ACEOF
9582if ac_fn_c_try_compile "$LINENO"; then :
9583 gt_cv_c_wint_t=yes
9584else
9585 gt_cv_c_wint_t=no
9586fi
9587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9588fi
9589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
9590$as_echo "$gt_cv_c_wint_t" >&6; }
9591 if test $gt_cv_c_wint_t = yes; then
9592
9593$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
9594
9595 fi
9596
9597
9598 GNULIB_ISWBLANK=0;
9599 GNULIB_WCTYPE=0;
9600 GNULIB_ISWCTYPE=0;
9601 GNULIB_WCTRANS=0;
9602 GNULIB_TOWCTRANS=0;
9603 HAVE_ISWBLANK=1;
9604 HAVE_WCTYPE_T=1;
9605 HAVE_WCTRANS_T=1;
9606 REPLACE_ISWBLANK=0;
9607
9608
9609
9610
8690e634
JK
9611 if false; then
9612 GL_COND_LIBTOOL_TRUE=
9613 GL_COND_LIBTOOL_FALSE='#'
9614else
9615 GL_COND_LIBTOOL_TRUE='#'
9616 GL_COND_LIBTOOL_FALSE=
9617fi
9618
9619 gl_cond_libtool=false
9620 gl_libdeps=
9621 gl_ltlibdeps=
9622 gl_m4_base='import/m4'
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632 gl_source_base='import'
9633
9634
9635 if test $ac_cv_func_alloca_works = no; then
9636 :
9637 fi
9638
9639 # Define an additional variable used in the Makefile substitution.
9640 if test $ac_cv_working_alloca_h = yes; then
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
9642$as_echo_n "checking for alloca as a compiler built-in... " >&6; }
9643if test "${gl_cv_rpl_alloca+set}" = set; then :
9644 $as_echo_n "(cached) " >&6
9645else
9646
9647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9648/* end confdefs.h. */
9649
9650#if defined __GNUC__ || defined _AIX || defined _MSC_VER
9651 Need own alloca
9652#endif
9653
9654_ACEOF
9655if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9656 $EGREP "Need own alloca" >/dev/null 2>&1; then :
9657 gl_cv_rpl_alloca=yes
9658else
9659 gl_cv_rpl_alloca=no
9660fi
9661rm -f conftest*
9662
9663
9664fi
9665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
9666$as_echo "$gl_cv_rpl_alloca" >&6; }
9667 if test $gl_cv_rpl_alloca = yes; then
9668
9669$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
9670
9671 ALLOCA_H=alloca.h
9672 else
9673 ALLOCA_H=
9674 fi
9675 else
9676 ALLOCA_H=alloca.h
9677 fi
9678
9679 if test -n "$ALLOCA_H"; then
9680 GL_GENERATE_ALLOCA_H_TRUE=
9681 GL_GENERATE_ALLOCA_H_FALSE='#'
9682else
9683 GL_GENERATE_ALLOCA_H_TRUE='#'
9684 GL_GENERATE_ALLOCA_H_FALSE=
9685fi
9686
9687
9688
9689 if test "x$datarootdir" = x; then
9690 datarootdir='${datadir}'
9691
9692 fi
9693 if test "x$docdir" = x; then
9694 docdir='${datarootdir}/doc/${PACKAGE}'
9695
9696 fi
9697 if test "x$htmldir" = x; then
9698 htmldir='${docdir}'
9699
9700 fi
9701 if test "x$dvidir" = x; then
9702 dvidir='${docdir}'
9703
9704 fi
9705 if test "x$pdfdir" = x; then
9706 pdfdir='${docdir}'
9707
9708 fi
9709 if test "x$psdir" = x; then
9710 psdir='${docdir}'
9711
9712 fi
9713 if test "x$lispdir" = x; then
9714 lispdir='${datarootdir}/emacs/site-lisp'
9715
9716 fi
9717 if test "x$localedir" = x; then
9718 localedir='${datarootdir}/locale'
9719
9720 fi
9721
9722 pkglibexecdir='${libexecdir}/${PACKAGE}'
9723
9724
9725
9726
9727
9728
88b48903
WN
9729 FLOAT_H=
9730 REPLACE_FLOAT_LDBL=0
9731 case "$host_os" in
9732 aix* | beos* | openbsd* | mirbsd* | irix*)
9733 FLOAT_H=float.h
9734 ;;
9735 freebsd*)
9736 case "$host_cpu" in
9737 i[34567]86 )
9738 FLOAT_H=float.h
9739 ;;
9740 x86_64 )
9741 # On x86_64 systems, the C compiler may still be generating
9742 # 32-bit code.
9743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9744/* end confdefs.h. */
9745#if defined __LP64__ || defined __x86_64__ || defined __amd64__
9746 yes
9747 #endif
9748_ACEOF
9749if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9750 $EGREP "yes" >/dev/null 2>&1; then :
9751
9752else
9753 FLOAT_H=float.h
9754fi
9755rm -f conftest*
8690e634 9756
88b48903
WN
9757 ;;
9758 esac
9759 ;;
9760 linux*)
9761 case "$host_cpu" in
9762 powerpc*)
9763 FLOAT_H=float.h
9764 ;;
9765 esac
9766 ;;
9767 esac
9768 case "$host_os" in
9769 aix* | freebsd* | linux*)
9770 if test -n "$FLOAT_H"; then
9771 REPLACE_FLOAT_LDBL=1
9772 fi
9773 ;;
9774 esac
a512b375 9775
88b48903
WN
9776 REPLACE_ITOLD=0
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
9778$as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
9779if test "${gl_cv_func_itold_works+set}" = set; then :
8690e634
JK
9780 $as_echo_n "(cached) " >&6
9781else
88b48903
WN
9782
9783 if test "$cross_compiling" = yes; then :
9784 case "$host" in
9785 sparc*-*-linux*)
9786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9787/* end confdefs.h. */
9788#if defined __LP64__ || defined __arch64__
9789 yes
9790 #endif
9791_ACEOF
9792if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9793 $EGREP "yes" >/dev/null 2>&1; then :
9794 gl_cv_func_itold_works="guessing no"
9795else
9796 gl_cv_func_itold_works="guessing yes"
9797fi
9798rm -f conftest*
9799
9800 ;;
9801 *) gl_cv_func_itold_works="guessing yes" ;;
9802 esac
9803
8690e634
JK
9804else
9805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9806/* end confdefs.h. */
8690e634 9807
88b48903
WN
9808int i = -1;
9809volatile long double ld;
9810int main ()
8690e634 9811{
88b48903
WN
9812 ld += i * 1.0L;
9813 if (ld > 0)
9814 return 1;
9815 return 0;
9816}
9817_ACEOF
9818if ac_fn_c_try_run "$LINENO"; then :
9819 gl_cv_func_itold_works=yes
9820else
9821 gl_cv_func_itold_works=no
9822fi
9823rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9824 conftest.$ac_objext conftest.beam conftest.$ac_ext
9825fi
9826
9827
9828fi
9829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
9830$as_echo "$gl_cv_func_itold_works" >&6; }
9831 case "$gl_cv_func_itold_works" in
9832 *no)
9833 REPLACE_ITOLD=1
9834 FLOAT_H=float.h
9835 ;;
9836 esac
9837
9838 if test -n "$FLOAT_H"; then
9839
9840
9841
9842
9843
9844
9845
9846
9847 if test $gl_cv_have_include_next = yes; then
9848 gl_cv_next_float_h='<'float.h'>'
9849 else
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
9851$as_echo_n "checking absolute name of <float.h>... " >&6; }
9852if test "${gl_cv_next_float_h+set}" = set; then :
9853 $as_echo_n "(cached) " >&6
9854else
9855
9856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9857/* end confdefs.h. */
9858#include <float.h>
9859
9860_ACEOF
9861 case "$host_os" in
9862 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9863 *) gl_absname_cpp="$ac_cpp" ;;
9864 esac
9865
9866 case "$host_os" in
9867 mingw*)
9868 gl_dirsep_regex='[/\\]'
9869 ;;
9870 *)
9871 gl_dirsep_regex='\/'
9872 ;;
9873 esac
9874 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9875
9876 gl_header_literal_regex=`echo 'float.h' \
9877 | sed -e "$gl_make_literal_regex_sed"`
9878 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9879 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9880 s|^/[^/]|//&|
9881 p
9882 q
9883 }'
9884 gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9885 sed -n "$gl_absolute_header_sed"`'"'
9886
9887
9888fi
9889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
9890$as_echo "$gl_cv_next_float_h" >&6; }
9891 fi
9892 NEXT_FLOAT_H=$gl_cv_next_float_h
9893
9894 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9895 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9896 gl_next_as_first_directive='<'float.h'>'
9897 else
9898 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9899 gl_next_as_first_directive=$gl_cv_next_float_h
9900 fi
9901 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
9902
9903
9904
9905
9906 fi
9907
9908 if test -n "$FLOAT_H"; then
9909 GL_GENERATE_FLOAT_H_TRUE=
9910 GL_GENERATE_FLOAT_H_FALSE='#'
9911else
9912 GL_GENERATE_FLOAT_H_TRUE='#'
9913 GL_GENERATE_FLOAT_H_FALSE=
9914fi
9915
9916
9917
9918 if test $REPLACE_FLOAT_LDBL = 1; then
9919
9920
9921
9922
9923
9924
9925
9926
9927 gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
9928
9929 fi
9930 if test $REPLACE_ITOLD = 1; then
9931
9932
9933
9934
9935
9936
9937
9938
9939 gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
9940
9941 fi
9942
9943
9944
9945
9946
9947 FNMATCH_H=
9948 gl_fnmatch_required_lowercase=`
9949 echo $gl_fnmatch_required | LC_ALL=C tr '[A-Z]' '[a-z]'
9950 `
9951 gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
9953$as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
9954if { as_var=$gl_fnmatch_cache_var; eval "test \"\${$as_var+set}\" = set"; }; then :
9955 $as_echo_n "(cached) " >&6
9956else
9957 if test $gl_fnmatch_required = GNU; then
9958 gl_fnmatch_gnu_start=
9959 gl_fnmatch_gnu_end=
9960 else
9961 gl_fnmatch_gnu_start='#if 0'
9962 gl_fnmatch_gnu_end='#endif'
9963 fi
9964 if test "$cross_compiling" = yes; then :
9965 eval "$gl_fnmatch_cache_var=\"guessing no\""
9966else
9967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9968/* end confdefs.h. */
9969#include <fnmatch.h>
9970 static int
9971 y (char const *pattern, char const *string, int flags)
9972 {
9973 return fnmatch (pattern, string, flags) == 0;
9974 }
9975 static int
9976 n (char const *pattern, char const *string, int flags)
9977 {
9978 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
9979 }
9980
9981int
9982main ()
9983{
9984char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
9985 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
9986 static char const A_1[] = { 'A' - 1, 0 };
9987 static char const A01[] = { 'A' + 1, 0 };
9988 static char const a_1[] = { 'a' - 1, 0 };
9989 static char const a01[] = { 'a' + 1, 0 };
9990 static char const bs_1[] = { '\\\\' - 1, 0 };
8690e634
JK
9991 static char const bs01[] = { '\\\\' + 1, 0 };
9992 int result = 0;
9993 if (!n ("a*", "", 0))
9994 return 1;
9995 if (!y ("a*", "abc", 0))
9996 return 1;
9997 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
9998 return 1;
9999 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
10000 return 2;
10001 if (!y ("a\\\\bc", "abc", 0))
10002 return 3;
10003 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
10004 return 3;
10005 if (!y ("*x", ".x", 0))
10006 return 4;
10007 if (!n ("*x", ".x", FNM_PERIOD))
10008 return 4;
10009 if (!y (Apat, "\\\\", 0))
10010 return 5;
10011 if (!y (Apat, "A", 0))
10012 return 5;
10013 if (!y (apat, "\\\\", 0))
10014 return 5;
10015 if (!y (apat, "a", 0))
10016 return 5;
10017 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
10018 return 5;
10019 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
10020 return 5;
10021 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
10022 return 5;
10023 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
10024 return 5;
10025 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
10026 return 5;
10027 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
10028 return 5;
10029 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
10030 return 5;
10031 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
10032 return 5;
10033 $gl_fnmatch_gnu_start
10034 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
10035 result |= 8;
10036 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
10037 result |= 16;
10038 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
10039 result |= 32;
10040 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
10041 result |= 64;
10042 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
10043 result |= 64;
10044 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
10045 result |= 64;
10046 $gl_fnmatch_gnu_end
10047 return result;
10048
10049 ;
10050 return 0;
10051}
10052_ACEOF
10053if ac_fn_c_try_run "$LINENO"; then :
10054 eval "$gl_fnmatch_cache_var=yes"
10055else
10056 eval "$gl_fnmatch_cache_var=no"
10057fi
10058rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10059 conftest.$ac_objext conftest.beam conftest.$ac_ext
10060fi
10061
10062
10063fi
10064eval ac_res=\$$gl_fnmatch_cache_var
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10066$as_echo "$ac_res" >&6; }
10067 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
10068 if test "$gl_fnmatch_result" = yes; then
10069 rm -f "$gl_source_base/fnmatch.h"
10070 else
10071 FNMATCH_H=fnmatch.h
10072 fi
10073
10074 if test -n "$FNMATCH_H"; then
10075 GL_GENERATE_FNMATCH_H_TRUE=
10076 GL_GENERATE_FNMATCH_H_FALSE='#'
10077else
10078 GL_GENERATE_FNMATCH_H_TRUE='#'
10079 GL_GENERATE_FNMATCH_H_FALSE=
10080fi
10081
10082
a512b375 10083 if test -n "$FNMATCH_H"; then
8690e634
JK
10084
10085
10086
10087
10088
10089
10090
10091
10092 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
10093
10094
10095
10096cat >>confdefs.h <<_ACEOF
10097#define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
10098_ACEOF
10099
10100
10101 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
10102"
10103if test "x$ac_cv_have_decl_isblank" = x""yes; then :
10104 ac_have_decl=1
10105else
10106 ac_have_decl=0
10107fi
10108
10109cat >>confdefs.h <<_ACEOF
10110#define HAVE_DECL_ISBLANK $ac_have_decl
10111_ACEOF
10112
10113
c971b7fa 10114
c971b7fa 10115
a512b375 10116 fi
c971b7fa 10117
c971b7fa 10118
c971b7fa 10119
c971b7fa 10120
c971b7fa 10121
a512b375 10122 if test -n "$FNMATCH_H"; then
c971b7fa 10123
c971b7fa 10124
c971b7fa
PA
10125
10126
c971b7fa
PA
10127
10128
c971b7fa
PA
10129
10130
8690e634 10131 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
c971b7fa 10132
c971b7fa 10133
c971b7fa 10134
8690e634
JK
10135cat >>confdefs.h <<_ACEOF
10136#define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
10137_ACEOF
c971b7fa
PA
10138
10139
8690e634
JK
10140 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
10141"
10142if test "x$ac_cv_have_decl_isblank" = x""yes; then :
10143 ac_have_decl=1
10144else
10145 ac_have_decl=0
c971b7fa 10146fi
c971b7fa 10147
8690e634
JK
10148cat >>confdefs.h <<_ACEOF
10149#define HAVE_DECL_ISBLANK $ac_have_decl
c971b7fa
PA
10150_ACEOF
10151
c971b7fa 10152
8690e634 10153
c971b7fa 10154
88b48903
WN
10155 fi
10156
10157
10158
10159 FREXP_LIBM=
10160 if test $gl_cv_func_frexp_no_libm = no; then
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used with libm" >&5
10162$as_echo_n "checking whether frexp() can be used with libm... " >&6; }
10163if test "${gl_cv_func_frexp_in_libm+set}" = set; then :
10164 $as_echo_n "(cached) " >&6
10165else
10166
10167 save_LIBS="$LIBS"
10168 LIBS="$LIBS -lm"
10169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10170/* end confdefs.h. */
10171#include <math.h>
10172 double x;
10173int
10174main ()
10175{
10176int e; return frexp (x, &e) > 0;
10177 ;
10178 return 0;
10179}
10180_ACEOF
10181if ac_fn_c_try_link "$LINENO"; then :
10182 gl_cv_func_frexp_in_libm=yes
10183else
10184 gl_cv_func_frexp_in_libm=no
10185fi
10186rm -f core conftest.err conftest.$ac_objext \
10187 conftest$ac_exeext conftest.$ac_ext
10188 LIBS="$save_LIBS"
10189
10190fi
10191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_in_libm" >&5
10192$as_echo "$gl_cv_func_frexp_in_libm" >&6; }
10193 if test $gl_cv_func_frexp_in_libm = yes; then
10194 FREXP_LIBM=-lm
10195 fi
10196 fi
10197 if test $gl_cv_func_frexp_no_libm = yes \
10198 || test $gl_cv_func_frexp_in_libm = yes; then
10199 save_LIBS="$LIBS"
10200 LIBS="$LIBS $FREXP_LIBM"
10201
10202
10203
88b48903
WN
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
10205$as_echo_n "checking whether frexp works... " >&6; }
10206if test "${gl_cv_func_frexp_works+set}" = set; then :
10207 $as_echo_n "(cached) " >&6
10208else
10209
10210 if test "$cross_compiling" = yes; then :
10211 case "$host_os" in
10212 netbsd* | irix* | mingw*) gl_cv_func_frexp_works="guessing no";;
10213 *) gl_cv_func_frexp_works="guessing yes";;
10214 esac
10215
10216else
10217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10218/* end confdefs.h. */
10219
10220#include <float.h>
10221#include <math.h>
10222#include <string.h>
10223#if HAVE_ALARM
10224# include <unistd.h>
10225#endif
10226/* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
10227 ICC 10.0 has a bug when optimizing the expression -zero.
10228 The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
10229 to PowerPC on Mac OS X 10.5. */
10230#if defined __hpux || defined __sgi || defined __ICC
10231static double
10232compute_minus_zero (void)
10233{
10234 return -DBL_MIN * DBL_MIN;
10235}
10236# define minus_zero compute_minus_zero ()
10237#else
10238double minus_zero = -0.0;
10239#endif
10240int main()
10241{
10242 int result = 0;
10243 int i;
10244 volatile double x;
10245 double zero = 0.0;
10246#if HAVE_ALARM
10247 /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
10248 number. Let the test fail in this case. */
10249 alarm (5);
10250#endif
10251 /* Test on denormalized numbers. */
10252 for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
10253 ;
10254 if (x > 0.0)
10255 {
10256 int exp;
10257 double y = frexp (x, &exp);
10258 /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
10259 On NetBSD: y = 0.75. Correct: y = 0.5. */
10260 if (y != 0.5)
10261 result |= 1;
10262 }
10263 /* Test on infinite numbers. */
10264 x = 1.0 / zero;
10265 {
10266 int exp;
10267 double y = frexp (x, &exp);
10268 if (y != x)
10269 result |= 2;
10270 }
10271 /* Test on negative zero. */
10272 x = minus_zero;
10273 {
10274 int exp;
10275 double y = frexp (x, &exp);
10276 if (memcmp (&y, &x, sizeof x))
10277 result |= 4;
10278 }
10279 return result;
10280}
10281_ACEOF
10282if ac_fn_c_try_run "$LINENO"; then :
10283 gl_cv_func_frexp_works=yes
10284else
10285 gl_cv_func_frexp_works=no
10286fi
10287rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10288 conftest.$ac_objext conftest.beam conftest.$ac_ext
10289fi
10290
10291
10292fi
10293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
10294$as_echo "$gl_cv_func_frexp_works" >&6; }
10295
10296 LIBS="$save_LIBS"
10297 case "$gl_cv_func_frexp_works" in
10298 *yes) gl_func_frexp=yes ;;
10299 *) gl_func_frexp=no; REPLACE_FREXP=1; FREXP_LIBM= ;;
10300 esac
10301 else
10302 gl_func_frexp=no
10303 fi
10304 if test $gl_func_frexp = yes; then
10305
10306$as_echo "#define HAVE_FREXP 1" >>confdefs.h
10307
10308 fi
10309
10310
10311 if test $gl_func_frexp != yes; then
10312
10313
10314
10315
10316
10317
10318
10319
10320 gl_LIBOBJS="$gl_LIBOBJS frexp.$ac_objext"
10321
10322 fi
10323
10324
10325
10326
10327
10328 GNULIB_FREXP=1
10329
10330
10331
10332
10333
10334$as_echo "#define GNULIB_TEST_FREXP 1" >>confdefs.h
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344 ac_fn_c_check_decl "$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
10345"
10346if test "x$ac_cv_have_decl_frexpl" = x""yes; then :
10347
10348else
10349 HAVE_DECL_FREXPL=0
10350fi
10351
10352
10353 FREXPL_LIBM=
10354 if test $HAVE_DECL_FREXPL = 1; then
10355
10356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
10357$as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
10358if test "${gl_cv_func_frexpl_no_libm+set}" = set; then :
10359 $as_echo_n "(cached) " >&6
10360else
10361
10362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10363/* end confdefs.h. */
10364#include <math.h>
10365 long double x;
10366int
10367main ()
10368{
10369int e; return frexpl (x, &e) > 0;
10370 ;
10371 return 0;
10372}
10373_ACEOF
10374if ac_fn_c_try_link "$LINENO"; then :
10375 gl_cv_func_frexpl_no_libm=yes
10376else
10377 gl_cv_func_frexpl_no_libm=no
10378fi
10379rm -f core conftest.err conftest.$ac_objext \
10380 conftest$ac_exeext conftest.$ac_ext
10381
10382fi
10383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
10384$as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
10385
10386 if test $gl_cv_func_frexpl_no_libm = no; then
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used with libm" >&5
10388$as_echo_n "checking whether frexpl() can be used with libm... " >&6; }
10389if test "${gl_cv_func_frexpl_in_libm+set}" = set; then :
10390 $as_echo_n "(cached) " >&6
10391else
10392
10393 save_LIBS="$LIBS"
10394 LIBS="$LIBS -lm"
10395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10396/* end confdefs.h. */
10397#include <math.h>
10398 long double x;
10399int
10400main ()
10401{
10402int e; return frexpl (x, &e) > 0;
10403 ;
10404 return 0;
10405}
10406_ACEOF
10407if ac_fn_c_try_link "$LINENO"; then :
10408 gl_cv_func_frexpl_in_libm=yes
10409else
10410 gl_cv_func_frexpl_in_libm=no
10411fi
10412rm -f core conftest.err conftest.$ac_objext \
10413 conftest$ac_exeext conftest.$ac_ext
10414 LIBS="$save_LIBS"
10415
10416fi
10417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_in_libm" >&5
10418$as_echo "$gl_cv_func_frexpl_in_libm" >&6; }
10419 if test $gl_cv_func_frexpl_in_libm = yes; then
10420 FREXPL_LIBM=-lm
10421 fi
10422 fi
10423 if test $gl_cv_func_frexpl_no_libm = yes \
10424 || test $gl_cv_func_frexpl_in_libm = yes; then
10425 save_LIBS="$LIBS"
10426 LIBS="$LIBS $FREXPL_LIBM"
10427
10428
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
10430$as_echo_n "checking whether frexpl works... " >&6; }
10431if test "${gl_cv_func_frexpl_works+set}" = set; then :
10432 $as_echo_n "(cached) " >&6
10433else
10434
10435 if test "$cross_compiling" = yes; then :
10436
10437 case "$host_os" in
10438 aix | aix[3-6]* | beos* | darwin* | irix* | mingw* | pw*)
10439 gl_cv_func_frexpl_works="guessing no";;
10440 *) gl_cv_func_frexpl_works="guessing yes";;
10441 esac
10442
10443else
10444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10445/* end confdefs.h. */
10446
10447#include <float.h>
10448#include <math.h>
10449/* Override the values of <float.h>, like done in float.in.h. */
10450#if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
10451# undef LDBL_MIN_EXP
10452# define LDBL_MIN_EXP (-16381)
10453#endif
10454#if defined __i386__ && defined __FreeBSD__
10455# undef LDBL_MIN_EXP
10456# define LDBL_MIN_EXP (-16381)
10457#endif
10458#if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
10459# undef LDBL_MIN_EXP
10460# define LDBL_MIN_EXP DBL_MIN_EXP
10461#endif
10462#if defined __sgi && (LDBL_MANT_DIG >= 106)
10463# if defined __GNUC__
10464# undef LDBL_MIN_EXP
10465# define LDBL_MIN_EXP DBL_MIN_EXP
10466# endif
10467#endif
10468extern
10469#ifdef __cplusplus
10470"C"
10471#endif
10472long double frexpl (long double, int *);
10473int main()
10474{
10475 int result = 0;
10476 volatile long double x;
10477 /* Test on finite numbers that fails on AIX 5.1. */
10478 x = 16.0L;
10479 {
10480 int exp = -9999;
10481 frexpl (x, &exp);
10482 if (exp != 5)
10483 result |= 1;
10484 }
10485 /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
10486 function returns an invalid (incorrectly normalized) value: it returns
10487 y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
10488 but the correct result is
10489 0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 } */
10490 x = 1.01L;
10491 {
10492 int exp = -9999;
10493 long double y = frexpl (x, &exp);
10494 if (!(exp == 1 && y == 0.505L))
10495 result |= 2;
10496 }
10497 /* Test on large finite numbers. This fails on BeOS at i = 16322, while
10498 LDBL_MAX_EXP = 16384.
10499 In the loop end test, we test x against Infinity, rather than comparing
10500 i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP. */
10501 {
10502 int i;
10503 for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
10504 {
10505 int exp = -9999;
10506 frexpl (x, &exp);
10507 if (exp != i)
10508 {
10509 result |= 4;
10510 break;
10511 }
10512 }
10513 }
10514 /* Test on denormalized numbers. */
10515 {
10516 int i;
10517 for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
10518 ;
10519 if (x > 0.0L)
10520 {
10521 int exp;
10522 long double y = frexpl (x, &exp);
10523 /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
10524 exp = -16382, y = 0.5. On Mac OS X 10.5: exp = -16384, y = 0.5. */
10525 if (exp != LDBL_MIN_EXP - 1)
10526 result |= 8;
10527 }
10528 }
10529 /* Test on infinite numbers. */
10530 x = 1.0L / 0.0L;
10531 {
10532 int exp;
10533 long double y = frexpl (x, &exp);
10534 if (y != x)
10535 result |= 16;
10536 }
10537 return result;
10538}
10539_ACEOF
10540if ac_fn_c_try_run "$LINENO"; then :
10541 gl_cv_func_frexpl_works=yes
10542else
10543 gl_cv_func_frexpl_works=no
10544fi
10545rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10546 conftest.$ac_objext conftest.beam conftest.$ac_ext
10547fi
10548
10549
10550fi
10551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
10552$as_echo "$gl_cv_func_frexpl_works" >&6; }
10553
10554 LIBS="$save_LIBS"
10555 case "$gl_cv_func_frexpl_works" in
10556 *yes) gl_func_frexpl=yes ;;
10557 *) gl_func_frexpl=no; REPLACE_FREXPL=1 ;;
10558 esac
10559 else
10560 gl_func_frexpl=no
10561 fi
10562 if test $gl_func_frexpl = yes; then
10563
10564$as_echo "#define HAVE_FREXPL 1" >>confdefs.h
10565
10566 fi
10567 fi
10568 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
10569 if test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1; then
10570
10571 FREXPL_LIBM="$FREXP_LIBM"
10572 else
10573 FREXPL_LIBM=
10574 fi
10575 fi
10576
10577
10578 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
10579
10580
10581
10582
10583
10584
10585
10586
10587 gl_LIBOBJS="$gl_LIBOBJS frexpl.$ac_objext"
10588
10589 fi
10590
10591
10592
10593
10594
10595 GNULIB_FREXPL=1
10596
10597
10598
10599
10600
10601$as_echo "#define GNULIB_TEST_FREXPL 1" >>confdefs.h
10602
10603
10604
10605
10606
10607
10608
10609
10610 PRIPTR_PREFIX=
10611 if test -n "$STDINT_H"; then
10612 PRIPTR_PREFIX='"l"'
10613 else
10614 for glpfx in '' l ll I64; do
10615 case $glpfx in
10616 '') gltype1='int';;
10617 l) gltype1='long int';;
10618 ll) gltype1='long long int';;
10619 I64) gltype1='__int64';;
10620 esac
10621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10622/* end confdefs.h. */
10623#include <stdint.h>
10624 extern intptr_t foo;
10625 extern $gltype1 foo;
10626int
10627main ()
10628{
10629
10630 ;
10631 return 0;
10632}
10633_ACEOF
10634if ac_fn_c_try_compile "$LINENO"; then :
10635 PRIPTR_PREFIX='"'$glpfx'"'
10636fi
10637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10638 test -n "$PRIPTR_PREFIX" && break
10639 done
10640 fi
10641
10642
10643
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
10645$as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
10646if test "${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+set}" = set; then :
10647 $as_echo_n "(cached) " >&6
10648else
10649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10650/* end confdefs.h. */
10651/* Work also in C++ mode. */
10652 #define __STDC_LIMIT_MACROS 1
10653
10654 /* Work if build is not clean. */
10655 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
10656
10657 #include <limits.h>
10658 #if HAVE_STDINT_H
10659 #include <stdint.h>
10660 #endif
10661
10662 #if defined INT32_MAX && defined INTMAX_MAX
10663 #define CONDITION (INT32_MAX < INTMAX_MAX)
10664 #elif HAVE_LONG_LONG_INT
10665 #define CONDITION (sizeof (int) < sizeof (long long int))
10666 #else
10667 #define CONDITION 0
10668 #endif
10669 int test[CONDITION ? 1 : -1];
10670int
10671main ()
10672{
10673
10674 ;
10675 return 0;
10676}
10677_ACEOF
10678if ac_fn_c_try_compile "$LINENO"; then :
10679 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
10680else
10681 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
10682fi
10683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10684fi
10685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
10686$as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
10687 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
10688 INT32_MAX_LT_INTMAX_MAX=1;
10689 else
10690 INT32_MAX_LT_INTMAX_MAX=0;
10691 fi
10692
10693
10694 if test $APPLE_UNIVERSAL_BUILD = 0; then
10695
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
10697$as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
10698if test "${gl_cv_test_INT64_MAX_EQ_LONG_MAX+set}" = set; then :
10699 $as_echo_n "(cached) " >&6
10700else
10701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10702/* end confdefs.h. */
10703/* Work also in C++ mode. */
10704 #define __STDC_LIMIT_MACROS 1
10705
10706 /* Work if build is not clean. */
10707 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
10708
10709 #include <limits.h>
10710 #if HAVE_STDINT_H
10711 #include <stdint.h>
10712 #endif
10713
10714 #if defined INT64_MAX
10715 #define CONDITION (INT64_MAX == LONG_MAX)
10716 #elif HAVE_LONG_LONG_INT
10717 #define CONDITION (sizeof (long long int) == sizeof (long int))
10718 #else
10719 #define CONDITION 0
10720 #endif
10721 int test[CONDITION ? 1 : -1];
10722int
10723main ()
10724{
10725
10726 ;
10727 return 0;
10728}
10729_ACEOF
10730if ac_fn_c_try_compile "$LINENO"; then :
10731 gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
10732else
10733 gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
10734fi
10735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10736fi
10737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
10738$as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
10739 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
10740 INT64_MAX_EQ_LONG_MAX=1;
10741 else
10742 INT64_MAX_EQ_LONG_MAX=0;
10743 fi
10744
10745
10746 else
10747 INT64_MAX_EQ_LONG_MAX=-1
10748 fi
10749
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
10751$as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
10752if test "${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+set}" = set; then :
10753 $as_echo_n "(cached) " >&6
10754else
10755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10756/* end confdefs.h. */
10757/* Work also in C++ mode. */
10758 #define __STDC_LIMIT_MACROS 1
10759
10760 /* Work if build is not clean. */
10761 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
10762
10763 #include <limits.h>
10764 #if HAVE_STDINT_H
10765 #include <stdint.h>
10766 #endif
10767
10768 #if defined UINT32_MAX && defined UINTMAX_MAX
10769 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
10770 #elif HAVE_LONG_LONG_INT
10771 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
10772 #else
10773 #define CONDITION 0
10774 #endif
10775 int test[CONDITION ? 1 : -1];
10776int
10777main ()
10778{
10779
10780 ;
10781 return 0;
10782}
10783_ACEOF
10784if ac_fn_c_try_compile "$LINENO"; then :
10785 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
10786else
10787 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
10788fi
10789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10790fi
10791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
10792$as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
10793 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
10794 UINT32_MAX_LT_UINTMAX_MAX=1;
10795 else
10796 UINT32_MAX_LT_UINTMAX_MAX=0;
10797 fi
10798
10799
10800 if test $APPLE_UNIVERSAL_BUILD = 0; then
10801
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
10803$as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
10804if test "${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+set}" = set; then :
10805 $as_echo_n "(cached) " >&6
10806else
10807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10808/* end confdefs.h. */
10809/* Work also in C++ mode. */
10810 #define __STDC_LIMIT_MACROS 1
10811
10812 /* Work if build is not clean. */
10813 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
10814
10815 #include <limits.h>
10816 #if HAVE_STDINT_H
10817 #include <stdint.h>
10818 #endif
10819
10820 #if defined UINT64_MAX
10821 #define CONDITION (UINT64_MAX == ULONG_MAX)
10822 #elif HAVE_LONG_LONG_INT
10823 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
10824 #else
10825 #define CONDITION 0
10826 #endif
10827 int test[CONDITION ? 1 : -1];
10828int
10829main ()
10830{
10831
10832 ;
10833 return 0;
10834}
10835_ACEOF
10836if ac_fn_c_try_compile "$LINENO"; then :
10837 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
10838else
10839 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
10840fi
10841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10842fi
10843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
10844$as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
10845 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
10846 UINT64_MAX_EQ_ULONG_MAX=1;
10847 else
10848 UINT64_MAX_EQ_ULONG_MAX=0;
10849 fi
10850
10851
10852 else
10853 UINT64_MAX_EQ_ULONG_MAX=-1
10854 fi
10855
10856
10857
10858
10859
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
10861$as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
10862if test "${gl_cv_func_isnand_no_libm+set}" = set; then :
10863 $as_echo_n "(cached) " >&6
10864else
10865
10866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10867/* end confdefs.h. */
10868#include <math.h>
10869 #if __GNUC__ >= 4
10870 # undef isnand
10871 # define isnand(x) __builtin_isnan ((double)(x))
10872 #else
10873 # undef isnand
10874 # define isnand(x) isnan ((double)(x))
10875 #endif
10876 double x;
10877int
10878main ()
10879{
10880return isnand (x);
10881 ;
10882 return 0;
10883}
10884_ACEOF
10885if ac_fn_c_try_link "$LINENO"; then :
10886 gl_cv_func_isnand_no_libm=yes
10887else
10888 gl_cv_func_isnand_no_libm=no
10889fi
10890rm -f core conftest.err conftest.$ac_objext \
10891 conftest$ac_exeext conftest.$ac_ext
10892
10893fi
10894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
10895$as_echo "$gl_cv_func_isnand_no_libm" >&6; }
10896
10897 gl_func_isnand_no_libm=$gl_cv_func_isnand_no_libm
10898 if test $gl_cv_func_isnand_no_libm = yes; then
10899
10900$as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
10901
10902 fi
10903
10904 if test $gl_func_isnand_no_libm != yes; then
10905
10906
10907
10908
10909
10910
10911
10912
10913 gl_LIBOBJS="$gl_LIBOBJS isnand.$ac_objext"
10914
10915
10916
10917
10918 fi
10919
10920
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
10922$as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
10923if test "${gl_cv_func_isnanl_no_libm+set}" = set; then :
10924 $as_echo_n "(cached) " >&6
10925else
10926
10927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10928/* end confdefs.h. */
10929#include <math.h>
10930 #if __GNUC__ >= 4
10931 # undef isnanl
10932 # define isnanl(x) __builtin_isnanl ((long double)(x))
10933 #elif defined isnan
10934 # undef isnanl
10935 # define isnanl(x) isnan ((long double)(x))
10936 #endif
10937 long double x;
10938int
10939main ()
10940{
10941return isnanl (x);
10942 ;
10943 return 0;
10944}
10945_ACEOF
10946if ac_fn_c_try_link "$LINENO"; then :
10947 gl_cv_func_isnanl_no_libm=yes
10948else
10949 gl_cv_func_isnanl_no_libm=no
10950fi
10951rm -f core conftest.err conftest.$ac_objext \
10952 conftest$ac_exeext conftest.$ac_ext
10953
10954fi
10955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
10956$as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
10957
10958 gl_func_isnanl_no_libm=$gl_cv_func_isnanl_no_libm
10959 if test $gl_func_isnanl_no_libm = yes; then
10960
10961
10962
10963
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
10965$as_echo_n "checking whether isnanl works... " >&6; }
10966if test "${gl_cv_func_isnanl_works+set}" = set; then :
10967 $as_echo_n "(cached) " >&6
10968else
10969
10970 if test "$cross_compiling" = yes; then :
10971 case "$host_cpu" in
10972 # Guess no on ia64, x86_64, i386.
10973 ia64 | x86_64 | i*86) gl_cv_func_isnanl_works="guessing no";;
10974 *)
10975 case "$host_os" in
10976 netbsd*) gl_cv_func_isnanl_works="guessing no";;
10977 *) gl_cv_func_isnanl_works="guessing yes";;
10978 esac
10979 ;;
10980 esac
10981
10982else
10983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10984/* end confdefs.h. */
10985
10986#include <float.h>
10987#include <limits.h>
10988#include <math.h>
10989#if __GNUC__ >= 4
10990# undef isnanl
10991# define isnanl(x) __builtin_isnanl ((long double)(x))
10992#elif defined isnan
10993# undef isnanl
10994# define isnanl(x) isnan ((long double)(x))
10995#endif
10996#define NWORDS \
10997 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
10998typedef union { unsigned int word[NWORDS]; long double value; }
10999 memory_long_double;
11000/* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
11001 runtime type conversion. */
11002#ifdef __sgi
11003static long double NaNl ()
11004{
11005 double zero = 0.0;
11006 return zero / zero;
11007}
11008#else
11009# define NaNl() (0.0L / 0.0L)
11010#endif
11011int main ()
11012{
11013 int result = 0;
11014
11015 if (!isnanl (NaNl ()))
11016 result |= 1;
11017
11018 {
11019 memory_long_double m;
11020 unsigned int i;
11021
11022 /* The isnanl function should be immune against changes in the sign bit and
11023 in the mantissa bits. The xor operation twiddles a bit that can only be
11024 a sign bit or a mantissa bit (since the exponent never extends to
11025 bit 31). */
11026 m.value = NaNl ();
11027 m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
11028 for (i = 0; i < NWORDS; i++)
11029 m.word[i] |= 1;
11030 if (!isnanl (m.value))
11031 result |= 1;
11032 }
11033
11034#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
11035/* Representation of an 80-bit 'long double' as an initializer for a sequence
11036 of 'unsigned int' words. */
11037# ifdef WORDS_BIGENDIAN
11038# define LDBL80_WORDS(exponent,manthi,mantlo) \
11039 { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
11040 ((unsigned int) (manthi) << 16) | (unsigned int) (mantlo) >> 16), \
11041 (unsigned int) (mantlo) << 16 \
11042 }
11043# else
11044# define LDBL80_WORDS(exponent,manthi,mantlo) \
11045 { mantlo, manthi, exponent }
11046# endif
11047 { /* Quiet NaN. */
11048 static memory_long_double x =
11049 { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
11050 if (!isnanl (x.value))
11051 result |= 2;
11052 }
11053 {
11054 /* Signalling NaN. */
11055 static memory_long_double x =
11056 { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
11057 if (!isnanl (x.value))
11058 result |= 2;
11059 }
11060 /* The isnanl function should recognize Pseudo-NaNs, Pseudo-Infinities,
11061 Pseudo-Zeroes, Unnormalized Numbers, and Pseudo-Denormals, as defined in
11062 Intel IA-64 Architecture Software Developer's Manual, Volume 1:
11063 Application Architecture.
11064 Table 5-2 "Floating-Point Register Encodings"
11065 Figure 5-6 "Memory to Floating-Point Register Data Translation"
11066 */
11067 { /* Pseudo-NaN. */
11068 static memory_long_double x =
11069 { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
11070 if (!isnanl (x.value))
11071 result |= 4;
11072 }
11073 { /* Pseudo-Infinity. */
11074 static memory_long_double x =
11075 { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
11076 if (!isnanl (x.value))
11077 result |= 8;
11078 }
11079 { /* Pseudo-Zero. */
11080 static memory_long_double x =
11081 { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
11082 if (!isnanl (x.value))
11083 result |= 16;
11084 }
11085 { /* Unnormalized number. */
11086 static memory_long_double x =
11087 { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
11088 if (!isnanl (x.value))
11089 result |= 32;
11090 }
11091 { /* Pseudo-Denormal. */
11092 static memory_long_double x =
11093 { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
11094 if (!isnanl (x.value))
11095 result |= 64;
11096 }
11097#endif
11098
11099 return result;
11100}
11101_ACEOF
11102if ac_fn_c_try_run "$LINENO"; then :
11103 gl_cv_func_isnanl_works=yes
11104else
11105 gl_cv_func_isnanl_works=no
11106fi
11107rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11108 conftest.$ac_objext conftest.beam conftest.$ac_ext
11109fi
11110
11111
11112fi
11113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
11114$as_echo "$gl_cv_func_isnanl_works" >&6; }
11115
11116 case "$gl_cv_func_isnanl_works" in
11117 *yes) ;;
11118 *) gl_func_isnanl_no_libm=no ;;
11119 esac
11120 fi
11121 if test $gl_func_isnanl_no_libm = yes; then
11122
11123$as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
11124
11125 fi
11126
11127 if test $gl_func_isnanl_no_libm != yes; then
11128
11129
11130
11131
11132
11133
11134
11135
11136 gl_LIBOBJS="$gl_LIBOBJS isnanl.$ac_objext"
11137
11138
11139
11140
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
11142$as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
11143if test "${gl_cv_cc_long_double_expbit0+set}" = set; then :
11144 $as_echo_n "(cached) " >&6
11145else
11146
11147 if test "$cross_compiling" = yes; then :
11148
11149 gl_cv_cc_long_double_expbit0="unknown"
11150
11151else
11152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11153/* end confdefs.h. */
11154
11155#include <float.h>
11156#include <stddef.h>
11157#include <stdio.h>
11158#include <string.h>
11159#define NWORDS \
11160 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
11161typedef union { long double value; unsigned int word[NWORDS]; }
11162 memory_long_double;
11163static unsigned int ored_words[NWORDS];
11164static unsigned int anded_words[NWORDS];
11165static void add_to_ored_words (long double x)
11166{
11167 memory_long_double m;
11168 size_t i;
11169 /* Clear it first, in case
11170 sizeof (long double) < sizeof (memory_long_double). */
11171 memset (&m, 0, sizeof (memory_long_double));
11172 m.value = x;
11173 for (i = 0; i < NWORDS; i++)
11174 {
11175 ored_words[i] |= m.word[i];
11176 anded_words[i] &= m.word[i];
11177 }
11178}
11179int main ()
11180{
11181 size_t j;
11182 FILE *fp = fopen ("conftest.out", "w");
11183 if (fp == NULL)
11184 return 1;
11185 for (j = 0; j < NWORDS; j++)
11186 anded_words[j] = ~ (unsigned int) 0;
11187 add_to_ored_words (0.25L);
11188 add_to_ored_words (0.5L);
11189 add_to_ored_words (1.0L);
11190 add_to_ored_words (2.0L);
11191 add_to_ored_words (4.0L);
11192 /* Remove bits that are common (e.g. if representation of the first mantissa
11193 bit is explicit). */
11194 for (j = 0; j < NWORDS; j++)
11195 ored_words[j] &= ~anded_words[j];
11196 /* Now find the nonzero word. */
11197 for (j = 0; j < NWORDS; j++)
11198 if (ored_words[j] != 0)
11199 break;
11200 if (j < NWORDS)
11201 {
11202 size_t i;
11203 for (i = j + 1; i < NWORDS; i++)
11204 if (ored_words[i] != 0)
11205 {
11206 fprintf (fp, "unknown");
11207 return (fclose (fp) != 0);
11208 }
11209 for (i = 0; ; i++)
11210 if ((ored_words[j] >> i) & 1)
11211 {
11212 fprintf (fp, "word %d bit %d", (int) j, (int) i);
11213 return (fclose (fp) != 0);
11214 }
11215 }
11216 fprintf (fp, "unknown");
11217 return (fclose (fp) != 0);
11218}
11219
11220_ACEOF
11221if ac_fn_c_try_run "$LINENO"; then :
11222 gl_cv_cc_long_double_expbit0=`cat conftest.out`
11223else
11224 gl_cv_cc_long_double_expbit0="unknown"
11225fi
11226rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11227 conftest.$ac_objext conftest.beam conftest.$ac_ext
11228fi
11229
11230 rm -f conftest.out
11231
11232fi
11233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
11234$as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
11235 case "$gl_cv_cc_long_double_expbit0" in
11236 word*bit*)
11237 word=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
11238 bit=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
11239
11240cat >>confdefs.h <<_ACEOF
11241#define LDBL_EXPBIT0_WORD $word
11242_ACEOF
11243
11244
11245cat >>confdefs.h <<_ACEOF
11246#define LDBL_EXPBIT0_BIT $bit
11247_ACEOF
11248
11249 ;;
11250 esac
11251
11252
11253
11254 fi
11255
11256
11257
11258
88b48903
WN
11259
11260
11261
11262
11263 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
11264
11265
11266
11267
11268
11269
11270
11271
11272
88b48903 11273
c971b7fa 11274
c971b7fa 11275
88b48903
WN
11276 if test $gl_cv_have_include_next = yes; then
11277 gl_cv_next_math_h='<'math.h'>'
11278 else
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
11280$as_echo_n "checking absolute name of <math.h>... " >&6; }
11281if test "${gl_cv_next_math_h+set}" = set; then :
11282 $as_echo_n "(cached) " >&6
11283else
c971b7fa 11284
88b48903 11285 if test $ac_cv_header_math_h = yes; then
c971b7fa
PA
11286
11287
88b48903 11288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690e634 11289/* end confdefs.h. */
88b48903 11290#include <math.h>
8690e634 11291
8690e634 11292_ACEOF
88b48903
WN
11293 case "$host_os" in
11294 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11295 *) gl_absname_cpp="$ac_cpp" ;;
11296 esac
8690e634 11297
88b48903
WN
11298 case "$host_os" in
11299 mingw*)
11300 gl_dirsep_regex='[/\\]'
11301 ;;
11302 *)
11303 gl_dirsep_regex='\/'
11304 ;;
11305 esac
11306 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
8690e634 11307
88b48903
WN
11308 gl_header_literal_regex=`echo 'math.h' \
11309 | sed -e "$gl_make_literal_regex_sed"`
11310 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11311 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11312 s|^/[^/]|//&|
11313 p
11314 q
11315 }'
11316 gl_cv_next_math_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11317 sed -n "$gl_absolute_header_sed"`'"'
11318 else
11319 gl_cv_next_math_h='<'math.h'>'
11320 fi
8690e634 11321
c971b7fa 11322
88b48903
WN
11323fi
11324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
11325$as_echo "$gl_cv_next_math_h" >&6; }
11326 fi
11327 NEXT_MATH_H=$gl_cv_next_math_h
c971b7fa 11328
88b48903
WN
11329 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11330 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11331 gl_next_as_first_directive='<'math.h'>'
11332 else
11333 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11334 gl_next_as_first_directive=$gl_cv_next_math_h
11335 fi
11336 NEXT_AS_FIRST_DIRECTIVE_MATH_H=$gl_next_as_first_directive
8690e634 11337
c971b7fa 11338
c971b7fa
PA
11339
11340
c971b7fa 11341
88b48903
WN
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
11343$as_echo_n "checking whether NAN macro works... " >&6; }
11344if test "${gl_cv_header_math_nan_works+set}" = set; then :
c971b7fa
PA
11345 $as_echo_n "(cached) " >&6
11346else
8690e634
JK
11347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11348/* end confdefs.h. */
88b48903 11349#include <math.h>
c971b7fa
PA
11350int
11351main ()
11352{
88b48903
WN
11353/* Solaris 10 has a broken definition of NAN. Other platforms
11354 fail to provide NAN, or provide it only in C99 mode; this
11355 test only needs to fail when NAN is provided but wrong. */
11356 float f = 1.0f;
11357#ifdef NAN
11358 f = NAN;
11359#endif
11360 return f == 0;
c971b7fa
PA
11361 ;
11362 return 0;
11363}
11364_ACEOF
11365if ac_fn_c_try_compile "$LINENO"; then :
88b48903 11366 gl_cv_header_math_nan_works=yes
8690e634 11367else
88b48903 11368 gl_cv_header_math_nan_works=no
c971b7fa
PA
11369fi
11370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c971b7fa 11371fi
88b48903
WN
11372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
11373$as_echo "$gl_cv_header_math_nan_works" >&6; }
11374 if test $gl_cv_header_math_nan_works = no; then
11375 REPLACE_NAN=1
c971b7fa 11376 fi
88b48903
WN
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
11378$as_echo_n "checking whether HUGE_VAL works... " >&6; }
11379if test "${gl_cv_header_math_huge_val_works+set}" = set; then :
c971b7fa
PA
11380 $as_echo_n "(cached) " >&6
11381else
8690e634 11382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa 11383/* end confdefs.h. */
88b48903 11384#include <math.h>
c971b7fa
PA
11385int
11386main ()
11387{
88b48903
WN
11388/* Solaris 10 has a broken definition of HUGE_VAL. */
11389 double d = HUGE_VAL;
11390 return d == 0;
c971b7fa
PA
11391 ;
11392 return 0;
11393}
11394_ACEOF
11395if ac_fn_c_try_compile "$LINENO"; then :
88b48903 11396 gl_cv_header_math_huge_val_works=yes
8690e634 11397else
88b48903 11398 gl_cv_header_math_huge_val_works=no
c971b7fa
PA
11399fi
11400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c971b7fa 11401fi
88b48903
WN
11402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
11403$as_echo "$gl_cv_header_math_huge_val_works" >&6; }
11404 if test $gl_cv_header_math_huge_val_works = no; then
11405 REPLACE_HUGE_VAL=1
8690e634 11406 fi
c971b7fa 11407
c971b7fa 11408
88b48903
WN
11409 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
11410 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
11412$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
11413if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
8690e634
JK
11414 $as_echo_n "(cached) " >&6
11415else
11416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11417/* end confdefs.h. */
88b48903 11418#include <math.h>
8690e634
JK
11419int
11420main ()
11421{
88b48903
WN
11422#undef $gl_func
11423 (void) $gl_func;
8690e634
JK
11424 ;
11425 return 0;
11426}
11427_ACEOF
11428if ac_fn_c_try_compile "$LINENO"; then :
88b48903 11429 eval "$as_gl_Symbol=yes"
c971b7fa 11430else
88b48903 11431 eval "$as_gl_Symbol=no"
c971b7fa 11432fi
8690e634
JK
11433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11434fi
88b48903
WN
11435eval ac_res=\$$as_gl_Symbol
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11437$as_echo "$ac_res" >&6; }
11438 eval as_val=\$$as_gl_Symbol
11439 if test "x$as_val" = x""yes; then :
11440 cat >>confdefs.h <<_ACEOF
11441#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
11442_ACEOF
c971b7fa 11443
88b48903
WN
11444 eval ac_cv_have_decl_$gl_func=yes
11445fi
11446 done
c971b7fa
PA
11447
11448
11449
11450
11451
c971b7fa 11452
c971b7fa 11453
c971b7fa 11454
c971b7fa
PA
11455
11456
c971b7fa 11457
8690e634
JK
11458
11459 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
11460
11461
11462
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
11464$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
11465if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
c971b7fa
PA
11466 $as_echo_n "(cached) " >&6
11467else
8690e634
JK
11468
11469 case "$host_os" in
11470 # Guess no on AIX and OSF/1.
11471 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
11472 # Guess yes otherwise.
11473 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
11474 esac
11475 if test $LOCALE_JA != none; then
11476 if test "$cross_compiling" = yes; then :
11477 :
11478else
c971b7fa
PA
11479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11480/* end confdefs.h. */
c971b7fa 11481
8690e634
JK
11482#include <locale.h>
11483#include <string.h>
11484/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11485 <wchar.h>.
11486 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11487 included before <wchar.h>. */
11488#include <stddef.h>
11489#include <stdio.h>
11490#include <time.h>
11491#include <wchar.h>
11492int main ()
c971b7fa 11493{
8690e634
JK
11494 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
11495 {
11496 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
11497 mbstate_t state;
11498 wchar_t wc;
11499
11500 memset (&state, '\0', sizeof (mbstate_t));
11501 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
11502 if (mbsinit (&state))
11503 return 1;
11504 }
c971b7fa
PA
11505 return 0;
11506}
11507_ACEOF
8690e634
JK
11508if ac_fn_c_try_run "$LINENO"; then :
11509 gl_cv_func_mbrtowc_incomplete_state=yes
c971b7fa 11510else
8690e634 11511 gl_cv_func_mbrtowc_incomplete_state=no
c971b7fa 11512fi
8690e634
JK
11513rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11514 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 11515fi
c971b7fa 11516
8690e634 11517 fi
c971b7fa 11518
8690e634
JK
11519fi
11520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
11521$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
c971b7fa 11522
c971b7fa 11523
c971b7fa 11524
c971b7fa 11525
8690e634
JK
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
11527$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
11528if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
c971b7fa
PA
11529 $as_echo_n "(cached) " >&6
11530else
11531
8690e634
JK
11532 case "$host_os" in
11533 # Guess no on Solaris 8.
11534 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
11535 # Guess yes otherwise.
11536 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
11537 esac
11538 if test $LOCALE_ZH_CN != none; then
11539 if test "$cross_compiling" = yes; then :
11540 :
11541else
11542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa
PA
11543/* end confdefs.h. */
11544
8690e634
JK
11545#include <locale.h>
11546#include <stdlib.h>
11547#include <string.h>
11548/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11549 <wchar.h>.
11550 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11551 included before <wchar.h>. */
11552#include <stddef.h>
11553#include <stdio.h>
11554#include <time.h>
11555#include <wchar.h>
11556int main ()
c971b7fa 11557{
8690e634
JK
11558 /* This fails on Solaris 8:
11559 mbrtowc returns 2, and sets wc to 0x00F0.
11560 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
11561 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
11562 {
11563 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
11564 mbstate_t state;
11565 wchar_t wc;
11566
11567 memset (&state, '\0', sizeof (mbstate_t));
11568 if (mbrtowc (&wc, input + 3, 6, &state) != 4
11569 && mbtowc (&wc, input + 3, 6) == 4)
11570 return 1;
11571 }
c971b7fa
PA
11572 return 0;
11573}
11574_ACEOF
8690e634
JK
11575if ac_fn_c_try_run "$LINENO"; then :
11576 gl_cv_func_mbrtowc_sanitycheck=yes
c971b7fa 11577else
8690e634 11578 gl_cv_func_mbrtowc_sanitycheck=no
c971b7fa 11579fi
8690e634
JK
11580rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11581 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 11582fi
c971b7fa 11583
8690e634 11584 fi
c971b7fa 11585
8690e634
JK
11586fi
11587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
11588$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
11589
11590 REPLACE_MBSTATE_T=0
11591 case "$gl_cv_func_mbrtowc_incomplete_state" in
11592 *yes) ;;
11593 *) REPLACE_MBSTATE_T=1 ;;
11594 esac
11595 case "$gl_cv_func_mbrtowc_sanitycheck" in
11596 *yes) ;;
11597 *) REPLACE_MBSTATE_T=1 ;;
11598 esac
c971b7fa 11599 else
8690e634 11600 REPLACE_MBSTATE_T=1
c971b7fa
PA
11601 fi
11602
11603
11604
8690e634
JK
11605 if test $ac_cv_func_mbrtowc = no; then
11606 HAVE_MBRTOWC=0
11607 ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
11608/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11609 <wchar.h>.
11610 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11611 included before <wchar.h>. */
11612#include <stddef.h>
11613#include <stdio.h>
11614#include <time.h>
11615#include <wchar.h>
c971b7fa 11616
8690e634
JK
11617"
11618if test "x$ac_cv_have_decl_mbrtowc" = x""yes; then :
11619 ac_have_decl=1
11620else
11621 ac_have_decl=0
c971b7fa 11622fi
c971b7fa 11623
8690e634
JK
11624cat >>confdefs.h <<_ACEOF
11625#define HAVE_DECL_MBRTOWC $ac_have_decl
11626_ACEOF
c971b7fa 11627
8690e634
JK
11628 if test $ac_cv_have_decl_mbrtowc = yes; then
11629 REPLACE_MBRTOWC=1
11630 fi
11631 else
11632 if test $REPLACE_MBSTATE_T = 1; then
11633 REPLACE_MBRTOWC=1
11634 else
c971b7fa
PA
11635
11636
11637
8690e634
JK
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
11639$as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
11640if test "${gl_cv_func_mbrtowc_null_arg1+set}" = set; then :
11641 $as_echo_n "(cached) " >&6
c971b7fa 11642else
c971b7fa 11643
8690e634
JK
11644 case "$host_os" in
11645 # Guess no on Solaris.
11646 solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
11647 # Guess yes otherwise.
11648 *) gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
11649 esac
11650 if test $LOCALE_FR_UTF8 != none; then
11651 if test "$cross_compiling" = yes; then :
11652 :
11653else
11654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa
PA
11655/* end confdefs.h. */
11656
8690e634
JK
11657#include <locale.h>
11658#include <stdlib.h>
11659#include <string.h>
11660/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11661 <wchar.h>.
11662 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11663 included before <wchar.h>. */
11664#include <stddef.h>
11665#include <stdio.h>
11666#include <time.h>
11667#include <wchar.h>
11668int main ()
11669{
11670 int result = 0;
11671
11672 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
11673 {
11674 char input[] = "\303\237er";
11675 mbstate_t state;
11676 wchar_t wc;
11677 size_t ret;
11678
11679 memset (&state, '\0', sizeof (mbstate_t));
11680 wc = (wchar_t) 0xBADFACE;
11681 ret = mbrtowc (&wc, input, 5, &state);
11682 if (ret != 2)
11683 result |= 1;
11684 if (!mbsinit (&state))
11685 result |= 2;
c971b7fa 11686
8690e634
JK
11687 memset (&state, '\0', sizeof (mbstate_t));
11688 ret = mbrtowc (NULL, input, 5, &state);
11689 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
11690 result |= 4;
11691 if (!mbsinit (&state))
11692 result |= 8;
11693 }
11694 return result;
11695}
c971b7fa 11696_ACEOF
8690e634
JK
11697if ac_fn_c_try_run "$LINENO"; then :
11698 gl_cv_func_mbrtowc_null_arg1=yes
11699else
11700 gl_cv_func_mbrtowc_null_arg1=no
11701fi
11702rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11703 conftest.$ac_objext conftest.beam conftest.$ac_ext
11704fi
c971b7fa 11705
8690e634 11706 fi
c971b7fa 11707
c971b7fa 11708fi
8690e634
JK
11709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
11710$as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
c971b7fa 11711
c971b7fa 11712
c971b7fa 11713
c971b7fa 11714
8690e634
JK
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
11716$as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
11717if test "${gl_cv_func_mbrtowc_null_arg2+set}" = set; then :
11718 $as_echo_n "(cached) " >&6
11719else
c971b7fa 11720
8690e634
JK
11721 case "$host_os" in
11722 # Guess no on OSF/1.
11723 osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
11724 # Guess yes otherwise.
11725 *) gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
11726 esac
11727 if test $LOCALE_FR_UTF8 != none; then
11728 if test "$cross_compiling" = yes; then :
c971b7fa 11729 :
8690e634
JK
11730else
11731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11732/* end confdefs.h. */
11733
11734#include <locale.h>
11735#include <string.h>
11736/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11737 <wchar.h>.
11738 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11739 included before <wchar.h>. */
11740#include <stddef.h>
11741#include <stdio.h>
11742#include <time.h>
11743#include <wchar.h>
11744int main ()
11745{
11746 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
11747 {
11748 mbstate_t state;
11749 wchar_t wc;
11750 int ret;
11751
11752 memset (&state, '\0', sizeof (mbstate_t));
11753 wc = (wchar_t) 0xBADFACE;
11754 mbrtowc (&wc, NULL, 5, &state);
11755 /* Check that wc was not modified. */
11756 if (wc != (wchar_t) 0xBADFACE)
11757 return 1;
11758 }
11759 return 0;
11760}
11761_ACEOF
11762if ac_fn_c_try_run "$LINENO"; then :
11763 gl_cv_func_mbrtowc_null_arg2=yes
11764else
11765 gl_cv_func_mbrtowc_null_arg2=no
11766fi
11767rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11768 conftest.$ac_objext conftest.beam conftest.$ac_ext
11769fi
11770
11771 fi
11772
11773fi
11774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
11775$as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
c971b7fa
PA
11776
11777
11778
11779
11780
11781
8690e634
JK
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
11783$as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
11784if test "${gl_cv_func_mbrtowc_retval+set}" = set; then :
11785 $as_echo_n "(cached) " >&6
11786else
11787
11788 case "$host_os" in
11789 # Guess no on HP-UX, Solaris, native Windows.
11790 hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
11791 # Guess yes otherwise.
11792 *) gl_cv_func_mbrtowc_retval="guessing yes" ;;
11793 esac
11794 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
11795 || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
11796 if test "$cross_compiling" = yes; then :
c971b7fa 11797 :
8690e634
JK
11798else
11799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11800/* end confdefs.h. */
c971b7fa 11801
8690e634
JK
11802#include <locale.h>
11803#include <string.h>
11804/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11805 <wchar.h>.
11806 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11807 included before <wchar.h>. */
11808#include <stddef.h>
11809#include <stdio.h>
11810#include <time.h>
11811#include <wchar.h>
11812int main ()
11813{
11814 int result = 0;
11815 int found_some_locale = 0;
11816 /* This fails on Solaris. */
11817 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
11818 {
11819 char input[] = "B\303\274\303\237er"; /* "Büßer" */
11820 mbstate_t state;
11821 wchar_t wc;
11822
11823 memset (&state, '\0', sizeof (mbstate_t));
11824 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
11825 {
11826 input[1] = '\0';
11827 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
11828 result |= 1;
11829 }
11830 found_some_locale = 1;
11831 }
11832 /* This fails on HP-UX 11.11. */
11833 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
11834 {
11835 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
11836 mbstate_t state;
11837 wchar_t wc;
11838
11839 memset (&state, '\0', sizeof (mbstate_t));
11840 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
11841 {
11842 input[1] = '\0';
11843 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
11844 result |= 2;
11845 }
11846 found_some_locale = 1;
11847 }
11848 /* This fails on native Windows. */
11849 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
11850 {
11851 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
11852 mbstate_t state;
11853 wchar_t wc;
11854
11855 memset (&state, '\0', sizeof (mbstate_t));
11856 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
11857 {
11858 input[3] = '\0';
11859 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
11860 result |= 4;
11861 }
11862 found_some_locale = 1;
11863 }
11864 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
11865 {
11866 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
11867 mbstate_t state;
11868 wchar_t wc;
11869
11870 memset (&state, '\0', sizeof (mbstate_t));
11871 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
11872 {
11873 input[3] = '\0';
11874 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
11875 result |= 8;
11876 }
11877 found_some_locale = 1;
11878 }
11879 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
11880 {
11881 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
11882 mbstate_t state;
11883 wchar_t wc;
11884
11885 memset (&state, '\0', sizeof (mbstate_t));
11886 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
11887 {
11888 input[3] = '\0';
11889 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
11890 result |= 16;
11891 }
11892 found_some_locale = 1;
11893 }
11894 return (found_some_locale ? result : 77);
11895}
11896_ACEOF
11897if ac_fn_c_try_run "$LINENO"; then :
11898 gl_cv_func_mbrtowc_retval=yes
11899else
11900 if test $? != 77; then
11901 gl_cv_func_mbrtowc_retval=no
11902 fi
c971b7fa 11903
8690e634
JK
11904fi
11905rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11906 conftest.$ac_objext conftest.beam conftest.$ac_ext
11907fi
c971b7fa 11908
8690e634 11909 fi
c971b7fa 11910
8690e634
JK
11911fi
11912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
11913$as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
c971b7fa
PA
11914
11915
11916
11917
8690e634
JK
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
11919$as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
11920if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then :
c971b7fa
PA
11921 $as_echo_n "(cached) " >&6
11922else
8690e634
JK
11923
11924 case "$host_os" in
11925 # Guess no on Solaris 8 and 9.
11926 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
11927 # Guess yes otherwise.
11928 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
11929 esac
11930 if test $LOCALE_ZH_CN != none; then
11931 if test "$cross_compiling" = yes; then :
11932 :
c971b7fa
PA
11933else
11934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11935/* end confdefs.h. */
11936
8690e634 11937#include <locale.h>
c971b7fa 11938#include <string.h>
8690e634
JK
11939/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11940 <wchar.h>.
11941 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11942 included before <wchar.h>. */
11943#include <stddef.h>
11944#include <stdio.h>
11945#include <time.h>
11946#include <wchar.h>
11947int main ()
c971b7fa 11948{
8690e634
JK
11949 /* This fails on Solaris 8 and 9. */
11950 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
c971b7fa 11951 {
8690e634
JK
11952 mbstate_t state;
11953 wchar_t wc;
c971b7fa 11954
8690e634
JK
11955 memset (&state, '\0', sizeof (mbstate_t));
11956 if (mbrtowc (&wc, "", 1, &state) != 0)
11957 return 1;
11958 }
c971b7fa
PA
11959 return 0;
11960}
11961_ACEOF
11962if ac_fn_c_try_run "$LINENO"; then :
8690e634 11963 gl_cv_func_mbrtowc_nul_retval=yes
c971b7fa 11964else
8690e634 11965 gl_cv_func_mbrtowc_nul_retval=no
c971b7fa
PA
11966fi
11967rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11968 conftest.$ac_objext conftest.beam conftest.$ac_ext
11969fi
11970
8690e634
JK
11971 fi
11972
c971b7fa 11973fi
8690e634
JK
11974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
11975$as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
11976
11977 case "$gl_cv_func_mbrtowc_null_arg1" in
11978 *yes) ;;
11979 *)
11980$as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
11981
11982 REPLACE_MBRTOWC=1
11983 ;;
11984 esac
11985 case "$gl_cv_func_mbrtowc_null_arg2" in
11986 *yes) ;;
11987 *)
11988$as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
11989
11990 REPLACE_MBRTOWC=1
11991 ;;
11992 esac
11993 case "$gl_cv_func_mbrtowc_retval" in
11994 *yes) ;;
11995 *)
11996$as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
11997
11998 REPLACE_MBRTOWC=1
11999 ;;
12000 esac
12001 case "$gl_cv_func_mbrtowc_nul_retval" in
12002 *yes) ;;
12003 *)
12004$as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
12005
12006 REPLACE_MBRTOWC=1
12007 ;;
12008 esac
c971b7fa
PA
12009 fi
12010 fi
12011
a512b375 12012 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
c971b7fa 12013
c971b7fa 12014
c971b7fa
PA
12015
12016
12017
12018
12019
12020
8690e634
JK
12021 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
12022
12023
12024 :
c971b7fa 12025
a512b375 12026 fi
c971b7fa 12027
8690e634
JK
12028
12029
12030
12031
12032 GNULIB_MBRTOWC=1
12033
12034
12035
12036
12037
12038$as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
c971b7fa 12051
c971b7fa 12052
8690e634 12053 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
c971b7fa 12054
8690e634
JK
12055
12056
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
12058$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
12059if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
12060 $as_echo_n "(cached) " >&6
12061else
12062
12063 case "$host_os" in
12064 # Guess no on AIX and OSF/1.
12065 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
12066 # Guess yes otherwise.
12067 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
12068 esac
12069 if test $LOCALE_JA != none; then
12070 if test "$cross_compiling" = yes; then :
12071 :
c971b7fa
PA
12072else
12073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12074/* end confdefs.h. */
12075
8690e634
JK
12076#include <locale.h>
12077#include <string.h>
12078/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12079 <wchar.h>.
12080 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12081 included before <wchar.h>. */
12082#include <stddef.h>
12083#include <stdio.h>
12084#include <time.h>
12085#include <wchar.h>
12086int main ()
c971b7fa 12087{
8690e634 12088 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
c971b7fa 12089 {
8690e634
JK
12090 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
12091 mbstate_t state;
12092 wchar_t wc;
12093
12094 memset (&state, '\0', sizeof (mbstate_t));
12095 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
12096 if (mbsinit (&state))
12097 return 1;
c971b7fa 12098 }
c971b7fa
PA
12099 return 0;
12100}
12101_ACEOF
12102if ac_fn_c_try_run "$LINENO"; then :
8690e634 12103 gl_cv_func_mbrtowc_incomplete_state=yes
c971b7fa 12104else
8690e634 12105 gl_cv_func_mbrtowc_incomplete_state=no
c971b7fa
PA
12106fi
12107rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12108 conftest.$ac_objext conftest.beam conftest.$ac_ext
12109fi
12110
8690e634 12111 fi
c971b7fa
PA
12112
12113fi
8690e634
JK
12114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
12115$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
c971b7fa
PA
12116
12117
c971b7fa
PA
12118
12119
8690e634
JK
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
12121$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
12122if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
c971b7fa
PA
12123 $as_echo_n "(cached) " >&6
12124else
8690e634
JK
12125
12126 case "$host_os" in
12127 # Guess no on Solaris 8.
12128 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
12129 # Guess yes otherwise.
12130 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
12131 esac
12132 if test $LOCALE_ZH_CN != none; then
12133 if test "$cross_compiling" = yes; then :
12134 :
12135else
c971b7fa
PA
12136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12137/* end confdefs.h. */
8690e634
JK
12138
12139#include <locale.h>
12140#include <stdlib.h>
12141#include <string.h>
12142/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12143 <wchar.h>.
12144 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12145 included before <wchar.h>. */
c971b7fa 12146#include <stddef.h>
8690e634
JK
12147#include <stdio.h>
12148#include <time.h>
12149#include <wchar.h>
12150int main ()
c971b7fa 12151{
8690e634
JK
12152 /* This fails on Solaris 8:
12153 mbrtowc returns 2, and sets wc to 0x00F0.
12154 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
12155 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
12156 {
12157 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
12158 mbstate_t state;
12159 wchar_t wc;
12160
12161 memset (&state, '\0', sizeof (mbstate_t));
12162 if (mbrtowc (&wc, input + 3, 6, &state) != 4
12163 && mbtowc (&wc, input + 3, 6) == 4)
12164 return 1;
12165 }
c971b7fa
PA
12166 return 0;
12167}
12168_ACEOF
8690e634
JK
12169if ac_fn_c_try_run "$LINENO"; then :
12170 gl_cv_func_mbrtowc_sanitycheck=yes
c971b7fa 12171else
8690e634 12172 gl_cv_func_mbrtowc_sanitycheck=no
c971b7fa 12173fi
8690e634
JK
12174rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12175 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 12176fi
c971b7fa 12177
8690e634
JK
12178 fi
12179
12180fi
12181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
12182$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
c971b7fa 12183
8690e634
JK
12184 REPLACE_MBSTATE_T=0
12185 case "$gl_cv_func_mbrtowc_incomplete_state" in
12186 *yes) ;;
12187 *) REPLACE_MBSTATE_T=1 ;;
12188 esac
12189 case "$gl_cv_func_mbrtowc_sanitycheck" in
12190 *yes) ;;
12191 *) REPLACE_MBSTATE_T=1 ;;
12192 esac
12193 else
12194 REPLACE_MBSTATE_T=1
c971b7fa
PA
12195 fi
12196
c971b7fa 12197
8690e634 12198
8690e634
JK
12199 if test $ac_cv_func_mbsinit = no; then
12200 HAVE_MBSINIT=0
12201 ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
12202/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12203 <wchar.h>.
12204 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12205 included before <wchar.h>. */
12206#include <stddef.h>
12207#include <stdio.h>
12208#include <time.h>
12209#include <wchar.h>
12210
12211"
12212if test "x$ac_cv_have_decl_mbsinit" = x""yes; then :
12213 ac_have_decl=1
12214else
12215 ac_have_decl=0
c971b7fa 12216fi
c971b7fa 12217
8690e634
JK
12218cat >>confdefs.h <<_ACEOF
12219#define HAVE_DECL_MBSINIT $ac_have_decl
c971b7fa 12220_ACEOF
c971b7fa 12221
8690e634
JK
12222 if test $ac_cv_have_decl_mbsinit = yes; then
12223 REPLACE_MBSINIT=1
12224 fi
12225 else
12226 if test $REPLACE_MBSTATE_T = 1; then
12227 REPLACE_MBSINIT=1
12228 else
12229 case "$host_os" in
12230 mingw*) REPLACE_MBSINIT=1 ;;
12231 esac
12232 fi
12233 fi
c971b7fa 12234
a512b375 12235 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
c971b7fa
PA
12236
12237
12238
12239
12240
12241
12242
12243
8690e634 12244 gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
c971b7fa
PA
12245
12246
8690e634 12247 :
c971b7fa 12248
a512b375 12249 fi
c971b7fa 12250
c971b7fa 12251
c971b7fa 12252
c971b7fa
PA
12253
12254
8690e634 12255 GNULIB_MBSINIT=1
c971b7fa 12256
c971b7fa
PA
12257
12258
12259
12260
8690e634 12261$as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
c971b7fa
PA
12262
12263
c971b7fa 12264
c971b7fa 12265
c971b7fa
PA
12266
12267
12268
c971b7fa 12269
c971b7fa
PA
12270
12271
12272
12273
8690e634
JK
12274
12275 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
c971b7fa
PA
12276
12277
12278
8690e634
JK
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
12280$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
12281if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
12282 $as_echo_n "(cached) " >&6
12283else
c971b7fa 12284
8690e634
JK
12285 case "$host_os" in
12286 # Guess no on AIX and OSF/1.
12287 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
12288 # Guess yes otherwise.
12289 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
c971b7fa 12290 esac
8690e634
JK
12291 if test $LOCALE_JA != none; then
12292 if test "$cross_compiling" = yes; then :
12293 :
12294else
12295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa 12296/* end confdefs.h. */
c971b7fa 12297
8690e634
JK
12298#include <locale.h>
12299#include <string.h>
12300/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12301 <wchar.h>.
12302 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12303 included before <wchar.h>. */
12304#include <stddef.h>
12305#include <stdio.h>
12306#include <time.h>
12307#include <wchar.h>
12308int main ()
12309{
12310 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
12311 {
12312 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
12313 mbstate_t state;
12314 wchar_t wc;
12315
12316 memset (&state, '\0', sizeof (mbstate_t));
12317 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
12318 if (mbsinit (&state))
12319 return 1;
12320 }
c971b7fa
PA
12321 return 0;
12322}
12323_ACEOF
8690e634
JK
12324if ac_fn_c_try_run "$LINENO"; then :
12325 gl_cv_func_mbrtowc_incomplete_state=yes
12326else
12327 gl_cv_func_mbrtowc_incomplete_state=no
12328fi
12329rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12330 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 12331fi
c971b7fa 12332
8690e634 12333 fi
c971b7fa 12334
8690e634
JK
12335fi
12336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
12337$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
c971b7fa 12338
8690e634
JK
12339
12340
12341
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
12343$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
12344if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
c971b7fa
PA
12345 $as_echo_n "(cached) " >&6
12346else
8690e634
JK
12347
12348 case "$host_os" in
12349 # Guess no on Solaris 8.
12350 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
12351 # Guess yes otherwise.
12352 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
12353 esac
12354 if test $LOCALE_ZH_CN != none; then
12355 if test "$cross_compiling" = yes; then :
12356 :
12357else
c971b7fa
PA
12358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12359/* end confdefs.h. */
c971b7fa 12360
8690e634
JK
12361#include <locale.h>
12362#include <stdlib.h>
12363#include <string.h>
12364/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12365 <wchar.h>.
12366 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12367 included before <wchar.h>. */
12368#include <stddef.h>
12369#include <stdio.h>
12370#include <time.h>
12371#include <wchar.h>
12372int main ()
c971b7fa 12373{
8690e634
JK
12374 /* This fails on Solaris 8:
12375 mbrtowc returns 2, and sets wc to 0x00F0.
12376 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
12377 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
12378 {
12379 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
12380 mbstate_t state;
12381 wchar_t wc;
12382
12383 memset (&state, '\0', sizeof (mbstate_t));
12384 if (mbrtowc (&wc, input + 3, 6, &state) != 4
12385 && mbtowc (&wc, input + 3, 6) == 4)
12386 return 1;
12387 }
c971b7fa
PA
12388 return 0;
12389}
12390_ACEOF
8690e634
JK
12391if ac_fn_c_try_run "$LINENO"; then :
12392 gl_cv_func_mbrtowc_sanitycheck=yes
c971b7fa 12393else
8690e634 12394 gl_cv_func_mbrtowc_sanitycheck=no
c971b7fa 12395fi
8690e634
JK
12396rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12397 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 12398fi
8690e634
JK
12399
12400 fi
12401
12402fi
12403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
12404$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
12405
12406 REPLACE_MBSTATE_T=0
12407 case "$gl_cv_func_mbrtowc_incomplete_state" in
12408 *yes) ;;
12409 *) REPLACE_MBSTATE_T=1 ;;
12410 esac
12411 case "$gl_cv_func_mbrtowc_sanitycheck" in
12412 *yes) ;;
12413 *) REPLACE_MBSTATE_T=1 ;;
12414 esac
c971b7fa 12415 else
8690e634 12416 REPLACE_MBSTATE_T=1
c971b7fa
PA
12417 fi
12418
12419
c971b7fa 12420
8690e634
JK
12421 if test $ac_cv_func_mbsrtowcs = no; then
12422 HAVE_MBSRTOWCS=0
12423 ac_fn_c_check_decl "$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
12424/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12425 <wchar.h>.
12426 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12427 included before <wchar.h>. */
12428#include <stddef.h>
12429#include <stdio.h>
12430#include <time.h>
12431#include <wchar.h>
12432
12433"
12434if test "x$ac_cv_have_decl_mbsrtowcs" = x""yes; then :
12435 ac_have_decl=1
c971b7fa 12436else
8690e634 12437 ac_have_decl=0
c971b7fa 12438fi
c971b7fa 12439
8690e634
JK
12440cat >>confdefs.h <<_ACEOF
12441#define HAVE_DECL_MBSRTOWCS $ac_have_decl
12442_ACEOF
c971b7fa 12443
8690e634
JK
12444 if test $ac_cv_have_decl_mbsrtowcs = yes; then
12445 REPLACE_MBSRTOWCS=1
12446 fi
c971b7fa 12447 else
8690e634
JK
12448 if test $REPLACE_MBSTATE_T = 1; then
12449 REPLACE_MBSRTOWCS=1
12450 else
c971b7fa 12451
8690e634
JK
12452
12453
12454
12455
12456
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
12458$as_echo_n "checking whether mbsrtowcs works... " >&6; }
12459if test "${gl_cv_func_mbsrtowcs_works+set}" = set; then :
c971b7fa
PA
12460 $as_echo_n "(cached) " >&6
12461else
8690e634
JK
12462
12463 case "$host_os" in
12464 # Guess no on HP-UX, Solaris, mingw.
12465 hpux* | solaris* | mingw*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
12466 # Guess yes otherwise.
12467 *) gl_cv_func_mbsrtowcs_works="guessing yes" ;;
12468 esac
12469 if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
12470 if test "$cross_compiling" = yes; then :
12471 :
12472else
c971b7fa
PA
12473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12474/* end confdefs.h. */
c971b7fa 12475
8690e634
JK
12476#include <locale.h>
12477#include <string.h>
12478/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12479 <wchar.h>.
12480 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12481 included before <wchar.h>. */
12482#include <stddef.h>
12483#include <stdio.h>
12484#include <time.h>
12485#include <wchar.h>
12486int main ()
c971b7fa 12487{
8690e634
JK
12488 int result = 0;
12489 /* Test whether the function supports a NULL destination argument.
12490 This fails on native Windows. */
12491 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
12492 {
12493 const char input[] = "\337er";
12494 const char *src = input;
12495 mbstate_t state;
c971b7fa 12496
8690e634
JK
12497 memset (&state, '\0', sizeof (mbstate_t));
12498 if (mbsrtowcs (NULL, &src, 1, &state) != 3
12499 || src != input)
12500 result |= 1;
12501 }
12502 /* Test whether the function works when started with a conversion state
12503 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
12504 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
12505 {
12506 const char input[] = "B\303\274\303\237er";
12507 mbstate_t state;
12508
12509 memset (&state, '\0', sizeof (mbstate_t));
12510 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
12511 if (!mbsinit (&state))
12512 {
12513 const char *src = input + 2;
12514 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
12515 result |= 2;
12516 }
12517 }
12518 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
12519 {
12520 const char input[] = "<\306\374\313\334\270\354>";
12521 mbstate_t state;
12522
12523 memset (&state, '\0', sizeof (mbstate_t));
12524 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
12525 if (!mbsinit (&state))
12526 {
12527 const char *src = input + 4;
12528 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
12529 result |= 4;
12530 }
12531 }
12532 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
12533 {
12534 const char input[] = "B\250\271\201\060\211\070er";
12535 mbstate_t state;
12536
12537 memset (&state, '\0', sizeof (mbstate_t));
12538 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
12539 if (!mbsinit (&state))
12540 {
12541 const char *src = input + 2;
12542 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
12543 result |= 8;
12544 }
12545 }
12546 return result;
c971b7fa
PA
12547}
12548_ACEOF
8690e634
JK
12549if ac_fn_c_try_run "$LINENO"; then :
12550 gl_cv_func_mbsrtowcs_works=yes
c971b7fa 12551else
8690e634 12552 gl_cv_func_mbsrtowcs_works=no
c971b7fa 12553fi
8690e634
JK
12554rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12555 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 12556fi
8690e634
JK
12557
12558 fi
12559
12560fi
12561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
12562$as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
12563
12564 case "$gl_cv_func_mbsrtowcs_works" in
12565 *yes) ;;
12566 *) REPLACE_MBSRTOWCS=1 ;;
12567 esac
12568 fi
c971b7fa
PA
12569 fi
12570
a512b375 12571 if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
c971b7fa 12572
c971b7fa 12573
c971b7fa 12574
c971b7fa 12575
c971b7fa 12576
c971b7fa 12577
c971b7fa
PA
12578
12579
8690e634
JK
12580 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext"
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
12591
12592
12593 :
12594
a512b375 12595 fi
8690e634
JK
12596
12597
12598
12599
12600
12601 GNULIB_MBSRTOWCS=1
12602
12603
12604
12605
12606
12607$as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
c971b7fa
PA
12608
12609
12610
12611
a512b375 12612 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
c971b7fa
PA
12613
12614
12615
12616
12617
12618
12619
12620
12621 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
12622
12623
12624 for ac_header in bp-sym.h
12625do :
12626 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
12627if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
12628 cat >>confdefs.h <<_ACEOF
12629#define HAVE_BP_SYM_H 1
12630_ACEOF
12631
12632fi
12633
12634done
12635
12636
a512b375 12637 fi
c971b7fa
PA
12638
12639
12640
12641
12642
12643 GNULIB_MEMCHR=1
12644
12645
12646
12647
12648
12649$as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
12650
12651
12652
12653
12654
12655 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
12657$as_echo_n "checking whether memmem works in linear time... " >&6; }
12658if test "${gl_cv_func_memmem_works_fast+set}" = set; then :
12659 $as_echo_n "(cached) " >&6
12660else
12661 if test "$cross_compiling" = yes; then :
12662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12663/* end confdefs.h. */
12664
12665#include <features.h>
12666#ifdef __GNU_LIBRARY__
12667 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
12668 && !defined __UCLIBC__
12669 Lucky user
12670 #endif
12671#endif
12672#ifdef __CYGWIN__
12673 #include <cygwin/version.h>
12674 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
12675 Lucky user
12676 #endif
12677#endif
12678
12679_ACEOF
12680if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12681 $EGREP "Lucky user" >/dev/null 2>&1; then :
40a73391 12682 gl_cv_func_memmem_works_fast="guessing yes"
c971b7fa
PA
12683else
12684 gl_cv_func_memmem_works_fast="guessing no"
12685fi
12686rm -f conftest*
12687
12688
12689else
12690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12691/* end confdefs.h. */
12692
12693#include <signal.h> /* for signal */
12694#include <string.h> /* for memmem */
12695#include <stdlib.h> /* for malloc */
12696#include <unistd.h> /* for alarm */
12697static void quit (int sig) { exit (sig + 128); }
12698
12699int
12700main ()
12701{
12702
12703 int result = 0;
12704 size_t m = 1000000;
12705 char *haystack = (char *) malloc (2 * m + 1);
12706 char *needle = (char *) malloc (m + 1);
12707 /* Failure to compile this test due to missing alarm is okay,
12708 since all such platforms (mingw) also lack memmem. */
12709 signal (SIGALRM, quit);
12710 alarm (5);
12711 /* Check for quadratic performance. */
12712 if (haystack && needle)
12713 {
12714 memset (haystack, 'A', 2 * m);
12715 haystack[2 * m] = 'B';
12716 memset (needle, 'A', m);
12717 needle[m] = 'B';
12718 if (!memmem (haystack, 2 * m + 1, needle, m + 1))
12719 result |= 1;
12720 }
12721 return result;
12722
12723 ;
12724 return 0;
12725}
12726_ACEOF
12727if ac_fn_c_try_run "$LINENO"; then :
12728 gl_cv_func_memmem_works_fast=yes
12729else
12730 gl_cv_func_memmem_works_fast=no
12731fi
12732rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12733 conftest.$ac_objext conftest.beam conftest.$ac_ext
12734fi
12735
12736
12737fi
12738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
12739$as_echo "$gl_cv_func_memmem_works_fast" >&6; }
40a73391
JK
12740 case "$gl_cv_func_memmem_works_fast" in
12741 *yes) ;;
12742 *)
12743 REPLACE_MEMMEM=1
12744 ;;
12745 esac
c971b7fa
PA
12746 fi
12747
a512b375 12748 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
c971b7fa
PA
12749
12750
12751
12752
12753
12754
12755
12756
12757 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
12758
a512b375 12759 fi
c971b7fa
PA
12760
12761
12762
12763
12764 for ac_func in memmem
12765do :
12766 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
12767if test "x$ac_cv_func_memmem" = x""yes; then :
12768 cat >>confdefs.h <<_ACEOF
12769#define HAVE_MEMMEM 1
12770_ACEOF
12771
12772fi
12773done
12774
12775 if test $ac_cv_func_memmem = yes; then
12776 HAVE_MEMMEM=1
12777 else
12778 HAVE_MEMMEM=0
12779 fi
12780
c971b7fa
PA
12781 if test $ac_cv_have_decl_memmem = no; then
12782 HAVE_DECL_MEMMEM=0
12783 else
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
12785$as_echo_n "checking whether memmem works... " >&6; }
12786if test "${gl_cv_func_memmem_works_always+set}" = set; then :
12787 $as_echo_n "(cached) " >&6
12788else
12789 if test "$cross_compiling" = yes; then :
12790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12791/* end confdefs.h. */
12792
12793#ifdef __GNU_LIBRARY__
12794 #include <features.h>
12795 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
12796 || __GLIBC_MINOR__ > 12)) \
12797 || (__GLIBC__ > 2)) \
12798 || defined __UCLIBC__
12799 Lucky user
12800 #endif
12801#elif defined __CYGWIN__
12802 #include <cygwin/version.h>
12803 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
12804 Lucky user
12805 #endif
12806#else
12807 Lucky user
12808#endif
12809
12810_ACEOF
12811if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12812 $EGREP "Lucky user" >/dev/null 2>&1; then :
40a73391 12813 gl_cv_func_memmem_works_always="guessing yes"
c971b7fa
PA
12814else
12815 gl_cv_func_memmem_works_always="guessing no"
12816fi
12817rm -f conftest*
12818
12819
12820else
12821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12822/* end confdefs.h. */
12823
12824#include <string.h> /* for memmem */
12825#define P "_EF_BF_BD"
12826#define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
12827#define NEEDLE P P P P P
12828
12829int
12830main ()
12831{
12832
12833 int result = 0;
12834 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
12835 result |= 1;
12836 /* Check for empty needle behavior. */
12837 {
12838 const char *haystack = "AAA";
12839 if (memmem (haystack, 3, NULL, 0) != haystack)
12840 result |= 2;
12841 }
12842 return result;
12843
12844 ;
12845 return 0;
12846}
12847_ACEOF
12848if ac_fn_c_try_run "$LINENO"; then :
12849 gl_cv_func_memmem_works_always=yes
12850else
12851 gl_cv_func_memmem_works_always=no
12852fi
12853rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12854 conftest.$ac_objext conftest.beam conftest.$ac_ext
12855fi
12856
12857
12858fi
12859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
12860$as_echo "$gl_cv_func_memmem_works_always" >&6; }
40a73391
JK
12861 case "$gl_cv_func_memmem_works_always" in
12862 *yes) ;;
12863 *)
12864 REPLACE_MEMMEM=1
12865 ;;
12866 esac
c971b7fa
PA
12867 fi
12868 :
12869
a512b375 12870 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
c971b7fa
PA
12871
12872
12873
12874
12875
12876
12877
12878
12879 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
12880
a512b375 12881 fi
c971b7fa
PA
12882
12883
12884
12885
12886
12887 GNULIB_MEMMEM=1
12888
12889
12890
12891
12892
8690e634
JK
12893$as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
12894
12895
12896
12897
12898
8839a007
PA
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
12900$as_echo_n "checking for ssize_t... " >&6; }
12901if test "${gt_cv_ssize_t+set}" = set; then :
12902 $as_echo_n "(cached) " >&6
12903else
12904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12905/* end confdefs.h. */
12906#include <sys/types.h>
12907int
12908main ()
12909{
12910int x = sizeof (ssize_t *) + sizeof (ssize_t);
12911 return !x;
12912 ;
12913 return 0;
12914}
12915_ACEOF
12916if ac_fn_c_try_compile "$LINENO"; then :
12917 gt_cv_ssize_t=yes
12918else
12919 gt_cv_ssize_t=no
12920fi
12921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12922fi
12923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
12924$as_echo "$gt_cv_ssize_t" >&6; }
12925 if test $gt_cv_ssize_t = no; then
12926
12927$as_echo "#define ssize_t int" >>confdefs.h
12928
12929 fi
12930
12931
8690e634
JK
12932
12933
12934 # Define two additional variables used in the Makefile substitution.
12935
12936 if test "$ac_cv_header_stdbool_h" = yes; then
12937 STDBOOL_H=''
12938 else
12939 STDBOOL_H='stdbool.h'
12940 fi
12941
12942 if test -n "$STDBOOL_H"; then
12943 GL_GENERATE_STDBOOL_H_TRUE=
12944 GL_GENERATE_STDBOOL_H_FALSE='#'
12945else
12946 GL_GENERATE_STDBOOL_H_TRUE='#'
12947 GL_GENERATE_STDBOOL_H_FALSE=
12948fi
12949
12950
12951 if test "$ac_cv_type__Bool" = yes; then
12952 HAVE__BOOL=1
12953 else
12954 HAVE__BOOL=0
12955 fi
12956
12957
12958
12959
12960
12961 STDDEF_H=
12962 if test $gt_cv_c_wchar_t = no; then
12963 HAVE_WCHAR_T=0
12964 STDDEF_H=stddef.h
12965 fi
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
12967$as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
12968if test "${gl_cv_decl_null_works+set}" = set; then :
12969 $as_echo_n "(cached) " >&6
12970else
12971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12972/* end confdefs.h. */
12973#include <stddef.h>
12974 int test[2 * (sizeof NULL == sizeof (void *)) -1];
12975
12976int
12977main ()
12978{
12979
12980 ;
12981 return 0;
12982}
12983_ACEOF
12984if ac_fn_c_try_compile "$LINENO"; then :
12985 gl_cv_decl_null_works=yes
12986else
12987 gl_cv_decl_null_works=no
12988fi
12989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12990fi
12991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
12992$as_echo "$gl_cv_decl_null_works" >&6; }
12993 if test $gl_cv_decl_null_works = no; then
12994 REPLACE_NULL=1
12995 STDDEF_H=stddef.h
12996 fi
12997
12998 if test -n "$STDDEF_H"; then
12999 GL_GENERATE_STDDEF_H_TRUE=
13000 GL_GENERATE_STDDEF_H_FALSE='#'
13001else
13002 GL_GENERATE_STDDEF_H_TRUE='#'
13003 GL_GENERATE_STDDEF_H_FALSE=
13004fi
13005
13006 if test -n "$STDDEF_H"; then
13007
13008
13009
13010
13011
13012
13013
13014
13015 if test $gl_cv_have_include_next = yes; then
13016 gl_cv_next_stddef_h='<'stddef.h'>'
13017 else
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
13019$as_echo_n "checking absolute name of <stddef.h>... " >&6; }
13020if test "${gl_cv_next_stddef_h+set}" = set; then :
13021 $as_echo_n "(cached) " >&6
13022else
13023
13024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13025/* end confdefs.h. */
13026#include <stddef.h>
13027
13028_ACEOF
13029 case "$host_os" in
13030 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13031 *) gl_absname_cpp="$ac_cpp" ;;
13032 esac
13033
13034 case "$host_os" in
13035 mingw*)
13036 gl_dirsep_regex='[/\\]'
13037 ;;
13038 *)
13039 gl_dirsep_regex='\/'
13040 ;;
13041 esac
13042 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
13043
13044 gl_header_literal_regex=`echo 'stddef.h' \
13045 | sed -e "$gl_make_literal_regex_sed"`
13046 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13047 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13048 s|^/[^/]|//&|
13049 p
13050 q
13051 }'
13052 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13053 sed -n "$gl_absolute_header_sed"`'"'
13054
13055
13056fi
13057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
13058$as_echo "$gl_cv_next_stddef_h" >&6; }
13059 fi
13060 NEXT_STDDEF_H=$gl_cv_next_stddef_h
13061
13062 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13063 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13064 gl_next_as_first_directive='<'stddef.h'>'
13065 else
13066 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13067 gl_next_as_first_directive=$gl_cv_next_stddef_h
13068 fi
13069 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
13070
13071
13072
13073
13074 fi
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
8690e634 13089
8839a007
PA
13090 if test $gl_cv_have_include_next = yes; then
13091 gl_cv_next_sys_types_h='<'sys/types.h'>'
13092 else
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
13094$as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
13095if test "${gl_cv_next_sys_types_h+set}" = set; then :
13096 $as_echo_n "(cached) " >&6
13097else
13098
13099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13100/* end confdefs.h. */
13101#include <sys/types.h>
13102
13103_ACEOF
13104 case "$host_os" in
13105 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13106 *) gl_absname_cpp="$ac_cpp" ;;
13107 esac
13108
13109 case "$host_os" in
13110 mingw*)
13111 gl_dirsep_regex='[/\\]'
13112 ;;
13113 *)
13114 gl_dirsep_regex='\/'
13115 ;;
13116 esac
13117 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
13118
13119 gl_header_literal_regex=`echo 'sys/types.h' \
13120 | sed -e "$gl_make_literal_regex_sed"`
13121 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13122 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13123 s|^/[^/]|//&|
13124 p
13125 q
13126 }'
13127 gl_cv_next_sys_types_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13128 sed -n "$gl_absolute_header_sed"`'"'
13129
13130
13131fi
13132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
13133$as_echo "$gl_cv_next_sys_types_h" >&6; }
13134 fi
13135 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
13136
13137 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13138 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13139 gl_next_as_first_directive='<'sys/types.h'>'
13140 else
13141 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13142 gl_next_as_first_directive=$gl_cv_next_sys_types_h
13143 fi
13144 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170 if test $gl_cv_have_include_next = yes; then
13171 gl_cv_next_unistd_h='<'unistd.h'>'
13172 else
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
13174$as_echo_n "checking absolute name of <unistd.h>... " >&6; }
13175if test "${gl_cv_next_unistd_h+set}" = set; then :
13176 $as_echo_n "(cached) " >&6
13177else
13178
13179 if test $ac_cv_header_unistd_h = yes; then
13180
13181
13182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13183/* end confdefs.h. */
13184#include <unistd.h>
13185
13186_ACEOF
13187 case "$host_os" in
13188 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13189 *) gl_absname_cpp="$ac_cpp" ;;
13190 esac
13191
13192 case "$host_os" in
13193 mingw*)
13194 gl_dirsep_regex='[/\\]'
13195 ;;
13196 *)
13197 gl_dirsep_regex='\/'
13198 ;;
13199 esac
13200 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
13201
13202 gl_header_literal_regex=`echo 'unistd.h' \
13203 | sed -e "$gl_make_literal_regex_sed"`
13204 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13205 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13206 s|^/[^/]|//&|
13207 p
13208 q
13209 }'
13210 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13211 sed -n "$gl_absolute_header_sed"`'"'
13212 else
13213 gl_cv_next_unistd_h='<'unistd.h'>'
13214 fi
13215
13216
13217fi
13218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
13219$as_echo "$gl_cv_next_unistd_h" >&6; }
13220 fi
13221 NEXT_UNISTD_H=$gl_cv_next_unistd_h
13222
13223 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13224 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13225 gl_next_as_first_directive='<'unistd.h'>'
13226 else
13227 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13228 gl_next_as_first_directive=$gl_cv_next_unistd_h
13229 fi
13230 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
13231
13232
13233
13234
13235 if test $ac_cv_header_unistd_h = yes; then
13236 HAVE_UNISTD_H=1
13237 else
13238 HAVE_UNISTD_H=0
13239 fi
13240
13241
13242
13243
13244
13245
13246
13247 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
13248 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
13250$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
13251if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
13252 $as_echo_n "(cached) " >&6
13253else
13254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13255/* end confdefs.h. */
13256
13257#if HAVE_UNISTD_H
13258# include <unistd.h>
13259#endif
13260/* Some systems declare various items in the wrong headers. */
13261#if !(defined __GLIBC__ && !defined __UCLIBC__)
13262# include <fcntl.h>
13263# include <stdio.h>
13264# include <stdlib.h>
13265# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
13266# include <io.h>
13267# endif
13268#endif
13269
13270int
13271main ()
13272{
13273#undef $gl_func
13274 (void) $gl_func;
13275 ;
13276 return 0;
13277}
13278_ACEOF
13279if ac_fn_c_try_compile "$LINENO"; then :
13280 eval "$as_gl_Symbol=yes"
13281else
13282 eval "$as_gl_Symbol=no"
13283fi
13284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13285fi
13286eval ac_res=\$$as_gl_Symbol
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13288$as_echo "$ac_res" >&6; }
13289 eval as_val=\$$as_gl_Symbol
13290 if test "x$as_val" = x""yes; then :
13291 cat >>confdefs.h <<_ACEOF
13292#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
13293_ACEOF
13294
13295 eval ac_cv_have_decl_$gl_func=yes
13296fi
13297 done
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309
8690e634
JK
13310
13311
13312 if test $gl_cv_have_include_next = yes; then
13313 gl_cv_next_wchar_h='<'wchar.h'>'
13314 else
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
13316$as_echo_n "checking absolute name of <wchar.h>... " >&6; }
13317if test "${gl_cv_next_wchar_h+set}" = set; then :
13318 $as_echo_n "(cached) " >&6
13319else
13320
13321 if test $ac_cv_header_wchar_h = yes; then
13322
13323
13324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13325/* end confdefs.h. */
13326#include <wchar.h>
13327
13328_ACEOF
13329 case "$host_os" in
13330 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13331 *) gl_absname_cpp="$ac_cpp" ;;
13332 esac
13333
13334 case "$host_os" in
13335 mingw*)
13336 gl_dirsep_regex='[/\\]'
13337 ;;
13338 *)
13339 gl_dirsep_regex='\/'
13340 ;;
13341 esac
13342 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
13343
13344 gl_header_literal_regex=`echo 'wchar.h' \
13345 | sed -e "$gl_make_literal_regex_sed"`
13346 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13347 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13348 s|^/[^/]|//&|
13349 p
13350 q
13351 }'
13352 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13353 sed -n "$gl_absolute_header_sed"`'"'
13354 else
13355 gl_cv_next_wchar_h='<'wchar.h'>'
13356 fi
13357
13358
13359fi
13360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
13361$as_echo "$gl_cv_next_wchar_h" >&6; }
13362 fi
13363 NEXT_WCHAR_H=$gl_cv_next_wchar_h
13364
13365 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13366 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13367 gl_next_as_first_directive='<'wchar.h'>'
13368 else
13369 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13370 gl_next_as_first_directive=$gl_cv_next_wchar_h
13371 fi
13372 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
13373
13374
13375
13376
13377 if test $ac_cv_header_wchar_h = yes; then
13378 HAVE_WCHAR_H=1
13379 else
13380 HAVE_WCHAR_H=0
13381 fi
13382
c971b7fa
PA
13383
13384
13385
13386
8690e634
JK
13387 if test $gt_cv_c_wint_t = yes; then
13388 HAVE_WINT_T=1
13389 else
13390 HAVE_WINT_T=0
13391 fi
c971b7fa
PA
13392
13393
13394
8690e634
JK
13395 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
13396 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
13398$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
13399if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
c971b7fa
PA
13400 $as_echo_n "(cached) " >&6
13401else
13402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13403/* end confdefs.h. */
8690e634
JK
13404
13405/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13406 <wchar.h>.
13407 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13408 included before <wchar.h>. */
13409#if !(defined __GLIBC__ && !defined __UCLIBC__)
13410# include <stddef.h>
13411# include <stdio.h>
13412# include <time.h>
13413#endif
13414#include <wchar.h>
c971b7fa
PA
13415
13416int
13417main ()
13418{
8690e634
JK
13419#undef $gl_func
13420 (void) $gl_func;
c971b7fa
PA
13421 ;
13422 return 0;
13423}
13424_ACEOF
13425if ac_fn_c_try_compile "$LINENO"; then :
8690e634 13426 eval "$as_gl_Symbol=yes"
c971b7fa 13427else
8690e634 13428 eval "$as_gl_Symbol=no"
c971b7fa
PA
13429fi
13430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13431fi
8690e634
JK
13432eval ac_res=\$$as_gl_Symbol
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13434$as_echo "$ac_res" >&6; }
13435 eval as_val=\$$as_gl_Symbol
13436 if test "x$as_val" = x""yes; then :
13437 cat >>confdefs.h <<_ACEOF
13438#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
13439_ACEOF
c971b7fa 13440
8690e634 13441 eval ac_cv_have_decl_$gl_func=yes
c971b7fa 13442fi
8690e634
JK
13443 done
13444
13445
13446
13447
13448
13449
13450
8690e634
JK
13451 if test $ac_cv_func_iswcntrl = yes; then
13452 HAVE_ISWCNTRL=1
13453 else
13454 HAVE_ISWCNTRL=0
13455 fi
13456
13457
13458
8690e634
JK
13459 if test $gt_cv_c_wint_t = yes; then
13460 HAVE_WINT_T=1
13461 else
13462 HAVE_WINT_T=0
13463 fi
13464
13465
13466
13467
13468
13469
c971b7fa 13470
8690e634 13471
c971b7fa
PA
13472
13473
13474
13475 if test $gl_cv_have_include_next = yes; then
8690e634 13476 gl_cv_next_wctype_h='<'wctype.h'>'
c971b7fa 13477 else
8690e634
JK
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
13479$as_echo_n "checking absolute name of <wctype.h>... " >&6; }
13480if test "${gl_cv_next_wctype_h+set}" = set; then :
c971b7fa
PA
13481 $as_echo_n "(cached) " >&6
13482else
13483
8690e634
JK
13484 if test $ac_cv_header_wctype_h = yes; then
13485
13486
c971b7fa
PA
13487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13488/* end confdefs.h. */
8690e634 13489#include <wctype.h>
c971b7fa
PA
13490
13491_ACEOF
13492 case "$host_os" in
13493 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13494 *) gl_absname_cpp="$ac_cpp" ;;
13495 esac
13496
13497 case "$host_os" in
13498 mingw*)
13499 gl_dirsep_regex='[/\\]'
13500 ;;
13501 *)
13502 gl_dirsep_regex='\/'
13503 ;;
13504 esac
13505 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
13506
8690e634 13507 gl_header_literal_regex=`echo 'wctype.h' \
c971b7fa
PA
13508 | sed -e "$gl_make_literal_regex_sed"`
13509 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13510 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13511 s|^/[^/]|//&|
13512 p
13513 q
13514 }'
8690e634 13515 gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
c971b7fa 13516 sed -n "$gl_absolute_header_sed"`'"'
8690e634
JK
13517 else
13518 gl_cv_next_wctype_h='<'wctype.h'>'
13519 fi
c971b7fa
PA
13520
13521
13522fi
8690e634
JK
13523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
13524$as_echo "$gl_cv_next_wctype_h" >&6; }
c971b7fa 13525 fi
8690e634 13526 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
c971b7fa
PA
13527
13528 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13529 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8690e634 13530 gl_next_as_first_directive='<'wctype.h'>'
c971b7fa
PA
13531 else
13532 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8690e634 13533 gl_next_as_first_directive=$gl_cv_next_wctype_h
c971b7fa 13534 fi
8690e634
JK
13535 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
13536
13537
13538
13539
13540 if test $ac_cv_header_wctype_h = yes; then
13541 if test $ac_cv_func_iswcntrl = yes; then
13542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
13543$as_echo_n "checking whether iswcntrl works... " >&6; }
13544if test "${gl_cv_func_iswcntrl_works+set}" = set; then :
13545 $as_echo_n "(cached) " >&6
13546else
13547
13548 if test "$cross_compiling" = yes; then :
13549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13550/* end confdefs.h. */
13551#include <stdlib.h>
13552 #if __GNU_LIBRARY__ == 1
13553 Linux libc5 i18n is broken.
13554 #endif
13555int
13556main ()
13557{
13558
13559 ;
13560 return 0;
13561}
13562_ACEOF
13563if ac_fn_c_try_compile "$LINENO"; then :
13564 gl_cv_func_iswcntrl_works="guessing yes"
13565else
13566 gl_cv_func_iswcntrl_works="guessing no"
13567fi
13568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13569
13570else
13571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13572/* end confdefs.h. */
13573
13574 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
13575 included before <wchar.h>.
13576 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
13577 must be included before <wchar.h>. */
13578 #include <stddef.h>
13579 #include <stdio.h>
13580 #include <time.h>
13581 #include <wchar.h>
13582 #include <wctype.h>
13583 int main () { return iswprint ('x') == 0; }
13584
13585_ACEOF
13586if ac_fn_c_try_run "$LINENO"; then :
13587 gl_cv_func_iswcntrl_works=yes
13588else
13589 gl_cv_func_iswcntrl_works=no
13590fi
13591rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13592 conftest.$ac_objext conftest.beam conftest.$ac_ext
13593fi
13594
13595
13596fi
13597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
13598$as_echo "$gl_cv_func_iswcntrl_works" >&6; }
13599 fi
13600 HAVE_WCTYPE_H=1
13601 else
13602 HAVE_WCTYPE_H=0
13603 fi
13604
13605
13606 case "$gl_cv_func_iswcntrl_works" in
13607 *yes) REPLACE_ISWCNTRL=0 ;;
13608 *) REPLACE_ISWCNTRL=1 ;;
13609 esac
13610
13611
13612 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
13613 :
13614 fi
13615
13616 if test $REPLACE_ISWCNTRL = 1; then
13617 REPLACE_TOWLOWER=1
13618 else
13619 for ac_func in towlower
13620do :
13621 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
13622if test "x$ac_cv_func_towlower" = x""yes; then :
13623 cat >>confdefs.h <<_ACEOF
13624#define HAVE_TOWLOWER 1
13625_ACEOF
13626
13627fi
13628done
13629
13630 if test $ac_cv_func_towlower = yes; then
13631 REPLACE_TOWLOWER=0
13632 else
13633 ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
13634 included before <wchar.h>.
13635 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
13636 must be included before <wchar.h>. */
13637 #include <stddef.h>
13638 #include <stdio.h>
13639 #include <time.h>
13640 #include <wchar.h>
13641 #if HAVE_WCTYPE_H
13642 # include <wctype.h>
13643 #endif
13644
13645"
13646if test "x$ac_cv_have_decl_towlower" = x""yes; then :
13647 ac_have_decl=1
13648else
13649 ac_have_decl=0
13650fi
13651
13652cat >>confdefs.h <<_ACEOF
13653#define HAVE_DECL_TOWLOWER $ac_have_decl
13654_ACEOF
13655
13656 if test $ac_cv_have_decl_towlower = yes; then
13657 REPLACE_TOWLOWER=1
13658 else
13659 REPLACE_TOWLOWER=0
13660 fi
13661 fi
13662 fi
13663
13664
13665 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
13666 :
13667 fi
13668
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
13670$as_echo_n "checking for wctype_t... " >&6; }
13671if test "${gl_cv_type_wctype_t+set}" = set; then :
13672 $as_echo_n "(cached) " >&6
13673else
13674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13675/* end confdefs.h. */
13676/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
13677 included before <wchar.h>.
13678 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
13679 must be included before <wchar.h>. */
13680 #include <stddef.h>
13681 #include <stdio.h>
13682 #include <time.h>
13683 #include <wchar.h>
13684 #if HAVE_WCTYPE_H
13685 # include <wctype.h>
13686 #endif
13687 wctype_t a;
13688
13689int
13690main ()
13691{
13692
13693 ;
13694 return 0;
13695}
13696_ACEOF
13697if ac_fn_c_try_compile "$LINENO"; then :
13698 gl_cv_type_wctype_t=yes
13699else
13700 gl_cv_type_wctype_t=no
13701fi
13702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c971b7fa 13703
8690e634
JK
13704fi
13705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
13706$as_echo "$gl_cv_type_wctype_t" >&6; }
13707 if test $gl_cv_type_wctype_t = no; then
13708 HAVE_WCTYPE_T=0
13709 fi
13710
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
13712$as_echo_n "checking for wctrans_t... " >&6; }
13713if test "${gl_cv_type_wctrans_t+set}" = set; then :
13714 $as_echo_n "(cached) " >&6
13715else
13716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13717/* end confdefs.h. */
13718/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
13719 included before <wchar.h>.
13720 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
13721 must be included before <wchar.h>. */
13722 #include <stddef.h>
13723 #include <stdio.h>
13724 #include <time.h>
13725 #include <wchar.h>
13726 #include <wctype.h>
13727 wctrans_t a;
c971b7fa 13728
8690e634
JK
13729int
13730main ()
13731{
c971b7fa 13732
8690e634
JK
13733 ;
13734 return 0;
13735}
13736_ACEOF
13737if ac_fn_c_try_compile "$LINENO"; then :
13738 gl_cv_type_wctrans_t=yes
13739else
13740 gl_cv_type_wctrans_t=no
13741fi
13742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c971b7fa 13743
8690e634
JK
13744fi
13745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
13746$as_echo "$gl_cv_type_wctrans_t" >&6; }
13747 if test $gl_cv_type_wctrans_t = no; then
13748 HAVE_WCTRANS_T=0
c971b7fa
PA
13749 fi
13750
13751
8690e634
JK
13752 for gl_func in wctype iswctype wctrans towctrans ; do
13753 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
13755$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
13756if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
13757 $as_echo_n "(cached) " >&6
13758else
13759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13760/* end confdefs.h. */
13761
13762/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13763 <wchar.h>.
13764 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13765 included before <wchar.h>. */
13766#if !(defined __GLIBC__ && !defined __UCLIBC__)
13767# include <stddef.h>
13768# include <stdio.h>
13769# include <time.h>
13770# include <wchar.h>
13771#endif
13772#include <wctype.h>
13773
13774int
13775main ()
13776{
13777#undef $gl_func
13778 (void) $gl_func;
13779 ;
13780 return 0;
13781}
13782_ACEOF
13783if ac_fn_c_try_compile "$LINENO"; then :
13784 eval "$as_gl_Symbol=yes"
13785else
13786 eval "$as_gl_Symbol=no"
13787fi
13788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13789fi
13790eval ac_res=\$$as_gl_Symbol
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13792$as_echo "$ac_res" >&6; }
13793 eval as_val=\$$as_gl_Symbol
13794 if test "x$as_val" = x""yes; then :
13795 cat >>confdefs.h <<_ACEOF
13796#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
13797_ACEOF
c971b7fa 13798
8690e634
JK
13799 eval ac_cv_have_decl_$gl_func=yes
13800fi
13801 done
c971b7fa
PA
13802
13803
13804 # End of code from modules
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814 gltests_libdeps=
13815 gltests_ltlibdeps=
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825 gl_source_base='tests'
13826 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
13827
13828 gl_module_indicator_condition=$gltests_WITNESS
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838 LIBGNU_LIBDEPS="$gl_libdeps"
13839
13840 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
13841
13842
13843
13844# We don't use automake, but gnulib does. This line lets us generate
13845# its Makefile.in.
13846am__api_version='1.11'
13847
13848# Find a good install program. We prefer a C program (faster),
13849# so one script is as good as another. But avoid the broken or
13850# incompatible versions:
13851# SysV /etc/install, /usr/sbin/install
13852# SunOS /usr/etc/install
13853# IRIX /sbin/install
13854# AIX /bin/install
13855# AmigaOS /C/install, which installs bootblocks on floppy discs
13856# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
13857# AFS /usr/afsws/bin/install, which mishandles nonexistent args
13858# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
13859# OS/2's system install, which has a completely different semantic
13860# ./install, which can be erroneously created by make from ./install.sh.
13861# Reject install programs that cannot install multiple files.
13862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
13863$as_echo_n "checking for a BSD-compatible install... " >&6; }
13864if test -z "$INSTALL"; then
13865if test "${ac_cv_path_install+set}" = set; then :
13866 $as_echo_n "(cached) " >&6
13867else
13868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13869for as_dir in $PATH
13870do
13871 IFS=$as_save_IFS
13872 test -z "$as_dir" && as_dir=.
13873 # Account for people who put trailing slashes in PATH elements.
13874case $as_dir/ in #((
13875 ./ | .// | /[cC]/* | \
13876 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
13877 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
13878 /usr/ucb/* ) ;;
13879 *)
13880 # OSF1 and SCO ODT 3.0 have their own names for install.
13881 # Don't use installbsd from OSF since it installs stuff as root
13882 # by default.
13883 for ac_prog in ginstall scoinst install; do
13884 for ac_exec_ext in '' $ac_executable_extensions; do
13885 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
13886 if test $ac_prog = install &&
13887 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13888 # AIX install. It has an incompatible calling convention.
13889 :
13890 elif test $ac_prog = install &&
13891 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13892 # program-specific install script used by HP pwplus--don't use.
13893 :
13894 else
13895 rm -rf conftest.one conftest.two conftest.dir
13896 echo one > conftest.one
13897 echo two > conftest.two
13898 mkdir conftest.dir
13899 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
13900 test -s conftest.one && test -s conftest.two &&
13901 test -s conftest.dir/conftest.one &&
13902 test -s conftest.dir/conftest.two
13903 then
13904 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
13905 break 3
13906 fi
13907 fi
13908 fi
13909 done
13910 done
13911 ;;
13912esac
13913
13914 done
13915IFS=$as_save_IFS
13916
13917rm -rf conftest.one conftest.two conftest.dir
13918
13919fi
13920 if test "${ac_cv_path_install+set}" = set; then
13921 INSTALL=$ac_cv_path_install
13922 else
13923 # As a last resort, use the slow shell script. Don't cache a
13924 # value for INSTALL within a source directory, because that will
13925 # break other packages using the cache if that directory is
13926 # removed, or if the value is a relative name.
13927 INSTALL=$ac_install_sh
13928 fi
13929fi
13930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
13931$as_echo "$INSTALL" >&6; }
13932
13933# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13934# It thinks the first close brace ends the variable substitution.
13935test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
13936
13937test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
13938
13939test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
13940
13941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
13942$as_echo_n "checking whether build environment is sane... " >&6; }
13943# Just in case
13944sleep 1
13945echo timestamp > conftest.file
13946# Reject unsafe characters in $srcdir or the absolute working directory
13947# name. Accept space and tab only in the latter.
13948am_lf='
13949'
13950case `pwd` in
13951 *[\\\"\#\$\&\'\`$am_lf]*)
13952 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
13953esac
13954case $srcdir in
13955 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
13956 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
13957esac
13958
13959# Do `set' in a subshell so we don't clobber the current shell's
13960# arguments. Must try -L first in case configure is actually a
13961# symlink; some systems play weird games with the mod time of symlinks
13962# (eg FreeBSD returns the mod time of the symlink's containing
13963# directory).
13964if (
13965 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
13966 if test "$*" = "X"; then
13967 # -L didn't work.
13968 set X `ls -t "$srcdir/configure" conftest.file`
13969 fi
13970 rm -f conftest.file
13971 if test "$*" != "X $srcdir/configure conftest.file" \
13972 && test "$*" != "X conftest.file $srcdir/configure"; then
13973
13974 # If neither matched, then we have a broken ls. This can happen
13975 # if, for instance, CONFIG_SHELL is bash and it inherits a
13976 # broken ls alias from the environment. This has actually
13977 # happened. Such a system could not be considered "sane".
13978 as_fn_error "ls -t appears to fail. Make sure there is not a broken
13979alias in your environment" "$LINENO" 5
13980 fi
13981
13982 test "$2" = conftest.file
13983 )
13984then
13985 # Ok.
13986 :
13987else
13988 as_fn_error "newly created file is older than distributed files!
13989Check your system clock" "$LINENO" 5
13990fi
13991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13992$as_echo "yes" >&6; }
13993test "$program_prefix" != NONE &&
13994 program_transform_name="s&^&$program_prefix&;$program_transform_name"
13995# Use a double $ so make ignores it.
13996test "$program_suffix" != NONE &&
13997 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
13998# Double any \ or $.
13999# By default was `s,x,x', remove it if useless.
14000ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
14001program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
14002
14003# expand $ac_aux_dir to an absolute path
14004am_aux_dir=`cd $ac_aux_dir && pwd`
14005
14006if test x"${MISSING+set}" != xset; then
14007 case $am_aux_dir in
14008 *\ * | *\ *)
14009 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
14010 *)
14011 MISSING="\${SHELL} $am_aux_dir/missing" ;;
14012 esac
14013fi
14014# Use eval to expand $SHELL
14015if eval "$MISSING --run true"; then
14016 am_missing_run="$MISSING --run "
14017else
14018 am_missing_run=
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
14020$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
14021fi
14022
14023if test x"${install_sh}" != xset; then
14024 case $am_aux_dir in
14025 *\ * | *\ *)
14026 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
14027 *)
14028 install_sh="\${SHELL} $am_aux_dir/install-sh"
14029 esac
14030fi
14031
14032# Installed binaries are usually stripped using `strip' when the user
14033# run `make install-strip'. However `strip' might not be the right
14034# tool to use in cross-compilation environments, therefore Automake
14035# will honor the `STRIP' environment variable to overrule this program.
14036if test "$cross_compiling" != no; then
14037 if test -n "$ac_tool_prefix"; then
14038 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14039set dummy ${ac_tool_prefix}strip; ac_word=$2
14040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14041$as_echo_n "checking for $ac_word... " >&6; }
14042if test "${ac_cv_prog_STRIP+set}" = set; then :
14043 $as_echo_n "(cached) " >&6
14044else
14045 if test -n "$STRIP"; then
14046 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14047else
14048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14049for as_dir in $PATH
14050do
14051 IFS=$as_save_IFS
14052 test -z "$as_dir" && as_dir=.
14053 for ac_exec_ext in '' $ac_executable_extensions; do
14054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14055 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14057 break 2
14058 fi
14059done
14060 done
14061IFS=$as_save_IFS
14062
14063fi
14064fi
14065STRIP=$ac_cv_prog_STRIP
14066if test -n "$STRIP"; then
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
14068$as_echo "$STRIP" >&6; }
14069else
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14071$as_echo "no" >&6; }
14072fi
14073
14074
14075fi
14076if test -z "$ac_cv_prog_STRIP"; then
14077 ac_ct_STRIP=$STRIP
14078 # Extract the first word of "strip", so it can be a program name with args.
14079set dummy strip; ac_word=$2
14080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14081$as_echo_n "checking for $ac_word... " >&6; }
14082if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
14083 $as_echo_n "(cached) " >&6
14084else
14085 if test -n "$ac_ct_STRIP"; then
14086 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14087else
14088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14089for as_dir in $PATH
14090do
14091 IFS=$as_save_IFS
14092 test -z "$as_dir" && as_dir=.
14093 for ac_exec_ext in '' $ac_executable_extensions; do
14094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14095 ac_cv_prog_ac_ct_STRIP="strip"
14096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14097 break 2
14098 fi
14099done
14100 done
14101IFS=$as_save_IFS
14102
14103fi
14104fi
14105ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14106if test -n "$ac_ct_STRIP"; then
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
14108$as_echo "$ac_ct_STRIP" >&6; }
14109else
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14111$as_echo "no" >&6; }
14112fi
14113
14114 if test "x$ac_ct_STRIP" = x; then
14115 STRIP=":"
14116 else
14117 case $cross_compiling:$ac_tool_warned in
14118yes:)
14119{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14120$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14121ac_tool_warned=yes ;;
14122esac
14123 STRIP=$ac_ct_STRIP
14124 fi
14125else
14126 STRIP="$ac_cv_prog_STRIP"
14127fi
14128
14129fi
14130INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
14131
c971b7fa
PA
14132mkdir_p="$MKDIR_P"
14133case $mkdir_p in
14134 [\\/$]* | ?:[\\/]*) ;;
14135 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
14136esac
14137
14138for ac_prog in gawk mawk nawk awk
14139do
14140 # Extract the first word of "$ac_prog", so it can be a program name with args.
14141set dummy $ac_prog; ac_word=$2
14142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14143$as_echo_n "checking for $ac_word... " >&6; }
14144if test "${ac_cv_prog_AWK+set}" = set; then :
14145 $as_echo_n "(cached) " >&6
14146else
14147 if test -n "$AWK"; then
14148 ac_cv_prog_AWK="$AWK" # Let the user override the test.
14149else
14150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14151for as_dir in $PATH
14152do
14153 IFS=$as_save_IFS
14154 test -z "$as_dir" && as_dir=.
14155 for ac_exec_ext in '' $ac_executable_extensions; do
14156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14157 ac_cv_prog_AWK="$ac_prog"
14158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14159 break 2
14160 fi
14161done
14162 done
14163IFS=$as_save_IFS
14164
14165fi
14166fi
14167AWK=$ac_cv_prog_AWK
14168if test -n "$AWK"; then
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
14170$as_echo "$AWK" >&6; }
14171else
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14173$as_echo "no" >&6; }
14174fi
14175
14176
14177 test -n "$AWK" && break
14178done
14179
14180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
14181$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
14182set x ${MAKE-make}
14183ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
14184if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
14185 $as_echo_n "(cached) " >&6
14186else
14187 cat >conftest.make <<\_ACEOF
14188SHELL = /bin/sh
14189all:
14190 @echo '@@@%%%=$(MAKE)=@@@%%%'
14191_ACEOF
14192# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
14193case `${MAKE-make} -f conftest.make 2>/dev/null` in
14194 *@@@%%%=?*=@@@%%%*)
14195 eval ac_cv_prog_make_${ac_make}_set=yes;;
14196 *)
14197 eval ac_cv_prog_make_${ac_make}_set=no;;
14198esac
14199rm -f conftest.make
14200fi
14201if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14203$as_echo "yes" >&6; }
14204 SET_MAKE=
14205else
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14207$as_echo "no" >&6; }
14208 SET_MAKE="MAKE=${MAKE-make}"
14209fi
14210
14211rm -rf .tst 2>/dev/null
14212mkdir .tst 2>/dev/null
14213if test -d .tst; then
14214 am__leading_dot=.
14215else
14216 am__leading_dot=_
14217fi
14218rmdir .tst 2>/dev/null
14219
14220DEPDIR="${am__leading_dot}deps"
14221
14222ac_config_commands="$ac_config_commands depfiles"
14223
14224
14225am_make=${MAKE-make}
14226cat > confinc << 'END'
14227am__doit:
14228 @echo this is the am__doit target
14229.PHONY: am__doit
14230END
14231# If we don't find an include directive, just comment out the code.
14232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
14233$as_echo_n "checking for style of include used by $am_make... " >&6; }
14234am__include="#"
14235am__quote=
14236_am_result=none
14237# First try GNU make style include.
14238echo "include confinc" > confmf
14239# Ignore all kinds of additional output from `make'.
14240case `$am_make -s -f confmf 2> /dev/null` in #(
14241*the\ am__doit\ target*)
14242 am__include=include
14243 am__quote=
14244 _am_result=GNU
14245 ;;
14246esac
14247# Now try BSD make style include.
14248if test "$am__include" = "#"; then
14249 echo '.include "confinc"' > confmf
14250 case `$am_make -s -f confmf 2> /dev/null` in #(
14251 *the\ am__doit\ target*)
14252 am__include=.include
14253 am__quote="\""
14254 _am_result=BSD
14255 ;;
14256 esac
14257fi
14258
14259
14260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
14261$as_echo "$_am_result" >&6; }
14262rm -f confinc confmf
14263
14264# Check whether --enable-dependency-tracking was given.
14265if test "${enable_dependency_tracking+set}" = set; then :
14266 enableval=$enable_dependency_tracking;
14267fi
14268
14269if test "x$enable_dependency_tracking" != xno; then
14270 am_depcomp="$ac_aux_dir/depcomp"
14271 AMDEPBACKSLASH='\'
14272fi
14273 if test "x$enable_dependency_tracking" != xno; then
14274 AMDEP_TRUE=
14275 AMDEP_FALSE='#'
14276else
14277 AMDEP_TRUE='#'
14278 AMDEP_FALSE=
14279fi
14280
14281
14282if test "`cd $srcdir && pwd`" != "`pwd`"; then
14283 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
14284 # is not polluted with repeated "-I."
14285 am__isrc=' -I$(srcdir)'
14286 # test to see if srcdir already configured
14287 if test -f $srcdir/config.status; then
14288 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
14289 fi
14290fi
14291
14292# test whether we have cygpath
14293if test -z "$CYGPATH_W"; then
14294 if (cygpath --version) >/dev/null 2>/dev/null; then
14295 CYGPATH_W='cygpath -w'
14296 else
14297 CYGPATH_W=echo
14298 fi
14299fi
14300
14301
14302# Define the identity of the package.
14303 PACKAGE=libgnu
14304 VERSION=UNUSED-VERSION
14305
14306
14307# Some tools Automake needs.
14308
14309ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
14310
14311
14312AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
14313
14314
14315AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
14316
14317
14318AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
14319
14320
14321MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
14322
14323# We need awk for the "check" target. The system "awk" is bad on
14324# some platforms.
14325# Always define AMTAR for backward compatibility.
14326
14327AMTAR=${AMTAR-"${am_missing_run}tar"}
14328
14329am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
14330
14331
14332
14333
14334depcc="$CC" am_compiler_list=
14335
14336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14337$as_echo_n "checking dependency style of $depcc... " >&6; }
14338if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
14339 $as_echo_n "(cached) " >&6
14340else
14341 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14342 # We make a subdir and do the tests there. Otherwise we can end up
14343 # making bogus files that we don't know about and never remove. For
14344 # instance it was reported that on HP-UX the gcc test will end up
14345 # making a dummy file named `D' -- because `-MD' means `put the output
14346 # in D'.
14347 mkdir conftest.dir
14348 # Copy depcomp to subdir because otherwise we won't find it if we're
14349 # using a relative directory.
14350 cp "$am_depcomp" conftest.dir
14351 cd conftest.dir
14352 # We will build objects and dependencies in a subdirectory because
14353 # it helps to detect inapplicable dependency modes. For instance
14354 # both Tru64's cc and ICC support -MD to output dependencies as a
14355 # side effect of compilation, but ICC will put the dependencies in
14356 # the current directory while Tru64 will put them in the object
14357 # directory.
14358 mkdir sub
14359
14360 am_cv_CC_dependencies_compiler_type=none
14361 if test "$am_compiler_list" = ""; then
14362 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14363 fi
14364 am__universal=false
14365 case " $depcc " in #(
14366 *\ -arch\ *\ -arch\ *) am__universal=true ;;
14367 esac
14368
14369 for depmode in $am_compiler_list; do
14370 # Setup a source with many dependencies, because some compilers
14371 # like to wrap large dependency lists on column 80 (with \), and
14372 # we should not choose a depcomp mode which is confused by this.
14373 #
14374 # We need to recreate these files for each test, as the compiler may
14375 # overwrite some of them when testing with obscure command lines.
14376 # This happens at least with the AIX C compiler.
14377 : > sub/conftest.c
14378 for i in 1 2 3 4 5 6; do
14379 echo '#include "conftst'$i'.h"' >> sub/conftest.c
14380 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
14381 # Solaris 8's {/usr,}/bin/sh.
14382 touch sub/conftst$i.h
14383 done
14384 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14385
14386 # We check with `-c' and `-o' for the sake of the "dashmstdout"
14387 # mode. It turns out that the SunPro C++ compiler does not properly
14388 # handle `-M -o', and we need to detect this. Also, some Intel
14389 # versions had trouble with output in subdirs
14390 am__obj=sub/conftest.${OBJEXT-o}
14391 am__minus_obj="-o $am__obj"
14392 case $depmode in
14393 gcc)
14394 # This depmode causes a compiler race in universal mode.
14395 test "$am__universal" = false || continue
14396 ;;
14397 nosideeffect)
14398 # after this tag, mechanisms are not by side-effect, so they'll
14399 # only be used when explicitly requested
14400 if test "x$enable_dependency_tracking" = xyes; then
14401 continue
14402 else
14403 break
14404 fi
14405 ;;
14406 msvisualcpp | msvcmsys)
14407 # This compiler won't grok `-c -o', but also, the minuso test has
14408 # not run yet. These depmodes are late enough in the game, and
14409 # so weak that their functioning should not be impacted.
14410 am__obj=conftest.${OBJEXT-o}
14411 am__minus_obj=
14412 ;;
14413 none) break ;;
14414 esac
14415 if depmode=$depmode \
14416 source=sub/conftest.c object=$am__obj \
14417 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14418 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14419 >/dev/null 2>conftest.err &&
14420 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14421 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14422 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14423 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14424 # icc doesn't choke on unknown options, it will just issue warnings
14425 # or remarks (even with -Werror). So we grep stderr for any message
14426 # that says an option was ignored or not supported.
14427 # When given -MP, icc 7.0 and 7.1 complain thusly:
14428 # icc: Command line warning: ignoring option '-M'; no argument required
14429 # The diagnosis changed in icc 8.0:
14430 # icc: Command line remark: option '-MP' not supported
14431 if (grep 'ignoring option' conftest.err ||
14432 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14433 am_cv_CC_dependencies_compiler_type=$depmode
14434 break
14435 fi
14436 fi
14437 done
14438
14439 cd ..
14440 rm -rf conftest.dir
14441else
14442 am_cv_CC_dependencies_compiler_type=none
14443fi
14444
14445fi
14446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
14447$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
14448CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
14449
14450 if
14451 test "x$enable_dependency_tracking" != xno \
14452 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
14453 am__fastdepCC_TRUE=
14454 am__fastdepCC_FALSE='#'
14455else
14456 am__fastdepCC_TRUE='#'
14457 am__fastdepCC_FALSE=
14458fi
14459
14460
14461
14462
14463# --------------------- #
14464# Checks for programs. #
14465# --------------------- #
14466
14467
14468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
14469$as_echo_n "checking whether ln -s works... " >&6; }
14470LN_S=$as_ln_s
14471if test "$LN_S" = "ln -s"; then
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14473$as_echo "yes" >&6; }
14474else
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
14476$as_echo "no, using $LN_S" >&6; }
14477fi
14478
14479if test -n "$ac_tool_prefix"; then
14480 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14481set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14483$as_echo_n "checking for $ac_word... " >&6; }
14484if test "${ac_cv_prog_RANLIB+set}" = set; then :
14485 $as_echo_n "(cached) " >&6
14486else
14487 if test -n "$RANLIB"; then
14488 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14489else
14490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14491for as_dir in $PATH
14492do
14493 IFS=$as_save_IFS
14494 test -z "$as_dir" && as_dir=.
14495 for ac_exec_ext in '' $ac_executable_extensions; do
14496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14497 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14499 break 2
14500 fi
14501done
14502 done
14503IFS=$as_save_IFS
14504
14505fi
14506fi
14507RANLIB=$ac_cv_prog_RANLIB
14508if test -n "$RANLIB"; then
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
14510$as_echo "$RANLIB" >&6; }
14511else
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14513$as_echo "no" >&6; }
14514fi
14515
14516
14517fi
14518if test -z "$ac_cv_prog_RANLIB"; then
14519 ac_ct_RANLIB=$RANLIB
14520 # Extract the first word of "ranlib", so it can be a program name with args.
14521set dummy ranlib; ac_word=$2
14522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14523$as_echo_n "checking for $ac_word... " >&6; }
14524if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
14525 $as_echo_n "(cached) " >&6
14526else
14527 if test -n "$ac_ct_RANLIB"; then
14528 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14529else
14530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14531for as_dir in $PATH
14532do
14533 IFS=$as_save_IFS
14534 test -z "$as_dir" && as_dir=.
14535 for ac_exec_ext in '' $ac_executable_extensions; do
14536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14537 ac_cv_prog_ac_ct_RANLIB="ranlib"
14538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14539 break 2
14540 fi
14541done
14542 done
14543IFS=$as_save_IFS
14544
14545fi
14546fi
14547ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14548if test -n "$ac_ct_RANLIB"; then
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
14550$as_echo "$ac_ct_RANLIB" >&6; }
14551else
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14553$as_echo "no" >&6; }
14554fi
14555
14556 if test "x$ac_ct_RANLIB" = x; then
14557 RANLIB=":"
14558 else
14559 case $cross_compiling:$ac_tool_warned in
14560yes:)
14561{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14562$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14563ac_tool_warned=yes ;;
14564esac
14565 RANLIB=$ac_ct_RANLIB
14566 fi
14567else
14568 RANLIB="$ac_cv_prog_RANLIB"
14569fi
14570
14571
14572if test -n "$ac_tool_prefix"; then
14573 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14574set dummy ${ac_tool_prefix}ar; ac_word=$2
14575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14576$as_echo_n "checking for $ac_word... " >&6; }
14577if test "${ac_cv_prog_AR+set}" = set; then :
14578 $as_echo_n "(cached) " >&6
14579else
14580 if test -n "$AR"; then
14581 ac_cv_prog_AR="$AR" # Let the user override the test.
14582else
14583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14584for as_dir in $PATH
14585do
14586 IFS=$as_save_IFS
14587 test -z "$as_dir" && as_dir=.
14588 for ac_exec_ext in '' $ac_executable_extensions; do
14589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14590 ac_cv_prog_AR="${ac_tool_prefix}ar"
14591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14592 break 2
14593 fi
14594done
14595 done
14596IFS=$as_save_IFS
14597
14598fi
14599fi
14600AR=$ac_cv_prog_AR
14601if test -n "$AR"; then
14602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
14603$as_echo "$AR" >&6; }
14604else
14605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14606$as_echo "no" >&6; }
14607fi
14608
14609
14610fi
14611if test -z "$ac_cv_prog_AR"; then
14612 ac_ct_AR=$AR
14613 # Extract the first word of "ar", so it can be a program name with args.
14614set dummy ar; ac_word=$2
14615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14616$as_echo_n "checking for $ac_word... " >&6; }
14617if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
14618 $as_echo_n "(cached) " >&6
14619else
14620 if test -n "$ac_ct_AR"; then
14621 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14622else
14623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14624for as_dir in $PATH
14625do
14626 IFS=$as_save_IFS
14627 test -z "$as_dir" && as_dir=.
14628 for ac_exec_ext in '' $ac_executable_extensions; do
14629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14630 ac_cv_prog_ac_ct_AR="ar"
14631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14632 break 2
14633 fi
14634done
14635 done
14636IFS=$as_save_IFS
14637
14638fi
14639fi
14640ac_ct_AR=$ac_cv_prog_ac_ct_AR
14641if test -n "$ac_ct_AR"; then
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
14643$as_echo "$ac_ct_AR" >&6; }
14644else
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14646$as_echo "no" >&6; }
14647fi
14648
14649 if test "x$ac_ct_AR" = x; then
14650 AR=""
14651 else
14652 case $cross_compiling:$ac_tool_warned in
14653yes:)
14654{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14655$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14656ac_tool_warned=yes ;;
14657esac
14658 AR=$ac_ct_AR
14659 fi
14660else
14661 AR="$ac_cv_prog_AR"
14662fi
14663
14664
14665# ---------------------- #
14666# Checks for libraries. #
14667# ---------------------- #
14668
14669ac_config_files="$ac_config_files Makefile import/Makefile"
14670
14671ac_config_commands="$ac_config_commands default"
14672
14673cat >confcache <<\_ACEOF
14674# This file is a shell script that caches the results of configure
14675# tests run on this system so they can be shared between configure
14676# scripts and configure runs, see configure's option --config-cache.
14677# It is not useful on other systems. If it contains results you don't
14678# want to keep, you may remove or edit it.
14679#
14680# config.status only pays attention to the cache file if you give it
14681# the --recheck option to rerun configure.
14682#
14683# `ac_cv_env_foo' variables (set or unset) will be overridden when
14684# loading this file, other *unset* `ac_cv_foo' will be assigned the
14685# following values.
14686
14687_ACEOF
14688
14689# The following way of writing the cache mishandles newlines in values,
14690# but we know of no workaround that is simple, portable, and efficient.
14691# So, we kill variables containing newlines.
14692# Ultrix sh set writes to stderr and can't be redirected directly,
14693# and sets the high bit in the cache file unless we assign to the vars.
14694(
14695 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14696 eval ac_val=\$$ac_var
14697 case $ac_val in #(
14698 *${as_nl}*)
14699 case $ac_var in #(
14700 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14701$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14702 esac
14703 case $ac_var in #(
14704 _ | IFS | as_nl) ;; #(
14705 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14706 *) { eval $ac_var=; unset $ac_var;} ;;
14707 esac ;;
14708 esac
14709 done
14710
14711 (set) 2>&1 |
14712 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14713 *${as_nl}ac_space=\ *)
14714 # `set' does not quote correctly, so add quotes: double-quote
14715 # substitution turns \\\\ into \\, and sed turns \\ into \.
14716 sed -n \
14717 "s/'/'\\\\''/g;
14718 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14719 ;; #(
14720 *)
14721 # `set' quotes correctly as required by POSIX, so do not add quotes.
14722 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14723 ;;
14724 esac |
14725 sort
14726) |
14727 sed '
14728 /^ac_cv_env_/b end
14729 t clear
14730 :clear
14731 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14732 t end
14733 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14734 :end' >>confcache
14735if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14736 if test -w "$cache_file"; then
14737 test "x$cache_file" != "x/dev/null" &&
14738 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14739$as_echo "$as_me: updating cache $cache_file" >&6;}
14740 cat confcache >$cache_file
14741 else
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14743$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14744 fi
14745fi
14746rm -f confcache
14747
14748test "x$prefix" = xNONE && prefix=$ac_default_prefix
14749# Let make expand exec_prefix.
14750test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14751
14752DEFS=-DHAVE_CONFIG_H
14753
14754ac_libobjs=
14755ac_ltlibobjs=
14756for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14757 # 1. Remove the extension, and $U if already installed.
14758 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14759 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14760 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14761 # will be set to the directory where LIBOBJS objects are built.
14762 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14763 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14764done
14765LIBOBJS=$ac_libobjs
14766
14767LTLIBOBJS=$ac_ltlibobjs
14768
14769
14770if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14771 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14772Usually this means the macro was only invoked conditionally." "$LINENO" 5
14773fi
14774if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
14775 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
14776Usually this means the macro was only invoked conditionally." "$LINENO" 5
14777fi
8690e634
JK
14778if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
14779 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
14780Usually this means the macro was only invoked conditionally." "$LINENO" 5
14781fi
88b48903
WN
14782if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
14783 as_fn_error "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
14784Usually this means the macro was only invoked conditionally." "$LINENO" 5
14785fi
8690e634
JK
14786if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
14787 as_fn_error "conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
14788Usually this means the macro was only invoked conditionally." "$LINENO" 5
14789fi
c971b7fa
PA
14790if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
14791 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
14792Usually this means the macro was only invoked conditionally." "$LINENO" 5
14793fi
88b48903
WN
14794
14795
8690e634
JK
14796if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
14797 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
14798Usually this means the macro was only invoked conditionally." "$LINENO" 5
14799fi
c971b7fa
PA
14800if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
14801 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
14802Usually this means the macro was only invoked conditionally." "$LINENO" 5
14803fi
14804
14805 gl_libobjs=
14806 gl_ltlibobjs=
14807 if test -n "$gl_LIBOBJS"; then
14808 # Remove the extension.
14809 sed_drop_objext='s/\.o$//;s/\.obj$//'
14810 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
14811 gl_libobjs="$gl_libobjs $i.$ac_objext"
14812 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
14813 done
14814 fi
14815 gl_LIBOBJS=$gl_libobjs
14816
14817 gl_LTLIBOBJS=$gl_ltlibobjs
14818
14819
14820
14821 gltests_libobjs=
14822 gltests_ltlibobjs=
14823 if test -n "$gltests_LIBOBJS"; then
14824 # Remove the extension.
14825 sed_drop_objext='s/\.o$//;s/\.obj$//'
14826 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
14827 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
14828 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
14829 done
14830 fi
14831 gltests_LIBOBJS=$gltests_libobjs
14832
14833 gltests_LTLIBOBJS=$gltests_ltlibobjs
14834
14835
14836if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14837 as_fn_error "conditional \"AMDEP\" was never defined.
14838Usually this means the macro was only invoked conditionally." "$LINENO" 5
14839fi
14840if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14841 as_fn_error "conditional \"am__fastdepCC\" was never defined.
14842Usually this means the macro was only invoked conditionally." "$LINENO" 5
14843fi
14844 if test -n "$EXEEXT"; then
14845 am__EXEEXT_TRUE=
14846 am__EXEEXT_FALSE='#'
14847else
14848 am__EXEEXT_TRUE='#'
14849 am__EXEEXT_FALSE=
14850fi
14851
14852
14853: ${CONFIG_STATUS=./config.status}
14854ac_write_fail=0
14855ac_clean_files_save=$ac_clean_files
14856ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14857{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14858$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14859as_write_fail=0
14860cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14861#! $SHELL
14862# Generated by $as_me.
14863# Run this file to recreate the current configuration.
14864# Compiler output produced by configure, useful for debugging
14865# configure, is in config.log if it exists.
14866
14867debug=false
14868ac_cs_recheck=false
14869ac_cs_silent=false
14870
14871SHELL=\${CONFIG_SHELL-$SHELL}
14872export SHELL
14873_ASEOF
14874cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14875## -------------------- ##
14876## M4sh Initialization. ##
14877## -------------------- ##
14878
14879# Be more Bourne compatible
14880DUALCASE=1; export DUALCASE # for MKS sh
14881if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14882 emulate sh
14883 NULLCMD=:
14884 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14885 # is contrary to our usage. Disable this feature.
14886 alias -g '${1+"$@"}'='"$@"'
14887 setopt NO_GLOB_SUBST
14888else
14889 case `(set -o) 2>/dev/null` in #(
14890 *posix*) :
14891 set -o posix ;; #(
14892 *) :
14893 ;;
14894esac
14895fi
14896
14897
14898as_nl='
14899'
14900export as_nl
14901# Printing a long string crashes Solaris 7 /usr/bin/printf.
14902as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14903as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14904as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14905# Prefer a ksh shell builtin over an external printf program on Solaris,
14906# but without wasting forks for bash or zsh.
14907if test -z "$BASH_VERSION$ZSH_VERSION" \
14908 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14909 as_echo='print -r --'
14910 as_echo_n='print -rn --'
14911elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14912 as_echo='printf %s\n'
14913 as_echo_n='printf %s'
14914else
14915 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14916 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14917 as_echo_n='/usr/ucb/echo -n'
14918 else
14919 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14920 as_echo_n_body='eval
14921 arg=$1;
14922 case $arg in #(
14923 *"$as_nl"*)
14924 expr "X$arg" : "X\\(.*\\)$as_nl";
14925 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14926 esac;
14927 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14928 '
14929 export as_echo_n_body
14930 as_echo_n='sh -c $as_echo_n_body as_echo'
14931 fi
14932 export as_echo_body
14933 as_echo='sh -c $as_echo_body as_echo'
14934fi
14935
14936# The user is always right.
14937if test "${PATH_SEPARATOR+set}" != set; then
14938 PATH_SEPARATOR=:
14939 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14940 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14941 PATH_SEPARATOR=';'
14942 }
14943fi
14944
14945
14946# IFS
14947# We need space, tab and new line, in precisely that order. Quoting is
14948# there to prevent editors from complaining about space-tab.
14949# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14950# splitting by setting IFS to empty value.)
14951IFS=" "" $as_nl"
14952
14953# Find who we are. Look in the path if we contain no directory separator.
14954case $0 in #((
14955 *[\\/]* ) as_myself=$0 ;;
14956 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14957for as_dir in $PATH
14958do
14959 IFS=$as_save_IFS
14960 test -z "$as_dir" && as_dir=.
14961 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14962 done
14963IFS=$as_save_IFS
14964
14965 ;;
14966esac
14967# We did not find ourselves, most probably we were run as `sh COMMAND'
14968# in which case we are not to be found in the path.
14969if test "x$as_myself" = x; then
14970 as_myself=$0
14971fi
14972if test ! -f "$as_myself"; then
14973 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14974 exit 1
14975fi
14976
14977# Unset variables that we do not need and which cause bugs (e.g. in
14978# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14979# suppresses any "Segmentation fault" message there. '((' could
14980# trigger a bug in pdksh 5.2.14.
14981for as_var in BASH_ENV ENV MAIL MAILPATH
14982do eval test x\${$as_var+set} = xset \
14983 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14984done
14985PS1='$ '
14986PS2='> '
14987PS4='+ '
14988
14989# NLS nuisances.
14990LC_ALL=C
14991export LC_ALL
14992LANGUAGE=C
14993export LANGUAGE
14994
14995# CDPATH.
14996(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14997
14998
14999# as_fn_error ERROR [LINENO LOG_FD]
15000# ---------------------------------
15001# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15002# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15003# script with status $?, using 1 if that was 0.
15004as_fn_error ()
15005{
15006 as_status=$?; test $as_status -eq 0 && as_status=1
15007 if test "$3"; then
15008 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15009 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15010 fi
15011 $as_echo "$as_me: error: $1" >&2
15012 as_fn_exit $as_status
15013} # as_fn_error
15014
15015
15016# as_fn_set_status STATUS
15017# -----------------------
15018# Set $? to STATUS, without forking.
15019as_fn_set_status ()
15020{
15021 return $1
15022} # as_fn_set_status
15023
15024# as_fn_exit STATUS
15025# -----------------
15026# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15027as_fn_exit ()
15028{
15029 set +e
15030 as_fn_set_status $1
15031 exit $1
15032} # as_fn_exit
15033
15034# as_fn_unset VAR
15035# ---------------
15036# Portably unset VAR.
15037as_fn_unset ()
15038{
15039 { eval $1=; unset $1;}
15040}
15041as_unset=as_fn_unset
15042# as_fn_append VAR VALUE
15043# ----------------------
15044# Append the text in VALUE to the end of the definition contained in VAR. Take
15045# advantage of any shell optimizations that allow amortized linear growth over
15046# repeated appends, instead of the typical quadratic growth present in naive
15047# implementations.
15048if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15049 eval 'as_fn_append ()
15050 {
15051 eval $1+=\$2
15052 }'
15053else
15054 as_fn_append ()
15055 {
15056 eval $1=\$$1\$2
15057 }
15058fi # as_fn_append
15059
15060# as_fn_arith ARG...
15061# ------------------
15062# Perform arithmetic evaluation on the ARGs, and store the result in the
15063# global $as_val. Take advantage of shells that can avoid forks. The arguments
15064# must be portable across $(()) and expr.
15065if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15066 eval 'as_fn_arith ()
15067 {
15068 as_val=$(( $* ))
15069 }'
15070else
15071 as_fn_arith ()
15072 {
15073 as_val=`expr "$@" || test $? -eq 1`
15074 }
15075fi # as_fn_arith
15076
15077
15078if expr a : '\(a\)' >/dev/null 2>&1 &&
15079 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15080 as_expr=expr
15081else
15082 as_expr=false
15083fi
15084
15085if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15086 as_basename=basename
15087else
15088 as_basename=false
15089fi
15090
15091if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15092 as_dirname=dirname
15093else
15094 as_dirname=false
15095fi
15096
15097as_me=`$as_basename -- "$0" ||
15098$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15099 X"$0" : 'X\(//\)$' \| \
15100 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15101$as_echo X/"$0" |
15102 sed '/^.*\/\([^/][^/]*\)\/*$/{
15103 s//\1/
15104 q
15105 }
15106 /^X\/\(\/\/\)$/{
15107 s//\1/
15108 q
15109 }
15110 /^X\/\(\/\).*/{
15111 s//\1/
15112 q
15113 }
15114 s/.*/./; q'`
15115
15116# Avoid depending upon Character Ranges.
15117as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15118as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15119as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15120as_cr_digits='0123456789'
15121as_cr_alnum=$as_cr_Letters$as_cr_digits
15122
15123ECHO_C= ECHO_N= ECHO_T=
15124case `echo -n x` in #(((((
15125-n*)
15126 case `echo 'xy\c'` in
15127 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15128 xy) ECHO_C='\c';;
15129 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15130 ECHO_T=' ';;
15131 esac;;
15132*)
15133 ECHO_N='-n';;
15134esac
15135
15136rm -f conf$$ conf$$.exe conf$$.file
15137if test -d conf$$.dir; then
15138 rm -f conf$$.dir/conf$$.file
15139else
15140 rm -f conf$$.dir
15141 mkdir conf$$.dir 2>/dev/null
15142fi
15143if (echo >conf$$.file) 2>/dev/null; then
15144 if ln -s conf$$.file conf$$ 2>/dev/null; then
15145 as_ln_s='ln -s'
15146 # ... but there are two gotchas:
15147 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15148 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15149 # In both cases, we have to default to `cp -p'.
15150 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15151 as_ln_s='cp -p'
15152 elif ln conf$$.file conf$$ 2>/dev/null; then
15153 as_ln_s=ln
15154 else
15155 as_ln_s='cp -p'
15156 fi
15157else
15158 as_ln_s='cp -p'
15159fi
15160rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15161rmdir conf$$.dir 2>/dev/null
15162
15163
15164# as_fn_mkdir_p
15165# -------------
15166# Create "$as_dir" as a directory, including parents if necessary.
15167as_fn_mkdir_p ()
15168{
15169
15170 case $as_dir in #(
15171 -*) as_dir=./$as_dir;;
15172 esac
15173 test -d "$as_dir" || eval $as_mkdir_p || {
15174 as_dirs=
15175 while :; do
15176 case $as_dir in #(
15177 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15178 *) as_qdir=$as_dir;;
15179 esac
15180 as_dirs="'$as_qdir' $as_dirs"
15181 as_dir=`$as_dirname -- "$as_dir" ||
15182$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15183 X"$as_dir" : 'X\(//\)[^/]' \| \
15184 X"$as_dir" : 'X\(//\)$' \| \
15185 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15186$as_echo X"$as_dir" |
15187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15188 s//\1/
15189 q
15190 }
15191 /^X\(\/\/\)[^/].*/{
15192 s//\1/
15193 q
15194 }
15195 /^X\(\/\/\)$/{
15196 s//\1/
15197 q
15198 }
15199 /^X\(\/\).*/{
15200 s//\1/
15201 q
15202 }
15203 s/.*/./; q'`
15204 test -d "$as_dir" && break
15205 done
15206 test -z "$as_dirs" || eval "mkdir $as_dirs"
15207 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15208
15209
15210} # as_fn_mkdir_p
15211if mkdir -p . 2>/dev/null; then
15212 as_mkdir_p='mkdir -p "$as_dir"'
15213else
15214 test -d ./-p && rmdir ./-p
15215 as_mkdir_p=false
15216fi
15217
15218if test -x / >/dev/null 2>&1; then
15219 as_test_x='test -x'
15220else
15221 if ls -dL / >/dev/null 2>&1; then
15222 as_ls_L_option=L
15223 else
15224 as_ls_L_option=
15225 fi
15226 as_test_x='
15227 eval sh -c '\''
15228 if test -d "$1"; then
15229 test -d "$1/.";
15230 else
15231 case $1 in #(
15232 -*)set "./$1";;
15233 esac;
15234 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15235 ???[sx]*):;;*)false;;esac;fi
15236 '\'' sh
15237 '
15238fi
15239as_executable_p=$as_test_x
15240
15241# Sed expression to map a string onto a valid CPP name.
15242as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15243
15244# Sed expression to map a string onto a valid variable name.
15245as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15246
15247
15248exec 6>&1
15249## ----------------------------------- ##
15250## Main body of $CONFIG_STATUS script. ##
15251## ----------------------------------- ##
15252_ASEOF
15253test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15254
15255cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15256# Save the log message, to keep $0 and so on meaningful, and to
15257# report actual input values of CONFIG_FILES etc. instead of their
15258# values after options handling.
15259ac_log="
15260This file was extended by $as_me, which was
15261generated by GNU Autoconf 2.64. Invocation command line was
15262
15263 CONFIG_FILES = $CONFIG_FILES
15264 CONFIG_HEADERS = $CONFIG_HEADERS
15265 CONFIG_LINKS = $CONFIG_LINKS
15266 CONFIG_COMMANDS = $CONFIG_COMMANDS
15267 $ $0 $@
15268
15269on `(hostname || uname -n) 2>/dev/null | sed 1q`
15270"
15271
15272_ACEOF
15273
15274case $ac_config_files in *"
15275"*) set x $ac_config_files; shift; ac_config_files=$*;;
15276esac
15277
15278case $ac_config_headers in *"
15279"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15280esac
15281
15282
15283cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15284# Files that config.status was made for.
15285config_files="$ac_config_files"
15286config_headers="$ac_config_headers"
15287config_commands="$ac_config_commands"
15288
15289_ACEOF
15290
15291cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15292ac_cs_usage="\
15293\`$as_me' instantiates files and other configuration actions
15294from templates according to the current configuration. Unless the files
15295and actions are specified as TAGs, all are instantiated by default.
15296
15297Usage: $0 [OPTION]... [TAG]...
15298
15299 -h, --help print this help, then exit
15300 -V, --version print version number and configuration settings, then exit
15301 -q, --quiet, --silent
15302 do not print progress messages
15303 -d, --debug don't remove temporary files
15304 --recheck update $as_me by reconfiguring in the same conditions
15305 --file=FILE[:TEMPLATE]
15306 instantiate the configuration file FILE
15307 --header=FILE[:TEMPLATE]
15308 instantiate the configuration header FILE
15309
15310Configuration files:
15311$config_files
15312
15313Configuration headers:
15314$config_headers
15315
15316Configuration commands:
15317$config_commands
15318
15319Report bugs to the package provider."
15320
15321_ACEOF
15322cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15323ac_cs_version="\\
15324config.status
15325configured by $0, generated by GNU Autoconf 2.64,
15326 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15327
15328Copyright (C) 2009 Free Software Foundation, Inc.
15329This config.status script is free software; the Free Software Foundation
15330gives unlimited permission to copy, distribute and modify it."
15331
15332ac_pwd='$ac_pwd'
15333srcdir='$srcdir'
15334INSTALL='$INSTALL'
15335MKDIR_P='$MKDIR_P'
15336AWK='$AWK'
15337test -n "\$AWK" || AWK=awk
15338_ACEOF
15339
15340cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15341# The default lists apply if the user does not specify any file.
15342ac_need_defaults=:
15343while test $# != 0
15344do
15345 case $1 in
15346 --*=*)
15347 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15348 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15349 ac_shift=:
15350 ;;
15351 *)
15352 ac_option=$1
15353 ac_optarg=$2
15354 ac_shift=shift
15355 ;;
15356 esac
15357
15358 case $ac_option in
15359 # Handling of the options.
15360 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15361 ac_cs_recheck=: ;;
15362 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15363 $as_echo "$ac_cs_version"; exit ;;
15364 --debug | --debu | --deb | --de | --d | -d )
15365 debug=: ;;
15366 --file | --fil | --fi | --f )
15367 $ac_shift
15368 case $ac_optarg in
15369 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15370 esac
15371 as_fn_append CONFIG_FILES " '$ac_optarg'"
15372 ac_need_defaults=false;;
15373 --header | --heade | --head | --hea )
15374 $ac_shift
15375 case $ac_optarg in
15376 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15377 esac
15378 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15379 ac_need_defaults=false;;
15380 --he | --h)
15381 # Conflict between --help and --header
15382 as_fn_error "ambiguous option: \`$1'
15383Try \`$0 --help' for more information.";;
15384 --help | --hel | -h )
15385 $as_echo "$ac_cs_usage"; exit ;;
15386 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15387 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15388 ac_cs_silent=: ;;
15389
15390 # This is an error.
15391 -*) as_fn_error "unrecognized option: \`$1'
15392Try \`$0 --help' for more information." ;;
15393
15394 *) as_fn_append ac_config_targets " $1"
15395 ac_need_defaults=false ;;
15396
15397 esac
15398 shift
15399done
15400
15401ac_configure_extra_args=
15402
15403if $ac_cs_silent; then
15404 exec 6>/dev/null
15405 ac_configure_extra_args="$ac_configure_extra_args --silent"
15406fi
15407
15408_ACEOF
15409cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15410if \$ac_cs_recheck; then
15411 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15412 shift
15413 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15414 CONFIG_SHELL='$SHELL'
15415 export CONFIG_SHELL
15416 exec "\$@"
15417fi
15418
15419_ACEOF
15420cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15421exec 5>>config.log
15422{
15423 echo
15424 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15425## Running $as_me. ##
15426_ASBOX
15427 $as_echo "$ac_log"
15428} >&5
15429
15430_ACEOF
15431cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15432#
15433# INIT-COMMANDS
15434#
15435AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15436
15437_ACEOF
15438
15439cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15440
15441# Handling of arguments.
15442for ac_config_target in $ac_config_targets
15443do
15444 case $ac_config_target in
15445 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
15446 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15447 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15448 "import/Makefile") CONFIG_FILES="$CONFIG_FILES import/Makefile" ;;
15449 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15450
15451 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15452 esac
15453done
15454
15455
15456# If the user did not use the arguments to specify the items to instantiate,
15457# then the envvar interface is used. Set only those that are not.
15458# We use the long form for the default assignment because of an extremely
15459# bizarre bug on SunOS 4.1.3.
15460if $ac_need_defaults; then
15461 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15462 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15463 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15464fi
15465
15466# Have a temporary directory for convenience. Make it in the build tree
15467# simply because there is no reason against having it here, and in addition,
15468# creating and moving files from /tmp can sometimes cause problems.
15469# Hook for its removal unless debugging.
15470# Note that there is a small window in which the directory will not be cleaned:
15471# after its creation but before its name has been assigned to `$tmp'.
15472$debug ||
15473{
15474 tmp=
15475 trap 'exit_status=$?
15476 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15477' 0
15478 trap 'as_fn_exit 1' 1 2 13 15
15479}
15480# Create a (secure) tmp directory for tmp files.
15481
15482{
15483 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15484 test -n "$tmp" && test -d "$tmp"
15485} ||
15486{
15487 tmp=./conf$$-$RANDOM
15488 (umask 077 && mkdir "$tmp")
15489} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15490
15491# Set up the scripts for CONFIG_FILES section.
15492# No need to generate them if there are no CONFIG_FILES.
15493# This happens for instance with `./config.status config.h'.
15494if test -n "$CONFIG_FILES"; then
15495
15496
15497ac_cr=`echo X | tr X '\015'`
15498# On cygwin, bash can eat \r inside `` if the user requested igncr.
15499# But we know of no other shell where ac_cr would be empty at this
15500# point, so we can use a bashism as a fallback.
15501if test "x$ac_cr" = x; then
15502 eval ac_cr=\$\'\\r\'
15503fi
15504ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15505if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15506 ac_cs_awk_cr='\r'
15507else
15508 ac_cs_awk_cr=$ac_cr
15509fi
15510
15511echo 'BEGIN {' >"$tmp/subs1.awk" &&
15512_ACEOF
15513
15514
15515{
15516 echo "cat >conf$$subs.awk <<_ACEOF" &&
15517 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15518 echo "_ACEOF"
15519} >conf$$subs.sh ||
15520 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15521ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15522ac_delim='%!_!# '
15523for ac_last_try in false false false false false :; do
15524 . ./conf$$subs.sh ||
15525 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15526
15527 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15528 if test $ac_delim_n = $ac_delim_num; then
15529 break
15530 elif $ac_last_try; then
15531 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15532 else
15533 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15534 fi
15535done
15536rm -f conf$$subs.sh
15537
15538cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15539cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15540_ACEOF
15541sed -n '
15542h
15543s/^/S["/; s/!.*/"]=/
15544p
15545g
15546s/^[^!]*!//
15547:repl
15548t repl
15549s/'"$ac_delim"'$//
15550t delim
15551:nl
15552h
15553s/\(.\{148\}\).*/\1/
15554t more1
15555s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15556p
15557n
15558b repl
15559:more1
15560s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15561p
15562g
15563s/.\{148\}//
15564t nl
15565:delim
15566h
15567s/\(.\{148\}\).*/\1/
15568t more2
15569s/["\\]/\\&/g; s/^/"/; s/$/"/
15570p
15571b
15572:more2
15573s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15574p
15575g
15576s/.\{148\}//
15577t delim
15578' <conf$$subs.awk | sed '
15579/^[^""]/{
15580 N
15581 s/\n//
15582}
15583' >>$CONFIG_STATUS || ac_write_fail=1
15584rm -f conf$$subs.awk
15585cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15586_ACAWK
15587cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15588 for (key in S) S_is_set[key] = 1
15589 FS = "\a"
15590
15591}
15592{
15593 line = $ 0
15594 nfields = split(line, field, "@")
15595 substed = 0
15596 len = length(field[1])
15597 for (i = 2; i < nfields; i++) {
15598 key = field[i]
15599 keylen = length(key)
15600 if (S_is_set[key]) {
15601 value = S[key]
15602 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15603 len += length(value) + length(field[++i])
15604 substed = 1
15605 } else
15606 len += 1 + keylen
15607 }
15608
15609 print line
15610}
15611
15612_ACAWK
15613_ACEOF
15614cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15615if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15616 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15617else
15618 cat
15619fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15620 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15621_ACEOF
15622
15623# VPATH may cause trouble with some makes, so we remove $(srcdir),
15624# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15625# trailing colons and then remove the whole line if VPATH becomes empty
15626# (actually we leave an empty line to preserve line numbers).
15627if test "x$srcdir" = x.; then
15628 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15629s/:*\$(srcdir):*/:/
15630s/:*\${srcdir}:*/:/
15631s/:*@srcdir@:*/:/
15632s/^\([^=]*=[ ]*\):*/\1/
15633s/:*$//
15634s/^[^=]*=[ ]*$//
15635}'
15636fi
15637
15638cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15639fi # test -n "$CONFIG_FILES"
15640
15641# Set up the scripts for CONFIG_HEADERS section.
15642# No need to generate them if there are no CONFIG_HEADERS.
15643# This happens for instance with `./config.status Makefile'.
15644if test -n "$CONFIG_HEADERS"; then
15645cat >"$tmp/defines.awk" <<\_ACAWK ||
15646BEGIN {
15647_ACEOF
15648
15649# Transform confdefs.h into an awk script `defines.awk', embedded as
15650# here-document in config.status, that substitutes the proper values into
15651# config.h.in to produce config.h.
15652
15653# Create a delimiter string that does not exist in confdefs.h, to ease
15654# handling of long lines.
15655ac_delim='%!_!# '
15656for ac_last_try in false false :; do
15657 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15658 if test -z "$ac_t"; then
15659 break
15660 elif $ac_last_try; then
15661 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15662 else
15663 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15664 fi
15665done
15666
15667# For the awk script, D is an array of macro values keyed by name,
15668# likewise P contains macro parameters if any. Preserve backslash
15669# newline sequences.
15670
15671ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15672sed -n '
15673s/.\{148\}/&'"$ac_delim"'/g
15674t rset
15675:rset
15676s/^[ ]*#[ ]*define[ ][ ]*/ /
15677t def
15678d
15679:def
15680s/\\$//
15681t bsnl
15682s/["\\]/\\&/g
15683s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15684D["\1"]=" \3"/p
15685s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15686d
15687:bsnl
15688s/["\\]/\\&/g
15689s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15690D["\1"]=" \3\\\\\\n"\\/p
15691t cont
15692s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15693t cont
15694d
15695:cont
15696n
15697s/.\{148\}/&'"$ac_delim"'/g
15698t clear
15699:clear
15700s/\\$//
15701t bsnlc
15702s/["\\]/\\&/g; s/^/"/; s/$/"/p
15703d
15704:bsnlc
15705s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15706b cont
15707' <confdefs.h | sed '
15708s/'"$ac_delim"'/"\\\
15709"/g' >>$CONFIG_STATUS || ac_write_fail=1
15710
15711cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15712 for (key in D) D_is_set[key] = 1
15713 FS = "\a"
15714}
15715/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15716 line = \$ 0
15717 split(line, arg, " ")
15718 if (arg[1] == "#") {
15719 defundef = arg[2]
15720 mac1 = arg[3]
15721 } else {
15722 defundef = substr(arg[1], 2)
15723 mac1 = arg[2]
15724 }
15725 split(mac1, mac2, "(") #)
15726 macro = mac2[1]
15727 prefix = substr(line, 1, index(line, defundef) - 1)
15728 if (D_is_set[macro]) {
15729 # Preserve the white space surrounding the "#".
15730 print prefix "define", macro P[macro] D[macro]
15731 next
15732 } else {
15733 # Replace #undef with comments. This is necessary, for example,
15734 # in the case of _POSIX_SOURCE, which is predefined and required
15735 # on some systems where configure will not decide to define it.
15736 if (defundef == "undef") {
15737 print "/*", prefix defundef, macro, "*/"
15738 next
15739 }
15740 }
15741}
15742{ print }
15743_ACAWK
15744_ACEOF
15745cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15746 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15747fi # test -n "$CONFIG_HEADERS"
15748
15749
15750eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15751shift
15752for ac_tag
15753do
15754 case $ac_tag in
15755 :[FHLC]) ac_mode=$ac_tag; continue;;
15756 esac
15757 case $ac_mode$ac_tag in
15758 :[FHL]*:*);;
15759 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15760 :[FH]-) ac_tag=-:-;;
15761 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15762 esac
15763 ac_save_IFS=$IFS
15764 IFS=:
15765 set x $ac_tag
15766 IFS=$ac_save_IFS
15767 shift
15768 ac_file=$1
15769 shift
15770
15771 case $ac_mode in
15772 :L) ac_source=$1;;
15773 :[FH])
15774 ac_file_inputs=
15775 for ac_f
15776 do
15777 case $ac_f in
15778 -) ac_f="$tmp/stdin";;
15779 *) # Look for the file first in the build tree, then in the source tree
15780 # (if the path is not absolute). The absolute path cannot be DOS-style,
15781 # because $ac_f cannot contain `:'.
15782 test -f "$ac_f" ||
15783 case $ac_f in
15784 [\\/$]*) false;;
15785 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15786 esac ||
15787 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15788 esac
15789 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15790 as_fn_append ac_file_inputs " '$ac_f'"
15791 done
15792
15793 # Let's still pretend it is `configure' which instantiates (i.e., don't
15794 # use $as_me), people would be surprised to read:
15795 # /* config.h. Generated by config.status. */
15796 configure_input='Generated from '`
15797 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15798 `' by configure.'
15799 if test x"$ac_file" != x-; then
15800 configure_input="$ac_file. $configure_input"
15801 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15802$as_echo "$as_me: creating $ac_file" >&6;}
15803 fi
15804 # Neutralize special characters interpreted by sed in replacement strings.
15805 case $configure_input in #(
15806 *\&* | *\|* | *\\* )
15807 ac_sed_conf_input=`$as_echo "$configure_input" |
15808 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15809 *) ac_sed_conf_input=$configure_input;;
15810 esac
15811
15812 case $ac_tag in
15813 *:-:* | *:-) cat >"$tmp/stdin" \
15814 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15815 esac
15816 ;;
15817 esac
15818
15819 ac_dir=`$as_dirname -- "$ac_file" ||
15820$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15821 X"$ac_file" : 'X\(//\)[^/]' \| \
15822 X"$ac_file" : 'X\(//\)$' \| \
15823 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15824$as_echo X"$ac_file" |
15825 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15826 s//\1/
15827 q
15828 }
15829 /^X\(\/\/\)[^/].*/{
15830 s//\1/
15831 q
15832 }
15833 /^X\(\/\/\)$/{
15834 s//\1/
15835 q
15836 }
15837 /^X\(\/\).*/{
15838 s//\1/
15839 q
15840 }
15841 s/.*/./; q'`
15842 as_dir="$ac_dir"; as_fn_mkdir_p
15843 ac_builddir=.
15844
15845case "$ac_dir" in
15846.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15847*)
15848 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15849 # A ".." for each directory in $ac_dir_suffix.
15850 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15851 case $ac_top_builddir_sub in
15852 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15853 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15854 esac ;;
15855esac
15856ac_abs_top_builddir=$ac_pwd
15857ac_abs_builddir=$ac_pwd$ac_dir_suffix
15858# for backward compatibility:
15859ac_top_builddir=$ac_top_build_prefix
15860
15861case $srcdir in
15862 .) # We are building in place.
15863 ac_srcdir=.
15864 ac_top_srcdir=$ac_top_builddir_sub
15865 ac_abs_top_srcdir=$ac_pwd ;;
15866 [\\/]* | ?:[\\/]* ) # Absolute name.
15867 ac_srcdir=$srcdir$ac_dir_suffix;
15868 ac_top_srcdir=$srcdir
15869 ac_abs_top_srcdir=$srcdir ;;
15870 *) # Relative name.
15871 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15872 ac_top_srcdir=$ac_top_build_prefix$srcdir
15873 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15874esac
15875ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15876
15877
15878 case $ac_mode in
15879 :F)
15880 #
15881 # CONFIG_FILE
15882 #
15883
15884 case $INSTALL in
15885 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15886 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15887 esac
15888 ac_MKDIR_P=$MKDIR_P
15889 case $MKDIR_P in
15890 [\\/$]* | ?:[\\/]* ) ;;
15891 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15892 esac
15893_ACEOF
15894
15895cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15896# If the template does not know about datarootdir, expand it.
15897# FIXME: This hack should be removed a few years after 2.60.
15898ac_datarootdir_hack=; ac_datarootdir_seen=
15899ac_sed_dataroot='
15900/datarootdir/ {
15901 p
15902 q
15903}
15904/@datadir@/p
15905/@docdir@/p
15906/@infodir@/p
15907/@localedir@/p
15908/@mandir@/p'
15909case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15910*datarootdir*) ac_datarootdir_seen=yes;;
15911*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15913$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15914_ACEOF
15915cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15916 ac_datarootdir_hack='
15917 s&@datadir@&$datadir&g
15918 s&@docdir@&$docdir&g
15919 s&@infodir@&$infodir&g
15920 s&@localedir@&$localedir&g
15921 s&@mandir@&$mandir&g
15922 s&\\\${datarootdir}&$datarootdir&g' ;;
15923esac
15924_ACEOF
15925
15926# Neutralize VPATH when `$srcdir' = `.'.
15927# Shell code in configure.ac might set extrasub.
15928# FIXME: do we really want to maintain this feature?
15929cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15930ac_sed_extra="$ac_vpsub
15931$extrasub
15932_ACEOF
15933cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15934:t
15935/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15936s|@configure_input@|$ac_sed_conf_input|;t t
15937s&@top_builddir@&$ac_top_builddir_sub&;t t
15938s&@top_build_prefix@&$ac_top_build_prefix&;t t
15939s&@srcdir@&$ac_srcdir&;t t
15940s&@abs_srcdir@&$ac_abs_srcdir&;t t
15941s&@top_srcdir@&$ac_top_srcdir&;t t
15942s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15943s&@builddir@&$ac_builddir&;t t
15944s&@abs_builddir@&$ac_abs_builddir&;t t
15945s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15946s&@INSTALL@&$ac_INSTALL&;t t
15947s&@MKDIR_P@&$ac_MKDIR_P&;t t
15948$ac_datarootdir_hack
15949"
15950eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15951 || as_fn_error "could not create $ac_file" "$LINENO" 5
15952
15953test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15954 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15955 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15957which seems to be undefined. Please make sure it is defined." >&5
15958$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15959which seems to be undefined. Please make sure it is defined." >&2;}
15960
15961 rm -f "$tmp/stdin"
15962 case $ac_file in
15963 -) cat "$tmp/out" && rm -f "$tmp/out";;
15964 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15965 esac \
15966 || as_fn_error "could not create $ac_file" "$LINENO" 5
15967 ;;
15968 :H)
15969 #
15970 # CONFIG_HEADER
15971 #
15972 if test x"$ac_file" != x-; then
15973 {
15974 $as_echo "/* $configure_input */" \
15975 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15976 } >"$tmp/config.h" \
15977 || as_fn_error "could not create $ac_file" "$LINENO" 5
15978 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15979 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15980$as_echo "$as_me: $ac_file is unchanged" >&6;}
15981 else
15982 rm -f "$ac_file"
15983 mv "$tmp/config.h" "$ac_file" \
15984 || as_fn_error "could not create $ac_file" "$LINENO" 5
15985 fi
15986 else
15987 $as_echo "/* $configure_input */" \
15988 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15989 || as_fn_error "could not create -" "$LINENO" 5
15990 fi
15991# Compute "$ac_file"'s index in $config_headers.
15992_am_arg="$ac_file"
15993_am_stamp_count=1
15994for _am_header in $config_headers :; do
15995 case $_am_header in
15996 $_am_arg | $_am_arg:* )
15997 break ;;
15998 * )
15999 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16000 esac
16001done
16002echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16003$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16004 X"$_am_arg" : 'X\(//\)[^/]' \| \
16005 X"$_am_arg" : 'X\(//\)$' \| \
16006 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16007$as_echo X"$_am_arg" |
16008 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16009 s//\1/
16010 q
16011 }
16012 /^X\(\/\/\)[^/].*/{
16013 s//\1/
16014 q
16015 }
16016 /^X\(\/\/\)$/{
16017 s//\1/
16018 q
16019 }
16020 /^X\(\/\).*/{
16021 s//\1/
16022 q
16023 }
16024 s/.*/./; q'`/stamp-h$_am_stamp_count
16025 ;;
16026
16027 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16028$as_echo "$as_me: executing $ac_file commands" >&6;}
16029 ;;
16030 esac
16031
16032
16033 case $ac_file$ac_mode in
16034 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16035 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16036 # are listed without --file. Let's play safe and only enable the eval
16037 # if we detect the quoting.
16038 case $CONFIG_FILES in
16039 *\'*) eval set x "$CONFIG_FILES" ;;
16040 *) set x $CONFIG_FILES ;;
16041 esac
16042 shift
16043 for mf
16044 do
16045 # Strip MF so we end up with the name of the file.
16046 mf=`echo "$mf" | sed -e 's/:.*$//'`
16047 # Check whether this is an Automake generated Makefile or not.
16048 # We used to match only the files named `Makefile.in', but
16049 # some people rename them; so instead we look at the file content.
16050 # Grep'ing the first line is not enough: some people post-process
16051 # each Makefile.in and add a new line on top of each file to say so.
16052 # Grep'ing the whole file is not good either: AIX grep has a line
16053 # limit of 2048, but all sed's we know have understand at least 4000.
16054 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16055 dirpart=`$as_dirname -- "$mf" ||
16056$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16057 X"$mf" : 'X\(//\)[^/]' \| \
16058 X"$mf" : 'X\(//\)$' \| \
16059 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16060$as_echo X"$mf" |
16061 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16062 s//\1/
16063 q
16064 }
16065 /^X\(\/\/\)[^/].*/{
16066 s//\1/
16067 q
16068 }
16069 /^X\(\/\/\)$/{
16070 s//\1/
16071 q
16072 }
16073 /^X\(\/\).*/{
16074 s//\1/
16075 q
16076 }
16077 s/.*/./; q'`
16078 else
16079 continue
16080 fi
16081 # Extract the definition of DEPDIR, am__include, and am__quote
16082 # from the Makefile without running `make'.
16083 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16084 test -z "$DEPDIR" && continue
16085 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16086 test -z "am__include" && continue
16087 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16088 # When using ansi2knr, U may be empty or an underscore; expand it
16089 U=`sed -n 's/^U = //p' < "$mf"`
16090 # Find all dependency output files, they are included files with
16091 # $(DEPDIR) in their names. We invoke sed twice because it is the
16092 # simplest approach to changing $(DEPDIR) to its actual value in the
16093 # expansion.
16094 for file in `sed -n "
16095 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16096 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16097 # Make sure the directory exists.
16098 test -f "$dirpart/$file" && continue
16099 fdir=`$as_dirname -- "$file" ||
16100$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16101 X"$file" : 'X\(//\)[^/]' \| \
16102 X"$file" : 'X\(//\)$' \| \
16103 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16104$as_echo X"$file" |
16105 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16106 s//\1/
16107 q
16108 }
16109 /^X\(\/\/\)[^/].*/{
16110 s//\1/
16111 q
16112 }
16113 /^X\(\/\/\)$/{
16114 s//\1/
16115 q
16116 }
16117 /^X\(\/\).*/{
16118 s//\1/
16119 q
16120 }
16121 s/.*/./; q'`
16122 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16123 # echo "creating $dirpart/$file"
16124 echo '# dummy' > "$dirpart/$file"
16125 done
16126 done
16127}
16128 ;;
16129 "default":C)
16130case x$CONFIG_HEADERS in
16131xconfig.h:config.in)
16132echo > stamp-h ;;
16133esac
16134 ;;
16135
16136 esac
16137done # for ac_tag
16138
16139
16140as_fn_exit 0
16141_ACEOF
16142ac_clean_files=$ac_clean_files_save
16143
16144test $ac_write_fail = 0 ||
16145 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16146
16147
16148# configure is writing to config.log, and then calls config.status.
16149# config.status does its own redirection, appending to config.log.
16150# Unfortunately, on DOS this fails, as config.log is still kept open
16151# by configure, so config.status won't be able to write to it; its
16152# output is simply discarded. So we exec the FD to /dev/null,
16153# effectively closing config.log, so it can be properly (re)opened and
16154# appended to by config.status. When coming back to configure, we
16155# need to make the FD available again.
16156if test "$no_create" != yes; then
16157 ac_cs_success=:
16158 ac_config_status_args=
16159 test "$silent" = yes &&
16160 ac_config_status_args="$ac_config_status_args --quiet"
16161 exec 5>/dev/null
16162 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16163 exec 5>>config.log
16164 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16165 # would make configure fail if this is the last instruction.
16166 $ac_cs_success || as_fn_exit $?
16167fi
16168if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16170$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16171fi
16172
16173
16174exit 0
This page took 0.765604 seconds and 4 git commands to generate.