Import the "pathmax" gnulib module.
[deliverable/binutils-gdb.git] / gdb / gnulib / configure
CommitLineData
c971b7fa
PA
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.64.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99IFS=$as_save_IFS
100
101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175else
176 as_have_required=no
177fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182as_found=false
183for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184do
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198fi
199fi
200 done;;
201 esac
202 as_found=false
203done
204$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207fi; }
208IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228 else
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230$0: including any error possibly output before this
231$0: message. Then install a modern shell, or manually run
232$0: the script under such a shell if you do have one."
233 fi
234 exit 1
235fi
236fi
237fi
238SHELL=${CONFIG_SHELL-/bin/sh}
239export SHELL
240# Unset more variables known to interfere with behavior of common tools.
241CLICOLOR_FORCE= GREP_OPTIONS=
242unset CLICOLOR_FORCE GREP_OPTIONS
243
244## --------------------- ##
245## M4sh Shell Functions. ##
246## --------------------- ##
247# as_fn_unset VAR
248# ---------------
249# Portably unset VAR.
250as_fn_unset ()
251{
252 { eval $1=; unset $1;}
253}
254as_unset=as_fn_unset
255
256# as_fn_set_status STATUS
257# -----------------------
258# Set $? to STATUS, without forking.
259as_fn_set_status ()
260{
261 return $1
262} # as_fn_set_status
263
264# as_fn_exit STATUS
265# -----------------
266# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267as_fn_exit ()
268{
269 set +e
270 as_fn_set_status $1
271 exit $1
272} # as_fn_exit
273
274# as_fn_mkdir_p
275# -------------
276# Create "$as_dir" as a directory, including parents if necessary.
277as_fn_mkdir_p ()
278{
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296$as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320} # as_fn_mkdir_p
321# as_fn_append VAR VALUE
322# ----------------------
323# Append the text in VALUE to the end of the definition contained in VAR. Take
324# advantage of any shell optimizations that allow amortized linear growth over
325# repeated appends, instead of the typical quadratic growth present in naive
326# implementations.
327if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337fi # as_fn_append
338
339# as_fn_arith ARG...
340# ------------------
341# Perform arithmetic evaluation on the ARGs, and store the result in the
342# global $as_val. Take advantage of shells that can avoid forks. The arguments
343# must be portable across $(()) and expr.
344if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354fi # as_fn_arith
355
356
357# as_fn_error ERROR [LINENO LOG_FD]
358# ---------------------------------
359# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361# script with status $?, using 1 if that was 0.
362as_fn_error ()
363{
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371} # as_fn_error
372
373if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376else
377 as_expr=false
378fi
379
380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382else
383 as_basename=false
384fi
385
386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388else
389 as_dirname=false
390fi
391
392as_me=`$as_basename -- "$0" ||
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396$as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
410
411# Avoid depending upon Character Ranges.
412as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415as_cr_digits='0123456789'
416as_cr_alnum=$as_cr_Letters$as_cr_digits
417
418
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
433 N
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436 t loop
437 s/-\n.*//
438 ' >$as_me.lineno &&
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
446 # Exit status is that of the last command.
447 exit
448}
449
450ECHO_C= ECHO_N= ECHO_T=
451case `echo -n x` in #(((((
452-n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459*)
460 ECHO_N='-n';;
461esac
462
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
469fi
470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
472 as_ln_s='ln -s'
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
483 fi
484else
485 as_ln_s='cp -p'
486fi
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
489
490if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495fi
496
497if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517fi
518as_executable_p=$as_test_x
519
520# Sed expression to map a string onto a valid CPP name.
521as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523# Sed expression to map a string onto a valid variable name.
524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
527exec 7<&0 </dev/null 6>&1
528
529# Name of the host.
530# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531# so uname gets run too.
532ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
534#
535# Initializations.
536#
537ac_default_prefix=/usr/local
538ac_clean_files=
539ac_config_libobj_dir=.
540LIBOBJS=
541cross_compiling=no
542subdirs=
543MFLAGS=
544MAKEFLAGS=
545
546# Identity of this package.
547PACKAGE_NAME=
548PACKAGE_TARNAME=
549PACKAGE_VERSION=
550PACKAGE_STRING=
551PACKAGE_BUGREPORT=
552PACKAGE_URL=
553
8690e634 554ac_unique_file="import/memmem.c"
c971b7fa
PA
555# Factoring default headers for most tests.
556ac_includes_default="\
557#include <stdio.h>
558#ifdef HAVE_SYS_TYPES_H
559# include <sys/types.h>
560#endif
561#ifdef HAVE_SYS_STAT_H
562# include <sys/stat.h>
563#endif
564#ifdef STDC_HEADERS
565# include <stdlib.h>
566# include <stddef.h>
567#else
568# ifdef HAVE_STDLIB_H
569# include <stdlib.h>
570# endif
571#endif
572#ifdef HAVE_STRING_H
573# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
574# include <memory.h>
575# endif
576# include <string.h>
577#endif
578#ifdef HAVE_STRINGS_H
579# include <strings.h>
580#endif
581#ifdef HAVE_INTTYPES_H
582# include <inttypes.h>
583#endif
584#ifdef HAVE_STDINT_H
585# include <stdint.h>
586#endif
587#ifdef HAVE_UNISTD_H
588# include <unistd.h>
589#endif"
590
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"
38ec2207 3006as_fn_append ac_header_list " sys/param.h"
3574124b
PA
3007as_fn_append ac_header_list " features.h"
3008as_fn_append ac_func_list " iswcntrl"
c971b7fa
PA
3009# Check that the precious variables saved in the cache have kept the same
3010# value.
3011ac_cache_corrupted=false
3012for ac_var in $ac_precious_vars; do
3013 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3014 eval ac_new_set=\$ac_env_${ac_var}_set
3015 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3016 eval ac_new_val=\$ac_env_${ac_var}_value
3017 case $ac_old_set,$ac_new_set in
3018 set,)
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3020$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3021 ac_cache_corrupted=: ;;
3022 ,set)
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3024$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3025 ac_cache_corrupted=: ;;
3026 ,);;
3027 *)
3028 if test "x$ac_old_val" != "x$ac_new_val"; then
3029 # differences in whitespace do not lead to failure.
3030 ac_old_val_w=`echo x $ac_old_val`
3031 ac_new_val_w=`echo x $ac_new_val`
3032 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3034$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3035 ac_cache_corrupted=:
3036 else
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3038$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3039 eval $ac_var=\$ac_old_val
3040 fi
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3042$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3044$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3045 fi;;
3046 esac
3047 # Pass precious variables to config.status.
3048 if test "$ac_new_set" = set; then
3049 case $ac_new_val in
3050 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3051 *) ac_arg=$ac_var=$ac_new_val ;;
3052 esac
3053 case " $ac_configure_args " in
3054 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3055 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3056 esac
3057 fi
3058done
3059if $ac_cache_corrupted; then
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3061$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3063$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3064 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3065fi
3066## -------------------- ##
3067## Main body of script. ##
3068## -------------------- ##
3069
3070ac_ext=c
3071ac_cpp='$CPP $CPPFLAGS'
3072ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3074ac_compiler_gnu=$ac_cv_c_compiler_gnu
3075
3076
3077ac_config_headers="$ac_config_headers config.h:config.in"
3078
3079
3080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3081$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3082 # Check whether --enable-maintainer-mode was given.
3083if test "${enable_maintainer_mode+set}" = set; then :
3084 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3085else
3086 USE_MAINTAINER_MODE=no
3087fi
3088
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3090$as_echo "$USE_MAINTAINER_MODE" >&6; }
3091 if test $USE_MAINTAINER_MODE = yes; then
3092 MAINTAINER_MODE_TRUE=
3093 MAINTAINER_MODE_FALSE='#'
3094else
3095 MAINTAINER_MODE_TRUE='#'
3096 MAINTAINER_MODE_FALSE=
3097fi
3098
3099 MAINT=$MAINTAINER_MODE_TRUE
3100
3101
3102
3103ac_ext=c
3104ac_cpp='$CPP $CPPFLAGS'
3105ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3106ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3107ac_compiler_gnu=$ac_cv_c_compiler_gnu
3108if test -n "$ac_tool_prefix"; then
3109 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3110set dummy ${ac_tool_prefix}gcc; ac_word=$2
3111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3112$as_echo_n "checking for $ac_word... " >&6; }
3113if test "${ac_cv_prog_CC+set}" = set; then :
3114 $as_echo_n "(cached) " >&6
3115else
3116 if test -n "$CC"; then
3117 ac_cv_prog_CC="$CC" # Let the user override the test.
3118else
3119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3120for as_dir in $PATH
3121do
3122 IFS=$as_save_IFS
3123 test -z "$as_dir" && as_dir=.
3124 for ac_exec_ext in '' $ac_executable_extensions; do
3125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3126 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3128 break 2
3129 fi
3130done
3131 done
3132IFS=$as_save_IFS
3133
3134fi
3135fi
3136CC=$ac_cv_prog_CC
3137if test -n "$CC"; then
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3139$as_echo "$CC" >&6; }
3140else
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3142$as_echo "no" >&6; }
3143fi
3144
3145
3146fi
3147if test -z "$ac_cv_prog_CC"; then
3148 ac_ct_CC=$CC
3149 # Extract the first word of "gcc", so it can be a program name with args.
3150set dummy gcc; ac_word=$2
3151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3152$as_echo_n "checking for $ac_word... " >&6; }
3153if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3154 $as_echo_n "(cached) " >&6
3155else
3156 if test -n "$ac_ct_CC"; then
3157 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3158else
3159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3160for as_dir in $PATH
3161do
3162 IFS=$as_save_IFS
3163 test -z "$as_dir" && as_dir=.
3164 for ac_exec_ext in '' $ac_executable_extensions; do
3165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3166 ac_cv_prog_ac_ct_CC="gcc"
3167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3168 break 2
3169 fi
3170done
3171 done
3172IFS=$as_save_IFS
3173
3174fi
3175fi
3176ac_ct_CC=$ac_cv_prog_ac_ct_CC
3177if test -n "$ac_ct_CC"; then
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3179$as_echo "$ac_ct_CC" >&6; }
3180else
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3182$as_echo "no" >&6; }
3183fi
3184
3185 if test "x$ac_ct_CC" = x; then
3186 CC=""
3187 else
3188 case $cross_compiling:$ac_tool_warned in
3189yes:)
3190{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3191$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3192ac_tool_warned=yes ;;
3193esac
3194 CC=$ac_ct_CC
3195 fi
3196else
3197 CC="$ac_cv_prog_CC"
3198fi
3199
3200if test -z "$CC"; then
3201 if test -n "$ac_tool_prefix"; then
3202 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3203set dummy ${ac_tool_prefix}cc; ac_word=$2
3204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3205$as_echo_n "checking for $ac_word... " >&6; }
3206if test "${ac_cv_prog_CC+set}" = set; then :
3207 $as_echo_n "(cached) " >&6
3208else
3209 if test -n "$CC"; then
3210 ac_cv_prog_CC="$CC" # Let the user override the test.
3211else
3212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3213for as_dir in $PATH
3214do
3215 IFS=$as_save_IFS
3216 test -z "$as_dir" && as_dir=.
3217 for ac_exec_ext in '' $ac_executable_extensions; do
3218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3219 ac_cv_prog_CC="${ac_tool_prefix}cc"
3220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3221 break 2
3222 fi
3223done
3224 done
3225IFS=$as_save_IFS
3226
3227fi
3228fi
3229CC=$ac_cv_prog_CC
3230if test -n "$CC"; then
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3232$as_echo "$CC" >&6; }
3233else
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3235$as_echo "no" >&6; }
3236fi
3237
3238
3239 fi
3240fi
3241if test -z "$CC"; then
3242 # Extract the first word of "cc", so it can be a program name with args.
3243set dummy cc; ac_word=$2
3244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3245$as_echo_n "checking for $ac_word... " >&6; }
3246if test "${ac_cv_prog_CC+set}" = set; then :
3247 $as_echo_n "(cached) " >&6
3248else
3249 if test -n "$CC"; then
3250 ac_cv_prog_CC="$CC" # Let the user override the test.
3251else
3252 ac_prog_rejected=no
3253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3254for as_dir in $PATH
3255do
3256 IFS=$as_save_IFS
3257 test -z "$as_dir" && as_dir=.
3258 for ac_exec_ext in '' $ac_executable_extensions; do
3259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3260 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3261 ac_prog_rejected=yes
3262 continue
3263 fi
3264 ac_cv_prog_CC="cc"
3265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3266 break 2
3267 fi
3268done
3269 done
3270IFS=$as_save_IFS
3271
3272if test $ac_prog_rejected = yes; then
3273 # We found a bogon in the path, so make sure we never use it.
3274 set dummy $ac_cv_prog_CC
3275 shift
3276 if test $# != 0; then
3277 # We chose a different compiler from the bogus one.
3278 # However, it has the same basename, so the bogon will be chosen
3279 # first if we set CC to just the basename; use the full file name.
3280 shift
3281 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3282 fi
3283fi
3284fi
3285fi
3286CC=$ac_cv_prog_CC
3287if test -n "$CC"; then
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3289$as_echo "$CC" >&6; }
3290else
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3292$as_echo "no" >&6; }
3293fi
3294
3295
3296fi
3297if test -z "$CC"; then
3298 if test -n "$ac_tool_prefix"; then
3299 for ac_prog in cl.exe
3300 do
3301 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3302set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3304$as_echo_n "checking for $ac_word... " >&6; }
3305if test "${ac_cv_prog_CC+set}" = set; then :
3306 $as_echo_n "(cached) " >&6
3307else
3308 if test -n "$CC"; then
3309 ac_cv_prog_CC="$CC" # Let the user override the test.
3310else
3311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3312for as_dir in $PATH
3313do
3314 IFS=$as_save_IFS
3315 test -z "$as_dir" && as_dir=.
3316 for ac_exec_ext in '' $ac_executable_extensions; do
3317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3318 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3320 break 2
3321 fi
3322done
3323 done
3324IFS=$as_save_IFS
3325
3326fi
3327fi
3328CC=$ac_cv_prog_CC
3329if test -n "$CC"; then
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3331$as_echo "$CC" >&6; }
3332else
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3334$as_echo "no" >&6; }
3335fi
3336
3337
3338 test -n "$CC" && break
3339 done
3340fi
3341if test -z "$CC"; then
3342 ac_ct_CC=$CC
3343 for ac_prog in cl.exe
3344do
3345 # Extract the first word of "$ac_prog", so it can be a program name with args.
3346set dummy $ac_prog; ac_word=$2
3347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3348$as_echo_n "checking for $ac_word... " >&6; }
3349if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3350 $as_echo_n "(cached) " >&6
3351else
3352 if test -n "$ac_ct_CC"; then
3353 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3354else
3355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3356for as_dir in $PATH
3357do
3358 IFS=$as_save_IFS
3359 test -z "$as_dir" && as_dir=.
3360 for ac_exec_ext in '' $ac_executable_extensions; do
3361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3362 ac_cv_prog_ac_ct_CC="$ac_prog"
3363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3364 break 2
3365 fi
3366done
3367 done
3368IFS=$as_save_IFS
3369
3370fi
3371fi
3372ac_ct_CC=$ac_cv_prog_ac_ct_CC
3373if test -n "$ac_ct_CC"; then
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3375$as_echo "$ac_ct_CC" >&6; }
3376else
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3378$as_echo "no" >&6; }
3379fi
3380
3381
3382 test -n "$ac_ct_CC" && break
3383done
3384
3385 if test "x$ac_ct_CC" = x; then
3386 CC=""
3387 else
3388 case $cross_compiling:$ac_tool_warned in
3389yes:)
3390{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3391$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3392ac_tool_warned=yes ;;
3393esac
3394 CC=$ac_ct_CC
3395 fi
3396fi
3397
3398fi
3399
3400
3401test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3402$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3403as_fn_error "no acceptable C compiler found in \$PATH
3404See \`config.log' for more details." "$LINENO" 5; }
3405
3406# Provide some information about the compiler.
3407$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3408set X $ac_compile
3409ac_compiler=$2
3410for ac_option in --version -v -V -qversion; do
3411 { { ac_try="$ac_compiler $ac_option >&5"
3412case "(($ac_try" in
3413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3414 *) ac_try_echo=$ac_try;;
3415esac
3416eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3417$as_echo "$ac_try_echo"; } >&5
3418 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3419 ac_status=$?
3420 if test -s conftest.err; then
3421 sed '10a\
3422... rest of stderr output deleted ...
3423 10q' conftest.err >conftest.er1
3424 cat conftest.er1 >&5
3425 rm -f conftest.er1 conftest.err
3426 fi
3427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3428 test $ac_status = 0; }
3429done
3430
3431cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3432/* end confdefs.h. */
3433#include <stdio.h>
3434int
3435main ()
3436{
3437FILE *f = fopen ("conftest.out", "w");
3438 return ferror (f) || fclose (f) != 0;
3439
3440 ;
3441 return 0;
3442}
3443_ACEOF
3444ac_clean_files_save=$ac_clean_files
3445ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3446# Try to create an executable without -o first, disregard a.out.
3447# It will help us diagnose broken compilers, and finding out an intuition
3448# of exeext.
3449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3450$as_echo_n "checking for C compiler default output file name... " >&6; }
3451ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3452
3453# The possible output files:
3454ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3455
3456ac_rmfiles=
3457for ac_file in $ac_files
3458do
3459 case $ac_file in
3460 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3461 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3462 esac
3463done
3464rm -f $ac_rmfiles
3465
3466if { { ac_try="$ac_link_default"
3467case "(($ac_try" in
3468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3469 *) ac_try_echo=$ac_try;;
3470esac
3471eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3472$as_echo "$ac_try_echo"; } >&5
3473 (eval "$ac_link_default") 2>&5
3474 ac_status=$?
3475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3476 test $ac_status = 0; }; then :
3477 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3478# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3479# in a Makefile. We should not override ac_cv_exeext if it was cached,
3480# so that the user can short-circuit this test for compilers unknown to
3481# Autoconf.
3482for ac_file in $ac_files ''
3483do
3484 test -f "$ac_file" || continue
3485 case $ac_file in
3486 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3487 ;;
3488 [ab].out )
3489 # We found the default executable, but exeext='' is most
3490 # certainly right.
3491 break;;
3492 *.* )
3493 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3494 then :; else
3495 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3496 fi
3497 # We set ac_cv_exeext here because the later test for it is not
3498 # safe: cross compilers may not add the suffix if given an `-o'
3499 # argument, so we may need to know it at that point already.
3500 # Even if this section looks crufty: it has the advantage of
3501 # actually working.
3502 break;;
3503 * )
3504 break;;
3505 esac
3506done
3507test "$ac_cv_exeext" = no && ac_cv_exeext=
3508
3509else
3510 ac_file=''
3511fi
3512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3513$as_echo "$ac_file" >&6; }
3514if test -z "$ac_file"; then :
3515 $as_echo "$as_me: failed program was:" >&5
3516sed 's/^/| /' conftest.$ac_ext >&5
3517
3518{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3519$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3520{ as_fn_set_status 77
3521as_fn_error "C compiler cannot create executables
3522See \`config.log' for more details." "$LINENO" 5; }; }
3523fi
3524ac_exeext=$ac_cv_exeext
3525
3526# Check that the compiler produces executables we can run. If not, either
3527# the compiler is broken, or we cross compile.
3528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3529$as_echo_n "checking whether the C compiler works... " >&6; }
3530# If not cross compiling, check that we can run a simple program.
3531if test "$cross_compiling" != yes; then
3532 if { ac_try='./$ac_file'
3533 { { case "(($ac_try" in
3534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3535 *) ac_try_echo=$ac_try;;
3536esac
3537eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3538$as_echo "$ac_try_echo"; } >&5
3539 (eval "$ac_try") 2>&5
3540 ac_status=$?
3541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3542 test $ac_status = 0; }; }; then
3543 cross_compiling=no
3544 else
3545 if test "$cross_compiling" = maybe; then
3546 cross_compiling=yes
3547 else
3548 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3549$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3550as_fn_error "cannot run C compiled programs.
3551If you meant to cross compile, use \`--host'.
3552See \`config.log' for more details." "$LINENO" 5; }
3553 fi
3554 fi
3555fi
3556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3557$as_echo "yes" >&6; }
3558
3559rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3560ac_clean_files=$ac_clean_files_save
3561# Check that the compiler produces executables we can run. If not, either
3562# the compiler is broken, or we cross compile.
3563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3564$as_echo_n "checking whether we are cross compiling... " >&6; }
3565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3566$as_echo "$cross_compiling" >&6; }
3567
3568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3569$as_echo_n "checking for suffix of executables... " >&6; }
3570if { { ac_try="$ac_link"
3571case "(($ac_try" in
3572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3573 *) ac_try_echo=$ac_try;;
3574esac
3575eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3576$as_echo "$ac_try_echo"; } >&5
3577 (eval "$ac_link") 2>&5
3578 ac_status=$?
3579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3580 test $ac_status = 0; }; then :
3581 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3582# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3583# work properly (i.e., refer to `conftest.exe'), while it won't with
3584# `rm'.
3585for ac_file in conftest.exe conftest conftest.*; do
3586 test -f "$ac_file" || continue
3587 case $ac_file in
3588 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3589 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3590 break;;
3591 * ) break;;
3592 esac
3593done
3594else
3595 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3596$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3597as_fn_error "cannot compute suffix of executables: cannot compile and link
3598See \`config.log' for more details." "$LINENO" 5; }
3599fi
3600rm -f conftest$ac_cv_exeext
3601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3602$as_echo "$ac_cv_exeext" >&6; }
3603
3604rm -f conftest.$ac_ext
3605EXEEXT=$ac_cv_exeext
3606ac_exeext=$EXEEXT
3607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3608$as_echo_n "checking for suffix of object files... " >&6; }
3609if test "${ac_cv_objext+set}" = set; then :
3610 $as_echo_n "(cached) " >&6
3611else
3612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3613/* end confdefs.h. */
3614
3615int
3616main ()
3617{
3618
3619 ;
3620 return 0;
3621}
3622_ACEOF
3623rm -f conftest.o conftest.obj
3624if { { ac_try="$ac_compile"
3625case "(($ac_try" in
3626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3627 *) ac_try_echo=$ac_try;;
3628esac
3629eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3630$as_echo "$ac_try_echo"; } >&5
3631 (eval "$ac_compile") 2>&5
3632 ac_status=$?
3633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3634 test $ac_status = 0; }; then :
3635 for ac_file in conftest.o conftest.obj conftest.*; do
3636 test -f "$ac_file" || continue;
3637 case $ac_file in
3638 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3639 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3640 break;;
3641 esac
3642done
3643else
3644 $as_echo "$as_me: failed program was:" >&5
3645sed 's/^/| /' conftest.$ac_ext >&5
3646
3647{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3648$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3649as_fn_error "cannot compute suffix of object files: cannot compile
3650See \`config.log' for more details." "$LINENO" 5; }
3651fi
3652rm -f conftest.$ac_cv_objext conftest.$ac_ext
3653fi
3654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3655$as_echo "$ac_cv_objext" >&6; }
3656OBJEXT=$ac_cv_objext
3657ac_objext=$OBJEXT
3658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3659$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3660if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3661 $as_echo_n "(cached) " >&6
3662else
3663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3664/* end confdefs.h. */
3665
3666int
3667main ()
3668{
3669#ifndef __GNUC__
3670 choke me
3671#endif
3672
3673 ;
3674 return 0;
3675}
3676_ACEOF
3677if ac_fn_c_try_compile "$LINENO"; then :
3678 ac_compiler_gnu=yes
3679else
3680 ac_compiler_gnu=no
3681fi
3682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3683ac_cv_c_compiler_gnu=$ac_compiler_gnu
3684
3685fi
3686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3687$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3688if test $ac_compiler_gnu = yes; then
3689 GCC=yes
3690else
3691 GCC=
3692fi
3693ac_test_CFLAGS=${CFLAGS+set}
3694ac_save_CFLAGS=$CFLAGS
3695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3696$as_echo_n "checking whether $CC accepts -g... " >&6; }
3697if test "${ac_cv_prog_cc_g+set}" = set; then :
3698 $as_echo_n "(cached) " >&6
3699else
3700 ac_save_c_werror_flag=$ac_c_werror_flag
3701 ac_c_werror_flag=yes
3702 ac_cv_prog_cc_g=no
3703 CFLAGS="-g"
3704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3705/* end confdefs.h. */
3706
3707int
3708main ()
3709{
3710
3711 ;
3712 return 0;
3713}
3714_ACEOF
3715if ac_fn_c_try_compile "$LINENO"; then :
3716 ac_cv_prog_cc_g=yes
3717else
3718 CFLAGS=""
3719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3720/* end confdefs.h. */
3721
3722int
3723main ()
3724{
3725
3726 ;
3727 return 0;
3728}
3729_ACEOF
3730if ac_fn_c_try_compile "$LINENO"; then :
3731
3732else
3733 ac_c_werror_flag=$ac_save_c_werror_flag
3734 CFLAGS="-g"
3735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3736/* end confdefs.h. */
3737
3738int
3739main ()
3740{
3741
3742 ;
3743 return 0;
3744}
3745_ACEOF
3746if ac_fn_c_try_compile "$LINENO"; then :
3747 ac_cv_prog_cc_g=yes
3748fi
3749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3750fi
3751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3752fi
3753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3754 ac_c_werror_flag=$ac_save_c_werror_flag
3755fi
3756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3757$as_echo "$ac_cv_prog_cc_g" >&6; }
3758if test "$ac_test_CFLAGS" = set; then
3759 CFLAGS=$ac_save_CFLAGS
3760elif test $ac_cv_prog_cc_g = yes; then
3761 if test "$GCC" = yes; then
3762 CFLAGS="-g -O2"
3763 else
3764 CFLAGS="-g"
3765 fi
3766else
3767 if test "$GCC" = yes; then
3768 CFLAGS="-O2"
3769 else
3770 CFLAGS=
3771 fi
3772fi
3773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3774$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3775if test "${ac_cv_prog_cc_c89+set}" = set; then :
3776 $as_echo_n "(cached) " >&6
3777else
3778 ac_cv_prog_cc_c89=no
3779ac_save_CC=$CC
3780cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3781/* end confdefs.h. */
3782#include <stdarg.h>
3783#include <stdio.h>
3784#include <sys/types.h>
3785#include <sys/stat.h>
3786/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3787struct buf { int x; };
3788FILE * (*rcsopen) (struct buf *, struct stat *, int);
3789static char *e (p, i)
3790 char **p;
3791 int i;
3792{
3793 return p[i];
3794}
3795static char *f (char * (*g) (char **, int), char **p, ...)
3796{
3797 char *s;
3798 va_list v;
3799 va_start (v,p);
3800 s = g (p, va_arg (v,int));
3801 va_end (v);
3802 return s;
3803}
3804
3805/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3806 function prototypes and stuff, but not '\xHH' hex character constants.
3807 These don't provoke an error unfortunately, instead are silently treated
3808 as 'x'. The following induces an error, until -std is added to get
3809 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3810 array size at least. It's necessary to write '\x00'==0 to get something
3811 that's true only with -std. */
3812int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3813
3814/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3815 inside strings and character constants. */
3816#define FOO(x) 'x'
3817int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3818
3819int test (int i, double x);
3820struct s1 {int (*f) (int a);};
3821struct s2 {int (*f) (double a);};
3822int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3823int argc;
3824char **argv;
3825int
3826main ()
3827{
3828return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3829 ;
3830 return 0;
3831}
3832_ACEOF
3833for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3834 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3835do
3836 CC="$ac_save_CC $ac_arg"
3837 if ac_fn_c_try_compile "$LINENO"; then :
3838 ac_cv_prog_cc_c89=$ac_arg
3839fi
3840rm -f core conftest.err conftest.$ac_objext
3841 test "x$ac_cv_prog_cc_c89" != "xno" && break
3842done
3843rm -f conftest.$ac_ext
3844CC=$ac_save_CC
3845
3846fi
3847# AC_CACHE_VAL
3848case "x$ac_cv_prog_cc_c89" in
3849 x)
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3851$as_echo "none needed" >&6; } ;;
3852 xno)
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3854$as_echo "unsupported" >&6; } ;;
3855 *)
3856 CC="$CC $ac_cv_prog_cc_c89"
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3858$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3859esac
3860if test "x$ac_cv_prog_cc_c89" != xno; then :
3861
3862fi
3863
3864ac_ext=c
3865ac_cpp='$CPP $CPPFLAGS'
3866ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3867ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3868ac_compiler_gnu=$ac_cv_c_compiler_gnu
3869
3870ac_aux_dir=
3871for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3872 for ac_t in install-sh install.sh shtool; do
3873 if test -f "$ac_dir/$ac_t"; then
3874 ac_aux_dir=$ac_dir
3875 ac_install_sh="$ac_aux_dir/$ac_t -c"
3876 break 2
3877 fi
3878 done
3879done
3880if test -z "$ac_aux_dir"; then
3881 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3882fi
3883
3884# These three variables are undocumented and unsupported,
3885# and are intended to be withdrawn in a future Autoconf release.
3886# They can cause serious problems if a builder's source tree is in a directory
3887# whose full name contains unusual characters.
3888ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3889ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3890ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3891
3892
3893# Make sure we can run config.sub.
3894$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3895 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3896
3897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3898$as_echo_n "checking build system type... " >&6; }
3899if test "${ac_cv_build+set}" = set; then :
3900 $as_echo_n "(cached) " >&6
3901else
3902 ac_build_alias=$build_alias
3903test "x$ac_build_alias" = x &&
3904 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3905test "x$ac_build_alias" = x &&
3906 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3907ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3908 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3909
3910fi
3911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3912$as_echo "$ac_cv_build" >&6; }
3913case $ac_cv_build in
3914*-*-*) ;;
3915*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3916esac
3917build=$ac_cv_build
3918ac_save_IFS=$IFS; IFS='-'
3919set x $ac_cv_build
3920shift
3921build_cpu=$1
3922build_vendor=$2
3923shift; shift
3924# Remember, the first character of IFS is used to create $*,
3925# except with old shells:
3926build_os=$*
3927IFS=$ac_save_IFS
3928case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3929
3930
3931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3932$as_echo_n "checking host system type... " >&6; }
3933if test "${ac_cv_host+set}" = set; then :
3934 $as_echo_n "(cached) " >&6
3935else
3936 if test "x$host_alias" = x; then
3937 ac_cv_host=$ac_cv_build
3938else
3939 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3940 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3941fi
3942
3943fi
3944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3945$as_echo "$ac_cv_host" >&6; }
3946case $ac_cv_host in
3947*-*-*) ;;
3948*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3949esac
3950host=$ac_cv_host
3951ac_save_IFS=$IFS; IFS='-'
3952set x $ac_cv_host
3953shift
3954host_cpu=$1
3955host_vendor=$2
3956shift; shift
3957# Remember, the first character of IFS is used to create $*,
3958# except with old shells:
3959host_os=$*
3960IFS=$ac_save_IFS
3961case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3962
3963
3964
3965ac_ext=c
3966ac_cpp='$CPP $CPPFLAGS'
3967ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3968ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3969ac_compiler_gnu=$ac_cv_c_compiler_gnu
3970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3971$as_echo_n "checking how to run the C preprocessor... " >&6; }
3972# On Suns, sometimes $CPP names a directory.
3973if test -n "$CPP" && test -d "$CPP"; then
3974 CPP=
3975fi
3976if test -z "$CPP"; then
3977 if test "${ac_cv_prog_CPP+set}" = set; then :
3978 $as_echo_n "(cached) " >&6
3979else
3980 # Double quotes because CPP needs to be expanded
3981 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3982 do
3983 ac_preproc_ok=false
3984for ac_c_preproc_warn_flag in '' yes
3985do
3986 # Use a header file that comes with gcc, so configuring glibc
3987 # with a fresh cross-compiler works.
3988 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3989 # <limits.h> exists even on freestanding compilers.
3990 # On the NeXT, cc -E runs the code through the compiler's parser,
3991 # not just through cpp. "Syntax error" is here to catch this case.
3992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3993/* end confdefs.h. */
3994#ifdef __STDC__
3995# include <limits.h>
3996#else
3997# include <assert.h>
3998#endif
3999 Syntax error
4000_ACEOF
4001if ac_fn_c_try_cpp "$LINENO"; then :
4002
4003else
4004 # Broken: fails on valid input.
4005continue
4006fi
4007rm -f conftest.err conftest.$ac_ext
4008
4009 # OK, works on sane cases. Now check whether nonexistent headers
4010 # can be detected and how.
4011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4012/* end confdefs.h. */
4013#include <ac_nonexistent.h>
4014_ACEOF
4015if ac_fn_c_try_cpp "$LINENO"; then :
4016 # Broken: success on invalid input.
4017continue
4018else
4019 # Passes both tests.
4020ac_preproc_ok=:
4021break
4022fi
4023rm -f conftest.err conftest.$ac_ext
4024
4025done
4026# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4027rm -f conftest.err conftest.$ac_ext
4028if $ac_preproc_ok; then :
4029 break
4030fi
4031
4032 done
4033 ac_cv_prog_CPP=$CPP
4034
4035fi
4036 CPP=$ac_cv_prog_CPP
4037else
4038 ac_cv_prog_CPP=$CPP
4039fi
4040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4041$as_echo "$CPP" >&6; }
4042ac_preproc_ok=false
4043for ac_c_preproc_warn_flag in '' yes
4044do
4045 # Use a header file that comes with gcc, so configuring glibc
4046 # with a fresh cross-compiler works.
4047 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4048 # <limits.h> exists even on freestanding compilers.
4049 # On the NeXT, cc -E runs the code through the compiler's parser,
4050 # not just through cpp. "Syntax error" is here to catch this case.
4051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4052/* end confdefs.h. */
4053#ifdef __STDC__
4054# include <limits.h>
4055#else
4056# include <assert.h>
4057#endif
4058 Syntax error
4059_ACEOF
4060if ac_fn_c_try_cpp "$LINENO"; then :
4061
4062else
4063 # Broken: fails on valid input.
4064continue
4065fi
4066rm -f conftest.err conftest.$ac_ext
4067
4068 # OK, works on sane cases. Now check whether nonexistent headers
4069 # can be detected and how.
4070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4071/* end confdefs.h. */
4072#include <ac_nonexistent.h>
4073_ACEOF
4074if ac_fn_c_try_cpp "$LINENO"; then :
4075 # Broken: success on invalid input.
4076continue
4077else
4078 # Passes both tests.
4079ac_preproc_ok=:
4080break
4081fi
4082rm -f conftest.err conftest.$ac_ext
4083
4084done
4085# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4086rm -f conftest.err conftest.$ac_ext
4087if $ac_preproc_ok; then :
4088
4089else
4090 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4091$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4092as_fn_error "C preprocessor \"$CPP\" fails sanity check
4093See \`config.log' for more details." "$LINENO" 5; }
4094fi
4095
4096ac_ext=c
4097ac_cpp='$CPP $CPPFLAGS'
4098ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4099ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4100ac_compiler_gnu=$ac_cv_c_compiler_gnu
4101
4102
4103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4104$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4105if test "${ac_cv_path_GREP+set}" = set; then :
4106 $as_echo_n "(cached) " >&6
4107else
4108 if test -z "$GREP"; then
4109 ac_path_GREP_found=false
4110 # Loop through the user's path and test for each of PROGNAME-LIST
4111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4112for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4113do
4114 IFS=$as_save_IFS
4115 test -z "$as_dir" && as_dir=.
4116 for ac_prog in grep ggrep; do
4117 for ac_exec_ext in '' $ac_executable_extensions; do
4118 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4119 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4120# Check for GNU ac_path_GREP and select it if it is found.
4121 # Check for GNU $ac_path_GREP
4122case `"$ac_path_GREP" --version 2>&1` in
4123*GNU*)
4124 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4125*)
4126 ac_count=0
4127 $as_echo_n 0123456789 >"conftest.in"
4128 while :
4129 do
4130 cat "conftest.in" "conftest.in" >"conftest.tmp"
4131 mv "conftest.tmp" "conftest.in"
4132 cp "conftest.in" "conftest.nl"
4133 $as_echo 'GREP' >> "conftest.nl"
4134 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4135 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4136 as_fn_arith $ac_count + 1 && ac_count=$as_val
4137 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4138 # Best one so far, save it but keep looking for a better one
4139 ac_cv_path_GREP="$ac_path_GREP"
4140 ac_path_GREP_max=$ac_count
4141 fi
4142 # 10*(2^10) chars as input seems more than enough
4143 test $ac_count -gt 10 && break
4144 done
4145 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4146esac
4147
4148 $ac_path_GREP_found && break 3
4149 done
4150 done
4151 done
4152IFS=$as_save_IFS
4153 if test -z "$ac_cv_path_GREP"; then
4154 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4155 fi
4156else
4157 ac_cv_path_GREP=$GREP
4158fi
4159
4160fi
4161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4162$as_echo "$ac_cv_path_GREP" >&6; }
4163 GREP="$ac_cv_path_GREP"
4164
4165
4166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4167$as_echo_n "checking for egrep... " >&6; }
4168if test "${ac_cv_path_EGREP+set}" = set; then :
4169 $as_echo_n "(cached) " >&6
4170else
4171 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4172 then ac_cv_path_EGREP="$GREP -E"
4173 else
4174 if test -z "$EGREP"; then
4175 ac_path_EGREP_found=false
4176 # Loop through the user's path and test for each of PROGNAME-LIST
4177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4178for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4179do
4180 IFS=$as_save_IFS
4181 test -z "$as_dir" && as_dir=.
4182 for ac_prog in egrep; do
4183 for ac_exec_ext in '' $ac_executable_extensions; do
4184 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4185 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4186# Check for GNU ac_path_EGREP and select it if it is found.
4187 # Check for GNU $ac_path_EGREP
4188case `"$ac_path_EGREP" --version 2>&1` in
4189*GNU*)
4190 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4191*)
4192 ac_count=0
4193 $as_echo_n 0123456789 >"conftest.in"
4194 while :
4195 do
4196 cat "conftest.in" "conftest.in" >"conftest.tmp"
4197 mv "conftest.tmp" "conftest.in"
4198 cp "conftest.in" "conftest.nl"
4199 $as_echo 'EGREP' >> "conftest.nl"
4200 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4201 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4202 as_fn_arith $ac_count + 1 && ac_count=$as_val
4203 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4204 # Best one so far, save it but keep looking for a better one
4205 ac_cv_path_EGREP="$ac_path_EGREP"
4206 ac_path_EGREP_max=$ac_count
4207 fi
4208 # 10*(2^10) chars as input seems more than enough
4209 test $ac_count -gt 10 && break
4210 done
4211 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4212esac
4213
4214 $ac_path_EGREP_found && break 3
4215 done
4216 done
4217 done
4218IFS=$as_save_IFS
4219 if test -z "$ac_cv_path_EGREP"; then
4220 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4221 fi
4222else
4223 ac_cv_path_EGREP=$EGREP
4224fi
4225
4226 fi
4227fi
4228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4229$as_echo "$ac_cv_path_EGREP" >&6; }
4230 EGREP="$ac_cv_path_EGREP"
4231
4232
4233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4234$as_echo_n "checking for ANSI C header files... " >&6; }
4235if test "${ac_cv_header_stdc+set}" = set; then :
4236 $as_echo_n "(cached) " >&6
4237else
4238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4239/* end confdefs.h. */
4240#include <stdlib.h>
4241#include <stdarg.h>
4242#include <string.h>
4243#include <float.h>
4244
4245int
4246main ()
4247{
4248
4249 ;
4250 return 0;
4251}
4252_ACEOF
4253if ac_fn_c_try_compile "$LINENO"; then :
4254 ac_cv_header_stdc=yes
4255else
4256 ac_cv_header_stdc=no
4257fi
4258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4259
4260if test $ac_cv_header_stdc = yes; then
4261 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4263/* end confdefs.h. */
4264#include <string.h>
4265
4266_ACEOF
4267if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4268 $EGREP "memchr" >/dev/null 2>&1; then :
4269
4270else
4271 ac_cv_header_stdc=no
4272fi
4273rm -f conftest*
4274
4275fi
4276
4277if test $ac_cv_header_stdc = yes; then
4278 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4280/* end confdefs.h. */
4281#include <stdlib.h>
4282
4283_ACEOF
4284if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4285 $EGREP "free" >/dev/null 2>&1; then :
4286
4287else
4288 ac_cv_header_stdc=no
4289fi
4290rm -f conftest*
4291
4292fi
4293
4294if test $ac_cv_header_stdc = yes; then
4295 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4296 if test "$cross_compiling" = yes; then :
4297 :
4298else
4299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4300/* end confdefs.h. */
4301#include <ctype.h>
4302#include <stdlib.h>
4303#if ((' ' & 0x0FF) == 0x020)
4304# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4305# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4306#else
4307# define ISLOWER(c) \
4308 (('a' <= (c) && (c) <= 'i') \
4309 || ('j' <= (c) && (c) <= 'r') \
4310 || ('s' <= (c) && (c) <= 'z'))
4311# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4312#endif
4313
4314#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4315int
4316main ()
4317{
4318 int i;
4319 for (i = 0; i < 256; i++)
4320 if (XOR (islower (i), ISLOWER (i))
4321 || toupper (i) != TOUPPER (i))
4322 return 2;
4323 return 0;
4324}
4325_ACEOF
4326if ac_fn_c_try_run "$LINENO"; then :
4327
4328else
4329 ac_cv_header_stdc=no
4330fi
4331rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4332 conftest.$ac_objext conftest.beam conftest.$ac_ext
4333fi
4334
4335fi
4336fi
4337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4338$as_echo "$ac_cv_header_stdc" >&6; }
4339if test $ac_cv_header_stdc = yes; then
4340
4341$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4342
4343fi
4344
4345# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4346for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4347 inttypes.h stdint.h unistd.h
4348do :
4349 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4350ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4351"
4352eval as_val=\$$as_ac_Header
4353 if test "x$as_val" = x""yes; then :
4354 cat >>confdefs.h <<_ACEOF
4355#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4356_ACEOF
4357
4358fi
4359
4360done
4361
4362
4363
4364
4365
4366 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4367if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4368 MINIX=yes
4369else
4370 MINIX=
4371fi
4372
4373
4374 if test "$MINIX" = yes; then
4375
4376$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4377
4378
4379$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4380
4381
4382$as_echo "#define _MINIX 1" >>confdefs.h
4383
4384 fi
4385
4386 case "$host_os" in
4387 hpux*)
4388
4389$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4390
4391 ;;
4392 esac
4393
4394
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4396$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4397if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4398 $as_echo_n "(cached) " >&6
4399else
4400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4401/* end confdefs.h. */
4402
4403# define __EXTENSIONS__ 1
4404 $ac_includes_default
4405int
4406main ()
4407{
4408
4409 ;
4410 return 0;
4411}
4412_ACEOF
4413if ac_fn_c_try_compile "$LINENO"; then :
4414 ac_cv_safe_to_define___extensions__=yes
4415else
4416 ac_cv_safe_to_define___extensions__=no
4417fi
4418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4419fi
4420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4421$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4422 test $ac_cv_safe_to_define___extensions__ = yes &&
4423 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4424
4425 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4426
4427 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4428
4429 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4430
4431 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4432
4433 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4434
4435
4436
4437
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
4439$as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
4440if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
4441 $as_echo_n "(cached) " >&6
4442else
4443
4444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4445/* end confdefs.h. */
4446
4447#ifdef __ACK__
4448Amsterdam
4449#endif
4450
4451_ACEOF
4452if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4453 $EGREP "Amsterdam" >/dev/null 2>&1; then :
4454 gl_cv_c_amsterdam_compiler=yes
4455else
4456 gl_cv_c_amsterdam_compiler=no
4457fi
4458rm -f conftest*
4459
4460
4461fi
4462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
4463$as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
4464 if test -z "$AR"; then
4465 if test $gl_cv_c_amsterdam_compiler = yes; then
4466 AR='cc -c.a'
4467 if test -z "$ARFLAGS"; then
4468 ARFLAGS='-o'
4469 fi
4470 else
4471 if test -n "$ac_tool_prefix"; then
4472 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4473set dummy ${ac_tool_prefix}ar; ac_word=$2
4474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4475$as_echo_n "checking for $ac_word... " >&6; }
4476if test "${ac_cv_prog_AR+set}" = set; then :
4477 $as_echo_n "(cached) " >&6
4478else
4479 if test -n "$AR"; then
4480 ac_cv_prog_AR="$AR" # Let the user override the test.
4481else
4482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4483for as_dir in $PATH
4484do
4485 IFS=$as_save_IFS
4486 test -z "$as_dir" && as_dir=.
4487 for ac_exec_ext in '' $ac_executable_extensions; do
4488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4489 ac_cv_prog_AR="${ac_tool_prefix}ar"
4490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4491 break 2
4492 fi
4493done
4494 done
4495IFS=$as_save_IFS
4496
4497fi
4498fi
4499AR=$ac_cv_prog_AR
4500if test -n "$AR"; then
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4502$as_echo "$AR" >&6; }
4503else
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4505$as_echo "no" >&6; }
4506fi
4507
4508
4509fi
4510if test -z "$ac_cv_prog_AR"; then
4511 ac_ct_AR=$AR
4512 # Extract the first word of "ar", so it can be a program name with args.
4513set dummy ar; ac_word=$2
4514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4515$as_echo_n "checking for $ac_word... " >&6; }
4516if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4517 $as_echo_n "(cached) " >&6
4518else
4519 if test -n "$ac_ct_AR"; then
4520 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4521else
4522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4523for as_dir in $PATH
4524do
4525 IFS=$as_save_IFS
4526 test -z "$as_dir" && as_dir=.
4527 for ac_exec_ext in '' $ac_executable_extensions; do
4528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4529 ac_cv_prog_ac_ct_AR="ar"
4530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4531 break 2
4532 fi
4533done
4534 done
4535IFS=$as_save_IFS
4536
4537fi
4538fi
4539ac_ct_AR=$ac_cv_prog_ac_ct_AR
4540if test -n "$ac_ct_AR"; then
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4542$as_echo "$ac_ct_AR" >&6; }
4543else
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4545$as_echo "no" >&6; }
4546fi
4547
4548 if test "x$ac_ct_AR" = x; then
4549 AR="ar"
4550 else
4551 case $cross_compiling:$ac_tool_warned in
4552yes:)
4553{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4554$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4555ac_tool_warned=yes ;;
4556esac
4557 AR=$ac_ct_AR
4558 fi
4559else
4560 AR="$ac_cv_prog_AR"
4561fi
4562
4563 if test -z "$ARFLAGS"; then
4564 ARFLAGS='cru'
4565 fi
4566 fi
4567 else
4568 if test -z "$ARFLAGS"; then
4569 ARFLAGS='cru'
4570 fi
4571 fi
4572
4573
4574 if test -z "$RANLIB"; then
4575 if test $gl_cv_c_amsterdam_compiler = yes; then
4576 RANLIB=':'
4577 else
4578 if test -n "$ac_tool_prefix"; then
4579 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4580set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4582$as_echo_n "checking for $ac_word... " >&6; }
4583if test "${ac_cv_prog_RANLIB+set}" = set; then :
4584 $as_echo_n "(cached) " >&6
4585else
4586 if test -n "$RANLIB"; then
4587 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4588else
4589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4590for as_dir in $PATH
4591do
4592 IFS=$as_save_IFS
4593 test -z "$as_dir" && as_dir=.
4594 for ac_exec_ext in '' $ac_executable_extensions; do
4595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4596 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4598 break 2
4599 fi
4600done
4601 done
4602IFS=$as_save_IFS
4603
4604fi
4605fi
4606RANLIB=$ac_cv_prog_RANLIB
4607if test -n "$RANLIB"; then
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4609$as_echo "$RANLIB" >&6; }
4610else
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4612$as_echo "no" >&6; }
4613fi
4614
4615
4616fi
4617if test -z "$ac_cv_prog_RANLIB"; then
4618 ac_ct_RANLIB=$RANLIB
4619 # Extract the first word of "ranlib", so it can be a program name with args.
4620set dummy ranlib; ac_word=$2
4621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4622$as_echo_n "checking for $ac_word... " >&6; }
4623if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4624 $as_echo_n "(cached) " >&6
4625else
4626 if test -n "$ac_ct_RANLIB"; then
4627 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4628else
4629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630for as_dir in $PATH
4631do
4632 IFS=$as_save_IFS
4633 test -z "$as_dir" && as_dir=.
4634 for ac_exec_ext in '' $ac_executable_extensions; do
4635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4636 ac_cv_prog_ac_ct_RANLIB="ranlib"
4637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4638 break 2
4639 fi
4640done
4641 done
4642IFS=$as_save_IFS
4643
4644fi
4645fi
4646ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4647if test -n "$ac_ct_RANLIB"; then
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4649$as_echo "$ac_ct_RANLIB" >&6; }
4650else
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4652$as_echo "no" >&6; }
4653fi
4654
4655 if test "x$ac_ct_RANLIB" = x; then
4656 RANLIB=":"
4657 else
4658 case $cross_compiling:$ac_tool_warned in
4659yes:)
4660{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4661$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4662ac_tool_warned=yes ;;
4663esac
4664 RANLIB=$ac_ct_RANLIB
4665 fi
4666else
4667 RANLIB="$ac_cv_prog_RANLIB"
4668fi
4669
4670 fi
4671 fi
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
88b48903
WN
4682
4683 # IEEE behaviour is the default on all CPUs except Alpha and SH
4684 # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
4685 # and the GCC 4.1.2 manual).
4686 case "$host_cpu" in
4687 alpha*)
4688 # On Alpha systems, a compiler option provides the behaviour.
4689 # See the ieee(3) manual page, also available at
4690 # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
4691 if test -n "$GCC"; then
4692 # GCC has the option -mieee.
4693 # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
4694 CPPFLAGS="$CPPFLAGS -mieee"
4695 else
4696 # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
4697 # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
4698 CPPFLAGS="$CPPFLAGS -ieee"
4699 fi
4700 ;;
4701 sh*)
4702 if test -n "$GCC"; then
4703 # GCC has the option -mieee.
4704 CPPFLAGS="$CPPFLAGS -mieee"
4705 fi
4706 ;;
4707 esac
4708
4709
4710
8690e634
JK
4711 # Code from module alloca:
4712 # Code from module alloca-opt:
4713 # Code from module configmake:
c971b7fa
PA
4714 # Code from module extensions:
4715
a512b375 4716 # Code from module extern-inline:
88b48903 4717 # Code from module float:
8690e634
JK
4718 # Code from module fnmatch:
4719 # Code from module fnmatch-gnu:
88b48903
WN
4720 # Code from module fpieee:
4721
4722 # Code from module fpucw:
4723 # Code from module frexp:
4724 # Code from module frexpl:
c971b7fa
PA
4725 # Code from module include_next:
4726 # Code from module inttypes:
4727 # Code from module inttypes-incomplete:
88b48903
WN
4728 # Code from module isnand-nolibm:
4729 # Code from module isnanl-nolibm:
8690e634 4730 # Code from module localcharset:
88b48903 4731 # Code from module math:
8690e634
JK
4732 # Code from module mbrtowc:
4733 # Code from module mbsinit:
4734 # Code from module mbsrtowcs:
c971b7fa
PA
4735 # Code from module memchr:
4736 # Code from module memmem:
4737 # Code from module memmem-simple:
4738 # Code from module multiarch:
38ec2207 4739 # Code from module pathmax:
c971b7fa
PA
4740 # Code from module snippet/arg-nonnull:
4741 # Code from module snippet/c++defs:
4742 # Code from module snippet/warn-on-use:
8839a007 4743 # Code from module ssize_t:
8690e634 4744 # Code from module stdbool:
c971b7fa
PA
4745 # Code from module stddef:
4746 # Code from module stdint:
8690e634 4747 # Code from module streq:
c971b7fa 4748 # Code from module string:
8690e634 4749 # Code from module strnlen1:
8839a007
PA
4750 # Code from module sys_types:
4751 # Code from module unistd:
c971b7fa 4752 # Code from module update-copyright:
8690e634
JK
4753 # Code from module verify:
4754 # Code from module wchar:
4755 # Code from module wctype-h:
c971b7fa
PA
4756
4757ac_ext=c
4758ac_cpp='$CPP $CPPFLAGS'
4759ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4760ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4761ac_compiler_gnu=$ac_cv_c_compiler_gnu
4762if test -n "$ac_tool_prefix"; then
4763 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4764set dummy ${ac_tool_prefix}gcc; ac_word=$2
4765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4766$as_echo_n "checking for $ac_word... " >&6; }
4767if test "${ac_cv_prog_CC+set}" = set; then :
4768 $as_echo_n "(cached) " >&6
4769else
4770 if test -n "$CC"; then
4771 ac_cv_prog_CC="$CC" # Let the user override the test.
4772else
4773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4774for as_dir in $PATH
4775do
4776 IFS=$as_save_IFS
4777 test -z "$as_dir" && as_dir=.
4778 for ac_exec_ext in '' $ac_executable_extensions; do
4779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4780 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4782 break 2
4783 fi
4784done
4785 done
4786IFS=$as_save_IFS
4787
4788fi
4789fi
4790CC=$ac_cv_prog_CC
4791if test -n "$CC"; then
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4793$as_echo "$CC" >&6; }
4794else
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4796$as_echo "no" >&6; }
4797fi
4798
4799
4800fi
4801if test -z "$ac_cv_prog_CC"; then
4802 ac_ct_CC=$CC
4803 # Extract the first word of "gcc", so it can be a program name with args.
4804set dummy gcc; ac_word=$2
4805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4806$as_echo_n "checking for $ac_word... " >&6; }
4807if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4808 $as_echo_n "(cached) " >&6
4809else
4810 if test -n "$ac_ct_CC"; then
4811 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4812else
4813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4814for as_dir in $PATH
4815do
4816 IFS=$as_save_IFS
4817 test -z "$as_dir" && as_dir=.
4818 for ac_exec_ext in '' $ac_executable_extensions; do
4819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4820 ac_cv_prog_ac_ct_CC="gcc"
4821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4822 break 2
4823 fi
4824done
4825 done
4826IFS=$as_save_IFS
4827
4828fi
4829fi
4830ac_ct_CC=$ac_cv_prog_ac_ct_CC
4831if test -n "$ac_ct_CC"; then
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4833$as_echo "$ac_ct_CC" >&6; }
4834else
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4836$as_echo "no" >&6; }
4837fi
4838
4839 if test "x$ac_ct_CC" = x; then
4840 CC=""
4841 else
4842 case $cross_compiling:$ac_tool_warned in
4843yes:)
4844{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4845$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4846ac_tool_warned=yes ;;
4847esac
4848 CC=$ac_ct_CC
4849 fi
4850else
4851 CC="$ac_cv_prog_CC"
4852fi
4853
4854if test -z "$CC"; then
4855 if test -n "$ac_tool_prefix"; then
4856 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4857set dummy ${ac_tool_prefix}cc; ac_word=$2
4858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4859$as_echo_n "checking for $ac_word... " >&6; }
4860if test "${ac_cv_prog_CC+set}" = set; then :
4861 $as_echo_n "(cached) " >&6
4862else
4863 if test -n "$CC"; then
4864 ac_cv_prog_CC="$CC" # Let the user override the test.
4865else
4866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867for as_dir in $PATH
4868do
4869 IFS=$as_save_IFS
4870 test -z "$as_dir" && as_dir=.
4871 for ac_exec_ext in '' $ac_executable_extensions; do
4872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4873 ac_cv_prog_CC="${ac_tool_prefix}cc"
4874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4875 break 2
4876 fi
4877done
4878 done
4879IFS=$as_save_IFS
4880
4881fi
4882fi
4883CC=$ac_cv_prog_CC
4884if test -n "$CC"; then
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4886$as_echo "$CC" >&6; }
4887else
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4889$as_echo "no" >&6; }
4890fi
4891
4892
4893 fi
4894fi
4895if test -z "$CC"; then
4896 # Extract the first word of "cc", so it can be a program name with args.
4897set dummy cc; ac_word=$2
4898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4899$as_echo_n "checking for $ac_word... " >&6; }
4900if test "${ac_cv_prog_CC+set}" = set; then :
4901 $as_echo_n "(cached) " >&6
4902else
4903 if test -n "$CC"; then
4904 ac_cv_prog_CC="$CC" # Let the user override the test.
4905else
4906 ac_prog_rejected=no
4907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4908for as_dir in $PATH
4909do
4910 IFS=$as_save_IFS
4911 test -z "$as_dir" && as_dir=.
4912 for ac_exec_ext in '' $ac_executable_extensions; do
4913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4914 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4915 ac_prog_rejected=yes
4916 continue
4917 fi
4918 ac_cv_prog_CC="cc"
4919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4920 break 2
4921 fi
4922done
4923 done
4924IFS=$as_save_IFS
4925
4926if test $ac_prog_rejected = yes; then
4927 # We found a bogon in the path, so make sure we never use it.
4928 set dummy $ac_cv_prog_CC
4929 shift
4930 if test $# != 0; then
4931 # We chose a different compiler from the bogus one.
4932 # However, it has the same basename, so the bogon will be chosen
4933 # first if we set CC to just the basename; use the full file name.
4934 shift
4935 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4936 fi
4937fi
4938fi
4939fi
4940CC=$ac_cv_prog_CC
4941if test -n "$CC"; then
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4943$as_echo "$CC" >&6; }
4944else
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4946$as_echo "no" >&6; }
4947fi
4948
4949
4950fi
4951if test -z "$CC"; then
4952 if test -n "$ac_tool_prefix"; then
4953 for ac_prog in cl.exe
4954 do
4955 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4956set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4958$as_echo_n "checking for $ac_word... " >&6; }
4959if test "${ac_cv_prog_CC+set}" = set; then :
4960 $as_echo_n "(cached) " >&6
4961else
4962 if test -n "$CC"; then
4963 ac_cv_prog_CC="$CC" # Let the user override the test.
4964else
4965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4966for as_dir in $PATH
4967do
4968 IFS=$as_save_IFS
4969 test -z "$as_dir" && as_dir=.
4970 for ac_exec_ext in '' $ac_executable_extensions; do
4971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4972 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4974 break 2
4975 fi
4976done
4977 done
4978IFS=$as_save_IFS
4979
4980fi
4981fi
4982CC=$ac_cv_prog_CC
4983if test -n "$CC"; then
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4985$as_echo "$CC" >&6; }
4986else
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4988$as_echo "no" >&6; }
4989fi
4990
4991
4992 test -n "$CC" && break
4993 done
4994fi
4995if test -z "$CC"; then
4996 ac_ct_CC=$CC
4997 for ac_prog in cl.exe
4998do
4999 # Extract the first word of "$ac_prog", so it can be a program name with args.
5000set dummy $ac_prog; ac_word=$2
5001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5002$as_echo_n "checking for $ac_word... " >&6; }
5003if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5004 $as_echo_n "(cached) " >&6
5005else
5006 if test -n "$ac_ct_CC"; then
5007 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5008else
5009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5010for as_dir in $PATH
5011do
5012 IFS=$as_save_IFS
5013 test -z "$as_dir" && as_dir=.
5014 for ac_exec_ext in '' $ac_executable_extensions; do
5015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5016 ac_cv_prog_ac_ct_CC="$ac_prog"
5017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5018 break 2
5019 fi
5020done
5021 done
5022IFS=$as_save_IFS
5023
5024fi
5025fi
5026ac_ct_CC=$ac_cv_prog_ac_ct_CC
5027if test -n "$ac_ct_CC"; then
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5029$as_echo "$ac_ct_CC" >&6; }
5030else
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5032$as_echo "no" >&6; }
5033fi
5034
5035
5036 test -n "$ac_ct_CC" && break
5037done
5038
5039 if test "x$ac_ct_CC" = x; then
5040 CC=""
5041 else
5042 case $cross_compiling:$ac_tool_warned in
5043yes:)
5044{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5045$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5046ac_tool_warned=yes ;;
5047esac
5048 CC=$ac_ct_CC
5049 fi
5050fi
5051
5052fi
5053
5054
5055test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5056$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5057as_fn_error "no acceptable C compiler found in \$PATH
5058See \`config.log' for more details." "$LINENO" 5; }
5059
5060# Provide some information about the compiler.
5061$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5062set X $ac_compile
5063ac_compiler=$2
5064for ac_option in --version -v -V -qversion; do
5065 { { ac_try="$ac_compiler $ac_option >&5"
5066case "(($ac_try" in
5067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5068 *) ac_try_echo=$ac_try;;
5069esac
5070eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5071$as_echo "$ac_try_echo"; } >&5
5072 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5073 ac_status=$?
5074 if test -s conftest.err; then
5075 sed '10a\
5076... rest of stderr output deleted ...
5077 10q' conftest.err >conftest.er1
5078 cat conftest.er1 >&5
5079 rm -f conftest.er1 conftest.err
5080 fi
5081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5082 test $ac_status = 0; }
5083done
5084
5085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5086$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5087if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5088 $as_echo_n "(cached) " >&6
5089else
5090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5091/* end confdefs.h. */
5092
5093int
5094main ()
5095{
5096#ifndef __GNUC__
5097 choke me
5098#endif
5099
5100 ;
5101 return 0;
5102}
5103_ACEOF
5104if ac_fn_c_try_compile "$LINENO"; then :
5105 ac_compiler_gnu=yes
5106else
5107 ac_compiler_gnu=no
5108fi
5109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5110ac_cv_c_compiler_gnu=$ac_compiler_gnu
5111
5112fi
5113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5114$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5115if test $ac_compiler_gnu = yes; then
5116 GCC=yes
5117else
5118 GCC=
5119fi
5120ac_test_CFLAGS=${CFLAGS+set}
5121ac_save_CFLAGS=$CFLAGS
5122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5123$as_echo_n "checking whether $CC accepts -g... " >&6; }
5124if test "${ac_cv_prog_cc_g+set}" = set; then :
5125 $as_echo_n "(cached) " >&6
5126else
5127 ac_save_c_werror_flag=$ac_c_werror_flag
5128 ac_c_werror_flag=yes
5129 ac_cv_prog_cc_g=no
5130 CFLAGS="-g"
5131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5132/* end confdefs.h. */
5133
5134int
5135main ()
5136{
5137
5138 ;
5139 return 0;
5140}
5141_ACEOF
5142if ac_fn_c_try_compile "$LINENO"; then :
5143 ac_cv_prog_cc_g=yes
5144else
5145 CFLAGS=""
5146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5147/* end confdefs.h. */
5148
5149int
5150main ()
5151{
5152
5153 ;
5154 return 0;
5155}
5156_ACEOF
5157if ac_fn_c_try_compile "$LINENO"; then :
5158
5159else
5160 ac_c_werror_flag=$ac_save_c_werror_flag
5161 CFLAGS="-g"
5162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5163/* end confdefs.h. */
5164
5165int
5166main ()
5167{
5168
5169 ;
5170 return 0;
5171}
5172_ACEOF
5173if ac_fn_c_try_compile "$LINENO"; then :
5174 ac_cv_prog_cc_g=yes
5175fi
5176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5177fi
5178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5179fi
5180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5181 ac_c_werror_flag=$ac_save_c_werror_flag
5182fi
5183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5184$as_echo "$ac_cv_prog_cc_g" >&6; }
5185if test "$ac_test_CFLAGS" = set; then
5186 CFLAGS=$ac_save_CFLAGS
5187elif test $ac_cv_prog_cc_g = yes; then
5188 if test "$GCC" = yes; then
5189 CFLAGS="-g -O2"
5190 else
5191 CFLAGS="-g"
5192 fi
5193else
5194 if test "$GCC" = yes; then
5195 CFLAGS="-O2"
5196 else
5197 CFLAGS=
5198 fi
5199fi
5200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5201$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5202if test "${ac_cv_prog_cc_c89+set}" = set; then :
5203 $as_echo_n "(cached) " >&6
5204else
5205 ac_cv_prog_cc_c89=no
5206ac_save_CC=$CC
5207cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5208/* end confdefs.h. */
5209#include <stdarg.h>
5210#include <stdio.h>
5211#include <sys/types.h>
5212#include <sys/stat.h>
5213/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5214struct buf { int x; };
5215FILE * (*rcsopen) (struct buf *, struct stat *, int);
5216static char *e (p, i)
5217 char **p;
5218 int i;
5219{
5220 return p[i];
5221}
5222static char *f (char * (*g) (char **, int), char **p, ...)
5223{
5224 char *s;
5225 va_list v;
5226 va_start (v,p);
5227 s = g (p, va_arg (v,int));
5228 va_end (v);
5229 return s;
5230}
5231
5232/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5233 function prototypes and stuff, but not '\xHH' hex character constants.
5234 These don't provoke an error unfortunately, instead are silently treated
5235 as 'x'. The following induces an error, until -std is added to get
5236 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5237 array size at least. It's necessary to write '\x00'==0 to get something
5238 that's true only with -std. */
5239int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5240
5241/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5242 inside strings and character constants. */
5243#define FOO(x) 'x'
5244int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5245
5246int test (int i, double x);
5247struct s1 {int (*f) (int a);};
5248struct s2 {int (*f) (double a);};
5249int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5250int argc;
5251char **argv;
5252int
5253main ()
5254{
5255return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5256 ;
5257 return 0;
5258}
5259_ACEOF
5260for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5261 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5262do
5263 CC="$ac_save_CC $ac_arg"
5264 if ac_fn_c_try_compile "$LINENO"; then :
5265 ac_cv_prog_cc_c89=$ac_arg
5266fi
5267rm -f core conftest.err conftest.$ac_objext
5268 test "x$ac_cv_prog_cc_c89" != "xno" && break
5269done
5270rm -f conftest.$ac_ext
5271CC=$ac_save_CC
5272
5273fi
5274# AC_CACHE_VAL
5275case "x$ac_cv_prog_cc_c89" in
5276 x)
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5278$as_echo "none needed" >&6; } ;;
5279 xno)
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5281$as_echo "unsupported" >&6; } ;;
5282 *)
5283 CC="$CC $ac_cv_prog_cc_c89"
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5285$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5286esac
5287if test "x$ac_cv_prog_cc_c89" != xno; then :
5288
5289fi
5290
5291ac_ext=c
5292ac_cpp='$CPP $CPPFLAGS'
5293ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5294ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5295ac_compiler_gnu=$ac_cv_c_compiler_gnu
5296
5297
5298am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5299
5300
5301ac_aux_dir=
5302for ac_dir in ../.. "$srcdir"/../..; do
5303 for ac_t in install-sh install.sh shtool; do
5304 if test -f "$ac_dir/$ac_t"; then
5305 ac_aux_dir=$ac_dir
5306 ac_install_sh="$ac_aux_dir/$ac_t -c"
5307 break 2
5308 fi
5309 done
5310done
5311if test -z "$ac_aux_dir"; then
5312 as_fn_error "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
5313fi
5314
5315# These three variables are undocumented and unsupported,
5316# and are intended to be withdrawn in a future Autoconf release.
5317# They can cause serious problems if a builder's source tree is in a directory
5318# whose full name contains unusual characters.
5319ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5320ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5321ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5322
5323
5324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
5325$as_echo_n "checking target system type... " >&6; }
5326if test "${ac_cv_target+set}" = set; then :
5327 $as_echo_n "(cached) " >&6
5328else
5329 if test "x$target_alias" = x; then
5330 ac_cv_target=$ac_cv_host
5331else
5332 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
5333 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5334fi
5335
5336fi
5337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
5338$as_echo "$ac_cv_target" >&6; }
5339case $ac_cv_target in
5340*-*-*) ;;
5341*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
5342esac
5343target=$ac_cv_target
5344ac_save_IFS=$IFS; IFS='-'
5345set x $ac_cv_target
5346shift
5347target_cpu=$1
5348target_vendor=$2
5349shift; shift
5350# Remember, the first character of IFS is used to create $*,
5351# except with old shells:
5352target_os=$*
5353IFS=$ac_save_IFS
5354case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
5355
5356
5357# The aliases save the names the user supplied, while $host etc.
5358# will get canonicalized.
5359test -n "$target_alias" &&
5360 test "$program_prefix$program_suffix$program_transform_name" = \
5361 NONENONEs,x,x, &&
5362 program_prefix=${target_alias}-
5363
5364
5365
5366
5367
5368
5369
5370 LIBC_FATAL_STDERR_=1
5371 export LIBC_FATAL_STDERR_
5372
8690e634
JK
5373# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5374# for constant arguments. Useless!
5375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5376$as_echo_n "checking for working alloca.h... " >&6; }
5377if test "${ac_cv_working_alloca_h+set}" = set; then :
c971b7fa
PA
5378 $as_echo_n "(cached) " >&6
5379else
8690e634 5380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa 5381/* end confdefs.h. */
8690e634 5382#include <alloca.h>
c971b7fa
PA
5383int
5384main ()
5385{
8690e634
JK
5386char *p = (char *) alloca (2 * sizeof (int));
5387 if (p) return 0;
c971b7fa
PA
5388 ;
5389 return 0;
5390}
c971b7fa
PA
5391_ACEOF
5392if ac_fn_c_try_link "$LINENO"; then :
8690e634 5393 ac_cv_working_alloca_h=yes
c971b7fa 5394else
8690e634 5395 ac_cv_working_alloca_h=no
c971b7fa
PA
5396fi
5397rm -f core conftest.err conftest.$ac_objext \
5398 conftest$ac_exeext conftest.$ac_ext
c971b7fa 5399fi
8690e634
JK
5400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5401$as_echo "$ac_cv_working_alloca_h" >&6; }
5402if test $ac_cv_working_alloca_h = yes; then
c971b7fa 5403
8690e634 5404$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
c971b7fa 5405
8690e634 5406fi
c971b7fa 5407
8690e634
JK
5408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5409$as_echo_n "checking for alloca... " >&6; }
5410if test "${ac_cv_func_alloca_works+set}" = set; then :
c971b7fa 5411 $as_echo_n "(cached) " >&6
c971b7fa
PA
5412else
5413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5414/* end confdefs.h. */
8690e634
JK
5415#ifdef __GNUC__
5416# define alloca __builtin_alloca
5417#else
5418# ifdef _MSC_VER
5419# include <malloc.h>
5420# define alloca _alloca
5421# else
5422# ifdef HAVE_ALLOCA_H
5423# include <alloca.h>
5424# else
5425# ifdef _AIX
5426 #pragma alloca
5427# else
5428# ifndef alloca /* predefined by HP cc +Olibcalls */
5429char *alloca ();
5430# endif
5431# endif
5432# endif
5433# endif
5434#endif
5435
c971b7fa
PA
5436int
5437main ()
5438{
8690e634
JK
5439char *p = (char *) alloca (1);
5440 if (p) return 0;
c971b7fa
PA
5441 ;
5442 return 0;
5443}
5444_ACEOF
8690e634
JK
5445if ac_fn_c_try_link "$LINENO"; then :
5446 ac_cv_func_alloca_works=yes
c971b7fa 5447else
8690e634 5448 ac_cv_func_alloca_works=no
c971b7fa 5449fi
8690e634
JK
5450rm -f core conftest.err conftest.$ac_objext \
5451 conftest$ac_exeext conftest.$ac_ext
c971b7fa 5452fi
a143c6de
JB
5453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5454$as_echo "$ac_cv_func_alloca_works" >&6; }
c971b7fa 5455
a143c6de 5456if test $ac_cv_func_alloca_works = yes; then
c971b7fa 5457
a143c6de 5458$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
c971b7fa 5459
a143c6de
JB
5460else
5461 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5462# that cause trouble. Some versions do not even contain alloca or
5463# contain a buggy version. If you still want to use their alloca,
5464# use ar to extract alloca.o from them instead of compiling alloca.c.
c971b7fa
PA
5465
5466
5467
5468
5469
a143c6de 5470ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
c971b7fa 5471
a143c6de 5472$as_echo "#define C_ALLOCA 1" >>confdefs.h
c971b7fa 5473
c971b7fa 5474
a143c6de
JB
5475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
5476$as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
5477if test "${ac_cv_os_cray+set}" = set; then :
8690e634
JK
5478 $as_echo_n "(cached) " >&6
5479else
a143c6de 5480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690e634 5481/* end confdefs.h. */
a143c6de
JB
5482#if defined CRAY && ! defined CRAY2
5483webecray
5484#else
5485wenotbecray
8690e634 5486#endif
c971b7fa 5487
8690e634
JK
5488_ACEOF
5489if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
a143c6de
JB
5490 $EGREP "webecray" >/dev/null 2>&1; then :
5491 ac_cv_os_cray=yes
8690e634 5492else
a143c6de 5493 ac_cv_os_cray=no
8690e634
JK
5494fi
5495rm -f conftest*
c971b7fa 5496
c0fc7f8b 5497fi
a143c6de
JB
5498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5499$as_echo "$ac_cv_os_cray" >&6; }
5500if test $ac_cv_os_cray = yes; then
5501 for ac_func in _getb67 GETB67 getb67; do
5502 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5503ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5504eval as_val=\$$as_ac_var
5505 if test "x$as_val" = x""yes; then :
c0fc7f8b 5506
a143c6de
JB
5507cat >>confdefs.h <<_ACEOF
5508#define CRAY_STACKSEG_END $ac_func
5509_ACEOF
c971b7fa 5510
a143c6de 5511 break
8690e634 5512fi
c971b7fa 5513
a143c6de 5514 done
8690e634 5515fi
c0fc7f8b 5516
a143c6de
JB
5517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5518$as_echo_n "checking stack direction for C alloca... " >&6; }
5519if test "${ac_cv_c_stack_direction+set}" = set; then :
c971b7fa
PA
5520 $as_echo_n "(cached) " >&6
5521else
a143c6de
JB
5522 if test "$cross_compiling" = yes; then :
5523 ac_cv_c_stack_direction=0
5524else
5525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa 5526/* end confdefs.h. */
a143c6de
JB
5527$ac_includes_default
5528int
5529find_stack_direction (int *addr, int depth)
5530{
5531 int dir, dummy = 0;
5532 if (! addr)
5533 addr = &dummy;
5534 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
5535 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
5536 return dir + dummy;
5537}
8690e634 5538
a143c6de
JB
5539int
5540main (int argc, char **argv)
5541{
5542 return find_stack_direction (0, argc + !argv + 20) < 0;
5543}
c971b7fa 5544_ACEOF
a143c6de
JB
5545if ac_fn_c_try_run "$LINENO"; then :
5546 ac_cv_c_stack_direction=1
c971b7fa 5547else
a143c6de 5548 ac_cv_c_stack_direction=-1
8690e634 5549fi
a143c6de
JB
5550rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5551 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 5552fi
c971b7fa
PA
5553
5554fi
a143c6de
JB
5555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5556$as_echo "$ac_cv_c_stack_direction" >&6; }
5557cat >>confdefs.h <<_ACEOF
5558#define STACK_DIRECTION $ac_cv_c_stack_direction
5559_ACEOF
8690e634 5560
c971b7fa
PA
5561
5562fi
c971b7fa
PA
5563
5564
5565
a512b375
JB
5566
5567
5568
88b48903
WN
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
5570$as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
5571if test "${gl_cv_have_include_next+set}" = set; then :
5572 $as_echo_n "(cached) " >&6
5573else
5574 rm -rf conftestd1a conftestd1b conftestd2
5575 mkdir conftestd1a conftestd1b conftestd2
5576 cat <<EOF > conftestd1a/conftest.h
5577#define DEFINED_IN_CONFTESTD1
5578#include_next <conftest.h>
5579#ifdef DEFINED_IN_CONFTESTD2
5580int foo;
5581#else
5582#error "include_next doesn't work"
5583#endif
5584EOF
5585 cat <<EOF > conftestd1b/conftest.h
5586#define DEFINED_IN_CONFTESTD1
5587#include <stdio.h>
5588#include_next <conftest.h>
5589#ifdef DEFINED_IN_CONFTESTD2
5590int foo;
5591#else
5592#error "include_next doesn't work"
5593#endif
5594EOF
5595 cat <<EOF > conftestd2/conftest.h
5596#ifndef DEFINED_IN_CONFTESTD1
5597#error "include_next test doesn't work"
5598#endif
5599#define DEFINED_IN_CONFTESTD2
5600EOF
5601 gl_save_CPPFLAGS="$CPPFLAGS"
5602 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
5603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5604/* end confdefs.h. */
5605#include <conftest.h>
5606_ACEOF
5607if ac_fn_c_try_compile "$LINENO"; then :
5608 gl_cv_have_include_next=yes
5609else
5610 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
5611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5612/* end confdefs.h. */
5613#include <conftest.h>
5614_ACEOF
5615if ac_fn_c_try_compile "$LINENO"; then :
5616 gl_cv_have_include_next=buggy
5617else
5618 gl_cv_have_include_next=no
5619fi
5620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5621
5622fi
5623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5624 CPPFLAGS="$gl_save_CPPFLAGS"
5625 rm -rf conftestd1a conftestd1b conftestd2
5626
5627fi
5628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
5629$as_echo "$gl_cv_have_include_next" >&6; }
5630 PRAGMA_SYSTEM_HEADER=
5631 if test $gl_cv_have_include_next = yes; then
5632 INCLUDE_NEXT=include_next
5633 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5634 if test -n "$GCC"; then
5635 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
5636 fi
5637 else
5638 if test $gl_cv_have_include_next = buggy; then
5639 INCLUDE_NEXT=include
5640 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5641 else
5642 INCLUDE_NEXT=include
5643 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
5644 fi
5645 fi
5646
5647
5648
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
5650$as_echo_n "checking whether system header files limit the line length... " >&6; }
5651if test "${gl_cv_pragma_columns+set}" = set; then :
5652 $as_echo_n "(cached) " >&6
5653else
5654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5655/* end confdefs.h. */
5656
5657#ifdef __TANDEM
5658choke me
5659#endif
5660
5661_ACEOF
5662if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5663 $EGREP "choke me" >/dev/null 2>&1; then :
5664 gl_cv_pragma_columns=yes
5665else
5666 gl_cv_pragma_columns=no
5667fi
5668rm -f conftest*
5669
5670
5671fi
5672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
5673$as_echo "$gl_cv_pragma_columns" >&6; }
5674 if test $gl_cv_pragma_columns = yes; then
5675 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
5676 else
5677 PRAGMA_COLUMNS=
5678 fi
5679
5680
5681
5682
8690e634
JK
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
5684$as_echo_n "checking for mbstate_t... " >&6; }
5685if test "${ac_cv_type_mbstate_t+set}" = set; then :
c971b7fa
PA
5686 $as_echo_n "(cached) " >&6
5687else
8690e634 5688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa 5689/* end confdefs.h. */
8690e634
JK
5690$ac_includes_default
5691/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
5692 <wchar.h>.
5693 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5694 included before <wchar.h>. */
5695#include <stddef.h>
5696#include <stdio.h>
5697#include <time.h>
5698#include <wchar.h>
5699int
5700main ()
5701{
5702mbstate_t x; return sizeof x;
5703 ;
5704 return 0;
5705}
c971b7fa 5706_ACEOF
8690e634
JK
5707if ac_fn_c_try_compile "$LINENO"; then :
5708 ac_cv_type_mbstate_t=yes
c971b7fa 5709else
8690e634 5710 ac_cv_type_mbstate_t=no
c971b7fa 5711fi
8690e634 5712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c971b7fa 5713fi
8690e634
JK
5714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
5715$as_echo "$ac_cv_type_mbstate_t" >&6; }
5716 if test $ac_cv_type_mbstate_t = yes; then
c971b7fa 5717
8690e634 5718$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
c971b7fa 5719
8690e634 5720 else
c971b7fa 5721
8690e634 5722$as_echo "#define mbstate_t int" >>confdefs.h
c971b7fa 5723
8690e634 5724 fi
c971b7fa
PA
5725
5726
5727
5728
3574124b 5729 for ac_func in $ac_func_list
8690e634
JK
5730do :
5731 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5732ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5733eval as_val=\$$as_ac_var
5734 if test "x$as_val" = x""yes; then :
5735 cat >>confdefs.h <<_ACEOF
5736#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
c971b7fa 5737_ACEOF
c971b7fa
PA
5738
5739fi
8690e634 5740done
c971b7fa
PA
5741
5742
5743
5744
5745
c971b7fa
PA
5746
5747
c971b7fa
PA
5748
5749
5750
c971b7fa
PA
5751
5752
5753
5754
5755
c971b7fa
PA
5756
5757
c971b7fa
PA
5758
5759
c971b7fa 5760
3574124b 5761 for ac_header in $ac_header_list
8690e634
JK
5762do :
5763 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3574124b
PA
5764ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5765"
8690e634
JK
5766eval as_val=\$$as_ac_Header
5767 if test "x$as_val" = x""yes; then :
5768 cat >>confdefs.h <<_ACEOF
5769#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5770_ACEOF
5771
5772fi
5773
5774done
5775
5776
5777
5778
88b48903
WN
5779 GNULIB_ACOSF=0;
5780 GNULIB_ACOSL=0;
5781 GNULIB_ASINF=0;
5782 GNULIB_ASINL=0;
5783 GNULIB_ATANF=0;
5784 GNULIB_ATANL=0;
5785 GNULIB_ATAN2F=0;
5786 GNULIB_CBRT=0;
5787 GNULIB_CBRTF=0;
5788 GNULIB_CBRTL=0;
5789 GNULIB_CEIL=0;
5790 GNULIB_CEILF=0;
5791 GNULIB_CEILL=0;
5792 GNULIB_COPYSIGN=0;
5793 GNULIB_COPYSIGNF=0;
5794 GNULIB_COPYSIGNL=0;
5795 GNULIB_COSF=0;
5796 GNULIB_COSL=0;
5797 GNULIB_COSHF=0;
5798 GNULIB_EXPF=0;
5799 GNULIB_EXPL=0;
5800 GNULIB_EXP2=0;
5801 GNULIB_EXP2F=0;
5802 GNULIB_EXP2L=0;
5803 GNULIB_EXPM1=0;
5804 GNULIB_EXPM1F=0;
5805 GNULIB_EXPM1L=0;
5806 GNULIB_FABSF=0;
5807 GNULIB_FABSL=0;
5808 GNULIB_FLOOR=0;
5809 GNULIB_FLOORF=0;
5810 GNULIB_FLOORL=0;
5811 GNULIB_FMA=0;
5812 GNULIB_FMAF=0;
5813 GNULIB_FMAL=0;
5814 GNULIB_FMOD=0;
5815 GNULIB_FMODF=0;
5816 GNULIB_FMODL=0;
5817 GNULIB_FREXPF=0;
5818 GNULIB_FREXP=0;
5819 GNULIB_FREXPL=0;
5820 GNULIB_HYPOT=0;
5821 GNULIB_HYPOTF=0;
5822 GNULIB_HYPOTL=0;
5823 GNULIB_ILOGB=0;
5824 GNULIB_ILOGBF=0;
5825 GNULIB_ILOGBL=0;
5826 GNULIB_ISFINITE=0;
5827 GNULIB_ISINF=0;
5828 GNULIB_ISNAN=0;
5829 GNULIB_ISNANF=0;
5830 GNULIB_ISNAND=0;
5831 GNULIB_ISNANL=0;
5832 GNULIB_LDEXPF=0;
5833 GNULIB_LDEXPL=0;
5834 GNULIB_LOG=0;
5835 GNULIB_LOGF=0;
5836 GNULIB_LOGL=0;
5837 GNULIB_LOG10=0;
5838 GNULIB_LOG10F=0;
5839 GNULIB_LOG10L=0;
5840 GNULIB_LOG1P=0;
5841 GNULIB_LOG1PF=0;
5842 GNULIB_LOG1PL=0;
5843 GNULIB_LOG2=0;
5844 GNULIB_LOG2F=0;
5845 GNULIB_LOG2L=0;
5846 GNULIB_LOGB=0;
5847 GNULIB_LOGBF=0;
5848 GNULIB_LOGBL=0;
5849 GNULIB_MODF=0;
5850 GNULIB_MODFF=0;
5851 GNULIB_MODFL=0;
5852 GNULIB_POWF=0;
5853 GNULIB_REMAINDER=0;
5854 GNULIB_REMAINDERF=0;
5855 GNULIB_REMAINDERL=0;
5856 GNULIB_RINT=0;
5857 GNULIB_RINTF=0;
5858 GNULIB_RINTL=0;
5859 GNULIB_ROUND=0;
5860 GNULIB_ROUNDF=0;
5861 GNULIB_ROUNDL=0;
5862 GNULIB_SIGNBIT=0;
5863 GNULIB_SINF=0;
5864 GNULIB_SINL=0;
5865 GNULIB_SINHF=0;
5866 GNULIB_SQRTF=0;
5867 GNULIB_SQRTL=0;
5868 GNULIB_TANF=0;
5869 GNULIB_TANL=0;
5870 GNULIB_TANHF=0;
5871 GNULIB_TRUNC=0;
5872 GNULIB_TRUNCF=0;
5873 GNULIB_TRUNCL=0;
5874 HAVE_ACOSF=1;
5875 HAVE_ACOSL=1;
5876 HAVE_ASINF=1;
5877 HAVE_ASINL=1;
5878 HAVE_ATANF=1;
5879 HAVE_ATANL=1;
5880 HAVE_ATAN2F=1;
5881 HAVE_CBRT=1;
5882 HAVE_CBRTF=1;
5883 HAVE_CBRTL=1;
5884 HAVE_COPYSIGN=1;
5885 HAVE_COPYSIGNL=1;
5886 HAVE_COSF=1;
5887 HAVE_COSL=1;
5888 HAVE_COSHF=1;
5889 HAVE_EXPF=1;
5890 HAVE_EXPL=1;
5891 HAVE_EXPM1=1;
5892 HAVE_EXPM1F=1;
5893 HAVE_FABSF=1;
5894 HAVE_FABSL=1;
5895 HAVE_FMA=1;
5896 HAVE_FMAF=1;
5897 HAVE_FMAL=1;
5898 HAVE_FMODF=1;
5899 HAVE_FMODL=1;
5900 HAVE_FREXPF=1;
5901 HAVE_HYPOTF=1;
5902 HAVE_HYPOTL=1;
5903 HAVE_ILOGB=1;
5904 HAVE_ILOGBF=1;
5905 HAVE_ILOGBL=1;
5906 HAVE_ISNANF=1;
5907 HAVE_ISNAND=1;
5908 HAVE_ISNANL=1;
5909 HAVE_LDEXPF=1;
5910 HAVE_LOGF=1;
5911 HAVE_LOGL=1;
5912 HAVE_LOG10F=1;
5913 HAVE_LOG10L=1;
5914 HAVE_LOG1P=1;
5915 HAVE_LOG1PF=1;
5916 HAVE_LOG1PL=1;
5917 HAVE_LOGBF=1;
5918 HAVE_LOGBL=1;
5919 HAVE_MODFF=1;
5920 HAVE_MODFL=1;
5921 HAVE_POWF=1;
5922 HAVE_REMAINDER=1;
5923 HAVE_REMAINDERF=1;
5924 HAVE_RINT=1;
5925 HAVE_RINTL=1;
5926 HAVE_SINF=1;
5927 HAVE_SINL=1;
5928 HAVE_SINHF=1;
5929 HAVE_SQRTF=1;
5930 HAVE_SQRTL=1;
5931 HAVE_TANF=1;
5932 HAVE_TANL=1;
5933 HAVE_TANHF=1;
5934 HAVE_DECL_ACOSL=1;
5935 HAVE_DECL_ASINL=1;
5936 HAVE_DECL_ATANL=1;
5937 HAVE_DECL_CBRTF=1;
5938 HAVE_DECL_CBRTL=1;
5939 HAVE_DECL_CEILF=1;
5940 HAVE_DECL_CEILL=1;
5941 HAVE_DECL_COPYSIGNF=1;
5942 HAVE_DECL_COSL=1;
5943 HAVE_DECL_EXPL=1;
5944 HAVE_DECL_EXP2=1;
5945 HAVE_DECL_EXP2F=1;
5946 HAVE_DECL_EXP2L=1;
5947 HAVE_DECL_EXPM1L=1;
5948 HAVE_DECL_FLOORF=1;
5949 HAVE_DECL_FLOORL=1;
5950 HAVE_DECL_FREXPL=1;
5951 HAVE_DECL_LDEXPL=1;
5952 HAVE_DECL_LOGL=1;
5953 HAVE_DECL_LOG10L=1;
5954 HAVE_DECL_LOG2=1;
5955 HAVE_DECL_LOG2F=1;
5956 HAVE_DECL_LOG2L=1;
5957 HAVE_DECL_LOGB=1;
5958 HAVE_DECL_REMAINDER=1;
5959 HAVE_DECL_REMAINDERL=1;
5960 HAVE_DECL_RINTF=1;
5961 HAVE_DECL_ROUND=1;
5962 HAVE_DECL_ROUNDF=1;
5963 HAVE_DECL_ROUNDL=1;
5964 HAVE_DECL_SINL=1;
5965 HAVE_DECL_SQRTL=1;
5966 HAVE_DECL_TANL=1;
5967 HAVE_DECL_TRUNC=1;
5968 HAVE_DECL_TRUNCF=1;
5969 HAVE_DECL_TRUNCL=1;
5970 REPLACE_CBRTF=0;
5971 REPLACE_CBRTL=0;
5972 REPLACE_CEIL=0;
5973 REPLACE_CEILF=0;
5974 REPLACE_CEILL=0;
5975 REPLACE_EXPM1=0;
5976 REPLACE_EXPM1F=0;
5977 REPLACE_EXP2=0;
5978 REPLACE_EXP2L=0;
5979 REPLACE_FABSL=0;
5980 REPLACE_FLOOR=0;
5981 REPLACE_FLOORF=0;
5982 REPLACE_FLOORL=0;
5983 REPLACE_FMA=0;
5984 REPLACE_FMAF=0;
5985 REPLACE_FMAL=0;
5986 REPLACE_FMOD=0;
5987 REPLACE_FMODF=0;
5988 REPLACE_FMODL=0;
5989 REPLACE_FREXPF=0;
5990 REPLACE_FREXP=0;
5991 REPLACE_FREXPL=0;
5992 REPLACE_HUGE_VAL=0;
5993 REPLACE_HYPOT=0;
5994 REPLACE_HYPOTF=0;
5995 REPLACE_HYPOTL=0;
5996 REPLACE_ILOGB=0;
5997 REPLACE_ILOGBF=0;
5998 REPLACE_ISFINITE=0;
5999 REPLACE_ISINF=0;
6000 REPLACE_ISNAN=0;
6001 REPLACE_LDEXPL=0;
6002 REPLACE_LOG=0;
6003 REPLACE_LOGF=0;
6004 REPLACE_LOGL=0;
6005 REPLACE_LOG10=0;
6006 REPLACE_LOG10F=0;
6007 REPLACE_LOG10L=0;
6008 REPLACE_LOG1P=0;
6009 REPLACE_LOG1PF=0;
6010 REPLACE_LOG1PL=0;
6011 REPLACE_LOG2=0;
6012 REPLACE_LOG2F=0;
6013 REPLACE_LOG2L=0;
6014 REPLACE_LOGB=0;
6015 REPLACE_LOGBF=0;
6016 REPLACE_LOGBL=0;
6017 REPLACE_MODF=0;
6018 REPLACE_MODFF=0;
6019 REPLACE_MODFL=0;
6020 REPLACE_NAN=0;
6021 REPLACE_REMAINDER=0;
6022 REPLACE_REMAINDERF=0;
6023 REPLACE_REMAINDERL=0;
6024 REPLACE_ROUND=0;
6025 REPLACE_ROUNDF=0;
6026 REPLACE_ROUNDL=0;
6027 REPLACE_SIGNBIT=0;
6028 REPLACE_SIGNBIT_USING_GCC=0;
6029 REPLACE_SQRTL=0;
6030 REPLACE_TRUNC=0;
6031 REPLACE_TRUNCF=0;
6032 REPLACE_TRUNCL=0;
6033
6034
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used without linking with libm" >&5
6036$as_echo_n "checking whether frexp() can be used without linking with libm... " >&6; }
6037if test "${gl_cv_func_frexp_no_libm+set}" = set; then :
6038 $as_echo_n "(cached) " >&6
6039else
6040
6041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6042/* end confdefs.h. */
6043#include <math.h>
6044 double x;
6045int
6046main ()
6047{
6048int e; return frexp (x, &e) > 0;
6049 ;
6050 return 0;
6051}
6052_ACEOF
6053if ac_fn_c_try_link "$LINENO"; then :
6054 gl_cv_func_frexp_no_libm=yes
6055else
6056 gl_cv_func_frexp_no_libm=no
6057fi
6058rm -f core conftest.err conftest.$ac_objext \
6059 conftest$ac_exeext conftest.$ac_ext
6060
6061fi
6062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
6063$as_echo "$gl_cv_func_frexp_no_libm" >&6; }
6064
6065
6066
6067
88b48903
WN
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double and double are the same" >&5
6069$as_echo_n "checking whether long double and double are the same... " >&6; }
6070if test "${gl_cv_long_double_equals_double+set}" = set; then :
6071 $as_echo_n "(cached) " >&6
6072else
6073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6074/* end confdefs.h. */
6075#include <float.h>
6076int
6077main ()
6078{
6079typedef int check[sizeof (long double) == sizeof (double)
6080 && LDBL_MANT_DIG == DBL_MANT_DIG
6081 && LDBL_MAX_EXP == DBL_MAX_EXP
6082 && LDBL_MIN_EXP == DBL_MIN_EXP
6083 ? 1 : -1];
6084
6085 ;
6086 return 0;
6087}
6088_ACEOF
6089if ac_fn_c_try_compile "$LINENO"; then :
6090 gl_cv_long_double_equals_double=yes
6091else
6092 gl_cv_long_double_equals_double=no
6093fi
6094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6095
6096fi
6097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_double_equals_double" >&5
6098$as_echo "$gl_cv_long_double_equals_double" >&6; }
6099 if test $gl_cv_long_double_equals_double = yes; then
6100
6101$as_echo "#define HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1" >>confdefs.h
6102
6103 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=1
6104 else
6105 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=0
6106 fi
6107
6108
6109
8690e634
JK
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6111$as_echo_n "checking for unsigned long long int... " >&6; }
6112if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6113 $as_echo_n "(cached) " >&6
6114else
6115 ac_cv_type_unsigned_long_long_int=yes
6116 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6118/* end confdefs.h. */
6119
6120 /* For now, do not test the preprocessor; as of 2007 there are too many
6121 implementations with broken preprocessors. Perhaps this can
6122 be revisited in 2012. In the meantime, code should not expect
6123 #if to work with literals wider than 32 bits. */
6124 /* Test literals. */
6125 long long int ll = 9223372036854775807ll;
6126 long long int nll = -9223372036854775807LL;
6127 unsigned long long int ull = 18446744073709551615ULL;
6128 /* Test constant expressions. */
6129 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6130 ? 1 : -1)];
6131 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6132 ? 1 : -1)];
6133 int i = 63;
6134int
6135main ()
6136{
6137/* Test availability of runtime routines for shift and division. */
6138 long long int llmax = 9223372036854775807ll;
6139 unsigned long long int ullmax = 18446744073709551615ull;
6140 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6141 | (llmax / ll) | (llmax % ll)
6142 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6143 | (ullmax / ull) | (ullmax % ull));
6144 ;
6145 return 0;
6146}
6147
6148_ACEOF
6149if ac_fn_c_try_link "$LINENO"; then :
6150
6151else
6152 ac_cv_type_unsigned_long_long_int=no
6153fi
6154rm -f core conftest.err conftest.$ac_objext \
6155 conftest$ac_exeext conftest.$ac_ext
6156 fi
6157fi
6158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6159$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6160 if test $ac_cv_type_unsigned_long_long_int = yes; then
6161
6162$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6163
6164 fi
6165
6166
6167
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6169$as_echo_n "checking for long long int... " >&6; }
6170if test "${ac_cv_type_long_long_int+set}" = set; then :
6171 $as_echo_n "(cached) " >&6
6172else
6173 ac_cv_type_long_long_int=yes
6174 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6175 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6176 if test $ac_cv_type_long_long_int = yes; then
6177 if test "$cross_compiling" = yes; then :
6178 :
6179else
6180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6181/* end confdefs.h. */
6182#include <limits.h>
6183 #ifndef LLONG_MAX
6184 # define HALF \
6185 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6186 # define LLONG_MAX (HALF - 1 + HALF)
6187 #endif
6188int
6189main ()
6190{
6191long long int n = 1;
6192 int i;
6193 for (i = 0; ; i++)
6194 {
6195 long long int m = n << i;
6196 if (m >> i != n)
6197 return 1;
6198 if (LLONG_MAX / 2 < m)
6199 break;
6200 }
6201 return 0;
6202 ;
6203 return 0;
6204}
6205_ACEOF
6206if ac_fn_c_try_run "$LINENO"; then :
6207
6208else
6209 ac_cv_type_long_long_int=no
6210fi
6211rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6212 conftest.$ac_objext conftest.beam conftest.$ac_ext
6213fi
6214
6215 fi
6216 fi
6217fi
6218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6219$as_echo "$ac_cv_type_long_long_int" >&6; }
6220 if test $ac_cv_type_long_long_int = yes; then
6221
6222$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6223
6224 fi
6225
6226
6227
6228
6229
6230
88b48903
WN
6231 gl_cv_c_multiarch=no
6232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a143c6de 6233/* end confdefs.h. */
88b48903
WN
6234#ifndef __APPLE_CC__
6235 not a universal capable compiler
6236 #endif
6237 typedef int dummy;
6238
8690e634
JK
6239_ACEOF
6240if ac_fn_c_try_compile "$LINENO"; then :
6241
6242 arch=
6243 prev=
6244 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
6245 if test -n "$prev"; then
6246 case $word in
6247 i?86 | x86_64 | ppc | ppc64)
6248 if test -z "$arch" || test "$arch" = "$word"; then
6249 arch="$word"
6250 else
6251 gl_cv_c_multiarch=yes
6252 fi
6253 ;;
6254 esac
6255 prev=
6256 else
6257 if test "x$word" = "x-arch"; then
6258 prev=arch
6259 fi
6260 fi
6261 done
6262
6263fi
6264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6265 if test $gl_cv_c_multiarch = yes; then
6266 APPLE_UNIVERSAL_BUILD=1
6267 else
6268 APPLE_UNIVERSAL_BUILD=0
6269 fi
6270
6271
6272
6273
6274
6275 if test $ac_cv_type_long_long_int = yes; then
6276 HAVE_LONG_LONG_INT=1
6277 else
6278 HAVE_LONG_LONG_INT=0
6279 fi
6280
6281
6282 if test $ac_cv_type_unsigned_long_long_int = yes; then
6283 HAVE_UNSIGNED_LONG_LONG_INT=1
6284 else
6285 HAVE_UNSIGNED_LONG_LONG_INT=0
6286 fi
6287
6288
6289
8690e634
JK
6290 if test $ac_cv_header_wchar_h = yes; then
6291 HAVE_WCHAR_H=1
6292 else
6293 HAVE_WCHAR_H=0
6294 fi
6295
6296
6297 if test $ac_cv_header_inttypes_h = yes; then
6298 HAVE_INTTYPES_H=1
6299 else
6300 HAVE_INTTYPES_H=0
6301 fi
6302
6303
6304 if test $ac_cv_header_sys_types_h = yes; then
6305 HAVE_SYS_TYPES_H=1
6306 else
6307 HAVE_SYS_TYPES_H=0
6308 fi
6309
6310
6311
6312
6313
6314
6315
6316
8690e634
JK
6317
6318
6319
6320 if test $gl_cv_have_include_next = yes; then
6321 gl_cv_next_stdint_h='<'stdint.h'>'
6322 else
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
6324$as_echo_n "checking absolute name of <stdint.h>... " >&6; }
6325if test "${gl_cv_next_stdint_h+set}" = set; then :
6326 $as_echo_n "(cached) " >&6
6327else
6328
6329 if test $ac_cv_header_stdint_h = yes; then
6330
6331
6332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6333/* end confdefs.h. */
6334#include <stdint.h>
6335
6336_ACEOF
6337 case "$host_os" in
6338 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6339 *) gl_absname_cpp="$ac_cpp" ;;
6340 esac
6341
6342 case "$host_os" in
6343 mingw*)
6344 gl_dirsep_regex='[/\\]'
6345 ;;
6346 *)
6347 gl_dirsep_regex='\/'
6348 ;;
6349 esac
6350 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
6351
6352 gl_header_literal_regex=`echo 'stdint.h' \
6353 | sed -e "$gl_make_literal_regex_sed"`
6354 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
6355 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
6356 s|^/[^/]|//&|
6357 p
6358 q
6359 }'
6360 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6361 sed -n "$gl_absolute_header_sed"`'"'
6362 else
6363 gl_cv_next_stdint_h='<'stdint.h'>'
6364 fi
6365
6366
6367fi
6368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
6369$as_echo "$gl_cv_next_stdint_h" >&6; }
6370 fi
6371 NEXT_STDINT_H=$gl_cv_next_stdint_h
6372
6373 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6374 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6375 gl_next_as_first_directive='<'stdint.h'>'
6376 else
6377 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6378 gl_next_as_first_directive=$gl_cv_next_stdint_h
6379 fi
6380 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
6381
6382
6383
6384
6385 if test $ac_cv_header_stdint_h = yes; then
6386 HAVE_STDINT_H=1
6387 else
6388 HAVE_STDINT_H=0
6389 fi
6390
6391
6392 if test $ac_cv_header_stdint_h = yes; then
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
6394$as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
6395if test "${gl_cv_header_working_stdint_h+set}" = set; then :
6396 $as_echo_n "(cached) " >&6
6397else
6398 gl_cv_header_working_stdint_h=no
6399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6400/* end confdefs.h. */
6401
6402
6403#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6404#include <stdint.h>
6405/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
6406#if !(defined WCHAR_MIN && defined WCHAR_MAX)
6407#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
6408#endif
6409
6410
6411 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6412 included before <wchar.h>. */
6413 #include <stddef.h>
6414 #include <signal.h>
6415 #if HAVE_WCHAR_H
6416 # include <stdio.h>
6417 # include <time.h>
6418 # include <wchar.h>
6419 #endif
6420
6421
6422#ifdef INT8_MAX
6423int8_t a1 = INT8_MAX;
6424int8_t a1min = INT8_MIN;
6425#endif
6426#ifdef INT16_MAX
6427int16_t a2 = INT16_MAX;
6428int16_t a2min = INT16_MIN;
6429#endif
6430#ifdef INT32_MAX
6431int32_t a3 = INT32_MAX;
6432int32_t a3min = INT32_MIN;
6433#endif
6434#ifdef INT64_MAX
6435int64_t a4 = INT64_MAX;
6436int64_t a4min = INT64_MIN;
6437#endif
6438#ifdef UINT8_MAX
6439uint8_t b1 = UINT8_MAX;
6440#else
6441typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
6442#endif
6443#ifdef UINT16_MAX
6444uint16_t b2 = UINT16_MAX;
6445#endif
6446#ifdef UINT32_MAX
6447uint32_t b3 = UINT32_MAX;
6448#endif
6449#ifdef UINT64_MAX
6450uint64_t b4 = UINT64_MAX;
6451#endif
6452int_least8_t c1 = INT8_C (0x7f);
6453int_least8_t c1max = INT_LEAST8_MAX;
6454int_least8_t c1min = INT_LEAST8_MIN;
6455int_least16_t c2 = INT16_C (0x7fff);
6456int_least16_t c2max = INT_LEAST16_MAX;
6457int_least16_t c2min = INT_LEAST16_MIN;
6458int_least32_t c3 = INT32_C (0x7fffffff);
6459int_least32_t c3max = INT_LEAST32_MAX;
6460int_least32_t c3min = INT_LEAST32_MIN;
6461int_least64_t c4 = INT64_C (0x7fffffffffffffff);
6462int_least64_t c4max = INT_LEAST64_MAX;
6463int_least64_t c4min = INT_LEAST64_MIN;
6464uint_least8_t d1 = UINT8_C (0xff);
6465uint_least8_t d1max = UINT_LEAST8_MAX;
6466uint_least16_t d2 = UINT16_C (0xffff);
6467uint_least16_t d2max = UINT_LEAST16_MAX;
6468uint_least32_t d3 = UINT32_C (0xffffffff);
6469uint_least32_t d3max = UINT_LEAST32_MAX;
6470uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
6471uint_least64_t d4max = UINT_LEAST64_MAX;
6472int_fast8_t e1 = INT_FAST8_MAX;
6473int_fast8_t e1min = INT_FAST8_MIN;
6474int_fast16_t e2 = INT_FAST16_MAX;
6475int_fast16_t e2min = INT_FAST16_MIN;
6476int_fast32_t e3 = INT_FAST32_MAX;
6477int_fast32_t e3min = INT_FAST32_MIN;
6478int_fast64_t e4 = INT_FAST64_MAX;
6479int_fast64_t e4min = INT_FAST64_MIN;
6480uint_fast8_t f1 = UINT_FAST8_MAX;
6481uint_fast16_t f2 = UINT_FAST16_MAX;
6482uint_fast32_t f3 = UINT_FAST32_MAX;
6483uint_fast64_t f4 = UINT_FAST64_MAX;
6484#ifdef INTPTR_MAX
6485intptr_t g = INTPTR_MAX;
6486intptr_t gmin = INTPTR_MIN;
6487#endif
6488#ifdef UINTPTR_MAX
6489uintptr_t h = UINTPTR_MAX;
6490#endif
6491intmax_t i = INTMAX_MAX;
6492uintmax_t j = UINTMAX_MAX;
6493
6494#include <limits.h> /* for CHAR_BIT */
6495#define TYPE_MINIMUM(t) \
6496 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
6497#define TYPE_MAXIMUM(t) \
6498 ((t) ((t) 0 < (t) -1 \
6499 ? (t) -1 \
6500 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
6501struct s {
6502 int check_PTRDIFF:
6503 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
6504 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
6505 ? 1 : -1;
6506 /* Detect bug in FreeBSD 6.0 / ia64. */
6507 int check_SIG_ATOMIC:
6508 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
6509 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
6510 ? 1 : -1;
6511 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
6512 int check_WCHAR:
6513 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
6514 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
6515 ? 1 : -1;
6516 /* Detect bug in mingw. */
6517 int check_WINT:
6518 WINT_MIN == TYPE_MINIMUM (wint_t)
6519 && WINT_MAX == TYPE_MAXIMUM (wint_t)
6520 ? 1 : -1;
6521
6522 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
6523 int check_UINT8_C:
6524 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
6525 int check_UINT16_C:
6526 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
6527
6528 /* Detect bugs in OpenBSD 3.9 stdint.h. */
6529#ifdef UINT8_MAX
6530 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
6531#endif
6532#ifdef UINT16_MAX
6533 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
6534#endif
6535#ifdef UINT32_MAX
6536 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
6537#endif
6538#ifdef UINT64_MAX
6539 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
6540#endif
6541 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
6542 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
6543 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
6544 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
6545 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
6546 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
6547 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
6548 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
6549 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
6550 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
6551 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
6552};
6553
6554int
6555main ()
6556{
6557
6558 ;
6559 return 0;
6560}
6561_ACEOF
6562if ac_fn_c_try_compile "$LINENO"; then :
6563 if test "$cross_compiling" = yes; then :
6564 gl_cv_header_working_stdint_h=yes
6565
6566else
6567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6568/* end confdefs.h. */
6569
6570
6571#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6572#include <stdint.h>
6573
6574
6575 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6576 included before <wchar.h>. */
6577 #include <stddef.h>
6578 #include <signal.h>
6579 #if HAVE_WCHAR_H
6580 # include <stdio.h>
6581 # include <time.h>
6582 # include <wchar.h>
6583 #endif
6584
6585
6586#include <stdio.h>
6587#include <string.h>
6588#define MVAL(macro) MVAL1(macro)
6589#define MVAL1(expression) #expression
6590static const char *macro_values[] =
6591 {
6592#ifdef INT8_MAX
6593 MVAL (INT8_MAX),
6594#endif
6595#ifdef INT16_MAX
6596 MVAL (INT16_MAX),
6597#endif
6598#ifdef INT32_MAX
6599 MVAL (INT32_MAX),
6600#endif
6601#ifdef INT64_MAX
6602 MVAL (INT64_MAX),
6603#endif
6604#ifdef UINT8_MAX
6605 MVAL (UINT8_MAX),
6606#endif
6607#ifdef UINT16_MAX
6608 MVAL (UINT16_MAX),
6609#endif
6610#ifdef UINT32_MAX
6611 MVAL (UINT32_MAX),
6612#endif
6613#ifdef UINT64_MAX
6614 MVAL (UINT64_MAX),
6615#endif
6616 NULL
6617 };
6618
6619int
6620main ()
6621{
6622
6623 const char **mv;
6624 for (mv = macro_values; *mv != NULL; mv++)
6625 {
6626 const char *value = *mv;
6627 /* Test whether it looks like a cast expression. */
6628 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
6629 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
6630 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
6631 || strncmp (value, "((int)"/*)*/, 6) == 0
6632 || strncmp (value, "((signed short)"/*)*/, 15) == 0
6633 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
6634 return mv - macro_values + 1;
6635 }
6636 return 0;
6637
6638 ;
6639 return 0;
6640}
6641_ACEOF
6642if ac_fn_c_try_run "$LINENO"; then :
6643 gl_cv_header_working_stdint_h=yes
6644fi
6645rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6646 conftest.$ac_objext conftest.beam conftest.$ac_ext
6647fi
6648
6649
6650fi
6651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6652
6653fi
6654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
6655$as_echo "$gl_cv_header_working_stdint_h" >&6; }
6656 fi
6657 if test "$gl_cv_header_working_stdint_h" = yes; then
6658 STDINT_H=
6659 else
6660 for ac_header in sys/inttypes.h sys/bitypes.h
6661do :
6662 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6663ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6664eval as_val=\$$as_ac_Header
6665 if test "x$as_val" = x""yes; then :
6666 cat >>confdefs.h <<_ACEOF
6667#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6668_ACEOF
6669
6670fi
6671
6672done
6673
6674 if test $ac_cv_header_sys_inttypes_h = yes; then
6675 HAVE_SYS_INTTYPES_H=1
6676 else
6677 HAVE_SYS_INTTYPES_H=0
6678 fi
6679
6680 if test $ac_cv_header_sys_bitypes_h = yes; then
6681 HAVE_SYS_BITYPES_H=1
6682 else
6683 HAVE_SYS_BITYPES_H=0
6684 fi
6685
6686
6687
6688
6689 if test $APPLE_UNIVERSAL_BUILD = 0; then
6690
6691
6692 for gltype in ptrdiff_t size_t ; do
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6694$as_echo_n "checking for bit size of $gltype... " >&6; }
6695if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6696 $as_echo_n "(cached) " >&6
6697else
6698 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
6699 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6700 included before <wchar.h>. */
6701 #include <stddef.h>
6702 #include <signal.h>
6703 #if HAVE_WCHAR_H
6704 # include <stdio.h>
6705 # include <time.h>
6706 # include <wchar.h>
6707 #endif
6708
6709#include <limits.h>"; then :
6710
6711else
6712 result=unknown
6713fi
6714
6715 eval gl_cv_bitsizeof_${gltype}=\$result
6716
6717fi
6718eval ac_res=\$gl_cv_bitsizeof_${gltype}
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6720$as_echo "$ac_res" >&6; }
6721 eval result=\$gl_cv_bitsizeof_${gltype}
6722 if test $result = unknown; then
6723 result=0
6724 fi
6725 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6726 cat >>confdefs.h <<_ACEOF
6727#define BITSIZEOF_${GLTYPE} $result
6728_ACEOF
6729
6730 eval BITSIZEOF_${GLTYPE}=\$result
6731 done
6732
6733
6734 fi
6735
6736
6737 for gltype in sig_atomic_t wchar_t wint_t ; do
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6739$as_echo_n "checking for bit size of $gltype... " >&6; }
6740if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6741 $as_echo_n "(cached) " >&6
6742else
6743 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
6744 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6745 included before <wchar.h>. */
6746 #include <stddef.h>
6747 #include <signal.h>
6748 #if HAVE_WCHAR_H
6749 # include <stdio.h>
6750 # include <time.h>
6751 # include <wchar.h>
6752 #endif
6753
6754#include <limits.h>"; then :
6755
6756else
6757 result=unknown
6758fi
6759
6760 eval gl_cv_bitsizeof_${gltype}=\$result
6761
6762fi
6763eval ac_res=\$gl_cv_bitsizeof_${gltype}
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6765$as_echo "$ac_res" >&6; }
6766 eval result=\$gl_cv_bitsizeof_${gltype}
6767 if test $result = unknown; then
6768 result=0
6769 fi
6770 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6771 cat >>confdefs.h <<_ACEOF
6772#define BITSIZEOF_${GLTYPE} $result
6773_ACEOF
6774
6775 eval BITSIZEOF_${GLTYPE}=\$result
6776 done
6777
6778
6779
6780
6781 for gltype in sig_atomic_t wchar_t wint_t ; do
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
6783$as_echo_n "checking whether $gltype is signed... " >&6; }
6784if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
6785 $as_echo_n "(cached) " >&6
6786else
6787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6788/* end confdefs.h. */
6789
6790 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6791 included before <wchar.h>. */
6792 #include <stddef.h>
6793 #include <signal.h>
6794 #if HAVE_WCHAR_H
6795 # include <stdio.h>
6796 # include <time.h>
6797 # include <wchar.h>
6798 #endif
6799
6800 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
6801int
6802main ()
6803{
6804
6805 ;
6806 return 0;
6807}
6808_ACEOF
6809if ac_fn_c_try_compile "$LINENO"; then :
6810 result=yes
6811else
6812 result=no
6813fi
6814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6815 eval gl_cv_type_${gltype}_signed=\$result
6816
6817fi
6818eval ac_res=\$gl_cv_type_${gltype}_signed
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6820$as_echo "$ac_res" >&6; }
6821 eval result=\$gl_cv_type_${gltype}_signed
6822 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6823 if test "$result" = yes; then
6824 cat >>confdefs.h <<_ACEOF
6825#define HAVE_SIGNED_${GLTYPE} 1
6826_ACEOF
6827
6828 eval HAVE_SIGNED_${GLTYPE}=1
6829 else
6830 eval HAVE_SIGNED_${GLTYPE}=0
6831 fi
6832 done
6833
6834
6835 gl_cv_type_ptrdiff_t_signed=yes
6836 gl_cv_type_size_t_signed=no
6837 if test $APPLE_UNIVERSAL_BUILD = 0; then
6838
6839
6840 for gltype in ptrdiff_t size_t ; do
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6842$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6843if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6844 $as_echo_n "(cached) " >&6
6845else
6846 eval gl_cv_type_${gltype}_suffix=no
6847 eval result=\$gl_cv_type_${gltype}_signed
6848 if test "$result" = yes; then
6849 glsufu=
6850 else
6851 glsufu=u
6852 fi
6853 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6854 case $glsuf in
6855 '') gltype1='int';;
6856 l) gltype1='long int';;
6857 ll) gltype1='long long int';;
6858 i64) gltype1='__int64';;
6859 u) gltype1='unsigned int';;
6860 ul) gltype1='unsigned long int';;
6861 ull) gltype1='unsigned long long int';;
6862 ui64)gltype1='unsigned __int64';;
6863 esac
6864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6865/* end confdefs.h. */
6866
6867 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6868 included before <wchar.h>. */
6869 #include <stddef.h>
6870 #include <signal.h>
6871 #if HAVE_WCHAR_H
6872 # include <stdio.h>
6873 # include <time.h>
6874 # include <wchar.h>
6875 #endif
6876
6877 extern $gltype foo;
6878 extern $gltype1 foo;
6879int
6880main ()
6881{
6882
6883 ;
6884 return 0;
6885}
6886_ACEOF
6887if ac_fn_c_try_compile "$LINENO"; then :
6888 eval gl_cv_type_${gltype}_suffix=\$glsuf
6889fi
6890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6891 eval result=\$gl_cv_type_${gltype}_suffix
6892 test "$result" != no && break
6893 done
6894fi
6895eval ac_res=\$gl_cv_type_${gltype}_suffix
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6897$as_echo "$ac_res" >&6; }
6898 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6899 eval result=\$gl_cv_type_${gltype}_suffix
6900 test "$result" = no && result=
6901 eval ${GLTYPE}_SUFFIX=\$result
6902 cat >>confdefs.h <<_ACEOF
6903#define ${GLTYPE}_SUFFIX $result
6904_ACEOF
6905
6906 done
6907
6908
6909 fi
6910
6911
6912 for gltype in sig_atomic_t wchar_t wint_t ; do
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6914$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6915if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6916 $as_echo_n "(cached) " >&6
6917else
6918 eval gl_cv_type_${gltype}_suffix=no
6919 eval result=\$gl_cv_type_${gltype}_signed
6920 if test "$result" = yes; then
6921 glsufu=
6922 else
6923 glsufu=u
6924 fi
6925 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6926 case $glsuf in
6927 '') gltype1='int';;
6928 l) gltype1='long int';;
6929 ll) gltype1='long long int';;
6930 i64) gltype1='__int64';;
6931 u) gltype1='unsigned int';;
6932 ul) gltype1='unsigned long int';;
6933 ull) gltype1='unsigned long long int';;
6934 ui64)gltype1='unsigned __int64';;
6935 esac
6936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6937/* end confdefs.h. */
6938
6939 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6940 included before <wchar.h>. */
6941 #include <stddef.h>
6942 #include <signal.h>
6943 #if HAVE_WCHAR_H
6944 # include <stdio.h>
6945 # include <time.h>
6946 # include <wchar.h>
6947 #endif
6948
6949 extern $gltype foo;
6950 extern $gltype1 foo;
6951int
6952main ()
6953{
6954
6955 ;
6956 return 0;
6957}
6958_ACEOF
6959if ac_fn_c_try_compile "$LINENO"; then :
6960 eval gl_cv_type_${gltype}_suffix=\$glsuf
6961fi
6962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6963 eval result=\$gl_cv_type_${gltype}_suffix
6964 test "$result" != no && break
6965 done
6966fi
6967eval ac_res=\$gl_cv_type_${gltype}_suffix
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6969$as_echo "$ac_res" >&6; }
6970 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6971 eval result=\$gl_cv_type_${gltype}_suffix
6972 test "$result" = no && result=
6973 eval ${GLTYPE}_SUFFIX=\$result
6974 cat >>confdefs.h <<_ACEOF
6975#define ${GLTYPE}_SUFFIX $result
6976_ACEOF
6977
6978 done
6979
6980
6981
6982 if test $BITSIZEOF_WINT_T -lt 32; then
6983 BITSIZEOF_WINT_T=32
6984 fi
6985
6986 STDINT_H=stdint.h
6987 fi
6988
6989 if test -n "$STDINT_H"; then
6990 GL_GENERATE_STDINT_H_TRUE=
6991 GL_GENERATE_STDINT_H_FALSE='#'
6992else
6993 GL_GENERATE_STDINT_H_TRUE='#'
6994 GL_GENERATE_STDINT_H_FALSE=
6995fi
6996
6997
6998
6999
7000
8690e634
JK
7001 GNULIB_IMAXABS=0;
7002 GNULIB_IMAXDIV=0;
7003 GNULIB_STRTOIMAX=0;
7004 GNULIB_STRTOUMAX=0;
7005 HAVE_DECL_IMAXABS=1;
7006 HAVE_DECL_IMAXDIV=1;
7007 HAVE_DECL_STRTOIMAX=1;
7008 HAVE_DECL_STRTOUMAX=1;
7009 REPLACE_STRTOIMAX=0;
7010 INT32_MAX_LT_INTMAX_MAX=1;
7011 INT64_MAX_EQ_LONG_MAX='defined _LP64';
7012 PRI_MACROS_BROKEN=0;
7013 PRIPTR_PREFIX=__PRIPTR_PREFIX;
7014 UINT32_MAX_LT_UINTMAX_MAX=1;
7015 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
7016
7017
7018
7019
8690e634
JK
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
8690e634
JK
7031 if test $gl_cv_have_include_next = yes; then
7032 gl_cv_next_inttypes_h='<'inttypes.h'>'
7033 else
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
7035$as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
7036if test "${gl_cv_next_inttypes_h+set}" = set; then :
7037 $as_echo_n "(cached) " >&6
7038else
7039
7040 if test $ac_cv_header_inttypes_h = yes; then
7041
7042
7043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7044/* end confdefs.h. */
7045#include <inttypes.h>
7046
7047_ACEOF
7048 case "$host_os" in
7049 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7050 *) gl_absname_cpp="$ac_cpp" ;;
7051 esac
7052
7053 case "$host_os" in
7054 mingw*)
7055 gl_dirsep_regex='[/\\]'
7056 ;;
7057 *)
7058 gl_dirsep_regex='\/'
7059 ;;
7060 esac
7061 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
7062
7063 gl_header_literal_regex=`echo 'inttypes.h' \
7064 | sed -e "$gl_make_literal_regex_sed"`
7065 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7066 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7067 s|^/[^/]|//&|
7068 p
7069 q
7070 }'
7071 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7072 sed -n "$gl_absolute_header_sed"`'"'
7073 else
7074 gl_cv_next_inttypes_h='<'inttypes.h'>'
7075 fi
7076
7077
7078fi
7079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
7080$as_echo "$gl_cv_next_inttypes_h" >&6; }
7081 fi
7082 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
7083
7084 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7085 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7086 gl_next_as_first_directive='<'inttypes.h'>'
7087 else
7088 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7089 gl_next_as_first_directive=$gl_cv_next_inttypes_h
7090 fi
7091 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
7092
7093
7094
7095
7096
7097
7098
7099
7100 for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
7101 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
7103$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
7104if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
7105 $as_echo_n "(cached) " >&6
7106else
7107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7108/* end confdefs.h. */
7109#include <inttypes.h>
7110
7111int
7112main ()
7113{
7114#undef $gl_func
7115 (void) $gl_func;
7116 ;
7117 return 0;
7118}
7119_ACEOF
7120if ac_fn_c_try_compile "$LINENO"; then :
7121 eval "$as_gl_Symbol=yes"
7122else
7123 eval "$as_gl_Symbol=no"
7124fi
7125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7126fi
7127eval ac_res=\$$as_gl_Symbol
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7129$as_echo "$ac_res" >&6; }
7130 eval as_val=\$$as_gl_Symbol
7131 if test "x$as_val" = x""yes; then :
7132 cat >>confdefs.h <<_ACEOF
7133#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
7134_ACEOF
7135
7136 eval ac_cv_have_decl_$gl_func=yes
7137fi
7138 done
7139
7140
7141
7142 for ac_header in inttypes.h
7143do :
7144 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7145if test "x$ac_cv_header_inttypes_h" = x""yes; then :
7146 cat >>confdefs.h <<_ACEOF
7147#define HAVE_INTTYPES_H 1
7148_ACEOF
7149
7150fi
7151
7152done
7153
7154 if test $ac_cv_header_inttypes_h = yes; then
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7156$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7157if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
7158 $as_echo_n "(cached) " >&6
7159else
7160
7161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7162/* end confdefs.h. */
7163
7164#include <inttypes.h>
7165#ifdef PRId32
7166char *p = PRId32;
7167#endif
7168
7169int
7170main ()
7171{
7172
7173 ;
7174 return 0;
7175}
7176_ACEOF
7177if ac_fn_c_try_compile "$LINENO"; then :
7178 gt_cv_inttypes_pri_broken=no
7179else
7180 gt_cv_inttypes_pri_broken=yes
7181fi
7182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7183
7184fi
7185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7186$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7187 fi
7188 if test "$gt_cv_inttypes_pri_broken" = yes; then
7189
7190cat >>confdefs.h <<_ACEOF
7191#define PRI_MACROS_BROKEN 1
7192_ACEOF
7193
7194 PRI_MACROS_BROKEN=1
7195 else
7196 PRI_MACROS_BROKEN=0
7197 fi
7198
7199
7200
88b48903
WN
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
7202$as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
7203if test "${gl_cv_cc_double_expbit0+set}" = set; then :
8690e634
JK
7204 $as_echo_n "(cached) " >&6
7205else
88b48903
WN
7206
7207 if test "$cross_compiling" = yes; then :
7208
7209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690e634 7210/* end confdefs.h. */
88b48903
WN
7211
7212#if defined arm || defined __arm || defined __arm__
7213 mixed_endianness
7214#endif
7215
7216_ACEOF
7217if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7218 $EGREP "mixed_endianness" >/dev/null 2>&1; then :
7219 gl_cv_cc_double_expbit0="unknown"
7220else
7221
7222 :
7223if test "${ac_cv_c_bigendian+set}" = set; then :
7224 $as_echo_n "(cached) " >&6
7225else
7226 ac_cv_c_bigendian=unknown
7227 # See if we're dealing with a universal compiler.
7228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7229/* end confdefs.h. */
7230#ifndef __APPLE_CC__
7231 not a universal capable compiler
7232 #endif
7233 typedef int dummy;
7234
7235_ACEOF
7236if ac_fn_c_try_compile "$LINENO"; then :
7237
7238 # Check for potential -arch flags. It is not universal unless
7239 # there are at least two -arch flags with different values.
7240 ac_arch=
7241 ac_prev=
7242 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7243 if test -n "$ac_prev"; then
7244 case $ac_word in
7245 i?86 | x86_64 | ppc | ppc64)
7246 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7247 ac_arch=$ac_word
7248 else
7249 ac_cv_c_bigendian=universal
7250 break
7251 fi
7252 ;;
7253 esac
7254 ac_prev=
7255 elif test "x$ac_word" = "x-arch"; then
7256 ac_prev=arch
7257 fi
7258 done
7259fi
7260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7261 if test $ac_cv_c_bigendian = unknown; then
7262 # See if sys/param.h defines the BYTE_ORDER macro.
7263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7264/* end confdefs.h. */
7265#include <sys/types.h>
7266 #include <sys/param.h>
7267
8690e634
JK
7268int
7269main ()
7270{
88b48903
WN
7271#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7272 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7273 && LITTLE_ENDIAN)
7274 bogus endian macros
7275 #endif
7276
8690e634
JK
7277 ;
7278 return 0;
7279}
7280_ACEOF
88b48903
WN
7281if ac_fn_c_try_compile "$LINENO"; then :
7282 # It does; now see whether it defined to BIG_ENDIAN or not.
7283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7284/* end confdefs.h. */
7285#include <sys/types.h>
7286 #include <sys/param.h>
7287
7288int
7289main ()
7290{
7291#if BYTE_ORDER != BIG_ENDIAN
7292 not big endian
7293 #endif
7294
7295 ;
7296 return 0;
7297}
7298_ACEOF
7299if ac_fn_c_try_compile "$LINENO"; then :
7300 ac_cv_c_bigendian=yes
8690e634 7301else
88b48903 7302 ac_cv_c_bigendian=no
8690e634 7303fi
88b48903 7304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8690e634 7305fi
88b48903
WN
7306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7307 fi
7308 if test $ac_cv_c_bigendian = unknown; then
7309 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7311/* end confdefs.h. */
7312#include <limits.h>
8690e634 7313
88b48903
WN
7314int
7315main ()
7316{
7317#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7318 bogus endian macros
7319 #endif
8690e634 7320
88b48903
WN
7321 ;
7322 return 0;
7323}
7324_ACEOF
7325if ac_fn_c_try_compile "$LINENO"; then :
7326 # It does; now see whether it defined to _BIG_ENDIAN or not.
7327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7328/* end confdefs.h. */
7329#include <limits.h>
8690e634 7330
88b48903
WN
7331int
7332main ()
7333{
7334#ifndef _BIG_ENDIAN
7335 not big endian
7336 #endif
8690e634 7337
88b48903
WN
7338 ;
7339 return 0;
7340}
7341_ACEOF
7342if ac_fn_c_try_compile "$LINENO"; then :
7343 ac_cv_c_bigendian=yes
7344else
7345 ac_cv_c_bigendian=no
7346fi
7347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7348fi
7349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7350 fi
7351 if test $ac_cv_c_bigendian = unknown; then
7352 # Compile a test program.
7353 if test "$cross_compiling" = yes; then :
7354 # Try to guess by grepping values from an object file.
7355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7356/* end confdefs.h. */
7357short int ascii_mm[] =
7358 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7359 short int ascii_ii[] =
7360 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7361 int use_ascii (int i) {
7362 return ascii_mm[i] + ascii_ii[i];
7363 }
7364 short int ebcdic_ii[] =
7365 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7366 short int ebcdic_mm[] =
7367 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7368 int use_ebcdic (int i) {
7369 return ebcdic_mm[i] + ebcdic_ii[i];
7370 }
7371 extern int foo;
8690e634 7372
88b48903
WN
7373int
7374main ()
7375{
7376return use_ascii (foo) == use_ebcdic (foo);
7377 ;
7378 return 0;
7379}
7380_ACEOF
7381if ac_fn_c_try_compile "$LINENO"; then :
7382 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7383 ac_cv_c_bigendian=yes
7384 fi
7385 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7386 if test "$ac_cv_c_bigendian" = unknown; then
7387 ac_cv_c_bigendian=no
7388 else
7389 # finding both strings is unlikely to happen, but who knows?
7390 ac_cv_c_bigendian=unknown
7391 fi
7392 fi
7393fi
7394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7395else
7396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7397/* end confdefs.h. */
7398$ac_includes_default
7399int
7400main ()
7401{
8690e634 7402
88b48903
WN
7403 /* Are we little or big endian? From Harbison&Steele. */
7404 union
7405 {
7406 long int l;
7407 char c[sizeof (long int)];
7408 } u;
7409 u.l = 1;
7410 return u.c[sizeof (long int) - 1] == 1;
8690e634 7411
88b48903
WN
7412 ;
7413 return 0;
7414}
7415_ACEOF
7416if ac_fn_c_try_run "$LINENO"; then :
7417 ac_cv_c_bigendian=no
7418else
7419 ac_cv_c_bigendian=yes
7420fi
7421rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7422 conftest.$ac_objext conftest.beam conftest.$ac_ext
7423fi
8690e634 7424
88b48903
WN
7425 fi
7426fi
7427:
7428 case $ac_cv_c_bigendian in #(
7429 yes)
7430 gl_cv_cc_double_expbit0="word 0 bit 20";; #(
7431 no)
7432 gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
7433 universal)
8690e634 7434
88b48903 7435$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8690e634 7436
88b48903
WN
7437 ;; #(
7438 *)
7439 gl_cv_cc_double_expbit0="unknown" ;;
7440 esac
8690e634
JK
7441
7442
88b48903
WN
7443fi
7444rm -f conftest*
8690e634 7445
8690e634 7446
88b48903
WN
7447else
7448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7449/* end confdefs.h. */
8690e634 7450
88b48903
WN
7451#include <float.h>
7452#include <stddef.h>
7453#include <stdio.h>
7454#include <string.h>
7455#define NWORDS \
7456 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
7457typedef union { double value; unsigned int word[NWORDS]; } memory_double;
7458static unsigned int ored_words[NWORDS];
7459static unsigned int anded_words[NWORDS];
7460static void add_to_ored_words (double x)
7461{
7462 memory_double m;
7463 size_t i;
7464 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
7465 memset (&m, 0, sizeof (memory_double));
7466 m.value = x;
7467 for (i = 0; i < NWORDS; i++)
7468 {
7469 ored_words[i] |= m.word[i];
7470 anded_words[i] &= m.word[i];
7471 }
7472}
7473int main ()
7474{
7475 size_t j;
7476 FILE *fp = fopen ("conftest.out", "w");
7477 if (fp == NULL)
7478 return 1;
7479 for (j = 0; j < NWORDS; j++)
7480 anded_words[j] = ~ (unsigned int) 0;
7481 add_to_ored_words (0.25);
7482 add_to_ored_words (0.5);
7483 add_to_ored_words (1.0);
7484 add_to_ored_words (2.0);
7485 add_to_ored_words (4.0);
7486 /* Remove bits that are common (e.g. if representation of the first mantissa
7487 bit is explicit). */
7488 for (j = 0; j < NWORDS; j++)
7489 ored_words[j] &= ~anded_words[j];
7490 /* Now find the nonzero word. */
7491 for (j = 0; j < NWORDS; j++)
7492 if (ored_words[j] != 0)
7493 break;
7494 if (j < NWORDS)
7495 {
7496 size_t i;
7497 for (i = j + 1; i < NWORDS; i++)
7498 if (ored_words[i] != 0)
7499 {
7500 fprintf (fp, "unknown");
7501 return (fclose (fp) != 0);
7502 }
7503 for (i = 0; ; i++)
7504 if ((ored_words[j] >> i) & 1)
7505 {
7506 fprintf (fp, "word %d bit %d", (int) j, (int) i);
7507 return (fclose (fp) != 0);
7508 }
7509 }
7510 fprintf (fp, "unknown");
7511 return (fclose (fp) != 0);
7512}
8690e634 7513
88b48903
WN
7514_ACEOF
7515if ac_fn_c_try_run "$LINENO"; then :
7516 gl_cv_cc_double_expbit0=`cat conftest.out`
7517else
7518 gl_cv_cc_double_expbit0="unknown"
7519fi
7520rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7521 conftest.$ac_objext conftest.beam conftest.$ac_ext
7522fi
8690e634 7523
88b48903 7524 rm -f conftest.out
8690e634 7525
88b48903
WN
7526fi
7527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
7528$as_echo "$gl_cv_cc_double_expbit0" >&6; }
7529 case "$gl_cv_cc_double_expbit0" in
7530 word*bit*)
7531 word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
7532 bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
8690e634 7533
88b48903
WN
7534cat >>confdefs.h <<_ACEOF
7535#define DBL_EXPBIT0_WORD $word
7536_ACEOF
8690e634
JK
7537
7538
88b48903
WN
7539cat >>confdefs.h <<_ACEOF
7540#define DBL_EXPBIT0_BIT $bit
7541_ACEOF
8690e634 7542
88b48903
WN
7543 ;;
7544 esac
8690e634
JK
7545
7546
88b48903
WN
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7548$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7549if test "${ac_cv_c_bigendian+set}" = set; then :
8690e634
JK
7550 $as_echo_n "(cached) " >&6
7551else
88b48903
WN
7552 ac_cv_c_bigendian=unknown
7553 # See if we're dealing with a universal compiler.
7554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7555/* end confdefs.h. */
7556#ifndef __APPLE_CC__
7557 not a universal capable compiler
7558 #endif
7559 typedef int dummy;
7560
7561_ACEOF
7562if ac_fn_c_try_compile "$LINENO"; then :
7563
7564 # Check for potential -arch flags. It is not universal unless
7565 # there are at least two -arch flags with different values.
7566 ac_arch=
7567 ac_prev=
7568 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7569 if test -n "$ac_prev"; then
7570 case $ac_word in
7571 i?86 | x86_64 | ppc | ppc64)
7572 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7573 ac_arch=$ac_word
7574 else
7575 ac_cv_c_bigendian=universal
7576 break
7577 fi
7578 ;;
7579 esac
7580 ac_prev=
7581 elif test "x$ac_word" = "x-arch"; then
7582 ac_prev=arch
7583 fi
7584 done
7585fi
7586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7587 if test $ac_cv_c_bigendian = unknown; then
7588 # See if sys/param.h defines the BYTE_ORDER macro.
7589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690e634
JK
7590/* end confdefs.h. */
7591#include <sys/types.h>
88b48903
WN
7592 #include <sys/param.h>
7593
7594int
7595main ()
7596{
7597#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7598 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7599 && LITTLE_ENDIAN)
7600 bogus endian macros
7601 #endif
7602
7603 ;
7604 return 0;
7605}
7606_ACEOF
7607if ac_fn_c_try_compile "$LINENO"; then :
7608 # It does; now see whether it defined to BIG_ENDIAN or not.
7609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7610/* end confdefs.h. */
7611#include <sys/types.h>
7612 #include <sys/param.h>
7613
7614int
7615main ()
7616{
7617#if BYTE_ORDER != BIG_ENDIAN
7618 not big endian
7619 #endif
7620
7621 ;
7622 return 0;
7623}
7624_ACEOF
7625if ac_fn_c_try_compile "$LINENO"; then :
7626 ac_cv_c_bigendian=yes
7627else
7628 ac_cv_c_bigendian=no
7629fi
7630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7631fi
7632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7633 fi
7634 if test $ac_cv_c_bigendian = unknown; then
7635 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7637/* end confdefs.h. */
7638#include <limits.h>
7639
7640int
7641main ()
7642{
7643#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7644 bogus endian macros
7645 #endif
7646
7647 ;
7648 return 0;
7649}
7650_ACEOF
7651if ac_fn_c_try_compile "$LINENO"; then :
7652 # It does; now see whether it defined to _BIG_ENDIAN or not.
7653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7654/* end confdefs.h. */
7655#include <limits.h>
7656
7657int
7658main ()
7659{
7660#ifndef _BIG_ENDIAN
7661 not big endian
7662 #endif
7663
7664 ;
7665 return 0;
7666}
7667_ACEOF
7668if ac_fn_c_try_compile "$LINENO"; then :
7669 ac_cv_c_bigendian=yes
7670else
7671 ac_cv_c_bigendian=no
7672fi
7673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7674fi
7675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7676 fi
7677 if test $ac_cv_c_bigendian = unknown; then
7678 # Compile a test program.
7679 if test "$cross_compiling" = yes; then :
7680 # Try to guess by grepping values from an object file.
7681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7682/* end confdefs.h. */
7683short int ascii_mm[] =
7684 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7685 short int ascii_ii[] =
7686 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7687 int use_ascii (int i) {
7688 return ascii_mm[i] + ascii_ii[i];
7689 }
7690 short int ebcdic_ii[] =
7691 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7692 short int ebcdic_mm[] =
7693 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7694 int use_ebcdic (int i) {
7695 return ebcdic_mm[i] + ebcdic_ii[i];
7696 }
7697 extern int foo;
7698
7699int
7700main ()
7701{
7702return use_ascii (foo) == use_ebcdic (foo);
7703 ;
7704 return 0;
7705}
7706_ACEOF
7707if ac_fn_c_try_compile "$LINENO"; then :
7708 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7709 ac_cv_c_bigendian=yes
7710 fi
7711 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7712 if test "$ac_cv_c_bigendian" = unknown; then
7713 ac_cv_c_bigendian=no
7714 else
7715 # finding both strings is unlikely to happen, but who knows?
7716 ac_cv_c_bigendian=unknown
7717 fi
7718 fi
7719fi
7720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7721else
7722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7723/* end confdefs.h. */
7724$ac_includes_default
7725int
7726main ()
7727{
7728
7729 /* Are we little or big endian? From Harbison&Steele. */
7730 union
7731 {
7732 long int l;
7733 char c[sizeof (long int)];
7734 } u;
7735 u.l = 1;
7736 return u.c[sizeof (long int) - 1] == 1;
7737
7738 ;
7739 return 0;
7740}
7741_ACEOF
7742if ac_fn_c_try_run "$LINENO"; then :
7743 ac_cv_c_bigendian=no
7744else
7745 ac_cv_c_bigendian=yes
7746fi
7747rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7748 conftest.$ac_objext conftest.beam conftest.$ac_ext
7749fi
7750
7751 fi
7752fi
7753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7754$as_echo "$ac_cv_c_bigendian" >&6; }
7755 case $ac_cv_c_bigendian in #(
7756 yes)
7757 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
7758;; #(
7759 no)
7760 ;; #(
7761 universal)
7762
7763$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7764
7765 ;; #(
7766 *)
7767 as_fn_error "unknown endianness
7768 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7769 esac
7770
7771
7772
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
7774$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
7775if test "${am_cv_langinfo_codeset+set}" = set; then :
7776 $as_echo_n "(cached) " >&6
7777else
7778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7779/* end confdefs.h. */
7780#include <langinfo.h>
7781int
7782main ()
7783{
7784char* cs = nl_langinfo(CODESET); return !cs;
7785 ;
7786 return 0;
7787}
7788_ACEOF
7789if ac_fn_c_try_link "$LINENO"; then :
7790 am_cv_langinfo_codeset=yes
7791else
7792 am_cv_langinfo_codeset=no
7793fi
7794rm -f core conftest.err conftest.$ac_objext \
7795 conftest$ac_exeext conftest.$ac_ext
7796
7797fi
7798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
7799$as_echo "$am_cv_langinfo_codeset" >&6; }
7800 if test $am_cv_langinfo_codeset = yes; then
7801
7802$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
7803
7804 fi
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
88b48903
WN
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
7816$as_echo_n "checking for working fcntl.h... " >&6; }
7817if test "${gl_cv_header_working_fcntl_h+set}" = set; then :
7818 $as_echo_n "(cached) " >&6
7819else
7820 if test "$cross_compiling" = yes; then :
7821 gl_cv_header_working_fcntl_h=cross-compiling
7822else
7823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7824/* end confdefs.h. */
7825#include <sys/types.h>
7826 #include <sys/stat.h>
7827 #if HAVE_UNISTD_H
7828 # include <unistd.h>
7829 #else /* on Windows with MSVC */
7830 # include <io.h>
7831 # include <stdlib.h>
8690e634
JK
7832 # defined sleep(n) _sleep ((n) * 1000)
7833 #endif
7834 #include <fcntl.h>
7835 #ifndef O_NOATIME
7836 #define O_NOATIME 0
7837 #endif
7838 #ifndef O_NOFOLLOW
7839 #define O_NOFOLLOW 0
7840 #endif
7841 static int const constants[] =
7842 {
7843 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
7844 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
7845 };
7846
7847int
7848main ()
7849{
7850
7851 int result = !constants;
7852 #if HAVE_SYMLINK
7853 {
7854 static char const sym[] = "conftest.sym";
a512b375
JB
7855 if (symlink ("/dev/null", sym) != 0)
7856 result |= 2;
7857 else
7858 {
7859 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
7860 if (fd >= 0)
7861 {
7862 close (fd);
7863 result |= 4;
7864 }
7865 }
7866 if (unlink (sym) != 0 || symlink (".", sym) != 0)
8690e634
JK
7867 result |= 2;
7868 else
7869 {
7870 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
7871 if (fd >= 0)
7872 {
7873 close (fd);
7874 result |= 4;
7875 }
7876 }
7877 unlink (sym);
7878 }
7879 #endif
7880 {
7881 static char const file[] = "confdefs.h";
7882 int fd = open (file, O_RDONLY | O_NOATIME);
7883 if (fd < 0)
7884 result |= 8;
7885 else
7886 {
7887 struct stat st0;
7888 if (fstat (fd, &st0) != 0)
7889 result |= 16;
7890 else
7891 {
7892 char c;
7893 sleep (1);
7894 if (read (fd, &c, 1) != 1)
7895 result |= 24;
7896 else
7897 {
7898 if (close (fd) != 0)
7899 result |= 32;
7900 else
7901 {
7902 struct stat st1;
7903 if (stat (file, &st1) != 0)
7904 result |= 40;
7905 else
7906 if (st0.st_atime != st1.st_atime)
7907 result |= 64;
7908 }
7909 }
7910 }
7911 }
7912 }
7913 return result;
7914 ;
7915 return 0;
7916}
7917_ACEOF
7918if ac_fn_c_try_run "$LINENO"; then :
7919 gl_cv_header_working_fcntl_h=yes
7920else
7921 case $? in #(
7922 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
7923 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
7924 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
7925 *) gl_cv_header_working_fcntl_h='no';;
7926 esac
7927fi
7928rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7929 conftest.$ac_objext conftest.beam conftest.$ac_ext
7930fi
7931
7932fi
7933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
7934$as_echo "$gl_cv_header_working_fcntl_h" >&6; }
7935
7936 case $gl_cv_header_working_fcntl_h in #(
7937 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
7938 *) ac_val=1;;
7939 esac
7940
7941cat >>confdefs.h <<_ACEOF
7942#define HAVE_WORKING_O_NOATIME $ac_val
7943_ACEOF
7944
7945
7946 case $gl_cv_header_working_fcntl_h in #(
7947 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
7948 *) ac_val=1;;
7949 esac
7950
7951cat >>confdefs.h <<_ACEOF
7952#define HAVE_WORKING_O_NOFOLLOW $ac_val
7953_ACEOF
7954
7955
3574124b 7956ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
8690e634
JK
7957if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
7958 ac_have_decl=1
7959else
7960 ac_have_decl=0
7961fi
7962
7963cat >>confdefs.h <<_ACEOF
7964#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
7965_ACEOF
7966
7967
8690e634
JK
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
7969$as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
7970if test "${ac_cv_gnu_library_2_1+set}" = set; then :
7971 $as_echo_n "(cached) " >&6
7972else
7973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7974/* end confdefs.h. */
7975
7976#include <features.h>
7977#ifdef __GNU_LIBRARY__
7978 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7979 Lucky GNU user
7980 #endif
7981#endif
7982#ifdef __UCLIBC__
7983 Lucky user
7984#endif
7985
7986_ACEOF
7987if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7988 $EGREP "Lucky" >/dev/null 2>&1; then :
7989 ac_cv_gnu_library_2_1=yes
7990else
7991 ac_cv_gnu_library_2_1=no
7992fi
7993rm -f conftest*
7994
7995
7996
7997fi
7998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
7999$as_echo "$ac_cv_gnu_library_2_1" >&6; }
8000
8001 GLIBC21="$ac_cv_gnu_library_2_1"
8002
8003
8004
88b48903
WN
8005
8006
8690e634
JK
8007 GNULIB_BTOWC=0;
8008 GNULIB_WCTOB=0;
8009 GNULIB_MBSINIT=0;
8010 GNULIB_MBRTOWC=0;
8011 GNULIB_MBRLEN=0;
8012 GNULIB_MBSRTOWCS=0;
8013 GNULIB_MBSNRTOWCS=0;
8014 GNULIB_WCRTOMB=0;
8015 GNULIB_WCSRTOMBS=0;
8016 GNULIB_WCSNRTOMBS=0;
8017 GNULIB_WCWIDTH=0;
8018 GNULIB_WMEMCHR=0;
8019 GNULIB_WMEMCMP=0;
8020 GNULIB_WMEMCPY=0;
8021 GNULIB_WMEMMOVE=0;
8022 GNULIB_WMEMSET=0;
8023 GNULIB_WCSLEN=0;
8024 GNULIB_WCSNLEN=0;
8025 GNULIB_WCSCPY=0;
8026 GNULIB_WCPCPY=0;
8027 GNULIB_WCSNCPY=0;
8028 GNULIB_WCPNCPY=0;
8029 GNULIB_WCSCAT=0;
8030 GNULIB_WCSNCAT=0;
8031 GNULIB_WCSCMP=0;
8032 GNULIB_WCSNCMP=0;
8033 GNULIB_WCSCASECMP=0;
8034 GNULIB_WCSNCASECMP=0;
8035 GNULIB_WCSCOLL=0;
8036 GNULIB_WCSXFRM=0;
8037 GNULIB_WCSDUP=0;
8038 GNULIB_WCSCHR=0;
8039 GNULIB_WCSRCHR=0;
8040 GNULIB_WCSCSPN=0;
8041 GNULIB_WCSSPN=0;
8042 GNULIB_WCSPBRK=0;
8043 GNULIB_WCSSTR=0;
8044 GNULIB_WCSTOK=0;
8045 GNULIB_WCSWIDTH=0;
8046 HAVE_BTOWC=1;
8047 HAVE_MBSINIT=1;
8048 HAVE_MBRTOWC=1;
8049 HAVE_MBRLEN=1;
8050 HAVE_MBSRTOWCS=1;
8051 HAVE_MBSNRTOWCS=1;
8052 HAVE_WCRTOMB=1;
8053 HAVE_WCSRTOMBS=1;
8054 HAVE_WCSNRTOMBS=1;
8055 HAVE_WMEMCHR=1;
8056 HAVE_WMEMCMP=1;
8057 HAVE_WMEMCPY=1;
8058 HAVE_WMEMMOVE=1;
8059 HAVE_WMEMSET=1;
8060 HAVE_WCSLEN=1;
8061 HAVE_WCSNLEN=1;
8062 HAVE_WCSCPY=1;
8063 HAVE_WCPCPY=1;
8064 HAVE_WCSNCPY=1;
8065 HAVE_WCPNCPY=1;
8066 HAVE_WCSCAT=1;
8067 HAVE_WCSNCAT=1;
8068 HAVE_WCSCMP=1;
8069 HAVE_WCSNCMP=1;
8070 HAVE_WCSCASECMP=1;
8071 HAVE_WCSNCASECMP=1;
8072 HAVE_WCSCOLL=1;
8073 HAVE_WCSXFRM=1;
8074 HAVE_WCSDUP=1;
8075 HAVE_WCSCHR=1;
8076 HAVE_WCSRCHR=1;
8077 HAVE_WCSCSPN=1;
8078 HAVE_WCSSPN=1;
8079 HAVE_WCSPBRK=1;
8080 HAVE_WCSSTR=1;
8081 HAVE_WCSTOK=1;
8082 HAVE_WCSWIDTH=1;
8083 HAVE_DECL_WCTOB=1;
8084 HAVE_DECL_WCWIDTH=1;
8085 REPLACE_MBSTATE_T=0;
8086 REPLACE_BTOWC=0;
8087 REPLACE_WCTOB=0;
8088 REPLACE_MBSINIT=0;
8089 REPLACE_MBRTOWC=0;
8090 REPLACE_MBRLEN=0;
8091 REPLACE_MBSRTOWCS=0;
8092 REPLACE_MBSNRTOWCS=0;
8093 REPLACE_WCRTOMB=0;
8094 REPLACE_WCSRTOMBS=0;
8095 REPLACE_WCSNRTOMBS=0;
8096 REPLACE_WCWIDTH=0;
8097 REPLACE_WCSWIDTH=0;
8098
8099
8100
8101
8102
8103
8104
8105
8690e634
JK
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
8107$as_echo_n "checking for a traditional japanese locale... " >&6; }
8108if test "${gt_cv_locale_ja+set}" = set; then :
8109 $as_echo_n "(cached) " >&6
8110else
8111
8112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8113/* end confdefs.h. */
8114
8115#include <locale.h>
8116#include <time.h>
8117#if HAVE_LANGINFO_CODESET
8118# include <langinfo.h>
8119#endif
8120#include <stdlib.h>
8121#include <string.h>
8122struct tm t;
8123char buf[16];
8124int main ()
8125{
8126 const char *p;
8127 /* Check whether the given locale name is recognized by the system. */
8128#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
8129 /* On native Windows, setlocale(category, "") looks at the system settings,
8130 not at the environment variables. Also, when an encoding suffix such
8131 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
8132 category of the locale to "C". */
8133 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
8134 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
8135 return 1;
8136#else
8137 if (setlocale (LC_ALL, "") == NULL) return 1;
8138#endif
8139 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
8140 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
8141 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
8142 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
8143 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
8144 some unit tests fail.
8145 On MirBSD 10, when an unsupported locale is specified, setlocale()
8146 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
8147#if HAVE_LANGINFO_CODESET
8148 {
8149 const char *cs = nl_langinfo (CODESET);
8150 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
8151 || strcmp (cs, "UTF-8") == 0)
8152 return 1;
8153 }
8154#endif
8155#ifdef __CYGWIN__
8156 /* On Cygwin, avoid locale names without encoding suffix, because the
8157 locale_charset() function relies on the encoding suffix. Note that
8158 LC_ALL is set on the command line. */
8159 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
8160#endif
8161 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
8162 on Cygwin 1.5.x. */
8163 if (MB_CUR_MAX == 1)
8164 return 1;
8165 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
8166 This excludes the UTF-8 encoding (except on MirBSD). */
8167 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
8168 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
8169 for (p = buf; *p != '\0'; p++)
8170 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
8171 return 1;
8172 return 0;
8173}
8174
8175_ACEOF
8176 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8177 (eval $ac_link) 2>&5
8178 ac_status=$?
8179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8180 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8181 case "$host_os" in
8182 # Handle native Windows specially, because there setlocale() interprets
8183 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
8184 # "fr" or "fra" as "French" or "French_France.1252",
8185 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
8186 # "ja" as "Japanese" or "Japanese_Japan.932",
8187 # and similar.
8188 mingw*)
8189 # Note that on native Windows, the Japanese locale is
8190 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
8191 # cannot use it here.
8192 gt_cv_locale_ja=none
8193 ;;
8194 *)
8195 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
8196 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
8197 # configure script would override the LC_ALL setting. Likewise for
8198 # LC_CTYPE, which is also set at the beginning of the configure script.
8199 # Test for the AIX locale name.
8200 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8201 gt_cv_locale_ja=ja_JP
8202 else
8203 # Test for the locale name with explicit encoding suffix.
8204 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8205 gt_cv_locale_ja=ja_JP.EUC-JP
8206 else
8207 # Test for the HP-UX, OSF/1, NetBSD locale name.
8208 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8209 gt_cv_locale_ja=ja_JP.eucJP
8210 else
8211 # Test for the IRIX, FreeBSD locale name.
8212 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8213 gt_cv_locale_ja=ja_JP.EUC
8214 else
8215 # Test for the Solaris 7 locale name.
8216 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8217 gt_cv_locale_ja=ja
8218 else
8219 # Special test for NetBSD 1.6.
8220 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
8221 gt_cv_locale_ja=ja_JP.eucJP
8222 else
8223 # None found.
8224 gt_cv_locale_ja=none
8225 fi
8226 fi
8227 fi
8228 fi
8229 fi
8230 fi
8231 ;;
8232 esac
8233 fi
8234 rm -fr conftest*
8235
8236fi
8237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
8238$as_echo "$gt_cv_locale_ja" >&6; }
8239 LOCALE_JA=$gt_cv_locale_ja
8240
8241
8242
8243
8244
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
8246$as_echo_n "checking for a transitional chinese locale... " >&6; }
8247if test "${gt_cv_locale_zh_CN+set}" = set; then :
8248 $as_echo_n "(cached) " >&6
8249else
8250
8251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8252/* end confdefs.h. */
8253
8254#include <locale.h>
8255#include <stdlib.h>
8256#include <time.h>
8257#if HAVE_LANGINFO_CODESET
8258# include <langinfo.h>
8259#endif
8260#include <stdlib.h>
8261#include <string.h>
8262struct tm t;
8263char buf[16];
8264int main ()
8265{
8266 const char *p;
8267 /* Check whether the given locale name is recognized by the system. */
8268#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
8269 /* On native Windows, setlocale(category, "") looks at the system settings,
8270 not at the environment variables. Also, when an encoding suffix such
8271 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
8272 category of the locale to "C". */
8273 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
8274 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
8275 return 1;
8276#else
8277 if (setlocale (LC_ALL, "") == NULL) return 1;
8278#endif
8279 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
8280 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
8281 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
8282 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
8283 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
8284 some unit tests fail.
8285 On MirBSD 10, when an unsupported locale is specified, setlocale()
8286 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
8287#if HAVE_LANGINFO_CODESET
8288 {
8289 const char *cs = nl_langinfo (CODESET);
8290 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
8291 || strcmp (cs, "UTF-8") == 0)
8292 return 1;
8293 }
8294#endif
8295#ifdef __CYGWIN__
8296 /* On Cygwin, avoid locale names without encoding suffix, because the
8297 locale_charset() function relies on the encoding suffix. Note that
8298 LC_ALL is set on the command line. */
8299 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
8300#endif
8301 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
8302 This excludes the UTF-8 encoding (except on MirBSD). */
8303 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
8304 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
8305 for (p = buf; *p != '\0'; p++)
8306 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
8307 return 1;
8308 /* Check whether a typical GB18030 multibyte sequence is recognized as a
8309 single wide character. This excludes the GB2312 and GBK encodings. */
8310 if (mblen ("\203\062\332\066", 5) != 4)
8311 return 1;
8312 return 0;
8313}
8314
8315_ACEOF
8316 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8317 (eval $ac_link) 2>&5
8318 ac_status=$?
8319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8320 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8321 case "$host_os" in
8322 # Handle native Windows specially, because there setlocale() interprets
8323 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
8324 # "fr" or "fra" as "French" or "French_France.1252",
8325 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
8326 # "ja" as "Japanese" or "Japanese_Japan.932",
8327 # and similar.
8328 mingw*)
8329 # Test for the hypothetical native Windows locale name.
8330 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8331 gt_cv_locale_zh_CN=Chinese_China.54936
8332 else
8333 # None found.
8334 gt_cv_locale_zh_CN=none
8335 fi
8336 ;;
8337 solaris2.8)
8338 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
8339 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
8340 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
8341 gt_cv_locale_zh_CN=none
8342 ;;
8343 *)
8344 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
8345 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
8346 # configure script would override the LC_ALL setting. Likewise for
8347 # LC_CTYPE, which is also set at the beginning of the configure script.
8348 # Test for the locale name without encoding suffix.
8349 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8350 gt_cv_locale_zh_CN=zh_CN
8351 else
8352 # Test for the locale name with explicit encoding suffix.
8353 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8354 gt_cv_locale_zh_CN=zh_CN.GB18030
8355 else
8356 # None found.
8357 gt_cv_locale_zh_CN=none
8358 fi
8359 fi
8360 ;;
8361 esac
8362 else
8363 # If there was a link error, due to mblen(), the system is so old that
8364 # it certainly doesn't have a chinese locale.
8365 gt_cv_locale_zh_CN=none
8366 fi
8367 rm -fr conftest*
8368
8369fi
8370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
8371$as_echo "$gt_cv_locale_zh_CN" >&6; }
8372 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
8373
8374
8375
8376
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
8378$as_echo_n "checking for a french Unicode locale... " >&6; }
8379if test "${gt_cv_locale_fr_utf8+set}" = set; then :
8380 $as_echo_n "(cached) " >&6
8381else
8382
8383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8384/* end confdefs.h. */
8385
8386#include <locale.h>
8387#include <time.h>
8388#if HAVE_LANGINFO_CODESET
8389# include <langinfo.h>
8390#endif
8391#include <stdlib.h>
8392#include <string.h>
8393struct tm t;
8394char buf[16];
8395int main () {
8396 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
8397 imitates locale dependent behaviour by looking at the environment
8398 variables, and all locales use the UTF-8 encoding. */
8399#if !(defined __BEOS__ || defined __HAIKU__)
8400 /* Check whether the given locale name is recognized by the system. */
8401# if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
8402 /* On native Windows, setlocale(category, "") looks at the system settings,
8403 not at the environment variables. Also, when an encoding suffix such
8404 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
8405 category of the locale to "C". */
8406 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
8407 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
8408 return 1;
8409# else
8410 if (setlocale (LC_ALL, "") == NULL) return 1;
8411# endif
8412 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
8413 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
8414 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
8415 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
8416 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
8417 some unit tests fail. */
8418# if HAVE_LANGINFO_CODESET
8419 {
8420 const char *cs = nl_langinfo (CODESET);
8421 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
8422 return 1;
8423 }
8424# endif
8425# ifdef __CYGWIN__
8426 /* On Cygwin, avoid locale names without encoding suffix, because the
8427 locale_charset() function relies on the encoding suffix. Note that
8428 LC_ALL is set on the command line. */
8429 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
8430# endif
8431 /* Check whether in the abbreviation of the second month, the second
8432 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
8433 two bytes long, with UTF-8 encoding. */
8434 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
8435 if (strftime (buf, sizeof (buf), "%b", &t) < 4
8436 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
8437 return 1;
8438#endif
8439#if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
8440 /* Check whether the decimal separator is a comma.
8441 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
8442 are nl_langinfo(RADIXCHAR) are both ".". */
8443 if (localeconv () ->decimal_point[0] != ',') return 1;
8444#endif
8445 return 0;
8446}
8447
8448_ACEOF
8449 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8450 (eval $ac_link) 2>&5
8451 ac_status=$?
8452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8453 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8454 case "$host_os" in
8455 # Handle native Windows specially, because there setlocale() interprets
8456 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
8457 # "fr" or "fra" as "French" or "French_France.1252",
8458 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
8459 # "ja" as "Japanese" or "Japanese_Japan.932",
8460 # and similar.
8461 mingw*)
8462 # Test for the hypothetical native Windows locale name.
8463 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8464 gt_cv_locale_fr_utf8=French_France.65001
8465 else
8466 # None found.
8467 gt_cv_locale_fr_utf8=none
8468 fi
8469 ;;
8470 *)
8471 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
8472 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
8473 # configure script would override the LC_ALL setting. Likewise for
8474 # LC_CTYPE, which is also set at the beginning of the configure script.
8475 # Test for the usual locale name.
8476 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8477 gt_cv_locale_fr_utf8=fr_FR
8478 else
8479 # Test for the locale name with explicit encoding suffix.
8480 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8481 gt_cv_locale_fr_utf8=fr_FR.UTF-8
8482 else
8483 # Test for the Solaris 7 locale name.
8484 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8485 gt_cv_locale_fr_utf8=fr.UTF-8
8486 else
8487 # None found.
8488 gt_cv_locale_fr_utf8=none
8489 fi
8490 fi
8491 fi
8492 ;;
8493 esac
8494 fi
8495 rm -fr conftest*
8496
8497fi
8498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
8499$as_echo "$gt_cv_locale_fr_utf8" >&6; }
8500 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
8501
8502
8503
8504
8505
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
8507$as_echo_n "checking for a traditional french locale... " >&6; }
8508if test "${gt_cv_locale_fr+set}" = set; then :
8509 $as_echo_n "(cached) " >&6
8510else
8511
8512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8513/* end confdefs.h. */
8514
8515#include <locale.h>
8516#include <time.h>
8517#if HAVE_LANGINFO_CODESET
8518# include <langinfo.h>
8519#endif
8520#include <stdlib.h>
8521#include <string.h>
8522struct tm t;
8523char buf[16];
8524int main () {
8525 /* Check whether the given locale name is recognized by the system. */
8526#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
8527 /* On native Windows, setlocale(category, "") looks at the system settings,
8528 not at the environment variables. Also, when an encoding suffix such
8529 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
8530 category of the locale to "C". */
8531 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
8532 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
8533 return 1;
8534#else
8535 if (setlocale (LC_ALL, "") == NULL) return 1;
8536#endif
8537 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
8538 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
8539 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
8540 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
8541 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
8542 some unit tests fail.
8543 On MirBSD 10, when an unsupported locale is specified, setlocale()
8544 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
8545#if HAVE_LANGINFO_CODESET
8546 {
8547 const char *cs = nl_langinfo (CODESET);
8548 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
8549 || strcmp (cs, "UTF-8") == 0)
8550 return 1;
8551 }
8552#endif
8553#ifdef __CYGWIN__
8554 /* On Cygwin, avoid locale names without encoding suffix, because the
8555 locale_charset() function relies on the encoding suffix. Note that
8556 LC_ALL is set on the command line. */
8557 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
8558#endif
8559 /* Check whether in the abbreviation of the second month, the second
8560 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
8561 one byte long. This excludes the UTF-8 encoding. */
8562 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
8563 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
8564#if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
8565 /* Check whether the decimal separator is a comma.
8566 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
8567 are nl_langinfo(RADIXCHAR) are both ".". */
8568 if (localeconv () ->decimal_point[0] != ',') return 1;
8569#endif
8570 return 0;
8571}
8572
8573_ACEOF
8574 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8575 (eval $ac_link) 2>&5
8576 ac_status=$?
8577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8578 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8579 case "$host_os" in
8580 # Handle native Windows specially, because there setlocale() interprets
8581 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
8582 # "fr" or "fra" as "French" or "French_France.1252",
8583 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
8584 # "ja" as "Japanese" or "Japanese_Japan.932",
8585 # and similar.
8586 mingw*)
8587 # Test for the native Windows locale name.
8588 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8589 gt_cv_locale_fr=French_France.1252
8590 else
8591 # None found.
8592 gt_cv_locale_fr=none
8593 fi
8594 ;;
8595 *)
8596 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
8597 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
8598 # configure script would override the LC_ALL setting. Likewise for
8599 # LC_CTYPE, which is also set at the beginning of the configure script.
8600 # Test for the usual locale name.
8601 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8602 gt_cv_locale_fr=fr_FR
8603 else
8604 # Test for the locale name with explicit encoding suffix.
8605 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8606 gt_cv_locale_fr=fr_FR.ISO-8859-1
8607 else
8608 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
8609 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8610 gt_cv_locale_fr=fr_FR.ISO8859-1
8611 else
8612 # Test for the HP-UX locale name.
8613 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8614 gt_cv_locale_fr=fr_FR.iso88591
8615 else
8616 # Test for the Solaris 7 locale name.
8617 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8618 gt_cv_locale_fr=fr
8619 else
8620 # None found.
8621 gt_cv_locale_fr=none
8622 fi
8623 fi
8624 fi
8625 fi
8626 fi
8627 ;;
8628 esac
8629 fi
8630 rm -fr conftest*
8631
8632fi
8633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
8634$as_echo "$gt_cv_locale_fr" >&6; }
8635 LOCALE_FR=$gt_cv_locale_fr
8636
8637
8638
8639
8640
8641
8642
8690e634
JK
8643 GNULIB_FFSL=0;
8644 GNULIB_FFSLL=0;
8645 GNULIB_MEMCHR=0;
8646 GNULIB_MEMMEM=0;
8647 GNULIB_MEMPCPY=0;
8648 GNULIB_MEMRCHR=0;
8649 GNULIB_RAWMEMCHR=0;
8650 GNULIB_STPCPY=0;
8651 GNULIB_STPNCPY=0;
8652 GNULIB_STRCHRNUL=0;
8653 GNULIB_STRDUP=0;
8654 GNULIB_STRNCAT=0;
8655 GNULIB_STRNDUP=0;
8656 GNULIB_STRNLEN=0;
8657 GNULIB_STRPBRK=0;
8658 GNULIB_STRSEP=0;
8659 GNULIB_STRSTR=0;
8660 GNULIB_STRCASESTR=0;
8661 GNULIB_STRTOK_R=0;
8662 GNULIB_MBSLEN=0;
8663 GNULIB_MBSNLEN=0;
8664 GNULIB_MBSCHR=0;
8665 GNULIB_MBSRCHR=0;
8666 GNULIB_MBSSTR=0;
8667 GNULIB_MBSCASECMP=0;
8668 GNULIB_MBSNCASECMP=0;
8669 GNULIB_MBSPCASECMP=0;
8670 GNULIB_MBSCASESTR=0;
8671 GNULIB_MBSCSPN=0;
8672 GNULIB_MBSPBRK=0;
8673 GNULIB_MBSSPN=0;
8674 GNULIB_MBSSEP=0;
8675 GNULIB_MBSTOK_R=0;
8676 GNULIB_STRERROR=0;
8677 GNULIB_STRERROR_R=0;
8678 GNULIB_STRSIGNAL=0;
8679 GNULIB_STRVERSCMP=0;
8680 HAVE_MBSLEN=0;
8681 HAVE_FFSL=1;
8682 HAVE_FFSLL=1;
8683 HAVE_MEMCHR=1;
8684 HAVE_DECL_MEMMEM=1;
8685 HAVE_MEMPCPY=1;
8686 HAVE_DECL_MEMRCHR=1;
8687 HAVE_RAWMEMCHR=1;
8688 HAVE_STPCPY=1;
8689 HAVE_STPNCPY=1;
8690 HAVE_STRCHRNUL=1;
8691 HAVE_DECL_STRDUP=1;
8692 HAVE_DECL_STRNDUP=1;
8693 HAVE_DECL_STRNLEN=1;
8694 HAVE_STRPBRK=1;
8695 HAVE_STRSEP=1;
8696 HAVE_STRCASESTR=1;
8697 HAVE_DECL_STRTOK_R=1;
8698 HAVE_DECL_STRERROR_R=1;
8699 HAVE_DECL_STRSIGNAL=1;
8700 HAVE_STRVERSCMP=1;
8701 REPLACE_MEMCHR=0;
8702 REPLACE_MEMMEM=0;
8703 REPLACE_STPNCPY=0;
8704 REPLACE_STRDUP=0;
8705 REPLACE_STRSTR=0;
8706 REPLACE_STRCASESTR=0;
8707 REPLACE_STRCHRNUL=0;
8708 REPLACE_STRERROR=0;
8709 REPLACE_STRERROR_R=0;
8710 REPLACE_STRNCAT=0;
8711 REPLACE_STRNDUP=0;
8712 REPLACE_STRNLEN=0;
8713 REPLACE_STRSIGNAL=0;
8714 REPLACE_STRTOK_R=0;
8715 UNDEFINE_STRTOK_R=0;
8716
8717
8718
8719
8720
8721 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
8722 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
8723 # irrelevant for anonymous mappings.
8724 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
8725if test "x$ac_cv_func_mmap" = x""yes; then :
8726 gl_have_mmap=yes
8727else
8728 gl_have_mmap=no
8729fi
8730
8731
8732 # Try to allow MAP_ANONYMOUS.
8733 gl_have_mmap_anonymous=no
8734 if test $gl_have_mmap = yes; then
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
8736$as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
8737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8738/* end confdefs.h. */
8739
8740#include <sys/mman.h>
8741#ifdef MAP_ANONYMOUS
8742 I cannot identify this map
8743#endif
8744
8745_ACEOF
8746if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8747 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
8748 gl_have_mmap_anonymous=yes
8749fi
8750rm -f conftest*
8751
8752 if test $gl_have_mmap_anonymous != yes; then
8753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8754/* end confdefs.h. */
8755
8756#include <sys/mman.h>
8757#ifdef MAP_ANON
8758 I cannot identify this map
8759#endif
8760
8761_ACEOF
8762if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8763 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
8764
8765$as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
8766
8767 gl_have_mmap_anonymous=yes
8768fi
8769rm -f conftest*
8770
8771 fi
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
8773$as_echo "$gl_have_mmap_anonymous" >&6; }
8774 if test $gl_have_mmap_anonymous = yes; then
8775
8776$as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
8777
8778 fi
8779 fi
8780
8781
8690e634
JK
8782
8783
8784
8785
8786 if test $HAVE_MEMCHR = 1; then
8787 # Detect platform-specific bugs in some versions of glibc:
8788 # memchr should not dereference anything with length 0
8789 # http://bugzilla.redhat.com/499689
8790 # memchr should not dereference overestimated length after a match
8791 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
8792 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
8793 # Assume that memchr works on platforms that lack mprotect.
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
8795$as_echo_n "checking whether memchr works... " >&6; }
8796if test "${gl_cv_func_memchr_works+set}" = set; then :
8797 $as_echo_n "(cached) " >&6
8798else
8799 if test "$cross_compiling" = yes; then :
8800 gl_cv_func_memchr_works="guessing no"
8801else
8802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8803/* end confdefs.h. */
8804
8805#include <string.h>
8806#if HAVE_SYS_MMAN_H
8807# include <fcntl.h>
8808# include <unistd.h>
8809# include <sys/types.h>
8810# include <sys/mman.h>
8811# ifndef MAP_FILE
8812# define MAP_FILE 0
8813# endif
8814#endif
8815
8816int
8817main ()
8818{
8819
8820 int result = 0;
8821 char *fence = NULL;
8822#if HAVE_SYS_MMAN_H && HAVE_MPROTECT
8823# if HAVE_MAP_ANONYMOUS
8824 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
8825 const int fd = -1;
8826# else /* !HAVE_MAP_ANONYMOUS */
8827 const int flags = MAP_FILE | MAP_PRIVATE;
8828 int fd = open ("/dev/zero", O_RDONLY, 0666);
8829 if (fd >= 0)
8830# endif
8831 {
8832 int pagesize = getpagesize ();
8833 char *two_pages =
8834 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
8835 flags, fd, 0);
8836 if (two_pages != (char *)(-1)
8837 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
8838 fence = two_pages + pagesize;
8839 }
8840#endif
8841 if (fence)
8842 {
8843 if (memchr (fence, 0, 0))
8844 result |= 1;
8845 strcpy (fence - 9, "12345678");
8846 if (memchr (fence - 9, 0, 79) != fence - 1)
8847 result |= 2;
8848 if (memchr (fence - 1, 0, 3) != fence - 1)
8849 result |= 4;
8850 }
8851 return result;
8852
8853 ;
8854 return 0;
8855}
8856_ACEOF
8857if ac_fn_c_try_run "$LINENO"; then :
8858 gl_cv_func_memchr_works=yes
8859else
8860 gl_cv_func_memchr_works=no
8861fi
8862rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8863 conftest.$ac_objext conftest.beam conftest.$ac_ext
8864fi
8865
8866fi
8867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
8868$as_echo "$gl_cv_func_memchr_works" >&6; }
8869 if test "$gl_cv_func_memchr_works" != yes; then
8870 REPLACE_MEMCHR=1
8871 fi
8872 fi
8873
3574124b 8874ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
8690e634
JK
8875if test "x$ac_cv_have_decl_memmem" = x""yes; then :
8876 ac_have_decl=1
8877else
8878 ac_have_decl=0
8879fi
8880
8881cat >>confdefs.h <<_ACEOF
8882#define HAVE_DECL_MEMMEM $ac_have_decl
8883_ACEOF
8884
8885
8886
8887
8888
8690e634
JK
8889 for ac_func in memmem
8890do :
8891 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
8892if test "x$ac_cv_func_memmem" = x""yes; then :
8893 cat >>confdefs.h <<_ACEOF
8894#define HAVE_MEMMEM 1
8895_ACEOF
8896
8897fi
8898done
8899
8900 if test $ac_cv_func_memmem = yes; then
8901 HAVE_MEMMEM=1
8902 else
8903 HAVE_MEMMEM=0
8904 fi
8905
8690e634
JK
8906 if test $ac_cv_have_decl_memmem = no; then
8907 HAVE_DECL_MEMMEM=0
8908 else
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
8910$as_echo_n "checking whether memmem works... " >&6; }
8911if test "${gl_cv_func_memmem_works_always+set}" = set; then :
8912 $as_echo_n "(cached) " >&6
8913else
8914 if test "$cross_compiling" = yes; then :
8915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8916/* end confdefs.h. */
8917
8918#ifdef __GNU_LIBRARY__
8919 #include <features.h>
8920 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
8921 || __GLIBC_MINOR__ > 12)) \
8922 || (__GLIBC__ > 2)) \
8923 || defined __UCLIBC__
8924 Lucky user
8925 #endif
8926#elif defined __CYGWIN__
8927 #include <cygwin/version.h>
8928 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
8929 Lucky user
8930 #endif
8931#else
8932 Lucky user
8933#endif
8934
8935_ACEOF
8936if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8937 $EGREP "Lucky user" >/dev/null 2>&1; then :
8938 gl_cv_func_memmem_works_always="guessing yes"
8939else
8940 gl_cv_func_memmem_works_always="guessing no"
8941fi
8942rm -f conftest*
8943
8944
8945else
8946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8947/* end confdefs.h. */
8948
8949#include <string.h> /* for memmem */
8950#define P "_EF_BF_BD"
8951#define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
8952#define NEEDLE P P P P P
8953
8954int
8955main ()
8956{
8957
8958 int result = 0;
8959 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
8960 result |= 1;
8961 /* Check for empty needle behavior. */
8962 {
8963 const char *haystack = "AAA";
8964 if (memmem (haystack, 3, NULL, 0) != haystack)
8965 result |= 2;
8966 }
8967 return result;
8968
8969 ;
8970 return 0;
8971}
8972_ACEOF
8973if ac_fn_c_try_run "$LINENO"; then :
8974 gl_cv_func_memmem_works_always=yes
8975else
8976 gl_cv_func_memmem_works_always=no
8977fi
8978rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8979 conftest.$ac_objext conftest.beam conftest.$ac_ext
8980fi
8981
8982
8983fi
8984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
8985$as_echo "$gl_cv_func_memmem_works_always" >&6; }
8986 case "$gl_cv_func_memmem_works_always" in
8987 *yes) ;;
8988 *)
8989 REPLACE_MEMMEM=1
8990 ;;
8991 esac
8992 fi
8993 :
8994
38ec2207
PA
8995
8996
8690e634
JK
8997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
8998$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
8999if test "${ac_cv_header_stdbool_h+set}" = set; then :
9000 $as_echo_n "(cached) " >&6
9001else
9002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9003/* end confdefs.h. */
9004
9005 #include <stdbool.h>
9006 #ifndef bool
9007 "error: bool is not defined"
9008 #endif
9009 #ifndef false
9010 "error: false is not defined"
9011 #endif
9012 #if false
9013 "error: false is not 0"
9014 #endif
9015 #ifndef true
9016 "error: true is not defined"
9017 #endif
9018 #if true != 1
9019 "error: true is not 1"
9020 #endif
9021 #ifndef __bool_true_false_are_defined
9022 "error: __bool_true_false_are_defined is not defined"
9023 #endif
9024
9025 struct s { _Bool s: 1; _Bool t; } s;
9026
9027 char a[true == 1 ? 1 : -1];
9028 char b[false == 0 ? 1 : -1];
9029 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
9030 char d[(bool) 0.5 == true ? 1 : -1];
9031 /* See body of main program for 'e'. */
9032 char f[(_Bool) 0.0 == false ? 1 : -1];
9033 char g[true];
9034 char h[sizeof (_Bool)];
9035 char i[sizeof s.t];
9036 enum { j = false, k = true, l = false * true, m = true * 256 };
9037 /* The following fails for
9038 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
9039 _Bool n[m];
9040 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
9041 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
9042 /* Catch a bug in an HP-UX C compiler. See
9043 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
9044 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
9045 */
9046 _Bool q = true;
9047 _Bool *pq = &q;
9048
9049int
9050main ()
9051{
9052
9053 bool e = &s;
9054 *pq |= q;
9055 *pq |= ! q;
9056 /* Refer to every declared value, to avoid compiler optimizations. */
9057 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
9058 + !m + !n + !o + !p + !q + !pq);
9059
9060 ;
9061 return 0;
9062}
9063_ACEOF
9064if ac_fn_c_try_compile "$LINENO"; then :
9065 ac_cv_header_stdbool_h=yes
9066else
9067 ac_cv_header_stdbool_h=no
9068fi
9069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9070fi
9071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
9072$as_echo "$ac_cv_header_stdbool_h" >&6; }
9073 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
9074if test "x$ac_cv_type__Bool" = x""yes; then :
9075
9076cat >>confdefs.h <<_ACEOF
9077#define HAVE__BOOL 1
9078_ACEOF
9079
9080
9081fi
9082
9083
9084
9085 REPLACE_NULL=0;
9086 HAVE_WCHAR_T=1;
9087
9088
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9090$as_echo_n "checking for wchar_t... " >&6; }
9091if test "${gt_cv_c_wchar_t+set}" = set; then :
9092 $as_echo_n "(cached) " >&6
9093else
9094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9095/* end confdefs.h. */
9096#include <stddef.h>
9097 wchar_t foo = (wchar_t)'\0';
9098int
9099main ()
9100{
9101
9102 ;
9103 return 0;
9104}
9105_ACEOF
9106if ac_fn_c_try_compile "$LINENO"; then :
9107 gt_cv_c_wchar_t=yes
9108else
9109 gt_cv_c_wchar_t=no
9110fi
9111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9112fi
9113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9114$as_echo "$gt_cv_c_wchar_t" >&6; }
9115 if test $gt_cv_c_wchar_t = yes; then
9116
9117$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
9118
9119 fi
9120
9121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
9122$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
9123if test "${ac_cv_c_restrict+set}" = set; then :
9124 $as_echo_n "(cached) " >&6
9125else
9126 ac_cv_c_restrict=no
9127 # The order here caters to the fact that C++ does not require restrict.
9128 for ac_kw in __restrict __restrict__ _Restrict restrict; do
9129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9130/* end confdefs.h. */
9131typedef int * int_ptr;
9132 int foo (int_ptr $ac_kw ip) {
9133 return ip[0];
9134 }
9135int
9136main ()
9137{
9138int s[1];
9139 int * $ac_kw t = s;
9140 t[0] = 0;
9141 return foo(t)
9142 ;
9143 return 0;
9144}
9145_ACEOF
9146if ac_fn_c_try_compile "$LINENO"; then :
9147 ac_cv_c_restrict=$ac_kw
9148fi
9149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9150 test "$ac_cv_c_restrict" != no && break
9151 done
9152
9153fi
9154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
9155$as_echo "$ac_cv_c_restrict" >&6; }
9156
9157 case $ac_cv_c_restrict in
9158 restrict) ;;
9159 no) $as_echo "#define restrict /**/" >>confdefs.h
9160 ;;
9161 *) cat >>confdefs.h <<_ACEOF
9162#define restrict $ac_cv_c_restrict
9163_ACEOF
9164 ;;
9165 esac
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178 if test $gl_cv_have_include_next = yes; then
9179 gl_cv_next_string_h='<'string.h'>'
9180 else
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
9182$as_echo_n "checking absolute name of <string.h>... " >&6; }
9183if test "${gl_cv_next_string_h+set}" = set; then :
9184 $as_echo_n "(cached) " >&6
9185else
9186
9187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9188/* end confdefs.h. */
9189#include <string.h>
9190
9191_ACEOF
9192 case "$host_os" in
9193 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9194 *) gl_absname_cpp="$ac_cpp" ;;
9195 esac
9196
9197 case "$host_os" in
c971b7fa
PA
9198 mingw*)
9199 gl_dirsep_regex='[/\\]'
9200 ;;
9201 *)
9202 gl_dirsep_regex='\/'
9203 ;;
9204 esac
9205 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9206
8690e634
JK
9207 gl_header_literal_regex=`echo 'string.h' \
9208 | sed -e "$gl_make_literal_regex_sed"`
9209 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9210 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9211 s|^/[^/]|//&|
9212 p
9213 q
9214 }'
9215 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9216 sed -n "$gl_absolute_header_sed"`'"'
9217
9218
9219fi
9220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
9221$as_echo "$gl_cv_next_string_h" >&6; }
9222 fi
9223 NEXT_STRING_H=$gl_cv_next_string_h
9224
9225 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9226 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9227 gl_next_as_first_directive='<'string.h'>'
9228 else
9229 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9230 gl_next_as_first_directive=$gl_cv_next_string_h
9231 fi
9232 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
9233
9234
9235
9236
9237
9238
9239 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
9240 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
9242$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
9243if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
9244 $as_echo_n "(cached) " >&6
9245else
9246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9247/* end confdefs.h. */
9248#include <string.h>
9249
9250int
9251main ()
9252{
9253#undef $gl_func
9254 (void) $gl_func;
9255 ;
9256 return 0;
9257}
9258_ACEOF
9259if ac_fn_c_try_compile "$LINENO"; then :
9260 eval "$as_gl_Symbol=yes"
9261else
9262 eval "$as_gl_Symbol=no"
9263fi
9264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9265fi
9266eval ac_res=\$$as_gl_Symbol
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9268$as_echo "$ac_res" >&6; }
9269 eval as_val=\$$as_gl_Symbol
9270 if test "x$as_val" = x""yes; then :
9271 cat >>confdefs.h <<_ACEOF
9272#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
9273_ACEOF
9274
9275 eval ac_cv_have_decl_$gl_func=yes
9276fi
9277 done
9278
9279
9280
8839a007
PA
9281
9282ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9283if test "x$ac_cv_type_pid_t" = x""yes; then :
9284
9285else
9286
9287cat >>confdefs.h <<_ACEOF
9288#define pid_t int
9289_ACEOF
9290
9291fi
9292
9293ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
9294if test "x$ac_cv_type_mode_t" = x""yes; then :
9295
9296else
9297
9298cat >>confdefs.h <<_ACEOF
9299#define mode_t int
9300_ACEOF
9301
9302fi
9303
9304
9305
9306 WINDOWS_64_BIT_OFF_T=0
9307
9308
9309
9310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
9311$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
9312if test -z "$MKDIR_P"; then
9313 if test "${ac_cv_path_mkdir+set}" = set; then :
9314 $as_echo_n "(cached) " >&6
9315else
9316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9317for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
9318do
9319 IFS=$as_save_IFS
9320 test -z "$as_dir" && as_dir=.
9321 for ac_prog in mkdir gmkdir; do
9322 for ac_exec_ext in '' $ac_executable_extensions; do
9323 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
9324 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
9325 'mkdir (GNU coreutils) '* | \
9326 'mkdir (coreutils) '* | \
9327 'mkdir (fileutils) '4.1*)
9328 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
9329 break 3;;
9330 esac
9331 done
9332 done
9333 done
9334IFS=$as_save_IFS
9335
9336fi
9337
9338 if test "${ac_cv_path_mkdir+set}" = set; then
9339 MKDIR_P="$ac_cv_path_mkdir -p"
9340 else
9341 # As a last resort, use the slow shell script. Don't cache a
9342 # value for MKDIR_P within a source directory, because that will
9343 # break other packages using the cache if that directory is
9344 # removed, or if the value is a relative name.
9345 test -d ./--version && rmdir ./--version
9346 MKDIR_P="$ac_install_sh -d"
9347 fi
9348fi
9349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
9350$as_echo "$MKDIR_P" >&6; }
9351
9352
9353 GNULIB_CHDIR=0;
9354 GNULIB_CHOWN=0;
9355 GNULIB_CLOSE=0;
9356 GNULIB_DUP=0;
9357 GNULIB_DUP2=0;
9358 GNULIB_DUP3=0;
9359 GNULIB_ENVIRON=0;
9360 GNULIB_EUIDACCESS=0;
9361 GNULIB_FACCESSAT=0;
9362 GNULIB_FCHDIR=0;
9363 GNULIB_FCHOWNAT=0;
9364 GNULIB_FDATASYNC=0;
9365 GNULIB_FSYNC=0;
9366 GNULIB_FTRUNCATE=0;
9367 GNULIB_GETCWD=0;
9368 GNULIB_GETDOMAINNAME=0;
9369 GNULIB_GETDTABLESIZE=0;
9370 GNULIB_GETGROUPS=0;
9371 GNULIB_GETHOSTNAME=0;
9372 GNULIB_GETLOGIN=0;
9373 GNULIB_GETLOGIN_R=0;
9374 GNULIB_GETPAGESIZE=0;
9375 GNULIB_GETUSERSHELL=0;
9376 GNULIB_GROUP_MEMBER=0;
9377 GNULIB_ISATTY=0;
9378 GNULIB_LCHOWN=0;
9379 GNULIB_LINK=0;
9380 GNULIB_LINKAT=0;
9381 GNULIB_LSEEK=0;
9382 GNULIB_PIPE=0;
9383 GNULIB_PIPE2=0;
9384 GNULIB_PREAD=0;
9385 GNULIB_PWRITE=0;
9386 GNULIB_READ=0;
9387 GNULIB_READLINK=0;
9388 GNULIB_READLINKAT=0;
9389 GNULIB_RMDIR=0;
9390 GNULIB_SETHOSTNAME=0;
9391 GNULIB_SLEEP=0;
9392 GNULIB_SYMLINK=0;
9393 GNULIB_SYMLINKAT=0;
9394 GNULIB_TTYNAME_R=0;
9395 GNULIB_UNISTD_H_NONBLOCKING=0;
9396 GNULIB_UNISTD_H_SIGPIPE=0;
9397 GNULIB_UNLINK=0;
9398 GNULIB_UNLINKAT=0;
9399 GNULIB_USLEEP=0;
9400 GNULIB_WRITE=0;
9401 HAVE_CHOWN=1;
9402 HAVE_DUP2=1;
9403 HAVE_DUP3=1;
9404 HAVE_EUIDACCESS=1;
9405 HAVE_FACCESSAT=1;
9406 HAVE_FCHDIR=1;
9407 HAVE_FCHOWNAT=1;
9408 HAVE_FDATASYNC=1;
9409 HAVE_FSYNC=1;
9410 HAVE_FTRUNCATE=1;
9411 HAVE_GETDTABLESIZE=1;
9412 HAVE_GETGROUPS=1;
9413 HAVE_GETHOSTNAME=1;
9414 HAVE_GETLOGIN=1;
9415 HAVE_GETPAGESIZE=1;
9416 HAVE_GROUP_MEMBER=1;
9417 HAVE_LCHOWN=1;
9418 HAVE_LINK=1;
9419 HAVE_LINKAT=1;
9420 HAVE_PIPE=1;
9421 HAVE_PIPE2=1;
9422 HAVE_PREAD=1;
9423 HAVE_PWRITE=1;
9424 HAVE_READLINK=1;
9425 HAVE_READLINKAT=1;
9426 HAVE_SETHOSTNAME=1;
9427 HAVE_SLEEP=1;
9428 HAVE_SYMLINK=1;
9429 HAVE_SYMLINKAT=1;
9430 HAVE_UNLINKAT=1;
9431 HAVE_USLEEP=1;
9432 HAVE_DECL_ENVIRON=1;
9433 HAVE_DECL_FCHDIR=1;
9434 HAVE_DECL_FDATASYNC=1;
9435 HAVE_DECL_GETDOMAINNAME=1;
9436 HAVE_DECL_GETLOGIN_R=1;
9437 HAVE_DECL_GETPAGESIZE=1;
9438 HAVE_DECL_GETUSERSHELL=1;
9439 HAVE_DECL_SETHOSTNAME=1;
9440 HAVE_DECL_TTYNAME_R=1;
9441 HAVE_OS_H=0;
9442 HAVE_SYS_PARAM_H=0;
9443 REPLACE_CHOWN=0;
9444 REPLACE_CLOSE=0;
9445 REPLACE_DUP=0;
9446 REPLACE_DUP2=0;
9447 REPLACE_FCHOWNAT=0;
9448 REPLACE_FTRUNCATE=0;
9449 REPLACE_GETCWD=0;
9450 REPLACE_GETDOMAINNAME=0;
9451 REPLACE_GETLOGIN_R=0;
9452 REPLACE_GETGROUPS=0;
9453 REPLACE_GETPAGESIZE=0;
9454 REPLACE_ISATTY=0;
9455 REPLACE_LCHOWN=0;
9456 REPLACE_LINK=0;
9457 REPLACE_LINKAT=0;
9458 REPLACE_LSEEK=0;
9459 REPLACE_PREAD=0;
9460 REPLACE_PWRITE=0;
9461 REPLACE_READ=0;
9462 REPLACE_READLINK=0;
9463 REPLACE_RMDIR=0;
9464 REPLACE_SLEEP=0;
9465 REPLACE_SYMLINK=0;
9466 REPLACE_TTYNAME_R=0;
9467 REPLACE_UNLINK=0;
9468 REPLACE_UNLINKAT=0;
9469 REPLACE_USLEEP=0;
9470 REPLACE_WRITE=0;
9471 UNISTD_H_HAVE_WINSOCK2_H=0;
9472 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
9473
9474
9475
8690e634
JK
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
9477$as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
9478if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
9479 $as_echo_n "(cached) " >&6
9480else
9481 gl_cv_header_wchar_h_correct_inline=yes
9482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9483/* end confdefs.h. */
9484
9485 #define wcstod renamed_wcstod
9486/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9487 <wchar.h>.
9488 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9489 included before <wchar.h>. */
9490#include <stddef.h>
9491#include <stdio.h>
9492#include <time.h>
9493#include <wchar.h>
9494extern int zero (void);
9495int main () { return zero(); }
9496
9497_ACEOF
9498 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9499 (eval $ac_compile) 2>&5
9500 ac_status=$?
9501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9502 test $ac_status = 0; }; then
9503 mv conftest.$ac_objext conftest1.$ac_objext
9504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9505/* end confdefs.h. */
9506
9507 #define wcstod renamed_wcstod
9508/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9509 <wchar.h>.
9510 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9511 included before <wchar.h>. */
9512#include <stddef.h>
9513#include <stdio.h>
9514#include <time.h>
9515#include <wchar.h>
9516int zero (void) { return 0; }
9517
9518_ACEOF
9519 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9520 (eval $ac_compile) 2>&5
9521 ac_status=$?
9522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9523 test $ac_status = 0; }; then
9524 mv conftest.$ac_objext conftest2.$ac_objext
9525 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
9526 :
9527 else
9528 gl_cv_header_wchar_h_correct_inline=no
9529 fi
9530 fi
9531 fi
9532 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
9533
9534fi
9535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
9536$as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
9537 if test $gl_cv_header_wchar_h_correct_inline = no; then
9538 as_fn_error "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
9539This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
9540C99 mode. You have four options:
9541 - Add the flag -fgnu89-inline to CC and reconfigure, or
9542 - Fix your include files, using parts of
9543 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
9544 - Use a gcc version older than 4.3, or
9545 - Don't use the flags -std=c99 or -std=gnu99.
9546Configuration aborted." "$LINENO" 5
9547 fi
9548
9549
9550
9551
9552
8690e634
JK
9553 if test $ac_cv_header_features_h = yes; then
9554 HAVE_FEATURES_H=1
9555 else
9556 HAVE_FEATURES_H=0
9557 fi
9558
9559
9560
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
9562$as_echo_n "checking for wint_t... " >&6; }
9563if test "${gt_cv_c_wint_t+set}" = set; then :
9564 $as_echo_n "(cached) " >&6
9565else
9566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9567/* end confdefs.h. */
9568
9569/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9570 <wchar.h>.
9571 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
9572 before <wchar.h>. */
9573#include <stddef.h>
9574#include <stdio.h>
9575#include <time.h>
9576#include <wchar.h>
9577 wint_t foo = (wchar_t)'\0';
9578int
9579main ()
9580{
9581
9582 ;
9583 return 0;
9584}
9585_ACEOF
9586if ac_fn_c_try_compile "$LINENO"; then :
9587 gt_cv_c_wint_t=yes
9588else
9589 gt_cv_c_wint_t=no
9590fi
9591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9592fi
9593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
9594$as_echo "$gt_cv_c_wint_t" >&6; }
9595 if test $gt_cv_c_wint_t = yes; then
9596
9597$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
9598
9599 fi
9600
9601
9602 GNULIB_ISWBLANK=0;
9603 GNULIB_WCTYPE=0;
9604 GNULIB_ISWCTYPE=0;
9605 GNULIB_WCTRANS=0;
9606 GNULIB_TOWCTRANS=0;
9607 HAVE_ISWBLANK=1;
9608 HAVE_WCTYPE_T=1;
9609 HAVE_WCTRANS_T=1;
9610 REPLACE_ISWBLANK=0;
9611
9612
9613
9614
8690e634
JK
9615 if false; then
9616 GL_COND_LIBTOOL_TRUE=
9617 GL_COND_LIBTOOL_FALSE='#'
9618else
9619 GL_COND_LIBTOOL_TRUE='#'
9620 GL_COND_LIBTOOL_FALSE=
9621fi
9622
9623 gl_cond_libtool=false
9624 gl_libdeps=
9625 gl_ltlibdeps=
9626 gl_m4_base='import/m4'
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636 gl_source_base='import'
9637
9638
9639 if test $ac_cv_func_alloca_works = no; then
9640 :
9641 fi
9642
9643 # Define an additional variable used in the Makefile substitution.
9644 if test $ac_cv_working_alloca_h = yes; then
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
9646$as_echo_n "checking for alloca as a compiler built-in... " >&6; }
9647if test "${gl_cv_rpl_alloca+set}" = set; then :
9648 $as_echo_n "(cached) " >&6
9649else
9650
9651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9652/* end confdefs.h. */
9653
9654#if defined __GNUC__ || defined _AIX || defined _MSC_VER
9655 Need own alloca
9656#endif
9657
9658_ACEOF
9659if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9660 $EGREP "Need own alloca" >/dev/null 2>&1; then :
9661 gl_cv_rpl_alloca=yes
9662else
9663 gl_cv_rpl_alloca=no
9664fi
9665rm -f conftest*
9666
9667
9668fi
9669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
9670$as_echo "$gl_cv_rpl_alloca" >&6; }
9671 if test $gl_cv_rpl_alloca = yes; then
9672
9673$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
9674
9675 ALLOCA_H=alloca.h
9676 else
9677 ALLOCA_H=
9678 fi
9679 else
9680 ALLOCA_H=alloca.h
9681 fi
9682
9683 if test -n "$ALLOCA_H"; then
9684 GL_GENERATE_ALLOCA_H_TRUE=
9685 GL_GENERATE_ALLOCA_H_FALSE='#'
9686else
9687 GL_GENERATE_ALLOCA_H_TRUE='#'
9688 GL_GENERATE_ALLOCA_H_FALSE=
9689fi
9690
9691
9692
9693 if test "x$datarootdir" = x; then
9694 datarootdir='${datadir}'
9695
9696 fi
9697 if test "x$docdir" = x; then
9698 docdir='${datarootdir}/doc/${PACKAGE}'
9699
9700 fi
9701 if test "x$htmldir" = x; then
9702 htmldir='${docdir}'
9703
9704 fi
9705 if test "x$dvidir" = x; then
9706 dvidir='${docdir}'
9707
9708 fi
9709 if test "x$pdfdir" = x; then
9710 pdfdir='${docdir}'
9711
9712 fi
9713 if test "x$psdir" = x; then
9714 psdir='${docdir}'
9715
9716 fi
9717 if test "x$lispdir" = x; then
9718 lispdir='${datarootdir}/emacs/site-lisp'
9719
9720 fi
9721 if test "x$localedir" = x; then
9722 localedir='${datarootdir}/locale'
9723
9724 fi
9725
9726 pkglibexecdir='${libexecdir}/${PACKAGE}'
9727
9728
9729
9730
9731
9732
88b48903
WN
9733 FLOAT_H=
9734 REPLACE_FLOAT_LDBL=0
9735 case "$host_os" in
9736 aix* | beos* | openbsd* | mirbsd* | irix*)
9737 FLOAT_H=float.h
9738 ;;
9739 freebsd*)
9740 case "$host_cpu" in
9741 i[34567]86 )
9742 FLOAT_H=float.h
9743 ;;
9744 x86_64 )
9745 # On x86_64 systems, the C compiler may still be generating
9746 # 32-bit code.
9747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9748/* end confdefs.h. */
9749#if defined __LP64__ || defined __x86_64__ || defined __amd64__
9750 yes
9751 #endif
9752_ACEOF
9753if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9754 $EGREP "yes" >/dev/null 2>&1; then :
9755
9756else
9757 FLOAT_H=float.h
9758fi
9759rm -f conftest*
8690e634 9760
88b48903
WN
9761 ;;
9762 esac
9763 ;;
9764 linux*)
9765 case "$host_cpu" in
9766 powerpc*)
9767 FLOAT_H=float.h
9768 ;;
9769 esac
9770 ;;
9771 esac
9772 case "$host_os" in
9773 aix* | freebsd* | linux*)
9774 if test -n "$FLOAT_H"; then
9775 REPLACE_FLOAT_LDBL=1
9776 fi
9777 ;;
9778 esac
a512b375 9779
88b48903
WN
9780 REPLACE_ITOLD=0
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
9782$as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
9783if test "${gl_cv_func_itold_works+set}" = set; then :
8690e634
JK
9784 $as_echo_n "(cached) " >&6
9785else
88b48903
WN
9786
9787 if test "$cross_compiling" = yes; then :
9788 case "$host" in
9789 sparc*-*-linux*)
9790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9791/* end confdefs.h. */
9792#if defined __LP64__ || defined __arch64__
9793 yes
9794 #endif
9795_ACEOF
9796if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9797 $EGREP "yes" >/dev/null 2>&1; then :
9798 gl_cv_func_itold_works="guessing no"
9799else
9800 gl_cv_func_itold_works="guessing yes"
9801fi
9802rm -f conftest*
9803
9804 ;;
9805 *) gl_cv_func_itold_works="guessing yes" ;;
9806 esac
9807
8690e634
JK
9808else
9809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9810/* end confdefs.h. */
8690e634 9811
88b48903
WN
9812int i = -1;
9813volatile long double ld;
9814int main ()
8690e634 9815{
88b48903
WN
9816 ld += i * 1.0L;
9817 if (ld > 0)
9818 return 1;
9819 return 0;
9820}
9821_ACEOF
9822if ac_fn_c_try_run "$LINENO"; then :
9823 gl_cv_func_itold_works=yes
9824else
9825 gl_cv_func_itold_works=no
9826fi
9827rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9828 conftest.$ac_objext conftest.beam conftest.$ac_ext
9829fi
9830
9831
9832fi
9833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
9834$as_echo "$gl_cv_func_itold_works" >&6; }
9835 case "$gl_cv_func_itold_works" in
9836 *no)
9837 REPLACE_ITOLD=1
9838 FLOAT_H=float.h
9839 ;;
9840 esac
9841
9842 if test -n "$FLOAT_H"; then
9843
9844
9845
9846
9847
9848
9849
9850
9851 if test $gl_cv_have_include_next = yes; then
9852 gl_cv_next_float_h='<'float.h'>'
9853 else
9854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
9855$as_echo_n "checking absolute name of <float.h>... " >&6; }
9856if test "${gl_cv_next_float_h+set}" = set; then :
9857 $as_echo_n "(cached) " >&6
9858else
9859
9860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9861/* end confdefs.h. */
9862#include <float.h>
9863
9864_ACEOF
9865 case "$host_os" in
9866 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9867 *) gl_absname_cpp="$ac_cpp" ;;
9868 esac
9869
9870 case "$host_os" in
9871 mingw*)
9872 gl_dirsep_regex='[/\\]'
9873 ;;
9874 *)
9875 gl_dirsep_regex='\/'
9876 ;;
9877 esac
9878 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9879
9880 gl_header_literal_regex=`echo 'float.h' \
9881 | sed -e "$gl_make_literal_regex_sed"`
9882 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9883 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9884 s|^/[^/]|//&|
9885 p
9886 q
9887 }'
9888 gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9889 sed -n "$gl_absolute_header_sed"`'"'
9890
9891
9892fi
9893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
9894$as_echo "$gl_cv_next_float_h" >&6; }
9895 fi
9896 NEXT_FLOAT_H=$gl_cv_next_float_h
9897
9898 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9899 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9900 gl_next_as_first_directive='<'float.h'>'
9901 else
9902 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9903 gl_next_as_first_directive=$gl_cv_next_float_h
9904 fi
9905 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
9906
9907
9908
9909
9910 fi
9911
9912 if test -n "$FLOAT_H"; then
9913 GL_GENERATE_FLOAT_H_TRUE=
9914 GL_GENERATE_FLOAT_H_FALSE='#'
9915else
9916 GL_GENERATE_FLOAT_H_TRUE='#'
9917 GL_GENERATE_FLOAT_H_FALSE=
9918fi
9919
9920
9921
9922 if test $REPLACE_FLOAT_LDBL = 1; then
9923
9924
9925
9926
9927
9928
9929
9930
9931 gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
9932
9933 fi
9934 if test $REPLACE_ITOLD = 1; then
9935
9936
9937
9938
9939
9940
9941
9942
9943 gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
9944
9945 fi
9946
9947
9948
9949
9950
9951 FNMATCH_H=
9952 gl_fnmatch_required_lowercase=`
9953 echo $gl_fnmatch_required | LC_ALL=C tr '[A-Z]' '[a-z]'
9954 `
9955 gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
9957$as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
9958if { as_var=$gl_fnmatch_cache_var; eval "test \"\${$as_var+set}\" = set"; }; then :
9959 $as_echo_n "(cached) " >&6
9960else
9961 if test $gl_fnmatch_required = GNU; then
9962 gl_fnmatch_gnu_start=
9963 gl_fnmatch_gnu_end=
9964 else
9965 gl_fnmatch_gnu_start='#if 0'
9966 gl_fnmatch_gnu_end='#endif'
9967 fi
9968 if test "$cross_compiling" = yes; then :
9969 eval "$gl_fnmatch_cache_var=\"guessing no\""
9970else
9971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9972/* end confdefs.h. */
9973#include <fnmatch.h>
9974 static int
9975 y (char const *pattern, char const *string, int flags)
9976 {
9977 return fnmatch (pattern, string, flags) == 0;
9978 }
9979 static int
9980 n (char const *pattern, char const *string, int flags)
9981 {
9982 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
9983 }
9984
9985int
9986main ()
9987{
9988char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
9989 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
9990 static char const A_1[] = { 'A' - 1, 0 };
9991 static char const A01[] = { 'A' + 1, 0 };
9992 static char const a_1[] = { 'a' - 1, 0 };
9993 static char const a01[] = { 'a' + 1, 0 };
9994 static char const bs_1[] = { '\\\\' - 1, 0 };
8690e634
JK
9995 static char const bs01[] = { '\\\\' + 1, 0 };
9996 int result = 0;
9997 if (!n ("a*", "", 0))
9998 return 1;
9999 if (!y ("a*", "abc", 0))
10000 return 1;
10001 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
10002 return 1;
10003 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
10004 return 2;
10005 if (!y ("a\\\\bc", "abc", 0))
10006 return 3;
10007 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
10008 return 3;
10009 if (!y ("*x", ".x", 0))
10010 return 4;
10011 if (!n ("*x", ".x", FNM_PERIOD))
10012 return 4;
10013 if (!y (Apat, "\\\\", 0))
10014 return 5;
10015 if (!y (Apat, "A", 0))
10016 return 5;
10017 if (!y (apat, "\\\\", 0))
10018 return 5;
10019 if (!y (apat, "a", 0))
10020 return 5;
10021 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
10022 return 5;
10023 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
10024 return 5;
10025 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
10026 return 5;
10027 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
10028 return 5;
10029 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
10030 return 5;
10031 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
10032 return 5;
10033 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
10034 return 5;
10035 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
10036 return 5;
10037 $gl_fnmatch_gnu_start
10038 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
10039 result |= 8;
10040 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
10041 result |= 16;
10042 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
10043 result |= 32;
10044 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
10045 result |= 64;
10046 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
10047 result |= 64;
10048 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
10049 result |= 64;
10050 $gl_fnmatch_gnu_end
10051 return result;
10052
10053 ;
10054 return 0;
10055}
10056_ACEOF
10057if ac_fn_c_try_run "$LINENO"; then :
10058 eval "$gl_fnmatch_cache_var=yes"
10059else
10060 eval "$gl_fnmatch_cache_var=no"
10061fi
10062rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10063 conftest.$ac_objext conftest.beam conftest.$ac_ext
10064fi
10065
10066
10067fi
10068eval ac_res=\$$gl_fnmatch_cache_var
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10070$as_echo "$ac_res" >&6; }
10071 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
10072 if test "$gl_fnmatch_result" = yes; then
10073 rm -f "$gl_source_base/fnmatch.h"
10074 else
10075 FNMATCH_H=fnmatch.h
10076 fi
10077
10078 if test -n "$FNMATCH_H"; then
10079 GL_GENERATE_FNMATCH_H_TRUE=
10080 GL_GENERATE_FNMATCH_H_FALSE='#'
10081else
10082 GL_GENERATE_FNMATCH_H_TRUE='#'
10083 GL_GENERATE_FNMATCH_H_FALSE=
10084fi
10085
10086
a512b375 10087 if test -n "$FNMATCH_H"; then
8690e634
JK
10088
10089
10090
10091
10092
10093
10094
10095
10096 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
10097
10098
10099
10100cat >>confdefs.h <<_ACEOF
10101#define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
10102_ACEOF
10103
10104
10105 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
10106"
10107if test "x$ac_cv_have_decl_isblank" = x""yes; then :
10108 ac_have_decl=1
10109else
10110 ac_have_decl=0
10111fi
10112
10113cat >>confdefs.h <<_ACEOF
10114#define HAVE_DECL_ISBLANK $ac_have_decl
10115_ACEOF
10116
10117
c971b7fa 10118
c971b7fa 10119
a512b375 10120 fi
c971b7fa 10121
c971b7fa 10122
c971b7fa 10123
c971b7fa 10124
c971b7fa 10125
a512b375 10126 if test -n "$FNMATCH_H"; then
c971b7fa 10127
c971b7fa 10128
c971b7fa
PA
10129
10130
c971b7fa
PA
10131
10132
c971b7fa
PA
10133
10134
8690e634 10135 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
c971b7fa 10136
c971b7fa 10137
c971b7fa 10138
8690e634
JK
10139cat >>confdefs.h <<_ACEOF
10140#define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
10141_ACEOF
c971b7fa
PA
10142
10143
8690e634
JK
10144 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
10145"
10146if test "x$ac_cv_have_decl_isblank" = x""yes; then :
10147 ac_have_decl=1
10148else
10149 ac_have_decl=0
c971b7fa 10150fi
c971b7fa 10151
8690e634
JK
10152cat >>confdefs.h <<_ACEOF
10153#define HAVE_DECL_ISBLANK $ac_have_decl
c971b7fa
PA
10154_ACEOF
10155
c971b7fa 10156
8690e634 10157
c971b7fa 10158
88b48903
WN
10159 fi
10160
10161
10162
10163 FREXP_LIBM=
10164 if test $gl_cv_func_frexp_no_libm = no; then
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used with libm" >&5
10166$as_echo_n "checking whether frexp() can be used with libm... " >&6; }
10167if test "${gl_cv_func_frexp_in_libm+set}" = set; then :
10168 $as_echo_n "(cached) " >&6
10169else
10170
10171 save_LIBS="$LIBS"
10172 LIBS="$LIBS -lm"
10173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10174/* end confdefs.h. */
10175#include <math.h>
10176 double x;
10177int
10178main ()
10179{
10180int e; return frexp (x, &e) > 0;
10181 ;
10182 return 0;
10183}
10184_ACEOF
10185if ac_fn_c_try_link "$LINENO"; then :
10186 gl_cv_func_frexp_in_libm=yes
10187else
10188 gl_cv_func_frexp_in_libm=no
10189fi
10190rm -f core conftest.err conftest.$ac_objext \
10191 conftest$ac_exeext conftest.$ac_ext
10192 LIBS="$save_LIBS"
10193
10194fi
10195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_in_libm" >&5
10196$as_echo "$gl_cv_func_frexp_in_libm" >&6; }
10197 if test $gl_cv_func_frexp_in_libm = yes; then
10198 FREXP_LIBM=-lm
10199 fi
10200 fi
10201 if test $gl_cv_func_frexp_no_libm = yes \
10202 || test $gl_cv_func_frexp_in_libm = yes; then
10203 save_LIBS="$LIBS"
10204 LIBS="$LIBS $FREXP_LIBM"
10205
10206
10207
88b48903
WN
10208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
10209$as_echo_n "checking whether frexp works... " >&6; }
10210if test "${gl_cv_func_frexp_works+set}" = set; then :
10211 $as_echo_n "(cached) " >&6
10212else
10213
10214 if test "$cross_compiling" = yes; then :
10215 case "$host_os" in
10216 netbsd* | irix* | mingw*) gl_cv_func_frexp_works="guessing no";;
10217 *) gl_cv_func_frexp_works="guessing yes";;
10218 esac
10219
10220else
10221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10222/* end confdefs.h. */
10223
10224#include <float.h>
10225#include <math.h>
10226#include <string.h>
10227#if HAVE_ALARM
10228# include <unistd.h>
10229#endif
10230/* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
10231 ICC 10.0 has a bug when optimizing the expression -zero.
10232 The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
10233 to PowerPC on Mac OS X 10.5. */
10234#if defined __hpux || defined __sgi || defined __ICC
10235static double
10236compute_minus_zero (void)
10237{
10238 return -DBL_MIN * DBL_MIN;
10239}
10240# define minus_zero compute_minus_zero ()
10241#else
10242double minus_zero = -0.0;
10243#endif
10244int main()
10245{
10246 int result = 0;
10247 int i;
10248 volatile double x;
10249 double zero = 0.0;
10250#if HAVE_ALARM
10251 /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
10252 number. Let the test fail in this case. */
10253 alarm (5);
10254#endif
10255 /* Test on denormalized numbers. */
10256 for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
10257 ;
10258 if (x > 0.0)
10259 {
10260 int exp;
10261 double y = frexp (x, &exp);
10262 /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
10263 On NetBSD: y = 0.75. Correct: y = 0.5. */
10264 if (y != 0.5)
10265 result |= 1;
10266 }
10267 /* Test on infinite numbers. */
10268 x = 1.0 / zero;
10269 {
10270 int exp;
10271 double y = frexp (x, &exp);
10272 if (y != x)
10273 result |= 2;
10274 }
10275 /* Test on negative zero. */
10276 x = minus_zero;
10277 {
10278 int exp;
10279 double y = frexp (x, &exp);
10280 if (memcmp (&y, &x, sizeof x))
10281 result |= 4;
10282 }
10283 return result;
10284}
10285_ACEOF
10286if ac_fn_c_try_run "$LINENO"; then :
10287 gl_cv_func_frexp_works=yes
10288else
10289 gl_cv_func_frexp_works=no
10290fi
10291rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10292 conftest.$ac_objext conftest.beam conftest.$ac_ext
10293fi
10294
10295
10296fi
10297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
10298$as_echo "$gl_cv_func_frexp_works" >&6; }
10299
10300 LIBS="$save_LIBS"
10301 case "$gl_cv_func_frexp_works" in
10302 *yes) gl_func_frexp=yes ;;
10303 *) gl_func_frexp=no; REPLACE_FREXP=1; FREXP_LIBM= ;;
10304 esac
10305 else
10306 gl_func_frexp=no
10307 fi
10308 if test $gl_func_frexp = yes; then
10309
10310$as_echo "#define HAVE_FREXP 1" >>confdefs.h
10311
10312 fi
10313
10314
10315 if test $gl_func_frexp != yes; then
10316
10317
10318
10319
10320
10321
10322
10323
10324 gl_LIBOBJS="$gl_LIBOBJS frexp.$ac_objext"
10325
10326 fi
10327
10328
10329
10330
10331
10332 GNULIB_FREXP=1
10333
10334
10335
10336
10337
10338$as_echo "#define GNULIB_TEST_FREXP 1" >>confdefs.h
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348 ac_fn_c_check_decl "$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
10349"
10350if test "x$ac_cv_have_decl_frexpl" = x""yes; then :
10351
10352else
10353 HAVE_DECL_FREXPL=0
10354fi
10355
10356
10357 FREXPL_LIBM=
10358 if test $HAVE_DECL_FREXPL = 1; then
10359
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
10361$as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
10362if test "${gl_cv_func_frexpl_no_libm+set}" = set; then :
10363 $as_echo_n "(cached) " >&6
10364else
10365
10366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10367/* end confdefs.h. */
10368#include <math.h>
10369 long double x;
10370int
10371main ()
10372{
10373int e; return frexpl (x, &e) > 0;
10374 ;
10375 return 0;
10376}
10377_ACEOF
10378if ac_fn_c_try_link "$LINENO"; then :
10379 gl_cv_func_frexpl_no_libm=yes
10380else
10381 gl_cv_func_frexpl_no_libm=no
10382fi
10383rm -f core conftest.err conftest.$ac_objext \
10384 conftest$ac_exeext conftest.$ac_ext
10385
10386fi
10387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
10388$as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
10389
10390 if test $gl_cv_func_frexpl_no_libm = no; then
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used with libm" >&5
10392$as_echo_n "checking whether frexpl() can be used with libm... " >&6; }
10393if test "${gl_cv_func_frexpl_in_libm+set}" = set; then :
10394 $as_echo_n "(cached) " >&6
10395else
10396
10397 save_LIBS="$LIBS"
10398 LIBS="$LIBS -lm"
10399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10400/* end confdefs.h. */
10401#include <math.h>
10402 long double x;
10403int
10404main ()
10405{
10406int e; return frexpl (x, &e) > 0;
10407 ;
10408 return 0;
10409}
10410_ACEOF
10411if ac_fn_c_try_link "$LINENO"; then :
10412 gl_cv_func_frexpl_in_libm=yes
10413else
10414 gl_cv_func_frexpl_in_libm=no
10415fi
10416rm -f core conftest.err conftest.$ac_objext \
10417 conftest$ac_exeext conftest.$ac_ext
10418 LIBS="$save_LIBS"
10419
10420fi
10421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_in_libm" >&5
10422$as_echo "$gl_cv_func_frexpl_in_libm" >&6; }
10423 if test $gl_cv_func_frexpl_in_libm = yes; then
10424 FREXPL_LIBM=-lm
10425 fi
10426 fi
10427 if test $gl_cv_func_frexpl_no_libm = yes \
10428 || test $gl_cv_func_frexpl_in_libm = yes; then
10429 save_LIBS="$LIBS"
10430 LIBS="$LIBS $FREXPL_LIBM"
10431
10432
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
10434$as_echo_n "checking whether frexpl works... " >&6; }
10435if test "${gl_cv_func_frexpl_works+set}" = set; then :
10436 $as_echo_n "(cached) " >&6
10437else
10438
10439 if test "$cross_compiling" = yes; then :
10440
10441 case "$host_os" in
10442 aix | aix[3-6]* | beos* | darwin* | irix* | mingw* | pw*)
10443 gl_cv_func_frexpl_works="guessing no";;
10444 *) gl_cv_func_frexpl_works="guessing yes";;
10445 esac
10446
10447else
10448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10449/* end confdefs.h. */
10450
10451#include <float.h>
10452#include <math.h>
10453/* Override the values of <float.h>, like done in float.in.h. */
10454#if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
10455# undef LDBL_MIN_EXP
10456# define LDBL_MIN_EXP (-16381)
10457#endif
10458#if defined __i386__ && defined __FreeBSD__
10459# undef LDBL_MIN_EXP
10460# define LDBL_MIN_EXP (-16381)
10461#endif
10462#if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
10463# undef LDBL_MIN_EXP
10464# define LDBL_MIN_EXP DBL_MIN_EXP
10465#endif
10466#if defined __sgi && (LDBL_MANT_DIG >= 106)
10467# if defined __GNUC__
10468# undef LDBL_MIN_EXP
10469# define LDBL_MIN_EXP DBL_MIN_EXP
10470# endif
10471#endif
10472extern
10473#ifdef __cplusplus
10474"C"
10475#endif
10476long double frexpl (long double, int *);
10477int main()
10478{
10479 int result = 0;
10480 volatile long double x;
10481 /* Test on finite numbers that fails on AIX 5.1. */
10482 x = 16.0L;
10483 {
10484 int exp = -9999;
10485 frexpl (x, &exp);
10486 if (exp != 5)
10487 result |= 1;
10488 }
10489 /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
10490 function returns an invalid (incorrectly normalized) value: it returns
10491 y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
10492 but the correct result is
10493 0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 } */
10494 x = 1.01L;
10495 {
10496 int exp = -9999;
10497 long double y = frexpl (x, &exp);
10498 if (!(exp == 1 && y == 0.505L))
10499 result |= 2;
10500 }
10501 /* Test on large finite numbers. This fails on BeOS at i = 16322, while
10502 LDBL_MAX_EXP = 16384.
10503 In the loop end test, we test x against Infinity, rather than comparing
10504 i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP. */
10505 {
10506 int i;
10507 for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
10508 {
10509 int exp = -9999;
10510 frexpl (x, &exp);
10511 if (exp != i)
10512 {
10513 result |= 4;
10514 break;
10515 }
10516 }
10517 }
10518 /* Test on denormalized numbers. */
10519 {
10520 int i;
10521 for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
10522 ;
10523 if (x > 0.0L)
10524 {
10525 int exp;
10526 long double y = frexpl (x, &exp);
10527 /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
10528 exp = -16382, y = 0.5. On Mac OS X 10.5: exp = -16384, y = 0.5. */
10529 if (exp != LDBL_MIN_EXP - 1)
10530 result |= 8;
10531 }
10532 }
10533 /* Test on infinite numbers. */
10534 x = 1.0L / 0.0L;
10535 {
10536 int exp;
10537 long double y = frexpl (x, &exp);
10538 if (y != x)
10539 result |= 16;
10540 }
10541 return result;
10542}
10543_ACEOF
10544if ac_fn_c_try_run "$LINENO"; then :
10545 gl_cv_func_frexpl_works=yes
10546else
10547 gl_cv_func_frexpl_works=no
10548fi
10549rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10550 conftest.$ac_objext conftest.beam conftest.$ac_ext
10551fi
10552
10553
10554fi
10555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
10556$as_echo "$gl_cv_func_frexpl_works" >&6; }
10557
10558 LIBS="$save_LIBS"
10559 case "$gl_cv_func_frexpl_works" in
10560 *yes) gl_func_frexpl=yes ;;
10561 *) gl_func_frexpl=no; REPLACE_FREXPL=1 ;;
10562 esac
10563 else
10564 gl_func_frexpl=no
10565 fi
10566 if test $gl_func_frexpl = yes; then
10567
10568$as_echo "#define HAVE_FREXPL 1" >>confdefs.h
10569
10570 fi
10571 fi
10572 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
10573 if test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1; then
10574
10575 FREXPL_LIBM="$FREXP_LIBM"
10576 else
10577 FREXPL_LIBM=
10578 fi
10579 fi
10580
10581
10582 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
10583
10584
10585
10586
10587
10588
10589
10590
10591 gl_LIBOBJS="$gl_LIBOBJS frexpl.$ac_objext"
10592
10593 fi
10594
10595
10596
10597
10598
10599 GNULIB_FREXPL=1
10600
10601
10602
10603
10604
10605$as_echo "#define GNULIB_TEST_FREXPL 1" >>confdefs.h
10606
10607
10608
10609
10610
10611
10612
10613
10614 PRIPTR_PREFIX=
10615 if test -n "$STDINT_H"; then
10616 PRIPTR_PREFIX='"l"'
10617 else
10618 for glpfx in '' l ll I64; do
10619 case $glpfx in
10620 '') gltype1='int';;
10621 l) gltype1='long int';;
10622 ll) gltype1='long long int';;
10623 I64) gltype1='__int64';;
10624 esac
10625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10626/* end confdefs.h. */
10627#include <stdint.h>
10628 extern intptr_t foo;
10629 extern $gltype1 foo;
10630int
10631main ()
10632{
10633
10634 ;
10635 return 0;
10636}
10637_ACEOF
10638if ac_fn_c_try_compile "$LINENO"; then :
10639 PRIPTR_PREFIX='"'$glpfx'"'
10640fi
10641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10642 test -n "$PRIPTR_PREFIX" && break
10643 done
10644 fi
10645
10646
10647
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
10649$as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
10650if test "${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+set}" = set; then :
10651 $as_echo_n "(cached) " >&6
10652else
10653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10654/* end confdefs.h. */
10655/* Work also in C++ mode. */
10656 #define __STDC_LIMIT_MACROS 1
10657
10658 /* Work if build is not clean. */
10659 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
10660
10661 #include <limits.h>
10662 #if HAVE_STDINT_H
10663 #include <stdint.h>
10664 #endif
10665
10666 #if defined INT32_MAX && defined INTMAX_MAX
10667 #define CONDITION (INT32_MAX < INTMAX_MAX)
10668 #elif HAVE_LONG_LONG_INT
10669 #define CONDITION (sizeof (int) < sizeof (long long int))
10670 #else
10671 #define CONDITION 0
10672 #endif
10673 int test[CONDITION ? 1 : -1];
10674int
10675main ()
10676{
10677
10678 ;
10679 return 0;
10680}
10681_ACEOF
10682if ac_fn_c_try_compile "$LINENO"; then :
10683 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
10684else
10685 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
10686fi
10687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10688fi
10689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
10690$as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
10691 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
10692 INT32_MAX_LT_INTMAX_MAX=1;
10693 else
10694 INT32_MAX_LT_INTMAX_MAX=0;
10695 fi
10696
10697
10698 if test $APPLE_UNIVERSAL_BUILD = 0; then
10699
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
10701$as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
10702if test "${gl_cv_test_INT64_MAX_EQ_LONG_MAX+set}" = set; then :
10703 $as_echo_n "(cached) " >&6
10704else
10705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10706/* end confdefs.h. */
10707/* Work also in C++ mode. */
10708 #define __STDC_LIMIT_MACROS 1
10709
10710 /* Work if build is not clean. */
10711 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
10712
10713 #include <limits.h>
10714 #if HAVE_STDINT_H
10715 #include <stdint.h>
10716 #endif
10717
10718 #if defined INT64_MAX
10719 #define CONDITION (INT64_MAX == LONG_MAX)
10720 #elif HAVE_LONG_LONG_INT
10721 #define CONDITION (sizeof (long long int) == sizeof (long int))
10722 #else
10723 #define CONDITION 0
10724 #endif
10725 int test[CONDITION ? 1 : -1];
10726int
10727main ()
10728{
10729
10730 ;
10731 return 0;
10732}
10733_ACEOF
10734if ac_fn_c_try_compile "$LINENO"; then :
10735 gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
10736else
10737 gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
10738fi
10739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10740fi
10741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
10742$as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
10743 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
10744 INT64_MAX_EQ_LONG_MAX=1;
10745 else
10746 INT64_MAX_EQ_LONG_MAX=0;
10747 fi
10748
10749
10750 else
10751 INT64_MAX_EQ_LONG_MAX=-1
10752 fi
10753
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
10755$as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
10756if test "${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+set}" = set; then :
10757 $as_echo_n "(cached) " >&6
10758else
10759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10760/* end confdefs.h. */
10761/* Work also in C++ mode. */
10762 #define __STDC_LIMIT_MACROS 1
10763
10764 /* Work if build is not clean. */
10765 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
10766
10767 #include <limits.h>
10768 #if HAVE_STDINT_H
10769 #include <stdint.h>
10770 #endif
10771
10772 #if defined UINT32_MAX && defined UINTMAX_MAX
10773 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
10774 #elif HAVE_LONG_LONG_INT
10775 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
10776 #else
10777 #define CONDITION 0
10778 #endif
10779 int test[CONDITION ? 1 : -1];
10780int
10781main ()
10782{
10783
10784 ;
10785 return 0;
10786}
10787_ACEOF
10788if ac_fn_c_try_compile "$LINENO"; then :
10789 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
10790else
10791 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
10792fi
10793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10794fi
10795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
10796$as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
10797 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
10798 UINT32_MAX_LT_UINTMAX_MAX=1;
10799 else
10800 UINT32_MAX_LT_UINTMAX_MAX=0;
10801 fi
10802
10803
10804 if test $APPLE_UNIVERSAL_BUILD = 0; then
10805
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
10807$as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
10808if test "${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+set}" = set; then :
10809 $as_echo_n "(cached) " >&6
10810else
10811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10812/* end confdefs.h. */
10813/* Work also in C++ mode. */
10814 #define __STDC_LIMIT_MACROS 1
10815
10816 /* Work if build is not clean. */
10817 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
10818
10819 #include <limits.h>
10820 #if HAVE_STDINT_H
10821 #include <stdint.h>
10822 #endif
10823
10824 #if defined UINT64_MAX
10825 #define CONDITION (UINT64_MAX == ULONG_MAX)
10826 #elif HAVE_LONG_LONG_INT
10827 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
10828 #else
10829 #define CONDITION 0
10830 #endif
10831 int test[CONDITION ? 1 : -1];
10832int
10833main ()
10834{
10835
10836 ;
10837 return 0;
10838}
10839_ACEOF
10840if ac_fn_c_try_compile "$LINENO"; then :
10841 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
10842else
10843 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
10844fi
10845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10846fi
10847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
10848$as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
10849 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
10850 UINT64_MAX_EQ_ULONG_MAX=1;
10851 else
10852 UINT64_MAX_EQ_ULONG_MAX=0;
10853 fi
10854
10855
10856 else
10857 UINT64_MAX_EQ_ULONG_MAX=-1
10858 fi
10859
10860
10861
10862
10863
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
10865$as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
10866if test "${gl_cv_func_isnand_no_libm+set}" = set; then :
10867 $as_echo_n "(cached) " >&6
10868else
10869
10870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10871/* end confdefs.h. */
10872#include <math.h>
10873 #if __GNUC__ >= 4
10874 # undef isnand
10875 # define isnand(x) __builtin_isnan ((double)(x))
10876 #else
10877 # undef isnand
10878 # define isnand(x) isnan ((double)(x))
10879 #endif
10880 double x;
10881int
10882main ()
10883{
10884return isnand (x);
10885 ;
10886 return 0;
10887}
10888_ACEOF
10889if ac_fn_c_try_link "$LINENO"; then :
10890 gl_cv_func_isnand_no_libm=yes
10891else
10892 gl_cv_func_isnand_no_libm=no
10893fi
10894rm -f core conftest.err conftest.$ac_objext \
10895 conftest$ac_exeext conftest.$ac_ext
10896
10897fi
10898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
10899$as_echo "$gl_cv_func_isnand_no_libm" >&6; }
10900
10901 gl_func_isnand_no_libm=$gl_cv_func_isnand_no_libm
10902 if test $gl_cv_func_isnand_no_libm = yes; then
10903
10904$as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
10905
10906 fi
10907
10908 if test $gl_func_isnand_no_libm != yes; then
10909
10910
10911
10912
10913
10914
10915
10916
10917 gl_LIBOBJS="$gl_LIBOBJS isnand.$ac_objext"
10918
10919
10920
10921
10922 fi
10923
10924
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
10926$as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
10927if test "${gl_cv_func_isnanl_no_libm+set}" = set; then :
10928 $as_echo_n "(cached) " >&6
10929else
10930
10931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10932/* end confdefs.h. */
10933#include <math.h>
10934 #if __GNUC__ >= 4
10935 # undef isnanl
10936 # define isnanl(x) __builtin_isnanl ((long double)(x))
10937 #elif defined isnan
10938 # undef isnanl
10939 # define isnanl(x) isnan ((long double)(x))
10940 #endif
10941 long double x;
10942int
10943main ()
10944{
10945return isnanl (x);
10946 ;
10947 return 0;
10948}
10949_ACEOF
10950if ac_fn_c_try_link "$LINENO"; then :
10951 gl_cv_func_isnanl_no_libm=yes
10952else
10953 gl_cv_func_isnanl_no_libm=no
10954fi
10955rm -f core conftest.err conftest.$ac_objext \
10956 conftest$ac_exeext conftest.$ac_ext
10957
10958fi
10959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
10960$as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
10961
10962 gl_func_isnanl_no_libm=$gl_cv_func_isnanl_no_libm
10963 if test $gl_func_isnanl_no_libm = yes; then
10964
10965
10966
10967
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
10969$as_echo_n "checking whether isnanl works... " >&6; }
10970if test "${gl_cv_func_isnanl_works+set}" = set; then :
10971 $as_echo_n "(cached) " >&6
10972else
10973
10974 if test "$cross_compiling" = yes; then :
10975 case "$host_cpu" in
10976 # Guess no on ia64, x86_64, i386.
10977 ia64 | x86_64 | i*86) gl_cv_func_isnanl_works="guessing no";;
10978 *)
10979 case "$host_os" in
10980 netbsd*) gl_cv_func_isnanl_works="guessing no";;
10981 *) gl_cv_func_isnanl_works="guessing yes";;
10982 esac
10983 ;;
10984 esac
10985
10986else
10987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10988/* end confdefs.h. */
10989
10990#include <float.h>
10991#include <limits.h>
10992#include <math.h>
10993#if __GNUC__ >= 4
10994# undef isnanl
10995# define isnanl(x) __builtin_isnanl ((long double)(x))
10996#elif defined isnan
10997# undef isnanl
10998# define isnanl(x) isnan ((long double)(x))
10999#endif
11000#define NWORDS \
11001 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
11002typedef union { unsigned int word[NWORDS]; long double value; }
11003 memory_long_double;
11004/* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
11005 runtime type conversion. */
11006#ifdef __sgi
11007static long double NaNl ()
11008{
11009 double zero = 0.0;
11010 return zero / zero;
11011}
11012#else
11013# define NaNl() (0.0L / 0.0L)
11014#endif
11015int main ()
11016{
11017 int result = 0;
11018
11019 if (!isnanl (NaNl ()))
11020 result |= 1;
11021
11022 {
11023 memory_long_double m;
11024 unsigned int i;
11025
11026 /* The isnanl function should be immune against changes in the sign bit and
11027 in the mantissa bits. The xor operation twiddles a bit that can only be
11028 a sign bit or a mantissa bit (since the exponent never extends to
11029 bit 31). */
11030 m.value = NaNl ();
11031 m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
11032 for (i = 0; i < NWORDS; i++)
11033 m.word[i] |= 1;
11034 if (!isnanl (m.value))
11035 result |= 1;
11036 }
11037
11038#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
11039/* Representation of an 80-bit 'long double' as an initializer for a sequence
11040 of 'unsigned int' words. */
11041# ifdef WORDS_BIGENDIAN
11042# define LDBL80_WORDS(exponent,manthi,mantlo) \
11043 { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
11044 ((unsigned int) (manthi) << 16) | (unsigned int) (mantlo) >> 16), \
11045 (unsigned int) (mantlo) << 16 \
11046 }
11047# else
11048# define LDBL80_WORDS(exponent,manthi,mantlo) \
11049 { mantlo, manthi, exponent }
11050# endif
11051 { /* Quiet NaN. */
11052 static memory_long_double x =
11053 { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
11054 if (!isnanl (x.value))
11055 result |= 2;
11056 }
11057 {
11058 /* Signalling NaN. */
11059 static memory_long_double x =
11060 { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
11061 if (!isnanl (x.value))
11062 result |= 2;
11063 }
11064 /* The isnanl function should recognize Pseudo-NaNs, Pseudo-Infinities,
11065 Pseudo-Zeroes, Unnormalized Numbers, and Pseudo-Denormals, as defined in
11066 Intel IA-64 Architecture Software Developer's Manual, Volume 1:
11067 Application Architecture.
11068 Table 5-2 "Floating-Point Register Encodings"
11069 Figure 5-6 "Memory to Floating-Point Register Data Translation"
11070 */
11071 { /* Pseudo-NaN. */
11072 static memory_long_double x =
11073 { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
11074 if (!isnanl (x.value))
11075 result |= 4;
11076 }
11077 { /* Pseudo-Infinity. */
11078 static memory_long_double x =
11079 { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
11080 if (!isnanl (x.value))
11081 result |= 8;
11082 }
11083 { /* Pseudo-Zero. */
11084 static memory_long_double x =
11085 { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
11086 if (!isnanl (x.value))
11087 result |= 16;
11088 }
11089 { /* Unnormalized number. */
11090 static memory_long_double x =
11091 { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
11092 if (!isnanl (x.value))
11093 result |= 32;
11094 }
11095 { /* Pseudo-Denormal. */
11096 static memory_long_double x =
11097 { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
11098 if (!isnanl (x.value))
11099 result |= 64;
11100 }
11101#endif
11102
11103 return result;
11104}
11105_ACEOF
11106if ac_fn_c_try_run "$LINENO"; then :
11107 gl_cv_func_isnanl_works=yes
11108else
11109 gl_cv_func_isnanl_works=no
11110fi
11111rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11112 conftest.$ac_objext conftest.beam conftest.$ac_ext
11113fi
11114
11115
11116fi
11117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
11118$as_echo "$gl_cv_func_isnanl_works" >&6; }
11119
11120 case "$gl_cv_func_isnanl_works" in
11121 *yes) ;;
11122 *) gl_func_isnanl_no_libm=no ;;
11123 esac
11124 fi
11125 if test $gl_func_isnanl_no_libm = yes; then
11126
11127$as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
11128
11129 fi
11130
11131 if test $gl_func_isnanl_no_libm != yes; then
11132
11133
11134
11135
11136
11137
11138
11139
11140 gl_LIBOBJS="$gl_LIBOBJS isnanl.$ac_objext"
11141
11142
11143
11144
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
11146$as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
11147if test "${gl_cv_cc_long_double_expbit0+set}" = set; then :
11148 $as_echo_n "(cached) " >&6
11149else
11150
11151 if test "$cross_compiling" = yes; then :
11152
11153 gl_cv_cc_long_double_expbit0="unknown"
11154
11155else
11156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11157/* end confdefs.h. */
11158
11159#include <float.h>
11160#include <stddef.h>
11161#include <stdio.h>
11162#include <string.h>
11163#define NWORDS \
11164 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
11165typedef union { long double value; unsigned int word[NWORDS]; }
11166 memory_long_double;
11167static unsigned int ored_words[NWORDS];
11168static unsigned int anded_words[NWORDS];
11169static void add_to_ored_words (long double x)
11170{
11171 memory_long_double m;
11172 size_t i;
11173 /* Clear it first, in case
11174 sizeof (long double) < sizeof (memory_long_double). */
11175 memset (&m, 0, sizeof (memory_long_double));
11176 m.value = x;
11177 for (i = 0; i < NWORDS; i++)
11178 {
11179 ored_words[i] |= m.word[i];
11180 anded_words[i] &= m.word[i];
11181 }
11182}
11183int main ()
11184{
11185 size_t j;
11186 FILE *fp = fopen ("conftest.out", "w");
11187 if (fp == NULL)
11188 return 1;
11189 for (j = 0; j < NWORDS; j++)
11190 anded_words[j] = ~ (unsigned int) 0;
11191 add_to_ored_words (0.25L);
11192 add_to_ored_words (0.5L);
11193 add_to_ored_words (1.0L);
11194 add_to_ored_words (2.0L);
11195 add_to_ored_words (4.0L);
11196 /* Remove bits that are common (e.g. if representation of the first mantissa
11197 bit is explicit). */
11198 for (j = 0; j < NWORDS; j++)
11199 ored_words[j] &= ~anded_words[j];
11200 /* Now find the nonzero word. */
11201 for (j = 0; j < NWORDS; j++)
11202 if (ored_words[j] != 0)
11203 break;
11204 if (j < NWORDS)
11205 {
11206 size_t i;
11207 for (i = j + 1; i < NWORDS; i++)
11208 if (ored_words[i] != 0)
11209 {
11210 fprintf (fp, "unknown");
11211 return (fclose (fp) != 0);
11212 }
11213 for (i = 0; ; i++)
11214 if ((ored_words[j] >> i) & 1)
11215 {
11216 fprintf (fp, "word %d bit %d", (int) j, (int) i);
11217 return (fclose (fp) != 0);
11218 }
11219 }
11220 fprintf (fp, "unknown");
11221 return (fclose (fp) != 0);
11222}
11223
11224_ACEOF
11225if ac_fn_c_try_run "$LINENO"; then :
11226 gl_cv_cc_long_double_expbit0=`cat conftest.out`
11227else
11228 gl_cv_cc_long_double_expbit0="unknown"
11229fi
11230rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11231 conftest.$ac_objext conftest.beam conftest.$ac_ext
11232fi
11233
11234 rm -f conftest.out
11235
11236fi
11237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
11238$as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
11239 case "$gl_cv_cc_long_double_expbit0" in
11240 word*bit*)
11241 word=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
11242 bit=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
11243
11244cat >>confdefs.h <<_ACEOF
11245#define LDBL_EXPBIT0_WORD $word
11246_ACEOF
11247
11248
11249cat >>confdefs.h <<_ACEOF
11250#define LDBL_EXPBIT0_BIT $bit
11251_ACEOF
11252
11253 ;;
11254 esac
11255
11256
11257
11258 fi
11259
11260
11261
11262
88b48903
WN
11263
11264
11265
11266
11267 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
11268
11269
11270
11271
11272
11273
11274
11275
11276
88b48903 11277
c971b7fa 11278
c971b7fa 11279
88b48903
WN
11280 if test $gl_cv_have_include_next = yes; then
11281 gl_cv_next_math_h='<'math.h'>'
11282 else
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
11284$as_echo_n "checking absolute name of <math.h>... " >&6; }
11285if test "${gl_cv_next_math_h+set}" = set; then :
11286 $as_echo_n "(cached) " >&6
11287else
c971b7fa 11288
88b48903 11289 if test $ac_cv_header_math_h = yes; then
c971b7fa
PA
11290
11291
88b48903 11292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690e634 11293/* end confdefs.h. */
88b48903 11294#include <math.h>
8690e634 11295
8690e634 11296_ACEOF
88b48903
WN
11297 case "$host_os" in
11298 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11299 *) gl_absname_cpp="$ac_cpp" ;;
11300 esac
8690e634 11301
88b48903
WN
11302 case "$host_os" in
11303 mingw*)
11304 gl_dirsep_regex='[/\\]'
11305 ;;
11306 *)
11307 gl_dirsep_regex='\/'
11308 ;;
11309 esac
11310 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
8690e634 11311
88b48903
WN
11312 gl_header_literal_regex=`echo 'math.h' \
11313 | sed -e "$gl_make_literal_regex_sed"`
11314 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11315 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11316 s|^/[^/]|//&|
11317 p
11318 q
11319 }'
11320 gl_cv_next_math_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11321 sed -n "$gl_absolute_header_sed"`'"'
11322 else
11323 gl_cv_next_math_h='<'math.h'>'
11324 fi
8690e634 11325
c971b7fa 11326
88b48903
WN
11327fi
11328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
11329$as_echo "$gl_cv_next_math_h" >&6; }
11330 fi
11331 NEXT_MATH_H=$gl_cv_next_math_h
c971b7fa 11332
88b48903
WN
11333 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11334 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11335 gl_next_as_first_directive='<'math.h'>'
11336 else
11337 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11338 gl_next_as_first_directive=$gl_cv_next_math_h
11339 fi
11340 NEXT_AS_FIRST_DIRECTIVE_MATH_H=$gl_next_as_first_directive
8690e634 11341
c971b7fa 11342
c971b7fa
PA
11343
11344
c971b7fa 11345
88b48903
WN
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
11347$as_echo_n "checking whether NAN macro works... " >&6; }
11348if test "${gl_cv_header_math_nan_works+set}" = set; then :
c971b7fa
PA
11349 $as_echo_n "(cached) " >&6
11350else
8690e634
JK
11351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11352/* end confdefs.h. */
88b48903 11353#include <math.h>
c971b7fa
PA
11354int
11355main ()
11356{
88b48903
WN
11357/* Solaris 10 has a broken definition of NAN. Other platforms
11358 fail to provide NAN, or provide it only in C99 mode; this
11359 test only needs to fail when NAN is provided but wrong. */
11360 float f = 1.0f;
11361#ifdef NAN
11362 f = NAN;
11363#endif
11364 return f == 0;
c971b7fa
PA
11365 ;
11366 return 0;
11367}
11368_ACEOF
11369if ac_fn_c_try_compile "$LINENO"; then :
88b48903 11370 gl_cv_header_math_nan_works=yes
8690e634 11371else
88b48903 11372 gl_cv_header_math_nan_works=no
c971b7fa
PA
11373fi
11374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c971b7fa 11375fi
88b48903
WN
11376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
11377$as_echo "$gl_cv_header_math_nan_works" >&6; }
11378 if test $gl_cv_header_math_nan_works = no; then
11379 REPLACE_NAN=1
c971b7fa 11380 fi
88b48903
WN
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
11382$as_echo_n "checking whether HUGE_VAL works... " >&6; }
11383if test "${gl_cv_header_math_huge_val_works+set}" = set; then :
c971b7fa
PA
11384 $as_echo_n "(cached) " >&6
11385else
8690e634 11386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa 11387/* end confdefs.h. */
88b48903 11388#include <math.h>
c971b7fa
PA
11389int
11390main ()
11391{
88b48903
WN
11392/* Solaris 10 has a broken definition of HUGE_VAL. */
11393 double d = HUGE_VAL;
11394 return d == 0;
c971b7fa
PA
11395 ;
11396 return 0;
11397}
11398_ACEOF
11399if ac_fn_c_try_compile "$LINENO"; then :
88b48903 11400 gl_cv_header_math_huge_val_works=yes
8690e634 11401else
88b48903 11402 gl_cv_header_math_huge_val_works=no
c971b7fa
PA
11403fi
11404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c971b7fa 11405fi
88b48903
WN
11406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
11407$as_echo "$gl_cv_header_math_huge_val_works" >&6; }
11408 if test $gl_cv_header_math_huge_val_works = no; then
11409 REPLACE_HUGE_VAL=1
8690e634 11410 fi
c971b7fa 11411
c971b7fa 11412
88b48903
WN
11413 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
11414 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
11416$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
11417if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
8690e634
JK
11418 $as_echo_n "(cached) " >&6
11419else
11420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11421/* end confdefs.h. */
88b48903 11422#include <math.h>
8690e634
JK
11423int
11424main ()
11425{
88b48903
WN
11426#undef $gl_func
11427 (void) $gl_func;
8690e634
JK
11428 ;
11429 return 0;
11430}
11431_ACEOF
11432if ac_fn_c_try_compile "$LINENO"; then :
88b48903 11433 eval "$as_gl_Symbol=yes"
c971b7fa 11434else
88b48903 11435 eval "$as_gl_Symbol=no"
c971b7fa 11436fi
8690e634
JK
11437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11438fi
88b48903
WN
11439eval ac_res=\$$as_gl_Symbol
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11441$as_echo "$ac_res" >&6; }
11442 eval as_val=\$$as_gl_Symbol
11443 if test "x$as_val" = x""yes; then :
11444 cat >>confdefs.h <<_ACEOF
11445#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
11446_ACEOF
c971b7fa 11447
88b48903
WN
11448 eval ac_cv_have_decl_$gl_func=yes
11449fi
11450 done
c971b7fa
PA
11451
11452
11453
11454
11455
c971b7fa 11456
c971b7fa 11457
c971b7fa 11458
c971b7fa
PA
11459
11460
c971b7fa 11461
8690e634
JK
11462
11463 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
11464
11465
11466
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
11468$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
11469if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
c971b7fa
PA
11470 $as_echo_n "(cached) " >&6
11471else
8690e634
JK
11472
11473 case "$host_os" in
11474 # Guess no on AIX and OSF/1.
11475 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
11476 # Guess yes otherwise.
11477 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
11478 esac
11479 if test $LOCALE_JA != none; then
11480 if test "$cross_compiling" = yes; then :
11481 :
11482else
c971b7fa
PA
11483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11484/* end confdefs.h. */
c971b7fa 11485
8690e634
JK
11486#include <locale.h>
11487#include <string.h>
11488/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11489 <wchar.h>.
11490 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11491 included before <wchar.h>. */
11492#include <stddef.h>
11493#include <stdio.h>
11494#include <time.h>
11495#include <wchar.h>
11496int main ()
c971b7fa 11497{
8690e634
JK
11498 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
11499 {
11500 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
11501 mbstate_t state;
11502 wchar_t wc;
11503
11504 memset (&state, '\0', sizeof (mbstate_t));
11505 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
11506 if (mbsinit (&state))
11507 return 1;
11508 }
c971b7fa
PA
11509 return 0;
11510}
11511_ACEOF
8690e634
JK
11512if ac_fn_c_try_run "$LINENO"; then :
11513 gl_cv_func_mbrtowc_incomplete_state=yes
c971b7fa 11514else
8690e634 11515 gl_cv_func_mbrtowc_incomplete_state=no
c971b7fa 11516fi
8690e634
JK
11517rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11518 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 11519fi
c971b7fa 11520
8690e634 11521 fi
c971b7fa 11522
8690e634
JK
11523fi
11524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
11525$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
c971b7fa 11526
c971b7fa 11527
c971b7fa 11528
c971b7fa 11529
8690e634
JK
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
11531$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
11532if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
c971b7fa
PA
11533 $as_echo_n "(cached) " >&6
11534else
11535
8690e634
JK
11536 case "$host_os" in
11537 # Guess no on Solaris 8.
11538 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
11539 # Guess yes otherwise.
11540 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
11541 esac
11542 if test $LOCALE_ZH_CN != none; then
11543 if test "$cross_compiling" = yes; then :
11544 :
11545else
11546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa
PA
11547/* end confdefs.h. */
11548
8690e634
JK
11549#include <locale.h>
11550#include <stdlib.h>
11551#include <string.h>
11552/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11553 <wchar.h>.
11554 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11555 included before <wchar.h>. */
11556#include <stddef.h>
11557#include <stdio.h>
11558#include <time.h>
11559#include <wchar.h>
11560int main ()
c971b7fa 11561{
8690e634
JK
11562 /* This fails on Solaris 8:
11563 mbrtowc returns 2, and sets wc to 0x00F0.
11564 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
11565 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
11566 {
11567 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
11568 mbstate_t state;
11569 wchar_t wc;
11570
11571 memset (&state, '\0', sizeof (mbstate_t));
11572 if (mbrtowc (&wc, input + 3, 6, &state) != 4
11573 && mbtowc (&wc, input + 3, 6) == 4)
11574 return 1;
11575 }
c971b7fa
PA
11576 return 0;
11577}
11578_ACEOF
8690e634
JK
11579if ac_fn_c_try_run "$LINENO"; then :
11580 gl_cv_func_mbrtowc_sanitycheck=yes
c971b7fa 11581else
8690e634 11582 gl_cv_func_mbrtowc_sanitycheck=no
c971b7fa 11583fi
8690e634
JK
11584rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11585 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 11586fi
c971b7fa 11587
8690e634 11588 fi
c971b7fa 11589
8690e634
JK
11590fi
11591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
11592$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
11593
11594 REPLACE_MBSTATE_T=0
11595 case "$gl_cv_func_mbrtowc_incomplete_state" in
11596 *yes) ;;
11597 *) REPLACE_MBSTATE_T=1 ;;
11598 esac
11599 case "$gl_cv_func_mbrtowc_sanitycheck" in
11600 *yes) ;;
11601 *) REPLACE_MBSTATE_T=1 ;;
11602 esac
c971b7fa 11603 else
8690e634 11604 REPLACE_MBSTATE_T=1
c971b7fa
PA
11605 fi
11606
11607
11608
8690e634
JK
11609 if test $ac_cv_func_mbrtowc = no; then
11610 HAVE_MBRTOWC=0
11611 ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
11612/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11613 <wchar.h>.
11614 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11615 included before <wchar.h>. */
11616#include <stddef.h>
11617#include <stdio.h>
11618#include <time.h>
11619#include <wchar.h>
c971b7fa 11620
8690e634
JK
11621"
11622if test "x$ac_cv_have_decl_mbrtowc" = x""yes; then :
11623 ac_have_decl=1
11624else
11625 ac_have_decl=0
c971b7fa 11626fi
c971b7fa 11627
8690e634
JK
11628cat >>confdefs.h <<_ACEOF
11629#define HAVE_DECL_MBRTOWC $ac_have_decl
11630_ACEOF
c971b7fa 11631
8690e634
JK
11632 if test $ac_cv_have_decl_mbrtowc = yes; then
11633 REPLACE_MBRTOWC=1
11634 fi
11635 else
11636 if test $REPLACE_MBSTATE_T = 1; then
11637 REPLACE_MBRTOWC=1
11638 else
c971b7fa
PA
11639
11640
11641
8690e634
JK
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
11643$as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
11644if test "${gl_cv_func_mbrtowc_null_arg1+set}" = set; then :
11645 $as_echo_n "(cached) " >&6
c971b7fa 11646else
c971b7fa 11647
8690e634
JK
11648 case "$host_os" in
11649 # Guess no on Solaris.
11650 solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
11651 # Guess yes otherwise.
11652 *) gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
11653 esac
11654 if test $LOCALE_FR_UTF8 != none; then
11655 if test "$cross_compiling" = yes; then :
11656 :
11657else
11658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa
PA
11659/* end confdefs.h. */
11660
8690e634
JK
11661#include <locale.h>
11662#include <stdlib.h>
11663#include <string.h>
11664/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11665 <wchar.h>.
11666 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11667 included before <wchar.h>. */
11668#include <stddef.h>
11669#include <stdio.h>
11670#include <time.h>
11671#include <wchar.h>
11672int main ()
11673{
11674 int result = 0;
11675
11676 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
11677 {
11678 char input[] = "\303\237er";
11679 mbstate_t state;
11680 wchar_t wc;
11681 size_t ret;
11682
11683 memset (&state, '\0', sizeof (mbstate_t));
11684 wc = (wchar_t) 0xBADFACE;
11685 ret = mbrtowc (&wc, input, 5, &state);
11686 if (ret != 2)
11687 result |= 1;
11688 if (!mbsinit (&state))
11689 result |= 2;
c971b7fa 11690
8690e634
JK
11691 memset (&state, '\0', sizeof (mbstate_t));
11692 ret = mbrtowc (NULL, input, 5, &state);
11693 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
11694 result |= 4;
11695 if (!mbsinit (&state))
11696 result |= 8;
11697 }
11698 return result;
11699}
c971b7fa 11700_ACEOF
8690e634
JK
11701if ac_fn_c_try_run "$LINENO"; then :
11702 gl_cv_func_mbrtowc_null_arg1=yes
11703else
11704 gl_cv_func_mbrtowc_null_arg1=no
11705fi
11706rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11707 conftest.$ac_objext conftest.beam conftest.$ac_ext
11708fi
c971b7fa 11709
8690e634 11710 fi
c971b7fa 11711
c971b7fa 11712fi
8690e634
JK
11713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
11714$as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
c971b7fa 11715
c971b7fa 11716
c971b7fa 11717
c971b7fa 11718
8690e634
JK
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
11720$as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
11721if test "${gl_cv_func_mbrtowc_null_arg2+set}" = set; then :
11722 $as_echo_n "(cached) " >&6
11723else
c971b7fa 11724
8690e634
JK
11725 case "$host_os" in
11726 # Guess no on OSF/1.
11727 osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
11728 # Guess yes otherwise.
11729 *) gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
11730 esac
11731 if test $LOCALE_FR_UTF8 != none; then
11732 if test "$cross_compiling" = yes; then :
c971b7fa 11733 :
8690e634
JK
11734else
11735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11736/* end confdefs.h. */
11737
11738#include <locale.h>
11739#include <string.h>
11740/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11741 <wchar.h>.
11742 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11743 included before <wchar.h>. */
11744#include <stddef.h>
11745#include <stdio.h>
11746#include <time.h>
11747#include <wchar.h>
11748int main ()
11749{
11750 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
11751 {
11752 mbstate_t state;
11753 wchar_t wc;
11754 int ret;
11755
11756 memset (&state, '\0', sizeof (mbstate_t));
11757 wc = (wchar_t) 0xBADFACE;
11758 mbrtowc (&wc, NULL, 5, &state);
11759 /* Check that wc was not modified. */
11760 if (wc != (wchar_t) 0xBADFACE)
11761 return 1;
11762 }
11763 return 0;
11764}
11765_ACEOF
11766if ac_fn_c_try_run "$LINENO"; then :
11767 gl_cv_func_mbrtowc_null_arg2=yes
11768else
11769 gl_cv_func_mbrtowc_null_arg2=no
11770fi
11771rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11772 conftest.$ac_objext conftest.beam conftest.$ac_ext
11773fi
11774
11775 fi
11776
11777fi
11778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
11779$as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
c971b7fa
PA
11780
11781
11782
11783
11784
11785
8690e634
JK
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
11787$as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
11788if test "${gl_cv_func_mbrtowc_retval+set}" = set; then :
11789 $as_echo_n "(cached) " >&6
11790else
11791
11792 case "$host_os" in
11793 # Guess no on HP-UX, Solaris, native Windows.
11794 hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
11795 # Guess yes otherwise.
11796 *) gl_cv_func_mbrtowc_retval="guessing yes" ;;
11797 esac
11798 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
11799 || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
11800 if test "$cross_compiling" = yes; then :
c971b7fa 11801 :
8690e634
JK
11802else
11803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11804/* end confdefs.h. */
c971b7fa 11805
8690e634
JK
11806#include <locale.h>
11807#include <string.h>
11808/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11809 <wchar.h>.
11810 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11811 included before <wchar.h>. */
11812#include <stddef.h>
11813#include <stdio.h>
11814#include <time.h>
11815#include <wchar.h>
11816int main ()
11817{
11818 int result = 0;
11819 int found_some_locale = 0;
11820 /* This fails on Solaris. */
11821 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
11822 {
11823 char input[] = "B\303\274\303\237er"; /* "Büßer" */
11824 mbstate_t state;
11825 wchar_t wc;
11826
11827 memset (&state, '\0', sizeof (mbstate_t));
11828 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
11829 {
11830 input[1] = '\0';
11831 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
11832 result |= 1;
11833 }
11834 found_some_locale = 1;
11835 }
11836 /* This fails on HP-UX 11.11. */
11837 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
11838 {
11839 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
11840 mbstate_t state;
11841 wchar_t wc;
11842
11843 memset (&state, '\0', sizeof (mbstate_t));
11844 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
11845 {
11846 input[1] = '\0';
11847 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
11848 result |= 2;
11849 }
11850 found_some_locale = 1;
11851 }
11852 /* This fails on native Windows. */
11853 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
11854 {
11855 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
11856 mbstate_t state;
11857 wchar_t wc;
11858
11859 memset (&state, '\0', sizeof (mbstate_t));
11860 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
11861 {
11862 input[3] = '\0';
11863 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
11864 result |= 4;
11865 }
11866 found_some_locale = 1;
11867 }
11868 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
11869 {
11870 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
11871 mbstate_t state;
11872 wchar_t wc;
11873
11874 memset (&state, '\0', sizeof (mbstate_t));
11875 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
11876 {
11877 input[3] = '\0';
11878 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
11879 result |= 8;
11880 }
11881 found_some_locale = 1;
11882 }
11883 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
11884 {
11885 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
11886 mbstate_t state;
11887 wchar_t wc;
11888
11889 memset (&state, '\0', sizeof (mbstate_t));
11890 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
11891 {
11892 input[3] = '\0';
11893 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
11894 result |= 16;
11895 }
11896 found_some_locale = 1;
11897 }
11898 return (found_some_locale ? result : 77);
11899}
11900_ACEOF
11901if ac_fn_c_try_run "$LINENO"; then :
11902 gl_cv_func_mbrtowc_retval=yes
11903else
11904 if test $? != 77; then
11905 gl_cv_func_mbrtowc_retval=no
11906 fi
c971b7fa 11907
8690e634
JK
11908fi
11909rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11910 conftest.$ac_objext conftest.beam conftest.$ac_ext
11911fi
c971b7fa 11912
8690e634 11913 fi
c971b7fa 11914
8690e634
JK
11915fi
11916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
11917$as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
c971b7fa
PA
11918
11919
11920
11921
8690e634
JK
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
11923$as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
11924if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then :
c971b7fa
PA
11925 $as_echo_n "(cached) " >&6
11926else
8690e634
JK
11927
11928 case "$host_os" in
11929 # Guess no on Solaris 8 and 9.
11930 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
11931 # Guess yes otherwise.
11932 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
11933 esac
11934 if test $LOCALE_ZH_CN != none; then
11935 if test "$cross_compiling" = yes; then :
11936 :
c971b7fa
PA
11937else
11938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11939/* end confdefs.h. */
11940
8690e634 11941#include <locale.h>
c971b7fa 11942#include <string.h>
8690e634
JK
11943/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11944 <wchar.h>.
11945 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11946 included before <wchar.h>. */
11947#include <stddef.h>
11948#include <stdio.h>
11949#include <time.h>
11950#include <wchar.h>
11951int main ()
c971b7fa 11952{
8690e634
JK
11953 /* This fails on Solaris 8 and 9. */
11954 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
c971b7fa 11955 {
8690e634
JK
11956 mbstate_t state;
11957 wchar_t wc;
c971b7fa 11958
8690e634
JK
11959 memset (&state, '\0', sizeof (mbstate_t));
11960 if (mbrtowc (&wc, "", 1, &state) != 0)
11961 return 1;
11962 }
c971b7fa
PA
11963 return 0;
11964}
11965_ACEOF
11966if ac_fn_c_try_run "$LINENO"; then :
8690e634 11967 gl_cv_func_mbrtowc_nul_retval=yes
c971b7fa 11968else
8690e634 11969 gl_cv_func_mbrtowc_nul_retval=no
c971b7fa
PA
11970fi
11971rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11972 conftest.$ac_objext conftest.beam conftest.$ac_ext
11973fi
11974
8690e634
JK
11975 fi
11976
c971b7fa 11977fi
8690e634
JK
11978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
11979$as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
11980
11981 case "$gl_cv_func_mbrtowc_null_arg1" in
11982 *yes) ;;
11983 *)
11984$as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
11985
11986 REPLACE_MBRTOWC=1
11987 ;;
11988 esac
11989 case "$gl_cv_func_mbrtowc_null_arg2" in
11990 *yes) ;;
11991 *)
11992$as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
11993
11994 REPLACE_MBRTOWC=1
11995 ;;
11996 esac
11997 case "$gl_cv_func_mbrtowc_retval" in
11998 *yes) ;;
11999 *)
12000$as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
12001
12002 REPLACE_MBRTOWC=1
12003 ;;
12004 esac
12005 case "$gl_cv_func_mbrtowc_nul_retval" in
12006 *yes) ;;
12007 *)
12008$as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
12009
12010 REPLACE_MBRTOWC=1
12011 ;;
12012 esac
c971b7fa
PA
12013 fi
12014 fi
12015
a512b375 12016 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
c971b7fa 12017
c971b7fa 12018
c971b7fa
PA
12019
12020
12021
12022
12023
12024
8690e634
JK
12025 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
12026
12027
12028 :
c971b7fa 12029
a512b375 12030 fi
c971b7fa 12031
8690e634
JK
12032
12033
12034
12035
12036 GNULIB_MBRTOWC=1
12037
12038
12039
12040
12041
12042$as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
c971b7fa 12055
c971b7fa 12056
8690e634 12057 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
c971b7fa 12058
8690e634
JK
12059
12060
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
12062$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
12063if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
12064 $as_echo_n "(cached) " >&6
12065else
12066
12067 case "$host_os" in
12068 # Guess no on AIX and OSF/1.
12069 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
12070 # Guess yes otherwise.
12071 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
12072 esac
12073 if test $LOCALE_JA != none; then
12074 if test "$cross_compiling" = yes; then :
12075 :
c971b7fa
PA
12076else
12077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12078/* end confdefs.h. */
12079
8690e634
JK
12080#include <locale.h>
12081#include <string.h>
12082/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12083 <wchar.h>.
12084 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12085 included before <wchar.h>. */
12086#include <stddef.h>
12087#include <stdio.h>
12088#include <time.h>
12089#include <wchar.h>
12090int main ()
c971b7fa 12091{
8690e634 12092 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
c971b7fa 12093 {
8690e634
JK
12094 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
12095 mbstate_t state;
12096 wchar_t wc;
12097
12098 memset (&state, '\0', sizeof (mbstate_t));
12099 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
12100 if (mbsinit (&state))
12101 return 1;
c971b7fa 12102 }
c971b7fa
PA
12103 return 0;
12104}
12105_ACEOF
12106if ac_fn_c_try_run "$LINENO"; then :
8690e634 12107 gl_cv_func_mbrtowc_incomplete_state=yes
c971b7fa 12108else
8690e634 12109 gl_cv_func_mbrtowc_incomplete_state=no
c971b7fa
PA
12110fi
12111rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12112 conftest.$ac_objext conftest.beam conftest.$ac_ext
12113fi
12114
8690e634 12115 fi
c971b7fa
PA
12116
12117fi
8690e634
JK
12118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
12119$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
c971b7fa
PA
12120
12121
c971b7fa
PA
12122
12123
8690e634
JK
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
12125$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
12126if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
c971b7fa
PA
12127 $as_echo_n "(cached) " >&6
12128else
8690e634
JK
12129
12130 case "$host_os" in
12131 # Guess no on Solaris 8.
12132 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
12133 # Guess yes otherwise.
12134 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
12135 esac
12136 if test $LOCALE_ZH_CN != none; then
12137 if test "$cross_compiling" = yes; then :
12138 :
12139else
c971b7fa
PA
12140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12141/* end confdefs.h. */
8690e634
JK
12142
12143#include <locale.h>
12144#include <stdlib.h>
12145#include <string.h>
12146/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12147 <wchar.h>.
12148 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12149 included before <wchar.h>. */
c971b7fa 12150#include <stddef.h>
8690e634
JK
12151#include <stdio.h>
12152#include <time.h>
12153#include <wchar.h>
12154int main ()
c971b7fa 12155{
8690e634
JK
12156 /* This fails on Solaris 8:
12157 mbrtowc returns 2, and sets wc to 0x00F0.
12158 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
12159 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
12160 {
12161 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
12162 mbstate_t state;
12163 wchar_t wc;
12164
12165 memset (&state, '\0', sizeof (mbstate_t));
12166 if (mbrtowc (&wc, input + 3, 6, &state) != 4
12167 && mbtowc (&wc, input + 3, 6) == 4)
12168 return 1;
12169 }
c971b7fa
PA
12170 return 0;
12171}
12172_ACEOF
8690e634
JK
12173if ac_fn_c_try_run "$LINENO"; then :
12174 gl_cv_func_mbrtowc_sanitycheck=yes
c971b7fa 12175else
8690e634 12176 gl_cv_func_mbrtowc_sanitycheck=no
c971b7fa 12177fi
8690e634
JK
12178rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12179 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 12180fi
c971b7fa 12181
8690e634
JK
12182 fi
12183
12184fi
12185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
12186$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
c971b7fa 12187
8690e634
JK
12188 REPLACE_MBSTATE_T=0
12189 case "$gl_cv_func_mbrtowc_incomplete_state" in
12190 *yes) ;;
12191 *) REPLACE_MBSTATE_T=1 ;;
12192 esac
12193 case "$gl_cv_func_mbrtowc_sanitycheck" in
12194 *yes) ;;
12195 *) REPLACE_MBSTATE_T=1 ;;
12196 esac
12197 else
12198 REPLACE_MBSTATE_T=1
c971b7fa
PA
12199 fi
12200
c971b7fa 12201
8690e634 12202
8690e634
JK
12203 if test $ac_cv_func_mbsinit = no; then
12204 HAVE_MBSINIT=0
12205 ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
12206/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12207 <wchar.h>.
12208 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12209 included before <wchar.h>. */
12210#include <stddef.h>
12211#include <stdio.h>
12212#include <time.h>
12213#include <wchar.h>
12214
12215"
12216if test "x$ac_cv_have_decl_mbsinit" = x""yes; then :
12217 ac_have_decl=1
12218else
12219 ac_have_decl=0
c971b7fa 12220fi
c971b7fa 12221
8690e634
JK
12222cat >>confdefs.h <<_ACEOF
12223#define HAVE_DECL_MBSINIT $ac_have_decl
c971b7fa 12224_ACEOF
c971b7fa 12225
8690e634
JK
12226 if test $ac_cv_have_decl_mbsinit = yes; then
12227 REPLACE_MBSINIT=1
12228 fi
12229 else
12230 if test $REPLACE_MBSTATE_T = 1; then
12231 REPLACE_MBSINIT=1
12232 else
12233 case "$host_os" in
12234 mingw*) REPLACE_MBSINIT=1 ;;
12235 esac
12236 fi
12237 fi
c971b7fa 12238
a512b375 12239 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
c971b7fa
PA
12240
12241
12242
12243
12244
12245
12246
12247
8690e634 12248 gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
c971b7fa
PA
12249
12250
8690e634 12251 :
c971b7fa 12252
a512b375 12253 fi
c971b7fa 12254
c971b7fa 12255
c971b7fa 12256
c971b7fa
PA
12257
12258
8690e634 12259 GNULIB_MBSINIT=1
c971b7fa 12260
c971b7fa
PA
12261
12262
12263
12264
8690e634 12265$as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
c971b7fa
PA
12266
12267
c971b7fa 12268
c971b7fa 12269
c971b7fa
PA
12270
12271
12272
c971b7fa 12273
c971b7fa
PA
12274
12275
12276
12277
8690e634
JK
12278
12279 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
c971b7fa
PA
12280
12281
12282
8690e634
JK
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
12284$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
12285if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
12286 $as_echo_n "(cached) " >&6
12287else
c971b7fa 12288
8690e634
JK
12289 case "$host_os" in
12290 # Guess no on AIX and OSF/1.
12291 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
12292 # Guess yes otherwise.
12293 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
c971b7fa 12294 esac
8690e634
JK
12295 if test $LOCALE_JA != none; then
12296 if test "$cross_compiling" = yes; then :
12297 :
12298else
12299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa 12300/* end confdefs.h. */
c971b7fa 12301
8690e634
JK
12302#include <locale.h>
12303#include <string.h>
12304/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12305 <wchar.h>.
12306 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12307 included before <wchar.h>. */
12308#include <stddef.h>
12309#include <stdio.h>
12310#include <time.h>
12311#include <wchar.h>
12312int main ()
12313{
12314 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
12315 {
12316 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
12317 mbstate_t state;
12318 wchar_t wc;
12319
12320 memset (&state, '\0', sizeof (mbstate_t));
12321 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
12322 if (mbsinit (&state))
12323 return 1;
12324 }
c971b7fa
PA
12325 return 0;
12326}
12327_ACEOF
8690e634
JK
12328if ac_fn_c_try_run "$LINENO"; then :
12329 gl_cv_func_mbrtowc_incomplete_state=yes
12330else
12331 gl_cv_func_mbrtowc_incomplete_state=no
12332fi
12333rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12334 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 12335fi
c971b7fa 12336
8690e634 12337 fi
c971b7fa 12338
8690e634
JK
12339fi
12340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
12341$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
c971b7fa 12342
8690e634
JK
12343
12344
12345
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
12347$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
12348if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
c971b7fa
PA
12349 $as_echo_n "(cached) " >&6
12350else
8690e634
JK
12351
12352 case "$host_os" in
12353 # Guess no on Solaris 8.
12354 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
12355 # Guess yes otherwise.
12356 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
12357 esac
12358 if test $LOCALE_ZH_CN != none; then
12359 if test "$cross_compiling" = yes; then :
12360 :
12361else
c971b7fa
PA
12362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12363/* end confdefs.h. */
c971b7fa 12364
8690e634
JK
12365#include <locale.h>
12366#include <stdlib.h>
12367#include <string.h>
12368/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12369 <wchar.h>.
12370 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12371 included before <wchar.h>. */
12372#include <stddef.h>
12373#include <stdio.h>
12374#include <time.h>
12375#include <wchar.h>
12376int main ()
c971b7fa 12377{
8690e634
JK
12378 /* This fails on Solaris 8:
12379 mbrtowc returns 2, and sets wc to 0x00F0.
12380 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
12381 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
12382 {
12383 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
12384 mbstate_t state;
12385 wchar_t wc;
12386
12387 memset (&state, '\0', sizeof (mbstate_t));
12388 if (mbrtowc (&wc, input + 3, 6, &state) != 4
12389 && mbtowc (&wc, input + 3, 6) == 4)
12390 return 1;
12391 }
c971b7fa
PA
12392 return 0;
12393}
12394_ACEOF
8690e634
JK
12395if ac_fn_c_try_run "$LINENO"; then :
12396 gl_cv_func_mbrtowc_sanitycheck=yes
c971b7fa 12397else
8690e634 12398 gl_cv_func_mbrtowc_sanitycheck=no
c971b7fa 12399fi
8690e634
JK
12400rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12401 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 12402fi
8690e634
JK
12403
12404 fi
12405
12406fi
12407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
12408$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
12409
12410 REPLACE_MBSTATE_T=0
12411 case "$gl_cv_func_mbrtowc_incomplete_state" in
12412 *yes) ;;
12413 *) REPLACE_MBSTATE_T=1 ;;
12414 esac
12415 case "$gl_cv_func_mbrtowc_sanitycheck" in
12416 *yes) ;;
12417 *) REPLACE_MBSTATE_T=1 ;;
12418 esac
c971b7fa 12419 else
8690e634 12420 REPLACE_MBSTATE_T=1
c971b7fa
PA
12421 fi
12422
12423
c971b7fa 12424
8690e634
JK
12425 if test $ac_cv_func_mbsrtowcs = no; then
12426 HAVE_MBSRTOWCS=0
12427 ac_fn_c_check_decl "$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
12428/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12429 <wchar.h>.
12430 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12431 included before <wchar.h>. */
12432#include <stddef.h>
12433#include <stdio.h>
12434#include <time.h>
12435#include <wchar.h>
12436
12437"
12438if test "x$ac_cv_have_decl_mbsrtowcs" = x""yes; then :
12439 ac_have_decl=1
c971b7fa 12440else
8690e634 12441 ac_have_decl=0
c971b7fa 12442fi
c971b7fa 12443
8690e634
JK
12444cat >>confdefs.h <<_ACEOF
12445#define HAVE_DECL_MBSRTOWCS $ac_have_decl
12446_ACEOF
c971b7fa 12447
8690e634
JK
12448 if test $ac_cv_have_decl_mbsrtowcs = yes; then
12449 REPLACE_MBSRTOWCS=1
12450 fi
c971b7fa 12451 else
8690e634
JK
12452 if test $REPLACE_MBSTATE_T = 1; then
12453 REPLACE_MBSRTOWCS=1
12454 else
c971b7fa 12455
8690e634
JK
12456
12457
12458
12459
12460
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
12462$as_echo_n "checking whether mbsrtowcs works... " >&6; }
12463if test "${gl_cv_func_mbsrtowcs_works+set}" = set; then :
c971b7fa
PA
12464 $as_echo_n "(cached) " >&6
12465else
8690e634
JK
12466
12467 case "$host_os" in
12468 # Guess no on HP-UX, Solaris, mingw.
12469 hpux* | solaris* | mingw*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
12470 # Guess yes otherwise.
12471 *) gl_cv_func_mbsrtowcs_works="guessing yes" ;;
12472 esac
12473 if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
12474 if test "$cross_compiling" = yes; then :
12475 :
12476else
c971b7fa
PA
12477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12478/* end confdefs.h. */
c971b7fa 12479
8690e634
JK
12480#include <locale.h>
12481#include <string.h>
12482/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12483 <wchar.h>.
12484 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12485 included before <wchar.h>. */
12486#include <stddef.h>
12487#include <stdio.h>
12488#include <time.h>
12489#include <wchar.h>
12490int main ()
c971b7fa 12491{
8690e634
JK
12492 int result = 0;
12493 /* Test whether the function supports a NULL destination argument.
12494 This fails on native Windows. */
12495 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
12496 {
12497 const char input[] = "\337er";
12498 const char *src = input;
12499 mbstate_t state;
c971b7fa 12500
8690e634
JK
12501 memset (&state, '\0', sizeof (mbstate_t));
12502 if (mbsrtowcs (NULL, &src, 1, &state) != 3
12503 || src != input)
12504 result |= 1;
12505 }
12506 /* Test whether the function works when started with a conversion state
12507 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
12508 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
12509 {
12510 const char input[] = "B\303\274\303\237er";
12511 mbstate_t state;
12512
12513 memset (&state, '\0', sizeof (mbstate_t));
12514 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
12515 if (!mbsinit (&state))
12516 {
12517 const char *src = input + 2;
12518 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
12519 result |= 2;
12520 }
12521 }
12522 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
12523 {
12524 const char input[] = "<\306\374\313\334\270\354>";
12525 mbstate_t state;
12526
12527 memset (&state, '\0', sizeof (mbstate_t));
12528 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
12529 if (!mbsinit (&state))
12530 {
12531 const char *src = input + 4;
12532 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
12533 result |= 4;
12534 }
12535 }
12536 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
12537 {
12538 const char input[] = "B\250\271\201\060\211\070er";
12539 mbstate_t state;
12540
12541 memset (&state, '\0', sizeof (mbstate_t));
12542 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
12543 if (!mbsinit (&state))
12544 {
12545 const char *src = input + 2;
12546 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
12547 result |= 8;
12548 }
12549 }
12550 return result;
c971b7fa
PA
12551}
12552_ACEOF
8690e634
JK
12553if ac_fn_c_try_run "$LINENO"; then :
12554 gl_cv_func_mbsrtowcs_works=yes
c971b7fa 12555else
8690e634 12556 gl_cv_func_mbsrtowcs_works=no
c971b7fa 12557fi
8690e634
JK
12558rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12559 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 12560fi
8690e634
JK
12561
12562 fi
12563
12564fi
12565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
12566$as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
12567
12568 case "$gl_cv_func_mbsrtowcs_works" in
12569 *yes) ;;
12570 *) REPLACE_MBSRTOWCS=1 ;;
12571 esac
12572 fi
c971b7fa
PA
12573 fi
12574
a512b375 12575 if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
c971b7fa 12576
c971b7fa 12577
c971b7fa 12578
c971b7fa 12579
c971b7fa 12580
c971b7fa 12581
c971b7fa
PA
12582
12583
8690e634
JK
12584 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext"
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
12595
12596
12597 :
12598
a512b375 12599 fi
8690e634
JK
12600
12601
12602
12603
12604
12605 GNULIB_MBSRTOWCS=1
12606
12607
12608
12609
12610
12611$as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
c971b7fa
PA
12612
12613
12614
12615
a512b375 12616 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
c971b7fa
PA
12617
12618
12619
12620
12621
12622
12623
12624
12625 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
12626
12627
12628 for ac_header in bp-sym.h
12629do :
12630 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
12631if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
12632 cat >>confdefs.h <<_ACEOF
12633#define HAVE_BP_SYM_H 1
12634_ACEOF
12635
12636fi
12637
12638done
12639
12640
a512b375 12641 fi
c971b7fa
PA
12642
12643
12644
12645
12646
12647 GNULIB_MEMCHR=1
12648
12649
12650
12651
12652
12653$as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
12654
12655
12656
12657
12658
12659 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
12661$as_echo_n "checking whether memmem works in linear time... " >&6; }
12662if test "${gl_cv_func_memmem_works_fast+set}" = set; then :
12663 $as_echo_n "(cached) " >&6
12664else
12665 if test "$cross_compiling" = yes; then :
12666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12667/* end confdefs.h. */
12668
12669#include <features.h>
12670#ifdef __GNU_LIBRARY__
12671 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
12672 && !defined __UCLIBC__
12673 Lucky user
12674 #endif
12675#endif
12676#ifdef __CYGWIN__
12677 #include <cygwin/version.h>
12678 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
12679 Lucky user
12680 #endif
12681#endif
12682
12683_ACEOF
12684if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12685 $EGREP "Lucky user" >/dev/null 2>&1; then :
40a73391 12686 gl_cv_func_memmem_works_fast="guessing yes"
c971b7fa
PA
12687else
12688 gl_cv_func_memmem_works_fast="guessing no"
12689fi
12690rm -f conftest*
12691
12692
12693else
12694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12695/* end confdefs.h. */
12696
12697#include <signal.h> /* for signal */
12698#include <string.h> /* for memmem */
12699#include <stdlib.h> /* for malloc */
12700#include <unistd.h> /* for alarm */
12701static void quit (int sig) { exit (sig + 128); }
12702
12703int
12704main ()
12705{
12706
12707 int result = 0;
12708 size_t m = 1000000;
12709 char *haystack = (char *) malloc (2 * m + 1);
12710 char *needle = (char *) malloc (m + 1);
12711 /* Failure to compile this test due to missing alarm is okay,
12712 since all such platforms (mingw) also lack memmem. */
12713 signal (SIGALRM, quit);
12714 alarm (5);
12715 /* Check for quadratic performance. */
12716 if (haystack && needle)
12717 {
12718 memset (haystack, 'A', 2 * m);
12719 haystack[2 * m] = 'B';
12720 memset (needle, 'A', m);
12721 needle[m] = 'B';
12722 if (!memmem (haystack, 2 * m + 1, needle, m + 1))
12723 result |= 1;
12724 }
12725 return result;
12726
12727 ;
12728 return 0;
12729}
12730_ACEOF
12731if ac_fn_c_try_run "$LINENO"; then :
12732 gl_cv_func_memmem_works_fast=yes
12733else
12734 gl_cv_func_memmem_works_fast=no
12735fi
12736rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12737 conftest.$ac_objext conftest.beam conftest.$ac_ext
12738fi
12739
12740
12741fi
12742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
12743$as_echo "$gl_cv_func_memmem_works_fast" >&6; }
40a73391
JK
12744 case "$gl_cv_func_memmem_works_fast" in
12745 *yes) ;;
12746 *)
12747 REPLACE_MEMMEM=1
12748 ;;
12749 esac
c971b7fa
PA
12750 fi
12751
a512b375 12752 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
c971b7fa
PA
12753
12754
12755
12756
12757
12758
12759
12760
12761 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
12762
a512b375 12763 fi
c971b7fa
PA
12764
12765
12766
12767
12768 for ac_func in memmem
12769do :
12770 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
12771if test "x$ac_cv_func_memmem" = x""yes; then :
12772 cat >>confdefs.h <<_ACEOF
12773#define HAVE_MEMMEM 1
12774_ACEOF
12775
12776fi
12777done
12778
12779 if test $ac_cv_func_memmem = yes; then
12780 HAVE_MEMMEM=1
12781 else
12782 HAVE_MEMMEM=0
12783 fi
12784
c971b7fa
PA
12785 if test $ac_cv_have_decl_memmem = no; then
12786 HAVE_DECL_MEMMEM=0
12787 else
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
12789$as_echo_n "checking whether memmem works... " >&6; }
12790if test "${gl_cv_func_memmem_works_always+set}" = set; then :
12791 $as_echo_n "(cached) " >&6
12792else
12793 if test "$cross_compiling" = yes; then :
12794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12795/* end confdefs.h. */
12796
12797#ifdef __GNU_LIBRARY__
12798 #include <features.h>
12799 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
12800 || __GLIBC_MINOR__ > 12)) \
12801 || (__GLIBC__ > 2)) \
12802 || defined __UCLIBC__
12803 Lucky user
12804 #endif
12805#elif defined __CYGWIN__
12806 #include <cygwin/version.h>
12807 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
12808 Lucky user
12809 #endif
12810#else
12811 Lucky user
12812#endif
12813
12814_ACEOF
12815if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12816 $EGREP "Lucky user" >/dev/null 2>&1; then :
40a73391 12817 gl_cv_func_memmem_works_always="guessing yes"
c971b7fa
PA
12818else
12819 gl_cv_func_memmem_works_always="guessing no"
12820fi
12821rm -f conftest*
12822
12823
12824else
12825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12826/* end confdefs.h. */
12827
12828#include <string.h> /* for memmem */
12829#define P "_EF_BF_BD"
12830#define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
12831#define NEEDLE P P P P P
12832
12833int
12834main ()
12835{
12836
12837 int result = 0;
12838 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
12839 result |= 1;
12840 /* Check for empty needle behavior. */
12841 {
12842 const char *haystack = "AAA";
12843 if (memmem (haystack, 3, NULL, 0) != haystack)
12844 result |= 2;
12845 }
12846 return result;
12847
12848 ;
12849 return 0;
12850}
12851_ACEOF
12852if ac_fn_c_try_run "$LINENO"; then :
12853 gl_cv_func_memmem_works_always=yes
12854else
12855 gl_cv_func_memmem_works_always=no
12856fi
12857rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12858 conftest.$ac_objext conftest.beam conftest.$ac_ext
12859fi
12860
12861
12862fi
12863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
12864$as_echo "$gl_cv_func_memmem_works_always" >&6; }
40a73391
JK
12865 case "$gl_cv_func_memmem_works_always" in
12866 *yes) ;;
12867 *)
12868 REPLACE_MEMMEM=1
12869 ;;
12870 esac
c971b7fa
PA
12871 fi
12872 :
12873
a512b375 12874 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
c971b7fa
PA
12875
12876
12877
12878
12879
12880
12881
12882
12883 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
12884
a512b375 12885 fi
c971b7fa
PA
12886
12887
12888
12889
12890
12891 GNULIB_MEMMEM=1
12892
12893
12894
12895
12896
8690e634
JK
12897$as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
12898
12899
12900
12901
12902
38ec2207
PA
12903
12904
12905
8839a007
PA
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
12907$as_echo_n "checking for ssize_t... " >&6; }
12908if test "${gt_cv_ssize_t+set}" = set; then :
12909 $as_echo_n "(cached) " >&6
12910else
12911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12912/* end confdefs.h. */
12913#include <sys/types.h>
12914int
12915main ()
12916{
12917int x = sizeof (ssize_t *) + sizeof (ssize_t);
12918 return !x;
12919 ;
12920 return 0;
12921}
12922_ACEOF
12923if ac_fn_c_try_compile "$LINENO"; then :
12924 gt_cv_ssize_t=yes
12925else
12926 gt_cv_ssize_t=no
12927fi
12928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12929fi
12930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
12931$as_echo "$gt_cv_ssize_t" >&6; }
12932 if test $gt_cv_ssize_t = no; then
12933
12934$as_echo "#define ssize_t int" >>confdefs.h
12935
12936 fi
12937
12938
8690e634
JK
12939
12940
12941 # Define two additional variables used in the Makefile substitution.
12942
12943 if test "$ac_cv_header_stdbool_h" = yes; then
12944 STDBOOL_H=''
12945 else
12946 STDBOOL_H='stdbool.h'
12947 fi
12948
12949 if test -n "$STDBOOL_H"; then
12950 GL_GENERATE_STDBOOL_H_TRUE=
12951 GL_GENERATE_STDBOOL_H_FALSE='#'
12952else
12953 GL_GENERATE_STDBOOL_H_TRUE='#'
12954 GL_GENERATE_STDBOOL_H_FALSE=
12955fi
12956
12957
12958 if test "$ac_cv_type__Bool" = yes; then
12959 HAVE__BOOL=1
12960 else
12961 HAVE__BOOL=0
12962 fi
12963
12964
12965
12966
12967
12968 STDDEF_H=
12969 if test $gt_cv_c_wchar_t = no; then
12970 HAVE_WCHAR_T=0
12971 STDDEF_H=stddef.h
12972 fi
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
12974$as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
12975if test "${gl_cv_decl_null_works+set}" = set; then :
12976 $as_echo_n "(cached) " >&6
12977else
12978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12979/* end confdefs.h. */
12980#include <stddef.h>
12981 int test[2 * (sizeof NULL == sizeof (void *)) -1];
12982
12983int
12984main ()
12985{
12986
12987 ;
12988 return 0;
12989}
12990_ACEOF
12991if ac_fn_c_try_compile "$LINENO"; then :
12992 gl_cv_decl_null_works=yes
12993else
12994 gl_cv_decl_null_works=no
12995fi
12996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12997fi
12998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
12999$as_echo "$gl_cv_decl_null_works" >&6; }
13000 if test $gl_cv_decl_null_works = no; then
13001 REPLACE_NULL=1
13002 STDDEF_H=stddef.h
13003 fi
13004
13005 if test -n "$STDDEF_H"; then
13006 GL_GENERATE_STDDEF_H_TRUE=
13007 GL_GENERATE_STDDEF_H_FALSE='#'
13008else
13009 GL_GENERATE_STDDEF_H_TRUE='#'
13010 GL_GENERATE_STDDEF_H_FALSE=
13011fi
13012
13013 if test -n "$STDDEF_H"; then
13014
13015
13016
13017
13018
13019
13020
13021
13022 if test $gl_cv_have_include_next = yes; then
13023 gl_cv_next_stddef_h='<'stddef.h'>'
13024 else
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
13026$as_echo_n "checking absolute name of <stddef.h>... " >&6; }
13027if test "${gl_cv_next_stddef_h+set}" = set; then :
13028 $as_echo_n "(cached) " >&6
13029else
13030
13031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13032/* end confdefs.h. */
13033#include <stddef.h>
13034
13035_ACEOF
13036 case "$host_os" in
13037 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13038 *) gl_absname_cpp="$ac_cpp" ;;
13039 esac
13040
13041 case "$host_os" in
13042 mingw*)
13043 gl_dirsep_regex='[/\\]'
13044 ;;
13045 *)
13046 gl_dirsep_regex='\/'
13047 ;;
13048 esac
13049 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
13050
13051 gl_header_literal_regex=`echo 'stddef.h' \
13052 | sed -e "$gl_make_literal_regex_sed"`
13053 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13054 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13055 s|^/[^/]|//&|
13056 p
13057 q
13058 }'
13059 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13060 sed -n "$gl_absolute_header_sed"`'"'
13061
13062
13063fi
13064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
13065$as_echo "$gl_cv_next_stddef_h" >&6; }
13066 fi
13067 NEXT_STDDEF_H=$gl_cv_next_stddef_h
13068
13069 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13070 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13071 gl_next_as_first_directive='<'stddef.h'>'
13072 else
13073 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13074 gl_next_as_first_directive=$gl_cv_next_stddef_h
13075 fi
13076 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
13077
13078
13079
13080
13081 fi
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092
13093
13094
13095
8690e634 13096
8839a007
PA
13097 if test $gl_cv_have_include_next = yes; then
13098 gl_cv_next_sys_types_h='<'sys/types.h'>'
13099 else
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
13101$as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
13102if test "${gl_cv_next_sys_types_h+set}" = set; then :
13103 $as_echo_n "(cached) " >&6
13104else
13105
13106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13107/* end confdefs.h. */
13108#include <sys/types.h>
13109
13110_ACEOF
13111 case "$host_os" in
13112 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13113 *) gl_absname_cpp="$ac_cpp" ;;
13114 esac
13115
13116 case "$host_os" in
13117 mingw*)
13118 gl_dirsep_regex='[/\\]'
13119 ;;
13120 *)
13121 gl_dirsep_regex='\/'
13122 ;;
13123 esac
13124 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
13125
13126 gl_header_literal_regex=`echo 'sys/types.h' \
13127 | sed -e "$gl_make_literal_regex_sed"`
13128 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13129 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13130 s|^/[^/]|//&|
13131 p
13132 q
13133 }'
13134 gl_cv_next_sys_types_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13135 sed -n "$gl_absolute_header_sed"`'"'
13136
13137
13138fi
13139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
13140$as_echo "$gl_cv_next_sys_types_h" >&6; }
13141 fi
13142 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
13143
13144 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13145 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13146 gl_next_as_first_directive='<'sys/types.h'>'
13147 else
13148 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13149 gl_next_as_first_directive=$gl_cv_next_sys_types_h
13150 fi
13151 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177 if test $gl_cv_have_include_next = yes; then
13178 gl_cv_next_unistd_h='<'unistd.h'>'
13179 else
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
13181$as_echo_n "checking absolute name of <unistd.h>... " >&6; }
13182if test "${gl_cv_next_unistd_h+set}" = set; then :
13183 $as_echo_n "(cached) " >&6
13184else
13185
13186 if test $ac_cv_header_unistd_h = yes; then
13187
13188
13189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13190/* end confdefs.h. */
13191#include <unistd.h>
13192
13193_ACEOF
13194 case "$host_os" in
13195 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13196 *) gl_absname_cpp="$ac_cpp" ;;
13197 esac
13198
13199 case "$host_os" in
13200 mingw*)
13201 gl_dirsep_regex='[/\\]'
13202 ;;
13203 *)
13204 gl_dirsep_regex='\/'
13205 ;;
13206 esac
13207 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
13208
13209 gl_header_literal_regex=`echo 'unistd.h' \
13210 | sed -e "$gl_make_literal_regex_sed"`
13211 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13212 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13213 s|^/[^/]|//&|
13214 p
13215 q
13216 }'
13217 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13218 sed -n "$gl_absolute_header_sed"`'"'
13219 else
13220 gl_cv_next_unistd_h='<'unistd.h'>'
13221 fi
13222
13223
13224fi
13225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
13226$as_echo "$gl_cv_next_unistd_h" >&6; }
13227 fi
13228 NEXT_UNISTD_H=$gl_cv_next_unistd_h
13229
13230 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13231 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13232 gl_next_as_first_directive='<'unistd.h'>'
13233 else
13234 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13235 gl_next_as_first_directive=$gl_cv_next_unistd_h
13236 fi
13237 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
13238
13239
13240
13241
13242 if test $ac_cv_header_unistd_h = yes; then
13243 HAVE_UNISTD_H=1
13244 else
13245 HAVE_UNISTD_H=0
13246 fi
13247
13248
13249
13250
13251
13252
13253
13254 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
13255 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
13257$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
13258if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
13259 $as_echo_n "(cached) " >&6
13260else
13261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13262/* end confdefs.h. */
13263
13264#if HAVE_UNISTD_H
13265# include <unistd.h>
13266#endif
13267/* Some systems declare various items in the wrong headers. */
13268#if !(defined __GLIBC__ && !defined __UCLIBC__)
13269# include <fcntl.h>
13270# include <stdio.h>
13271# include <stdlib.h>
13272# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
13273# include <io.h>
13274# endif
13275#endif
13276
13277int
13278main ()
13279{
13280#undef $gl_func
13281 (void) $gl_func;
13282 ;
13283 return 0;
13284}
13285_ACEOF
13286if ac_fn_c_try_compile "$LINENO"; then :
13287 eval "$as_gl_Symbol=yes"
13288else
13289 eval "$as_gl_Symbol=no"
13290fi
13291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13292fi
13293eval ac_res=\$$as_gl_Symbol
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13295$as_echo "$ac_res" >&6; }
13296 eval as_val=\$$as_gl_Symbol
13297 if test "x$as_val" = x""yes; then :
13298 cat >>confdefs.h <<_ACEOF
13299#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
13300_ACEOF
13301
13302 eval ac_cv_have_decl_$gl_func=yes
13303fi
13304 done
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
8690e634
JK
13317
13318
13319 if test $gl_cv_have_include_next = yes; then
13320 gl_cv_next_wchar_h='<'wchar.h'>'
13321 else
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
13323$as_echo_n "checking absolute name of <wchar.h>... " >&6; }
13324if test "${gl_cv_next_wchar_h+set}" = set; then :
13325 $as_echo_n "(cached) " >&6
13326else
13327
13328 if test $ac_cv_header_wchar_h = yes; then
13329
13330
13331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13332/* end confdefs.h. */
13333#include <wchar.h>
13334
13335_ACEOF
13336 case "$host_os" in
13337 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13338 *) gl_absname_cpp="$ac_cpp" ;;
13339 esac
13340
13341 case "$host_os" in
13342 mingw*)
13343 gl_dirsep_regex='[/\\]'
13344 ;;
13345 *)
13346 gl_dirsep_regex='\/'
13347 ;;
13348 esac
13349 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
13350
13351 gl_header_literal_regex=`echo 'wchar.h' \
13352 | sed -e "$gl_make_literal_regex_sed"`
13353 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13354 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13355 s|^/[^/]|//&|
13356 p
13357 q
13358 }'
13359 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13360 sed -n "$gl_absolute_header_sed"`'"'
13361 else
13362 gl_cv_next_wchar_h='<'wchar.h'>'
13363 fi
13364
13365
13366fi
13367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
13368$as_echo "$gl_cv_next_wchar_h" >&6; }
13369 fi
13370 NEXT_WCHAR_H=$gl_cv_next_wchar_h
13371
13372 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13373 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13374 gl_next_as_first_directive='<'wchar.h'>'
13375 else
13376 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13377 gl_next_as_first_directive=$gl_cv_next_wchar_h
13378 fi
13379 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
13380
13381
13382
13383
13384 if test $ac_cv_header_wchar_h = yes; then
13385 HAVE_WCHAR_H=1
13386 else
13387 HAVE_WCHAR_H=0
13388 fi
13389
c971b7fa
PA
13390
13391
13392
13393
8690e634
JK
13394 if test $gt_cv_c_wint_t = yes; then
13395 HAVE_WINT_T=1
13396 else
13397 HAVE_WINT_T=0
13398 fi
c971b7fa
PA
13399
13400
13401
8690e634
JK
13402 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
13403 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
13405$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
13406if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
c971b7fa
PA
13407 $as_echo_n "(cached) " >&6
13408else
13409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13410/* end confdefs.h. */
8690e634
JK
13411
13412/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13413 <wchar.h>.
13414 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13415 included before <wchar.h>. */
13416#if !(defined __GLIBC__ && !defined __UCLIBC__)
13417# include <stddef.h>
13418# include <stdio.h>
13419# include <time.h>
13420#endif
13421#include <wchar.h>
c971b7fa
PA
13422
13423int
13424main ()
13425{
8690e634
JK
13426#undef $gl_func
13427 (void) $gl_func;
c971b7fa
PA
13428 ;
13429 return 0;
13430}
13431_ACEOF
13432if ac_fn_c_try_compile "$LINENO"; then :
8690e634 13433 eval "$as_gl_Symbol=yes"
c971b7fa 13434else
8690e634 13435 eval "$as_gl_Symbol=no"
c971b7fa
PA
13436fi
13437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13438fi
8690e634
JK
13439eval ac_res=\$$as_gl_Symbol
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13441$as_echo "$ac_res" >&6; }
13442 eval as_val=\$$as_gl_Symbol
13443 if test "x$as_val" = x""yes; then :
13444 cat >>confdefs.h <<_ACEOF
13445#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
13446_ACEOF
c971b7fa 13447
8690e634 13448 eval ac_cv_have_decl_$gl_func=yes
c971b7fa 13449fi
8690e634
JK
13450 done
13451
13452
13453
13454
13455
13456
13457
8690e634
JK
13458 if test $ac_cv_func_iswcntrl = yes; then
13459 HAVE_ISWCNTRL=1
13460 else
13461 HAVE_ISWCNTRL=0
13462 fi
13463
13464
13465
8690e634
JK
13466 if test $gt_cv_c_wint_t = yes; then
13467 HAVE_WINT_T=1
13468 else
13469 HAVE_WINT_T=0
13470 fi
13471
13472
13473
13474
13475
13476
c971b7fa 13477
8690e634 13478
c971b7fa
PA
13479
13480
13481
13482 if test $gl_cv_have_include_next = yes; then
8690e634 13483 gl_cv_next_wctype_h='<'wctype.h'>'
c971b7fa 13484 else
8690e634
JK
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
13486$as_echo_n "checking absolute name of <wctype.h>... " >&6; }
13487if test "${gl_cv_next_wctype_h+set}" = set; then :
c971b7fa
PA
13488 $as_echo_n "(cached) " >&6
13489else
13490
8690e634
JK
13491 if test $ac_cv_header_wctype_h = yes; then
13492
13493
c971b7fa
PA
13494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13495/* end confdefs.h. */
8690e634 13496#include <wctype.h>
c971b7fa
PA
13497
13498_ACEOF
13499 case "$host_os" in
13500 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13501 *) gl_absname_cpp="$ac_cpp" ;;
13502 esac
13503
13504 case "$host_os" in
13505 mingw*)
13506 gl_dirsep_regex='[/\\]'
13507 ;;
13508 *)
13509 gl_dirsep_regex='\/'
13510 ;;
13511 esac
13512 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
13513
8690e634 13514 gl_header_literal_regex=`echo 'wctype.h' \
c971b7fa
PA
13515 | sed -e "$gl_make_literal_regex_sed"`
13516 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13517 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13518 s|^/[^/]|//&|
13519 p
13520 q
13521 }'
8690e634 13522 gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
c971b7fa 13523 sed -n "$gl_absolute_header_sed"`'"'
8690e634
JK
13524 else
13525 gl_cv_next_wctype_h='<'wctype.h'>'
13526 fi
c971b7fa
PA
13527
13528
13529fi
8690e634
JK
13530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
13531$as_echo "$gl_cv_next_wctype_h" >&6; }
c971b7fa 13532 fi
8690e634 13533 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
c971b7fa
PA
13534
13535 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13536 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8690e634 13537 gl_next_as_first_directive='<'wctype.h'>'
c971b7fa
PA
13538 else
13539 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8690e634 13540 gl_next_as_first_directive=$gl_cv_next_wctype_h
c971b7fa 13541 fi
8690e634
JK
13542 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
13543
13544
13545
13546
13547 if test $ac_cv_header_wctype_h = yes; then
13548 if test $ac_cv_func_iswcntrl = yes; then
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
13550$as_echo_n "checking whether iswcntrl works... " >&6; }
13551if test "${gl_cv_func_iswcntrl_works+set}" = set; then :
13552 $as_echo_n "(cached) " >&6
13553else
13554
13555 if test "$cross_compiling" = yes; then :
13556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13557/* end confdefs.h. */
13558#include <stdlib.h>
13559 #if __GNU_LIBRARY__ == 1
13560 Linux libc5 i18n is broken.
13561 #endif
13562int
13563main ()
13564{
13565
13566 ;
13567 return 0;
13568}
13569_ACEOF
13570if ac_fn_c_try_compile "$LINENO"; then :
13571 gl_cv_func_iswcntrl_works="guessing yes"
13572else
13573 gl_cv_func_iswcntrl_works="guessing no"
13574fi
13575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13576
13577else
13578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13579/* end confdefs.h. */
13580
13581 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
13582 included before <wchar.h>.
13583 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
13584 must be included before <wchar.h>. */
13585 #include <stddef.h>
13586 #include <stdio.h>
13587 #include <time.h>
13588 #include <wchar.h>
13589 #include <wctype.h>
13590 int main () { return iswprint ('x') == 0; }
13591
13592_ACEOF
13593if ac_fn_c_try_run "$LINENO"; then :
13594 gl_cv_func_iswcntrl_works=yes
13595else
13596 gl_cv_func_iswcntrl_works=no
13597fi
13598rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13599 conftest.$ac_objext conftest.beam conftest.$ac_ext
13600fi
13601
13602
13603fi
13604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
13605$as_echo "$gl_cv_func_iswcntrl_works" >&6; }
13606 fi
13607 HAVE_WCTYPE_H=1
13608 else
13609 HAVE_WCTYPE_H=0
13610 fi
13611
13612
13613 case "$gl_cv_func_iswcntrl_works" in
13614 *yes) REPLACE_ISWCNTRL=0 ;;
13615 *) REPLACE_ISWCNTRL=1 ;;
13616 esac
13617
13618
13619 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
13620 :
13621 fi
13622
13623 if test $REPLACE_ISWCNTRL = 1; then
13624 REPLACE_TOWLOWER=1
13625 else
13626 for ac_func in towlower
13627do :
13628 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
13629if test "x$ac_cv_func_towlower" = x""yes; then :
13630 cat >>confdefs.h <<_ACEOF
13631#define HAVE_TOWLOWER 1
13632_ACEOF
13633
13634fi
13635done
13636
13637 if test $ac_cv_func_towlower = yes; then
13638 REPLACE_TOWLOWER=0
13639 else
13640 ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
13641 included before <wchar.h>.
13642 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
13643 must be included before <wchar.h>. */
13644 #include <stddef.h>
13645 #include <stdio.h>
13646 #include <time.h>
13647 #include <wchar.h>
13648 #if HAVE_WCTYPE_H
13649 # include <wctype.h>
13650 #endif
13651
13652"
13653if test "x$ac_cv_have_decl_towlower" = x""yes; then :
13654 ac_have_decl=1
13655else
13656 ac_have_decl=0
13657fi
13658
13659cat >>confdefs.h <<_ACEOF
13660#define HAVE_DECL_TOWLOWER $ac_have_decl
13661_ACEOF
13662
13663 if test $ac_cv_have_decl_towlower = yes; then
13664 REPLACE_TOWLOWER=1
13665 else
13666 REPLACE_TOWLOWER=0
13667 fi
13668 fi
13669 fi
13670
13671
13672 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
13673 :
13674 fi
13675
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
13677$as_echo_n "checking for wctype_t... " >&6; }
13678if test "${gl_cv_type_wctype_t+set}" = set; then :
13679 $as_echo_n "(cached) " >&6
13680else
13681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13682/* end confdefs.h. */
13683/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
13684 included before <wchar.h>.
13685 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
13686 must be included before <wchar.h>. */
13687 #include <stddef.h>
13688 #include <stdio.h>
13689 #include <time.h>
13690 #include <wchar.h>
13691 #if HAVE_WCTYPE_H
13692 # include <wctype.h>
13693 #endif
13694 wctype_t a;
13695
13696int
13697main ()
13698{
13699
13700 ;
13701 return 0;
13702}
13703_ACEOF
13704if ac_fn_c_try_compile "$LINENO"; then :
13705 gl_cv_type_wctype_t=yes
13706else
13707 gl_cv_type_wctype_t=no
13708fi
13709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c971b7fa 13710
8690e634
JK
13711fi
13712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
13713$as_echo "$gl_cv_type_wctype_t" >&6; }
13714 if test $gl_cv_type_wctype_t = no; then
13715 HAVE_WCTYPE_T=0
13716 fi
13717
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
13719$as_echo_n "checking for wctrans_t... " >&6; }
13720if test "${gl_cv_type_wctrans_t+set}" = set; then :
13721 $as_echo_n "(cached) " >&6
13722else
13723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13724/* end confdefs.h. */
13725/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
13726 included before <wchar.h>.
13727 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
13728 must be included before <wchar.h>. */
13729 #include <stddef.h>
13730 #include <stdio.h>
13731 #include <time.h>
13732 #include <wchar.h>
13733 #include <wctype.h>
13734 wctrans_t a;
c971b7fa 13735
8690e634
JK
13736int
13737main ()
13738{
c971b7fa 13739
8690e634
JK
13740 ;
13741 return 0;
13742}
13743_ACEOF
13744if ac_fn_c_try_compile "$LINENO"; then :
13745 gl_cv_type_wctrans_t=yes
13746else
13747 gl_cv_type_wctrans_t=no
13748fi
13749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c971b7fa 13750
8690e634
JK
13751fi
13752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
13753$as_echo "$gl_cv_type_wctrans_t" >&6; }
13754 if test $gl_cv_type_wctrans_t = no; then
13755 HAVE_WCTRANS_T=0
c971b7fa
PA
13756 fi
13757
13758
8690e634
JK
13759 for gl_func in wctype iswctype wctrans towctrans ; do
13760 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
13762$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
13763if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
13764 $as_echo_n "(cached) " >&6
13765else
13766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13767/* end confdefs.h. */
13768
13769/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13770 <wchar.h>.
13771 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13772 included before <wchar.h>. */
13773#if !(defined __GLIBC__ && !defined __UCLIBC__)
13774# include <stddef.h>
13775# include <stdio.h>
13776# include <time.h>
13777# include <wchar.h>
13778#endif
13779#include <wctype.h>
13780
13781int
13782main ()
13783{
13784#undef $gl_func
13785 (void) $gl_func;
13786 ;
13787 return 0;
13788}
13789_ACEOF
13790if ac_fn_c_try_compile "$LINENO"; then :
13791 eval "$as_gl_Symbol=yes"
13792else
13793 eval "$as_gl_Symbol=no"
13794fi
13795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13796fi
13797eval ac_res=\$$as_gl_Symbol
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13799$as_echo "$ac_res" >&6; }
13800 eval as_val=\$$as_gl_Symbol
13801 if test "x$as_val" = x""yes; then :
13802 cat >>confdefs.h <<_ACEOF
13803#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
13804_ACEOF
c971b7fa 13805
8690e634
JK
13806 eval ac_cv_have_decl_$gl_func=yes
13807fi
13808 done
c971b7fa
PA
13809
13810
13811 # End of code from modules
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821 gltests_libdeps=
13822 gltests_ltlibdeps=
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832 gl_source_base='tests'
13833 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
13834
13835 gl_module_indicator_condition=$gltests_WITNESS
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845 LIBGNU_LIBDEPS="$gl_libdeps"
13846
13847 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
13848
13849
13850
13851# We don't use automake, but gnulib does. This line lets us generate
13852# its Makefile.in.
13853am__api_version='1.11'
13854
13855# Find a good install program. We prefer a C program (faster),
13856# so one script is as good as another. But avoid the broken or
13857# incompatible versions:
13858# SysV /etc/install, /usr/sbin/install
13859# SunOS /usr/etc/install
13860# IRIX /sbin/install
13861# AIX /bin/install
13862# AmigaOS /C/install, which installs bootblocks on floppy discs
13863# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
13864# AFS /usr/afsws/bin/install, which mishandles nonexistent args
13865# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
13866# OS/2's system install, which has a completely different semantic
13867# ./install, which can be erroneously created by make from ./install.sh.
13868# Reject install programs that cannot install multiple files.
13869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
13870$as_echo_n "checking for a BSD-compatible install... " >&6; }
13871if test -z "$INSTALL"; then
13872if test "${ac_cv_path_install+set}" = set; then :
13873 $as_echo_n "(cached) " >&6
13874else
13875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13876for as_dir in $PATH
13877do
13878 IFS=$as_save_IFS
13879 test -z "$as_dir" && as_dir=.
13880 # Account for people who put trailing slashes in PATH elements.
13881case $as_dir/ in #((
13882 ./ | .// | /[cC]/* | \
13883 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
13884 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
13885 /usr/ucb/* ) ;;
13886 *)
13887 # OSF1 and SCO ODT 3.0 have their own names for install.
13888 # Don't use installbsd from OSF since it installs stuff as root
13889 # by default.
13890 for ac_prog in ginstall scoinst install; do
13891 for ac_exec_ext in '' $ac_executable_extensions; do
13892 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
13893 if test $ac_prog = install &&
13894 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13895 # AIX install. It has an incompatible calling convention.
13896 :
13897 elif test $ac_prog = install &&
13898 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13899 # program-specific install script used by HP pwplus--don't use.
13900 :
13901 else
13902 rm -rf conftest.one conftest.two conftest.dir
13903 echo one > conftest.one
13904 echo two > conftest.two
13905 mkdir conftest.dir
13906 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
13907 test -s conftest.one && test -s conftest.two &&
13908 test -s conftest.dir/conftest.one &&
13909 test -s conftest.dir/conftest.two
13910 then
13911 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
13912 break 3
13913 fi
13914 fi
13915 fi
13916 done
13917 done
13918 ;;
13919esac
13920
13921 done
13922IFS=$as_save_IFS
13923
13924rm -rf conftest.one conftest.two conftest.dir
13925
13926fi
13927 if test "${ac_cv_path_install+set}" = set; then
13928 INSTALL=$ac_cv_path_install
13929 else
13930 # As a last resort, use the slow shell script. Don't cache a
13931 # value for INSTALL within a source directory, because that will
13932 # break other packages using the cache if that directory is
13933 # removed, or if the value is a relative name.
13934 INSTALL=$ac_install_sh
13935 fi
13936fi
13937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
13938$as_echo "$INSTALL" >&6; }
13939
13940# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13941# It thinks the first close brace ends the variable substitution.
13942test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
13943
13944test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
13945
13946test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
13947
13948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
13949$as_echo_n "checking whether build environment is sane... " >&6; }
13950# Just in case
13951sleep 1
13952echo timestamp > conftest.file
13953# Reject unsafe characters in $srcdir or the absolute working directory
13954# name. Accept space and tab only in the latter.
13955am_lf='
13956'
13957case `pwd` in
13958 *[\\\"\#\$\&\'\`$am_lf]*)
13959 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
13960esac
13961case $srcdir in
13962 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
13963 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
13964esac
13965
13966# Do `set' in a subshell so we don't clobber the current shell's
13967# arguments. Must try -L first in case configure is actually a
13968# symlink; some systems play weird games with the mod time of symlinks
13969# (eg FreeBSD returns the mod time of the symlink's containing
13970# directory).
13971if (
13972 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
13973 if test "$*" = "X"; then
13974 # -L didn't work.
13975 set X `ls -t "$srcdir/configure" conftest.file`
13976 fi
13977 rm -f conftest.file
13978 if test "$*" != "X $srcdir/configure conftest.file" \
13979 && test "$*" != "X conftest.file $srcdir/configure"; then
13980
13981 # If neither matched, then we have a broken ls. This can happen
13982 # if, for instance, CONFIG_SHELL is bash and it inherits a
13983 # broken ls alias from the environment. This has actually
13984 # happened. Such a system could not be considered "sane".
13985 as_fn_error "ls -t appears to fail. Make sure there is not a broken
13986alias in your environment" "$LINENO" 5
13987 fi
13988
13989 test "$2" = conftest.file
13990 )
13991then
13992 # Ok.
13993 :
13994else
13995 as_fn_error "newly created file is older than distributed files!
13996Check your system clock" "$LINENO" 5
13997fi
13998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13999$as_echo "yes" >&6; }
14000test "$program_prefix" != NONE &&
14001 program_transform_name="s&^&$program_prefix&;$program_transform_name"
14002# Use a double $ so make ignores it.
14003test "$program_suffix" != NONE &&
14004 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
14005# Double any \ or $.
14006# By default was `s,x,x', remove it if useless.
14007ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
14008program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
14009
14010# expand $ac_aux_dir to an absolute path
14011am_aux_dir=`cd $ac_aux_dir && pwd`
14012
14013if test x"${MISSING+set}" != xset; then
14014 case $am_aux_dir in
14015 *\ * | *\ *)
14016 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
14017 *)
14018 MISSING="\${SHELL} $am_aux_dir/missing" ;;
14019 esac
14020fi
14021# Use eval to expand $SHELL
14022if eval "$MISSING --run true"; then
14023 am_missing_run="$MISSING --run "
14024else
14025 am_missing_run=
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
14027$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
14028fi
14029
14030if test x"${install_sh}" != xset; then
14031 case $am_aux_dir in
14032 *\ * | *\ *)
14033 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
14034 *)
14035 install_sh="\${SHELL} $am_aux_dir/install-sh"
14036 esac
14037fi
14038
14039# Installed binaries are usually stripped using `strip' when the user
14040# run `make install-strip'. However `strip' might not be the right
14041# tool to use in cross-compilation environments, therefore Automake
14042# will honor the `STRIP' environment variable to overrule this program.
14043if test "$cross_compiling" != no; then
14044 if test -n "$ac_tool_prefix"; then
14045 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14046set dummy ${ac_tool_prefix}strip; ac_word=$2
14047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14048$as_echo_n "checking for $ac_word... " >&6; }
14049if test "${ac_cv_prog_STRIP+set}" = set; then :
14050 $as_echo_n "(cached) " >&6
14051else
14052 if test -n "$STRIP"; then
14053 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14054else
14055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14056for as_dir in $PATH
14057do
14058 IFS=$as_save_IFS
14059 test -z "$as_dir" && as_dir=.
14060 for ac_exec_ext in '' $ac_executable_extensions; do
14061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14062 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14064 break 2
14065 fi
14066done
14067 done
14068IFS=$as_save_IFS
14069
14070fi
14071fi
14072STRIP=$ac_cv_prog_STRIP
14073if test -n "$STRIP"; then
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
14075$as_echo "$STRIP" >&6; }
14076else
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14078$as_echo "no" >&6; }
14079fi
14080
14081
14082fi
14083if test -z "$ac_cv_prog_STRIP"; then
14084 ac_ct_STRIP=$STRIP
14085 # Extract the first word of "strip", so it can be a program name with args.
14086set dummy strip; ac_word=$2
14087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14088$as_echo_n "checking for $ac_word... " >&6; }
14089if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
14090 $as_echo_n "(cached) " >&6
14091else
14092 if test -n "$ac_ct_STRIP"; then
14093 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14094else
14095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14096for as_dir in $PATH
14097do
14098 IFS=$as_save_IFS
14099 test -z "$as_dir" && as_dir=.
14100 for ac_exec_ext in '' $ac_executable_extensions; do
14101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14102 ac_cv_prog_ac_ct_STRIP="strip"
14103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14104 break 2
14105 fi
14106done
14107 done
14108IFS=$as_save_IFS
14109
14110fi
14111fi
14112ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14113if test -n "$ac_ct_STRIP"; then
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
14115$as_echo "$ac_ct_STRIP" >&6; }
14116else
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14118$as_echo "no" >&6; }
14119fi
14120
14121 if test "x$ac_ct_STRIP" = x; then
14122 STRIP=":"
14123 else
14124 case $cross_compiling:$ac_tool_warned in
14125yes:)
14126{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14127$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14128ac_tool_warned=yes ;;
14129esac
14130 STRIP=$ac_ct_STRIP
14131 fi
14132else
14133 STRIP="$ac_cv_prog_STRIP"
14134fi
14135
14136fi
14137INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
14138
c971b7fa
PA
14139mkdir_p="$MKDIR_P"
14140case $mkdir_p in
14141 [\\/$]* | ?:[\\/]*) ;;
14142 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
14143esac
14144
14145for ac_prog in gawk mawk nawk awk
14146do
14147 # Extract the first word of "$ac_prog", so it can be a program name with args.
14148set dummy $ac_prog; ac_word=$2
14149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14150$as_echo_n "checking for $ac_word... " >&6; }
14151if test "${ac_cv_prog_AWK+set}" = set; then :
14152 $as_echo_n "(cached) " >&6
14153else
14154 if test -n "$AWK"; then
14155 ac_cv_prog_AWK="$AWK" # Let the user override the test.
14156else
14157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14158for as_dir in $PATH
14159do
14160 IFS=$as_save_IFS
14161 test -z "$as_dir" && as_dir=.
14162 for ac_exec_ext in '' $ac_executable_extensions; do
14163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14164 ac_cv_prog_AWK="$ac_prog"
14165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14166 break 2
14167 fi
14168done
14169 done
14170IFS=$as_save_IFS
14171
14172fi
14173fi
14174AWK=$ac_cv_prog_AWK
14175if test -n "$AWK"; then
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
14177$as_echo "$AWK" >&6; }
14178else
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14180$as_echo "no" >&6; }
14181fi
14182
14183
14184 test -n "$AWK" && break
14185done
14186
14187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
14188$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
14189set x ${MAKE-make}
14190ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
14191if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
14192 $as_echo_n "(cached) " >&6
14193else
14194 cat >conftest.make <<\_ACEOF
14195SHELL = /bin/sh
14196all:
14197 @echo '@@@%%%=$(MAKE)=@@@%%%'
14198_ACEOF
14199# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
14200case `${MAKE-make} -f conftest.make 2>/dev/null` in
14201 *@@@%%%=?*=@@@%%%*)
14202 eval ac_cv_prog_make_${ac_make}_set=yes;;
14203 *)
14204 eval ac_cv_prog_make_${ac_make}_set=no;;
14205esac
14206rm -f conftest.make
14207fi
14208if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14210$as_echo "yes" >&6; }
14211 SET_MAKE=
14212else
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14214$as_echo "no" >&6; }
14215 SET_MAKE="MAKE=${MAKE-make}"
14216fi
14217
14218rm -rf .tst 2>/dev/null
14219mkdir .tst 2>/dev/null
14220if test -d .tst; then
14221 am__leading_dot=.
14222else
14223 am__leading_dot=_
14224fi
14225rmdir .tst 2>/dev/null
14226
14227DEPDIR="${am__leading_dot}deps"
14228
14229ac_config_commands="$ac_config_commands depfiles"
14230
14231
14232am_make=${MAKE-make}
14233cat > confinc << 'END'
14234am__doit:
14235 @echo this is the am__doit target
14236.PHONY: am__doit
14237END
14238# If we don't find an include directive, just comment out the code.
14239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
14240$as_echo_n "checking for style of include used by $am_make... " >&6; }
14241am__include="#"
14242am__quote=
14243_am_result=none
14244# First try GNU make style include.
14245echo "include confinc" > confmf
14246# Ignore all kinds of additional output from `make'.
14247case `$am_make -s -f confmf 2> /dev/null` in #(
14248*the\ am__doit\ target*)
14249 am__include=include
14250 am__quote=
14251 _am_result=GNU
14252 ;;
14253esac
14254# Now try BSD make style include.
14255if test "$am__include" = "#"; then
14256 echo '.include "confinc"' > confmf
14257 case `$am_make -s -f confmf 2> /dev/null` in #(
14258 *the\ am__doit\ target*)
14259 am__include=.include
14260 am__quote="\""
14261 _am_result=BSD
14262 ;;
14263 esac
14264fi
14265
14266
14267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
14268$as_echo "$_am_result" >&6; }
14269rm -f confinc confmf
14270
14271# Check whether --enable-dependency-tracking was given.
14272if test "${enable_dependency_tracking+set}" = set; then :
14273 enableval=$enable_dependency_tracking;
14274fi
14275
14276if test "x$enable_dependency_tracking" != xno; then
14277 am_depcomp="$ac_aux_dir/depcomp"
14278 AMDEPBACKSLASH='\'
14279fi
14280 if test "x$enable_dependency_tracking" != xno; then
14281 AMDEP_TRUE=
14282 AMDEP_FALSE='#'
14283else
14284 AMDEP_TRUE='#'
14285 AMDEP_FALSE=
14286fi
14287
14288
14289if test "`cd $srcdir && pwd`" != "`pwd`"; then
14290 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
14291 # is not polluted with repeated "-I."
14292 am__isrc=' -I$(srcdir)'
14293 # test to see if srcdir already configured
14294 if test -f $srcdir/config.status; then
14295 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
14296 fi
14297fi
14298
14299# test whether we have cygpath
14300if test -z "$CYGPATH_W"; then
14301 if (cygpath --version) >/dev/null 2>/dev/null; then
14302 CYGPATH_W='cygpath -w'
14303 else
14304 CYGPATH_W=echo
14305 fi
14306fi
14307
14308
14309# Define the identity of the package.
14310 PACKAGE=libgnu
14311 VERSION=UNUSED-VERSION
14312
14313
14314# Some tools Automake needs.
14315
14316ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
14317
14318
14319AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
14320
14321
14322AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
14323
14324
14325AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
14326
14327
14328MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
14329
14330# We need awk for the "check" target. The system "awk" is bad on
14331# some platforms.
14332# Always define AMTAR for backward compatibility.
14333
14334AMTAR=${AMTAR-"${am_missing_run}tar"}
14335
14336am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
14337
14338
14339
14340
14341depcc="$CC" am_compiler_list=
14342
14343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14344$as_echo_n "checking dependency style of $depcc... " >&6; }
14345if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
14346 $as_echo_n "(cached) " >&6
14347else
14348 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14349 # We make a subdir and do the tests there. Otherwise we can end up
14350 # making bogus files that we don't know about and never remove. For
14351 # instance it was reported that on HP-UX the gcc test will end up
14352 # making a dummy file named `D' -- because `-MD' means `put the output
14353 # in D'.
14354 mkdir conftest.dir
14355 # Copy depcomp to subdir because otherwise we won't find it if we're
14356 # using a relative directory.
14357 cp "$am_depcomp" conftest.dir
14358 cd conftest.dir
14359 # We will build objects and dependencies in a subdirectory because
14360 # it helps to detect inapplicable dependency modes. For instance
14361 # both Tru64's cc and ICC support -MD to output dependencies as a
14362 # side effect of compilation, but ICC will put the dependencies in
14363 # the current directory while Tru64 will put them in the object
14364 # directory.
14365 mkdir sub
14366
14367 am_cv_CC_dependencies_compiler_type=none
14368 if test "$am_compiler_list" = ""; then
14369 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14370 fi
14371 am__universal=false
14372 case " $depcc " in #(
14373 *\ -arch\ *\ -arch\ *) am__universal=true ;;
14374 esac
14375
14376 for depmode in $am_compiler_list; do
14377 # Setup a source with many dependencies, because some compilers
14378 # like to wrap large dependency lists on column 80 (with \), and
14379 # we should not choose a depcomp mode which is confused by this.
14380 #
14381 # We need to recreate these files for each test, as the compiler may
14382 # overwrite some of them when testing with obscure command lines.
14383 # This happens at least with the AIX C compiler.
14384 : > sub/conftest.c
14385 for i in 1 2 3 4 5 6; do
14386 echo '#include "conftst'$i'.h"' >> sub/conftest.c
14387 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
14388 # Solaris 8's {/usr,}/bin/sh.
14389 touch sub/conftst$i.h
14390 done
14391 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14392
14393 # We check with `-c' and `-o' for the sake of the "dashmstdout"
14394 # mode. It turns out that the SunPro C++ compiler does not properly
14395 # handle `-M -o', and we need to detect this. Also, some Intel
14396 # versions had trouble with output in subdirs
14397 am__obj=sub/conftest.${OBJEXT-o}
14398 am__minus_obj="-o $am__obj"
14399 case $depmode in
14400 gcc)
14401 # This depmode causes a compiler race in universal mode.
14402 test "$am__universal" = false || continue
14403 ;;
14404 nosideeffect)
14405 # after this tag, mechanisms are not by side-effect, so they'll
14406 # only be used when explicitly requested
14407 if test "x$enable_dependency_tracking" = xyes; then
14408 continue
14409 else
14410 break
14411 fi
14412 ;;
14413 msvisualcpp | msvcmsys)
14414 # This compiler won't grok `-c -o', but also, the minuso test has
14415 # not run yet. These depmodes are late enough in the game, and
14416 # so weak that their functioning should not be impacted.
14417 am__obj=conftest.${OBJEXT-o}
14418 am__minus_obj=
14419 ;;
14420 none) break ;;
14421 esac
14422 if depmode=$depmode \
14423 source=sub/conftest.c object=$am__obj \
14424 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14425 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14426 >/dev/null 2>conftest.err &&
14427 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14428 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14429 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14430 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14431 # icc doesn't choke on unknown options, it will just issue warnings
14432 # or remarks (even with -Werror). So we grep stderr for any message
14433 # that says an option was ignored or not supported.
14434 # When given -MP, icc 7.0 and 7.1 complain thusly:
14435 # icc: Command line warning: ignoring option '-M'; no argument required
14436 # The diagnosis changed in icc 8.0:
14437 # icc: Command line remark: option '-MP' not supported
14438 if (grep 'ignoring option' conftest.err ||
14439 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14440 am_cv_CC_dependencies_compiler_type=$depmode
14441 break
14442 fi
14443 fi
14444 done
14445
14446 cd ..
14447 rm -rf conftest.dir
14448else
14449 am_cv_CC_dependencies_compiler_type=none
14450fi
14451
14452fi
14453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
14454$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
14455CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
14456
14457 if
14458 test "x$enable_dependency_tracking" != xno \
14459 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
14460 am__fastdepCC_TRUE=
14461 am__fastdepCC_FALSE='#'
14462else
14463 am__fastdepCC_TRUE='#'
14464 am__fastdepCC_FALSE=
14465fi
14466
14467
14468
14469
14470# --------------------- #
14471# Checks for programs. #
14472# --------------------- #
14473
14474
14475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
14476$as_echo_n "checking whether ln -s works... " >&6; }
14477LN_S=$as_ln_s
14478if test "$LN_S" = "ln -s"; then
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14480$as_echo "yes" >&6; }
14481else
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
14483$as_echo "no, using $LN_S" >&6; }
14484fi
14485
14486if test -n "$ac_tool_prefix"; then
14487 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14488set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14490$as_echo_n "checking for $ac_word... " >&6; }
14491if test "${ac_cv_prog_RANLIB+set}" = set; then :
14492 $as_echo_n "(cached) " >&6
14493else
14494 if test -n "$RANLIB"; then
14495 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14496else
14497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14498for as_dir in $PATH
14499do
14500 IFS=$as_save_IFS
14501 test -z "$as_dir" && as_dir=.
14502 for ac_exec_ext in '' $ac_executable_extensions; do
14503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14504 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14506 break 2
14507 fi
14508done
14509 done
14510IFS=$as_save_IFS
14511
14512fi
14513fi
14514RANLIB=$ac_cv_prog_RANLIB
14515if test -n "$RANLIB"; then
14516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
14517$as_echo "$RANLIB" >&6; }
14518else
14519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14520$as_echo "no" >&6; }
14521fi
14522
14523
14524fi
14525if test -z "$ac_cv_prog_RANLIB"; then
14526 ac_ct_RANLIB=$RANLIB
14527 # Extract the first word of "ranlib", so it can be a program name with args.
14528set dummy ranlib; ac_word=$2
14529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14530$as_echo_n "checking for $ac_word... " >&6; }
14531if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
14532 $as_echo_n "(cached) " >&6
14533else
14534 if test -n "$ac_ct_RANLIB"; then
14535 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14536else
14537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14538for as_dir in $PATH
14539do
14540 IFS=$as_save_IFS
14541 test -z "$as_dir" && as_dir=.
14542 for ac_exec_ext in '' $ac_executable_extensions; do
14543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14544 ac_cv_prog_ac_ct_RANLIB="ranlib"
14545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14546 break 2
14547 fi
14548done
14549 done
14550IFS=$as_save_IFS
14551
14552fi
14553fi
14554ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14555if test -n "$ac_ct_RANLIB"; then
14556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
14557$as_echo "$ac_ct_RANLIB" >&6; }
14558else
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14560$as_echo "no" >&6; }
14561fi
14562
14563 if test "x$ac_ct_RANLIB" = x; then
14564 RANLIB=":"
14565 else
14566 case $cross_compiling:$ac_tool_warned in
14567yes:)
14568{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14569$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14570ac_tool_warned=yes ;;
14571esac
14572 RANLIB=$ac_ct_RANLIB
14573 fi
14574else
14575 RANLIB="$ac_cv_prog_RANLIB"
14576fi
14577
14578
14579if test -n "$ac_tool_prefix"; then
14580 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14581set dummy ${ac_tool_prefix}ar; ac_word=$2
14582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14583$as_echo_n "checking for $ac_word... " >&6; }
14584if test "${ac_cv_prog_AR+set}" = set; then :
14585 $as_echo_n "(cached) " >&6
14586else
14587 if test -n "$AR"; then
14588 ac_cv_prog_AR="$AR" # Let the user override the test.
14589else
14590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14591for as_dir in $PATH
14592do
14593 IFS=$as_save_IFS
14594 test -z "$as_dir" && as_dir=.
14595 for ac_exec_ext in '' $ac_executable_extensions; do
14596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14597 ac_cv_prog_AR="${ac_tool_prefix}ar"
14598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14599 break 2
14600 fi
14601done
14602 done
14603IFS=$as_save_IFS
14604
14605fi
14606fi
14607AR=$ac_cv_prog_AR
14608if test -n "$AR"; then
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
14610$as_echo "$AR" >&6; }
14611else
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14613$as_echo "no" >&6; }
14614fi
14615
14616
14617fi
14618if test -z "$ac_cv_prog_AR"; then
14619 ac_ct_AR=$AR
14620 # Extract the first word of "ar", so it can be a program name with args.
14621set dummy ar; ac_word=$2
14622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14623$as_echo_n "checking for $ac_word... " >&6; }
14624if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
14625 $as_echo_n "(cached) " >&6
14626else
14627 if test -n "$ac_ct_AR"; then
14628 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14629else
14630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14631for as_dir in $PATH
14632do
14633 IFS=$as_save_IFS
14634 test -z "$as_dir" && as_dir=.
14635 for ac_exec_ext in '' $ac_executable_extensions; do
14636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14637 ac_cv_prog_ac_ct_AR="ar"
14638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14639 break 2
14640 fi
14641done
14642 done
14643IFS=$as_save_IFS
14644
14645fi
14646fi
14647ac_ct_AR=$ac_cv_prog_ac_ct_AR
14648if test -n "$ac_ct_AR"; then
14649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
14650$as_echo "$ac_ct_AR" >&6; }
14651else
14652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14653$as_echo "no" >&6; }
14654fi
14655
14656 if test "x$ac_ct_AR" = x; then
14657 AR=""
14658 else
14659 case $cross_compiling:$ac_tool_warned in
14660yes:)
14661{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14662$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14663ac_tool_warned=yes ;;
14664esac
14665 AR=$ac_ct_AR
14666 fi
14667else
14668 AR="$ac_cv_prog_AR"
14669fi
14670
14671
14672# ---------------------- #
14673# Checks for libraries. #
14674# ---------------------- #
14675
14676ac_config_files="$ac_config_files Makefile import/Makefile"
14677
14678ac_config_commands="$ac_config_commands default"
14679
14680cat >confcache <<\_ACEOF
14681# This file is a shell script that caches the results of configure
14682# tests run on this system so they can be shared between configure
14683# scripts and configure runs, see configure's option --config-cache.
14684# It is not useful on other systems. If it contains results you don't
14685# want to keep, you may remove or edit it.
14686#
14687# config.status only pays attention to the cache file if you give it
14688# the --recheck option to rerun configure.
14689#
14690# `ac_cv_env_foo' variables (set or unset) will be overridden when
14691# loading this file, other *unset* `ac_cv_foo' will be assigned the
14692# following values.
14693
14694_ACEOF
14695
14696# The following way of writing the cache mishandles newlines in values,
14697# but we know of no workaround that is simple, portable, and efficient.
14698# So, we kill variables containing newlines.
14699# Ultrix sh set writes to stderr and can't be redirected directly,
14700# and sets the high bit in the cache file unless we assign to the vars.
14701(
14702 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14703 eval ac_val=\$$ac_var
14704 case $ac_val in #(
14705 *${as_nl}*)
14706 case $ac_var in #(
14707 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14708$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14709 esac
14710 case $ac_var in #(
14711 _ | IFS | as_nl) ;; #(
14712 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14713 *) { eval $ac_var=; unset $ac_var;} ;;
14714 esac ;;
14715 esac
14716 done
14717
14718 (set) 2>&1 |
14719 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14720 *${as_nl}ac_space=\ *)
14721 # `set' does not quote correctly, so add quotes: double-quote
14722 # substitution turns \\\\ into \\, and sed turns \\ into \.
14723 sed -n \
14724 "s/'/'\\\\''/g;
14725 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14726 ;; #(
14727 *)
14728 # `set' quotes correctly as required by POSIX, so do not add quotes.
14729 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14730 ;;
14731 esac |
14732 sort
14733) |
14734 sed '
14735 /^ac_cv_env_/b end
14736 t clear
14737 :clear
14738 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14739 t end
14740 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14741 :end' >>confcache
14742if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14743 if test -w "$cache_file"; then
14744 test "x$cache_file" != "x/dev/null" &&
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14746$as_echo "$as_me: updating cache $cache_file" >&6;}
14747 cat confcache >$cache_file
14748 else
14749 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14750$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14751 fi
14752fi
14753rm -f confcache
14754
14755test "x$prefix" = xNONE && prefix=$ac_default_prefix
14756# Let make expand exec_prefix.
14757test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14758
14759DEFS=-DHAVE_CONFIG_H
14760
14761ac_libobjs=
14762ac_ltlibobjs=
14763for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14764 # 1. Remove the extension, and $U if already installed.
14765 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14766 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14767 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14768 # will be set to the directory where LIBOBJS objects are built.
14769 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14770 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14771done
14772LIBOBJS=$ac_libobjs
14773
14774LTLIBOBJS=$ac_ltlibobjs
14775
14776
14777if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14778 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14779Usually this means the macro was only invoked conditionally." "$LINENO" 5
14780fi
14781if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
14782 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
14783Usually this means the macro was only invoked conditionally." "$LINENO" 5
14784fi
8690e634
JK
14785if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
14786 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
14787Usually this means the macro was only invoked conditionally." "$LINENO" 5
14788fi
88b48903
WN
14789if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
14790 as_fn_error "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
14791Usually this means the macro was only invoked conditionally." "$LINENO" 5
14792fi
8690e634
JK
14793if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
14794 as_fn_error "conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
14795Usually this means the macro was only invoked conditionally." "$LINENO" 5
14796fi
c971b7fa
PA
14797if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
14798 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
14799Usually this means the macro was only invoked conditionally." "$LINENO" 5
14800fi
88b48903
WN
14801
14802
8690e634
JK
14803if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
14804 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
14805Usually this means the macro was only invoked conditionally." "$LINENO" 5
14806fi
c971b7fa
PA
14807if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
14808 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
14809Usually this means the macro was only invoked conditionally." "$LINENO" 5
14810fi
14811
14812 gl_libobjs=
14813 gl_ltlibobjs=
14814 if test -n "$gl_LIBOBJS"; then
14815 # Remove the extension.
14816 sed_drop_objext='s/\.o$//;s/\.obj$//'
14817 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
14818 gl_libobjs="$gl_libobjs $i.$ac_objext"
14819 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
14820 done
14821 fi
14822 gl_LIBOBJS=$gl_libobjs
14823
14824 gl_LTLIBOBJS=$gl_ltlibobjs
14825
14826
14827
14828 gltests_libobjs=
14829 gltests_ltlibobjs=
14830 if test -n "$gltests_LIBOBJS"; then
14831 # Remove the extension.
14832 sed_drop_objext='s/\.o$//;s/\.obj$//'
14833 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
14834 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
14835 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
14836 done
14837 fi
14838 gltests_LIBOBJS=$gltests_libobjs
14839
14840 gltests_LTLIBOBJS=$gltests_ltlibobjs
14841
14842
14843if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14844 as_fn_error "conditional \"AMDEP\" was never defined.
14845Usually this means the macro was only invoked conditionally." "$LINENO" 5
14846fi
14847if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14848 as_fn_error "conditional \"am__fastdepCC\" was never defined.
14849Usually this means the macro was only invoked conditionally." "$LINENO" 5
14850fi
14851 if test -n "$EXEEXT"; then
14852 am__EXEEXT_TRUE=
14853 am__EXEEXT_FALSE='#'
14854else
14855 am__EXEEXT_TRUE='#'
14856 am__EXEEXT_FALSE=
14857fi
14858
14859
14860: ${CONFIG_STATUS=./config.status}
14861ac_write_fail=0
14862ac_clean_files_save=$ac_clean_files
14863ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14864{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14865$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14866as_write_fail=0
14867cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14868#! $SHELL
14869# Generated by $as_me.
14870# Run this file to recreate the current configuration.
14871# Compiler output produced by configure, useful for debugging
14872# configure, is in config.log if it exists.
14873
14874debug=false
14875ac_cs_recheck=false
14876ac_cs_silent=false
14877
14878SHELL=\${CONFIG_SHELL-$SHELL}
14879export SHELL
14880_ASEOF
14881cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14882## -------------------- ##
14883## M4sh Initialization. ##
14884## -------------------- ##
14885
14886# Be more Bourne compatible
14887DUALCASE=1; export DUALCASE # for MKS sh
14888if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14889 emulate sh
14890 NULLCMD=:
14891 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14892 # is contrary to our usage. Disable this feature.
14893 alias -g '${1+"$@"}'='"$@"'
14894 setopt NO_GLOB_SUBST
14895else
14896 case `(set -o) 2>/dev/null` in #(
14897 *posix*) :
14898 set -o posix ;; #(
14899 *) :
14900 ;;
14901esac
14902fi
14903
14904
14905as_nl='
14906'
14907export as_nl
14908# Printing a long string crashes Solaris 7 /usr/bin/printf.
14909as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14910as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14911as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14912# Prefer a ksh shell builtin over an external printf program on Solaris,
14913# but without wasting forks for bash or zsh.
14914if test -z "$BASH_VERSION$ZSH_VERSION" \
14915 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14916 as_echo='print -r --'
14917 as_echo_n='print -rn --'
14918elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14919 as_echo='printf %s\n'
14920 as_echo_n='printf %s'
14921else
14922 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14923 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14924 as_echo_n='/usr/ucb/echo -n'
14925 else
14926 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14927 as_echo_n_body='eval
14928 arg=$1;
14929 case $arg in #(
14930 *"$as_nl"*)
14931 expr "X$arg" : "X\\(.*\\)$as_nl";
14932 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14933 esac;
14934 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14935 '
14936 export as_echo_n_body
14937 as_echo_n='sh -c $as_echo_n_body as_echo'
14938 fi
14939 export as_echo_body
14940 as_echo='sh -c $as_echo_body as_echo'
14941fi
14942
14943# The user is always right.
14944if test "${PATH_SEPARATOR+set}" != set; then
14945 PATH_SEPARATOR=:
14946 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14947 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14948 PATH_SEPARATOR=';'
14949 }
14950fi
14951
14952
14953# IFS
14954# We need space, tab and new line, in precisely that order. Quoting is
14955# there to prevent editors from complaining about space-tab.
14956# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14957# splitting by setting IFS to empty value.)
14958IFS=" "" $as_nl"
14959
14960# Find who we are. Look in the path if we contain no directory separator.
14961case $0 in #((
14962 *[\\/]* ) as_myself=$0 ;;
14963 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14964for as_dir in $PATH
14965do
14966 IFS=$as_save_IFS
14967 test -z "$as_dir" && as_dir=.
14968 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14969 done
14970IFS=$as_save_IFS
14971
14972 ;;
14973esac
14974# We did not find ourselves, most probably we were run as `sh COMMAND'
14975# in which case we are not to be found in the path.
14976if test "x$as_myself" = x; then
14977 as_myself=$0
14978fi
14979if test ! -f "$as_myself"; then
14980 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14981 exit 1
14982fi
14983
14984# Unset variables that we do not need and which cause bugs (e.g. in
14985# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14986# suppresses any "Segmentation fault" message there. '((' could
14987# trigger a bug in pdksh 5.2.14.
14988for as_var in BASH_ENV ENV MAIL MAILPATH
14989do eval test x\${$as_var+set} = xset \
14990 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14991done
14992PS1='$ '
14993PS2='> '
14994PS4='+ '
14995
14996# NLS nuisances.
14997LC_ALL=C
14998export LC_ALL
14999LANGUAGE=C
15000export LANGUAGE
15001
15002# CDPATH.
15003(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15004
15005
15006# as_fn_error ERROR [LINENO LOG_FD]
15007# ---------------------------------
15008# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15009# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15010# script with status $?, using 1 if that was 0.
15011as_fn_error ()
15012{
15013 as_status=$?; test $as_status -eq 0 && as_status=1
15014 if test "$3"; then
15015 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15016 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15017 fi
15018 $as_echo "$as_me: error: $1" >&2
15019 as_fn_exit $as_status
15020} # as_fn_error
15021
15022
15023# as_fn_set_status STATUS
15024# -----------------------
15025# Set $? to STATUS, without forking.
15026as_fn_set_status ()
15027{
15028 return $1
15029} # as_fn_set_status
15030
15031# as_fn_exit STATUS
15032# -----------------
15033# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15034as_fn_exit ()
15035{
15036 set +e
15037 as_fn_set_status $1
15038 exit $1
15039} # as_fn_exit
15040
15041# as_fn_unset VAR
15042# ---------------
15043# Portably unset VAR.
15044as_fn_unset ()
15045{
15046 { eval $1=; unset $1;}
15047}
15048as_unset=as_fn_unset
15049# as_fn_append VAR VALUE
15050# ----------------------
15051# Append the text in VALUE to the end of the definition contained in VAR. Take
15052# advantage of any shell optimizations that allow amortized linear growth over
15053# repeated appends, instead of the typical quadratic growth present in naive
15054# implementations.
15055if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15056 eval 'as_fn_append ()
15057 {
15058 eval $1+=\$2
15059 }'
15060else
15061 as_fn_append ()
15062 {
15063 eval $1=\$$1\$2
15064 }
15065fi # as_fn_append
15066
15067# as_fn_arith ARG...
15068# ------------------
15069# Perform arithmetic evaluation on the ARGs, and store the result in the
15070# global $as_val. Take advantage of shells that can avoid forks. The arguments
15071# must be portable across $(()) and expr.
15072if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15073 eval 'as_fn_arith ()
15074 {
15075 as_val=$(( $* ))
15076 }'
15077else
15078 as_fn_arith ()
15079 {
15080 as_val=`expr "$@" || test $? -eq 1`
15081 }
15082fi # as_fn_arith
15083
15084
15085if expr a : '\(a\)' >/dev/null 2>&1 &&
15086 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15087 as_expr=expr
15088else
15089 as_expr=false
15090fi
15091
15092if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15093 as_basename=basename
15094else
15095 as_basename=false
15096fi
15097
15098if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15099 as_dirname=dirname
15100else
15101 as_dirname=false
15102fi
15103
15104as_me=`$as_basename -- "$0" ||
15105$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15106 X"$0" : 'X\(//\)$' \| \
15107 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15108$as_echo X/"$0" |
15109 sed '/^.*\/\([^/][^/]*\)\/*$/{
15110 s//\1/
15111 q
15112 }
15113 /^X\/\(\/\/\)$/{
15114 s//\1/
15115 q
15116 }
15117 /^X\/\(\/\).*/{
15118 s//\1/
15119 q
15120 }
15121 s/.*/./; q'`
15122
15123# Avoid depending upon Character Ranges.
15124as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15125as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15126as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15127as_cr_digits='0123456789'
15128as_cr_alnum=$as_cr_Letters$as_cr_digits
15129
15130ECHO_C= ECHO_N= ECHO_T=
15131case `echo -n x` in #(((((
15132-n*)
15133 case `echo 'xy\c'` in
15134 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15135 xy) ECHO_C='\c';;
15136 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15137 ECHO_T=' ';;
15138 esac;;
15139*)
15140 ECHO_N='-n';;
15141esac
15142
15143rm -f conf$$ conf$$.exe conf$$.file
15144if test -d conf$$.dir; then
15145 rm -f conf$$.dir/conf$$.file
15146else
15147 rm -f conf$$.dir
15148 mkdir conf$$.dir 2>/dev/null
15149fi
15150if (echo >conf$$.file) 2>/dev/null; then
15151 if ln -s conf$$.file conf$$ 2>/dev/null; then
15152 as_ln_s='ln -s'
15153 # ... but there are two gotchas:
15154 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15155 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15156 # In both cases, we have to default to `cp -p'.
15157 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15158 as_ln_s='cp -p'
15159 elif ln conf$$.file conf$$ 2>/dev/null; then
15160 as_ln_s=ln
15161 else
15162 as_ln_s='cp -p'
15163 fi
15164else
15165 as_ln_s='cp -p'
15166fi
15167rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15168rmdir conf$$.dir 2>/dev/null
15169
15170
15171# as_fn_mkdir_p
15172# -------------
15173# Create "$as_dir" as a directory, including parents if necessary.
15174as_fn_mkdir_p ()
15175{
15176
15177 case $as_dir in #(
15178 -*) as_dir=./$as_dir;;
15179 esac
15180 test -d "$as_dir" || eval $as_mkdir_p || {
15181 as_dirs=
15182 while :; do
15183 case $as_dir in #(
15184 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15185 *) as_qdir=$as_dir;;
15186 esac
15187 as_dirs="'$as_qdir' $as_dirs"
15188 as_dir=`$as_dirname -- "$as_dir" ||
15189$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15190 X"$as_dir" : 'X\(//\)[^/]' \| \
15191 X"$as_dir" : 'X\(//\)$' \| \
15192 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15193$as_echo X"$as_dir" |
15194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15195 s//\1/
15196 q
15197 }
15198 /^X\(\/\/\)[^/].*/{
15199 s//\1/
15200 q
15201 }
15202 /^X\(\/\/\)$/{
15203 s//\1/
15204 q
15205 }
15206 /^X\(\/\).*/{
15207 s//\1/
15208 q
15209 }
15210 s/.*/./; q'`
15211 test -d "$as_dir" && break
15212 done
15213 test -z "$as_dirs" || eval "mkdir $as_dirs"
15214 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15215
15216
15217} # as_fn_mkdir_p
15218if mkdir -p . 2>/dev/null; then
15219 as_mkdir_p='mkdir -p "$as_dir"'
15220else
15221 test -d ./-p && rmdir ./-p
15222 as_mkdir_p=false
15223fi
15224
15225if test -x / >/dev/null 2>&1; then
15226 as_test_x='test -x'
15227else
15228 if ls -dL / >/dev/null 2>&1; then
15229 as_ls_L_option=L
15230 else
15231 as_ls_L_option=
15232 fi
15233 as_test_x='
15234 eval sh -c '\''
15235 if test -d "$1"; then
15236 test -d "$1/.";
15237 else
15238 case $1 in #(
15239 -*)set "./$1";;
15240 esac;
15241 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15242 ???[sx]*):;;*)false;;esac;fi
15243 '\'' sh
15244 '
15245fi
15246as_executable_p=$as_test_x
15247
15248# Sed expression to map a string onto a valid CPP name.
15249as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15250
15251# Sed expression to map a string onto a valid variable name.
15252as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15253
15254
15255exec 6>&1
15256## ----------------------------------- ##
15257## Main body of $CONFIG_STATUS script. ##
15258## ----------------------------------- ##
15259_ASEOF
15260test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15261
15262cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15263# Save the log message, to keep $0 and so on meaningful, and to
15264# report actual input values of CONFIG_FILES etc. instead of their
15265# values after options handling.
15266ac_log="
15267This file was extended by $as_me, which was
15268generated by GNU Autoconf 2.64. Invocation command line was
15269
15270 CONFIG_FILES = $CONFIG_FILES
15271 CONFIG_HEADERS = $CONFIG_HEADERS
15272 CONFIG_LINKS = $CONFIG_LINKS
15273 CONFIG_COMMANDS = $CONFIG_COMMANDS
15274 $ $0 $@
15275
15276on `(hostname || uname -n) 2>/dev/null | sed 1q`
15277"
15278
15279_ACEOF
15280
15281case $ac_config_files in *"
15282"*) set x $ac_config_files; shift; ac_config_files=$*;;
15283esac
15284
15285case $ac_config_headers in *"
15286"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15287esac
15288
15289
15290cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15291# Files that config.status was made for.
15292config_files="$ac_config_files"
15293config_headers="$ac_config_headers"
15294config_commands="$ac_config_commands"
15295
15296_ACEOF
15297
15298cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15299ac_cs_usage="\
15300\`$as_me' instantiates files and other configuration actions
15301from templates according to the current configuration. Unless the files
15302and actions are specified as TAGs, all are instantiated by default.
15303
15304Usage: $0 [OPTION]... [TAG]...
15305
15306 -h, --help print this help, then exit
15307 -V, --version print version number and configuration settings, then exit
15308 -q, --quiet, --silent
15309 do not print progress messages
15310 -d, --debug don't remove temporary files
15311 --recheck update $as_me by reconfiguring in the same conditions
15312 --file=FILE[:TEMPLATE]
15313 instantiate the configuration file FILE
15314 --header=FILE[:TEMPLATE]
15315 instantiate the configuration header FILE
15316
15317Configuration files:
15318$config_files
15319
15320Configuration headers:
15321$config_headers
15322
15323Configuration commands:
15324$config_commands
15325
15326Report bugs to the package provider."
15327
15328_ACEOF
15329cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15330ac_cs_version="\\
15331config.status
15332configured by $0, generated by GNU Autoconf 2.64,
15333 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15334
15335Copyright (C) 2009 Free Software Foundation, Inc.
15336This config.status script is free software; the Free Software Foundation
15337gives unlimited permission to copy, distribute and modify it."
15338
15339ac_pwd='$ac_pwd'
15340srcdir='$srcdir'
15341INSTALL='$INSTALL'
15342MKDIR_P='$MKDIR_P'
15343AWK='$AWK'
15344test -n "\$AWK" || AWK=awk
15345_ACEOF
15346
15347cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15348# The default lists apply if the user does not specify any file.
15349ac_need_defaults=:
15350while test $# != 0
15351do
15352 case $1 in
15353 --*=*)
15354 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15355 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15356 ac_shift=:
15357 ;;
15358 *)
15359 ac_option=$1
15360 ac_optarg=$2
15361 ac_shift=shift
15362 ;;
15363 esac
15364
15365 case $ac_option in
15366 # Handling of the options.
15367 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15368 ac_cs_recheck=: ;;
15369 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15370 $as_echo "$ac_cs_version"; exit ;;
15371 --debug | --debu | --deb | --de | --d | -d )
15372 debug=: ;;
15373 --file | --fil | --fi | --f )
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_FILES " '$ac_optarg'"
15379 ac_need_defaults=false;;
15380 --header | --heade | --head | --hea )
15381 $ac_shift
15382 case $ac_optarg in
15383 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15384 esac
15385 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15386 ac_need_defaults=false;;
15387 --he | --h)
15388 # Conflict between --help and --header
15389 as_fn_error "ambiguous option: \`$1'
15390Try \`$0 --help' for more information.";;
15391 --help | --hel | -h )
15392 $as_echo "$ac_cs_usage"; exit ;;
15393 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15394 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15395 ac_cs_silent=: ;;
15396
15397 # This is an error.
15398 -*) as_fn_error "unrecognized option: \`$1'
15399Try \`$0 --help' for more information." ;;
15400
15401 *) as_fn_append ac_config_targets " $1"
15402 ac_need_defaults=false ;;
15403
15404 esac
15405 shift
15406done
15407
15408ac_configure_extra_args=
15409
15410if $ac_cs_silent; then
15411 exec 6>/dev/null
15412 ac_configure_extra_args="$ac_configure_extra_args --silent"
15413fi
15414
15415_ACEOF
15416cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15417if \$ac_cs_recheck; then
15418 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15419 shift
15420 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15421 CONFIG_SHELL='$SHELL'
15422 export CONFIG_SHELL
15423 exec "\$@"
15424fi
15425
15426_ACEOF
15427cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15428exec 5>>config.log
15429{
15430 echo
15431 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15432## Running $as_me. ##
15433_ASBOX
15434 $as_echo "$ac_log"
15435} >&5
15436
15437_ACEOF
15438cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15439#
15440# INIT-COMMANDS
15441#
15442AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15443
15444_ACEOF
15445
15446cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15447
15448# Handling of arguments.
15449for ac_config_target in $ac_config_targets
15450do
15451 case $ac_config_target in
15452 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
15453 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15454 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15455 "import/Makefile") CONFIG_FILES="$CONFIG_FILES import/Makefile" ;;
15456 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15457
15458 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15459 esac
15460done
15461
15462
15463# If the user did not use the arguments to specify the items to instantiate,
15464# then the envvar interface is used. Set only those that are not.
15465# We use the long form for the default assignment because of an extremely
15466# bizarre bug on SunOS 4.1.3.
15467if $ac_need_defaults; then
15468 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15469 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15470 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15471fi
15472
15473# Have a temporary directory for convenience. Make it in the build tree
15474# simply because there is no reason against having it here, and in addition,
15475# creating and moving files from /tmp can sometimes cause problems.
15476# Hook for its removal unless debugging.
15477# Note that there is a small window in which the directory will not be cleaned:
15478# after its creation but before its name has been assigned to `$tmp'.
15479$debug ||
15480{
15481 tmp=
15482 trap 'exit_status=$?
15483 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15484' 0
15485 trap 'as_fn_exit 1' 1 2 13 15
15486}
15487# Create a (secure) tmp directory for tmp files.
15488
15489{
15490 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15491 test -n "$tmp" && test -d "$tmp"
15492} ||
15493{
15494 tmp=./conf$$-$RANDOM
15495 (umask 077 && mkdir "$tmp")
15496} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15497
15498# Set up the scripts for CONFIG_FILES section.
15499# No need to generate them if there are no CONFIG_FILES.
15500# This happens for instance with `./config.status config.h'.
15501if test -n "$CONFIG_FILES"; then
15502
15503
15504ac_cr=`echo X | tr X '\015'`
15505# On cygwin, bash can eat \r inside `` if the user requested igncr.
15506# But we know of no other shell where ac_cr would be empty at this
15507# point, so we can use a bashism as a fallback.
15508if test "x$ac_cr" = x; then
15509 eval ac_cr=\$\'\\r\'
15510fi
15511ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15512if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15513 ac_cs_awk_cr='\r'
15514else
15515 ac_cs_awk_cr=$ac_cr
15516fi
15517
15518echo 'BEGIN {' >"$tmp/subs1.awk" &&
15519_ACEOF
15520
15521
15522{
15523 echo "cat >conf$$subs.awk <<_ACEOF" &&
15524 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15525 echo "_ACEOF"
15526} >conf$$subs.sh ||
15527 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15528ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15529ac_delim='%!_!# '
15530for ac_last_try in false false false false false :; do
15531 . ./conf$$subs.sh ||
15532 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15533
15534 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15535 if test $ac_delim_n = $ac_delim_num; then
15536 break
15537 elif $ac_last_try; then
15538 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15539 else
15540 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15541 fi
15542done
15543rm -f conf$$subs.sh
15544
15545cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15546cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15547_ACEOF
15548sed -n '
15549h
15550s/^/S["/; s/!.*/"]=/
15551p
15552g
15553s/^[^!]*!//
15554:repl
15555t repl
15556s/'"$ac_delim"'$//
15557t delim
15558:nl
15559h
15560s/\(.\{148\}\).*/\1/
15561t more1
15562s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15563p
15564n
15565b repl
15566:more1
15567s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15568p
15569g
15570s/.\{148\}//
15571t nl
15572:delim
15573h
15574s/\(.\{148\}\).*/\1/
15575t more2
15576s/["\\]/\\&/g; s/^/"/; s/$/"/
15577p
15578b
15579:more2
15580s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15581p
15582g
15583s/.\{148\}//
15584t delim
15585' <conf$$subs.awk | sed '
15586/^[^""]/{
15587 N
15588 s/\n//
15589}
15590' >>$CONFIG_STATUS || ac_write_fail=1
15591rm -f conf$$subs.awk
15592cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15593_ACAWK
15594cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15595 for (key in S) S_is_set[key] = 1
15596 FS = "\a"
15597
15598}
15599{
15600 line = $ 0
15601 nfields = split(line, field, "@")
15602 substed = 0
15603 len = length(field[1])
15604 for (i = 2; i < nfields; i++) {
15605 key = field[i]
15606 keylen = length(key)
15607 if (S_is_set[key]) {
15608 value = S[key]
15609 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15610 len += length(value) + length(field[++i])
15611 substed = 1
15612 } else
15613 len += 1 + keylen
15614 }
15615
15616 print line
15617}
15618
15619_ACAWK
15620_ACEOF
15621cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15622if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15623 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15624else
15625 cat
15626fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15627 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15628_ACEOF
15629
15630# VPATH may cause trouble with some makes, so we remove $(srcdir),
15631# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15632# trailing colons and then remove the whole line if VPATH becomes empty
15633# (actually we leave an empty line to preserve line numbers).
15634if test "x$srcdir" = x.; then
15635 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15636s/:*\$(srcdir):*/:/
15637s/:*\${srcdir}:*/:/
15638s/:*@srcdir@:*/:/
15639s/^\([^=]*=[ ]*\):*/\1/
15640s/:*$//
15641s/^[^=]*=[ ]*$//
15642}'
15643fi
15644
15645cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15646fi # test -n "$CONFIG_FILES"
15647
15648# Set up the scripts for CONFIG_HEADERS section.
15649# No need to generate them if there are no CONFIG_HEADERS.
15650# This happens for instance with `./config.status Makefile'.
15651if test -n "$CONFIG_HEADERS"; then
15652cat >"$tmp/defines.awk" <<\_ACAWK ||
15653BEGIN {
15654_ACEOF
15655
15656# Transform confdefs.h into an awk script `defines.awk', embedded as
15657# here-document in config.status, that substitutes the proper values into
15658# config.h.in to produce config.h.
15659
15660# Create a delimiter string that does not exist in confdefs.h, to ease
15661# handling of long lines.
15662ac_delim='%!_!# '
15663for ac_last_try in false false :; do
15664 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15665 if test -z "$ac_t"; then
15666 break
15667 elif $ac_last_try; then
15668 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15669 else
15670 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15671 fi
15672done
15673
15674# For the awk script, D is an array of macro values keyed by name,
15675# likewise P contains macro parameters if any. Preserve backslash
15676# newline sequences.
15677
15678ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15679sed -n '
15680s/.\{148\}/&'"$ac_delim"'/g
15681t rset
15682:rset
15683s/^[ ]*#[ ]*define[ ][ ]*/ /
15684t def
15685d
15686:def
15687s/\\$//
15688t bsnl
15689s/["\\]/\\&/g
15690s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15691D["\1"]=" \3"/p
15692s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15693d
15694:bsnl
15695s/["\\]/\\&/g
15696s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15697D["\1"]=" \3\\\\\\n"\\/p
15698t cont
15699s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15700t cont
15701d
15702:cont
15703n
15704s/.\{148\}/&'"$ac_delim"'/g
15705t clear
15706:clear
15707s/\\$//
15708t bsnlc
15709s/["\\]/\\&/g; s/^/"/; s/$/"/p
15710d
15711:bsnlc
15712s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15713b cont
15714' <confdefs.h | sed '
15715s/'"$ac_delim"'/"\\\
15716"/g' >>$CONFIG_STATUS || ac_write_fail=1
15717
15718cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15719 for (key in D) D_is_set[key] = 1
15720 FS = "\a"
15721}
15722/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15723 line = \$ 0
15724 split(line, arg, " ")
15725 if (arg[1] == "#") {
15726 defundef = arg[2]
15727 mac1 = arg[3]
15728 } else {
15729 defundef = substr(arg[1], 2)
15730 mac1 = arg[2]
15731 }
15732 split(mac1, mac2, "(") #)
15733 macro = mac2[1]
15734 prefix = substr(line, 1, index(line, defundef) - 1)
15735 if (D_is_set[macro]) {
15736 # Preserve the white space surrounding the "#".
15737 print prefix "define", macro P[macro] D[macro]
15738 next
15739 } else {
15740 # Replace #undef with comments. This is necessary, for example,
15741 # in the case of _POSIX_SOURCE, which is predefined and required
15742 # on some systems where configure will not decide to define it.
15743 if (defundef == "undef") {
15744 print "/*", prefix defundef, macro, "*/"
15745 next
15746 }
15747 }
15748}
15749{ print }
15750_ACAWK
15751_ACEOF
15752cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15753 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15754fi # test -n "$CONFIG_HEADERS"
15755
15756
15757eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15758shift
15759for ac_tag
15760do
15761 case $ac_tag in
15762 :[FHLC]) ac_mode=$ac_tag; continue;;
15763 esac
15764 case $ac_mode$ac_tag in
15765 :[FHL]*:*);;
15766 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15767 :[FH]-) ac_tag=-:-;;
15768 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15769 esac
15770 ac_save_IFS=$IFS
15771 IFS=:
15772 set x $ac_tag
15773 IFS=$ac_save_IFS
15774 shift
15775 ac_file=$1
15776 shift
15777
15778 case $ac_mode in
15779 :L) ac_source=$1;;
15780 :[FH])
15781 ac_file_inputs=
15782 for ac_f
15783 do
15784 case $ac_f in
15785 -) ac_f="$tmp/stdin";;
15786 *) # Look for the file first in the build tree, then in the source tree
15787 # (if the path is not absolute). The absolute path cannot be DOS-style,
15788 # because $ac_f cannot contain `:'.
15789 test -f "$ac_f" ||
15790 case $ac_f in
15791 [\\/$]*) false;;
15792 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15793 esac ||
15794 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15795 esac
15796 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15797 as_fn_append ac_file_inputs " '$ac_f'"
15798 done
15799
15800 # Let's still pretend it is `configure' which instantiates (i.e., don't
15801 # use $as_me), people would be surprised to read:
15802 # /* config.h. Generated by config.status. */
15803 configure_input='Generated from '`
15804 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15805 `' by configure.'
15806 if test x"$ac_file" != x-; then
15807 configure_input="$ac_file. $configure_input"
15808 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15809$as_echo "$as_me: creating $ac_file" >&6;}
15810 fi
15811 # Neutralize special characters interpreted by sed in replacement strings.
15812 case $configure_input in #(
15813 *\&* | *\|* | *\\* )
15814 ac_sed_conf_input=`$as_echo "$configure_input" |
15815 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15816 *) ac_sed_conf_input=$configure_input;;
15817 esac
15818
15819 case $ac_tag in
15820 *:-:* | *:-) cat >"$tmp/stdin" \
15821 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15822 esac
15823 ;;
15824 esac
15825
15826 ac_dir=`$as_dirname -- "$ac_file" ||
15827$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15828 X"$ac_file" : 'X\(//\)[^/]' \| \
15829 X"$ac_file" : 'X\(//\)$' \| \
15830 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15831$as_echo X"$ac_file" |
15832 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15833 s//\1/
15834 q
15835 }
15836 /^X\(\/\/\)[^/].*/{
15837 s//\1/
15838 q
15839 }
15840 /^X\(\/\/\)$/{
15841 s//\1/
15842 q
15843 }
15844 /^X\(\/\).*/{
15845 s//\1/
15846 q
15847 }
15848 s/.*/./; q'`
15849 as_dir="$ac_dir"; as_fn_mkdir_p
15850 ac_builddir=.
15851
15852case "$ac_dir" in
15853.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15854*)
15855 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15856 # A ".." for each directory in $ac_dir_suffix.
15857 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15858 case $ac_top_builddir_sub in
15859 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15860 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15861 esac ;;
15862esac
15863ac_abs_top_builddir=$ac_pwd
15864ac_abs_builddir=$ac_pwd$ac_dir_suffix
15865# for backward compatibility:
15866ac_top_builddir=$ac_top_build_prefix
15867
15868case $srcdir in
15869 .) # We are building in place.
15870 ac_srcdir=.
15871 ac_top_srcdir=$ac_top_builddir_sub
15872 ac_abs_top_srcdir=$ac_pwd ;;
15873 [\\/]* | ?:[\\/]* ) # Absolute name.
15874 ac_srcdir=$srcdir$ac_dir_suffix;
15875 ac_top_srcdir=$srcdir
15876 ac_abs_top_srcdir=$srcdir ;;
15877 *) # Relative name.
15878 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15879 ac_top_srcdir=$ac_top_build_prefix$srcdir
15880 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15881esac
15882ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15883
15884
15885 case $ac_mode in
15886 :F)
15887 #
15888 # CONFIG_FILE
15889 #
15890
15891 case $INSTALL in
15892 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15893 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15894 esac
15895 ac_MKDIR_P=$MKDIR_P
15896 case $MKDIR_P in
15897 [\\/$]* | ?:[\\/]* ) ;;
15898 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15899 esac
15900_ACEOF
15901
15902cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15903# If the template does not know about datarootdir, expand it.
15904# FIXME: This hack should be removed a few years after 2.60.
15905ac_datarootdir_hack=; ac_datarootdir_seen=
15906ac_sed_dataroot='
15907/datarootdir/ {
15908 p
15909 q
15910}
15911/@datadir@/p
15912/@docdir@/p
15913/@infodir@/p
15914/@localedir@/p
15915/@mandir@/p'
15916case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15917*datarootdir*) ac_datarootdir_seen=yes;;
15918*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15920$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15921_ACEOF
15922cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15923 ac_datarootdir_hack='
15924 s&@datadir@&$datadir&g
15925 s&@docdir@&$docdir&g
15926 s&@infodir@&$infodir&g
15927 s&@localedir@&$localedir&g
15928 s&@mandir@&$mandir&g
15929 s&\\\${datarootdir}&$datarootdir&g' ;;
15930esac
15931_ACEOF
15932
15933# Neutralize VPATH when `$srcdir' = `.'.
15934# Shell code in configure.ac might set extrasub.
15935# FIXME: do we really want to maintain this feature?
15936cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15937ac_sed_extra="$ac_vpsub
15938$extrasub
15939_ACEOF
15940cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15941:t
15942/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15943s|@configure_input@|$ac_sed_conf_input|;t t
15944s&@top_builddir@&$ac_top_builddir_sub&;t t
15945s&@top_build_prefix@&$ac_top_build_prefix&;t t
15946s&@srcdir@&$ac_srcdir&;t t
15947s&@abs_srcdir@&$ac_abs_srcdir&;t t
15948s&@top_srcdir@&$ac_top_srcdir&;t t
15949s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15950s&@builddir@&$ac_builddir&;t t
15951s&@abs_builddir@&$ac_abs_builddir&;t t
15952s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15953s&@INSTALL@&$ac_INSTALL&;t t
15954s&@MKDIR_P@&$ac_MKDIR_P&;t t
15955$ac_datarootdir_hack
15956"
15957eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15958 || as_fn_error "could not create $ac_file" "$LINENO" 5
15959
15960test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15961 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15962 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15964which seems to be undefined. Please make sure it is defined." >&5
15965$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15966which seems to be undefined. Please make sure it is defined." >&2;}
15967
15968 rm -f "$tmp/stdin"
15969 case $ac_file in
15970 -) cat "$tmp/out" && rm -f "$tmp/out";;
15971 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15972 esac \
15973 || as_fn_error "could not create $ac_file" "$LINENO" 5
15974 ;;
15975 :H)
15976 #
15977 # CONFIG_HEADER
15978 #
15979 if test x"$ac_file" != x-; then
15980 {
15981 $as_echo "/* $configure_input */" \
15982 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15983 } >"$tmp/config.h" \
15984 || as_fn_error "could not create $ac_file" "$LINENO" 5
15985 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15986 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15987$as_echo "$as_me: $ac_file is unchanged" >&6;}
15988 else
15989 rm -f "$ac_file"
15990 mv "$tmp/config.h" "$ac_file" \
15991 || as_fn_error "could not create $ac_file" "$LINENO" 5
15992 fi
15993 else
15994 $as_echo "/* $configure_input */" \
15995 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15996 || as_fn_error "could not create -" "$LINENO" 5
15997 fi
15998# Compute "$ac_file"'s index in $config_headers.
15999_am_arg="$ac_file"
16000_am_stamp_count=1
16001for _am_header in $config_headers :; do
16002 case $_am_header in
16003 $_am_arg | $_am_arg:* )
16004 break ;;
16005 * )
16006 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16007 esac
16008done
16009echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16010$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16011 X"$_am_arg" : 'X\(//\)[^/]' \| \
16012 X"$_am_arg" : 'X\(//\)$' \| \
16013 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16014$as_echo X"$_am_arg" |
16015 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16016 s//\1/
16017 q
16018 }
16019 /^X\(\/\/\)[^/].*/{
16020 s//\1/
16021 q
16022 }
16023 /^X\(\/\/\)$/{
16024 s//\1/
16025 q
16026 }
16027 /^X\(\/\).*/{
16028 s//\1/
16029 q
16030 }
16031 s/.*/./; q'`/stamp-h$_am_stamp_count
16032 ;;
16033
16034 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16035$as_echo "$as_me: executing $ac_file commands" >&6;}
16036 ;;
16037 esac
16038
16039
16040 case $ac_file$ac_mode in
16041 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16042 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16043 # are listed without --file. Let's play safe and only enable the eval
16044 # if we detect the quoting.
16045 case $CONFIG_FILES in
16046 *\'*) eval set x "$CONFIG_FILES" ;;
16047 *) set x $CONFIG_FILES ;;
16048 esac
16049 shift
16050 for mf
16051 do
16052 # Strip MF so we end up with the name of the file.
16053 mf=`echo "$mf" | sed -e 's/:.*$//'`
16054 # Check whether this is an Automake generated Makefile or not.
16055 # We used to match only the files named `Makefile.in', but
16056 # some people rename them; so instead we look at the file content.
16057 # Grep'ing the first line is not enough: some people post-process
16058 # each Makefile.in and add a new line on top of each file to say so.
16059 # Grep'ing the whole file is not good either: AIX grep has a line
16060 # limit of 2048, but all sed's we know have understand at least 4000.
16061 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16062 dirpart=`$as_dirname -- "$mf" ||
16063$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16064 X"$mf" : 'X\(//\)[^/]' \| \
16065 X"$mf" : 'X\(//\)$' \| \
16066 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16067$as_echo X"$mf" |
16068 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16069 s//\1/
16070 q
16071 }
16072 /^X\(\/\/\)[^/].*/{
16073 s//\1/
16074 q
16075 }
16076 /^X\(\/\/\)$/{
16077 s//\1/
16078 q
16079 }
16080 /^X\(\/\).*/{
16081 s//\1/
16082 q
16083 }
16084 s/.*/./; q'`
16085 else
16086 continue
16087 fi
16088 # Extract the definition of DEPDIR, am__include, and am__quote
16089 # from the Makefile without running `make'.
16090 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16091 test -z "$DEPDIR" && continue
16092 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16093 test -z "am__include" && continue
16094 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16095 # When using ansi2knr, U may be empty or an underscore; expand it
16096 U=`sed -n 's/^U = //p' < "$mf"`
16097 # Find all dependency output files, they are included files with
16098 # $(DEPDIR) in their names. We invoke sed twice because it is the
16099 # simplest approach to changing $(DEPDIR) to its actual value in the
16100 # expansion.
16101 for file in `sed -n "
16102 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16103 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16104 # Make sure the directory exists.
16105 test -f "$dirpart/$file" && continue
16106 fdir=`$as_dirname -- "$file" ||
16107$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16108 X"$file" : 'X\(//\)[^/]' \| \
16109 X"$file" : 'X\(//\)$' \| \
16110 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16111$as_echo X"$file" |
16112 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16113 s//\1/
16114 q
16115 }
16116 /^X\(\/\/\)[^/].*/{
16117 s//\1/
16118 q
16119 }
16120 /^X\(\/\/\)$/{
16121 s//\1/
16122 q
16123 }
16124 /^X\(\/\).*/{
16125 s//\1/
16126 q
16127 }
16128 s/.*/./; q'`
16129 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16130 # echo "creating $dirpart/$file"
16131 echo '# dummy' > "$dirpart/$file"
16132 done
16133 done
16134}
16135 ;;
16136 "default":C)
16137case x$CONFIG_HEADERS in
16138xconfig.h:config.in)
16139echo > stamp-h ;;
16140esac
16141 ;;
16142
16143 esac
16144done # for ac_tag
16145
16146
16147as_fn_exit 0
16148_ACEOF
16149ac_clean_files=$ac_clean_files_save
16150
16151test $ac_write_fail = 0 ||
16152 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16153
16154
16155# configure is writing to config.log, and then calls config.status.
16156# config.status does its own redirection, appending to config.log.
16157# Unfortunately, on DOS this fails, as config.log is still kept open
16158# by configure, so config.status won't be able to write to it; its
16159# output is simply discarded. So we exec the FD to /dev/null,
16160# effectively closing config.log, so it can be properly (re)opened and
16161# appended to by config.status. When coming back to configure, we
16162# need to make the FD available again.
16163if test "$no_create" != yes; then
16164 ac_cs_success=:
16165 ac_config_status_args=
16166 test "$silent" = yes &&
16167 ac_config_status_args="$ac_config_status_args --quiet"
16168 exec 5>/dev/null
16169 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16170 exec 5>>config.log
16171 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16172 # would make configure fail if this is the last instruction.
16173 $ac_cs_success || as_fn_exit $?
16174fi
16175if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16177$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16178fi
16179
16180
16181exit 0
This page took 0.989548 seconds and 4 git commands to generate.