gdb/gnulib: Import frexpl.
[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
c971b7fa 592gl_func_list=
8690e634 593gl_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
619MKDIR_P
620INSTALL_STRIP_PROGRAM
621STRIP
622install_sh
623MAKEINFO
624AUTOHEADER
625AUTOMAKE
626AUTOCONF
627ACLOCAL
628VERSION
629PACKAGE
630CYGPATH_W
631am__isrc
632INSTALL_DATA
633INSTALL_SCRIPT
634INSTALL_PROGRAM
635LIBGNU_LTLIBDEPS
636LIBGNU_LIBDEPS
637gltests_WITNESS
8690e634
JK
638REPLACE_TOWLOWER
639REPLACE_ISWCNTRL
640HAVE_WCTYPE_H
641NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
642NEXT_WCTYPE_H
643HAVE_ISWCNTRL
644REPLACE_ISWBLANK
645HAVE_WCTRANS_T
646HAVE_WCTYPE_T
647HAVE_ISWBLANK
648GNULIB_TOWCTRANS
649GNULIB_WCTRANS
650GNULIB_ISWCTYPE
651GNULIB_WCTYPE
652GNULIB_ISWBLANK
653HAVE_WINT_T
654HAVE_FEATURES_H
655NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
656NEXT_WCHAR_H
c971b7fa
PA
657NEXT_AS_FIRST_DIRECTIVE_STRING_H
658NEXT_STRING_H
659NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
660NEXT_STDDEF_H
661GL_GENERATE_STDDEF_H_FALSE
662GL_GENERATE_STDDEF_H_TRUE
663STDDEF_H
664HAVE_WCHAR_T
665REPLACE_NULL
8690e634
JK
666HAVE__BOOL
667GL_GENERATE_STDBOOL_H_FALSE
668GL_GENERATE_STDBOOL_H_TRUE
669STDBOOL_H
c971b7fa
PA
670UNDEFINE_STRTOK_R
671REPLACE_STRTOK_R
672REPLACE_STRSIGNAL
673REPLACE_STRNLEN
674REPLACE_STRNDUP
675REPLACE_STRNCAT
676REPLACE_STRERROR_R
677REPLACE_STRERROR
678REPLACE_STRCHRNUL
679REPLACE_STRCASESTR
680REPLACE_STRSTR
681REPLACE_STRDUP
682REPLACE_STPNCPY
683REPLACE_MEMMEM
684REPLACE_MEMCHR
685HAVE_STRVERSCMP
686HAVE_DECL_STRSIGNAL
687HAVE_DECL_STRERROR_R
688HAVE_DECL_STRTOK_R
689HAVE_STRCASESTR
690HAVE_STRSEP
691HAVE_STRPBRK
692HAVE_DECL_STRNLEN
693HAVE_DECL_STRNDUP
694HAVE_DECL_STRDUP
695HAVE_STRCHRNUL
696HAVE_STPNCPY
697HAVE_STPCPY
698HAVE_RAWMEMCHR
699HAVE_DECL_MEMRCHR
700HAVE_MEMPCPY
701HAVE_DECL_MEMMEM
702HAVE_MEMCHR
703HAVE_FFSLL
704HAVE_FFSL
705HAVE_MBSLEN
706GNULIB_STRVERSCMP
707GNULIB_STRSIGNAL
708GNULIB_STRERROR_R
709GNULIB_STRERROR
710GNULIB_MBSTOK_R
711GNULIB_MBSSEP
712GNULIB_MBSSPN
713GNULIB_MBSPBRK
714GNULIB_MBSCSPN
715GNULIB_MBSCASESTR
716GNULIB_MBSPCASECMP
717GNULIB_MBSNCASECMP
718GNULIB_MBSCASECMP
719GNULIB_MBSSTR
720GNULIB_MBSRCHR
721GNULIB_MBSCHR
722GNULIB_MBSNLEN
723GNULIB_MBSLEN
724GNULIB_STRTOK_R
725GNULIB_STRCASESTR
726GNULIB_STRSTR
727GNULIB_STRSEP
728GNULIB_STRPBRK
729GNULIB_STRNLEN
730GNULIB_STRNDUP
731GNULIB_STRNCAT
732GNULIB_STRDUP
733GNULIB_STRCHRNUL
734GNULIB_STPNCPY
735GNULIB_STPCPY
736GNULIB_RAWMEMCHR
737GNULIB_MEMRCHR
738GNULIB_MEMPCPY
739GNULIB_MEMMEM
740GNULIB_MEMCHR
741GNULIB_FFSLL
742GNULIB_FFSL
8690e634
JK
743LOCALE_FR
744LOCALE_FR_UTF8
745LOCALE_ZH_CN
746LOCALE_JA
747REPLACE_WCSWIDTH
748REPLACE_WCWIDTH
749REPLACE_WCSNRTOMBS
750REPLACE_WCSRTOMBS
751REPLACE_WCRTOMB
752REPLACE_MBSNRTOWCS
753REPLACE_MBSRTOWCS
754REPLACE_MBRLEN
755REPLACE_MBRTOWC
756REPLACE_MBSINIT
757REPLACE_WCTOB
758REPLACE_BTOWC
759REPLACE_MBSTATE_T
760HAVE_DECL_WCWIDTH
761HAVE_DECL_WCTOB
762HAVE_WCSWIDTH
763HAVE_WCSTOK
764HAVE_WCSSTR
765HAVE_WCSPBRK
766HAVE_WCSSPN
767HAVE_WCSCSPN
768HAVE_WCSRCHR
769HAVE_WCSCHR
770HAVE_WCSDUP
771HAVE_WCSXFRM
772HAVE_WCSCOLL
773HAVE_WCSNCASECMP
774HAVE_WCSCASECMP
775HAVE_WCSNCMP
776HAVE_WCSCMP
777HAVE_WCSNCAT
778HAVE_WCSCAT
779HAVE_WCPNCPY
780HAVE_WCSNCPY
781HAVE_WCPCPY
782HAVE_WCSCPY
783HAVE_WCSNLEN
784HAVE_WCSLEN
785HAVE_WMEMSET
786HAVE_WMEMMOVE
787HAVE_WMEMCPY
788HAVE_WMEMCMP
789HAVE_WMEMCHR
790HAVE_WCSNRTOMBS
791HAVE_WCSRTOMBS
792HAVE_WCRTOMB
793HAVE_MBSNRTOWCS
794HAVE_MBSRTOWCS
795HAVE_MBRLEN
796HAVE_MBRTOWC
797HAVE_MBSINIT
798HAVE_BTOWC
799GNULIB_WCSWIDTH
800GNULIB_WCSTOK
801GNULIB_WCSSTR
802GNULIB_WCSPBRK
803GNULIB_WCSSPN
804GNULIB_WCSCSPN
805GNULIB_WCSRCHR
806GNULIB_WCSCHR
807GNULIB_WCSDUP
808GNULIB_WCSXFRM
809GNULIB_WCSCOLL
810GNULIB_WCSNCASECMP
811GNULIB_WCSCASECMP
812GNULIB_WCSNCMP
813GNULIB_WCSCMP
814GNULIB_WCSNCAT
815GNULIB_WCSCAT
816GNULIB_WCPNCPY
817GNULIB_WCSNCPY
818GNULIB_WCPCPY
819GNULIB_WCSCPY
820GNULIB_WCSNLEN
821GNULIB_WCSLEN
822GNULIB_WMEMSET
823GNULIB_WMEMMOVE
824GNULIB_WMEMCPY
825GNULIB_WMEMCMP
826GNULIB_WMEMCHR
827GNULIB_WCWIDTH
828GNULIB_WCSNRTOMBS
829GNULIB_WCSRTOMBS
830GNULIB_WCRTOMB
831GNULIB_MBSNRTOWCS
832GNULIB_MBSRTOWCS
833GNULIB_MBRLEN
834GNULIB_MBRTOWC
835GNULIB_MBSINIT
836GNULIB_WCTOB
837GNULIB_BTOWC
88b48903
WN
838NEXT_AS_FIRST_DIRECTIVE_MATH_H
839NEXT_MATH_H
8690e634
JK
840LOCALCHARSET_TESTS_ENVIRONMENT
841GLIBC21
c971b7fa
PA
842NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
843NEXT_INTTYPES_H
844UINT64_MAX_EQ_ULONG_MAX
845UINT32_MAX_LT_UINTMAX_MAX
846PRIPTR_PREFIX
847PRI_MACROS_BROKEN
848INT64_MAX_EQ_LONG_MAX
849INT32_MAX_LT_INTMAX_MAX
850REPLACE_STRTOIMAX
851HAVE_DECL_STRTOUMAX
852HAVE_DECL_STRTOIMAX
853HAVE_DECL_IMAXDIV
854HAVE_DECL_IMAXABS
855GNULIB_STRTOUMAX
856GNULIB_STRTOIMAX
857GNULIB_IMAXDIV
858GNULIB_IMAXABS
859GL_GENERATE_STDINT_H_FALSE
860GL_GENERATE_STDINT_H_TRUE
861STDINT_H
862WINT_T_SUFFIX
863WCHAR_T_SUFFIX
864SIG_ATOMIC_T_SUFFIX
865SIZE_T_SUFFIX
866PTRDIFF_T_SUFFIX
867HAVE_SIGNED_WINT_T
868HAVE_SIGNED_WCHAR_T
869HAVE_SIGNED_SIG_ATOMIC_T
870BITSIZEOF_WINT_T
871BITSIZEOF_WCHAR_T
872BITSIZEOF_SIG_ATOMIC_T
873BITSIZEOF_SIZE_T
874BITSIZEOF_PTRDIFF_T
875APPLE_UNIVERSAL_BUILD
876HAVE_SYS_BITYPES_H
877HAVE_SYS_INTTYPES_H
878HAVE_STDINT_H
879NEXT_AS_FIRST_DIRECTIVE_STDINT_H
880NEXT_STDINT_H
c971b7fa
PA
881HAVE_SYS_TYPES_H
882HAVE_INTTYPES_H
883HAVE_WCHAR_H
884HAVE_UNSIGNED_LONG_LONG_INT
885HAVE_LONG_LONG_INT
88b48903
WN
886FREXPL_LIBM
887HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
888FREXP_LIBM
889REPLACE_TRUNCL
890REPLACE_TRUNCF
891REPLACE_TRUNC
892REPLACE_SQRTL
893REPLACE_SIGNBIT_USING_GCC
894REPLACE_SIGNBIT
895REPLACE_ROUNDL
896REPLACE_ROUNDF
897REPLACE_ROUND
898REPLACE_REMAINDERL
899REPLACE_REMAINDERF
900REPLACE_REMAINDER
901REPLACE_NAN
902REPLACE_MODFL
903REPLACE_MODFF
904REPLACE_MODF
905REPLACE_LOGBL
906REPLACE_LOGBF
907REPLACE_LOGB
908REPLACE_LOG2L
909REPLACE_LOG2F
910REPLACE_LOG2
911REPLACE_LOG1PL
912REPLACE_LOG1PF
913REPLACE_LOG1P
914REPLACE_LOG10L
915REPLACE_LOG10F
916REPLACE_LOG10
917REPLACE_LOGL
918REPLACE_LOGF
919REPLACE_LOG
920REPLACE_LDEXPL
921REPLACE_ISNAN
922REPLACE_ISINF
923REPLACE_ISFINITE
924REPLACE_ILOGBF
925REPLACE_ILOGB
926REPLACE_HYPOTL
927REPLACE_HYPOTF
928REPLACE_HYPOT
929REPLACE_HUGE_VAL
930REPLACE_FREXPL
931REPLACE_FREXP
932REPLACE_FREXPF
933REPLACE_FMODL
934REPLACE_FMODF
935REPLACE_FMOD
936REPLACE_FMAL
937REPLACE_FMAF
938REPLACE_FMA
939REPLACE_FLOORL
940REPLACE_FLOORF
941REPLACE_FLOOR
942REPLACE_FABSL
943REPLACE_EXP2L
944REPLACE_EXP2
945REPLACE_EXPM1F
946REPLACE_EXPM1
947REPLACE_CEILL
948REPLACE_CEILF
949REPLACE_CEIL
950REPLACE_CBRTL
951REPLACE_CBRTF
952HAVE_DECL_TRUNCL
953HAVE_DECL_TRUNCF
954HAVE_DECL_TRUNC
955HAVE_DECL_TANL
956HAVE_DECL_SQRTL
957HAVE_DECL_SINL
958HAVE_DECL_ROUNDL
959HAVE_DECL_ROUNDF
960HAVE_DECL_ROUND
961HAVE_DECL_RINTF
962HAVE_DECL_REMAINDERL
963HAVE_DECL_REMAINDER
964HAVE_DECL_LOGB
965HAVE_DECL_LOG2L
966HAVE_DECL_LOG2F
967HAVE_DECL_LOG2
968HAVE_DECL_LOG10L
969HAVE_DECL_LOGL
970HAVE_DECL_LDEXPL
971HAVE_DECL_FREXPL
972HAVE_DECL_FLOORL
973HAVE_DECL_FLOORF
974HAVE_DECL_EXPM1L
975HAVE_DECL_EXP2L
976HAVE_DECL_EXP2F
977HAVE_DECL_EXP2
978HAVE_DECL_EXPL
979HAVE_DECL_COSL
980HAVE_DECL_COPYSIGNF
981HAVE_DECL_CEILL
982HAVE_DECL_CEILF
983HAVE_DECL_CBRTL
984HAVE_DECL_CBRTF
985HAVE_DECL_ATANL
986HAVE_DECL_ASINL
987HAVE_DECL_ACOSL
988HAVE_TANHF
989HAVE_TANL
990HAVE_TANF
991HAVE_SQRTL
992HAVE_SQRTF
993HAVE_SINHF
994HAVE_SINL
995HAVE_SINF
996HAVE_RINTL
997HAVE_RINT
998HAVE_REMAINDERF
999HAVE_REMAINDER
1000HAVE_POWF
1001HAVE_MODFL
1002HAVE_MODFF
1003HAVE_LOGBL
1004HAVE_LOGBF
1005HAVE_LOG1PL
1006HAVE_LOG1PF
1007HAVE_LOG1P
1008HAVE_LOG10L
1009HAVE_LOG10F
1010HAVE_LOGL
1011HAVE_LOGF
1012HAVE_LDEXPF
1013HAVE_ISNANL
1014HAVE_ISNAND
1015HAVE_ISNANF
1016HAVE_ILOGBL
1017HAVE_ILOGBF
1018HAVE_ILOGB
1019HAVE_HYPOTL
1020HAVE_HYPOTF
1021HAVE_FREXPF
1022HAVE_FMODL
1023HAVE_FMODF
1024HAVE_FMAL
1025HAVE_FMAF
1026HAVE_FMA
1027HAVE_FABSL
1028HAVE_FABSF
1029HAVE_EXPM1F
1030HAVE_EXPM1
1031HAVE_EXPL
1032HAVE_EXPF
1033HAVE_COSHF
1034HAVE_COSL
1035HAVE_COSF
1036HAVE_COPYSIGNL
1037HAVE_COPYSIGN
1038HAVE_CBRTL
1039HAVE_CBRTF
1040HAVE_CBRT
1041HAVE_ATAN2F
1042HAVE_ATANL
1043HAVE_ATANF
1044HAVE_ASINL
1045HAVE_ASINF
1046HAVE_ACOSL
1047HAVE_ACOSF
1048GNULIB_TRUNCL
1049GNULIB_TRUNCF
1050GNULIB_TRUNC
1051GNULIB_TANHF
1052GNULIB_TANL
1053GNULIB_TANF
1054GNULIB_SQRTL
1055GNULIB_SQRTF
1056GNULIB_SINHF
1057GNULIB_SINL
1058GNULIB_SINF
1059GNULIB_SIGNBIT
1060GNULIB_ROUNDL
1061GNULIB_ROUNDF
1062GNULIB_ROUND
1063GNULIB_RINTL
1064GNULIB_RINTF
1065GNULIB_RINT
1066GNULIB_REMAINDERL
1067GNULIB_REMAINDERF
1068GNULIB_REMAINDER
1069GNULIB_POWF
1070GNULIB_MODFL
1071GNULIB_MODFF
1072GNULIB_MODF
1073GNULIB_LOGBL
1074GNULIB_LOGBF
1075GNULIB_LOGB
1076GNULIB_LOG2L
1077GNULIB_LOG2F
1078GNULIB_LOG2
1079GNULIB_LOG1PL
1080GNULIB_LOG1PF
1081GNULIB_LOG1P
1082GNULIB_LOG10L
1083GNULIB_LOG10F
1084GNULIB_LOG10
1085GNULIB_LOGL
1086GNULIB_LOGF
1087GNULIB_LOG
1088GNULIB_LDEXPL
1089GNULIB_LDEXPF
1090GNULIB_ISNANL
1091GNULIB_ISNAND
1092GNULIB_ISNANF
1093GNULIB_ISNAN
1094GNULIB_ISINF
1095GNULIB_ISFINITE
1096GNULIB_ILOGBL
1097GNULIB_ILOGBF
1098GNULIB_ILOGB
1099GNULIB_HYPOTL
1100GNULIB_HYPOTF
1101GNULIB_HYPOT
1102GNULIB_FREXPL
1103GNULIB_FREXP
1104GNULIB_FREXPF
1105GNULIB_FMODL
1106GNULIB_FMODF
1107GNULIB_FMOD
1108GNULIB_FMAL
1109GNULIB_FMAF
1110GNULIB_FMA
1111GNULIB_FLOORL
1112GNULIB_FLOORF
1113GNULIB_FLOOR
1114GNULIB_FABSL
1115GNULIB_FABSF
1116GNULIB_EXPM1L
1117GNULIB_EXPM1F
1118GNULIB_EXPM1
1119GNULIB_EXP2L
1120GNULIB_EXP2F
1121GNULIB_EXP2
1122GNULIB_EXPL
1123GNULIB_EXPF
1124GNULIB_COSHF
1125GNULIB_COSL
1126GNULIB_COSF
1127GNULIB_COPYSIGNL
1128GNULIB_COPYSIGNF
1129GNULIB_COPYSIGN
1130GNULIB_CEILL
1131GNULIB_CEILF
1132GNULIB_CEIL
1133GNULIB_CBRTL
1134GNULIB_CBRTF
1135GNULIB_CBRT
1136GNULIB_ATAN2F
1137GNULIB_ATANL
1138GNULIB_ATANF
1139GNULIB_ASINL
1140GNULIB_ASINF
1141GNULIB_ACOSL
1142GNULIB_ACOSF
8690e634
JK
1143GL_GENERATE_FNMATCH_H_FALSE
1144GL_GENERATE_FNMATCH_H_TRUE
1145FNMATCH_H
88b48903
WN
1146REPLACE_ITOLD
1147GL_GENERATE_FLOAT_H_FALSE
1148GL_GENERATE_FLOAT_H_TRUE
1149FLOAT_H
1150NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1151NEXT_FLOAT_H
1152PRAGMA_COLUMNS
1153PRAGMA_SYSTEM_HEADER
1154INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1155INCLUDE_NEXT
8690e634
JK
1156pkglibexecdir
1157lispdir
1158GL_GENERATE_ALLOCA_H_FALSE
1159GL_GENERATE_ALLOCA_H_TRUE
1160ALLOCA_H
1161ALLOCA
c971b7fa
PA
1162GL_COND_LIBTOOL_FALSE
1163GL_COND_LIBTOOL_TRUE
1164target_os
1165target_vendor
1166target_cpu
1167target
1168RANLIB
1169ARFLAGS
1170AR
1171EGREP
1172GREP
1173CPP
1174host_os
1175host_vendor
1176host_cpu
1177host
1178build_os
1179build_vendor
1180build_cpu
1181build
1182OBJEXT
1183EXEEXT
1184ac_ct_CC
1185CPPFLAGS
1186LDFLAGS
1187CFLAGS
1188CC
1189MAINT
1190MAINTAINER_MODE_FALSE
1191MAINTAINER_MODE_TRUE
1192target_alias
1193host_alias
1194build_alias
1195LIBS
1196ECHO_T
1197ECHO_N
1198ECHO_C
1199DEFS
1200mandir
1201localedir
1202libdir
1203psdir
1204pdfdir
1205dvidir
1206htmldir
1207infodir
1208docdir
1209oldincludedir
1210includedir
1211localstatedir
1212sharedstatedir
1213sysconfdir
1214datadir
1215datarootdir
1216libexecdir
1217sbindir
1218bindir
1219program_transform_name
1220prefix
1221exec_prefix
1222PACKAGE_URL
1223PACKAGE_BUGREPORT
1224PACKAGE_STRING
1225PACKAGE_VERSION
1226PACKAGE_TARNAME
1227PACKAGE_NAME
1228PATH_SEPARATOR
1229SHELL'
1230ac_subst_files=''
1231ac_user_opts='
1232enable_option_checking
1233enable_maintainer_mode
1234enable_dependency_tracking
1235'
1236 ac_precious_vars='build_alias
1237host_alias
1238target_alias
1239CC
1240CFLAGS
1241LDFLAGS
1242LIBS
1243CPPFLAGS
1244CPP'
1245
1246
1247# Initialize some variables set by options.
1248ac_init_help=
1249ac_init_version=false
1250ac_unrecognized_opts=
1251ac_unrecognized_sep=
1252# The variables have the same names as the options, with
1253# dashes changed to underlines.
1254cache_file=/dev/null
1255exec_prefix=NONE
1256no_create=
1257no_recursion=
1258prefix=NONE
1259program_prefix=NONE
1260program_suffix=NONE
1261program_transform_name=s,x,x,
1262silent=
1263site=
1264srcdir=
1265verbose=
1266x_includes=NONE
1267x_libraries=NONE
1268
1269# Installation directory options.
1270# These are left unexpanded so users can "make install exec_prefix=/foo"
1271# and all the variables that are supposed to be based on exec_prefix
1272# by default will actually change.
1273# Use braces instead of parens because sh, perl, etc. also accept them.
1274# (The list follows the same order as the GNU Coding Standards.)
1275bindir='${exec_prefix}/bin'
1276sbindir='${exec_prefix}/sbin'
1277libexecdir='${exec_prefix}/libexec'
1278datarootdir='${prefix}/share'
1279datadir='${datarootdir}'
1280sysconfdir='${prefix}/etc'
1281sharedstatedir='${prefix}/com'
1282localstatedir='${prefix}/var'
1283includedir='${prefix}/include'
1284oldincludedir='/usr/include'
1285docdir='${datarootdir}/doc/${PACKAGE}'
1286infodir='${datarootdir}/info'
1287htmldir='${docdir}'
1288dvidir='${docdir}'
1289pdfdir='${docdir}'
1290psdir='${docdir}'
1291libdir='${exec_prefix}/lib'
1292localedir='${datarootdir}/locale'
1293mandir='${datarootdir}/man'
1294
1295ac_prev=
1296ac_dashdash=
1297for ac_option
1298do
1299 # If the previous option needs an argument, assign it.
1300 if test -n "$ac_prev"; then
1301 eval $ac_prev=\$ac_option
1302 ac_prev=
1303 continue
1304 fi
1305
1306 case $ac_option in
1307 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1308 *) ac_optarg=yes ;;
1309 esac
1310
1311 # Accept the important Cygnus configure options, so we can diagnose typos.
1312
1313 case $ac_dashdash$ac_option in
1314 --)
1315 ac_dashdash=yes ;;
1316
1317 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1318 ac_prev=bindir ;;
1319 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1320 bindir=$ac_optarg ;;
1321
1322 -build | --build | --buil | --bui | --bu)
1323 ac_prev=build_alias ;;
1324 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1325 build_alias=$ac_optarg ;;
1326
1327 -cache-file | --cache-file | --cache-fil | --cache-fi \
1328 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1329 ac_prev=cache_file ;;
1330 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1331 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1332 cache_file=$ac_optarg ;;
1333
1334 --config-cache | -C)
1335 cache_file=config.cache ;;
1336
1337 -datadir | --datadir | --datadi | --datad)
1338 ac_prev=datadir ;;
1339 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1340 datadir=$ac_optarg ;;
1341
1342 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1343 | --dataroo | --dataro | --datar)
1344 ac_prev=datarootdir ;;
1345 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1346 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1347 datarootdir=$ac_optarg ;;
1348
1349 -disable-* | --disable-*)
1350 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1351 # Reject names that are not valid shell variable names.
1352 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1353 as_fn_error "invalid feature name: $ac_useropt"
1354 ac_useropt_orig=$ac_useropt
1355 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1356 case $ac_user_opts in
1357 *"
1358"enable_$ac_useropt"
1359"*) ;;
1360 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1361 ac_unrecognized_sep=', ';;
1362 esac
1363 eval enable_$ac_useropt=no ;;
1364
1365 -docdir | --docdir | --docdi | --doc | --do)
1366 ac_prev=docdir ;;
1367 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1368 docdir=$ac_optarg ;;
1369
1370 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1371 ac_prev=dvidir ;;
1372 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1373 dvidir=$ac_optarg ;;
1374
1375 -enable-* | --enable-*)
1376 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1377 # Reject names that are not valid shell variable names.
1378 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1379 as_fn_error "invalid feature name: $ac_useropt"
1380 ac_useropt_orig=$ac_useropt
1381 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1382 case $ac_user_opts in
1383 *"
1384"enable_$ac_useropt"
1385"*) ;;
1386 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1387 ac_unrecognized_sep=', ';;
1388 esac
1389 eval enable_$ac_useropt=\$ac_optarg ;;
1390
1391 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1392 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1393 | --exec | --exe | --ex)
1394 ac_prev=exec_prefix ;;
1395 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1396 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1397 | --exec=* | --exe=* | --ex=*)
1398 exec_prefix=$ac_optarg ;;
1399
1400 -gas | --gas | --ga | --g)
1401 # Obsolete; use --with-gas.
1402 with_gas=yes ;;
1403
1404 -help | --help | --hel | --he | -h)
1405 ac_init_help=long ;;
1406 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1407 ac_init_help=recursive ;;
1408 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1409 ac_init_help=short ;;
1410
1411 -host | --host | --hos | --ho)
1412 ac_prev=host_alias ;;
1413 -host=* | --host=* | --hos=* | --ho=*)
1414 host_alias=$ac_optarg ;;
1415
1416 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1417 ac_prev=htmldir ;;
1418 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1419 | --ht=*)
1420 htmldir=$ac_optarg ;;
1421
1422 -includedir | --includedir | --includedi | --included | --include \
1423 | --includ | --inclu | --incl | --inc)
1424 ac_prev=includedir ;;
1425 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1426 | --includ=* | --inclu=* | --incl=* | --inc=*)
1427 includedir=$ac_optarg ;;
1428
1429 -infodir | --infodir | --infodi | --infod | --info | --inf)
1430 ac_prev=infodir ;;
1431 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1432 infodir=$ac_optarg ;;
1433
1434 -libdir | --libdir | --libdi | --libd)
1435 ac_prev=libdir ;;
1436 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1437 libdir=$ac_optarg ;;
1438
1439 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1440 | --libexe | --libex | --libe)
1441 ac_prev=libexecdir ;;
1442 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1443 | --libexe=* | --libex=* | --libe=*)
1444 libexecdir=$ac_optarg ;;
1445
1446 -localedir | --localedir | --localedi | --localed | --locale)
1447 ac_prev=localedir ;;
1448 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1449 localedir=$ac_optarg ;;
1450
1451 -localstatedir | --localstatedir | --localstatedi | --localstated \
1452 | --localstate | --localstat | --localsta | --localst | --locals)
1453 ac_prev=localstatedir ;;
1454 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1455 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1456 localstatedir=$ac_optarg ;;
1457
1458 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1459 ac_prev=mandir ;;
1460 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1461 mandir=$ac_optarg ;;
1462
1463 -nfp | --nfp | --nf)
1464 # Obsolete; use --without-fp.
1465 with_fp=no ;;
1466
1467 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1468 | --no-cr | --no-c | -n)
1469 no_create=yes ;;
1470
1471 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1472 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1473 no_recursion=yes ;;
1474
1475 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1476 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1477 | --oldin | --oldi | --old | --ol | --o)
1478 ac_prev=oldincludedir ;;
1479 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1480 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1481 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1482 oldincludedir=$ac_optarg ;;
1483
1484 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1485 ac_prev=prefix ;;
1486 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1487 prefix=$ac_optarg ;;
1488
1489 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1490 | --program-pre | --program-pr | --program-p)
1491 ac_prev=program_prefix ;;
1492 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1493 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1494 program_prefix=$ac_optarg ;;
1495
1496 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1497 | --program-suf | --program-su | --program-s)
1498 ac_prev=program_suffix ;;
1499 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1500 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1501 program_suffix=$ac_optarg ;;
1502
1503 -program-transform-name | --program-transform-name \
1504 | --program-transform-nam | --program-transform-na \
1505 | --program-transform-n | --program-transform- \
1506 | --program-transform | --program-transfor \
1507 | --program-transfo | --program-transf \
1508 | --program-trans | --program-tran \
1509 | --progr-tra | --program-tr | --program-t)
1510 ac_prev=program_transform_name ;;
1511 -program-transform-name=* | --program-transform-name=* \
1512 | --program-transform-nam=* | --program-transform-na=* \
1513 | --program-transform-n=* | --program-transform-=* \
1514 | --program-transform=* | --program-transfor=* \
1515 | --program-transfo=* | --program-transf=* \
1516 | --program-trans=* | --program-tran=* \
1517 | --progr-tra=* | --program-tr=* | --program-t=*)
1518 program_transform_name=$ac_optarg ;;
1519
1520 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1521 ac_prev=pdfdir ;;
1522 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1523 pdfdir=$ac_optarg ;;
1524
1525 -psdir | --psdir | --psdi | --psd | --ps)
1526 ac_prev=psdir ;;
1527 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1528 psdir=$ac_optarg ;;
1529
1530 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1531 | -silent | --silent | --silen | --sile | --sil)
1532 silent=yes ;;
1533
1534 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1535 ac_prev=sbindir ;;
1536 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1537 | --sbi=* | --sb=*)
1538 sbindir=$ac_optarg ;;
1539
1540 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1541 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1542 | --sharedst | --shareds | --shared | --share | --shar \
1543 | --sha | --sh)
1544 ac_prev=sharedstatedir ;;
1545 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1546 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1547 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1548 | --sha=* | --sh=*)
1549 sharedstatedir=$ac_optarg ;;
1550
1551 -site | --site | --sit)
1552 ac_prev=site ;;
1553 -site=* | --site=* | --sit=*)
1554 site=$ac_optarg ;;
1555
1556 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1557 ac_prev=srcdir ;;
1558 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1559 srcdir=$ac_optarg ;;
1560
1561 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1562 | --syscon | --sysco | --sysc | --sys | --sy)
1563 ac_prev=sysconfdir ;;
1564 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1565 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1566 sysconfdir=$ac_optarg ;;
1567
1568 -target | --target | --targe | --targ | --tar | --ta | --t)
1569 ac_prev=target_alias ;;
1570 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1571 target_alias=$ac_optarg ;;
1572
1573 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1574 verbose=yes ;;
1575
1576 -version | --version | --versio | --versi | --vers | -V)
1577 ac_init_version=: ;;
1578
1579 -with-* | --with-*)
1580 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1581 # Reject names that are not valid shell variable names.
1582 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1583 as_fn_error "invalid package name: $ac_useropt"
1584 ac_useropt_orig=$ac_useropt
1585 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1586 case $ac_user_opts in
1587 *"
1588"with_$ac_useropt"
1589"*) ;;
1590 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1591 ac_unrecognized_sep=', ';;
1592 esac
1593 eval with_$ac_useropt=\$ac_optarg ;;
1594
1595 -without-* | --without-*)
1596 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1597 # Reject names that are not valid shell variable names.
1598 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1599 as_fn_error "invalid package name: $ac_useropt"
1600 ac_useropt_orig=$ac_useropt
1601 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1602 case $ac_user_opts in
1603 *"
1604"with_$ac_useropt"
1605"*) ;;
1606 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1607 ac_unrecognized_sep=', ';;
1608 esac
1609 eval with_$ac_useropt=no ;;
1610
1611 --x)
1612 # Obsolete; use --with-x.
1613 with_x=yes ;;
1614
1615 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1616 | --x-incl | --x-inc | --x-in | --x-i)
1617 ac_prev=x_includes ;;
1618 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1619 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1620 x_includes=$ac_optarg ;;
1621
1622 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1623 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1624 ac_prev=x_libraries ;;
1625 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1626 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1627 x_libraries=$ac_optarg ;;
1628
1629 -*) as_fn_error "unrecognized option: \`$ac_option'
1630Try \`$0 --help' for more information."
1631 ;;
1632
1633 *=*)
1634 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1635 # Reject names that are not valid shell variable names.
1636 case $ac_envvar in #(
1637 '' | [0-9]* | *[!_$as_cr_alnum]* )
1638 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1639 esac
1640 eval $ac_envvar=\$ac_optarg
1641 export $ac_envvar ;;
1642
1643 *)
1644 # FIXME: should be removed in autoconf 3.0.
1645 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1647 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1649 ;;
1650
1651 esac
1652done
1653
1654if test -n "$ac_prev"; then
1655 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1656 as_fn_error "missing argument to $ac_option"
1657fi
1658
1659if test -n "$ac_unrecognized_opts"; then
1660 case $enable_option_checking in
1661 no) ;;
1662 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1663 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1664 esac
1665fi
1666
1667# Check all directory arguments for consistency.
1668for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1669 datadir sysconfdir sharedstatedir localstatedir includedir \
1670 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1671 libdir localedir mandir
1672do
1673 eval ac_val=\$$ac_var
1674 # Remove trailing slashes.
1675 case $ac_val in
1676 */ )
1677 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1678 eval $ac_var=\$ac_val;;
1679 esac
1680 # Be sure to have absolute directory names.
1681 case $ac_val in
1682 [\\/$]* | ?:[\\/]* ) continue;;
1683 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1684 esac
1685 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1686done
1687
1688# There might be people who depend on the old broken behavior: `$host'
1689# used to hold the argument of --host etc.
1690# FIXME: To remove some day.
1691build=$build_alias
1692host=$host_alias
1693target=$target_alias
1694
1695# FIXME: To remove some day.
1696if test "x$host_alias" != x; then
1697 if test "x$build_alias" = x; then
1698 cross_compiling=maybe
1699 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1700 If a cross compiler is detected then cross compile mode will be used." >&2
1701 elif test "x$build_alias" != "x$host_alias"; then
1702 cross_compiling=yes
1703 fi
1704fi
1705
1706ac_tool_prefix=
1707test -n "$host_alias" && ac_tool_prefix=$host_alias-
1708
1709test "$silent" = yes && exec 6>/dev/null
1710
1711
1712ac_pwd=`pwd` && test -n "$ac_pwd" &&
1713ac_ls_di=`ls -di .` &&
1714ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1715 as_fn_error "working directory cannot be determined"
1716test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1717 as_fn_error "pwd does not report name of working directory"
1718
1719
1720# Find the source files, if location was not specified.
1721if test -z "$srcdir"; then
1722 ac_srcdir_defaulted=yes
1723 # Try the directory containing this script, then the parent directory.
1724 ac_confdir=`$as_dirname -- "$as_myself" ||
1725$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1726 X"$as_myself" : 'X\(//\)[^/]' \| \
1727 X"$as_myself" : 'X\(//\)$' \| \
1728 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1729$as_echo X"$as_myself" |
1730 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1731 s//\1/
1732 q
1733 }
1734 /^X\(\/\/\)[^/].*/{
1735 s//\1/
1736 q
1737 }
1738 /^X\(\/\/\)$/{
1739 s//\1/
1740 q
1741 }
1742 /^X\(\/\).*/{
1743 s//\1/
1744 q
1745 }
1746 s/.*/./; q'`
1747 srcdir=$ac_confdir
1748 if test ! -r "$srcdir/$ac_unique_file"; then
1749 srcdir=..
1750 fi
1751else
1752 ac_srcdir_defaulted=no
1753fi
1754if test ! -r "$srcdir/$ac_unique_file"; then
1755 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1756 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1757fi
1758ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1759ac_abs_confdir=`(
1760 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1761 pwd)`
1762# When building in place, set srcdir=.
1763if test "$ac_abs_confdir" = "$ac_pwd"; then
1764 srcdir=.
1765fi
1766# Remove unnecessary trailing slashes from srcdir.
1767# Double slashes in file names in object file debugging info
1768# mess up M-x gdb in Emacs.
1769case $srcdir in
1770*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1771esac
1772for ac_var in $ac_precious_vars; do
1773 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1774 eval ac_env_${ac_var}_value=\$${ac_var}
1775 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1776 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1777done
1778
1779#
1780# Report the --help message.
1781#
1782if test "$ac_init_help" = "long"; then
1783 # Omit some internal or obsolete options to make the list less imposing.
1784 # This message is too long to be a string in the A/UX 3.1 sh.
1785 cat <<_ACEOF
1786\`configure' configures this package to adapt to many kinds of systems.
1787
1788Usage: $0 [OPTION]... [VAR=VALUE]...
1789
1790To assign environment variables (e.g., CC, CFLAGS...), specify them as
1791VAR=VALUE. See below for descriptions of some of the useful variables.
1792
1793Defaults for the options are specified in brackets.
1794
1795Configuration:
1796 -h, --help display this help and exit
1797 --help=short display options specific to this package
1798 --help=recursive display the short help of all the included packages
1799 -V, --version display version information and exit
1800 -q, --quiet, --silent do not print \`checking...' messages
1801 --cache-file=FILE cache test results in FILE [disabled]
1802 -C, --config-cache alias for \`--cache-file=config.cache'
1803 -n, --no-create do not create output files
1804 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1805
1806Installation directories:
1807 --prefix=PREFIX install architecture-independent files in PREFIX
1808 [$ac_default_prefix]
1809 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1810 [PREFIX]
1811
1812By default, \`make install' will install all the files in
1813\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1814an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1815for instance \`--prefix=\$HOME'.
1816
1817For better control, use the options below.
1818
1819Fine tuning of the installation directories:
1820 --bindir=DIR user executables [EPREFIX/bin]
1821 --sbindir=DIR system admin executables [EPREFIX/sbin]
1822 --libexecdir=DIR program executables [EPREFIX/libexec]
1823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1826 --libdir=DIR object code libraries [EPREFIX/lib]
1827 --includedir=DIR C header files [PREFIX/include]
1828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1829 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1830 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1831 --infodir=DIR info documentation [DATAROOTDIR/info]
1832 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1833 --mandir=DIR man documentation [DATAROOTDIR/man]
1834 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1835 --htmldir=DIR html documentation [DOCDIR]
1836 --dvidir=DIR dvi documentation [DOCDIR]
1837 --pdfdir=DIR pdf documentation [DOCDIR]
1838 --psdir=DIR ps documentation [DOCDIR]
1839_ACEOF
1840
1841 cat <<\_ACEOF
1842
1843Program names:
1844 --program-prefix=PREFIX prepend PREFIX to installed program names
1845 --program-suffix=SUFFIX append SUFFIX to installed program names
1846 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1847
1848System types:
1849 --build=BUILD configure for building on BUILD [guessed]
1850 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1851 --target=TARGET configure for building compilers for TARGET [HOST]
1852_ACEOF
1853fi
1854
1855if test -n "$ac_init_help"; then
1856
1857 cat <<\_ACEOF
1858
1859Optional Features:
1860 --disable-option-checking ignore unrecognized --enable/--with options
1861 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1862 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1863 --enable-maintainer-mode enable make rules and dependencies not useful
1864 (and sometimes confusing) to the casual installer
1865 --disable-dependency-tracking speeds up one-time build
1866 --enable-dependency-tracking do not reject slow dependency extractors
1867
1868Some influential environment variables:
1869 CC C compiler command
1870 CFLAGS C compiler flags
1871 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1872 nonstandard directory <lib dir>
1873 LIBS libraries to pass to the linker, e.g. -l<library>
1874 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1875 you have headers in a nonstandard directory <include dir>
1876 CPP C preprocessor
1877
1878Use these variables to override the choices made by `configure' or to help
1879it to find libraries and programs with nonstandard names/locations.
1880
1881Report bugs to the package provider.
1882_ACEOF
1883ac_status=$?
1884fi
1885
1886if test "$ac_init_help" = "recursive"; then
1887 # If there are subdirs, report their specific --help.
1888 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1889 test -d "$ac_dir" ||
1890 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1891 continue
1892 ac_builddir=.
1893
1894case "$ac_dir" in
1895.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1896*)
1897 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1898 # A ".." for each directory in $ac_dir_suffix.
1899 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1900 case $ac_top_builddir_sub in
1901 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1902 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1903 esac ;;
1904esac
1905ac_abs_top_builddir=$ac_pwd
1906ac_abs_builddir=$ac_pwd$ac_dir_suffix
1907# for backward compatibility:
1908ac_top_builddir=$ac_top_build_prefix
1909
1910case $srcdir in
1911 .) # We are building in place.
1912 ac_srcdir=.
1913 ac_top_srcdir=$ac_top_builddir_sub
1914 ac_abs_top_srcdir=$ac_pwd ;;
1915 [\\/]* | ?:[\\/]* ) # Absolute name.
1916 ac_srcdir=$srcdir$ac_dir_suffix;
1917 ac_top_srcdir=$srcdir
1918 ac_abs_top_srcdir=$srcdir ;;
1919 *) # Relative name.
1920 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1921 ac_top_srcdir=$ac_top_build_prefix$srcdir
1922 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1923esac
1924ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1925
1926 cd "$ac_dir" || { ac_status=$?; continue; }
1927 # Check for guested configure.
1928 if test -f "$ac_srcdir/configure.gnu"; then
1929 echo &&
1930 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1931 elif test -f "$ac_srcdir/configure"; then
1932 echo &&
1933 $SHELL "$ac_srcdir/configure" --help=recursive
1934 else
1935 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1936 fi || ac_status=$?
1937 cd "$ac_pwd" || { ac_status=$?; break; }
1938 done
1939fi
1940
1941test -n "$ac_init_help" && exit $ac_status
1942if $ac_init_version; then
1943 cat <<\_ACEOF
1944configure
1945generated by GNU Autoconf 2.64
1946
1947Copyright (C) 2009 Free Software Foundation, Inc.
1948This configure script is free software; the Free Software Foundation
1949gives unlimited permission to copy, distribute and modify it.
1950_ACEOF
1951 exit
1952fi
1953
1954## ------------------------ ##
1955## Autoconf initialization. ##
1956## ------------------------ ##
1957
1958# ac_fn_c_try_compile LINENO
1959# --------------------------
1960# Try to compile conftest.$ac_ext, and return whether this succeeded.
1961ac_fn_c_try_compile ()
1962{
1963 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1964 rm -f conftest.$ac_objext
1965 if { { ac_try="$ac_compile"
1966case "(($ac_try" in
1967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1968 *) ac_try_echo=$ac_try;;
1969esac
1970eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1971$as_echo "$ac_try_echo"; } >&5
1972 (eval "$ac_compile") 2>conftest.err
1973 ac_status=$?
1974 if test -s conftest.err; then
1975 grep -v '^ *+' conftest.err >conftest.er1
1976 cat conftest.er1 >&5
1977 mv -f conftest.er1 conftest.err
1978 fi
1979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1980 test $ac_status = 0; } && {
1981 test -z "$ac_c_werror_flag" ||
1982 test ! -s conftest.err
1983 } && test -s conftest.$ac_objext; then :
1984 ac_retval=0
1985else
1986 $as_echo "$as_me: failed program was:" >&5
1987sed 's/^/| /' conftest.$ac_ext >&5
1988
1989 ac_retval=1
1990fi
1991 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1992 return $ac_retval
1993
1994} # ac_fn_c_try_compile
1995
1996# ac_fn_c_try_cpp LINENO
1997# ----------------------
1998# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1999ac_fn_c_try_cpp ()
2000{
2001 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2002 if { { ac_try="$ac_cpp conftest.$ac_ext"
2003case "(($ac_try" in
2004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2005 *) ac_try_echo=$ac_try;;
2006esac
2007eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2008$as_echo "$ac_try_echo"; } >&5
2009 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2010 ac_status=$?
2011 if test -s conftest.err; then
2012 grep -v '^ *+' conftest.err >conftest.er1
2013 cat conftest.er1 >&5
2014 mv -f conftest.er1 conftest.err
2015 fi
2016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2017 test $ac_status = 0; } >/dev/null && {
2018 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2019 test ! -s conftest.err
2020 }; then :
2021 ac_retval=0
2022else
2023 $as_echo "$as_me: failed program was:" >&5
2024sed 's/^/| /' conftest.$ac_ext >&5
2025
2026 ac_retval=1
2027fi
2028 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2029 return $ac_retval
2030
2031} # ac_fn_c_try_cpp
2032
2033# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2034# -------------------------------------------------------
2035# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2036# the include files in INCLUDES and setting the cache variable VAR
2037# accordingly.
2038ac_fn_c_check_header_mongrel ()
2039{
2040 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2041 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2043$as_echo_n "checking for $2... " >&6; }
2044if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2045 $as_echo_n "(cached) " >&6
2046fi
2047eval ac_res=\$$3
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2049$as_echo "$ac_res" >&6; }
2050else
2051 # Is the header compilable?
2052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2053$as_echo_n "checking $2 usability... " >&6; }
2054cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2055/* end confdefs.h. */
2056$4
2057#include <$2>
2058_ACEOF
2059if ac_fn_c_try_compile "$LINENO"; then :
2060 ac_header_compiler=yes
2061else
2062 ac_header_compiler=no
2063fi
2064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2066$as_echo "$ac_header_compiler" >&6; }
2067
2068# Is the header present?
2069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2070$as_echo_n "checking $2 presence... " >&6; }
2071cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2072/* end confdefs.h. */
2073#include <$2>
2074_ACEOF
2075if ac_fn_c_try_cpp "$LINENO"; then :
2076 ac_header_preproc=yes
2077else
2078 ac_header_preproc=no
2079fi
2080rm -f conftest.err conftest.$ac_ext
2081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2082$as_echo "$ac_header_preproc" >&6; }
2083
2084# So? What about this header?
2085case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2086 yes:no: )
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2088$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2090$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2091 ;;
2092 no:yes:* )
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2094$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2096$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2098$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2100$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2102$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2103 ;;
2104esac
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2106$as_echo_n "checking for $2... " >&6; }
2107if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2108 $as_echo_n "(cached) " >&6
2109else
2110 eval "$3=\$ac_header_compiler"
2111fi
2112eval ac_res=\$$3
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2114$as_echo "$ac_res" >&6; }
2115fi
2116 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2117
2118} # ac_fn_c_check_header_mongrel
2119
2120# ac_fn_c_try_run LINENO
2121# ----------------------
2122# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2123# that executables *can* be run.
2124ac_fn_c_try_run ()
2125{
2126 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2127 if { { ac_try="$ac_link"
2128case "(($ac_try" in
2129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2130 *) ac_try_echo=$ac_try;;
2131esac
2132eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2133$as_echo "$ac_try_echo"; } >&5
2134 (eval "$ac_link") 2>&5
2135 ac_status=$?
2136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2137 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2138 { { case "(($ac_try" in
2139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2140 *) ac_try_echo=$ac_try;;
2141esac
2142eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2143$as_echo "$ac_try_echo"; } >&5
2144 (eval "$ac_try") 2>&5
2145 ac_status=$?
2146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2147 test $ac_status = 0; }; }; then :
2148 ac_retval=0
2149else
2150 $as_echo "$as_me: program exited with status $ac_status" >&5
2151 $as_echo "$as_me: failed program was:" >&5
2152sed 's/^/| /' conftest.$ac_ext >&5
2153
2154 ac_retval=$ac_status
2155fi
2156 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2157 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2158 return $ac_retval
2159
2160} # ac_fn_c_try_run
2161
2162# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2163# -------------------------------------------------------
2164# Tests whether HEADER exists and can be compiled using the include files in
2165# INCLUDES, setting the cache variable VAR accordingly.
2166ac_fn_c_check_header_compile ()
2167{
2168 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2170$as_echo_n "checking for $2... " >&6; }
2171if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2172 $as_echo_n "(cached) " >&6
2173else
2174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2175/* end confdefs.h. */
2176$4
2177#include <$2>
2178_ACEOF
2179if ac_fn_c_try_compile "$LINENO"; then :
2180 eval "$3=yes"
2181else
2182 eval "$3=no"
2183fi
2184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2185fi
2186eval ac_res=\$$3
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2188$as_echo "$ac_res" >&6; }
2189 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2190
2191} # ac_fn_c_check_header_compile
2192
2193# ac_fn_c_try_link LINENO
2194# -----------------------
2195# Try to link conftest.$ac_ext, and return whether this succeeded.
2196ac_fn_c_try_link ()
2197{
2198 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2199 rm -f conftest.$ac_objext conftest$ac_exeext
2200 if { { ac_try="$ac_link"
2201case "(($ac_try" in
2202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2203 *) ac_try_echo=$ac_try;;
2204esac
2205eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2206$as_echo "$ac_try_echo"; } >&5
2207 (eval "$ac_link") 2>conftest.err
2208 ac_status=$?
2209 if test -s conftest.err; then
2210 grep -v '^ *+' conftest.err >conftest.er1
2211 cat conftest.er1 >&5
2212 mv -f conftest.er1 conftest.err
2213 fi
2214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2215 test $ac_status = 0; } && {
2216 test -z "$ac_c_werror_flag" ||
2217 test ! -s conftest.err
2218 } && test -s conftest$ac_exeext && {
2219 test "$cross_compiling" = yes ||
2220 $as_test_x conftest$ac_exeext
2221 }; then :
2222 ac_retval=0
2223else
2224 $as_echo "$as_me: failed program was:" >&5
2225sed 's/^/| /' conftest.$ac_ext >&5
2226
2227 ac_retval=1
2228fi
2229 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2230 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2231 # interfere with the next link command; also delete a directory that is
2232 # left behind by Apple's compiler. We do this before executing the actions.
2233 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2234 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2235 return $ac_retval
2236
2237} # ac_fn_c_try_link
2238
8690e634
JK
2239# ac_fn_c_check_func LINENO FUNC VAR
2240# ----------------------------------
2241# Tests whether FUNC exists, setting the cache variable VAR accordingly
2242ac_fn_c_check_func ()
2243{
2244 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2246$as_echo_n "checking for $2... " >&6; }
2247if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2248 $as_echo_n "(cached) " >&6
2249else
2250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2251/* end confdefs.h. */
2252/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2253 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2254#define $2 innocuous_$2
2255
2256/* System header to define __stub macros and hopefully few prototypes,
2257 which can conflict with char $2 (); below.
2258 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2259 <limits.h> exists even on freestanding compilers. */
2260
2261#ifdef __STDC__
2262# include <limits.h>
2263#else
2264# include <assert.h>
2265#endif
2266
2267#undef $2
2268
2269/* Override any GCC internal prototype to avoid an error.
2270 Use char because int might match the return type of a GCC
2271 builtin and then its argument prototype would still apply. */
2272#ifdef __cplusplus
2273extern "C"
2274#endif
2275char $2 ();
2276/* The GNU C library defines this for functions which it implements
2277 to always fail with ENOSYS. Some functions are actually named
2278 something starting with __ and the normal name is an alias. */
2279#if defined __stub_$2 || defined __stub___$2
2280choke me
2281#endif
2282
2283int
2284main ()
2285{
2286return $2 ();
2287 ;
2288 return 0;
2289}
2290_ACEOF
2291if ac_fn_c_try_link "$LINENO"; then :
2292 eval "$3=yes"
2293else
2294 eval "$3=no"
2295fi
2296rm -f core conftest.err conftest.$ac_objext \
2297 conftest$ac_exeext conftest.$ac_ext
2298fi
2299eval ac_res=\$$3
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2301$as_echo "$ac_res" >&6; }
2302 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2303
2304} # ac_fn_c_check_func
2305
a143c6de
JB
2306# ac_fn_c_check_decl LINENO SYMBOL VAR
2307# ------------------------------------
2308# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2309ac_fn_c_check_decl ()
2310{
2311 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2313$as_echo_n "checking whether $2 is declared... " >&6; }
2314if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2315 $as_echo_n "(cached) " >&6
2316else
2317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2318/* end confdefs.h. */
2319$4
2320int
2321main ()
2322{
2323#ifndef $2
2324 (void) $2;
2325#endif
2326
2327 ;
2328 return 0;
2329}
2330_ACEOF
2331if ac_fn_c_try_compile "$LINENO"; then :
2332 eval "$3=yes"
2333else
2334 eval "$3=no"
2335fi
2336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2337fi
2338eval ac_res=\$$3
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2340$as_echo "$ac_res" >&6; }
2341 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2342
2343} # ac_fn_c_check_decl
2344
c971b7fa
PA
2345# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2346# --------------------------------------------
2347# Tries to find the compile-time value of EXPR in a program that includes
2348# INCLUDES, setting VAR accordingly. Returns whether the value could be
2349# computed
2350ac_fn_c_compute_int ()
2351{
2352 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2353 if test "$cross_compiling" = yes; then
2354 # Depending upon the size, compute the lo and hi bounds.
2355cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2356/* end confdefs.h. */
2357$4
2358int
2359main ()
2360{
2361static int test_array [1 - 2 * !(($2) >= 0)];
2362test_array [0] = 0
2363
2364 ;
2365 return 0;
2366}
2367_ACEOF
2368if ac_fn_c_try_compile "$LINENO"; then :
2369 ac_lo=0 ac_mid=0
2370 while :; do
2371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2372/* end confdefs.h. */
2373$4
2374int
2375main ()
2376{
2377static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2378test_array [0] = 0
2379
2380 ;
2381 return 0;
2382}
2383_ACEOF
2384if ac_fn_c_try_compile "$LINENO"; then :
2385 ac_hi=$ac_mid; break
2386else
2387 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2388 if test $ac_lo -le $ac_mid; then
2389 ac_lo= ac_hi=
2390 break
2391 fi
2392 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2393fi
2394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2395 done
2396else
2397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2398/* end confdefs.h. */
2399$4
2400int
2401main ()
2402{
2403static int test_array [1 - 2 * !(($2) < 0)];
2404test_array [0] = 0
2405
2406 ;
2407 return 0;
2408}
2409_ACEOF
2410if ac_fn_c_try_compile "$LINENO"; then :
2411 ac_hi=-1 ac_mid=-1
2412 while :; do
2413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2414/* end confdefs.h. */
2415$4
2416int
2417main ()
2418{
2419static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2420test_array [0] = 0
2421
2422 ;
2423 return 0;
2424}
2425_ACEOF
2426if ac_fn_c_try_compile "$LINENO"; then :
2427 ac_lo=$ac_mid; break
2428else
2429 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2430 if test $ac_mid -le $ac_hi; then
2431 ac_lo= ac_hi=
2432 break
2433 fi
2434 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2435fi
2436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2437 done
2438else
2439 ac_lo= ac_hi=
2440fi
2441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2442fi
2443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2444# Binary search between lo and hi bounds.
2445while test "x$ac_lo" != "x$ac_hi"; do
2446 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2448/* end confdefs.h. */
2449$4
2450int
2451main ()
2452{
2453static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2454test_array [0] = 0
2455
2456 ;
2457 return 0;
2458}
2459_ACEOF
2460if ac_fn_c_try_compile "$LINENO"; then :
2461 ac_hi=$ac_mid
2462else
2463 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2464fi
2465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2466done
2467case $ac_lo in #((
2468?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2469'') ac_retval=1 ;;
2470esac
2471 else
2472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2473/* end confdefs.h. */
2474$4
2475static long int longval () { return $2; }
2476static unsigned long int ulongval () { return $2; }
2477#include <stdio.h>
2478#include <stdlib.h>
2479int
2480main ()
2481{
2482
2483 FILE *f = fopen ("conftest.val", "w");
2484 if (! f)
2485 return 1;
2486 if (($2) < 0)
2487 {
2488 long int i = longval ();
2489 if (i != ($2))
2490 return 1;
2491 fprintf (f, "%ld", i);
2492 }
2493 else
2494 {
2495 unsigned long int i = ulongval ();
2496 if (i != ($2))
2497 return 1;
2498 fprintf (f, "%lu", i);
2499 }
2500 /* Do not output a trailing newline, as this causes \r\n confusion
2501 on some platforms. */
2502 return ferror (f) || fclose (f) != 0;
2503
2504 ;
2505 return 0;
2506}
2507_ACEOF
2508if ac_fn_c_try_run "$LINENO"; then :
2509 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2510else
2511 ac_retval=1
2512fi
2513rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2514 conftest.$ac_objext conftest.beam conftest.$ac_ext
2515rm -f conftest.val
2516
2517 fi
2518 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2519 return $ac_retval
2520
2521} # ac_fn_c_compute_int
2522
8690e634
JK
2523# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2524# -------------------------------------------
2525# Tests whether TYPE exists after having included INCLUDES, setting cache
2526# variable VAR accordingly.
2527ac_fn_c_check_type ()
c971b7fa
PA
2528{
2529 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2531$as_echo_n "checking for $2... " >&6; }
2532if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2533 $as_echo_n "(cached) " >&6
2534else
8690e634 2535 eval "$3=no"
c971b7fa
PA
2536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2537/* end confdefs.h. */
8690e634 2538$4
c971b7fa
PA
2539int
2540main ()
2541{
8690e634
JK
2542if (sizeof ($2))
2543 return 0;
c971b7fa
PA
2544 ;
2545 return 0;
2546}
2547_ACEOF
8690e634 2548if ac_fn_c_try_compile "$LINENO"; then :
c971b7fa
PA
2549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2550/* end confdefs.h. */
2551$4
2552int
2553main ()
2554{
8690e634
JK
2555if (sizeof (($2)))
2556 return 0;
c971b7fa
PA
2557 ;
2558 return 0;
2559}
2560_ACEOF
2561if ac_fn_c_try_compile "$LINENO"; then :
8690e634 2562
c971b7fa 2563else
8690e634
JK
2564 eval "$3=yes"
2565fi
2566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c971b7fa
PA
2567fi
2568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2569fi
2570eval ac_res=\$$3
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2572$as_echo "$ac_res" >&6; }
2573 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2574
8690e634 2575} # ac_fn_c_check_type
c971b7fa
PA
2576cat >config.log <<_ACEOF
2577This file contains any messages produced by compilers while
2578running configure, to aid debugging if configure makes a mistake.
2579
2580It was created by $as_me, which was
2581generated by GNU Autoconf 2.64. Invocation command line was
2582
2583 $ $0 $@
2584
2585_ACEOF
2586exec 5>>config.log
2587{
2588cat <<_ASUNAME
2589## --------- ##
2590## Platform. ##
2591## --------- ##
2592
2593hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2594uname -m = `(uname -m) 2>/dev/null || echo unknown`
2595uname -r = `(uname -r) 2>/dev/null || echo unknown`
2596uname -s = `(uname -s) 2>/dev/null || echo unknown`
2597uname -v = `(uname -v) 2>/dev/null || echo unknown`
2598
2599/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2600/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2601
2602/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2603/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2604/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2605/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2606/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2607/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2608/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2609
2610_ASUNAME
2611
2612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2613for as_dir in $PATH
2614do
2615 IFS=$as_save_IFS
2616 test -z "$as_dir" && as_dir=.
2617 $as_echo "PATH: $as_dir"
2618 done
2619IFS=$as_save_IFS
2620
2621} >&5
2622
2623cat >&5 <<_ACEOF
2624
2625
2626## ----------- ##
2627## Core tests. ##
2628## ----------- ##
2629
2630_ACEOF
2631
2632
2633# Keep a trace of the command line.
2634# Strip out --no-create and --no-recursion so they do not pile up.
2635# Strip out --silent because we don't want to record it for future runs.
2636# Also quote any args containing shell meta-characters.
2637# Make two passes to allow for proper duplicate-argument suppression.
2638ac_configure_args=
2639ac_configure_args0=
2640ac_configure_args1=
2641ac_must_keep_next=false
2642for ac_pass in 1 2
2643do
2644 for ac_arg
2645 do
2646 case $ac_arg in
2647 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2648 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2649 | -silent | --silent | --silen | --sile | --sil)
2650 continue ;;
2651 *\'*)
2652 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2653 esac
2654 case $ac_pass in
2655 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2656 2)
2657 as_fn_append ac_configure_args1 " '$ac_arg'"
2658 if test $ac_must_keep_next = true; then
2659 ac_must_keep_next=false # Got value, back to normal.
2660 else
2661 case $ac_arg in
2662 *=* | --config-cache | -C | -disable-* | --disable-* \
2663 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2664 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2665 | -with-* | --with-* | -without-* | --without-* | --x)
2666 case "$ac_configure_args0 " in
2667 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2668 esac
2669 ;;
2670 -* ) ac_must_keep_next=true ;;
2671 esac
2672 fi
2673 as_fn_append ac_configure_args " '$ac_arg'"
2674 ;;
2675 esac
2676 done
2677done
2678{ ac_configure_args0=; unset ac_configure_args0;}
2679{ ac_configure_args1=; unset ac_configure_args1;}
2680
2681# When interrupted or exit'd, cleanup temporary files, and complete
2682# config.log. We remove comments because anyway the quotes in there
2683# would cause problems or look ugly.
2684# WARNING: Use '\'' to represent an apostrophe within the trap.
2685# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2686trap 'exit_status=$?
2687 # Save into config.log some information that might help in debugging.
2688 {
2689 echo
2690
2691 cat <<\_ASBOX
2692## ---------------- ##
2693## Cache variables. ##
2694## ---------------- ##
2695_ASBOX
2696 echo
2697 # The following way of writing the cache mishandles newlines in values,
2698(
2699 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2700 eval ac_val=\$$ac_var
2701 case $ac_val in #(
2702 *${as_nl}*)
2703 case $ac_var in #(
2704 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2705$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2706 esac
2707 case $ac_var in #(
2708 _ | IFS | as_nl) ;; #(
2709 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2710 *) { eval $ac_var=; unset $ac_var;} ;;
2711 esac ;;
2712 esac
2713 done
2714 (set) 2>&1 |
2715 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2716 *${as_nl}ac_space=\ *)
2717 sed -n \
2718 "s/'\''/'\''\\\\'\'''\''/g;
2719 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2720 ;; #(
2721 *)
2722 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2723 ;;
2724 esac |
2725 sort
2726)
2727 echo
2728
2729 cat <<\_ASBOX
2730## ----------------- ##
2731## Output variables. ##
2732## ----------------- ##
2733_ASBOX
2734 echo
2735 for ac_var in $ac_subst_vars
2736 do
2737 eval ac_val=\$$ac_var
2738 case $ac_val in
2739 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2740 esac
2741 $as_echo "$ac_var='\''$ac_val'\''"
2742 done | sort
2743 echo
2744
2745 if test -n "$ac_subst_files"; then
2746 cat <<\_ASBOX
2747## ------------------- ##
2748## File substitutions. ##
2749## ------------------- ##
2750_ASBOX
2751 echo
2752 for ac_var in $ac_subst_files
2753 do
2754 eval ac_val=\$$ac_var
2755 case $ac_val in
2756 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2757 esac
2758 $as_echo "$ac_var='\''$ac_val'\''"
2759 done | sort
2760 echo
2761 fi
2762
2763 if test -s confdefs.h; then
2764 cat <<\_ASBOX
2765## ----------- ##
2766## confdefs.h. ##
2767## ----------- ##
2768_ASBOX
2769 echo
2770 cat confdefs.h
2771 echo
2772 fi
2773 test "$ac_signal" != 0 &&
2774 $as_echo "$as_me: caught signal $ac_signal"
2775 $as_echo "$as_me: exit $exit_status"
2776 } >&5
2777 rm -f core *.core core.conftest.* &&
2778 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2779 exit $exit_status
2780' 0
2781for ac_signal in 1 2 13 15; do
2782 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2783done
2784ac_signal=0
2785
2786# confdefs.h avoids OS command line length limits that DEFS can exceed.
2787rm -f -r conftest* confdefs.h
2788
2789$as_echo "/* confdefs.h */" > confdefs.h
2790
2791# Predefined preprocessor variables.
2792
2793cat >>confdefs.h <<_ACEOF
2794#define PACKAGE_NAME "$PACKAGE_NAME"
2795_ACEOF
2796
2797cat >>confdefs.h <<_ACEOF
2798#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2799_ACEOF
2800
2801cat >>confdefs.h <<_ACEOF
2802#define PACKAGE_VERSION "$PACKAGE_VERSION"
2803_ACEOF
2804
2805cat >>confdefs.h <<_ACEOF
2806#define PACKAGE_STRING "$PACKAGE_STRING"
2807_ACEOF
2808
2809cat >>confdefs.h <<_ACEOF
2810#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2811_ACEOF
2812
2813cat >>confdefs.h <<_ACEOF
2814#define PACKAGE_URL "$PACKAGE_URL"
2815_ACEOF
2816
2817
2818# Let the site file select an alternate cache file if it wants to.
2819# Prefer an explicitly selected file to automatically selected ones.
2820ac_site_file1=NONE
2821ac_site_file2=NONE
2822if test -n "$CONFIG_SITE"; then
2823 ac_site_file1=$CONFIG_SITE
2824elif test "x$prefix" != xNONE; then
2825 ac_site_file1=$prefix/share/config.site
2826 ac_site_file2=$prefix/etc/config.site
2827else
2828 ac_site_file1=$ac_default_prefix/share/config.site
2829 ac_site_file2=$ac_default_prefix/etc/config.site
2830fi
2831for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2832do
2833 test "x$ac_site_file" = xNONE && continue
2834 if test -r "$ac_site_file"; then
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2836$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2837 sed 's/^/| /' "$ac_site_file" >&5
2838 . "$ac_site_file"
2839 fi
2840done
2841
2842if test -r "$cache_file"; then
2843 # Some versions of bash will fail to source /dev/null (special
2844 # files actually), so we avoid doing that.
2845 if test -f "$cache_file"; then
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2847$as_echo "$as_me: loading cache $cache_file" >&6;}
2848 case $cache_file in
2849 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2850 *) . "./$cache_file";;
2851 esac
2852 fi
2853else
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2855$as_echo "$as_me: creating cache $cache_file" >&6;}
2856 >$cache_file
2857fi
2858
8690e634
JK
2859gl_func_list="$gl_func_list btowc"
2860gl_func_list="$gl_func_list isblank"
2861gl_func_list="$gl_func_list iswctype"
2862gl_func_list="$gl_func_list mbsrtowcs"
2863gl_func_list="$gl_func_list mempcpy"
2864gl_func_list="$gl_func_list wmemchr"
2865gl_func_list="$gl_func_list wmemcpy"
2866gl_func_list="$gl_func_list wmempcpy"
2867gl_header_list="$gl_header_list wctype.h"
2868gl_fnmatch_required=GNU
88b48903 2869gl_func_list="$gl_func_list alarm"
c971b7fa
PA
2870gl_header_list="$gl_header_list wchar.h"
2871gl_header_list="$gl_header_list stdint.h"
2872gl_header_list="$gl_header_list inttypes.h"
8690e634
JK
2873gl_header_list="$gl_header_list unistd.h"
2874gl_func_list="$gl_func_list symlink"
88b48903 2875gl_header_list="$gl_header_list math.h"
8690e634
JK
2876gl_func_list="$gl_func_list mbsinit"
2877gl_func_list="$gl_func_list mbrtowc"
c971b7fa
PA
2878gl_header_list="$gl_header_list sys/mman.h"
2879gl_func_list="$gl_func_list mprotect"
8690e634
JK
2880gl_header_list="$gl_header_list features.h"
2881gl_func_list="$gl_func_list iswcntrl"
c971b7fa
PA
2882# Check that the precious variables saved in the cache have kept the same
2883# value.
2884ac_cache_corrupted=false
2885for ac_var in $ac_precious_vars; do
2886 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2887 eval ac_new_set=\$ac_env_${ac_var}_set
2888 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2889 eval ac_new_val=\$ac_env_${ac_var}_value
2890 case $ac_old_set,$ac_new_set in
2891 set,)
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2893$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2894 ac_cache_corrupted=: ;;
2895 ,set)
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2897$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2898 ac_cache_corrupted=: ;;
2899 ,);;
2900 *)
2901 if test "x$ac_old_val" != "x$ac_new_val"; then
2902 # differences in whitespace do not lead to failure.
2903 ac_old_val_w=`echo x $ac_old_val`
2904 ac_new_val_w=`echo x $ac_new_val`
2905 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2907$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2908 ac_cache_corrupted=:
2909 else
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2911$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2912 eval $ac_var=\$ac_old_val
2913 fi
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2915$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2917$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2918 fi;;
2919 esac
2920 # Pass precious variables to config.status.
2921 if test "$ac_new_set" = set; then
2922 case $ac_new_val in
2923 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2924 *) ac_arg=$ac_var=$ac_new_val ;;
2925 esac
2926 case " $ac_configure_args " in
2927 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2928 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2929 esac
2930 fi
2931done
2932if $ac_cache_corrupted; then
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2934$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2936$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2937 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2938fi
2939## -------------------- ##
2940## Main body of script. ##
2941## -------------------- ##
2942
2943ac_ext=c
2944ac_cpp='$CPP $CPPFLAGS'
2945ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2946ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2947ac_compiler_gnu=$ac_cv_c_compiler_gnu
2948
2949
2950ac_config_headers="$ac_config_headers config.h:config.in"
2951
2952
2953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2954$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2955 # Check whether --enable-maintainer-mode was given.
2956if test "${enable_maintainer_mode+set}" = set; then :
2957 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2958else
2959 USE_MAINTAINER_MODE=no
2960fi
2961
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2963$as_echo "$USE_MAINTAINER_MODE" >&6; }
2964 if test $USE_MAINTAINER_MODE = yes; then
2965 MAINTAINER_MODE_TRUE=
2966 MAINTAINER_MODE_FALSE='#'
2967else
2968 MAINTAINER_MODE_TRUE='#'
2969 MAINTAINER_MODE_FALSE=
2970fi
2971
2972 MAINT=$MAINTAINER_MODE_TRUE
2973
2974
2975
2976ac_ext=c
2977ac_cpp='$CPP $CPPFLAGS'
2978ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2979ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2980ac_compiler_gnu=$ac_cv_c_compiler_gnu
2981if test -n "$ac_tool_prefix"; then
2982 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2983set dummy ${ac_tool_prefix}gcc; ac_word=$2
2984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2985$as_echo_n "checking for $ac_word... " >&6; }
2986if test "${ac_cv_prog_CC+set}" = set; then :
2987 $as_echo_n "(cached) " >&6
2988else
2989 if test -n "$CC"; then
2990 ac_cv_prog_CC="$CC" # Let the user override the test.
2991else
2992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993for as_dir in $PATH
2994do
2995 IFS=$as_save_IFS
2996 test -z "$as_dir" && as_dir=.
2997 for ac_exec_ext in '' $ac_executable_extensions; do
2998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2999 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3001 break 2
3002 fi
3003done
3004 done
3005IFS=$as_save_IFS
3006
3007fi
3008fi
3009CC=$ac_cv_prog_CC
3010if test -n "$CC"; then
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3012$as_echo "$CC" >&6; }
3013else
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3015$as_echo "no" >&6; }
3016fi
3017
3018
3019fi
3020if test -z "$ac_cv_prog_CC"; then
3021 ac_ct_CC=$CC
3022 # Extract the first word of "gcc", so it can be a program name with args.
3023set dummy gcc; ac_word=$2
3024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3025$as_echo_n "checking for $ac_word... " >&6; }
3026if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3027 $as_echo_n "(cached) " >&6
3028else
3029 if test -n "$ac_ct_CC"; then
3030 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3031else
3032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3033for as_dir in $PATH
3034do
3035 IFS=$as_save_IFS
3036 test -z "$as_dir" && as_dir=.
3037 for ac_exec_ext in '' $ac_executable_extensions; do
3038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3039 ac_cv_prog_ac_ct_CC="gcc"
3040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3041 break 2
3042 fi
3043done
3044 done
3045IFS=$as_save_IFS
3046
3047fi
3048fi
3049ac_ct_CC=$ac_cv_prog_ac_ct_CC
3050if test -n "$ac_ct_CC"; then
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3052$as_echo "$ac_ct_CC" >&6; }
3053else
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3055$as_echo "no" >&6; }
3056fi
3057
3058 if test "x$ac_ct_CC" = x; then
3059 CC=""
3060 else
3061 case $cross_compiling:$ac_tool_warned in
3062yes:)
3063{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3064$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3065ac_tool_warned=yes ;;
3066esac
3067 CC=$ac_ct_CC
3068 fi
3069else
3070 CC="$ac_cv_prog_CC"
3071fi
3072
3073if test -z "$CC"; then
3074 if test -n "$ac_tool_prefix"; then
3075 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3076set dummy ${ac_tool_prefix}cc; ac_word=$2
3077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3078$as_echo_n "checking for $ac_word... " >&6; }
3079if test "${ac_cv_prog_CC+set}" = set; then :
3080 $as_echo_n "(cached) " >&6
3081else
3082 if test -n "$CC"; then
3083 ac_cv_prog_CC="$CC" # Let the user override the test.
3084else
3085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3086for as_dir in $PATH
3087do
3088 IFS=$as_save_IFS
3089 test -z "$as_dir" && as_dir=.
3090 for ac_exec_ext in '' $ac_executable_extensions; do
3091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3092 ac_cv_prog_CC="${ac_tool_prefix}cc"
3093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3094 break 2
3095 fi
3096done
3097 done
3098IFS=$as_save_IFS
3099
3100fi
3101fi
3102CC=$ac_cv_prog_CC
3103if test -n "$CC"; then
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3105$as_echo "$CC" >&6; }
3106else
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3108$as_echo "no" >&6; }
3109fi
3110
3111
3112 fi
3113fi
3114if test -z "$CC"; then
3115 # Extract the first word of "cc", so it can be a program name with args.
3116set dummy cc; ac_word=$2
3117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3118$as_echo_n "checking for $ac_word... " >&6; }
3119if test "${ac_cv_prog_CC+set}" = set; then :
3120 $as_echo_n "(cached) " >&6
3121else
3122 if test -n "$CC"; then
3123 ac_cv_prog_CC="$CC" # Let the user override the test.
3124else
3125 ac_prog_rejected=no
3126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3127for as_dir in $PATH
3128do
3129 IFS=$as_save_IFS
3130 test -z "$as_dir" && as_dir=.
3131 for ac_exec_ext in '' $ac_executable_extensions; do
3132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3133 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3134 ac_prog_rejected=yes
3135 continue
3136 fi
3137 ac_cv_prog_CC="cc"
3138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3139 break 2
3140 fi
3141done
3142 done
3143IFS=$as_save_IFS
3144
3145if test $ac_prog_rejected = yes; then
3146 # We found a bogon in the path, so make sure we never use it.
3147 set dummy $ac_cv_prog_CC
3148 shift
3149 if test $# != 0; then
3150 # We chose a different compiler from the bogus one.
3151 # However, it has the same basename, so the bogon will be chosen
3152 # first if we set CC to just the basename; use the full file name.
3153 shift
3154 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3155 fi
3156fi
3157fi
3158fi
3159CC=$ac_cv_prog_CC
3160if test -n "$CC"; then
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3162$as_echo "$CC" >&6; }
3163else
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3165$as_echo "no" >&6; }
3166fi
3167
3168
3169fi
3170if test -z "$CC"; then
3171 if test -n "$ac_tool_prefix"; then
3172 for ac_prog in cl.exe
3173 do
3174 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3175set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3177$as_echo_n "checking for $ac_word... " >&6; }
3178if test "${ac_cv_prog_CC+set}" = set; then :
3179 $as_echo_n "(cached) " >&6
3180else
3181 if test -n "$CC"; then
3182 ac_cv_prog_CC="$CC" # Let the user override the test.
3183else
3184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3185for as_dir in $PATH
3186do
3187 IFS=$as_save_IFS
3188 test -z "$as_dir" && as_dir=.
3189 for ac_exec_ext in '' $ac_executable_extensions; do
3190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3191 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3193 break 2
3194 fi
3195done
3196 done
3197IFS=$as_save_IFS
3198
3199fi
3200fi
3201CC=$ac_cv_prog_CC
3202if test -n "$CC"; then
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3204$as_echo "$CC" >&6; }
3205else
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3207$as_echo "no" >&6; }
3208fi
3209
3210
3211 test -n "$CC" && break
3212 done
3213fi
3214if test -z "$CC"; then
3215 ac_ct_CC=$CC
3216 for ac_prog in cl.exe
3217do
3218 # Extract the first word of "$ac_prog", so it can be a program name with args.
3219set dummy $ac_prog; ac_word=$2
3220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3221$as_echo_n "checking for $ac_word... " >&6; }
3222if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3223 $as_echo_n "(cached) " >&6
3224else
3225 if test -n "$ac_ct_CC"; then
3226 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3227else
3228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3229for as_dir in $PATH
3230do
3231 IFS=$as_save_IFS
3232 test -z "$as_dir" && as_dir=.
3233 for ac_exec_ext in '' $ac_executable_extensions; do
3234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3235 ac_cv_prog_ac_ct_CC="$ac_prog"
3236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3237 break 2
3238 fi
3239done
3240 done
3241IFS=$as_save_IFS
3242
3243fi
3244fi
3245ac_ct_CC=$ac_cv_prog_ac_ct_CC
3246if test -n "$ac_ct_CC"; then
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3248$as_echo "$ac_ct_CC" >&6; }
3249else
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3251$as_echo "no" >&6; }
3252fi
3253
3254
3255 test -n "$ac_ct_CC" && break
3256done
3257
3258 if test "x$ac_ct_CC" = x; then
3259 CC=""
3260 else
3261 case $cross_compiling:$ac_tool_warned in
3262yes:)
3263{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3264$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3265ac_tool_warned=yes ;;
3266esac
3267 CC=$ac_ct_CC
3268 fi
3269fi
3270
3271fi
3272
3273
3274test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3275$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3276as_fn_error "no acceptable C compiler found in \$PATH
3277See \`config.log' for more details." "$LINENO" 5; }
3278
3279# Provide some information about the compiler.
3280$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3281set X $ac_compile
3282ac_compiler=$2
3283for ac_option in --version -v -V -qversion; do
3284 { { ac_try="$ac_compiler $ac_option >&5"
3285case "(($ac_try" in
3286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287 *) ac_try_echo=$ac_try;;
3288esac
3289eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3290$as_echo "$ac_try_echo"; } >&5
3291 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3292 ac_status=$?
3293 if test -s conftest.err; then
3294 sed '10a\
3295... rest of stderr output deleted ...
3296 10q' conftest.err >conftest.er1
3297 cat conftest.er1 >&5
3298 rm -f conftest.er1 conftest.err
3299 fi
3300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3301 test $ac_status = 0; }
3302done
3303
3304cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3305/* end confdefs.h. */
3306#include <stdio.h>
3307int
3308main ()
3309{
3310FILE *f = fopen ("conftest.out", "w");
3311 return ferror (f) || fclose (f) != 0;
3312
3313 ;
3314 return 0;
3315}
3316_ACEOF
3317ac_clean_files_save=$ac_clean_files
3318ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3319# Try to create an executable without -o first, disregard a.out.
3320# It will help us diagnose broken compilers, and finding out an intuition
3321# of exeext.
3322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3323$as_echo_n "checking for C compiler default output file name... " >&6; }
3324ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3325
3326# The possible output files:
3327ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3328
3329ac_rmfiles=
3330for ac_file in $ac_files
3331do
3332 case $ac_file in
3333 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3334 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3335 esac
3336done
3337rm -f $ac_rmfiles
3338
3339if { { ac_try="$ac_link_default"
3340case "(($ac_try" in
3341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3342 *) ac_try_echo=$ac_try;;
3343esac
3344eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3345$as_echo "$ac_try_echo"; } >&5
3346 (eval "$ac_link_default") 2>&5
3347 ac_status=$?
3348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3349 test $ac_status = 0; }; then :
3350 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3351# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3352# in a Makefile. We should not override ac_cv_exeext if it was cached,
3353# so that the user can short-circuit this test for compilers unknown to
3354# Autoconf.
3355for ac_file in $ac_files ''
3356do
3357 test -f "$ac_file" || continue
3358 case $ac_file in
3359 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3360 ;;
3361 [ab].out )
3362 # We found the default executable, but exeext='' is most
3363 # certainly right.
3364 break;;
3365 *.* )
3366 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3367 then :; else
3368 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3369 fi
3370 # We set ac_cv_exeext here because the later test for it is not
3371 # safe: cross compilers may not add the suffix if given an `-o'
3372 # argument, so we may need to know it at that point already.
3373 # Even if this section looks crufty: it has the advantage of
3374 # actually working.
3375 break;;
3376 * )
3377 break;;
3378 esac
3379done
3380test "$ac_cv_exeext" = no && ac_cv_exeext=
3381
3382else
3383 ac_file=''
3384fi
3385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3386$as_echo "$ac_file" >&6; }
3387if test -z "$ac_file"; then :
3388 $as_echo "$as_me: failed program was:" >&5
3389sed 's/^/| /' conftest.$ac_ext >&5
3390
3391{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3392$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3393{ as_fn_set_status 77
3394as_fn_error "C compiler cannot create executables
3395See \`config.log' for more details." "$LINENO" 5; }; }
3396fi
3397ac_exeext=$ac_cv_exeext
3398
3399# Check that the compiler produces executables we can run. If not, either
3400# the compiler is broken, or we cross compile.
3401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3402$as_echo_n "checking whether the C compiler works... " >&6; }
3403# If not cross compiling, check that we can run a simple program.
3404if test "$cross_compiling" != yes; then
3405 if { ac_try='./$ac_file'
3406 { { case "(($ac_try" in
3407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3408 *) ac_try_echo=$ac_try;;
3409esac
3410eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3411$as_echo "$ac_try_echo"; } >&5
3412 (eval "$ac_try") 2>&5
3413 ac_status=$?
3414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3415 test $ac_status = 0; }; }; then
3416 cross_compiling=no
3417 else
3418 if test "$cross_compiling" = maybe; then
3419 cross_compiling=yes
3420 else
3421 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3422$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3423as_fn_error "cannot run C compiled programs.
3424If you meant to cross compile, use \`--host'.
3425See \`config.log' for more details." "$LINENO" 5; }
3426 fi
3427 fi
3428fi
3429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3430$as_echo "yes" >&6; }
3431
3432rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3433ac_clean_files=$ac_clean_files_save
3434# Check that the compiler produces executables we can run. If not, either
3435# the compiler is broken, or we cross compile.
3436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3437$as_echo_n "checking whether we are cross compiling... " >&6; }
3438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3439$as_echo "$cross_compiling" >&6; }
3440
3441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3442$as_echo_n "checking for suffix of executables... " >&6; }
3443if { { ac_try="$ac_link"
3444case "(($ac_try" in
3445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3446 *) ac_try_echo=$ac_try;;
3447esac
3448eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3449$as_echo "$ac_try_echo"; } >&5
3450 (eval "$ac_link") 2>&5
3451 ac_status=$?
3452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3453 test $ac_status = 0; }; then :
3454 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3455# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3456# work properly (i.e., refer to `conftest.exe'), while it won't with
3457# `rm'.
3458for ac_file in conftest.exe conftest conftest.*; do
3459 test -f "$ac_file" || continue
3460 case $ac_file in
3461 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3462 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3463 break;;
3464 * ) break;;
3465 esac
3466done
3467else
3468 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3469$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3470as_fn_error "cannot compute suffix of executables: cannot compile and link
3471See \`config.log' for more details." "$LINENO" 5; }
3472fi
3473rm -f conftest$ac_cv_exeext
3474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3475$as_echo "$ac_cv_exeext" >&6; }
3476
3477rm -f conftest.$ac_ext
3478EXEEXT=$ac_cv_exeext
3479ac_exeext=$EXEEXT
3480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3481$as_echo_n "checking for suffix of object files... " >&6; }
3482if test "${ac_cv_objext+set}" = set; then :
3483 $as_echo_n "(cached) " >&6
3484else
3485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3486/* end confdefs.h. */
3487
3488int
3489main ()
3490{
3491
3492 ;
3493 return 0;
3494}
3495_ACEOF
3496rm -f conftest.o conftest.obj
3497if { { ac_try="$ac_compile"
3498case "(($ac_try" in
3499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3500 *) ac_try_echo=$ac_try;;
3501esac
3502eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3503$as_echo "$ac_try_echo"; } >&5
3504 (eval "$ac_compile") 2>&5
3505 ac_status=$?
3506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3507 test $ac_status = 0; }; then :
3508 for ac_file in conftest.o conftest.obj conftest.*; do
3509 test -f "$ac_file" || continue;
3510 case $ac_file in
3511 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3512 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3513 break;;
3514 esac
3515done
3516else
3517 $as_echo "$as_me: failed program was:" >&5
3518sed 's/^/| /' conftest.$ac_ext >&5
3519
3520{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3521$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3522as_fn_error "cannot compute suffix of object files: cannot compile
3523See \`config.log' for more details." "$LINENO" 5; }
3524fi
3525rm -f conftest.$ac_cv_objext conftest.$ac_ext
3526fi
3527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3528$as_echo "$ac_cv_objext" >&6; }
3529OBJEXT=$ac_cv_objext
3530ac_objext=$OBJEXT
3531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3532$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3533if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3534 $as_echo_n "(cached) " >&6
3535else
3536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3537/* end confdefs.h. */
3538
3539int
3540main ()
3541{
3542#ifndef __GNUC__
3543 choke me
3544#endif
3545
3546 ;
3547 return 0;
3548}
3549_ACEOF
3550if ac_fn_c_try_compile "$LINENO"; then :
3551 ac_compiler_gnu=yes
3552else
3553 ac_compiler_gnu=no
3554fi
3555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3556ac_cv_c_compiler_gnu=$ac_compiler_gnu
3557
3558fi
3559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3560$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3561if test $ac_compiler_gnu = yes; then
3562 GCC=yes
3563else
3564 GCC=
3565fi
3566ac_test_CFLAGS=${CFLAGS+set}
3567ac_save_CFLAGS=$CFLAGS
3568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3569$as_echo_n "checking whether $CC accepts -g... " >&6; }
3570if test "${ac_cv_prog_cc_g+set}" = set; then :
3571 $as_echo_n "(cached) " >&6
3572else
3573 ac_save_c_werror_flag=$ac_c_werror_flag
3574 ac_c_werror_flag=yes
3575 ac_cv_prog_cc_g=no
3576 CFLAGS="-g"
3577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3578/* end confdefs.h. */
3579
3580int
3581main ()
3582{
3583
3584 ;
3585 return 0;
3586}
3587_ACEOF
3588if ac_fn_c_try_compile "$LINENO"; then :
3589 ac_cv_prog_cc_g=yes
3590else
3591 CFLAGS=""
3592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3593/* end confdefs.h. */
3594
3595int
3596main ()
3597{
3598
3599 ;
3600 return 0;
3601}
3602_ACEOF
3603if ac_fn_c_try_compile "$LINENO"; then :
3604
3605else
3606 ac_c_werror_flag=$ac_save_c_werror_flag
3607 CFLAGS="-g"
3608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3609/* end confdefs.h. */
3610
3611int
3612main ()
3613{
3614
3615 ;
3616 return 0;
3617}
3618_ACEOF
3619if ac_fn_c_try_compile "$LINENO"; then :
3620 ac_cv_prog_cc_g=yes
3621fi
3622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3623fi
3624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3625fi
3626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3627 ac_c_werror_flag=$ac_save_c_werror_flag
3628fi
3629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3630$as_echo "$ac_cv_prog_cc_g" >&6; }
3631if test "$ac_test_CFLAGS" = set; then
3632 CFLAGS=$ac_save_CFLAGS
3633elif test $ac_cv_prog_cc_g = yes; then
3634 if test "$GCC" = yes; then
3635 CFLAGS="-g -O2"
3636 else
3637 CFLAGS="-g"
3638 fi
3639else
3640 if test "$GCC" = yes; then
3641 CFLAGS="-O2"
3642 else
3643 CFLAGS=
3644 fi
3645fi
3646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3647$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3648if test "${ac_cv_prog_cc_c89+set}" = set; then :
3649 $as_echo_n "(cached) " >&6
3650else
3651 ac_cv_prog_cc_c89=no
3652ac_save_CC=$CC
3653cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3654/* end confdefs.h. */
3655#include <stdarg.h>
3656#include <stdio.h>
3657#include <sys/types.h>
3658#include <sys/stat.h>
3659/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3660struct buf { int x; };
3661FILE * (*rcsopen) (struct buf *, struct stat *, int);
3662static char *e (p, i)
3663 char **p;
3664 int i;
3665{
3666 return p[i];
3667}
3668static char *f (char * (*g) (char **, int), char **p, ...)
3669{
3670 char *s;
3671 va_list v;
3672 va_start (v,p);
3673 s = g (p, va_arg (v,int));
3674 va_end (v);
3675 return s;
3676}
3677
3678/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3679 function prototypes and stuff, but not '\xHH' hex character constants.
3680 These don't provoke an error unfortunately, instead are silently treated
3681 as 'x'. The following induces an error, until -std is added to get
3682 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3683 array size at least. It's necessary to write '\x00'==0 to get something
3684 that's true only with -std. */
3685int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3686
3687/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3688 inside strings and character constants. */
3689#define FOO(x) 'x'
3690int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3691
3692int test (int i, double x);
3693struct s1 {int (*f) (int a);};
3694struct s2 {int (*f) (double a);};
3695int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3696int argc;
3697char **argv;
3698int
3699main ()
3700{
3701return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3702 ;
3703 return 0;
3704}
3705_ACEOF
3706for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3707 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3708do
3709 CC="$ac_save_CC $ac_arg"
3710 if ac_fn_c_try_compile "$LINENO"; then :
3711 ac_cv_prog_cc_c89=$ac_arg
3712fi
3713rm -f core conftest.err conftest.$ac_objext
3714 test "x$ac_cv_prog_cc_c89" != "xno" && break
3715done
3716rm -f conftest.$ac_ext
3717CC=$ac_save_CC
3718
3719fi
3720# AC_CACHE_VAL
3721case "x$ac_cv_prog_cc_c89" in
3722 x)
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3724$as_echo "none needed" >&6; } ;;
3725 xno)
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3727$as_echo "unsupported" >&6; } ;;
3728 *)
3729 CC="$CC $ac_cv_prog_cc_c89"
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3731$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3732esac
3733if test "x$ac_cv_prog_cc_c89" != xno; then :
3734
3735fi
3736
3737ac_ext=c
3738ac_cpp='$CPP $CPPFLAGS'
3739ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3740ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3741ac_compiler_gnu=$ac_cv_c_compiler_gnu
3742
3743ac_aux_dir=
3744for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3745 for ac_t in install-sh install.sh shtool; do
3746 if test -f "$ac_dir/$ac_t"; then
3747 ac_aux_dir=$ac_dir
3748 ac_install_sh="$ac_aux_dir/$ac_t -c"
3749 break 2
3750 fi
3751 done
3752done
3753if test -z "$ac_aux_dir"; then
3754 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3755fi
3756
3757# These three variables are undocumented and unsupported,
3758# and are intended to be withdrawn in a future Autoconf release.
3759# They can cause serious problems if a builder's source tree is in a directory
3760# whose full name contains unusual characters.
3761ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3762ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3763ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3764
3765
3766# Make sure we can run config.sub.
3767$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3768 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3769
3770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3771$as_echo_n "checking build system type... " >&6; }
3772if test "${ac_cv_build+set}" = set; then :
3773 $as_echo_n "(cached) " >&6
3774else
3775 ac_build_alias=$build_alias
3776test "x$ac_build_alias" = x &&
3777 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3778test "x$ac_build_alias" = x &&
3779 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3780ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3781 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3782
3783fi
3784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3785$as_echo "$ac_cv_build" >&6; }
3786case $ac_cv_build in
3787*-*-*) ;;
3788*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3789esac
3790build=$ac_cv_build
3791ac_save_IFS=$IFS; IFS='-'
3792set x $ac_cv_build
3793shift
3794build_cpu=$1
3795build_vendor=$2
3796shift; shift
3797# Remember, the first character of IFS is used to create $*,
3798# except with old shells:
3799build_os=$*
3800IFS=$ac_save_IFS
3801case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3802
3803
3804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3805$as_echo_n "checking host system type... " >&6; }
3806if test "${ac_cv_host+set}" = set; then :
3807 $as_echo_n "(cached) " >&6
3808else
3809 if test "x$host_alias" = x; then
3810 ac_cv_host=$ac_cv_build
3811else
3812 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3813 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3814fi
3815
3816fi
3817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3818$as_echo "$ac_cv_host" >&6; }
3819case $ac_cv_host in
3820*-*-*) ;;
3821*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3822esac
3823host=$ac_cv_host
3824ac_save_IFS=$IFS; IFS='-'
3825set x $ac_cv_host
3826shift
3827host_cpu=$1
3828host_vendor=$2
3829shift; shift
3830# Remember, the first character of IFS is used to create $*,
3831# except with old shells:
3832host_os=$*
3833IFS=$ac_save_IFS
3834case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3835
3836
3837
3838ac_ext=c
3839ac_cpp='$CPP $CPPFLAGS'
3840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3842ac_compiler_gnu=$ac_cv_c_compiler_gnu
3843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3844$as_echo_n "checking how to run the C preprocessor... " >&6; }
3845# On Suns, sometimes $CPP names a directory.
3846if test -n "$CPP" && test -d "$CPP"; then
3847 CPP=
3848fi
3849if test -z "$CPP"; then
3850 if test "${ac_cv_prog_CPP+set}" = set; then :
3851 $as_echo_n "(cached) " >&6
3852else
3853 # Double quotes because CPP needs to be expanded
3854 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3855 do
3856 ac_preproc_ok=false
3857for ac_c_preproc_warn_flag in '' yes
3858do
3859 # Use a header file that comes with gcc, so configuring glibc
3860 # with a fresh cross-compiler works.
3861 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3862 # <limits.h> exists even on freestanding compilers.
3863 # On the NeXT, cc -E runs the code through the compiler's parser,
3864 # not just through cpp. "Syntax error" is here to catch this case.
3865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3866/* end confdefs.h. */
3867#ifdef __STDC__
3868# include <limits.h>
3869#else
3870# include <assert.h>
3871#endif
3872 Syntax error
3873_ACEOF
3874if ac_fn_c_try_cpp "$LINENO"; then :
3875
3876else
3877 # Broken: fails on valid input.
3878continue
3879fi
3880rm -f conftest.err conftest.$ac_ext
3881
3882 # OK, works on sane cases. Now check whether nonexistent headers
3883 # can be detected and how.
3884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3885/* end confdefs.h. */
3886#include <ac_nonexistent.h>
3887_ACEOF
3888if ac_fn_c_try_cpp "$LINENO"; then :
3889 # Broken: success on invalid input.
3890continue
3891else
3892 # Passes both tests.
3893ac_preproc_ok=:
3894break
3895fi
3896rm -f conftest.err conftest.$ac_ext
3897
3898done
3899# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3900rm -f conftest.err conftest.$ac_ext
3901if $ac_preproc_ok; then :
3902 break
3903fi
3904
3905 done
3906 ac_cv_prog_CPP=$CPP
3907
3908fi
3909 CPP=$ac_cv_prog_CPP
3910else
3911 ac_cv_prog_CPP=$CPP
3912fi
3913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3914$as_echo "$CPP" >&6; }
3915ac_preproc_ok=false
3916for ac_c_preproc_warn_flag in '' yes
3917do
3918 # Use a header file that comes with gcc, so configuring glibc
3919 # with a fresh cross-compiler works.
3920 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3921 # <limits.h> exists even on freestanding compilers.
3922 # On the NeXT, cc -E runs the code through the compiler's parser,
3923 # not just through cpp. "Syntax error" is here to catch this case.
3924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3925/* end confdefs.h. */
3926#ifdef __STDC__
3927# include <limits.h>
3928#else
3929# include <assert.h>
3930#endif
3931 Syntax error
3932_ACEOF
3933if ac_fn_c_try_cpp "$LINENO"; then :
3934
3935else
3936 # Broken: fails on valid input.
3937continue
3938fi
3939rm -f conftest.err conftest.$ac_ext
3940
3941 # OK, works on sane cases. Now check whether nonexistent headers
3942 # can be detected and how.
3943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3944/* end confdefs.h. */
3945#include <ac_nonexistent.h>
3946_ACEOF
3947if ac_fn_c_try_cpp "$LINENO"; then :
3948 # Broken: success on invalid input.
3949continue
3950else
3951 # Passes both tests.
3952ac_preproc_ok=:
3953break
3954fi
3955rm -f conftest.err conftest.$ac_ext
3956
3957done
3958# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3959rm -f conftest.err conftest.$ac_ext
3960if $ac_preproc_ok; then :
3961
3962else
3963 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3964$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3965as_fn_error "C preprocessor \"$CPP\" fails sanity check
3966See \`config.log' for more details." "$LINENO" 5; }
3967fi
3968
3969ac_ext=c
3970ac_cpp='$CPP $CPPFLAGS'
3971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3973ac_compiler_gnu=$ac_cv_c_compiler_gnu
3974
3975
3976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3977$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3978if test "${ac_cv_path_GREP+set}" = set; then :
3979 $as_echo_n "(cached) " >&6
3980else
3981 if test -z "$GREP"; then
3982 ac_path_GREP_found=false
3983 # Loop through the user's path and test for each of PROGNAME-LIST
3984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3985for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3986do
3987 IFS=$as_save_IFS
3988 test -z "$as_dir" && as_dir=.
3989 for ac_prog in grep ggrep; do
3990 for ac_exec_ext in '' $ac_executable_extensions; do
3991 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3992 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3993# Check for GNU ac_path_GREP and select it if it is found.
3994 # Check for GNU $ac_path_GREP
3995case `"$ac_path_GREP" --version 2>&1` in
3996*GNU*)
3997 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3998*)
3999 ac_count=0
4000 $as_echo_n 0123456789 >"conftest.in"
4001 while :
4002 do
4003 cat "conftest.in" "conftest.in" >"conftest.tmp"
4004 mv "conftest.tmp" "conftest.in"
4005 cp "conftest.in" "conftest.nl"
4006 $as_echo 'GREP' >> "conftest.nl"
4007 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4008 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4009 as_fn_arith $ac_count + 1 && ac_count=$as_val
4010 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4011 # Best one so far, save it but keep looking for a better one
4012 ac_cv_path_GREP="$ac_path_GREP"
4013 ac_path_GREP_max=$ac_count
4014 fi
4015 # 10*(2^10) chars as input seems more than enough
4016 test $ac_count -gt 10 && break
4017 done
4018 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4019esac
4020
4021 $ac_path_GREP_found && break 3
4022 done
4023 done
4024 done
4025IFS=$as_save_IFS
4026 if test -z "$ac_cv_path_GREP"; then
4027 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4028 fi
4029else
4030 ac_cv_path_GREP=$GREP
4031fi
4032
4033fi
4034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4035$as_echo "$ac_cv_path_GREP" >&6; }
4036 GREP="$ac_cv_path_GREP"
4037
4038
4039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4040$as_echo_n "checking for egrep... " >&6; }
4041if test "${ac_cv_path_EGREP+set}" = set; then :
4042 $as_echo_n "(cached) " >&6
4043else
4044 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4045 then ac_cv_path_EGREP="$GREP -E"
4046 else
4047 if test -z "$EGREP"; then
4048 ac_path_EGREP_found=false
4049 # Loop through the user's path and test for each of PROGNAME-LIST
4050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4051for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4052do
4053 IFS=$as_save_IFS
4054 test -z "$as_dir" && as_dir=.
4055 for ac_prog in egrep; do
4056 for ac_exec_ext in '' $ac_executable_extensions; do
4057 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4058 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4059# Check for GNU ac_path_EGREP and select it if it is found.
4060 # Check for GNU $ac_path_EGREP
4061case `"$ac_path_EGREP" --version 2>&1` in
4062*GNU*)
4063 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4064*)
4065 ac_count=0
4066 $as_echo_n 0123456789 >"conftest.in"
4067 while :
4068 do
4069 cat "conftest.in" "conftest.in" >"conftest.tmp"
4070 mv "conftest.tmp" "conftest.in"
4071 cp "conftest.in" "conftest.nl"
4072 $as_echo 'EGREP' >> "conftest.nl"
4073 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4074 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4075 as_fn_arith $ac_count + 1 && ac_count=$as_val
4076 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4077 # Best one so far, save it but keep looking for a better one
4078 ac_cv_path_EGREP="$ac_path_EGREP"
4079 ac_path_EGREP_max=$ac_count
4080 fi
4081 # 10*(2^10) chars as input seems more than enough
4082 test $ac_count -gt 10 && break
4083 done
4084 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4085esac
4086
4087 $ac_path_EGREP_found && break 3
4088 done
4089 done
4090 done
4091IFS=$as_save_IFS
4092 if test -z "$ac_cv_path_EGREP"; then
4093 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4094 fi
4095else
4096 ac_cv_path_EGREP=$EGREP
4097fi
4098
4099 fi
4100fi
4101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4102$as_echo "$ac_cv_path_EGREP" >&6; }
4103 EGREP="$ac_cv_path_EGREP"
4104
4105
4106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4107$as_echo_n "checking for ANSI C header files... " >&6; }
4108if test "${ac_cv_header_stdc+set}" = set; then :
4109 $as_echo_n "(cached) " >&6
4110else
4111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4112/* end confdefs.h. */
4113#include <stdlib.h>
4114#include <stdarg.h>
4115#include <string.h>
4116#include <float.h>
4117
4118int
4119main ()
4120{
4121
4122 ;
4123 return 0;
4124}
4125_ACEOF
4126if ac_fn_c_try_compile "$LINENO"; then :
4127 ac_cv_header_stdc=yes
4128else
4129 ac_cv_header_stdc=no
4130fi
4131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4132
4133if test $ac_cv_header_stdc = yes; then
4134 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4136/* end confdefs.h. */
4137#include <string.h>
4138
4139_ACEOF
4140if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4141 $EGREP "memchr" >/dev/null 2>&1; then :
4142
4143else
4144 ac_cv_header_stdc=no
4145fi
4146rm -f conftest*
4147
4148fi
4149
4150if test $ac_cv_header_stdc = yes; then
4151 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4153/* end confdefs.h. */
4154#include <stdlib.h>
4155
4156_ACEOF
4157if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4158 $EGREP "free" >/dev/null 2>&1; then :
4159
4160else
4161 ac_cv_header_stdc=no
4162fi
4163rm -f conftest*
4164
4165fi
4166
4167if test $ac_cv_header_stdc = yes; then
4168 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4169 if test "$cross_compiling" = yes; then :
4170 :
4171else
4172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4173/* end confdefs.h. */
4174#include <ctype.h>
4175#include <stdlib.h>
4176#if ((' ' & 0x0FF) == 0x020)
4177# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4178# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4179#else
4180# define ISLOWER(c) \
4181 (('a' <= (c) && (c) <= 'i') \
4182 || ('j' <= (c) && (c) <= 'r') \
4183 || ('s' <= (c) && (c) <= 'z'))
4184# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4185#endif
4186
4187#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4188int
4189main ()
4190{
4191 int i;
4192 for (i = 0; i < 256; i++)
4193 if (XOR (islower (i), ISLOWER (i))
4194 || toupper (i) != TOUPPER (i))
4195 return 2;
4196 return 0;
4197}
4198_ACEOF
4199if ac_fn_c_try_run "$LINENO"; then :
4200
4201else
4202 ac_cv_header_stdc=no
4203fi
4204rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4205 conftest.$ac_objext conftest.beam conftest.$ac_ext
4206fi
4207
4208fi
4209fi
4210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4211$as_echo "$ac_cv_header_stdc" >&6; }
4212if test $ac_cv_header_stdc = yes; then
4213
4214$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4215
4216fi
4217
4218# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4219for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4220 inttypes.h stdint.h unistd.h
4221do :
4222 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4223ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4224"
4225eval as_val=\$$as_ac_Header
4226 if test "x$as_val" = x""yes; then :
4227 cat >>confdefs.h <<_ACEOF
4228#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4229_ACEOF
4230
4231fi
4232
4233done
4234
4235
4236
4237
4238
4239 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4240if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4241 MINIX=yes
4242else
4243 MINIX=
4244fi
4245
4246
4247 if test "$MINIX" = yes; then
4248
4249$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4250
4251
4252$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4253
4254
4255$as_echo "#define _MINIX 1" >>confdefs.h
4256
4257 fi
4258
4259 case "$host_os" in
4260 hpux*)
4261
4262$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4263
4264 ;;
4265 esac
4266
4267
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4269$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4270if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4271 $as_echo_n "(cached) " >&6
4272else
4273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4274/* end confdefs.h. */
4275
4276# define __EXTENSIONS__ 1
4277 $ac_includes_default
4278int
4279main ()
4280{
4281
4282 ;
4283 return 0;
4284}
4285_ACEOF
4286if ac_fn_c_try_compile "$LINENO"; then :
4287 ac_cv_safe_to_define___extensions__=yes
4288else
4289 ac_cv_safe_to_define___extensions__=no
4290fi
4291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4292fi
4293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4294$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4295 test $ac_cv_safe_to_define___extensions__ = yes &&
4296 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4297
4298 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4299
4300 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4301
4302 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4303
4304 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4305
4306 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4307
4308
4309
4310
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
4312$as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
4313if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
4314 $as_echo_n "(cached) " >&6
4315else
4316
4317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4318/* end confdefs.h. */
4319
4320#ifdef __ACK__
4321Amsterdam
4322#endif
4323
4324_ACEOF
4325if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4326 $EGREP "Amsterdam" >/dev/null 2>&1; then :
4327 gl_cv_c_amsterdam_compiler=yes
4328else
4329 gl_cv_c_amsterdam_compiler=no
4330fi
4331rm -f conftest*
4332
4333
4334fi
4335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
4336$as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
4337 if test -z "$AR"; then
4338 if test $gl_cv_c_amsterdam_compiler = yes; then
4339 AR='cc -c.a'
4340 if test -z "$ARFLAGS"; then
4341 ARFLAGS='-o'
4342 fi
4343 else
4344 if test -n "$ac_tool_prefix"; then
4345 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4346set dummy ${ac_tool_prefix}ar; ac_word=$2
4347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4348$as_echo_n "checking for $ac_word... " >&6; }
4349if test "${ac_cv_prog_AR+set}" = set; then :
4350 $as_echo_n "(cached) " >&6
4351else
4352 if test -n "$AR"; then
4353 ac_cv_prog_AR="$AR" # Let the user override the test.
4354else
4355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4356for as_dir in $PATH
4357do
4358 IFS=$as_save_IFS
4359 test -z "$as_dir" && as_dir=.
4360 for ac_exec_ext in '' $ac_executable_extensions; do
4361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4362 ac_cv_prog_AR="${ac_tool_prefix}ar"
4363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4364 break 2
4365 fi
4366done
4367 done
4368IFS=$as_save_IFS
4369
4370fi
4371fi
4372AR=$ac_cv_prog_AR
4373if test -n "$AR"; then
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4375$as_echo "$AR" >&6; }
4376else
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4378$as_echo "no" >&6; }
4379fi
4380
4381
4382fi
4383if test -z "$ac_cv_prog_AR"; then
4384 ac_ct_AR=$AR
4385 # Extract the first word of "ar", so it can be a program name with args.
4386set dummy ar; ac_word=$2
4387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4388$as_echo_n "checking for $ac_word... " >&6; }
4389if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4390 $as_echo_n "(cached) " >&6
4391else
4392 if test -n "$ac_ct_AR"; then
4393 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4394else
4395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4396for as_dir in $PATH
4397do
4398 IFS=$as_save_IFS
4399 test -z "$as_dir" && as_dir=.
4400 for ac_exec_ext in '' $ac_executable_extensions; do
4401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4402 ac_cv_prog_ac_ct_AR="ar"
4403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4404 break 2
4405 fi
4406done
4407 done
4408IFS=$as_save_IFS
4409
4410fi
4411fi
4412ac_ct_AR=$ac_cv_prog_ac_ct_AR
4413if test -n "$ac_ct_AR"; then
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4415$as_echo "$ac_ct_AR" >&6; }
4416else
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4418$as_echo "no" >&6; }
4419fi
4420
4421 if test "x$ac_ct_AR" = x; then
4422 AR="ar"
4423 else
4424 case $cross_compiling:$ac_tool_warned in
4425yes:)
4426{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4427$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4428ac_tool_warned=yes ;;
4429esac
4430 AR=$ac_ct_AR
4431 fi
4432else
4433 AR="$ac_cv_prog_AR"
4434fi
4435
4436 if test -z "$ARFLAGS"; then
4437 ARFLAGS='cru'
4438 fi
4439 fi
4440 else
4441 if test -z "$ARFLAGS"; then
4442 ARFLAGS='cru'
4443 fi
4444 fi
4445
4446
4447 if test -z "$RANLIB"; then
4448 if test $gl_cv_c_amsterdam_compiler = yes; then
4449 RANLIB=':'
4450 else
4451 if test -n "$ac_tool_prefix"; then
4452 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4453set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4455$as_echo_n "checking for $ac_word... " >&6; }
4456if test "${ac_cv_prog_RANLIB+set}" = set; then :
4457 $as_echo_n "(cached) " >&6
4458else
4459 if test -n "$RANLIB"; then
4460 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4461else
4462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4463for as_dir in $PATH
4464do
4465 IFS=$as_save_IFS
4466 test -z "$as_dir" && as_dir=.
4467 for ac_exec_ext in '' $ac_executable_extensions; do
4468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4469 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4471 break 2
4472 fi
4473done
4474 done
4475IFS=$as_save_IFS
4476
4477fi
4478fi
4479RANLIB=$ac_cv_prog_RANLIB
4480if test -n "$RANLIB"; then
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4482$as_echo "$RANLIB" >&6; }
4483else
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4485$as_echo "no" >&6; }
4486fi
4487
4488
4489fi
4490if test -z "$ac_cv_prog_RANLIB"; then
4491 ac_ct_RANLIB=$RANLIB
4492 # Extract the first word of "ranlib", so it can be a program name with args.
4493set dummy ranlib; ac_word=$2
4494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4495$as_echo_n "checking for $ac_word... " >&6; }
4496if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4497 $as_echo_n "(cached) " >&6
4498else
4499 if test -n "$ac_ct_RANLIB"; then
4500 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4501else
4502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4503for as_dir in $PATH
4504do
4505 IFS=$as_save_IFS
4506 test -z "$as_dir" && as_dir=.
4507 for ac_exec_ext in '' $ac_executable_extensions; do
4508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4509 ac_cv_prog_ac_ct_RANLIB="ranlib"
4510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4511 break 2
4512 fi
4513done
4514 done
4515IFS=$as_save_IFS
4516
4517fi
4518fi
4519ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4520if test -n "$ac_ct_RANLIB"; then
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4522$as_echo "$ac_ct_RANLIB" >&6; }
4523else
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4525$as_echo "no" >&6; }
4526fi
4527
4528 if test "x$ac_ct_RANLIB" = x; then
4529 RANLIB=":"
4530 else
4531 case $cross_compiling:$ac_tool_warned in
4532yes:)
4533{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4534$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4535ac_tool_warned=yes ;;
4536esac
4537 RANLIB=$ac_ct_RANLIB
4538 fi
4539else
4540 RANLIB="$ac_cv_prog_RANLIB"
4541fi
4542
4543 fi
4544 fi
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
88b48903
WN
4555
4556 # IEEE behaviour is the default on all CPUs except Alpha and SH
4557 # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
4558 # and the GCC 4.1.2 manual).
4559 case "$host_cpu" in
4560 alpha*)
4561 # On Alpha systems, a compiler option provides the behaviour.
4562 # See the ieee(3) manual page, also available at
4563 # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
4564 if test -n "$GCC"; then
4565 # GCC has the option -mieee.
4566 # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
4567 CPPFLAGS="$CPPFLAGS -mieee"
4568 else
4569 # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
4570 # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
4571 CPPFLAGS="$CPPFLAGS -ieee"
4572 fi
4573 ;;
4574 sh*)
4575 if test -n "$GCC"; then
4576 # GCC has the option -mieee.
4577 CPPFLAGS="$CPPFLAGS -mieee"
4578 fi
4579 ;;
4580 esac
4581
4582
4583
8690e634
JK
4584 # Code from module alloca:
4585 # Code from module alloca-opt:
4586 # Code from module configmake:
c971b7fa
PA
4587 # Code from module extensions:
4588
a512b375 4589 # Code from module extern-inline:
88b48903 4590 # Code from module float:
8690e634
JK
4591 # Code from module fnmatch:
4592 # Code from module fnmatch-gnu:
88b48903
WN
4593 # Code from module fpieee:
4594
4595 # Code from module fpucw:
4596 # Code from module frexp:
4597 # Code from module frexpl:
c971b7fa
PA
4598 # Code from module include_next:
4599 # Code from module inttypes:
4600 # Code from module inttypes-incomplete:
88b48903
WN
4601 # Code from module isnand-nolibm:
4602 # Code from module isnanl-nolibm:
8690e634 4603 # Code from module localcharset:
88b48903 4604 # Code from module math:
8690e634
JK
4605 # Code from module mbrtowc:
4606 # Code from module mbsinit:
4607 # Code from module mbsrtowcs:
c971b7fa
PA
4608 # Code from module memchr:
4609 # Code from module memmem:
4610 # Code from module memmem-simple:
4611 # Code from module multiarch:
4612 # Code from module snippet/arg-nonnull:
4613 # Code from module snippet/c++defs:
4614 # Code from module snippet/warn-on-use:
8690e634 4615 # Code from module stdbool:
c971b7fa
PA
4616 # Code from module stddef:
4617 # Code from module stdint:
8690e634 4618 # Code from module streq:
c971b7fa 4619 # Code from module string:
8690e634 4620 # Code from module strnlen1:
c971b7fa 4621 # Code from module update-copyright:
8690e634
JK
4622 # Code from module verify:
4623 # Code from module wchar:
4624 # Code from module wctype-h:
c971b7fa
PA
4625
4626ac_ext=c
4627ac_cpp='$CPP $CPPFLAGS'
4628ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4629ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4630ac_compiler_gnu=$ac_cv_c_compiler_gnu
4631if test -n "$ac_tool_prefix"; then
4632 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4633set dummy ${ac_tool_prefix}gcc; ac_word=$2
4634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4635$as_echo_n "checking for $ac_word... " >&6; }
4636if test "${ac_cv_prog_CC+set}" = set; then :
4637 $as_echo_n "(cached) " >&6
4638else
4639 if test -n "$CC"; then
4640 ac_cv_prog_CC="$CC" # Let the user override the test.
4641else
4642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643for as_dir in $PATH
4644do
4645 IFS=$as_save_IFS
4646 test -z "$as_dir" && as_dir=.
4647 for ac_exec_ext in '' $ac_executable_extensions; do
4648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4649 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4651 break 2
4652 fi
4653done
4654 done
4655IFS=$as_save_IFS
4656
4657fi
4658fi
4659CC=$ac_cv_prog_CC
4660if test -n "$CC"; then
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4662$as_echo "$CC" >&6; }
4663else
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4665$as_echo "no" >&6; }
4666fi
4667
4668
4669fi
4670if test -z "$ac_cv_prog_CC"; then
4671 ac_ct_CC=$CC
4672 # Extract the first word of "gcc", so it can be a program name with args.
4673set dummy gcc; ac_word=$2
4674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4675$as_echo_n "checking for $ac_word... " >&6; }
4676if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4677 $as_echo_n "(cached) " >&6
4678else
4679 if test -n "$ac_ct_CC"; then
4680 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4681else
4682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4683for as_dir in $PATH
4684do
4685 IFS=$as_save_IFS
4686 test -z "$as_dir" && as_dir=.
4687 for ac_exec_ext in '' $ac_executable_extensions; do
4688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4689 ac_cv_prog_ac_ct_CC="gcc"
4690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4691 break 2
4692 fi
4693done
4694 done
4695IFS=$as_save_IFS
4696
4697fi
4698fi
4699ac_ct_CC=$ac_cv_prog_ac_ct_CC
4700if test -n "$ac_ct_CC"; then
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4702$as_echo "$ac_ct_CC" >&6; }
4703else
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4705$as_echo "no" >&6; }
4706fi
4707
4708 if test "x$ac_ct_CC" = x; then
4709 CC=""
4710 else
4711 case $cross_compiling:$ac_tool_warned in
4712yes:)
4713{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4714$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4715ac_tool_warned=yes ;;
4716esac
4717 CC=$ac_ct_CC
4718 fi
4719else
4720 CC="$ac_cv_prog_CC"
4721fi
4722
4723if test -z "$CC"; then
4724 if test -n "$ac_tool_prefix"; then
4725 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4726set dummy ${ac_tool_prefix}cc; ac_word=$2
4727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4728$as_echo_n "checking for $ac_word... " >&6; }
4729if test "${ac_cv_prog_CC+set}" = set; then :
4730 $as_echo_n "(cached) " >&6
4731else
4732 if test -n "$CC"; then
4733 ac_cv_prog_CC="$CC" # Let the user override the test.
4734else
4735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4736for as_dir in $PATH
4737do
4738 IFS=$as_save_IFS
4739 test -z "$as_dir" && as_dir=.
4740 for ac_exec_ext in '' $ac_executable_extensions; do
4741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4742 ac_cv_prog_CC="${ac_tool_prefix}cc"
4743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4744 break 2
4745 fi
4746done
4747 done
4748IFS=$as_save_IFS
4749
4750fi
4751fi
4752CC=$ac_cv_prog_CC
4753if test -n "$CC"; then
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4755$as_echo "$CC" >&6; }
4756else
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4758$as_echo "no" >&6; }
4759fi
4760
4761
4762 fi
4763fi
4764if test -z "$CC"; then
4765 # Extract the first word of "cc", so it can be a program name with args.
4766set dummy cc; ac_word=$2
4767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4768$as_echo_n "checking for $ac_word... " >&6; }
4769if test "${ac_cv_prog_CC+set}" = set; then :
4770 $as_echo_n "(cached) " >&6
4771else
4772 if test -n "$CC"; then
4773 ac_cv_prog_CC="$CC" # Let the user override the test.
4774else
4775 ac_prog_rejected=no
4776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4777for as_dir in $PATH
4778do
4779 IFS=$as_save_IFS
4780 test -z "$as_dir" && as_dir=.
4781 for ac_exec_ext in '' $ac_executable_extensions; do
4782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4783 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4784 ac_prog_rejected=yes
4785 continue
4786 fi
4787 ac_cv_prog_CC="cc"
4788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4789 break 2
4790 fi
4791done
4792 done
4793IFS=$as_save_IFS
4794
4795if test $ac_prog_rejected = yes; then
4796 # We found a bogon in the path, so make sure we never use it.
4797 set dummy $ac_cv_prog_CC
4798 shift
4799 if test $# != 0; then
4800 # We chose a different compiler from the bogus one.
4801 # However, it has the same basename, so the bogon will be chosen
4802 # first if we set CC to just the basename; use the full file name.
4803 shift
4804 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4805 fi
4806fi
4807fi
4808fi
4809CC=$ac_cv_prog_CC
4810if test -n "$CC"; then
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4812$as_echo "$CC" >&6; }
4813else
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4815$as_echo "no" >&6; }
4816fi
4817
4818
4819fi
4820if test -z "$CC"; then
4821 if test -n "$ac_tool_prefix"; then
4822 for ac_prog in cl.exe
4823 do
4824 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4825set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4827$as_echo_n "checking for $ac_word... " >&6; }
4828if test "${ac_cv_prog_CC+set}" = set; then :
4829 $as_echo_n "(cached) " >&6
4830else
4831 if test -n "$CC"; then
4832 ac_cv_prog_CC="$CC" # Let the user override the test.
4833else
4834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4835for as_dir in $PATH
4836do
4837 IFS=$as_save_IFS
4838 test -z "$as_dir" && as_dir=.
4839 for ac_exec_ext in '' $ac_executable_extensions; do
4840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4841 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4843 break 2
4844 fi
4845done
4846 done
4847IFS=$as_save_IFS
4848
4849fi
4850fi
4851CC=$ac_cv_prog_CC
4852if test -n "$CC"; then
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4854$as_echo "$CC" >&6; }
4855else
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4857$as_echo "no" >&6; }
4858fi
4859
4860
4861 test -n "$CC" && break
4862 done
4863fi
4864if test -z "$CC"; then
4865 ac_ct_CC=$CC
4866 for ac_prog in cl.exe
4867do
4868 # Extract the first word of "$ac_prog", so it can be a program name with args.
4869set dummy $ac_prog; ac_word=$2
4870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4871$as_echo_n "checking for $ac_word... " >&6; }
4872if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4873 $as_echo_n "(cached) " >&6
4874else
4875 if test -n "$ac_ct_CC"; then
4876 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4877else
4878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4879for as_dir in $PATH
4880do
4881 IFS=$as_save_IFS
4882 test -z "$as_dir" && as_dir=.
4883 for ac_exec_ext in '' $ac_executable_extensions; do
4884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4885 ac_cv_prog_ac_ct_CC="$ac_prog"
4886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4887 break 2
4888 fi
4889done
4890 done
4891IFS=$as_save_IFS
4892
4893fi
4894fi
4895ac_ct_CC=$ac_cv_prog_ac_ct_CC
4896if test -n "$ac_ct_CC"; then
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4898$as_echo "$ac_ct_CC" >&6; }
4899else
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4901$as_echo "no" >&6; }
4902fi
4903
4904
4905 test -n "$ac_ct_CC" && break
4906done
4907
4908 if test "x$ac_ct_CC" = x; then
4909 CC=""
4910 else
4911 case $cross_compiling:$ac_tool_warned in
4912yes:)
4913{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4914$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4915ac_tool_warned=yes ;;
4916esac
4917 CC=$ac_ct_CC
4918 fi
4919fi
4920
4921fi
4922
4923
4924test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4925$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4926as_fn_error "no acceptable C compiler found in \$PATH
4927See \`config.log' for more details." "$LINENO" 5; }
4928
4929# Provide some information about the compiler.
4930$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4931set X $ac_compile
4932ac_compiler=$2
4933for ac_option in --version -v -V -qversion; do
4934 { { ac_try="$ac_compiler $ac_option >&5"
4935case "(($ac_try" in
4936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4937 *) ac_try_echo=$ac_try;;
4938esac
4939eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4940$as_echo "$ac_try_echo"; } >&5
4941 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4942 ac_status=$?
4943 if test -s conftest.err; then
4944 sed '10a\
4945... rest of stderr output deleted ...
4946 10q' conftest.err >conftest.er1
4947 cat conftest.er1 >&5
4948 rm -f conftest.er1 conftest.err
4949 fi
4950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4951 test $ac_status = 0; }
4952done
4953
4954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4955$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4956if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4957 $as_echo_n "(cached) " >&6
4958else
4959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4960/* end confdefs.h. */
4961
4962int
4963main ()
4964{
4965#ifndef __GNUC__
4966 choke me
4967#endif
4968
4969 ;
4970 return 0;
4971}
4972_ACEOF
4973if ac_fn_c_try_compile "$LINENO"; then :
4974 ac_compiler_gnu=yes
4975else
4976 ac_compiler_gnu=no
4977fi
4978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4979ac_cv_c_compiler_gnu=$ac_compiler_gnu
4980
4981fi
4982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4983$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4984if test $ac_compiler_gnu = yes; then
4985 GCC=yes
4986else
4987 GCC=
4988fi
4989ac_test_CFLAGS=${CFLAGS+set}
4990ac_save_CFLAGS=$CFLAGS
4991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4992$as_echo_n "checking whether $CC accepts -g... " >&6; }
4993if test "${ac_cv_prog_cc_g+set}" = set; then :
4994 $as_echo_n "(cached) " >&6
4995else
4996 ac_save_c_werror_flag=$ac_c_werror_flag
4997 ac_c_werror_flag=yes
4998 ac_cv_prog_cc_g=no
4999 CFLAGS="-g"
5000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5001/* end confdefs.h. */
5002
5003int
5004main ()
5005{
5006
5007 ;
5008 return 0;
5009}
5010_ACEOF
5011if ac_fn_c_try_compile "$LINENO"; then :
5012 ac_cv_prog_cc_g=yes
5013else
5014 CFLAGS=""
5015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5016/* end confdefs.h. */
5017
5018int
5019main ()
5020{
5021
5022 ;
5023 return 0;
5024}
5025_ACEOF
5026if ac_fn_c_try_compile "$LINENO"; then :
5027
5028else
5029 ac_c_werror_flag=$ac_save_c_werror_flag
5030 CFLAGS="-g"
5031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5032/* end confdefs.h. */
5033
5034int
5035main ()
5036{
5037
5038 ;
5039 return 0;
5040}
5041_ACEOF
5042if ac_fn_c_try_compile "$LINENO"; then :
5043 ac_cv_prog_cc_g=yes
5044fi
5045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5046fi
5047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5048fi
5049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5050 ac_c_werror_flag=$ac_save_c_werror_flag
5051fi
5052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5053$as_echo "$ac_cv_prog_cc_g" >&6; }
5054if test "$ac_test_CFLAGS" = set; then
5055 CFLAGS=$ac_save_CFLAGS
5056elif test $ac_cv_prog_cc_g = yes; then
5057 if test "$GCC" = yes; then
5058 CFLAGS="-g -O2"
5059 else
5060 CFLAGS="-g"
5061 fi
5062else
5063 if test "$GCC" = yes; then
5064 CFLAGS="-O2"
5065 else
5066 CFLAGS=
5067 fi
5068fi
5069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5070$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5071if test "${ac_cv_prog_cc_c89+set}" = set; then :
5072 $as_echo_n "(cached) " >&6
5073else
5074 ac_cv_prog_cc_c89=no
5075ac_save_CC=$CC
5076cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5077/* end confdefs.h. */
5078#include <stdarg.h>
5079#include <stdio.h>
5080#include <sys/types.h>
5081#include <sys/stat.h>
5082/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5083struct buf { int x; };
5084FILE * (*rcsopen) (struct buf *, struct stat *, int);
5085static char *e (p, i)
5086 char **p;
5087 int i;
5088{
5089 return p[i];
5090}
5091static char *f (char * (*g) (char **, int), char **p, ...)
5092{
5093 char *s;
5094 va_list v;
5095 va_start (v,p);
5096 s = g (p, va_arg (v,int));
5097 va_end (v);
5098 return s;
5099}
5100
5101/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5102 function prototypes and stuff, but not '\xHH' hex character constants.
5103 These don't provoke an error unfortunately, instead are silently treated
5104 as 'x'. The following induces an error, until -std is added to get
5105 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5106 array size at least. It's necessary to write '\x00'==0 to get something
5107 that's true only with -std. */
5108int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5109
5110/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5111 inside strings and character constants. */
5112#define FOO(x) 'x'
5113int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5114
5115int test (int i, double x);
5116struct s1 {int (*f) (int a);};
5117struct s2 {int (*f) (double a);};
5118int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5119int argc;
5120char **argv;
5121int
5122main ()
5123{
5124return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5125 ;
5126 return 0;
5127}
5128_ACEOF
5129for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5130 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5131do
5132 CC="$ac_save_CC $ac_arg"
5133 if ac_fn_c_try_compile "$LINENO"; then :
5134 ac_cv_prog_cc_c89=$ac_arg
5135fi
5136rm -f core conftest.err conftest.$ac_objext
5137 test "x$ac_cv_prog_cc_c89" != "xno" && break
5138done
5139rm -f conftest.$ac_ext
5140CC=$ac_save_CC
5141
5142fi
5143# AC_CACHE_VAL
5144case "x$ac_cv_prog_cc_c89" in
5145 x)
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5147$as_echo "none needed" >&6; } ;;
5148 xno)
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5150$as_echo "unsupported" >&6; } ;;
5151 *)
5152 CC="$CC $ac_cv_prog_cc_c89"
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5154$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5155esac
5156if test "x$ac_cv_prog_cc_c89" != xno; then :
5157
5158fi
5159
5160ac_ext=c
5161ac_cpp='$CPP $CPPFLAGS'
5162ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5163ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5164ac_compiler_gnu=$ac_cv_c_compiler_gnu
5165
5166
5167am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5168
5169
5170ac_aux_dir=
5171for ac_dir in ../.. "$srcdir"/../..; do
5172 for ac_t in install-sh install.sh shtool; do
5173 if test -f "$ac_dir/$ac_t"; then
5174 ac_aux_dir=$ac_dir
5175 ac_install_sh="$ac_aux_dir/$ac_t -c"
5176 break 2
5177 fi
5178 done
5179done
5180if test -z "$ac_aux_dir"; then
5181 as_fn_error "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
5182fi
5183
5184# These three variables are undocumented and unsupported,
5185# and are intended to be withdrawn in a future Autoconf release.
5186# They can cause serious problems if a builder's source tree is in a directory
5187# whose full name contains unusual characters.
5188ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5189ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5190ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5191
5192
5193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
5194$as_echo_n "checking target system type... " >&6; }
5195if test "${ac_cv_target+set}" = set; then :
5196 $as_echo_n "(cached) " >&6
5197else
5198 if test "x$target_alias" = x; then
5199 ac_cv_target=$ac_cv_host
5200else
5201 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
5202 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5203fi
5204
5205fi
5206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
5207$as_echo "$ac_cv_target" >&6; }
5208case $ac_cv_target in
5209*-*-*) ;;
5210*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
5211esac
5212target=$ac_cv_target
5213ac_save_IFS=$IFS; IFS='-'
5214set x $ac_cv_target
5215shift
5216target_cpu=$1
5217target_vendor=$2
5218shift; shift
5219# Remember, the first character of IFS is used to create $*,
5220# except with old shells:
5221target_os=$*
5222IFS=$ac_save_IFS
5223case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
5224
5225
5226# The aliases save the names the user supplied, while $host etc.
5227# will get canonicalized.
5228test -n "$target_alias" &&
5229 test "$program_prefix$program_suffix$program_transform_name" = \
5230 NONENONEs,x,x, &&
5231 program_prefix=${target_alias}-
5232
5233
5234
5235
5236
5237
5238
5239 LIBC_FATAL_STDERR_=1
5240 export LIBC_FATAL_STDERR_
5241
8690e634
JK
5242# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5243# for constant arguments. Useless!
5244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5245$as_echo_n "checking for working alloca.h... " >&6; }
5246if test "${ac_cv_working_alloca_h+set}" = set; then :
c971b7fa
PA
5247 $as_echo_n "(cached) " >&6
5248else
8690e634 5249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa 5250/* end confdefs.h. */
8690e634 5251#include <alloca.h>
c971b7fa
PA
5252int
5253main ()
5254{
8690e634
JK
5255char *p = (char *) alloca (2 * sizeof (int));
5256 if (p) return 0;
c971b7fa
PA
5257 ;
5258 return 0;
5259}
c971b7fa
PA
5260_ACEOF
5261if ac_fn_c_try_link "$LINENO"; then :
8690e634 5262 ac_cv_working_alloca_h=yes
c971b7fa 5263else
8690e634 5264 ac_cv_working_alloca_h=no
c971b7fa
PA
5265fi
5266rm -f core conftest.err conftest.$ac_objext \
5267 conftest$ac_exeext conftest.$ac_ext
c971b7fa 5268fi
8690e634
JK
5269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5270$as_echo "$ac_cv_working_alloca_h" >&6; }
5271if test $ac_cv_working_alloca_h = yes; then
c971b7fa 5272
8690e634 5273$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
c971b7fa 5274
8690e634 5275fi
c971b7fa 5276
8690e634
JK
5277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5278$as_echo_n "checking for alloca... " >&6; }
5279if test "${ac_cv_func_alloca_works+set}" = set; then :
c971b7fa 5280 $as_echo_n "(cached) " >&6
c971b7fa
PA
5281else
5282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5283/* end confdefs.h. */
8690e634
JK
5284#ifdef __GNUC__
5285# define alloca __builtin_alloca
5286#else
5287# ifdef _MSC_VER
5288# include <malloc.h>
5289# define alloca _alloca
5290# else
5291# ifdef HAVE_ALLOCA_H
5292# include <alloca.h>
5293# else
5294# ifdef _AIX
5295 #pragma alloca
5296# else
5297# ifndef alloca /* predefined by HP cc +Olibcalls */
5298char *alloca ();
5299# endif
5300# endif
5301# endif
5302# endif
5303#endif
5304
c971b7fa
PA
5305int
5306main ()
5307{
8690e634
JK
5308char *p = (char *) alloca (1);
5309 if (p) return 0;
c971b7fa
PA
5310 ;
5311 return 0;
5312}
5313_ACEOF
8690e634
JK
5314if ac_fn_c_try_link "$LINENO"; then :
5315 ac_cv_func_alloca_works=yes
c971b7fa 5316else
8690e634 5317 ac_cv_func_alloca_works=no
c971b7fa 5318fi
8690e634
JK
5319rm -f core conftest.err conftest.$ac_objext \
5320 conftest$ac_exeext conftest.$ac_ext
c971b7fa 5321fi
a143c6de
JB
5322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5323$as_echo "$ac_cv_func_alloca_works" >&6; }
c971b7fa 5324
a143c6de 5325if test $ac_cv_func_alloca_works = yes; then
c971b7fa 5326
a143c6de 5327$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
c971b7fa 5328
a143c6de
JB
5329else
5330 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5331# that cause trouble. Some versions do not even contain alloca or
5332# contain a buggy version. If you still want to use their alloca,
5333# use ar to extract alloca.o from them instead of compiling alloca.c.
c971b7fa
PA
5334
5335
5336
5337
5338
a143c6de 5339ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
c971b7fa 5340
a143c6de 5341$as_echo "#define C_ALLOCA 1" >>confdefs.h
c971b7fa 5342
c971b7fa 5343
a143c6de
JB
5344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
5345$as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
5346if test "${ac_cv_os_cray+set}" = set; then :
8690e634
JK
5347 $as_echo_n "(cached) " >&6
5348else
a143c6de 5349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690e634 5350/* end confdefs.h. */
a143c6de
JB
5351#if defined CRAY && ! defined CRAY2
5352webecray
5353#else
5354wenotbecray
8690e634 5355#endif
c971b7fa 5356
8690e634
JK
5357_ACEOF
5358if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
a143c6de
JB
5359 $EGREP "webecray" >/dev/null 2>&1; then :
5360 ac_cv_os_cray=yes
8690e634 5361else
a143c6de 5362 ac_cv_os_cray=no
8690e634
JK
5363fi
5364rm -f conftest*
c971b7fa 5365
c0fc7f8b 5366fi
a143c6de
JB
5367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5368$as_echo "$ac_cv_os_cray" >&6; }
5369if test $ac_cv_os_cray = yes; then
5370 for ac_func in _getb67 GETB67 getb67; do
5371 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5372ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5373eval as_val=\$$as_ac_var
5374 if test "x$as_val" = x""yes; then :
c0fc7f8b 5375
a143c6de
JB
5376cat >>confdefs.h <<_ACEOF
5377#define CRAY_STACKSEG_END $ac_func
5378_ACEOF
c971b7fa 5379
a143c6de 5380 break
8690e634 5381fi
c971b7fa 5382
a143c6de 5383 done
8690e634 5384fi
c0fc7f8b 5385
a143c6de
JB
5386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5387$as_echo_n "checking stack direction for C alloca... " >&6; }
5388if test "${ac_cv_c_stack_direction+set}" = set; then :
c971b7fa
PA
5389 $as_echo_n "(cached) " >&6
5390else
a143c6de
JB
5391 if test "$cross_compiling" = yes; then :
5392 ac_cv_c_stack_direction=0
5393else
5394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa 5395/* end confdefs.h. */
a143c6de
JB
5396$ac_includes_default
5397int
5398find_stack_direction (int *addr, int depth)
5399{
5400 int dir, dummy = 0;
5401 if (! addr)
5402 addr = &dummy;
5403 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
5404 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
5405 return dir + dummy;
5406}
8690e634 5407
a143c6de
JB
5408int
5409main (int argc, char **argv)
5410{
5411 return find_stack_direction (0, argc + !argv + 20) < 0;
5412}
c971b7fa 5413_ACEOF
a143c6de
JB
5414if ac_fn_c_try_run "$LINENO"; then :
5415 ac_cv_c_stack_direction=1
c971b7fa 5416else
a143c6de 5417 ac_cv_c_stack_direction=-1
8690e634 5418fi
a143c6de
JB
5419rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5420 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 5421fi
c971b7fa
PA
5422
5423fi
a143c6de
JB
5424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5425$as_echo "$ac_cv_c_stack_direction" >&6; }
5426cat >>confdefs.h <<_ACEOF
5427#define STACK_DIRECTION $ac_cv_c_stack_direction
5428_ACEOF
8690e634 5429
c971b7fa
PA
5430
5431fi
c971b7fa
PA
5432
5433
5434
a512b375
JB
5435
5436
5437
88b48903
WN
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
5439$as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
5440if test "${gl_cv_have_include_next+set}" = set; then :
5441 $as_echo_n "(cached) " >&6
5442else
5443 rm -rf conftestd1a conftestd1b conftestd2
5444 mkdir conftestd1a conftestd1b conftestd2
5445 cat <<EOF > conftestd1a/conftest.h
5446#define DEFINED_IN_CONFTESTD1
5447#include_next <conftest.h>
5448#ifdef DEFINED_IN_CONFTESTD2
5449int foo;
5450#else
5451#error "include_next doesn't work"
5452#endif
5453EOF
5454 cat <<EOF > conftestd1b/conftest.h
5455#define DEFINED_IN_CONFTESTD1
5456#include <stdio.h>
5457#include_next <conftest.h>
5458#ifdef DEFINED_IN_CONFTESTD2
5459int foo;
5460#else
5461#error "include_next doesn't work"
5462#endif
5463EOF
5464 cat <<EOF > conftestd2/conftest.h
5465#ifndef DEFINED_IN_CONFTESTD1
5466#error "include_next test doesn't work"
5467#endif
5468#define DEFINED_IN_CONFTESTD2
5469EOF
5470 gl_save_CPPFLAGS="$CPPFLAGS"
5471 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
5472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5473/* end confdefs.h. */
5474#include <conftest.h>
5475_ACEOF
5476if ac_fn_c_try_compile "$LINENO"; then :
5477 gl_cv_have_include_next=yes
5478else
5479 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
5480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5481/* end confdefs.h. */
5482#include <conftest.h>
5483_ACEOF
5484if ac_fn_c_try_compile "$LINENO"; then :
5485 gl_cv_have_include_next=buggy
5486else
5487 gl_cv_have_include_next=no
5488fi
5489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5490
5491fi
5492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5493 CPPFLAGS="$gl_save_CPPFLAGS"
5494 rm -rf conftestd1a conftestd1b conftestd2
5495
5496fi
5497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
5498$as_echo "$gl_cv_have_include_next" >&6; }
5499 PRAGMA_SYSTEM_HEADER=
5500 if test $gl_cv_have_include_next = yes; then
5501 INCLUDE_NEXT=include_next
5502 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5503 if test -n "$GCC"; then
5504 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
5505 fi
5506 else
5507 if test $gl_cv_have_include_next = buggy; then
5508 INCLUDE_NEXT=include
5509 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5510 else
5511 INCLUDE_NEXT=include
5512 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
5513 fi
5514 fi
5515
5516
5517
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
5519$as_echo_n "checking whether system header files limit the line length... " >&6; }
5520if test "${gl_cv_pragma_columns+set}" = set; then :
5521 $as_echo_n "(cached) " >&6
5522else
5523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5524/* end confdefs.h. */
5525
5526#ifdef __TANDEM
5527choke me
5528#endif
5529
5530_ACEOF
5531if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5532 $EGREP "choke me" >/dev/null 2>&1; then :
5533 gl_cv_pragma_columns=yes
5534else
5535 gl_cv_pragma_columns=no
5536fi
5537rm -f conftest*
5538
5539
5540fi
5541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
5542$as_echo "$gl_cv_pragma_columns" >&6; }
5543 if test $gl_cv_pragma_columns = yes; then
5544 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
5545 else
5546 PRAGMA_COLUMNS=
5547 fi
5548
5549
5550
5551
8690e634
JK
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
5553$as_echo_n "checking for mbstate_t... " >&6; }
5554if test "${ac_cv_type_mbstate_t+set}" = set; then :
c971b7fa
PA
5555 $as_echo_n "(cached) " >&6
5556else
8690e634 5557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa 5558/* end confdefs.h. */
8690e634
JK
5559$ac_includes_default
5560/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
5561 <wchar.h>.
5562 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5563 included before <wchar.h>. */
5564#include <stddef.h>
5565#include <stdio.h>
5566#include <time.h>
5567#include <wchar.h>
5568int
5569main ()
5570{
5571mbstate_t x; return sizeof x;
5572 ;
5573 return 0;
5574}
c971b7fa 5575_ACEOF
8690e634
JK
5576if ac_fn_c_try_compile "$LINENO"; then :
5577 ac_cv_type_mbstate_t=yes
c971b7fa 5578else
8690e634 5579 ac_cv_type_mbstate_t=no
c971b7fa 5580fi
8690e634 5581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c971b7fa 5582fi
8690e634
JK
5583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
5584$as_echo "$ac_cv_type_mbstate_t" >&6; }
5585 if test $ac_cv_type_mbstate_t = yes; then
c971b7fa 5586
8690e634 5587$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
c971b7fa 5588
8690e634 5589 else
c971b7fa 5590
8690e634 5591$as_echo "#define mbstate_t int" >>confdefs.h
c971b7fa 5592
8690e634 5593 fi
c971b7fa
PA
5594
5595
5596
5597
c971b7fa 5598
8690e634
JK
5599 for ac_func in $gl_func_list
5600do :
5601 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5602ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5603eval as_val=\$$as_ac_var
5604 if test "x$as_val" = x""yes; then :
5605 cat >>confdefs.h <<_ACEOF
5606#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
c971b7fa 5607_ACEOF
c971b7fa
PA
5608
5609fi
8690e634 5610done
c971b7fa
PA
5611
5612
5613
5614
5615
c971b7fa
PA
5616
5617
c971b7fa
PA
5618
5619
5620
c971b7fa
PA
5621
5622
5623
5624
5625
c971b7fa
PA
5626
5627
c971b7fa
PA
5628
5629
c971b7fa
PA
5630
5631
5632
5633
5634
5635
5636
5637
c971b7fa
PA
5638
5639
5640
5641
5642
5643
5644
5645
c971b7fa 5646
c971b7fa
PA
5647
5648
c971b7fa 5649
c971b7fa 5650
8690e634
JK
5651
5652
5653
5654
5655 for ac_header in $gl_header_list
5656do :
5657 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5658ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5659eval as_val=\$$as_ac_Header
5660 if test "x$as_val" = x""yes; then :
5661 cat >>confdefs.h <<_ACEOF
5662#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5663_ACEOF
5664
5665fi
5666
5667done
5668
5669
5670
5671
5672
5673
88b48903
WN
5674 GNULIB_ACOSF=0;
5675 GNULIB_ACOSL=0;
5676 GNULIB_ASINF=0;
5677 GNULIB_ASINL=0;
5678 GNULIB_ATANF=0;
5679 GNULIB_ATANL=0;
5680 GNULIB_ATAN2F=0;
5681 GNULIB_CBRT=0;
5682 GNULIB_CBRTF=0;
5683 GNULIB_CBRTL=0;
5684 GNULIB_CEIL=0;
5685 GNULIB_CEILF=0;
5686 GNULIB_CEILL=0;
5687 GNULIB_COPYSIGN=0;
5688 GNULIB_COPYSIGNF=0;
5689 GNULIB_COPYSIGNL=0;
5690 GNULIB_COSF=0;
5691 GNULIB_COSL=0;
5692 GNULIB_COSHF=0;
5693 GNULIB_EXPF=0;
5694 GNULIB_EXPL=0;
5695 GNULIB_EXP2=0;
5696 GNULIB_EXP2F=0;
5697 GNULIB_EXP2L=0;
5698 GNULIB_EXPM1=0;
5699 GNULIB_EXPM1F=0;
5700 GNULIB_EXPM1L=0;
5701 GNULIB_FABSF=0;
5702 GNULIB_FABSL=0;
5703 GNULIB_FLOOR=0;
5704 GNULIB_FLOORF=0;
5705 GNULIB_FLOORL=0;
5706 GNULIB_FMA=0;
5707 GNULIB_FMAF=0;
5708 GNULIB_FMAL=0;
5709 GNULIB_FMOD=0;
5710 GNULIB_FMODF=0;
5711 GNULIB_FMODL=0;
5712 GNULIB_FREXPF=0;
5713 GNULIB_FREXP=0;
5714 GNULIB_FREXPL=0;
5715 GNULIB_HYPOT=0;
5716 GNULIB_HYPOTF=0;
5717 GNULIB_HYPOTL=0;
5718 GNULIB_ILOGB=0;
5719 GNULIB_ILOGBF=0;
5720 GNULIB_ILOGBL=0;
5721 GNULIB_ISFINITE=0;
5722 GNULIB_ISINF=0;
5723 GNULIB_ISNAN=0;
5724 GNULIB_ISNANF=0;
5725 GNULIB_ISNAND=0;
5726 GNULIB_ISNANL=0;
5727 GNULIB_LDEXPF=0;
5728 GNULIB_LDEXPL=0;
5729 GNULIB_LOG=0;
5730 GNULIB_LOGF=0;
5731 GNULIB_LOGL=0;
5732 GNULIB_LOG10=0;
5733 GNULIB_LOG10F=0;
5734 GNULIB_LOG10L=0;
5735 GNULIB_LOG1P=0;
5736 GNULIB_LOG1PF=0;
5737 GNULIB_LOG1PL=0;
5738 GNULIB_LOG2=0;
5739 GNULIB_LOG2F=0;
5740 GNULIB_LOG2L=0;
5741 GNULIB_LOGB=0;
5742 GNULIB_LOGBF=0;
5743 GNULIB_LOGBL=0;
5744 GNULIB_MODF=0;
5745 GNULIB_MODFF=0;
5746 GNULIB_MODFL=0;
5747 GNULIB_POWF=0;
5748 GNULIB_REMAINDER=0;
5749 GNULIB_REMAINDERF=0;
5750 GNULIB_REMAINDERL=0;
5751 GNULIB_RINT=0;
5752 GNULIB_RINTF=0;
5753 GNULIB_RINTL=0;
5754 GNULIB_ROUND=0;
5755 GNULIB_ROUNDF=0;
5756 GNULIB_ROUNDL=0;
5757 GNULIB_SIGNBIT=0;
5758 GNULIB_SINF=0;
5759 GNULIB_SINL=0;
5760 GNULIB_SINHF=0;
5761 GNULIB_SQRTF=0;
5762 GNULIB_SQRTL=0;
5763 GNULIB_TANF=0;
5764 GNULIB_TANL=0;
5765 GNULIB_TANHF=0;
5766 GNULIB_TRUNC=0;
5767 GNULIB_TRUNCF=0;
5768 GNULIB_TRUNCL=0;
5769 HAVE_ACOSF=1;
5770 HAVE_ACOSL=1;
5771 HAVE_ASINF=1;
5772 HAVE_ASINL=1;
5773 HAVE_ATANF=1;
5774 HAVE_ATANL=1;
5775 HAVE_ATAN2F=1;
5776 HAVE_CBRT=1;
5777 HAVE_CBRTF=1;
5778 HAVE_CBRTL=1;
5779 HAVE_COPYSIGN=1;
5780 HAVE_COPYSIGNL=1;
5781 HAVE_COSF=1;
5782 HAVE_COSL=1;
5783 HAVE_COSHF=1;
5784 HAVE_EXPF=1;
5785 HAVE_EXPL=1;
5786 HAVE_EXPM1=1;
5787 HAVE_EXPM1F=1;
5788 HAVE_FABSF=1;
5789 HAVE_FABSL=1;
5790 HAVE_FMA=1;
5791 HAVE_FMAF=1;
5792 HAVE_FMAL=1;
5793 HAVE_FMODF=1;
5794 HAVE_FMODL=1;
5795 HAVE_FREXPF=1;
5796 HAVE_HYPOTF=1;
5797 HAVE_HYPOTL=1;
5798 HAVE_ILOGB=1;
5799 HAVE_ILOGBF=1;
5800 HAVE_ILOGBL=1;
5801 HAVE_ISNANF=1;
5802 HAVE_ISNAND=1;
5803 HAVE_ISNANL=1;
5804 HAVE_LDEXPF=1;
5805 HAVE_LOGF=1;
5806 HAVE_LOGL=1;
5807 HAVE_LOG10F=1;
5808 HAVE_LOG10L=1;
5809 HAVE_LOG1P=1;
5810 HAVE_LOG1PF=1;
5811 HAVE_LOG1PL=1;
5812 HAVE_LOGBF=1;
5813 HAVE_LOGBL=1;
5814 HAVE_MODFF=1;
5815 HAVE_MODFL=1;
5816 HAVE_POWF=1;
5817 HAVE_REMAINDER=1;
5818 HAVE_REMAINDERF=1;
5819 HAVE_RINT=1;
5820 HAVE_RINTL=1;
5821 HAVE_SINF=1;
5822 HAVE_SINL=1;
5823 HAVE_SINHF=1;
5824 HAVE_SQRTF=1;
5825 HAVE_SQRTL=1;
5826 HAVE_TANF=1;
5827 HAVE_TANL=1;
5828 HAVE_TANHF=1;
5829 HAVE_DECL_ACOSL=1;
5830 HAVE_DECL_ASINL=1;
5831 HAVE_DECL_ATANL=1;
5832 HAVE_DECL_CBRTF=1;
5833 HAVE_DECL_CBRTL=1;
5834 HAVE_DECL_CEILF=1;
5835 HAVE_DECL_CEILL=1;
5836 HAVE_DECL_COPYSIGNF=1;
5837 HAVE_DECL_COSL=1;
5838 HAVE_DECL_EXPL=1;
5839 HAVE_DECL_EXP2=1;
5840 HAVE_DECL_EXP2F=1;
5841 HAVE_DECL_EXP2L=1;
5842 HAVE_DECL_EXPM1L=1;
5843 HAVE_DECL_FLOORF=1;
5844 HAVE_DECL_FLOORL=1;
5845 HAVE_DECL_FREXPL=1;
5846 HAVE_DECL_LDEXPL=1;
5847 HAVE_DECL_LOGL=1;
5848 HAVE_DECL_LOG10L=1;
5849 HAVE_DECL_LOG2=1;
5850 HAVE_DECL_LOG2F=1;
5851 HAVE_DECL_LOG2L=1;
5852 HAVE_DECL_LOGB=1;
5853 HAVE_DECL_REMAINDER=1;
5854 HAVE_DECL_REMAINDERL=1;
5855 HAVE_DECL_RINTF=1;
5856 HAVE_DECL_ROUND=1;
5857 HAVE_DECL_ROUNDF=1;
5858 HAVE_DECL_ROUNDL=1;
5859 HAVE_DECL_SINL=1;
5860 HAVE_DECL_SQRTL=1;
5861 HAVE_DECL_TANL=1;
5862 HAVE_DECL_TRUNC=1;
5863 HAVE_DECL_TRUNCF=1;
5864 HAVE_DECL_TRUNCL=1;
5865 REPLACE_CBRTF=0;
5866 REPLACE_CBRTL=0;
5867 REPLACE_CEIL=0;
5868 REPLACE_CEILF=0;
5869 REPLACE_CEILL=0;
5870 REPLACE_EXPM1=0;
5871 REPLACE_EXPM1F=0;
5872 REPLACE_EXP2=0;
5873 REPLACE_EXP2L=0;
5874 REPLACE_FABSL=0;
5875 REPLACE_FLOOR=0;
5876 REPLACE_FLOORF=0;
5877 REPLACE_FLOORL=0;
5878 REPLACE_FMA=0;
5879 REPLACE_FMAF=0;
5880 REPLACE_FMAL=0;
5881 REPLACE_FMOD=0;
5882 REPLACE_FMODF=0;
5883 REPLACE_FMODL=0;
5884 REPLACE_FREXPF=0;
5885 REPLACE_FREXP=0;
5886 REPLACE_FREXPL=0;
5887 REPLACE_HUGE_VAL=0;
5888 REPLACE_HYPOT=0;
5889 REPLACE_HYPOTF=0;
5890 REPLACE_HYPOTL=0;
5891 REPLACE_ILOGB=0;
5892 REPLACE_ILOGBF=0;
5893 REPLACE_ISFINITE=0;
5894 REPLACE_ISINF=0;
5895 REPLACE_ISNAN=0;
5896 REPLACE_LDEXPL=0;
5897 REPLACE_LOG=0;
5898 REPLACE_LOGF=0;
5899 REPLACE_LOGL=0;
5900 REPLACE_LOG10=0;
5901 REPLACE_LOG10F=0;
5902 REPLACE_LOG10L=0;
5903 REPLACE_LOG1P=0;
5904 REPLACE_LOG1PF=0;
5905 REPLACE_LOG1PL=0;
5906 REPLACE_LOG2=0;
5907 REPLACE_LOG2F=0;
5908 REPLACE_LOG2L=0;
5909 REPLACE_LOGB=0;
5910 REPLACE_LOGBF=0;
5911 REPLACE_LOGBL=0;
5912 REPLACE_MODF=0;
5913 REPLACE_MODFF=0;
5914 REPLACE_MODFL=0;
5915 REPLACE_NAN=0;
5916 REPLACE_REMAINDER=0;
5917 REPLACE_REMAINDERF=0;
5918 REPLACE_REMAINDERL=0;
5919 REPLACE_ROUND=0;
5920 REPLACE_ROUNDF=0;
5921 REPLACE_ROUNDL=0;
5922 REPLACE_SIGNBIT=0;
5923 REPLACE_SIGNBIT_USING_GCC=0;
5924 REPLACE_SQRTL=0;
5925 REPLACE_TRUNC=0;
5926 REPLACE_TRUNCF=0;
5927 REPLACE_TRUNCL=0;
5928
5929
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used without linking with libm" >&5
5931$as_echo_n "checking whether frexp() can be used without linking with libm... " >&6; }
5932if test "${gl_cv_func_frexp_no_libm+set}" = set; then :
5933 $as_echo_n "(cached) " >&6
5934else
5935
5936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5937/* end confdefs.h. */
5938#include <math.h>
5939 double x;
5940int
5941main ()
5942{
5943int e; return frexp (x, &e) > 0;
5944 ;
5945 return 0;
5946}
5947_ACEOF
5948if ac_fn_c_try_link "$LINENO"; then :
5949 gl_cv_func_frexp_no_libm=yes
5950else
5951 gl_cv_func_frexp_no_libm=no
5952fi
5953rm -f core conftest.err conftest.$ac_objext \
5954 conftest$ac_exeext conftest.$ac_ext
5955
5956fi
5957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
5958$as_echo "$gl_cv_func_frexp_no_libm" >&6; }
5959
5960
5961
5962
5963
5964
5965
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double and double are the same" >&5
5967$as_echo_n "checking whether long double and double are the same... " >&6; }
5968if test "${gl_cv_long_double_equals_double+set}" = set; then :
5969 $as_echo_n "(cached) " >&6
5970else
5971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5972/* end confdefs.h. */
5973#include <float.h>
5974int
5975main ()
5976{
5977typedef int check[sizeof (long double) == sizeof (double)
5978 && LDBL_MANT_DIG == DBL_MANT_DIG
5979 && LDBL_MAX_EXP == DBL_MAX_EXP
5980 && LDBL_MIN_EXP == DBL_MIN_EXP
5981 ? 1 : -1];
5982
5983 ;
5984 return 0;
5985}
5986_ACEOF
5987if ac_fn_c_try_compile "$LINENO"; then :
5988 gl_cv_long_double_equals_double=yes
5989else
5990 gl_cv_long_double_equals_double=no
5991fi
5992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5993
5994fi
5995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_double_equals_double" >&5
5996$as_echo "$gl_cv_long_double_equals_double" >&6; }
5997 if test $gl_cv_long_double_equals_double = yes; then
5998
5999$as_echo "#define HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1" >>confdefs.h
6000
6001 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=1
6002 else
6003 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=0
6004 fi
6005
6006
6007
8690e634
JK
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6009$as_echo_n "checking for unsigned long long int... " >&6; }
6010if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6011 $as_echo_n "(cached) " >&6
6012else
6013 ac_cv_type_unsigned_long_long_int=yes
6014 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6016/* end confdefs.h. */
6017
6018 /* For now, do not test the preprocessor; as of 2007 there are too many
6019 implementations with broken preprocessors. Perhaps this can
6020 be revisited in 2012. In the meantime, code should not expect
6021 #if to work with literals wider than 32 bits. */
6022 /* Test literals. */
6023 long long int ll = 9223372036854775807ll;
6024 long long int nll = -9223372036854775807LL;
6025 unsigned long long int ull = 18446744073709551615ULL;
6026 /* Test constant expressions. */
6027 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6028 ? 1 : -1)];
6029 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6030 ? 1 : -1)];
6031 int i = 63;
6032int
6033main ()
6034{
6035/* Test availability of runtime routines for shift and division. */
6036 long long int llmax = 9223372036854775807ll;
6037 unsigned long long int ullmax = 18446744073709551615ull;
6038 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6039 | (llmax / ll) | (llmax % ll)
6040 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6041 | (ullmax / ull) | (ullmax % ull));
6042 ;
6043 return 0;
6044}
6045
6046_ACEOF
6047if ac_fn_c_try_link "$LINENO"; then :
6048
6049else
6050 ac_cv_type_unsigned_long_long_int=no
6051fi
6052rm -f core conftest.err conftest.$ac_objext \
6053 conftest$ac_exeext conftest.$ac_ext
6054 fi
6055fi
6056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6057$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6058 if test $ac_cv_type_unsigned_long_long_int = yes; then
6059
6060$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6061
6062 fi
6063
6064
6065
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6067$as_echo_n "checking for long long int... " >&6; }
6068if test "${ac_cv_type_long_long_int+set}" = set; then :
6069 $as_echo_n "(cached) " >&6
6070else
6071 ac_cv_type_long_long_int=yes
6072 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6073 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6074 if test $ac_cv_type_long_long_int = yes; then
6075 if test "$cross_compiling" = yes; then :
6076 :
6077else
6078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6079/* end confdefs.h. */
6080#include <limits.h>
6081 #ifndef LLONG_MAX
6082 # define HALF \
6083 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6084 # define LLONG_MAX (HALF - 1 + HALF)
6085 #endif
6086int
6087main ()
6088{
6089long long int n = 1;
6090 int i;
6091 for (i = 0; ; i++)
6092 {
6093 long long int m = n << i;
6094 if (m >> i != n)
6095 return 1;
6096 if (LLONG_MAX / 2 < m)
6097 break;
6098 }
6099 return 0;
6100 ;
6101 return 0;
6102}
6103_ACEOF
6104if ac_fn_c_try_run "$LINENO"; then :
6105
6106else
6107 ac_cv_type_long_long_int=no
6108fi
6109rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6110 conftest.$ac_objext conftest.beam conftest.$ac_ext
6111fi
6112
6113 fi
6114 fi
6115fi
6116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6117$as_echo "$ac_cv_type_long_long_int" >&6; }
6118 if test $ac_cv_type_long_long_int = yes; then
6119
6120$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6121
6122 fi
6123
6124
6125
6126
6127
6128
6129
6130
88b48903
WN
6131
6132
6133
6134
6135 gl_cv_c_multiarch=no
6136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a143c6de 6137/* end confdefs.h. */
88b48903
WN
6138#ifndef __APPLE_CC__
6139 not a universal capable compiler
6140 #endif
6141 typedef int dummy;
6142
8690e634
JK
6143_ACEOF
6144if ac_fn_c_try_compile "$LINENO"; then :
6145
6146 arch=
6147 prev=
6148 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
6149 if test -n "$prev"; then
6150 case $word in
6151 i?86 | x86_64 | ppc | ppc64)
6152 if test -z "$arch" || test "$arch" = "$word"; then
6153 arch="$word"
6154 else
6155 gl_cv_c_multiarch=yes
6156 fi
6157 ;;
6158 esac
6159 prev=
6160 else
6161 if test "x$word" = "x-arch"; then
6162 prev=arch
6163 fi
6164 fi
6165 done
6166
6167fi
6168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6169 if test $gl_cv_c_multiarch = yes; then
6170 APPLE_UNIVERSAL_BUILD=1
6171 else
6172 APPLE_UNIVERSAL_BUILD=0
6173 fi
6174
6175
6176
6177
6178
6179 if test $ac_cv_type_long_long_int = yes; then
6180 HAVE_LONG_LONG_INT=1
6181 else
6182 HAVE_LONG_LONG_INT=0
6183 fi
6184
6185
6186 if test $ac_cv_type_unsigned_long_long_int = yes; then
6187 HAVE_UNSIGNED_LONG_LONG_INT=1
6188 else
6189 HAVE_UNSIGNED_LONG_LONG_INT=0
6190 fi
6191
6192
6193
6194 :
6195
6196
6197
6198
6199
6200 if test $ac_cv_header_wchar_h = yes; then
6201 HAVE_WCHAR_H=1
6202 else
6203 HAVE_WCHAR_H=0
6204 fi
6205
6206
6207 if test $ac_cv_header_inttypes_h = yes; then
6208 HAVE_INTTYPES_H=1
6209 else
6210 HAVE_INTTYPES_H=0
6211 fi
6212
6213
6214 if test $ac_cv_header_sys_types_h = yes; then
6215 HAVE_SYS_TYPES_H=1
6216 else
6217 HAVE_SYS_TYPES_H=0
6218 fi
6219
6220
6221
6222
6223
6224
6225
6226
6227 :
6228
6229
6230
6231
6232
6233
6234
6235
6236 if test $gl_cv_have_include_next = yes; then
6237 gl_cv_next_stdint_h='<'stdint.h'>'
6238 else
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
6240$as_echo_n "checking absolute name of <stdint.h>... " >&6; }
6241if test "${gl_cv_next_stdint_h+set}" = set; then :
6242 $as_echo_n "(cached) " >&6
6243else
6244
6245 if test $ac_cv_header_stdint_h = yes; then
6246
6247
6248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6249/* end confdefs.h. */
6250#include <stdint.h>
6251
6252_ACEOF
6253 case "$host_os" in
6254 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6255 *) gl_absname_cpp="$ac_cpp" ;;
6256 esac
6257
6258 case "$host_os" in
6259 mingw*)
6260 gl_dirsep_regex='[/\\]'
6261 ;;
6262 *)
6263 gl_dirsep_regex='\/'
6264 ;;
6265 esac
6266 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
6267
6268 gl_header_literal_regex=`echo 'stdint.h' \
6269 | sed -e "$gl_make_literal_regex_sed"`
6270 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
6271 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
6272 s|^/[^/]|//&|
6273 p
6274 q
6275 }'
6276 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6277 sed -n "$gl_absolute_header_sed"`'"'
6278 else
6279 gl_cv_next_stdint_h='<'stdint.h'>'
6280 fi
6281
6282
6283fi
6284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
6285$as_echo "$gl_cv_next_stdint_h" >&6; }
6286 fi
6287 NEXT_STDINT_H=$gl_cv_next_stdint_h
6288
6289 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6290 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6291 gl_next_as_first_directive='<'stdint.h'>'
6292 else
6293 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6294 gl_next_as_first_directive=$gl_cv_next_stdint_h
6295 fi
6296 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
6297
6298
6299
6300
6301 if test $ac_cv_header_stdint_h = yes; then
6302 HAVE_STDINT_H=1
6303 else
6304 HAVE_STDINT_H=0
6305 fi
6306
6307
6308 if test $ac_cv_header_stdint_h = yes; then
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
6310$as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
6311if test "${gl_cv_header_working_stdint_h+set}" = set; then :
6312 $as_echo_n "(cached) " >&6
6313else
6314 gl_cv_header_working_stdint_h=no
6315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6316/* end confdefs.h. */
6317
6318
6319#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6320#include <stdint.h>
6321/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
6322#if !(defined WCHAR_MIN && defined WCHAR_MAX)
6323#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
6324#endif
6325
6326
6327 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6328 included before <wchar.h>. */
6329 #include <stddef.h>
6330 #include <signal.h>
6331 #if HAVE_WCHAR_H
6332 # include <stdio.h>
6333 # include <time.h>
6334 # include <wchar.h>
6335 #endif
6336
6337
6338#ifdef INT8_MAX
6339int8_t a1 = INT8_MAX;
6340int8_t a1min = INT8_MIN;
6341#endif
6342#ifdef INT16_MAX
6343int16_t a2 = INT16_MAX;
6344int16_t a2min = INT16_MIN;
6345#endif
6346#ifdef INT32_MAX
6347int32_t a3 = INT32_MAX;
6348int32_t a3min = INT32_MIN;
6349#endif
6350#ifdef INT64_MAX
6351int64_t a4 = INT64_MAX;
6352int64_t a4min = INT64_MIN;
6353#endif
6354#ifdef UINT8_MAX
6355uint8_t b1 = UINT8_MAX;
6356#else
6357typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
6358#endif
6359#ifdef UINT16_MAX
6360uint16_t b2 = UINT16_MAX;
6361#endif
6362#ifdef UINT32_MAX
6363uint32_t b3 = UINT32_MAX;
6364#endif
6365#ifdef UINT64_MAX
6366uint64_t b4 = UINT64_MAX;
6367#endif
6368int_least8_t c1 = INT8_C (0x7f);
6369int_least8_t c1max = INT_LEAST8_MAX;
6370int_least8_t c1min = INT_LEAST8_MIN;
6371int_least16_t c2 = INT16_C (0x7fff);
6372int_least16_t c2max = INT_LEAST16_MAX;
6373int_least16_t c2min = INT_LEAST16_MIN;
6374int_least32_t c3 = INT32_C (0x7fffffff);
6375int_least32_t c3max = INT_LEAST32_MAX;
6376int_least32_t c3min = INT_LEAST32_MIN;
6377int_least64_t c4 = INT64_C (0x7fffffffffffffff);
6378int_least64_t c4max = INT_LEAST64_MAX;
6379int_least64_t c4min = INT_LEAST64_MIN;
6380uint_least8_t d1 = UINT8_C (0xff);
6381uint_least8_t d1max = UINT_LEAST8_MAX;
6382uint_least16_t d2 = UINT16_C (0xffff);
6383uint_least16_t d2max = UINT_LEAST16_MAX;
6384uint_least32_t d3 = UINT32_C (0xffffffff);
6385uint_least32_t d3max = UINT_LEAST32_MAX;
6386uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
6387uint_least64_t d4max = UINT_LEAST64_MAX;
6388int_fast8_t e1 = INT_FAST8_MAX;
6389int_fast8_t e1min = INT_FAST8_MIN;
6390int_fast16_t e2 = INT_FAST16_MAX;
6391int_fast16_t e2min = INT_FAST16_MIN;
6392int_fast32_t e3 = INT_FAST32_MAX;
6393int_fast32_t e3min = INT_FAST32_MIN;
6394int_fast64_t e4 = INT_FAST64_MAX;
6395int_fast64_t e4min = INT_FAST64_MIN;
6396uint_fast8_t f1 = UINT_FAST8_MAX;
6397uint_fast16_t f2 = UINT_FAST16_MAX;
6398uint_fast32_t f3 = UINT_FAST32_MAX;
6399uint_fast64_t f4 = UINT_FAST64_MAX;
6400#ifdef INTPTR_MAX
6401intptr_t g = INTPTR_MAX;
6402intptr_t gmin = INTPTR_MIN;
6403#endif
6404#ifdef UINTPTR_MAX
6405uintptr_t h = UINTPTR_MAX;
6406#endif
6407intmax_t i = INTMAX_MAX;
6408uintmax_t j = UINTMAX_MAX;
6409
6410#include <limits.h> /* for CHAR_BIT */
6411#define TYPE_MINIMUM(t) \
6412 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
6413#define TYPE_MAXIMUM(t) \
6414 ((t) ((t) 0 < (t) -1 \
6415 ? (t) -1 \
6416 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
6417struct s {
6418 int check_PTRDIFF:
6419 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
6420 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
6421 ? 1 : -1;
6422 /* Detect bug in FreeBSD 6.0 / ia64. */
6423 int check_SIG_ATOMIC:
6424 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
6425 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
6426 ? 1 : -1;
6427 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
6428 int check_WCHAR:
6429 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
6430 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
6431 ? 1 : -1;
6432 /* Detect bug in mingw. */
6433 int check_WINT:
6434 WINT_MIN == TYPE_MINIMUM (wint_t)
6435 && WINT_MAX == TYPE_MAXIMUM (wint_t)
6436 ? 1 : -1;
6437
6438 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
6439 int check_UINT8_C:
6440 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
6441 int check_UINT16_C:
6442 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
6443
6444 /* Detect bugs in OpenBSD 3.9 stdint.h. */
6445#ifdef UINT8_MAX
6446 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
6447#endif
6448#ifdef UINT16_MAX
6449 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
6450#endif
6451#ifdef UINT32_MAX
6452 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
6453#endif
6454#ifdef UINT64_MAX
6455 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
6456#endif
6457 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
6458 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
6459 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
6460 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
6461 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
6462 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
6463 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
6464 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
6465 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
6466 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
6467 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
6468};
6469
6470int
6471main ()
6472{
6473
6474 ;
6475 return 0;
6476}
6477_ACEOF
6478if ac_fn_c_try_compile "$LINENO"; then :
6479 if test "$cross_compiling" = yes; then :
6480 gl_cv_header_working_stdint_h=yes
6481
6482else
6483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6484/* end confdefs.h. */
6485
6486
6487#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6488#include <stdint.h>
6489
6490
6491 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6492 included before <wchar.h>. */
6493 #include <stddef.h>
6494 #include <signal.h>
6495 #if HAVE_WCHAR_H
6496 # include <stdio.h>
6497 # include <time.h>
6498 # include <wchar.h>
6499 #endif
6500
6501
6502#include <stdio.h>
6503#include <string.h>
6504#define MVAL(macro) MVAL1(macro)
6505#define MVAL1(expression) #expression
6506static const char *macro_values[] =
6507 {
6508#ifdef INT8_MAX
6509 MVAL (INT8_MAX),
6510#endif
6511#ifdef INT16_MAX
6512 MVAL (INT16_MAX),
6513#endif
6514#ifdef INT32_MAX
6515 MVAL (INT32_MAX),
6516#endif
6517#ifdef INT64_MAX
6518 MVAL (INT64_MAX),
6519#endif
6520#ifdef UINT8_MAX
6521 MVAL (UINT8_MAX),
6522#endif
6523#ifdef UINT16_MAX
6524 MVAL (UINT16_MAX),
6525#endif
6526#ifdef UINT32_MAX
6527 MVAL (UINT32_MAX),
6528#endif
6529#ifdef UINT64_MAX
6530 MVAL (UINT64_MAX),
6531#endif
6532 NULL
6533 };
6534
6535int
6536main ()
6537{
6538
6539 const char **mv;
6540 for (mv = macro_values; *mv != NULL; mv++)
6541 {
6542 const char *value = *mv;
6543 /* Test whether it looks like a cast expression. */
6544 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
6545 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
6546 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
6547 || strncmp (value, "((int)"/*)*/, 6) == 0
6548 || strncmp (value, "((signed short)"/*)*/, 15) == 0
6549 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
6550 return mv - macro_values + 1;
6551 }
6552 return 0;
6553
6554 ;
6555 return 0;
6556}
6557_ACEOF
6558if ac_fn_c_try_run "$LINENO"; then :
6559 gl_cv_header_working_stdint_h=yes
6560fi
6561rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6562 conftest.$ac_objext conftest.beam conftest.$ac_ext
6563fi
6564
6565
6566fi
6567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6568
6569fi
6570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
6571$as_echo "$gl_cv_header_working_stdint_h" >&6; }
6572 fi
6573 if test "$gl_cv_header_working_stdint_h" = yes; then
6574 STDINT_H=
6575 else
6576 for ac_header in sys/inttypes.h sys/bitypes.h
6577do :
6578 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6579ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6580eval as_val=\$$as_ac_Header
6581 if test "x$as_val" = x""yes; then :
6582 cat >>confdefs.h <<_ACEOF
6583#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6584_ACEOF
6585
6586fi
6587
6588done
6589
6590 if test $ac_cv_header_sys_inttypes_h = yes; then
6591 HAVE_SYS_INTTYPES_H=1
6592 else
6593 HAVE_SYS_INTTYPES_H=0
6594 fi
6595
6596 if test $ac_cv_header_sys_bitypes_h = yes; then
6597 HAVE_SYS_BITYPES_H=1
6598 else
6599 HAVE_SYS_BITYPES_H=0
6600 fi
6601
6602
6603
6604
6605 if test $APPLE_UNIVERSAL_BUILD = 0; then
6606
6607
6608 for gltype in ptrdiff_t size_t ; do
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6610$as_echo_n "checking for bit size of $gltype... " >&6; }
6611if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6612 $as_echo_n "(cached) " >&6
6613else
6614 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
6615 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6616 included before <wchar.h>. */
6617 #include <stddef.h>
6618 #include <signal.h>
6619 #if HAVE_WCHAR_H
6620 # include <stdio.h>
6621 # include <time.h>
6622 # include <wchar.h>
6623 #endif
6624
6625#include <limits.h>"; then :
6626
6627else
6628 result=unknown
6629fi
6630
6631 eval gl_cv_bitsizeof_${gltype}=\$result
6632
6633fi
6634eval ac_res=\$gl_cv_bitsizeof_${gltype}
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6636$as_echo "$ac_res" >&6; }
6637 eval result=\$gl_cv_bitsizeof_${gltype}
6638 if test $result = unknown; then
6639 result=0
6640 fi
6641 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6642 cat >>confdefs.h <<_ACEOF
6643#define BITSIZEOF_${GLTYPE} $result
6644_ACEOF
6645
6646 eval BITSIZEOF_${GLTYPE}=\$result
6647 done
6648
6649
6650 fi
6651
6652
6653 for gltype in sig_atomic_t wchar_t wint_t ; do
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6655$as_echo_n "checking for bit size of $gltype... " >&6; }
6656if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6657 $as_echo_n "(cached) " >&6
6658else
6659 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
6660 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6661 included before <wchar.h>. */
6662 #include <stddef.h>
6663 #include <signal.h>
6664 #if HAVE_WCHAR_H
6665 # include <stdio.h>
6666 # include <time.h>
6667 # include <wchar.h>
6668 #endif
6669
6670#include <limits.h>"; then :
6671
6672else
6673 result=unknown
6674fi
6675
6676 eval gl_cv_bitsizeof_${gltype}=\$result
6677
6678fi
6679eval ac_res=\$gl_cv_bitsizeof_${gltype}
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6681$as_echo "$ac_res" >&6; }
6682 eval result=\$gl_cv_bitsizeof_${gltype}
6683 if test $result = unknown; then
6684 result=0
6685 fi
6686 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6687 cat >>confdefs.h <<_ACEOF
6688#define BITSIZEOF_${GLTYPE} $result
6689_ACEOF
6690
6691 eval BITSIZEOF_${GLTYPE}=\$result
6692 done
6693
6694
6695
6696
6697 for gltype in sig_atomic_t wchar_t wint_t ; do
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
6699$as_echo_n "checking whether $gltype is signed... " >&6; }
6700if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
6701 $as_echo_n "(cached) " >&6
6702else
6703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6704/* end confdefs.h. */
6705
6706 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6707 included before <wchar.h>. */
6708 #include <stddef.h>
6709 #include <signal.h>
6710 #if HAVE_WCHAR_H
6711 # include <stdio.h>
6712 # include <time.h>
6713 # include <wchar.h>
6714 #endif
6715
6716 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
6717int
6718main ()
6719{
6720
6721 ;
6722 return 0;
6723}
6724_ACEOF
6725if ac_fn_c_try_compile "$LINENO"; then :
6726 result=yes
6727else
6728 result=no
6729fi
6730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6731 eval gl_cv_type_${gltype}_signed=\$result
6732
6733fi
6734eval ac_res=\$gl_cv_type_${gltype}_signed
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6736$as_echo "$ac_res" >&6; }
6737 eval result=\$gl_cv_type_${gltype}_signed
6738 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6739 if test "$result" = yes; then
6740 cat >>confdefs.h <<_ACEOF
6741#define HAVE_SIGNED_${GLTYPE} 1
6742_ACEOF
6743
6744 eval HAVE_SIGNED_${GLTYPE}=1
6745 else
6746 eval HAVE_SIGNED_${GLTYPE}=0
6747 fi
6748 done
6749
6750
6751 gl_cv_type_ptrdiff_t_signed=yes
6752 gl_cv_type_size_t_signed=no
6753 if test $APPLE_UNIVERSAL_BUILD = 0; then
6754
6755
6756 for gltype in ptrdiff_t size_t ; do
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6758$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6759if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6760 $as_echo_n "(cached) " >&6
6761else
6762 eval gl_cv_type_${gltype}_suffix=no
6763 eval result=\$gl_cv_type_${gltype}_signed
6764 if test "$result" = yes; then
6765 glsufu=
6766 else
6767 glsufu=u
6768 fi
6769 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6770 case $glsuf in
6771 '') gltype1='int';;
6772 l) gltype1='long int';;
6773 ll) gltype1='long long int';;
6774 i64) gltype1='__int64';;
6775 u) gltype1='unsigned int';;
6776 ul) gltype1='unsigned long int';;
6777 ull) gltype1='unsigned long long int';;
6778 ui64)gltype1='unsigned __int64';;
6779 esac
6780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6781/* end confdefs.h. */
6782
6783 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6784 included before <wchar.h>. */
6785 #include <stddef.h>
6786 #include <signal.h>
6787 #if HAVE_WCHAR_H
6788 # include <stdio.h>
6789 # include <time.h>
6790 # include <wchar.h>
6791 #endif
6792
6793 extern $gltype foo;
6794 extern $gltype1 foo;
6795int
6796main ()
6797{
6798
6799 ;
6800 return 0;
6801}
6802_ACEOF
6803if ac_fn_c_try_compile "$LINENO"; then :
6804 eval gl_cv_type_${gltype}_suffix=\$glsuf
6805fi
6806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6807 eval result=\$gl_cv_type_${gltype}_suffix
6808 test "$result" != no && break
6809 done
6810fi
6811eval ac_res=\$gl_cv_type_${gltype}_suffix
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6813$as_echo "$ac_res" >&6; }
6814 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6815 eval result=\$gl_cv_type_${gltype}_suffix
6816 test "$result" = no && result=
6817 eval ${GLTYPE}_SUFFIX=\$result
6818 cat >>confdefs.h <<_ACEOF
6819#define ${GLTYPE}_SUFFIX $result
6820_ACEOF
6821
6822 done
6823
6824
6825 fi
6826
6827
6828 for gltype in sig_atomic_t wchar_t wint_t ; do
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6830$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6831if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6832 $as_echo_n "(cached) " >&6
6833else
6834 eval gl_cv_type_${gltype}_suffix=no
6835 eval result=\$gl_cv_type_${gltype}_signed
6836 if test "$result" = yes; then
6837 glsufu=
6838 else
6839 glsufu=u
6840 fi
6841 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6842 case $glsuf in
6843 '') gltype1='int';;
6844 l) gltype1='long int';;
6845 ll) gltype1='long long int';;
6846 i64) gltype1='__int64';;
6847 u) gltype1='unsigned int';;
6848 ul) gltype1='unsigned long int';;
6849 ull) gltype1='unsigned long long int';;
6850 ui64)gltype1='unsigned __int64';;
6851 esac
6852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6853/* end confdefs.h. */
6854
6855 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6856 included before <wchar.h>. */
6857 #include <stddef.h>
6858 #include <signal.h>
6859 #if HAVE_WCHAR_H
6860 # include <stdio.h>
6861 # include <time.h>
6862 # include <wchar.h>
6863 #endif
6864
6865 extern $gltype foo;
6866 extern $gltype1 foo;
6867int
6868main ()
6869{
6870
6871 ;
6872 return 0;
6873}
6874_ACEOF
6875if ac_fn_c_try_compile "$LINENO"; then :
6876 eval gl_cv_type_${gltype}_suffix=\$glsuf
6877fi
6878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6879 eval result=\$gl_cv_type_${gltype}_suffix
6880 test "$result" != no && break
6881 done
6882fi
6883eval ac_res=\$gl_cv_type_${gltype}_suffix
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6885$as_echo "$ac_res" >&6; }
6886 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6887 eval result=\$gl_cv_type_${gltype}_suffix
6888 test "$result" = no && result=
6889 eval ${GLTYPE}_SUFFIX=\$result
6890 cat >>confdefs.h <<_ACEOF
6891#define ${GLTYPE}_SUFFIX $result
6892_ACEOF
6893
6894 done
6895
6896
6897
6898 if test $BITSIZEOF_WINT_T -lt 32; then
6899 BITSIZEOF_WINT_T=32
6900 fi
6901
6902 STDINT_H=stdint.h
6903 fi
6904
6905 if test -n "$STDINT_H"; then
6906 GL_GENERATE_STDINT_H_TRUE=
6907 GL_GENERATE_STDINT_H_FALSE='#'
6908else
6909 GL_GENERATE_STDINT_H_TRUE='#'
6910 GL_GENERATE_STDINT_H_FALSE=
6911fi
6912
6913
6914
6915
6916
6917
6918
6919
6920 GNULIB_IMAXABS=0;
6921 GNULIB_IMAXDIV=0;
6922 GNULIB_STRTOIMAX=0;
6923 GNULIB_STRTOUMAX=0;
6924 HAVE_DECL_IMAXABS=1;
6925 HAVE_DECL_IMAXDIV=1;
6926 HAVE_DECL_STRTOIMAX=1;
6927 HAVE_DECL_STRTOUMAX=1;
6928 REPLACE_STRTOIMAX=0;
6929 INT32_MAX_LT_INTMAX_MAX=1;
6930 INT64_MAX_EQ_LONG_MAX='defined _LP64';
6931 PRI_MACROS_BROKEN=0;
6932 PRIPTR_PREFIX=__PRIPTR_PREFIX;
6933 UINT32_MAX_LT_UINTMAX_MAX=1;
6934 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
6935
6936
6937
6938
6939 :
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953 :
6954
6955
6956
6957
6958
6959
6960
6961
6962 if test $gl_cv_have_include_next = yes; then
6963 gl_cv_next_inttypes_h='<'inttypes.h'>'
6964 else
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
6966$as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
6967if test "${gl_cv_next_inttypes_h+set}" = set; then :
6968 $as_echo_n "(cached) " >&6
6969else
6970
6971 if test $ac_cv_header_inttypes_h = yes; then
6972
6973
6974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6975/* end confdefs.h. */
6976#include <inttypes.h>
6977
6978_ACEOF
6979 case "$host_os" in
6980 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6981 *) gl_absname_cpp="$ac_cpp" ;;
6982 esac
6983
6984 case "$host_os" in
6985 mingw*)
6986 gl_dirsep_regex='[/\\]'
6987 ;;
6988 *)
6989 gl_dirsep_regex='\/'
6990 ;;
6991 esac
6992 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
6993
6994 gl_header_literal_regex=`echo 'inttypes.h' \
6995 | sed -e "$gl_make_literal_regex_sed"`
6996 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
6997 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
6998 s|^/[^/]|//&|
6999 p
7000 q
7001 }'
7002 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7003 sed -n "$gl_absolute_header_sed"`'"'
7004 else
7005 gl_cv_next_inttypes_h='<'inttypes.h'>'
7006 fi
7007
7008
7009fi
7010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
7011$as_echo "$gl_cv_next_inttypes_h" >&6; }
7012 fi
7013 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
7014
7015 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7016 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7017 gl_next_as_first_directive='<'inttypes.h'>'
7018 else
7019 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7020 gl_next_as_first_directive=$gl_cv_next_inttypes_h
7021 fi
7022 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
7023
7024
7025
7026
7027
7028
7029
7030
7031 for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
7032 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
7034$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
7035if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
7036 $as_echo_n "(cached) " >&6
7037else
7038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7039/* end confdefs.h. */
7040#include <inttypes.h>
7041
7042int
7043main ()
7044{
7045#undef $gl_func
7046 (void) $gl_func;
7047 ;
7048 return 0;
7049}
7050_ACEOF
7051if ac_fn_c_try_compile "$LINENO"; then :
7052 eval "$as_gl_Symbol=yes"
7053else
7054 eval "$as_gl_Symbol=no"
7055fi
7056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7057fi
7058eval ac_res=\$$as_gl_Symbol
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7060$as_echo "$ac_res" >&6; }
7061 eval as_val=\$$as_gl_Symbol
7062 if test "x$as_val" = x""yes; then :
7063 cat >>confdefs.h <<_ACEOF
7064#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
7065_ACEOF
7066
7067 eval ac_cv_have_decl_$gl_func=yes
7068fi
7069 done
7070
7071
7072
7073 for ac_header in inttypes.h
7074do :
7075 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7076if test "x$ac_cv_header_inttypes_h" = x""yes; then :
7077 cat >>confdefs.h <<_ACEOF
7078#define HAVE_INTTYPES_H 1
7079_ACEOF
7080
7081fi
7082
7083done
7084
7085 if test $ac_cv_header_inttypes_h = yes; then
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7087$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7088if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
7089 $as_echo_n "(cached) " >&6
7090else
7091
7092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7093/* end confdefs.h. */
7094
7095#include <inttypes.h>
7096#ifdef PRId32
7097char *p = PRId32;
7098#endif
7099
7100int
7101main ()
7102{
7103
7104 ;
7105 return 0;
7106}
7107_ACEOF
7108if ac_fn_c_try_compile "$LINENO"; then :
7109 gt_cv_inttypes_pri_broken=no
7110else
7111 gt_cv_inttypes_pri_broken=yes
7112fi
7113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7114
7115fi
7116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7117$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7118 fi
7119 if test "$gt_cv_inttypes_pri_broken" = yes; then
7120
7121cat >>confdefs.h <<_ACEOF
7122#define PRI_MACROS_BROKEN 1
7123_ACEOF
7124
7125 PRI_MACROS_BROKEN=1
7126 else
7127 PRI_MACROS_BROKEN=0
7128 fi
7129
7130
7131
88b48903
WN
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
7133$as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
7134if test "${gl_cv_cc_double_expbit0+set}" = set; then :
8690e634
JK
7135 $as_echo_n "(cached) " >&6
7136else
88b48903
WN
7137
7138 if test "$cross_compiling" = yes; then :
7139
7140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690e634 7141/* end confdefs.h. */
88b48903
WN
7142
7143#if defined arm || defined __arm || defined __arm__
7144 mixed_endianness
7145#endif
7146
7147_ACEOF
7148if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7149 $EGREP "mixed_endianness" >/dev/null 2>&1; then :
7150 gl_cv_cc_double_expbit0="unknown"
7151else
7152
7153 :
7154if test "${ac_cv_c_bigendian+set}" = set; then :
7155 $as_echo_n "(cached) " >&6
7156else
7157 ac_cv_c_bigendian=unknown
7158 # See if we're dealing with a universal compiler.
7159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7160/* end confdefs.h. */
7161#ifndef __APPLE_CC__
7162 not a universal capable compiler
7163 #endif
7164 typedef int dummy;
7165
7166_ACEOF
7167if ac_fn_c_try_compile "$LINENO"; then :
7168
7169 # Check for potential -arch flags. It is not universal unless
7170 # there are at least two -arch flags with different values.
7171 ac_arch=
7172 ac_prev=
7173 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7174 if test -n "$ac_prev"; then
7175 case $ac_word in
7176 i?86 | x86_64 | ppc | ppc64)
7177 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7178 ac_arch=$ac_word
7179 else
7180 ac_cv_c_bigendian=universal
7181 break
7182 fi
7183 ;;
7184 esac
7185 ac_prev=
7186 elif test "x$ac_word" = "x-arch"; then
7187 ac_prev=arch
7188 fi
7189 done
7190fi
7191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7192 if test $ac_cv_c_bigendian = unknown; then
7193 # See if sys/param.h defines the BYTE_ORDER macro.
7194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7195/* end confdefs.h. */
7196#include <sys/types.h>
7197 #include <sys/param.h>
7198
8690e634
JK
7199int
7200main ()
7201{
88b48903
WN
7202#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7203 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7204 && LITTLE_ENDIAN)
7205 bogus endian macros
7206 #endif
7207
8690e634
JK
7208 ;
7209 return 0;
7210}
7211_ACEOF
88b48903
WN
7212if ac_fn_c_try_compile "$LINENO"; then :
7213 # It does; now see whether it defined to BIG_ENDIAN or not.
7214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7215/* end confdefs.h. */
7216#include <sys/types.h>
7217 #include <sys/param.h>
7218
7219int
7220main ()
7221{
7222#if BYTE_ORDER != BIG_ENDIAN
7223 not big endian
7224 #endif
7225
7226 ;
7227 return 0;
7228}
7229_ACEOF
7230if ac_fn_c_try_compile "$LINENO"; then :
7231 ac_cv_c_bigendian=yes
8690e634 7232else
88b48903 7233 ac_cv_c_bigendian=no
8690e634 7234fi
88b48903 7235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8690e634 7236fi
88b48903
WN
7237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7238 fi
7239 if test $ac_cv_c_bigendian = unknown; then
7240 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7242/* end confdefs.h. */
7243#include <limits.h>
8690e634 7244
88b48903
WN
7245int
7246main ()
7247{
7248#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7249 bogus endian macros
7250 #endif
8690e634 7251
88b48903
WN
7252 ;
7253 return 0;
7254}
7255_ACEOF
7256if ac_fn_c_try_compile "$LINENO"; then :
7257 # It does; now see whether it defined to _BIG_ENDIAN or not.
7258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7259/* end confdefs.h. */
7260#include <limits.h>
8690e634 7261
88b48903
WN
7262int
7263main ()
7264{
7265#ifndef _BIG_ENDIAN
7266 not big endian
7267 #endif
8690e634 7268
88b48903
WN
7269 ;
7270 return 0;
7271}
7272_ACEOF
7273if ac_fn_c_try_compile "$LINENO"; then :
7274 ac_cv_c_bigendian=yes
7275else
7276 ac_cv_c_bigendian=no
7277fi
7278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7279fi
7280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7281 fi
7282 if test $ac_cv_c_bigendian = unknown; then
7283 # Compile a test program.
7284 if test "$cross_compiling" = yes; then :
7285 # Try to guess by grepping values from an object file.
7286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7287/* end confdefs.h. */
7288short int ascii_mm[] =
7289 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7290 short int ascii_ii[] =
7291 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7292 int use_ascii (int i) {
7293 return ascii_mm[i] + ascii_ii[i];
7294 }
7295 short int ebcdic_ii[] =
7296 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7297 short int ebcdic_mm[] =
7298 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7299 int use_ebcdic (int i) {
7300 return ebcdic_mm[i] + ebcdic_ii[i];
7301 }
7302 extern int foo;
8690e634 7303
88b48903
WN
7304int
7305main ()
7306{
7307return use_ascii (foo) == use_ebcdic (foo);
7308 ;
7309 return 0;
7310}
7311_ACEOF
7312if ac_fn_c_try_compile "$LINENO"; then :
7313 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7314 ac_cv_c_bigendian=yes
7315 fi
7316 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7317 if test "$ac_cv_c_bigendian" = unknown; then
7318 ac_cv_c_bigendian=no
7319 else
7320 # finding both strings is unlikely to happen, but who knows?
7321 ac_cv_c_bigendian=unknown
7322 fi
7323 fi
7324fi
7325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7326else
7327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7328/* end confdefs.h. */
7329$ac_includes_default
7330int
7331main ()
7332{
8690e634 7333
88b48903
WN
7334 /* Are we little or big endian? From Harbison&Steele. */
7335 union
7336 {
7337 long int l;
7338 char c[sizeof (long int)];
7339 } u;
7340 u.l = 1;
7341 return u.c[sizeof (long int) - 1] == 1;
8690e634 7342
88b48903
WN
7343 ;
7344 return 0;
7345}
7346_ACEOF
7347if ac_fn_c_try_run "$LINENO"; then :
7348 ac_cv_c_bigendian=no
7349else
7350 ac_cv_c_bigendian=yes
7351fi
7352rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7353 conftest.$ac_objext conftest.beam conftest.$ac_ext
7354fi
8690e634 7355
88b48903
WN
7356 fi
7357fi
7358:
7359 case $ac_cv_c_bigendian in #(
7360 yes)
7361 gl_cv_cc_double_expbit0="word 0 bit 20";; #(
7362 no)
7363 gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
7364 universal)
8690e634 7365
88b48903 7366$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8690e634 7367
88b48903
WN
7368 ;; #(
7369 *)
7370 gl_cv_cc_double_expbit0="unknown" ;;
7371 esac
8690e634
JK
7372
7373
88b48903
WN
7374fi
7375rm -f conftest*
8690e634 7376
8690e634 7377
88b48903
WN
7378else
7379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7380/* end confdefs.h. */
8690e634 7381
88b48903
WN
7382#include <float.h>
7383#include <stddef.h>
7384#include <stdio.h>
7385#include <string.h>
7386#define NWORDS \
7387 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
7388typedef union { double value; unsigned int word[NWORDS]; } memory_double;
7389static unsigned int ored_words[NWORDS];
7390static unsigned int anded_words[NWORDS];
7391static void add_to_ored_words (double x)
7392{
7393 memory_double m;
7394 size_t i;
7395 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
7396 memset (&m, 0, sizeof (memory_double));
7397 m.value = x;
7398 for (i = 0; i < NWORDS; i++)
7399 {
7400 ored_words[i] |= m.word[i];
7401 anded_words[i] &= m.word[i];
7402 }
7403}
7404int main ()
7405{
7406 size_t j;
7407 FILE *fp = fopen ("conftest.out", "w");
7408 if (fp == NULL)
7409 return 1;
7410 for (j = 0; j < NWORDS; j++)
7411 anded_words[j] = ~ (unsigned int) 0;
7412 add_to_ored_words (0.25);
7413 add_to_ored_words (0.5);
7414 add_to_ored_words (1.0);
7415 add_to_ored_words (2.0);
7416 add_to_ored_words (4.0);
7417 /* Remove bits that are common (e.g. if representation of the first mantissa
7418 bit is explicit). */
7419 for (j = 0; j < NWORDS; j++)
7420 ored_words[j] &= ~anded_words[j];
7421 /* Now find the nonzero word. */
7422 for (j = 0; j < NWORDS; j++)
7423 if (ored_words[j] != 0)
7424 break;
7425 if (j < NWORDS)
7426 {
7427 size_t i;
7428 for (i = j + 1; i < NWORDS; i++)
7429 if (ored_words[i] != 0)
7430 {
7431 fprintf (fp, "unknown");
7432 return (fclose (fp) != 0);
7433 }
7434 for (i = 0; ; i++)
7435 if ((ored_words[j] >> i) & 1)
7436 {
7437 fprintf (fp, "word %d bit %d", (int) j, (int) i);
7438 return (fclose (fp) != 0);
7439 }
7440 }
7441 fprintf (fp, "unknown");
7442 return (fclose (fp) != 0);
7443}
8690e634 7444
88b48903
WN
7445_ACEOF
7446if ac_fn_c_try_run "$LINENO"; then :
7447 gl_cv_cc_double_expbit0=`cat conftest.out`
7448else
7449 gl_cv_cc_double_expbit0="unknown"
7450fi
7451rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7452 conftest.$ac_objext conftest.beam conftest.$ac_ext
7453fi
8690e634 7454
88b48903 7455 rm -f conftest.out
8690e634 7456
88b48903
WN
7457fi
7458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
7459$as_echo "$gl_cv_cc_double_expbit0" >&6; }
7460 case "$gl_cv_cc_double_expbit0" in
7461 word*bit*)
7462 word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
7463 bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
8690e634 7464
88b48903
WN
7465cat >>confdefs.h <<_ACEOF
7466#define DBL_EXPBIT0_WORD $word
7467_ACEOF
8690e634
JK
7468
7469
88b48903
WN
7470cat >>confdefs.h <<_ACEOF
7471#define DBL_EXPBIT0_BIT $bit
7472_ACEOF
8690e634 7473
88b48903
WN
7474 ;;
7475 esac
8690e634
JK
7476
7477
88b48903
WN
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7479$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7480if test "${ac_cv_c_bigendian+set}" = set; then :
8690e634
JK
7481 $as_echo_n "(cached) " >&6
7482else
88b48903
WN
7483 ac_cv_c_bigendian=unknown
7484 # See if we're dealing with a universal compiler.
7485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7486/* end confdefs.h. */
7487#ifndef __APPLE_CC__
7488 not a universal capable compiler
7489 #endif
7490 typedef int dummy;
7491
7492_ACEOF
7493if ac_fn_c_try_compile "$LINENO"; then :
7494
7495 # Check for potential -arch flags. It is not universal unless
7496 # there are at least two -arch flags with different values.
7497 ac_arch=
7498 ac_prev=
7499 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7500 if test -n "$ac_prev"; then
7501 case $ac_word in
7502 i?86 | x86_64 | ppc | ppc64)
7503 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7504 ac_arch=$ac_word
7505 else
7506 ac_cv_c_bigendian=universal
7507 break
7508 fi
7509 ;;
7510 esac
7511 ac_prev=
7512 elif test "x$ac_word" = "x-arch"; then
7513 ac_prev=arch
7514 fi
7515 done
7516fi
7517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7518 if test $ac_cv_c_bigendian = unknown; then
7519 # See if sys/param.h defines the BYTE_ORDER macro.
7520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690e634
JK
7521/* end confdefs.h. */
7522#include <sys/types.h>
88b48903
WN
7523 #include <sys/param.h>
7524
7525int
7526main ()
7527{
7528#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7529 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7530 && LITTLE_ENDIAN)
7531 bogus endian macros
7532 #endif
7533
7534 ;
7535 return 0;
7536}
7537_ACEOF
7538if ac_fn_c_try_compile "$LINENO"; then :
7539 # It does; now see whether it defined to BIG_ENDIAN or not.
7540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7541/* end confdefs.h. */
7542#include <sys/types.h>
7543 #include <sys/param.h>
7544
7545int
7546main ()
7547{
7548#if BYTE_ORDER != BIG_ENDIAN
7549 not big endian
7550 #endif
7551
7552 ;
7553 return 0;
7554}
7555_ACEOF
7556if ac_fn_c_try_compile "$LINENO"; then :
7557 ac_cv_c_bigendian=yes
7558else
7559 ac_cv_c_bigendian=no
7560fi
7561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7562fi
7563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7564 fi
7565 if test $ac_cv_c_bigendian = unknown; then
7566 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7568/* end confdefs.h. */
7569#include <limits.h>
7570
7571int
7572main ()
7573{
7574#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7575 bogus endian macros
7576 #endif
7577
7578 ;
7579 return 0;
7580}
7581_ACEOF
7582if ac_fn_c_try_compile "$LINENO"; then :
7583 # It does; now see whether it defined to _BIG_ENDIAN or not.
7584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7585/* end confdefs.h. */
7586#include <limits.h>
7587
7588int
7589main ()
7590{
7591#ifndef _BIG_ENDIAN
7592 not big endian
7593 #endif
7594
7595 ;
7596 return 0;
7597}
7598_ACEOF
7599if ac_fn_c_try_compile "$LINENO"; then :
7600 ac_cv_c_bigendian=yes
7601else
7602 ac_cv_c_bigendian=no
7603fi
7604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7605fi
7606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7607 fi
7608 if test $ac_cv_c_bigendian = unknown; then
7609 # Compile a test program.
7610 if test "$cross_compiling" = yes; then :
7611 # Try to guess by grepping values from an object file.
7612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7613/* end confdefs.h. */
7614short int ascii_mm[] =
7615 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7616 short int ascii_ii[] =
7617 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7618 int use_ascii (int i) {
7619 return ascii_mm[i] + ascii_ii[i];
7620 }
7621 short int ebcdic_ii[] =
7622 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7623 short int ebcdic_mm[] =
7624 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7625 int use_ebcdic (int i) {
7626 return ebcdic_mm[i] + ebcdic_ii[i];
7627 }
7628 extern int foo;
7629
7630int
7631main ()
7632{
7633return use_ascii (foo) == use_ebcdic (foo);
7634 ;
7635 return 0;
7636}
7637_ACEOF
7638if ac_fn_c_try_compile "$LINENO"; then :
7639 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7640 ac_cv_c_bigendian=yes
7641 fi
7642 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7643 if test "$ac_cv_c_bigendian" = unknown; then
7644 ac_cv_c_bigendian=no
7645 else
7646 # finding both strings is unlikely to happen, but who knows?
7647 ac_cv_c_bigendian=unknown
7648 fi
7649 fi
7650fi
7651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7652else
7653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7654/* end confdefs.h. */
7655$ac_includes_default
7656int
7657main ()
7658{
7659
7660 /* Are we little or big endian? From Harbison&Steele. */
7661 union
7662 {
7663 long int l;
7664 char c[sizeof (long int)];
7665 } u;
7666 u.l = 1;
7667 return u.c[sizeof (long int) - 1] == 1;
7668
7669 ;
7670 return 0;
7671}
7672_ACEOF
7673if ac_fn_c_try_run "$LINENO"; then :
7674 ac_cv_c_bigendian=no
7675else
7676 ac_cv_c_bigendian=yes
7677fi
7678rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7679 conftest.$ac_objext conftest.beam conftest.$ac_ext
7680fi
7681
7682 fi
7683fi
7684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7685$as_echo "$ac_cv_c_bigendian" >&6; }
7686 case $ac_cv_c_bigendian in #(
7687 yes)
7688 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
7689;; #(
7690 no)
7691 ;; #(
7692 universal)
7693
7694$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7695
7696 ;; #(
7697 *)
7698 as_fn_error "unknown endianness
7699 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7700 esac
7701
7702
7703
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
7705$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
7706if test "${am_cv_langinfo_codeset+set}" = set; then :
7707 $as_echo_n "(cached) " >&6
7708else
7709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7710/* end confdefs.h. */
7711#include <langinfo.h>
7712int
7713main ()
7714{
7715char* cs = nl_langinfo(CODESET); return !cs;
7716 ;
7717 return 0;
7718}
7719_ACEOF
7720if ac_fn_c_try_link "$LINENO"; then :
7721 am_cv_langinfo_codeset=yes
7722else
7723 am_cv_langinfo_codeset=no
7724fi
7725rm -f core conftest.err conftest.$ac_objext \
7726 conftest$ac_exeext conftest.$ac_ext
7727
7728fi
7729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
7730$as_echo "$am_cv_langinfo_codeset" >&6; }
7731 if test $am_cv_langinfo_codeset = yes; then
7732
7733$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
7734
7735 fi
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751 :
7752
7753
7754
7755
7756
7757
7758 :
7759
7760
7761
7762
7763
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
7765$as_echo_n "checking for working fcntl.h... " >&6; }
7766if test "${gl_cv_header_working_fcntl_h+set}" = set; then :
7767 $as_echo_n "(cached) " >&6
7768else
7769 if test "$cross_compiling" = yes; then :
7770 gl_cv_header_working_fcntl_h=cross-compiling
7771else
7772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7773/* end confdefs.h. */
7774#include <sys/types.h>
7775 #include <sys/stat.h>
7776 #if HAVE_UNISTD_H
7777 # include <unistd.h>
7778 #else /* on Windows with MSVC */
7779 # include <io.h>
7780 # include <stdlib.h>
8690e634
JK
7781 # defined sleep(n) _sleep ((n) * 1000)
7782 #endif
7783 #include <fcntl.h>
7784 #ifndef O_NOATIME
7785 #define O_NOATIME 0
7786 #endif
7787 #ifndef O_NOFOLLOW
7788 #define O_NOFOLLOW 0
7789 #endif
7790 static int const constants[] =
7791 {
7792 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
7793 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
7794 };
7795
7796int
7797main ()
7798{
7799
7800 int result = !constants;
7801 #if HAVE_SYMLINK
7802 {
7803 static char const sym[] = "conftest.sym";
a512b375
JB
7804 if (symlink ("/dev/null", sym) != 0)
7805 result |= 2;
7806 else
7807 {
7808 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
7809 if (fd >= 0)
7810 {
7811 close (fd);
7812 result |= 4;
7813 }
7814 }
7815 if (unlink (sym) != 0 || symlink (".", sym) != 0)
8690e634
JK
7816 result |= 2;
7817 else
7818 {
7819 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
7820 if (fd >= 0)
7821 {
7822 close (fd);
7823 result |= 4;
7824 }
7825 }
7826 unlink (sym);
7827 }
7828 #endif
7829 {
7830 static char const file[] = "confdefs.h";
7831 int fd = open (file, O_RDONLY | O_NOATIME);
7832 if (fd < 0)
7833 result |= 8;
7834 else
7835 {
7836 struct stat st0;
7837 if (fstat (fd, &st0) != 0)
7838 result |= 16;
7839 else
7840 {
7841 char c;
7842 sleep (1);
7843 if (read (fd, &c, 1) != 1)
7844 result |= 24;
7845 else
7846 {
7847 if (close (fd) != 0)
7848 result |= 32;
7849 else
7850 {
7851 struct stat st1;
7852 if (stat (file, &st1) != 0)
7853 result |= 40;
7854 else
7855 if (st0.st_atime != st1.st_atime)
7856 result |= 64;
7857 }
7858 }
7859 }
7860 }
7861 }
7862 return result;
7863 ;
7864 return 0;
7865}
7866_ACEOF
7867if ac_fn_c_try_run "$LINENO"; then :
7868 gl_cv_header_working_fcntl_h=yes
7869else
7870 case $? in #(
7871 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
7872 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
7873 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
7874 *) gl_cv_header_working_fcntl_h='no';;
7875 esac
7876fi
7877rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7878 conftest.$ac_objext conftest.beam conftest.$ac_ext
7879fi
7880
7881fi
7882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
7883$as_echo "$gl_cv_header_working_fcntl_h" >&6; }
7884
7885 case $gl_cv_header_working_fcntl_h in #(
7886 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
7887 *) ac_val=1;;
7888 esac
7889
7890cat >>confdefs.h <<_ACEOF
7891#define HAVE_WORKING_O_NOATIME $ac_val
7892_ACEOF
7893
7894
7895 case $gl_cv_header_working_fcntl_h in #(
7896 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
7897 *) ac_val=1;;
7898 esac
7899
7900cat >>confdefs.h <<_ACEOF
7901#define HAVE_WORKING_O_NOFOLLOW $ac_val
7902_ACEOF
7903
7904
7905
7906 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
7907if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
7908 ac_have_decl=1
7909else
7910 ac_have_decl=0
7911fi
7912
7913cat >>confdefs.h <<_ACEOF
7914#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
7915_ACEOF
7916
7917
7918
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
7920$as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
7921if test "${ac_cv_gnu_library_2_1+set}" = set; then :
7922 $as_echo_n "(cached) " >&6
7923else
7924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7925/* end confdefs.h. */
7926
7927#include <features.h>
7928#ifdef __GNU_LIBRARY__
7929 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7930 Lucky GNU user
7931 #endif
7932#endif
7933#ifdef __UCLIBC__
7934 Lucky user
7935#endif
7936
7937_ACEOF
7938if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7939 $EGREP "Lucky" >/dev/null 2>&1; then :
7940 ac_cv_gnu_library_2_1=yes
7941else
7942 ac_cv_gnu_library_2_1=no
7943fi
7944rm -f conftest*
7945
7946
7947
7948fi
7949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
7950$as_echo "$ac_cv_gnu_library_2_1" >&6; }
7951
7952 GLIBC21="$ac_cv_gnu_library_2_1"
7953
7954
7955
88b48903
WN
7956
7957
7958
7959
7960
8690e634
JK
7961 GNULIB_BTOWC=0;
7962 GNULIB_WCTOB=0;
7963 GNULIB_MBSINIT=0;
7964 GNULIB_MBRTOWC=0;
7965 GNULIB_MBRLEN=0;
7966 GNULIB_MBSRTOWCS=0;
7967 GNULIB_MBSNRTOWCS=0;
7968 GNULIB_WCRTOMB=0;
7969 GNULIB_WCSRTOMBS=0;
7970 GNULIB_WCSNRTOMBS=0;
7971 GNULIB_WCWIDTH=0;
7972 GNULIB_WMEMCHR=0;
7973 GNULIB_WMEMCMP=0;
7974 GNULIB_WMEMCPY=0;
7975 GNULIB_WMEMMOVE=0;
7976 GNULIB_WMEMSET=0;
7977 GNULIB_WCSLEN=0;
7978 GNULIB_WCSNLEN=0;
7979 GNULIB_WCSCPY=0;
7980 GNULIB_WCPCPY=0;
7981 GNULIB_WCSNCPY=0;
7982 GNULIB_WCPNCPY=0;
7983 GNULIB_WCSCAT=0;
7984 GNULIB_WCSNCAT=0;
7985 GNULIB_WCSCMP=0;
7986 GNULIB_WCSNCMP=0;
7987 GNULIB_WCSCASECMP=0;
7988 GNULIB_WCSNCASECMP=0;
7989 GNULIB_WCSCOLL=0;
7990 GNULIB_WCSXFRM=0;
7991 GNULIB_WCSDUP=0;
7992 GNULIB_WCSCHR=0;
7993 GNULIB_WCSRCHR=0;
7994 GNULIB_WCSCSPN=0;
7995 GNULIB_WCSSPN=0;
7996 GNULIB_WCSPBRK=0;
7997 GNULIB_WCSSTR=0;
7998 GNULIB_WCSTOK=0;
7999 GNULIB_WCSWIDTH=0;
8000 HAVE_BTOWC=1;
8001 HAVE_MBSINIT=1;
8002 HAVE_MBRTOWC=1;
8003 HAVE_MBRLEN=1;
8004 HAVE_MBSRTOWCS=1;
8005 HAVE_MBSNRTOWCS=1;
8006 HAVE_WCRTOMB=1;
8007 HAVE_WCSRTOMBS=1;
8008 HAVE_WCSNRTOMBS=1;
8009 HAVE_WMEMCHR=1;
8010 HAVE_WMEMCMP=1;
8011 HAVE_WMEMCPY=1;
8012 HAVE_WMEMMOVE=1;
8013 HAVE_WMEMSET=1;
8014 HAVE_WCSLEN=1;
8015 HAVE_WCSNLEN=1;
8016 HAVE_WCSCPY=1;
8017 HAVE_WCPCPY=1;
8018 HAVE_WCSNCPY=1;
8019 HAVE_WCPNCPY=1;
8020 HAVE_WCSCAT=1;
8021 HAVE_WCSNCAT=1;
8022 HAVE_WCSCMP=1;
8023 HAVE_WCSNCMP=1;
8024 HAVE_WCSCASECMP=1;
8025 HAVE_WCSNCASECMP=1;
8026 HAVE_WCSCOLL=1;
8027 HAVE_WCSXFRM=1;
8028 HAVE_WCSDUP=1;
8029 HAVE_WCSCHR=1;
8030 HAVE_WCSRCHR=1;
8031 HAVE_WCSCSPN=1;
8032 HAVE_WCSSPN=1;
8033 HAVE_WCSPBRK=1;
8034 HAVE_WCSSTR=1;
8035 HAVE_WCSTOK=1;
8036 HAVE_WCSWIDTH=1;
8037 HAVE_DECL_WCTOB=1;
8038 HAVE_DECL_WCWIDTH=1;
8039 REPLACE_MBSTATE_T=0;
8040 REPLACE_BTOWC=0;
8041 REPLACE_WCTOB=0;
8042 REPLACE_MBSINIT=0;
8043 REPLACE_MBRTOWC=0;
8044 REPLACE_MBRLEN=0;
8045 REPLACE_MBSRTOWCS=0;
8046 REPLACE_MBSNRTOWCS=0;
8047 REPLACE_WCRTOMB=0;
8048 REPLACE_WCSRTOMBS=0;
8049 REPLACE_WCSNRTOMBS=0;
8050 REPLACE_WCWIDTH=0;
8051 REPLACE_WCSWIDTH=0;
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
8067$as_echo_n "checking for a traditional japanese locale... " >&6; }
8068if test "${gt_cv_locale_ja+set}" = set; then :
8069 $as_echo_n "(cached) " >&6
8070else
8071
8072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8073/* end confdefs.h. */
8074
8075#include <locale.h>
8076#include <time.h>
8077#if HAVE_LANGINFO_CODESET
8078# include <langinfo.h>
8079#endif
8080#include <stdlib.h>
8081#include <string.h>
8082struct tm t;
8083char buf[16];
8084int main ()
8085{
8086 const char *p;
8087 /* Check whether the given locale name is recognized by the system. */
8088#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
8089 /* On native Windows, setlocale(category, "") looks at the system settings,
8090 not at the environment variables. Also, when an encoding suffix such
8091 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
8092 category of the locale to "C". */
8093 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
8094 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
8095 return 1;
8096#else
8097 if (setlocale (LC_ALL, "") == NULL) return 1;
8098#endif
8099 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
8100 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
8101 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
8102 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
8103 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
8104 some unit tests fail.
8105 On MirBSD 10, when an unsupported locale is specified, setlocale()
8106 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
8107#if HAVE_LANGINFO_CODESET
8108 {
8109 const char *cs = nl_langinfo (CODESET);
8110 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
8111 || strcmp (cs, "UTF-8") == 0)
8112 return 1;
8113 }
8114#endif
8115#ifdef __CYGWIN__
8116 /* On Cygwin, avoid locale names without encoding suffix, because the
8117 locale_charset() function relies on the encoding suffix. Note that
8118 LC_ALL is set on the command line. */
8119 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
8120#endif
8121 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
8122 on Cygwin 1.5.x. */
8123 if (MB_CUR_MAX == 1)
8124 return 1;
8125 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
8126 This excludes the UTF-8 encoding (except on MirBSD). */
8127 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
8128 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
8129 for (p = buf; *p != '\0'; p++)
8130 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
8131 return 1;
8132 return 0;
8133}
8134
8135_ACEOF
8136 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8137 (eval $ac_link) 2>&5
8138 ac_status=$?
8139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8140 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8141 case "$host_os" in
8142 # Handle native Windows specially, because there setlocale() interprets
8143 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
8144 # "fr" or "fra" as "French" or "French_France.1252",
8145 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
8146 # "ja" as "Japanese" or "Japanese_Japan.932",
8147 # and similar.
8148 mingw*)
8149 # Note that on native Windows, the Japanese locale is
8150 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
8151 # cannot use it here.
8152 gt_cv_locale_ja=none
8153 ;;
8154 *)
8155 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
8156 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
8157 # configure script would override the LC_ALL setting. Likewise for
8158 # LC_CTYPE, which is also set at the beginning of the configure script.
8159 # Test for the AIX locale name.
8160 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8161 gt_cv_locale_ja=ja_JP
8162 else
8163 # Test for the locale name with explicit encoding suffix.
8164 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8165 gt_cv_locale_ja=ja_JP.EUC-JP
8166 else
8167 # Test for the HP-UX, OSF/1, NetBSD locale name.
8168 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8169 gt_cv_locale_ja=ja_JP.eucJP
8170 else
8171 # Test for the IRIX, FreeBSD locale name.
8172 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8173 gt_cv_locale_ja=ja_JP.EUC
8174 else
8175 # Test for the Solaris 7 locale name.
8176 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8177 gt_cv_locale_ja=ja
8178 else
8179 # Special test for NetBSD 1.6.
8180 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
8181 gt_cv_locale_ja=ja_JP.eucJP
8182 else
8183 # None found.
8184 gt_cv_locale_ja=none
8185 fi
8186 fi
8187 fi
8188 fi
8189 fi
8190 fi
8191 ;;
8192 esac
8193 fi
8194 rm -fr conftest*
8195
8196fi
8197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
8198$as_echo "$gt_cv_locale_ja" >&6; }
8199 LOCALE_JA=$gt_cv_locale_ja
8200
8201
8202
8203
8204
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
8206$as_echo_n "checking for a transitional chinese locale... " >&6; }
8207if test "${gt_cv_locale_zh_CN+set}" = set; then :
8208 $as_echo_n "(cached) " >&6
8209else
8210
8211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8212/* end confdefs.h. */
8213
8214#include <locale.h>
8215#include <stdlib.h>
8216#include <time.h>
8217#if HAVE_LANGINFO_CODESET
8218# include <langinfo.h>
8219#endif
8220#include <stdlib.h>
8221#include <string.h>
8222struct tm t;
8223char buf[16];
8224int main ()
8225{
8226 const char *p;
8227 /* Check whether the given locale name is recognized by the system. */
8228#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
8229 /* On native Windows, setlocale(category, "") looks at the system settings,
8230 not at the environment variables. Also, when an encoding suffix such
8231 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
8232 category of the locale to "C". */
8233 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
8234 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
8235 return 1;
8236#else
8237 if (setlocale (LC_ALL, "") == NULL) return 1;
8238#endif
8239 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
8240 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
8241 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
8242 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
8243 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
8244 some unit tests fail.
8245 On MirBSD 10, when an unsupported locale is specified, setlocale()
8246 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
8247#if HAVE_LANGINFO_CODESET
8248 {
8249 const char *cs = nl_langinfo (CODESET);
8250 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
8251 || strcmp (cs, "UTF-8") == 0)
8252 return 1;
8253 }
8254#endif
8255#ifdef __CYGWIN__
8256 /* On Cygwin, avoid locale names without encoding suffix, because the
8257 locale_charset() function relies on the encoding suffix. Note that
8258 LC_ALL is set on the command line. */
8259 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
8260#endif
8261 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
8262 This excludes the UTF-8 encoding (except on MirBSD). */
8263 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
8264 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
8265 for (p = buf; *p != '\0'; p++)
8266 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
8267 return 1;
8268 /* Check whether a typical GB18030 multibyte sequence is recognized as a
8269 single wide character. This excludes the GB2312 and GBK encodings. */
8270 if (mblen ("\203\062\332\066", 5) != 4)
8271 return 1;
8272 return 0;
8273}
8274
8275_ACEOF
8276 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8277 (eval $ac_link) 2>&5
8278 ac_status=$?
8279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8280 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8281 case "$host_os" in
8282 # Handle native Windows specially, because there setlocale() interprets
8283 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
8284 # "fr" or "fra" as "French" or "French_France.1252",
8285 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
8286 # "ja" as "Japanese" or "Japanese_Japan.932",
8287 # and similar.
8288 mingw*)
8289 # Test for the hypothetical native Windows locale name.
8290 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8291 gt_cv_locale_zh_CN=Chinese_China.54936
8292 else
8293 # None found.
8294 gt_cv_locale_zh_CN=none
8295 fi
8296 ;;
8297 solaris2.8)
8298 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
8299 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
8300 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
8301 gt_cv_locale_zh_CN=none
8302 ;;
8303 *)
8304 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
8305 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
8306 # configure script would override the LC_ALL setting. Likewise for
8307 # LC_CTYPE, which is also set at the beginning of the configure script.
8308 # Test for the locale name without encoding suffix.
8309 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8310 gt_cv_locale_zh_CN=zh_CN
8311 else
8312 # Test for the locale name with explicit encoding suffix.
8313 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8314 gt_cv_locale_zh_CN=zh_CN.GB18030
8315 else
8316 # None found.
8317 gt_cv_locale_zh_CN=none
8318 fi
8319 fi
8320 ;;
8321 esac
8322 else
8323 # If there was a link error, due to mblen(), the system is so old that
8324 # it certainly doesn't have a chinese locale.
8325 gt_cv_locale_zh_CN=none
8326 fi
8327 rm -fr conftest*
8328
8329fi
8330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
8331$as_echo "$gt_cv_locale_zh_CN" >&6; }
8332 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
8333
8334
8335
8336
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
8338$as_echo_n "checking for a french Unicode locale... " >&6; }
8339if test "${gt_cv_locale_fr_utf8+set}" = set; then :
8340 $as_echo_n "(cached) " >&6
8341else
8342
8343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8344/* end confdefs.h. */
8345
8346#include <locale.h>
8347#include <time.h>
8348#if HAVE_LANGINFO_CODESET
8349# include <langinfo.h>
8350#endif
8351#include <stdlib.h>
8352#include <string.h>
8353struct tm t;
8354char buf[16];
8355int main () {
8356 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
8357 imitates locale dependent behaviour by looking at the environment
8358 variables, and all locales use the UTF-8 encoding. */
8359#if !(defined __BEOS__ || defined __HAIKU__)
8360 /* Check whether the given locale name is recognized by the system. */
8361# if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
8362 /* On native Windows, setlocale(category, "") looks at the system settings,
8363 not at the environment variables. Also, when an encoding suffix such
8364 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
8365 category of the locale to "C". */
8366 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
8367 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
8368 return 1;
8369# else
8370 if (setlocale (LC_ALL, "") == NULL) return 1;
8371# endif
8372 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
8373 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
8374 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
8375 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
8376 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
8377 some unit tests fail. */
8378# if HAVE_LANGINFO_CODESET
8379 {
8380 const char *cs = nl_langinfo (CODESET);
8381 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
8382 return 1;
8383 }
8384# endif
8385# ifdef __CYGWIN__
8386 /* On Cygwin, avoid locale names without encoding suffix, because the
8387 locale_charset() function relies on the encoding suffix. Note that
8388 LC_ALL is set on the command line. */
8389 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
8390# endif
8391 /* Check whether in the abbreviation of the second month, the second
8392 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
8393 two bytes long, with UTF-8 encoding. */
8394 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
8395 if (strftime (buf, sizeof (buf), "%b", &t) < 4
8396 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
8397 return 1;
8398#endif
8399#if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
8400 /* Check whether the decimal separator is a comma.
8401 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
8402 are nl_langinfo(RADIXCHAR) are both ".". */
8403 if (localeconv () ->decimal_point[0] != ',') return 1;
8404#endif
8405 return 0;
8406}
8407
8408_ACEOF
8409 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8410 (eval $ac_link) 2>&5
8411 ac_status=$?
8412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8413 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8414 case "$host_os" in
8415 # Handle native Windows specially, because there setlocale() interprets
8416 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
8417 # "fr" or "fra" as "French" or "French_France.1252",
8418 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
8419 # "ja" as "Japanese" or "Japanese_Japan.932",
8420 # and similar.
8421 mingw*)
8422 # Test for the hypothetical native Windows locale name.
8423 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8424 gt_cv_locale_fr_utf8=French_France.65001
8425 else
8426 # None found.
8427 gt_cv_locale_fr_utf8=none
8428 fi
8429 ;;
8430 *)
8431 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
8432 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
8433 # configure script would override the LC_ALL setting. Likewise for
8434 # LC_CTYPE, which is also set at the beginning of the configure script.
8435 # Test for the usual locale name.
8436 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8437 gt_cv_locale_fr_utf8=fr_FR
8438 else
8439 # Test for the locale name with explicit encoding suffix.
8440 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8441 gt_cv_locale_fr_utf8=fr_FR.UTF-8
8442 else
8443 # Test for the Solaris 7 locale name.
8444 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8445 gt_cv_locale_fr_utf8=fr.UTF-8
8446 else
8447 # None found.
8448 gt_cv_locale_fr_utf8=none
8449 fi
8450 fi
8451 fi
8452 ;;
8453 esac
8454 fi
8455 rm -fr conftest*
8456
8457fi
8458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
8459$as_echo "$gt_cv_locale_fr_utf8" >&6; }
8460 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
8461
8462
8463
8464
8465
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
8467$as_echo_n "checking for a traditional french locale... " >&6; }
8468if test "${gt_cv_locale_fr+set}" = set; then :
8469 $as_echo_n "(cached) " >&6
8470else
8471
8472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8473/* end confdefs.h. */
8474
8475#include <locale.h>
8476#include <time.h>
8477#if HAVE_LANGINFO_CODESET
8478# include <langinfo.h>
8479#endif
8480#include <stdlib.h>
8481#include <string.h>
8482struct tm t;
8483char buf[16];
8484int main () {
8485 /* Check whether the given locale name is recognized by the system. */
8486#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
8487 /* On native Windows, setlocale(category, "") looks at the system settings,
8488 not at the environment variables. Also, when an encoding suffix such
8489 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
8490 category of the locale to "C". */
8491 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
8492 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
8493 return 1;
8494#else
8495 if (setlocale (LC_ALL, "") == NULL) return 1;
8496#endif
8497 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
8498 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
8499 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
8500 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
8501 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
8502 some unit tests fail.
8503 On MirBSD 10, when an unsupported locale is specified, setlocale()
8504 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
8505#if HAVE_LANGINFO_CODESET
8506 {
8507 const char *cs = nl_langinfo (CODESET);
8508 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
8509 || strcmp (cs, "UTF-8") == 0)
8510 return 1;
8511 }
8512#endif
8513#ifdef __CYGWIN__
8514 /* On Cygwin, avoid locale names without encoding suffix, because the
8515 locale_charset() function relies on the encoding suffix. Note that
8516 LC_ALL is set on the command line. */
8517 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
8518#endif
8519 /* Check whether in the abbreviation of the second month, the second
8520 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
8521 one byte long. This excludes the UTF-8 encoding. */
8522 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
8523 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
8524#if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
8525 /* Check whether the decimal separator is a comma.
8526 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
8527 are nl_langinfo(RADIXCHAR) are both ".". */
8528 if (localeconv () ->decimal_point[0] != ',') return 1;
8529#endif
8530 return 0;
8531}
8532
8533_ACEOF
8534 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8535 (eval $ac_link) 2>&5
8536 ac_status=$?
8537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8538 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8539 case "$host_os" in
8540 # Handle native Windows specially, because there setlocale() interprets
8541 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
8542 # "fr" or "fra" as "French" or "French_France.1252",
8543 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
8544 # "ja" as "Japanese" or "Japanese_Japan.932",
8545 # and similar.
8546 mingw*)
8547 # Test for the native Windows locale name.
8548 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8549 gt_cv_locale_fr=French_France.1252
8550 else
8551 # None found.
8552 gt_cv_locale_fr=none
8553 fi
8554 ;;
8555 *)
8556 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
8557 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
8558 # configure script would override the LC_ALL setting. Likewise for
8559 # LC_CTYPE, which is also set at the beginning of the configure script.
8560 # Test for the usual locale name.
8561 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8562 gt_cv_locale_fr=fr_FR
8563 else
8564 # Test for the locale name with explicit encoding suffix.
8565 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8566 gt_cv_locale_fr=fr_FR.ISO-8859-1
8567 else
8568 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
8569 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8570 gt_cv_locale_fr=fr_FR.ISO8859-1
8571 else
8572 # Test for the HP-UX locale name.
8573 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8574 gt_cv_locale_fr=fr_FR.iso88591
8575 else
8576 # Test for the Solaris 7 locale name.
8577 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8578 gt_cv_locale_fr=fr
8579 else
8580 # None found.
8581 gt_cv_locale_fr=none
8582 fi
8583 fi
8584 fi
8585 fi
8586 fi
8587 ;;
8588 esac
8589 fi
8590 rm -fr conftest*
8591
8592fi
8593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
8594$as_echo "$gt_cv_locale_fr" >&6; }
8595 LOCALE_FR=$gt_cv_locale_fr
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609 GNULIB_FFSL=0;
8610 GNULIB_FFSLL=0;
8611 GNULIB_MEMCHR=0;
8612 GNULIB_MEMMEM=0;
8613 GNULIB_MEMPCPY=0;
8614 GNULIB_MEMRCHR=0;
8615 GNULIB_RAWMEMCHR=0;
8616 GNULIB_STPCPY=0;
8617 GNULIB_STPNCPY=0;
8618 GNULIB_STRCHRNUL=0;
8619 GNULIB_STRDUP=0;
8620 GNULIB_STRNCAT=0;
8621 GNULIB_STRNDUP=0;
8622 GNULIB_STRNLEN=0;
8623 GNULIB_STRPBRK=0;
8624 GNULIB_STRSEP=0;
8625 GNULIB_STRSTR=0;
8626 GNULIB_STRCASESTR=0;
8627 GNULIB_STRTOK_R=0;
8628 GNULIB_MBSLEN=0;
8629 GNULIB_MBSNLEN=0;
8630 GNULIB_MBSCHR=0;
8631 GNULIB_MBSRCHR=0;
8632 GNULIB_MBSSTR=0;
8633 GNULIB_MBSCASECMP=0;
8634 GNULIB_MBSNCASECMP=0;
8635 GNULIB_MBSPCASECMP=0;
8636 GNULIB_MBSCASESTR=0;
8637 GNULIB_MBSCSPN=0;
8638 GNULIB_MBSPBRK=0;
8639 GNULIB_MBSSPN=0;
8640 GNULIB_MBSSEP=0;
8641 GNULIB_MBSTOK_R=0;
8642 GNULIB_STRERROR=0;
8643 GNULIB_STRERROR_R=0;
8644 GNULIB_STRSIGNAL=0;
8645 GNULIB_STRVERSCMP=0;
8646 HAVE_MBSLEN=0;
8647 HAVE_FFSL=1;
8648 HAVE_FFSLL=1;
8649 HAVE_MEMCHR=1;
8650 HAVE_DECL_MEMMEM=1;
8651 HAVE_MEMPCPY=1;
8652 HAVE_DECL_MEMRCHR=1;
8653 HAVE_RAWMEMCHR=1;
8654 HAVE_STPCPY=1;
8655 HAVE_STPNCPY=1;
8656 HAVE_STRCHRNUL=1;
8657 HAVE_DECL_STRDUP=1;
8658 HAVE_DECL_STRNDUP=1;
8659 HAVE_DECL_STRNLEN=1;
8660 HAVE_STRPBRK=1;
8661 HAVE_STRSEP=1;
8662 HAVE_STRCASESTR=1;
8663 HAVE_DECL_STRTOK_R=1;
8664 HAVE_DECL_STRERROR_R=1;
8665 HAVE_DECL_STRSIGNAL=1;
8666 HAVE_STRVERSCMP=1;
8667 REPLACE_MEMCHR=0;
8668 REPLACE_MEMMEM=0;
8669 REPLACE_STPNCPY=0;
8670 REPLACE_STRDUP=0;
8671 REPLACE_STRSTR=0;
8672 REPLACE_STRCASESTR=0;
8673 REPLACE_STRCHRNUL=0;
8674 REPLACE_STRERROR=0;
8675 REPLACE_STRERROR_R=0;
8676 REPLACE_STRNCAT=0;
8677 REPLACE_STRNDUP=0;
8678 REPLACE_STRNLEN=0;
8679 REPLACE_STRSIGNAL=0;
8680 REPLACE_STRTOK_R=0;
8681 UNDEFINE_STRTOK_R=0;
8682
8683
8684
8685
8686
8687 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
8688 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
8689 # irrelevant for anonymous mappings.
8690 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
8691if test "x$ac_cv_func_mmap" = x""yes; then :
8692 gl_have_mmap=yes
8693else
8694 gl_have_mmap=no
8695fi
8696
8697
8698 # Try to allow MAP_ANONYMOUS.
8699 gl_have_mmap_anonymous=no
8700 if test $gl_have_mmap = yes; then
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
8702$as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
8703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8704/* end confdefs.h. */
8705
8706#include <sys/mman.h>
8707#ifdef MAP_ANONYMOUS
8708 I cannot identify this map
8709#endif
8710
8711_ACEOF
8712if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8713 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
8714 gl_have_mmap_anonymous=yes
8715fi
8716rm -f conftest*
8717
8718 if test $gl_have_mmap_anonymous != yes; then
8719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8720/* end confdefs.h. */
8721
8722#include <sys/mman.h>
8723#ifdef MAP_ANON
8724 I cannot identify this map
8725#endif
8726
8727_ACEOF
8728if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8729 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
8730
8731$as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
8732
8733 gl_have_mmap_anonymous=yes
8734fi
8735rm -f conftest*
8736
8737 fi
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
8739$as_echo "$gl_have_mmap_anonymous" >&6; }
8740 if test $gl_have_mmap_anonymous = yes; then
8741
8742$as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
8743
8744 fi
8745 fi
8746
8747
8748 :
8749
8750
8751
8752
8753
8754
8755 :
8756
8757
8758
8759
8760
8761
8762
8763
8764 if test $HAVE_MEMCHR = 1; then
8765 # Detect platform-specific bugs in some versions of glibc:
8766 # memchr should not dereference anything with length 0
8767 # http://bugzilla.redhat.com/499689
8768 # memchr should not dereference overestimated length after a match
8769 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
8770 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
8771 # Assume that memchr works on platforms that lack mprotect.
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
8773$as_echo_n "checking whether memchr works... " >&6; }
8774if test "${gl_cv_func_memchr_works+set}" = set; then :
8775 $as_echo_n "(cached) " >&6
8776else
8777 if test "$cross_compiling" = yes; then :
8778 gl_cv_func_memchr_works="guessing no"
8779else
8780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8781/* end confdefs.h. */
8782
8783#include <string.h>
8784#if HAVE_SYS_MMAN_H
8785# include <fcntl.h>
8786# include <unistd.h>
8787# include <sys/types.h>
8788# include <sys/mman.h>
8789# ifndef MAP_FILE
8790# define MAP_FILE 0
8791# endif
8792#endif
8793
8794int
8795main ()
8796{
8797
8798 int result = 0;
8799 char *fence = NULL;
8800#if HAVE_SYS_MMAN_H && HAVE_MPROTECT
8801# if HAVE_MAP_ANONYMOUS
8802 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
8803 const int fd = -1;
8804# else /* !HAVE_MAP_ANONYMOUS */
8805 const int flags = MAP_FILE | MAP_PRIVATE;
8806 int fd = open ("/dev/zero", O_RDONLY, 0666);
8807 if (fd >= 0)
8808# endif
8809 {
8810 int pagesize = getpagesize ();
8811 char *two_pages =
8812 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
8813 flags, fd, 0);
8814 if (two_pages != (char *)(-1)
8815 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
8816 fence = two_pages + pagesize;
8817 }
8818#endif
8819 if (fence)
8820 {
8821 if (memchr (fence, 0, 0))
8822 result |= 1;
8823 strcpy (fence - 9, "12345678");
8824 if (memchr (fence - 9, 0, 79) != fence - 1)
8825 result |= 2;
8826 if (memchr (fence - 1, 0, 3) != fence - 1)
8827 result |= 4;
8828 }
8829 return result;
8830
8831 ;
8832 return 0;
8833}
8834_ACEOF
8835if ac_fn_c_try_run "$LINENO"; then :
8836 gl_cv_func_memchr_works=yes
8837else
8838 gl_cv_func_memchr_works=no
8839fi
8840rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8841 conftest.$ac_objext conftest.beam conftest.$ac_ext
8842fi
8843
8844fi
8845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
8846$as_echo "$gl_cv_func_memchr_works" >&6; }
8847 if test "$gl_cv_func_memchr_works" != yes; then
8848 REPLACE_MEMCHR=1
8849 fi
8850 fi
8851
8852
8853 ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
8854if test "x$ac_cv_have_decl_memmem" = x""yes; then :
8855 ac_have_decl=1
8856else
8857 ac_have_decl=0
8858fi
8859
8860cat >>confdefs.h <<_ACEOF
8861#define HAVE_DECL_MEMMEM $ac_have_decl
8862_ACEOF
8863
8864
8865
8866
8867
8868
8869 for ac_func in memmem
8870do :
8871 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
8872if test "x$ac_cv_func_memmem" = x""yes; then :
8873 cat >>confdefs.h <<_ACEOF
8874#define HAVE_MEMMEM 1
8875_ACEOF
8876
8877fi
8878done
8879
8880 if test $ac_cv_func_memmem = yes; then
8881 HAVE_MEMMEM=1
8882 else
8883 HAVE_MEMMEM=0
8884 fi
8885
8886 :
8887
8888
8889
8890
8891
8892 if test $ac_cv_have_decl_memmem = no; then
8893 HAVE_DECL_MEMMEM=0
8894 else
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
8896$as_echo_n "checking whether memmem works... " >&6; }
8897if test "${gl_cv_func_memmem_works_always+set}" = set; then :
8898 $as_echo_n "(cached) " >&6
8899else
8900 if test "$cross_compiling" = yes; then :
8901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8902/* end confdefs.h. */
8903
8904#ifdef __GNU_LIBRARY__
8905 #include <features.h>
8906 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
8907 || __GLIBC_MINOR__ > 12)) \
8908 || (__GLIBC__ > 2)) \
8909 || defined __UCLIBC__
8910 Lucky user
8911 #endif
8912#elif defined __CYGWIN__
8913 #include <cygwin/version.h>
8914 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
8915 Lucky user
8916 #endif
8917#else
8918 Lucky user
8919#endif
8920
8921_ACEOF
8922if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8923 $EGREP "Lucky user" >/dev/null 2>&1; then :
8924 gl_cv_func_memmem_works_always="guessing yes"
8925else
8926 gl_cv_func_memmem_works_always="guessing no"
8927fi
8928rm -f conftest*
8929
8930
8931else
8932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8933/* end confdefs.h. */
8934
8935#include <string.h> /* for memmem */
8936#define P "_EF_BF_BD"
8937#define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
8938#define NEEDLE P P P P P
8939
8940int
8941main ()
8942{
8943
8944 int result = 0;
8945 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
8946 result |= 1;
8947 /* Check for empty needle behavior. */
8948 {
8949 const char *haystack = "AAA";
8950 if (memmem (haystack, 3, NULL, 0) != haystack)
8951 result |= 2;
8952 }
8953 return result;
8954
8955 ;
8956 return 0;
8957}
8958_ACEOF
8959if ac_fn_c_try_run "$LINENO"; then :
8960 gl_cv_func_memmem_works_always=yes
8961else
8962 gl_cv_func_memmem_works_always=no
8963fi
8964rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8965 conftest.$ac_objext conftest.beam conftest.$ac_ext
8966fi
8967
8968
8969fi
8970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
8971$as_echo "$gl_cv_func_memmem_works_always" >&6; }
8972 case "$gl_cv_func_memmem_works_always" in
8973 *yes) ;;
8974 *)
8975 REPLACE_MEMMEM=1
8976 ;;
8977 esac
8978 fi
8979 :
8980
8981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
8982$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
8983if test "${ac_cv_header_stdbool_h+set}" = set; then :
8984 $as_echo_n "(cached) " >&6
8985else
8986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8987/* end confdefs.h. */
8988
8989 #include <stdbool.h>
8990 #ifndef bool
8991 "error: bool is not defined"
8992 #endif
8993 #ifndef false
8994 "error: false is not defined"
8995 #endif
8996 #if false
8997 "error: false is not 0"
8998 #endif
8999 #ifndef true
9000 "error: true is not defined"
9001 #endif
9002 #if true != 1
9003 "error: true is not 1"
9004 #endif
9005 #ifndef __bool_true_false_are_defined
9006 "error: __bool_true_false_are_defined is not defined"
9007 #endif
9008
9009 struct s { _Bool s: 1; _Bool t; } s;
9010
9011 char a[true == 1 ? 1 : -1];
9012 char b[false == 0 ? 1 : -1];
9013 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
9014 char d[(bool) 0.5 == true ? 1 : -1];
9015 /* See body of main program for 'e'. */
9016 char f[(_Bool) 0.0 == false ? 1 : -1];
9017 char g[true];
9018 char h[sizeof (_Bool)];
9019 char i[sizeof s.t];
9020 enum { j = false, k = true, l = false * true, m = true * 256 };
9021 /* The following fails for
9022 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
9023 _Bool n[m];
9024 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
9025 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
9026 /* Catch a bug in an HP-UX C compiler. See
9027 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
9028 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
9029 */
9030 _Bool q = true;
9031 _Bool *pq = &q;
9032
9033int
9034main ()
9035{
9036
9037 bool e = &s;
9038 *pq |= q;
9039 *pq |= ! q;
9040 /* Refer to every declared value, to avoid compiler optimizations. */
9041 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
9042 + !m + !n + !o + !p + !q + !pq);
9043
9044 ;
9045 return 0;
9046}
9047_ACEOF
9048if ac_fn_c_try_compile "$LINENO"; then :
9049 ac_cv_header_stdbool_h=yes
9050else
9051 ac_cv_header_stdbool_h=no
9052fi
9053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9054fi
9055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
9056$as_echo "$ac_cv_header_stdbool_h" >&6; }
9057 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
9058if test "x$ac_cv_type__Bool" = x""yes; then :
9059
9060cat >>confdefs.h <<_ACEOF
9061#define HAVE__BOOL 1
9062_ACEOF
9063
9064
9065fi
9066
9067
9068
9069 REPLACE_NULL=0;
9070 HAVE_WCHAR_T=1;
9071
9072
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9074$as_echo_n "checking for wchar_t... " >&6; }
9075if test "${gt_cv_c_wchar_t+set}" = set; then :
9076 $as_echo_n "(cached) " >&6
9077else
9078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9079/* end confdefs.h. */
9080#include <stddef.h>
9081 wchar_t foo = (wchar_t)'\0';
9082int
9083main ()
9084{
9085
9086 ;
9087 return 0;
9088}
9089_ACEOF
9090if ac_fn_c_try_compile "$LINENO"; then :
9091 gt_cv_c_wchar_t=yes
9092else
9093 gt_cv_c_wchar_t=no
9094fi
9095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9096fi
9097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9098$as_echo "$gt_cv_c_wchar_t" >&6; }
9099 if test $gt_cv_c_wchar_t = yes; then
9100
9101$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
9102
9103 fi
9104
9105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
9106$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
9107if test "${ac_cv_c_restrict+set}" = set; then :
9108 $as_echo_n "(cached) " >&6
9109else
9110 ac_cv_c_restrict=no
9111 # The order here caters to the fact that C++ does not require restrict.
9112 for ac_kw in __restrict __restrict__ _Restrict restrict; do
9113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9114/* end confdefs.h. */
9115typedef int * int_ptr;
9116 int foo (int_ptr $ac_kw ip) {
9117 return ip[0];
9118 }
9119int
9120main ()
9121{
9122int s[1];
9123 int * $ac_kw t = s;
9124 t[0] = 0;
9125 return foo(t)
9126 ;
9127 return 0;
9128}
9129_ACEOF
9130if ac_fn_c_try_compile "$LINENO"; then :
9131 ac_cv_c_restrict=$ac_kw
9132fi
9133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9134 test "$ac_cv_c_restrict" != no && break
9135 done
9136
9137fi
9138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
9139$as_echo "$ac_cv_c_restrict" >&6; }
9140
9141 case $ac_cv_c_restrict in
9142 restrict) ;;
9143 no) $as_echo "#define restrict /**/" >>confdefs.h
9144 ;;
9145 *) cat >>confdefs.h <<_ACEOF
9146#define restrict $ac_cv_c_restrict
9147_ACEOF
9148 ;;
9149 esac
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162 if test $gl_cv_have_include_next = yes; then
9163 gl_cv_next_string_h='<'string.h'>'
9164 else
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
9166$as_echo_n "checking absolute name of <string.h>... " >&6; }
9167if test "${gl_cv_next_string_h+set}" = set; then :
9168 $as_echo_n "(cached) " >&6
9169else
9170
9171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9172/* end confdefs.h. */
9173#include <string.h>
9174
9175_ACEOF
9176 case "$host_os" in
9177 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9178 *) gl_absname_cpp="$ac_cpp" ;;
9179 esac
9180
9181 case "$host_os" in
c971b7fa
PA
9182 mingw*)
9183 gl_dirsep_regex='[/\\]'
9184 ;;
9185 *)
9186 gl_dirsep_regex='\/'
9187 ;;
9188 esac
9189 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9190
8690e634
JK
9191 gl_header_literal_regex=`echo 'string.h' \
9192 | sed -e "$gl_make_literal_regex_sed"`
9193 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9194 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9195 s|^/[^/]|//&|
9196 p
9197 q
9198 }'
9199 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9200 sed -n "$gl_absolute_header_sed"`'"'
9201
9202
9203fi
9204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
9205$as_echo "$gl_cv_next_string_h" >&6; }
9206 fi
9207 NEXT_STRING_H=$gl_cv_next_string_h
9208
9209 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9210 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9211 gl_next_as_first_directive='<'string.h'>'
9212 else
9213 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9214 gl_next_as_first_directive=$gl_cv_next_string_h
9215 fi
9216 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
9217
9218
9219
9220
9221
9222
9223 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
9224 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
9226$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
9227if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
9228 $as_echo_n "(cached) " >&6
9229else
9230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9231/* end confdefs.h. */
9232#include <string.h>
9233
9234int
9235main ()
9236{
9237#undef $gl_func
9238 (void) $gl_func;
9239 ;
9240 return 0;
9241}
9242_ACEOF
9243if ac_fn_c_try_compile "$LINENO"; then :
9244 eval "$as_gl_Symbol=yes"
9245else
9246 eval "$as_gl_Symbol=no"
9247fi
9248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9249fi
9250eval ac_res=\$$as_gl_Symbol
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9252$as_echo "$ac_res" >&6; }
9253 eval as_val=\$$as_gl_Symbol
9254 if test "x$as_val" = x""yes; then :
9255 cat >>confdefs.h <<_ACEOF
9256#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
9257_ACEOF
9258
9259 eval ac_cv_have_decl_$gl_func=yes
9260fi
9261 done
9262
9263
9264
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
9266$as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
9267if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
9268 $as_echo_n "(cached) " >&6
9269else
9270 gl_cv_header_wchar_h_correct_inline=yes
9271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9272/* end confdefs.h. */
9273
9274 #define wcstod renamed_wcstod
9275/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9276 <wchar.h>.
9277 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9278 included before <wchar.h>. */
9279#include <stddef.h>
9280#include <stdio.h>
9281#include <time.h>
9282#include <wchar.h>
9283extern int zero (void);
9284int main () { return zero(); }
9285
9286_ACEOF
9287 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9288 (eval $ac_compile) 2>&5
9289 ac_status=$?
9290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9291 test $ac_status = 0; }; then
9292 mv conftest.$ac_objext conftest1.$ac_objext
9293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9294/* end confdefs.h. */
9295
9296 #define wcstod renamed_wcstod
9297/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9298 <wchar.h>.
9299 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9300 included before <wchar.h>. */
9301#include <stddef.h>
9302#include <stdio.h>
9303#include <time.h>
9304#include <wchar.h>
9305int zero (void) { return 0; }
9306
9307_ACEOF
9308 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9309 (eval $ac_compile) 2>&5
9310 ac_status=$?
9311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9312 test $ac_status = 0; }; then
9313 mv conftest.$ac_objext conftest2.$ac_objext
9314 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
9315 :
9316 else
9317 gl_cv_header_wchar_h_correct_inline=no
9318 fi
9319 fi
9320 fi
9321 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
9322
9323fi
9324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
9325$as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
9326 if test $gl_cv_header_wchar_h_correct_inline = no; then
9327 as_fn_error "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
9328This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
9329C99 mode. You have four options:
9330 - Add the flag -fgnu89-inline to CC and reconfigure, or
9331 - Fix your include files, using parts of
9332 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
9333 - Use a gcc version older than 4.3, or
9334 - Don't use the flags -std=c99 or -std=gnu99.
9335Configuration aborted." "$LINENO" 5
9336 fi
9337
9338
9339
9340
9341
9342
9343
9344
9345 :
9346
9347
9348
9349
9350
9351 if test $ac_cv_header_features_h = yes; then
9352 HAVE_FEATURES_H=1
9353 else
9354 HAVE_FEATURES_H=0
9355 fi
9356
9357
9358
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
9360$as_echo_n "checking for wint_t... " >&6; }
9361if test "${gt_cv_c_wint_t+set}" = set; then :
9362 $as_echo_n "(cached) " >&6
9363else
9364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9365/* end confdefs.h. */
9366
9367/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9368 <wchar.h>.
9369 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
9370 before <wchar.h>. */
9371#include <stddef.h>
9372#include <stdio.h>
9373#include <time.h>
9374#include <wchar.h>
9375 wint_t foo = (wchar_t)'\0';
9376int
9377main ()
9378{
9379
9380 ;
9381 return 0;
9382}
9383_ACEOF
9384if ac_fn_c_try_compile "$LINENO"; then :
9385 gt_cv_c_wint_t=yes
9386else
9387 gt_cv_c_wint_t=no
9388fi
9389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9390fi
9391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
9392$as_echo "$gt_cv_c_wint_t" >&6; }
9393 if test $gt_cv_c_wint_t = yes; then
9394
9395$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
9396
9397 fi
9398
9399
9400 GNULIB_ISWBLANK=0;
9401 GNULIB_WCTYPE=0;
9402 GNULIB_ISWCTYPE=0;
9403 GNULIB_WCTRANS=0;
9404 GNULIB_TOWCTRANS=0;
9405 HAVE_ISWBLANK=1;
9406 HAVE_WCTYPE_T=1;
9407 HAVE_WCTRANS_T=1;
9408 REPLACE_ISWBLANK=0;
9409
9410
9411
9412
9413
9414
8690e634
JK
9415
9416 if false; then
9417 GL_COND_LIBTOOL_TRUE=
9418 GL_COND_LIBTOOL_FALSE='#'
9419else
9420 GL_COND_LIBTOOL_TRUE='#'
9421 GL_COND_LIBTOOL_FALSE=
9422fi
9423
9424 gl_cond_libtool=false
9425 gl_libdeps=
9426 gl_ltlibdeps=
9427 gl_m4_base='import/m4'
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437 gl_source_base='import'
9438
9439
9440 if test $ac_cv_func_alloca_works = no; then
9441 :
9442 fi
9443
9444 # Define an additional variable used in the Makefile substitution.
9445 if test $ac_cv_working_alloca_h = yes; then
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
9447$as_echo_n "checking for alloca as a compiler built-in... " >&6; }
9448if test "${gl_cv_rpl_alloca+set}" = set; then :
9449 $as_echo_n "(cached) " >&6
9450else
9451
9452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9453/* end confdefs.h. */
9454
9455#if defined __GNUC__ || defined _AIX || defined _MSC_VER
9456 Need own alloca
9457#endif
9458
9459_ACEOF
9460if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9461 $EGREP "Need own alloca" >/dev/null 2>&1; then :
9462 gl_cv_rpl_alloca=yes
9463else
9464 gl_cv_rpl_alloca=no
9465fi
9466rm -f conftest*
9467
9468
9469fi
9470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
9471$as_echo "$gl_cv_rpl_alloca" >&6; }
9472 if test $gl_cv_rpl_alloca = yes; then
9473
9474$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
9475
9476 ALLOCA_H=alloca.h
9477 else
9478 ALLOCA_H=
9479 fi
9480 else
9481 ALLOCA_H=alloca.h
9482 fi
9483
9484 if test -n "$ALLOCA_H"; then
9485 GL_GENERATE_ALLOCA_H_TRUE=
9486 GL_GENERATE_ALLOCA_H_FALSE='#'
9487else
9488 GL_GENERATE_ALLOCA_H_TRUE='#'
9489 GL_GENERATE_ALLOCA_H_FALSE=
9490fi
9491
9492
9493
9494 if test "x$datarootdir" = x; then
9495 datarootdir='${datadir}'
9496
9497 fi
9498 if test "x$docdir" = x; then
9499 docdir='${datarootdir}/doc/${PACKAGE}'
9500
9501 fi
9502 if test "x$htmldir" = x; then
9503 htmldir='${docdir}'
9504
9505 fi
9506 if test "x$dvidir" = x; then
9507 dvidir='${docdir}'
9508
9509 fi
9510 if test "x$pdfdir" = x; then
9511 pdfdir='${docdir}'
9512
9513 fi
9514 if test "x$psdir" = x; then
9515 psdir='${docdir}'
9516
9517 fi
9518 if test "x$lispdir" = x; then
9519 lispdir='${datarootdir}/emacs/site-lisp'
9520
9521 fi
9522 if test "x$localedir" = x; then
9523 localedir='${datarootdir}/locale'
9524
9525 fi
9526
9527 pkglibexecdir='${libexecdir}/${PACKAGE}'
9528
9529
9530
9531
9532
9533
88b48903
WN
9534 FLOAT_H=
9535 REPLACE_FLOAT_LDBL=0
9536 case "$host_os" in
9537 aix* | beos* | openbsd* | mirbsd* | irix*)
9538 FLOAT_H=float.h
9539 ;;
9540 freebsd*)
9541 case "$host_cpu" in
9542 i[34567]86 )
9543 FLOAT_H=float.h
9544 ;;
9545 x86_64 )
9546 # On x86_64 systems, the C compiler may still be generating
9547 # 32-bit code.
9548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9549/* end confdefs.h. */
9550#if defined __LP64__ || defined __x86_64__ || defined __amd64__
9551 yes
9552 #endif
9553_ACEOF
9554if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9555 $EGREP "yes" >/dev/null 2>&1; then :
9556
9557else
9558 FLOAT_H=float.h
9559fi
9560rm -f conftest*
8690e634 9561
88b48903
WN
9562 ;;
9563 esac
9564 ;;
9565 linux*)
9566 case "$host_cpu" in
9567 powerpc*)
9568 FLOAT_H=float.h
9569 ;;
9570 esac
9571 ;;
9572 esac
9573 case "$host_os" in
9574 aix* | freebsd* | linux*)
9575 if test -n "$FLOAT_H"; then
9576 REPLACE_FLOAT_LDBL=1
9577 fi
9578 ;;
9579 esac
a512b375 9580
88b48903
WN
9581 REPLACE_ITOLD=0
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
9583$as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
9584if test "${gl_cv_func_itold_works+set}" = set; then :
8690e634
JK
9585 $as_echo_n "(cached) " >&6
9586else
88b48903
WN
9587
9588 if test "$cross_compiling" = yes; then :
9589 case "$host" in
9590 sparc*-*-linux*)
9591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9592/* end confdefs.h. */
9593#if defined __LP64__ || defined __arch64__
9594 yes
9595 #endif
9596_ACEOF
9597if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9598 $EGREP "yes" >/dev/null 2>&1; then :
9599 gl_cv_func_itold_works="guessing no"
9600else
9601 gl_cv_func_itold_works="guessing yes"
9602fi
9603rm -f conftest*
9604
9605 ;;
9606 *) gl_cv_func_itold_works="guessing yes" ;;
9607 esac
9608
8690e634
JK
9609else
9610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9611/* end confdefs.h. */
8690e634 9612
88b48903
WN
9613int i = -1;
9614volatile long double ld;
9615int main ()
8690e634 9616{
88b48903
WN
9617 ld += i * 1.0L;
9618 if (ld > 0)
9619 return 1;
9620 return 0;
9621}
9622_ACEOF
9623if ac_fn_c_try_run "$LINENO"; then :
9624 gl_cv_func_itold_works=yes
9625else
9626 gl_cv_func_itold_works=no
9627fi
9628rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9629 conftest.$ac_objext conftest.beam conftest.$ac_ext
9630fi
9631
9632
9633fi
9634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
9635$as_echo "$gl_cv_func_itold_works" >&6; }
9636 case "$gl_cv_func_itold_works" in
9637 *no)
9638 REPLACE_ITOLD=1
9639 FLOAT_H=float.h
9640 ;;
9641 esac
9642
9643 if test -n "$FLOAT_H"; then
9644
9645
9646
9647
9648
9649
9650
9651
9652 if test $gl_cv_have_include_next = yes; then
9653 gl_cv_next_float_h='<'float.h'>'
9654 else
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
9656$as_echo_n "checking absolute name of <float.h>... " >&6; }
9657if test "${gl_cv_next_float_h+set}" = set; then :
9658 $as_echo_n "(cached) " >&6
9659else
9660
9661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9662/* end confdefs.h. */
9663#include <float.h>
9664
9665_ACEOF
9666 case "$host_os" in
9667 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9668 *) gl_absname_cpp="$ac_cpp" ;;
9669 esac
9670
9671 case "$host_os" in
9672 mingw*)
9673 gl_dirsep_regex='[/\\]'
9674 ;;
9675 *)
9676 gl_dirsep_regex='\/'
9677 ;;
9678 esac
9679 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9680
9681 gl_header_literal_regex=`echo 'float.h' \
9682 | sed -e "$gl_make_literal_regex_sed"`
9683 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9684 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9685 s|^/[^/]|//&|
9686 p
9687 q
9688 }'
9689 gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9690 sed -n "$gl_absolute_header_sed"`'"'
9691
9692
9693fi
9694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
9695$as_echo "$gl_cv_next_float_h" >&6; }
9696 fi
9697 NEXT_FLOAT_H=$gl_cv_next_float_h
9698
9699 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9700 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9701 gl_next_as_first_directive='<'float.h'>'
9702 else
9703 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9704 gl_next_as_first_directive=$gl_cv_next_float_h
9705 fi
9706 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
9707
9708
9709
9710
9711 fi
9712
9713 if test -n "$FLOAT_H"; then
9714 GL_GENERATE_FLOAT_H_TRUE=
9715 GL_GENERATE_FLOAT_H_FALSE='#'
9716else
9717 GL_GENERATE_FLOAT_H_TRUE='#'
9718 GL_GENERATE_FLOAT_H_FALSE=
9719fi
9720
9721
9722
9723 if test $REPLACE_FLOAT_LDBL = 1; then
9724
9725
9726
9727
9728
9729
9730
9731
9732 gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
9733
9734 fi
9735 if test $REPLACE_ITOLD = 1; then
9736
9737
9738
9739
9740
9741
9742
9743
9744 gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
9745
9746 fi
9747
9748
9749
9750
9751
9752 FNMATCH_H=
9753 gl_fnmatch_required_lowercase=`
9754 echo $gl_fnmatch_required | LC_ALL=C tr '[A-Z]' '[a-z]'
9755 `
9756 gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
9758$as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
9759if { as_var=$gl_fnmatch_cache_var; eval "test \"\${$as_var+set}\" = set"; }; then :
9760 $as_echo_n "(cached) " >&6
9761else
9762 if test $gl_fnmatch_required = GNU; then
9763 gl_fnmatch_gnu_start=
9764 gl_fnmatch_gnu_end=
9765 else
9766 gl_fnmatch_gnu_start='#if 0'
9767 gl_fnmatch_gnu_end='#endif'
9768 fi
9769 if test "$cross_compiling" = yes; then :
9770 eval "$gl_fnmatch_cache_var=\"guessing no\""
9771else
9772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9773/* end confdefs.h. */
9774#include <fnmatch.h>
9775 static int
9776 y (char const *pattern, char const *string, int flags)
9777 {
9778 return fnmatch (pattern, string, flags) == 0;
9779 }
9780 static int
9781 n (char const *pattern, char const *string, int flags)
9782 {
9783 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
9784 }
9785
9786int
9787main ()
9788{
9789char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
9790 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
9791 static char const A_1[] = { 'A' - 1, 0 };
9792 static char const A01[] = { 'A' + 1, 0 };
9793 static char const a_1[] = { 'a' - 1, 0 };
9794 static char const a01[] = { 'a' + 1, 0 };
9795 static char const bs_1[] = { '\\\\' - 1, 0 };
8690e634
JK
9796 static char const bs01[] = { '\\\\' + 1, 0 };
9797 int result = 0;
9798 if (!n ("a*", "", 0))
9799 return 1;
9800 if (!y ("a*", "abc", 0))
9801 return 1;
9802 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
9803 return 1;
9804 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
9805 return 2;
9806 if (!y ("a\\\\bc", "abc", 0))
9807 return 3;
9808 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
9809 return 3;
9810 if (!y ("*x", ".x", 0))
9811 return 4;
9812 if (!n ("*x", ".x", FNM_PERIOD))
9813 return 4;
9814 if (!y (Apat, "\\\\", 0))
9815 return 5;
9816 if (!y (Apat, "A", 0))
9817 return 5;
9818 if (!y (apat, "\\\\", 0))
9819 return 5;
9820 if (!y (apat, "a", 0))
9821 return 5;
9822 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
9823 return 5;
9824 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
9825 return 5;
9826 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
9827 return 5;
9828 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
9829 return 5;
9830 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
9831 return 5;
9832 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
9833 return 5;
9834 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
9835 return 5;
9836 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
9837 return 5;
9838 $gl_fnmatch_gnu_start
9839 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
9840 result |= 8;
9841 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
9842 result |= 16;
9843 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
9844 result |= 32;
9845 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
9846 result |= 64;
9847 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
9848 result |= 64;
9849 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
9850 result |= 64;
9851 $gl_fnmatch_gnu_end
9852 return result;
9853
9854 ;
9855 return 0;
9856}
9857_ACEOF
9858if ac_fn_c_try_run "$LINENO"; then :
9859 eval "$gl_fnmatch_cache_var=yes"
9860else
9861 eval "$gl_fnmatch_cache_var=no"
9862fi
9863rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9864 conftest.$ac_objext conftest.beam conftest.$ac_ext
9865fi
9866
9867
9868fi
9869eval ac_res=\$$gl_fnmatch_cache_var
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9871$as_echo "$ac_res" >&6; }
9872 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
9873 if test "$gl_fnmatch_result" = yes; then
9874 rm -f "$gl_source_base/fnmatch.h"
9875 else
9876 FNMATCH_H=fnmatch.h
9877 fi
9878
9879 if test -n "$FNMATCH_H"; then
9880 GL_GENERATE_FNMATCH_H_TRUE=
9881 GL_GENERATE_FNMATCH_H_FALSE='#'
9882else
9883 GL_GENERATE_FNMATCH_H_TRUE='#'
9884 GL_GENERATE_FNMATCH_H_FALSE=
9885fi
9886
9887
a512b375 9888 if test -n "$FNMATCH_H"; then
8690e634
JK
9889
9890
9891
9892
9893
9894
9895
9896
9897 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
9898
9899
9900
9901cat >>confdefs.h <<_ACEOF
9902#define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
9903_ACEOF
9904
9905
9906 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
9907"
9908if test "x$ac_cv_have_decl_isblank" = x""yes; then :
9909 ac_have_decl=1
9910else
9911 ac_have_decl=0
9912fi
9913
9914cat >>confdefs.h <<_ACEOF
9915#define HAVE_DECL_ISBLANK $ac_have_decl
9916_ACEOF
9917
9918
9919 :
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
c971b7fa
PA
9939
9940
c971b7fa 9941
c971b7fa
PA
9942
9943
9944
9945
c971b7fa 9946
8690e634 9947 :
c971b7fa 9948
c971b7fa
PA
9949
9950
c971b7fa
PA
9951
9952
c971b7fa 9953
a512b375 9954 fi
c971b7fa 9955
c971b7fa 9956
c971b7fa 9957
c971b7fa 9958
c971b7fa 9959
a512b375 9960 if test -n "$FNMATCH_H"; then
c971b7fa 9961
c971b7fa 9962
c971b7fa
PA
9963
9964
c971b7fa
PA
9965
9966
c971b7fa
PA
9967
9968
8690e634 9969 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
c971b7fa 9970
c971b7fa 9971
c971b7fa 9972
8690e634
JK
9973cat >>confdefs.h <<_ACEOF
9974#define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
9975_ACEOF
c971b7fa
PA
9976
9977
8690e634
JK
9978 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
9979"
9980if test "x$ac_cv_have_decl_isblank" = x""yes; then :
9981 ac_have_decl=1
9982else
9983 ac_have_decl=0
c971b7fa 9984fi
c971b7fa 9985
8690e634
JK
9986cat >>confdefs.h <<_ACEOF
9987#define HAVE_DECL_ISBLANK $ac_have_decl
c971b7fa
PA
9988_ACEOF
9989
c971b7fa 9990
8690e634
JK
9991 :
9992
9993
9994
c971b7fa 9995
c971b7fa 9996
c971b7fa
PA
9997
9998
9999
10000
c971b7fa
PA
10001
10002
c971b7fa 10003
c971b7fa 10004
c971b7fa 10005
c971b7fa 10006
c971b7fa 10007
c971b7fa
PA
10008
10009
c971b7fa
PA
10010
10011
c971b7fa 10012
c971b7fa 10013
c971b7fa 10014
8690e634
JK
10015
10016
10017
10018
10019 :
10020
10021
10022
10023
10024
c971b7fa 10025
88b48903
WN
10026 fi
10027
10028
10029
10030 FREXP_LIBM=
10031 if test $gl_cv_func_frexp_no_libm = no; then
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used with libm" >&5
10033$as_echo_n "checking whether frexp() can be used with libm... " >&6; }
10034if test "${gl_cv_func_frexp_in_libm+set}" = set; then :
10035 $as_echo_n "(cached) " >&6
10036else
10037
10038 save_LIBS="$LIBS"
10039 LIBS="$LIBS -lm"
10040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10041/* end confdefs.h. */
10042#include <math.h>
10043 double x;
10044int
10045main ()
10046{
10047int e; return frexp (x, &e) > 0;
10048 ;
10049 return 0;
10050}
10051_ACEOF
10052if ac_fn_c_try_link "$LINENO"; then :
10053 gl_cv_func_frexp_in_libm=yes
10054else
10055 gl_cv_func_frexp_in_libm=no
10056fi
10057rm -f core conftest.err conftest.$ac_objext \
10058 conftest$ac_exeext conftest.$ac_ext
10059 LIBS="$save_LIBS"
10060
10061fi
10062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_in_libm" >&5
10063$as_echo "$gl_cv_func_frexp_in_libm" >&6; }
10064 if test $gl_cv_func_frexp_in_libm = yes; then
10065 FREXP_LIBM=-lm
10066 fi
10067 fi
10068 if test $gl_cv_func_frexp_no_libm = yes \
10069 || test $gl_cv_func_frexp_in_libm = yes; then
10070 save_LIBS="$LIBS"
10071 LIBS="$LIBS $FREXP_LIBM"
10072
10073
10074
10075 :
10076
10077
10078
10079
10080
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
10082$as_echo_n "checking whether frexp works... " >&6; }
10083if test "${gl_cv_func_frexp_works+set}" = set; then :
10084 $as_echo_n "(cached) " >&6
10085else
10086
10087 if test "$cross_compiling" = yes; then :
10088 case "$host_os" in
10089 netbsd* | irix* | mingw*) gl_cv_func_frexp_works="guessing no";;
10090 *) gl_cv_func_frexp_works="guessing yes";;
10091 esac
10092
10093else
10094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10095/* end confdefs.h. */
10096
10097#include <float.h>
10098#include <math.h>
10099#include <string.h>
10100#if HAVE_ALARM
10101# include <unistd.h>
10102#endif
10103/* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
10104 ICC 10.0 has a bug when optimizing the expression -zero.
10105 The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
10106 to PowerPC on Mac OS X 10.5. */
10107#if defined __hpux || defined __sgi || defined __ICC
10108static double
10109compute_minus_zero (void)
10110{
10111 return -DBL_MIN * DBL_MIN;
10112}
10113# define minus_zero compute_minus_zero ()
10114#else
10115double minus_zero = -0.0;
10116#endif
10117int main()
10118{
10119 int result = 0;
10120 int i;
10121 volatile double x;
10122 double zero = 0.0;
10123#if HAVE_ALARM
10124 /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
10125 number. Let the test fail in this case. */
10126 alarm (5);
10127#endif
10128 /* Test on denormalized numbers. */
10129 for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
10130 ;
10131 if (x > 0.0)
10132 {
10133 int exp;
10134 double y = frexp (x, &exp);
10135 /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
10136 On NetBSD: y = 0.75. Correct: y = 0.5. */
10137 if (y != 0.5)
10138 result |= 1;
10139 }
10140 /* Test on infinite numbers. */
10141 x = 1.0 / zero;
10142 {
10143 int exp;
10144 double y = frexp (x, &exp);
10145 if (y != x)
10146 result |= 2;
10147 }
10148 /* Test on negative zero. */
10149 x = minus_zero;
10150 {
10151 int exp;
10152 double y = frexp (x, &exp);
10153 if (memcmp (&y, &x, sizeof x))
10154 result |= 4;
10155 }
10156 return result;
10157}
10158_ACEOF
10159if ac_fn_c_try_run "$LINENO"; then :
10160 gl_cv_func_frexp_works=yes
10161else
10162 gl_cv_func_frexp_works=no
10163fi
10164rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10165 conftest.$ac_objext conftest.beam conftest.$ac_ext
10166fi
10167
10168
10169fi
10170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
10171$as_echo "$gl_cv_func_frexp_works" >&6; }
10172
10173 LIBS="$save_LIBS"
10174 case "$gl_cv_func_frexp_works" in
10175 *yes) gl_func_frexp=yes ;;
10176 *) gl_func_frexp=no; REPLACE_FREXP=1; FREXP_LIBM= ;;
10177 esac
10178 else
10179 gl_func_frexp=no
10180 fi
10181 if test $gl_func_frexp = yes; then
10182
10183$as_echo "#define HAVE_FREXP 1" >>confdefs.h
10184
10185 fi
10186
10187
10188 if test $gl_func_frexp != yes; then
10189
10190
10191
10192
10193
10194
10195
10196
10197 gl_LIBOBJS="$gl_LIBOBJS frexp.$ac_objext"
10198
10199 fi
10200
10201
10202
10203
10204
10205 GNULIB_FREXP=1
10206
10207
10208
10209
10210
10211$as_echo "#define GNULIB_TEST_FREXP 1" >>confdefs.h
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221 ac_fn_c_check_decl "$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
10222"
10223if test "x$ac_cv_have_decl_frexpl" = x""yes; then :
10224
10225else
10226 HAVE_DECL_FREXPL=0
10227fi
10228
10229
10230 FREXPL_LIBM=
10231 if test $HAVE_DECL_FREXPL = 1; then
10232
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
10234$as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
10235if test "${gl_cv_func_frexpl_no_libm+set}" = set; then :
10236 $as_echo_n "(cached) " >&6
10237else
10238
10239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10240/* end confdefs.h. */
10241#include <math.h>
10242 long double x;
10243int
10244main ()
10245{
10246int e; return frexpl (x, &e) > 0;
10247 ;
10248 return 0;
10249}
10250_ACEOF
10251if ac_fn_c_try_link "$LINENO"; then :
10252 gl_cv_func_frexpl_no_libm=yes
10253else
10254 gl_cv_func_frexpl_no_libm=no
10255fi
10256rm -f core conftest.err conftest.$ac_objext \
10257 conftest$ac_exeext conftest.$ac_ext
10258
10259fi
10260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
10261$as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
10262
10263 if test $gl_cv_func_frexpl_no_libm = no; then
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used with libm" >&5
10265$as_echo_n "checking whether frexpl() can be used with libm... " >&6; }
10266if test "${gl_cv_func_frexpl_in_libm+set}" = set; then :
10267 $as_echo_n "(cached) " >&6
10268else
10269
10270 save_LIBS="$LIBS"
10271 LIBS="$LIBS -lm"
10272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10273/* end confdefs.h. */
10274#include <math.h>
10275 long double x;
10276int
10277main ()
10278{
10279int e; return frexpl (x, &e) > 0;
10280 ;
10281 return 0;
10282}
10283_ACEOF
10284if ac_fn_c_try_link "$LINENO"; then :
10285 gl_cv_func_frexpl_in_libm=yes
10286else
10287 gl_cv_func_frexpl_in_libm=no
10288fi
10289rm -f core conftest.err conftest.$ac_objext \
10290 conftest$ac_exeext conftest.$ac_ext
10291 LIBS="$save_LIBS"
10292
10293fi
10294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_in_libm" >&5
10295$as_echo "$gl_cv_func_frexpl_in_libm" >&6; }
10296 if test $gl_cv_func_frexpl_in_libm = yes; then
10297 FREXPL_LIBM=-lm
10298 fi
10299 fi
10300 if test $gl_cv_func_frexpl_no_libm = yes \
10301 || test $gl_cv_func_frexpl_in_libm = yes; then
10302 save_LIBS="$LIBS"
10303 LIBS="$LIBS $FREXPL_LIBM"
10304
10305
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
10307$as_echo_n "checking whether frexpl works... " >&6; }
10308if test "${gl_cv_func_frexpl_works+set}" = set; then :
10309 $as_echo_n "(cached) " >&6
10310else
10311
10312 if test "$cross_compiling" = yes; then :
10313
10314 case "$host_os" in
10315 aix | aix[3-6]* | beos* | darwin* | irix* | mingw* | pw*)
10316 gl_cv_func_frexpl_works="guessing no";;
10317 *) gl_cv_func_frexpl_works="guessing yes";;
10318 esac
10319
10320else
10321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10322/* end confdefs.h. */
10323
10324#include <float.h>
10325#include <math.h>
10326/* Override the values of <float.h>, like done in float.in.h. */
10327#if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
10328# undef LDBL_MIN_EXP
10329# define LDBL_MIN_EXP (-16381)
10330#endif
10331#if defined __i386__ && defined __FreeBSD__
10332# undef LDBL_MIN_EXP
10333# define LDBL_MIN_EXP (-16381)
10334#endif
10335#if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
10336# undef LDBL_MIN_EXP
10337# define LDBL_MIN_EXP DBL_MIN_EXP
10338#endif
10339#if defined __sgi && (LDBL_MANT_DIG >= 106)
10340# if defined __GNUC__
10341# undef LDBL_MIN_EXP
10342# define LDBL_MIN_EXP DBL_MIN_EXP
10343# endif
10344#endif
10345extern
10346#ifdef __cplusplus
10347"C"
10348#endif
10349long double frexpl (long double, int *);
10350int main()
10351{
10352 int result = 0;
10353 volatile long double x;
10354 /* Test on finite numbers that fails on AIX 5.1. */
10355 x = 16.0L;
10356 {
10357 int exp = -9999;
10358 frexpl (x, &exp);
10359 if (exp != 5)
10360 result |= 1;
10361 }
10362 /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
10363 function returns an invalid (incorrectly normalized) value: it returns
10364 y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
10365 but the correct result is
10366 0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 } */
10367 x = 1.01L;
10368 {
10369 int exp = -9999;
10370 long double y = frexpl (x, &exp);
10371 if (!(exp == 1 && y == 0.505L))
10372 result |= 2;
10373 }
10374 /* Test on large finite numbers. This fails on BeOS at i = 16322, while
10375 LDBL_MAX_EXP = 16384.
10376 In the loop end test, we test x against Infinity, rather than comparing
10377 i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP. */
10378 {
10379 int i;
10380 for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
10381 {
10382 int exp = -9999;
10383 frexpl (x, &exp);
10384 if (exp != i)
10385 {
10386 result |= 4;
10387 break;
10388 }
10389 }
10390 }
10391 /* Test on denormalized numbers. */
10392 {
10393 int i;
10394 for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
10395 ;
10396 if (x > 0.0L)
10397 {
10398 int exp;
10399 long double y = frexpl (x, &exp);
10400 /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
10401 exp = -16382, y = 0.5. On Mac OS X 10.5: exp = -16384, y = 0.5. */
10402 if (exp != LDBL_MIN_EXP - 1)
10403 result |= 8;
10404 }
10405 }
10406 /* Test on infinite numbers. */
10407 x = 1.0L / 0.0L;
10408 {
10409 int exp;
10410 long double y = frexpl (x, &exp);
10411 if (y != x)
10412 result |= 16;
10413 }
10414 return result;
10415}
10416_ACEOF
10417if ac_fn_c_try_run "$LINENO"; then :
10418 gl_cv_func_frexpl_works=yes
10419else
10420 gl_cv_func_frexpl_works=no
10421fi
10422rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10423 conftest.$ac_objext conftest.beam conftest.$ac_ext
10424fi
10425
10426
10427fi
10428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
10429$as_echo "$gl_cv_func_frexpl_works" >&6; }
10430
10431 LIBS="$save_LIBS"
10432 case "$gl_cv_func_frexpl_works" in
10433 *yes) gl_func_frexpl=yes ;;
10434 *) gl_func_frexpl=no; REPLACE_FREXPL=1 ;;
10435 esac
10436 else
10437 gl_func_frexpl=no
10438 fi
10439 if test $gl_func_frexpl = yes; then
10440
10441$as_echo "#define HAVE_FREXPL 1" >>confdefs.h
10442
10443 fi
10444 fi
10445 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
10446 if test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1; then
10447
10448 FREXPL_LIBM="$FREXP_LIBM"
10449 else
10450 FREXPL_LIBM=
10451 fi
10452 fi
10453
10454
10455 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
10456
10457
10458
10459
10460
10461
10462
10463
10464 gl_LIBOBJS="$gl_LIBOBJS frexpl.$ac_objext"
10465
10466 fi
10467
10468
10469
10470
10471
10472 GNULIB_FREXPL=1
10473
10474
10475
10476
10477
10478$as_echo "#define GNULIB_TEST_FREXPL 1" >>confdefs.h
10479
10480
10481
10482
10483
10484
10485
10486
10487 PRIPTR_PREFIX=
10488 if test -n "$STDINT_H"; then
10489 PRIPTR_PREFIX='"l"'
10490 else
10491 for glpfx in '' l ll I64; do
10492 case $glpfx in
10493 '') gltype1='int';;
10494 l) gltype1='long int';;
10495 ll) gltype1='long long int';;
10496 I64) gltype1='__int64';;
10497 esac
10498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10499/* end confdefs.h. */
10500#include <stdint.h>
10501 extern intptr_t foo;
10502 extern $gltype1 foo;
10503int
10504main ()
10505{
10506
10507 ;
10508 return 0;
10509}
10510_ACEOF
10511if ac_fn_c_try_compile "$LINENO"; then :
10512 PRIPTR_PREFIX='"'$glpfx'"'
10513fi
10514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10515 test -n "$PRIPTR_PREFIX" && break
10516 done
10517 fi
10518
10519
10520
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
10522$as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
10523if test "${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+set}" = set; then :
10524 $as_echo_n "(cached) " >&6
10525else
10526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10527/* end confdefs.h. */
10528/* Work also in C++ mode. */
10529 #define __STDC_LIMIT_MACROS 1
10530
10531 /* Work if build is not clean. */
10532 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
10533
10534 #include <limits.h>
10535 #if HAVE_STDINT_H
10536 #include <stdint.h>
10537 #endif
10538
10539 #if defined INT32_MAX && defined INTMAX_MAX
10540 #define CONDITION (INT32_MAX < INTMAX_MAX)
10541 #elif HAVE_LONG_LONG_INT
10542 #define CONDITION (sizeof (int) < sizeof (long long int))
10543 #else
10544 #define CONDITION 0
10545 #endif
10546 int test[CONDITION ? 1 : -1];
10547int
10548main ()
10549{
10550
10551 ;
10552 return 0;
10553}
10554_ACEOF
10555if ac_fn_c_try_compile "$LINENO"; then :
10556 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
10557else
10558 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
10559fi
10560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10561fi
10562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
10563$as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
10564 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
10565 INT32_MAX_LT_INTMAX_MAX=1;
10566 else
10567 INT32_MAX_LT_INTMAX_MAX=0;
10568 fi
10569
10570
10571 if test $APPLE_UNIVERSAL_BUILD = 0; then
10572
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
10574$as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
10575if test "${gl_cv_test_INT64_MAX_EQ_LONG_MAX+set}" = set; then :
10576 $as_echo_n "(cached) " >&6
10577else
10578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10579/* end confdefs.h. */
10580/* Work also in C++ mode. */
10581 #define __STDC_LIMIT_MACROS 1
10582
10583 /* Work if build is not clean. */
10584 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
10585
10586 #include <limits.h>
10587 #if HAVE_STDINT_H
10588 #include <stdint.h>
10589 #endif
10590
10591 #if defined INT64_MAX
10592 #define CONDITION (INT64_MAX == LONG_MAX)
10593 #elif HAVE_LONG_LONG_INT
10594 #define CONDITION (sizeof (long long int) == sizeof (long int))
10595 #else
10596 #define CONDITION 0
10597 #endif
10598 int test[CONDITION ? 1 : -1];
10599int
10600main ()
10601{
10602
10603 ;
10604 return 0;
10605}
10606_ACEOF
10607if ac_fn_c_try_compile "$LINENO"; then :
10608 gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
10609else
10610 gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
10611fi
10612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10613fi
10614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
10615$as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
10616 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
10617 INT64_MAX_EQ_LONG_MAX=1;
10618 else
10619 INT64_MAX_EQ_LONG_MAX=0;
10620 fi
10621
10622
10623 else
10624 INT64_MAX_EQ_LONG_MAX=-1
10625 fi
10626
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
10628$as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
10629if test "${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+set}" = set; then :
10630 $as_echo_n "(cached) " >&6
10631else
10632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10633/* end confdefs.h. */
10634/* Work also in C++ mode. */
10635 #define __STDC_LIMIT_MACROS 1
10636
10637 /* Work if build is not clean. */
10638 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
10639
10640 #include <limits.h>
10641 #if HAVE_STDINT_H
10642 #include <stdint.h>
10643 #endif
10644
10645 #if defined UINT32_MAX && defined UINTMAX_MAX
10646 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
10647 #elif HAVE_LONG_LONG_INT
10648 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
10649 #else
10650 #define CONDITION 0
10651 #endif
10652 int test[CONDITION ? 1 : -1];
10653int
10654main ()
10655{
10656
10657 ;
10658 return 0;
10659}
10660_ACEOF
10661if ac_fn_c_try_compile "$LINENO"; then :
10662 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
10663else
10664 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
10665fi
10666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10667fi
10668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
10669$as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
10670 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
10671 UINT32_MAX_LT_UINTMAX_MAX=1;
10672 else
10673 UINT32_MAX_LT_UINTMAX_MAX=0;
10674 fi
10675
10676
10677 if test $APPLE_UNIVERSAL_BUILD = 0; then
10678
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
10680$as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
10681if test "${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+set}" = set; then :
10682 $as_echo_n "(cached) " >&6
10683else
10684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10685/* end confdefs.h. */
10686/* Work also in C++ mode. */
10687 #define __STDC_LIMIT_MACROS 1
10688
10689 /* Work if build is not clean. */
10690 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
10691
10692 #include <limits.h>
10693 #if HAVE_STDINT_H
10694 #include <stdint.h>
10695 #endif
10696
10697 #if defined UINT64_MAX
10698 #define CONDITION (UINT64_MAX == ULONG_MAX)
10699 #elif HAVE_LONG_LONG_INT
10700 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
10701 #else
10702 #define CONDITION 0
10703 #endif
10704 int test[CONDITION ? 1 : -1];
10705int
10706main ()
10707{
10708
10709 ;
10710 return 0;
10711}
10712_ACEOF
10713if ac_fn_c_try_compile "$LINENO"; then :
10714 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
10715else
10716 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
10717fi
10718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10719fi
10720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
10721$as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
10722 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
10723 UINT64_MAX_EQ_ULONG_MAX=1;
10724 else
10725 UINT64_MAX_EQ_ULONG_MAX=0;
10726 fi
10727
10728
10729 else
10730 UINT64_MAX_EQ_ULONG_MAX=-1
10731 fi
10732
10733
10734
10735
10736
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
10738$as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
10739if test "${gl_cv_func_isnand_no_libm+set}" = set; then :
10740 $as_echo_n "(cached) " >&6
10741else
10742
10743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10744/* end confdefs.h. */
10745#include <math.h>
10746 #if __GNUC__ >= 4
10747 # undef isnand
10748 # define isnand(x) __builtin_isnan ((double)(x))
10749 #else
10750 # undef isnand
10751 # define isnand(x) isnan ((double)(x))
10752 #endif
10753 double x;
10754int
10755main ()
10756{
10757return isnand (x);
10758 ;
10759 return 0;
10760}
10761_ACEOF
10762if ac_fn_c_try_link "$LINENO"; then :
10763 gl_cv_func_isnand_no_libm=yes
10764else
10765 gl_cv_func_isnand_no_libm=no
10766fi
10767rm -f core conftest.err conftest.$ac_objext \
10768 conftest$ac_exeext conftest.$ac_ext
10769
10770fi
10771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
10772$as_echo "$gl_cv_func_isnand_no_libm" >&6; }
10773
10774 gl_func_isnand_no_libm=$gl_cv_func_isnand_no_libm
10775 if test $gl_cv_func_isnand_no_libm = yes; then
10776
10777$as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
10778
10779 fi
10780
10781 if test $gl_func_isnand_no_libm != yes; then
10782
10783
10784
10785
10786
10787
10788
10789
10790 gl_LIBOBJS="$gl_LIBOBJS isnand.$ac_objext"
10791
10792
10793
10794
10795 fi
10796
10797
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
10799$as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
10800if test "${gl_cv_func_isnanl_no_libm+set}" = set; then :
10801 $as_echo_n "(cached) " >&6
10802else
10803
10804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10805/* end confdefs.h. */
10806#include <math.h>
10807 #if __GNUC__ >= 4
10808 # undef isnanl
10809 # define isnanl(x) __builtin_isnanl ((long double)(x))
10810 #elif defined isnan
10811 # undef isnanl
10812 # define isnanl(x) isnan ((long double)(x))
10813 #endif
10814 long double x;
10815int
10816main ()
10817{
10818return isnanl (x);
10819 ;
10820 return 0;
10821}
10822_ACEOF
10823if ac_fn_c_try_link "$LINENO"; then :
10824 gl_cv_func_isnanl_no_libm=yes
10825else
10826 gl_cv_func_isnanl_no_libm=no
10827fi
10828rm -f core conftest.err conftest.$ac_objext \
10829 conftest$ac_exeext conftest.$ac_ext
10830
10831fi
10832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
10833$as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
10834
10835 gl_func_isnanl_no_libm=$gl_cv_func_isnanl_no_libm
10836 if test $gl_func_isnanl_no_libm = yes; then
10837
10838
10839
10840
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
10842$as_echo_n "checking whether isnanl works... " >&6; }
10843if test "${gl_cv_func_isnanl_works+set}" = set; then :
10844 $as_echo_n "(cached) " >&6
10845else
10846
10847 if test "$cross_compiling" = yes; then :
10848 case "$host_cpu" in
10849 # Guess no on ia64, x86_64, i386.
10850 ia64 | x86_64 | i*86) gl_cv_func_isnanl_works="guessing no";;
10851 *)
10852 case "$host_os" in
10853 netbsd*) gl_cv_func_isnanl_works="guessing no";;
10854 *) gl_cv_func_isnanl_works="guessing yes";;
10855 esac
10856 ;;
10857 esac
10858
10859else
10860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10861/* end confdefs.h. */
10862
10863#include <float.h>
10864#include <limits.h>
10865#include <math.h>
10866#if __GNUC__ >= 4
10867# undef isnanl
10868# define isnanl(x) __builtin_isnanl ((long double)(x))
10869#elif defined isnan
10870# undef isnanl
10871# define isnanl(x) isnan ((long double)(x))
10872#endif
10873#define NWORDS \
10874 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
10875typedef union { unsigned int word[NWORDS]; long double value; }
10876 memory_long_double;
10877/* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
10878 runtime type conversion. */
10879#ifdef __sgi
10880static long double NaNl ()
10881{
10882 double zero = 0.0;
10883 return zero / zero;
10884}
10885#else
10886# define NaNl() (0.0L / 0.0L)
10887#endif
10888int main ()
10889{
10890 int result = 0;
10891
10892 if (!isnanl (NaNl ()))
10893 result |= 1;
10894
10895 {
10896 memory_long_double m;
10897 unsigned int i;
10898
10899 /* The isnanl function should be immune against changes in the sign bit and
10900 in the mantissa bits. The xor operation twiddles a bit that can only be
10901 a sign bit or a mantissa bit (since the exponent never extends to
10902 bit 31). */
10903 m.value = NaNl ();
10904 m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
10905 for (i = 0; i < NWORDS; i++)
10906 m.word[i] |= 1;
10907 if (!isnanl (m.value))
10908 result |= 1;
10909 }
10910
10911#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
10912/* Representation of an 80-bit 'long double' as an initializer for a sequence
10913 of 'unsigned int' words. */
10914# ifdef WORDS_BIGENDIAN
10915# define LDBL80_WORDS(exponent,manthi,mantlo) \
10916 { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
10917 ((unsigned int) (manthi) << 16) | (unsigned int) (mantlo) >> 16), \
10918 (unsigned int) (mantlo) << 16 \
10919 }
10920# else
10921# define LDBL80_WORDS(exponent,manthi,mantlo) \
10922 { mantlo, manthi, exponent }
10923# endif
10924 { /* Quiet NaN. */
10925 static memory_long_double x =
10926 { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
10927 if (!isnanl (x.value))
10928 result |= 2;
10929 }
10930 {
10931 /* Signalling NaN. */
10932 static memory_long_double x =
10933 { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
10934 if (!isnanl (x.value))
10935 result |= 2;
10936 }
10937 /* The isnanl function should recognize Pseudo-NaNs, Pseudo-Infinities,
10938 Pseudo-Zeroes, Unnormalized Numbers, and Pseudo-Denormals, as defined in
10939 Intel IA-64 Architecture Software Developer's Manual, Volume 1:
10940 Application Architecture.
10941 Table 5-2 "Floating-Point Register Encodings"
10942 Figure 5-6 "Memory to Floating-Point Register Data Translation"
10943 */
10944 { /* Pseudo-NaN. */
10945 static memory_long_double x =
10946 { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
10947 if (!isnanl (x.value))
10948 result |= 4;
10949 }
10950 { /* Pseudo-Infinity. */
10951 static memory_long_double x =
10952 { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
10953 if (!isnanl (x.value))
10954 result |= 8;
10955 }
10956 { /* Pseudo-Zero. */
10957 static memory_long_double x =
10958 { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
10959 if (!isnanl (x.value))
10960 result |= 16;
10961 }
10962 { /* Unnormalized number. */
10963 static memory_long_double x =
10964 { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
10965 if (!isnanl (x.value))
10966 result |= 32;
10967 }
10968 { /* Pseudo-Denormal. */
10969 static memory_long_double x =
10970 { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
10971 if (!isnanl (x.value))
10972 result |= 64;
10973 }
10974#endif
10975
10976 return result;
10977}
10978_ACEOF
10979if ac_fn_c_try_run "$LINENO"; then :
10980 gl_cv_func_isnanl_works=yes
10981else
10982 gl_cv_func_isnanl_works=no
10983fi
10984rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10985 conftest.$ac_objext conftest.beam conftest.$ac_ext
10986fi
10987
10988
10989fi
10990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
10991$as_echo "$gl_cv_func_isnanl_works" >&6; }
10992
10993 case "$gl_cv_func_isnanl_works" in
10994 *yes) ;;
10995 *) gl_func_isnanl_no_libm=no ;;
10996 esac
10997 fi
10998 if test $gl_func_isnanl_no_libm = yes; then
10999
11000$as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
11001
11002 fi
11003
11004 if test $gl_func_isnanl_no_libm != yes; then
11005
11006
11007
11008
11009
11010
11011
11012
11013 gl_LIBOBJS="$gl_LIBOBJS isnanl.$ac_objext"
11014
11015
11016
11017
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
11019$as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
11020if test "${gl_cv_cc_long_double_expbit0+set}" = set; then :
11021 $as_echo_n "(cached) " >&6
11022else
11023
11024 if test "$cross_compiling" = yes; then :
11025
11026 gl_cv_cc_long_double_expbit0="unknown"
11027
11028else
11029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11030/* end confdefs.h. */
11031
11032#include <float.h>
11033#include <stddef.h>
11034#include <stdio.h>
11035#include <string.h>
11036#define NWORDS \
11037 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
11038typedef union { long double value; unsigned int word[NWORDS]; }
11039 memory_long_double;
11040static unsigned int ored_words[NWORDS];
11041static unsigned int anded_words[NWORDS];
11042static void add_to_ored_words (long double x)
11043{
11044 memory_long_double m;
11045 size_t i;
11046 /* Clear it first, in case
11047 sizeof (long double) < sizeof (memory_long_double). */
11048 memset (&m, 0, sizeof (memory_long_double));
11049 m.value = x;
11050 for (i = 0; i < NWORDS; i++)
11051 {
11052 ored_words[i] |= m.word[i];
11053 anded_words[i] &= m.word[i];
11054 }
11055}
11056int main ()
11057{
11058 size_t j;
11059 FILE *fp = fopen ("conftest.out", "w");
11060 if (fp == NULL)
11061 return 1;
11062 for (j = 0; j < NWORDS; j++)
11063 anded_words[j] = ~ (unsigned int) 0;
11064 add_to_ored_words (0.25L);
11065 add_to_ored_words (0.5L);
11066 add_to_ored_words (1.0L);
11067 add_to_ored_words (2.0L);
11068 add_to_ored_words (4.0L);
11069 /* Remove bits that are common (e.g. if representation of the first mantissa
11070 bit is explicit). */
11071 for (j = 0; j < NWORDS; j++)
11072 ored_words[j] &= ~anded_words[j];
11073 /* Now find the nonzero word. */
11074 for (j = 0; j < NWORDS; j++)
11075 if (ored_words[j] != 0)
11076 break;
11077 if (j < NWORDS)
11078 {
11079 size_t i;
11080 for (i = j + 1; i < NWORDS; i++)
11081 if (ored_words[i] != 0)
11082 {
11083 fprintf (fp, "unknown");
11084 return (fclose (fp) != 0);
11085 }
11086 for (i = 0; ; i++)
11087 if ((ored_words[j] >> i) & 1)
11088 {
11089 fprintf (fp, "word %d bit %d", (int) j, (int) i);
11090 return (fclose (fp) != 0);
11091 }
11092 }
11093 fprintf (fp, "unknown");
11094 return (fclose (fp) != 0);
11095}
11096
11097_ACEOF
11098if ac_fn_c_try_run "$LINENO"; then :
11099 gl_cv_cc_long_double_expbit0=`cat conftest.out`
11100else
11101 gl_cv_cc_long_double_expbit0="unknown"
11102fi
11103rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11104 conftest.$ac_objext conftest.beam conftest.$ac_ext
11105fi
11106
11107 rm -f conftest.out
11108
11109fi
11110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
11111$as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
11112 case "$gl_cv_cc_long_double_expbit0" in
11113 word*bit*)
11114 word=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
11115 bit=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
11116
11117cat >>confdefs.h <<_ACEOF
11118#define LDBL_EXPBIT0_WORD $word
11119_ACEOF
11120
11121
11122cat >>confdefs.h <<_ACEOF
11123#define LDBL_EXPBIT0_BIT $bit
11124_ACEOF
11125
11126 ;;
11127 esac
11128
11129
11130
11131 fi
11132
11133
11134
11135
11136 :
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156 :
11157
11158
11159
11160
11161
11162
c971b7fa 11163
c971b7fa 11164
88b48903
WN
11165 if test $gl_cv_have_include_next = yes; then
11166 gl_cv_next_math_h='<'math.h'>'
11167 else
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
11169$as_echo_n "checking absolute name of <math.h>... " >&6; }
11170if test "${gl_cv_next_math_h+set}" = set; then :
11171 $as_echo_n "(cached) " >&6
11172else
c971b7fa 11173
88b48903 11174 if test $ac_cv_header_math_h = yes; then
c971b7fa
PA
11175
11176
88b48903 11177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690e634 11178/* end confdefs.h. */
88b48903 11179#include <math.h>
8690e634 11180
8690e634 11181_ACEOF
88b48903
WN
11182 case "$host_os" in
11183 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11184 *) gl_absname_cpp="$ac_cpp" ;;
11185 esac
8690e634 11186
88b48903
WN
11187 case "$host_os" in
11188 mingw*)
11189 gl_dirsep_regex='[/\\]'
11190 ;;
11191 *)
11192 gl_dirsep_regex='\/'
11193 ;;
11194 esac
11195 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
8690e634 11196
88b48903
WN
11197 gl_header_literal_regex=`echo 'math.h' \
11198 | sed -e "$gl_make_literal_regex_sed"`
11199 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11200 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11201 s|^/[^/]|//&|
11202 p
11203 q
11204 }'
11205 gl_cv_next_math_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11206 sed -n "$gl_absolute_header_sed"`'"'
11207 else
11208 gl_cv_next_math_h='<'math.h'>'
11209 fi
8690e634 11210
c971b7fa 11211
88b48903
WN
11212fi
11213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
11214$as_echo "$gl_cv_next_math_h" >&6; }
11215 fi
11216 NEXT_MATH_H=$gl_cv_next_math_h
c971b7fa 11217
88b48903
WN
11218 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11219 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11220 gl_next_as_first_directive='<'math.h'>'
11221 else
11222 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11223 gl_next_as_first_directive=$gl_cv_next_math_h
11224 fi
11225 NEXT_AS_FIRST_DIRECTIVE_MATH_H=$gl_next_as_first_directive
8690e634 11226
c971b7fa 11227
c971b7fa
PA
11228
11229
c971b7fa 11230
88b48903
WN
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
11232$as_echo_n "checking whether NAN macro works... " >&6; }
11233if test "${gl_cv_header_math_nan_works+set}" = set; then :
c971b7fa
PA
11234 $as_echo_n "(cached) " >&6
11235else
8690e634
JK
11236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11237/* end confdefs.h. */
88b48903 11238#include <math.h>
c971b7fa
PA
11239int
11240main ()
11241{
88b48903
WN
11242/* Solaris 10 has a broken definition of NAN. Other platforms
11243 fail to provide NAN, or provide it only in C99 mode; this
11244 test only needs to fail when NAN is provided but wrong. */
11245 float f = 1.0f;
11246#ifdef NAN
11247 f = NAN;
11248#endif
11249 return f == 0;
c971b7fa
PA
11250 ;
11251 return 0;
11252}
11253_ACEOF
11254if ac_fn_c_try_compile "$LINENO"; then :
88b48903 11255 gl_cv_header_math_nan_works=yes
8690e634 11256else
88b48903 11257 gl_cv_header_math_nan_works=no
c971b7fa
PA
11258fi
11259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c971b7fa 11260fi
88b48903
WN
11261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
11262$as_echo "$gl_cv_header_math_nan_works" >&6; }
11263 if test $gl_cv_header_math_nan_works = no; then
11264 REPLACE_NAN=1
c971b7fa 11265 fi
88b48903
WN
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
11267$as_echo_n "checking whether HUGE_VAL works... " >&6; }
11268if test "${gl_cv_header_math_huge_val_works+set}" = set; then :
c971b7fa
PA
11269 $as_echo_n "(cached) " >&6
11270else
8690e634 11271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa 11272/* end confdefs.h. */
88b48903 11273#include <math.h>
c971b7fa
PA
11274int
11275main ()
11276{
88b48903
WN
11277/* Solaris 10 has a broken definition of HUGE_VAL. */
11278 double d = HUGE_VAL;
11279 return d == 0;
c971b7fa
PA
11280 ;
11281 return 0;
11282}
11283_ACEOF
11284if ac_fn_c_try_compile "$LINENO"; then :
88b48903 11285 gl_cv_header_math_huge_val_works=yes
8690e634 11286else
88b48903 11287 gl_cv_header_math_huge_val_works=no
c971b7fa
PA
11288fi
11289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c971b7fa 11290fi
88b48903
WN
11291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
11292$as_echo "$gl_cv_header_math_huge_val_works" >&6; }
11293 if test $gl_cv_header_math_huge_val_works = no; then
11294 REPLACE_HUGE_VAL=1
8690e634 11295 fi
c971b7fa 11296
c971b7fa 11297
88b48903
WN
11298 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
11299 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
11301$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
11302if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
8690e634
JK
11303 $as_echo_n "(cached) " >&6
11304else
11305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11306/* end confdefs.h. */
88b48903 11307#include <math.h>
8690e634
JK
11308int
11309main ()
11310{
88b48903
WN
11311#undef $gl_func
11312 (void) $gl_func;
8690e634
JK
11313 ;
11314 return 0;
11315}
11316_ACEOF
11317if ac_fn_c_try_compile "$LINENO"; then :
88b48903 11318 eval "$as_gl_Symbol=yes"
c971b7fa 11319else
88b48903 11320 eval "$as_gl_Symbol=no"
c971b7fa 11321fi
8690e634
JK
11322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11323fi
88b48903
WN
11324eval ac_res=\$$as_gl_Symbol
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11326$as_echo "$ac_res" >&6; }
11327 eval as_val=\$$as_gl_Symbol
11328 if test "x$as_val" = x""yes; then :
11329 cat >>confdefs.h <<_ACEOF
11330#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
11331_ACEOF
c971b7fa 11332
88b48903
WN
11333 eval ac_cv_have_decl_$gl_func=yes
11334fi
11335 done
c971b7fa
PA
11336
11337
11338
11339
11340
c971b7fa 11341
c971b7fa 11342
c971b7fa 11343
c971b7fa
PA
11344
11345
c971b7fa 11346
8690e634 11347 :
c971b7fa
PA
11348
11349
11350
11351
11352
11353
8690e634 11354 :
c971b7fa
PA
11355
11356
8690e634
JK
11357
11358
11359
11360 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
11361
11362
11363
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
11365$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
11366if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
c971b7fa
PA
11367 $as_echo_n "(cached) " >&6
11368else
8690e634
JK
11369
11370 case "$host_os" in
11371 # Guess no on AIX and OSF/1.
11372 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
11373 # Guess yes otherwise.
11374 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
11375 esac
11376 if test $LOCALE_JA != none; then
11377 if test "$cross_compiling" = yes; then :
11378 :
11379else
c971b7fa
PA
11380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11381/* end confdefs.h. */
c971b7fa 11382
8690e634
JK
11383#include <locale.h>
11384#include <string.h>
11385/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11386 <wchar.h>.
11387 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11388 included before <wchar.h>. */
11389#include <stddef.h>
11390#include <stdio.h>
11391#include <time.h>
11392#include <wchar.h>
11393int main ()
c971b7fa 11394{
8690e634
JK
11395 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
11396 {
11397 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
11398 mbstate_t state;
11399 wchar_t wc;
11400
11401 memset (&state, '\0', sizeof (mbstate_t));
11402 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
11403 if (mbsinit (&state))
11404 return 1;
11405 }
c971b7fa
PA
11406 return 0;
11407}
11408_ACEOF
8690e634
JK
11409if ac_fn_c_try_run "$LINENO"; then :
11410 gl_cv_func_mbrtowc_incomplete_state=yes
c971b7fa 11411else
8690e634 11412 gl_cv_func_mbrtowc_incomplete_state=no
c971b7fa 11413fi
8690e634
JK
11414rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11415 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 11416fi
c971b7fa 11417
8690e634 11418 fi
c971b7fa 11419
8690e634
JK
11420fi
11421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
11422$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
c971b7fa 11423
c971b7fa 11424
c971b7fa 11425
c971b7fa 11426
8690e634
JK
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
11428$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
11429if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
c971b7fa
PA
11430 $as_echo_n "(cached) " >&6
11431else
11432
8690e634
JK
11433 case "$host_os" in
11434 # Guess no on Solaris 8.
11435 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
11436 # Guess yes otherwise.
11437 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
11438 esac
11439 if test $LOCALE_ZH_CN != none; then
11440 if test "$cross_compiling" = yes; then :
11441 :
11442else
11443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa
PA
11444/* end confdefs.h. */
11445
8690e634
JK
11446#include <locale.h>
11447#include <stdlib.h>
11448#include <string.h>
11449/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11450 <wchar.h>.
11451 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11452 included before <wchar.h>. */
11453#include <stddef.h>
11454#include <stdio.h>
11455#include <time.h>
11456#include <wchar.h>
11457int main ()
c971b7fa 11458{
8690e634
JK
11459 /* This fails on Solaris 8:
11460 mbrtowc returns 2, and sets wc to 0x00F0.
11461 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
11462 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
11463 {
11464 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
11465 mbstate_t state;
11466 wchar_t wc;
11467
11468 memset (&state, '\0', sizeof (mbstate_t));
11469 if (mbrtowc (&wc, input + 3, 6, &state) != 4
11470 && mbtowc (&wc, input + 3, 6) == 4)
11471 return 1;
11472 }
c971b7fa
PA
11473 return 0;
11474}
11475_ACEOF
8690e634
JK
11476if ac_fn_c_try_run "$LINENO"; then :
11477 gl_cv_func_mbrtowc_sanitycheck=yes
c971b7fa 11478else
8690e634 11479 gl_cv_func_mbrtowc_sanitycheck=no
c971b7fa 11480fi
8690e634
JK
11481rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11482 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 11483fi
c971b7fa 11484
8690e634 11485 fi
c971b7fa 11486
8690e634
JK
11487fi
11488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
11489$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
11490
11491 REPLACE_MBSTATE_T=0
11492 case "$gl_cv_func_mbrtowc_incomplete_state" in
11493 *yes) ;;
11494 *) REPLACE_MBSTATE_T=1 ;;
11495 esac
11496 case "$gl_cv_func_mbrtowc_sanitycheck" in
11497 *yes) ;;
11498 *) REPLACE_MBSTATE_T=1 ;;
11499 esac
c971b7fa 11500 else
8690e634 11501 REPLACE_MBSTATE_T=1
c971b7fa
PA
11502 fi
11503
11504
11505
8690e634 11506 :
c971b7fa
PA
11507
11508
11509
11510
11511
8690e634
JK
11512 if test $ac_cv_func_mbrtowc = no; then
11513 HAVE_MBRTOWC=0
11514 ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
11515/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11516 <wchar.h>.
11517 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11518 included before <wchar.h>. */
11519#include <stddef.h>
11520#include <stdio.h>
11521#include <time.h>
11522#include <wchar.h>
c971b7fa 11523
8690e634
JK
11524"
11525if test "x$ac_cv_have_decl_mbrtowc" = x""yes; then :
11526 ac_have_decl=1
11527else
11528 ac_have_decl=0
c971b7fa 11529fi
c971b7fa 11530
8690e634
JK
11531cat >>confdefs.h <<_ACEOF
11532#define HAVE_DECL_MBRTOWC $ac_have_decl
11533_ACEOF
c971b7fa 11534
8690e634
JK
11535 if test $ac_cv_have_decl_mbrtowc = yes; then
11536 REPLACE_MBRTOWC=1
11537 fi
11538 else
11539 if test $REPLACE_MBSTATE_T = 1; then
11540 REPLACE_MBRTOWC=1
11541 else
c971b7fa
PA
11542
11543
11544
8690e634
JK
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
11546$as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
11547if test "${gl_cv_func_mbrtowc_null_arg1+set}" = set; then :
11548 $as_echo_n "(cached) " >&6
c971b7fa 11549else
c971b7fa 11550
8690e634
JK
11551 case "$host_os" in
11552 # Guess no on Solaris.
11553 solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
11554 # Guess yes otherwise.
11555 *) gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
11556 esac
11557 if test $LOCALE_FR_UTF8 != none; then
11558 if test "$cross_compiling" = yes; then :
11559 :
11560else
11561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa
PA
11562/* end confdefs.h. */
11563
8690e634
JK
11564#include <locale.h>
11565#include <stdlib.h>
11566#include <string.h>
11567/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11568 <wchar.h>.
11569 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11570 included before <wchar.h>. */
11571#include <stddef.h>
11572#include <stdio.h>
11573#include <time.h>
11574#include <wchar.h>
11575int main ()
11576{
11577 int result = 0;
11578
11579 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
11580 {
11581 char input[] = "\303\237er";
11582 mbstate_t state;
11583 wchar_t wc;
11584 size_t ret;
11585
11586 memset (&state, '\0', sizeof (mbstate_t));
11587 wc = (wchar_t) 0xBADFACE;
11588 ret = mbrtowc (&wc, input, 5, &state);
11589 if (ret != 2)
11590 result |= 1;
11591 if (!mbsinit (&state))
11592 result |= 2;
c971b7fa 11593
8690e634
JK
11594 memset (&state, '\0', sizeof (mbstate_t));
11595 ret = mbrtowc (NULL, input, 5, &state);
11596 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
11597 result |= 4;
11598 if (!mbsinit (&state))
11599 result |= 8;
11600 }
11601 return result;
11602}
c971b7fa 11603_ACEOF
8690e634
JK
11604if ac_fn_c_try_run "$LINENO"; then :
11605 gl_cv_func_mbrtowc_null_arg1=yes
11606else
11607 gl_cv_func_mbrtowc_null_arg1=no
11608fi
11609rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11610 conftest.$ac_objext conftest.beam conftest.$ac_ext
11611fi
c971b7fa 11612
8690e634 11613 fi
c971b7fa 11614
c971b7fa 11615fi
8690e634
JK
11616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
11617$as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
c971b7fa 11618
c971b7fa 11619
c971b7fa 11620
c971b7fa 11621
8690e634
JK
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
11623$as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
11624if test "${gl_cv_func_mbrtowc_null_arg2+set}" = set; then :
11625 $as_echo_n "(cached) " >&6
11626else
c971b7fa 11627
8690e634
JK
11628 case "$host_os" in
11629 # Guess no on OSF/1.
11630 osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
11631 # Guess yes otherwise.
11632 *) gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
11633 esac
11634 if test $LOCALE_FR_UTF8 != none; then
11635 if test "$cross_compiling" = yes; then :
c971b7fa 11636 :
8690e634
JK
11637else
11638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11639/* end confdefs.h. */
11640
11641#include <locale.h>
11642#include <string.h>
11643/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11644 <wchar.h>.
11645 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11646 included before <wchar.h>. */
11647#include <stddef.h>
11648#include <stdio.h>
11649#include <time.h>
11650#include <wchar.h>
11651int main ()
11652{
11653 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
11654 {
11655 mbstate_t state;
11656 wchar_t wc;
11657 int ret;
11658
11659 memset (&state, '\0', sizeof (mbstate_t));
11660 wc = (wchar_t) 0xBADFACE;
11661 mbrtowc (&wc, NULL, 5, &state);
11662 /* Check that wc was not modified. */
11663 if (wc != (wchar_t) 0xBADFACE)
11664 return 1;
11665 }
11666 return 0;
11667}
11668_ACEOF
11669if ac_fn_c_try_run "$LINENO"; then :
11670 gl_cv_func_mbrtowc_null_arg2=yes
11671else
11672 gl_cv_func_mbrtowc_null_arg2=no
11673fi
11674rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11675 conftest.$ac_objext conftest.beam conftest.$ac_ext
11676fi
11677
11678 fi
11679
11680fi
11681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
11682$as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
c971b7fa
PA
11683
11684
11685
11686
11687
11688
8690e634
JK
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
11690$as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
11691if test "${gl_cv_func_mbrtowc_retval+set}" = set; then :
11692 $as_echo_n "(cached) " >&6
11693else
11694
11695 case "$host_os" in
11696 # Guess no on HP-UX, Solaris, native Windows.
11697 hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
11698 # Guess yes otherwise.
11699 *) gl_cv_func_mbrtowc_retval="guessing yes" ;;
11700 esac
11701 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
11702 || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
11703 if test "$cross_compiling" = yes; then :
c971b7fa 11704 :
8690e634
JK
11705else
11706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11707/* end confdefs.h. */
c971b7fa 11708
8690e634
JK
11709#include <locale.h>
11710#include <string.h>
11711/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11712 <wchar.h>.
11713 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11714 included before <wchar.h>. */
11715#include <stddef.h>
11716#include <stdio.h>
11717#include <time.h>
11718#include <wchar.h>
11719int main ()
11720{
11721 int result = 0;
11722 int found_some_locale = 0;
11723 /* This fails on Solaris. */
11724 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
11725 {
11726 char input[] = "B\303\274\303\237er"; /* "Büßer" */
11727 mbstate_t state;
11728 wchar_t wc;
11729
11730 memset (&state, '\0', sizeof (mbstate_t));
11731 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
11732 {
11733 input[1] = '\0';
11734 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
11735 result |= 1;
11736 }
11737 found_some_locale = 1;
11738 }
11739 /* This fails on HP-UX 11.11. */
11740 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
11741 {
11742 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
11743 mbstate_t state;
11744 wchar_t wc;
11745
11746 memset (&state, '\0', sizeof (mbstate_t));
11747 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
11748 {
11749 input[1] = '\0';
11750 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
11751 result |= 2;
11752 }
11753 found_some_locale = 1;
11754 }
11755 /* This fails on native Windows. */
11756 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
11757 {
11758 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
11759 mbstate_t state;
11760 wchar_t wc;
11761
11762 memset (&state, '\0', sizeof (mbstate_t));
11763 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
11764 {
11765 input[3] = '\0';
11766 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
11767 result |= 4;
11768 }
11769 found_some_locale = 1;
11770 }
11771 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
11772 {
11773 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
11774 mbstate_t state;
11775 wchar_t wc;
11776
11777 memset (&state, '\0', sizeof (mbstate_t));
11778 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
11779 {
11780 input[3] = '\0';
11781 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
11782 result |= 8;
11783 }
11784 found_some_locale = 1;
11785 }
11786 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
11787 {
11788 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
11789 mbstate_t state;
11790 wchar_t wc;
11791
11792 memset (&state, '\0', sizeof (mbstate_t));
11793 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
11794 {
11795 input[3] = '\0';
11796 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
11797 result |= 16;
11798 }
11799 found_some_locale = 1;
11800 }
11801 return (found_some_locale ? result : 77);
11802}
11803_ACEOF
11804if ac_fn_c_try_run "$LINENO"; then :
11805 gl_cv_func_mbrtowc_retval=yes
11806else
11807 if test $? != 77; then
11808 gl_cv_func_mbrtowc_retval=no
11809 fi
c971b7fa 11810
8690e634
JK
11811fi
11812rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11813 conftest.$ac_objext conftest.beam conftest.$ac_ext
11814fi
c971b7fa 11815
8690e634 11816 fi
c971b7fa 11817
8690e634
JK
11818fi
11819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
11820$as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
c971b7fa
PA
11821
11822
11823
11824
8690e634
JK
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
11826$as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
11827if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then :
c971b7fa
PA
11828 $as_echo_n "(cached) " >&6
11829else
8690e634
JK
11830
11831 case "$host_os" in
11832 # Guess no on Solaris 8 and 9.
11833 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
11834 # Guess yes otherwise.
11835 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
11836 esac
11837 if test $LOCALE_ZH_CN != none; then
11838 if test "$cross_compiling" = yes; then :
11839 :
c971b7fa
PA
11840else
11841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11842/* end confdefs.h. */
11843
8690e634 11844#include <locale.h>
c971b7fa 11845#include <string.h>
8690e634
JK
11846/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11847 <wchar.h>.
11848 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11849 included before <wchar.h>. */
11850#include <stddef.h>
11851#include <stdio.h>
11852#include <time.h>
11853#include <wchar.h>
11854int main ()
c971b7fa 11855{
8690e634
JK
11856 /* This fails on Solaris 8 and 9. */
11857 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
c971b7fa 11858 {
8690e634
JK
11859 mbstate_t state;
11860 wchar_t wc;
c971b7fa 11861
8690e634
JK
11862 memset (&state, '\0', sizeof (mbstate_t));
11863 if (mbrtowc (&wc, "", 1, &state) != 0)
11864 return 1;
11865 }
c971b7fa
PA
11866 return 0;
11867}
11868_ACEOF
11869if ac_fn_c_try_run "$LINENO"; then :
8690e634 11870 gl_cv_func_mbrtowc_nul_retval=yes
c971b7fa 11871else
8690e634 11872 gl_cv_func_mbrtowc_nul_retval=no
c971b7fa
PA
11873fi
11874rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11875 conftest.$ac_objext conftest.beam conftest.$ac_ext
11876fi
11877
8690e634
JK
11878 fi
11879
c971b7fa 11880fi
8690e634
JK
11881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
11882$as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
11883
11884 case "$gl_cv_func_mbrtowc_null_arg1" in
11885 *yes) ;;
11886 *)
11887$as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
11888
11889 REPLACE_MBRTOWC=1
11890 ;;
11891 esac
11892 case "$gl_cv_func_mbrtowc_null_arg2" in
11893 *yes) ;;
11894 *)
11895$as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
11896
11897 REPLACE_MBRTOWC=1
11898 ;;
11899 esac
11900 case "$gl_cv_func_mbrtowc_retval" in
11901 *yes) ;;
11902 *)
11903$as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
11904
11905 REPLACE_MBRTOWC=1
11906 ;;
11907 esac
11908 case "$gl_cv_func_mbrtowc_nul_retval" in
11909 *yes) ;;
11910 *)
11911$as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
11912
11913 REPLACE_MBRTOWC=1
11914 ;;
11915 esac
c971b7fa
PA
11916 fi
11917 fi
11918
a512b375 11919 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
c971b7fa 11920
c971b7fa 11921
c971b7fa
PA
11922
11923
11924
11925
11926
11927
8690e634
JK
11928 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
11929
11930
11931 :
c971b7fa 11932
a512b375 11933 fi
c971b7fa 11934
8690e634
JK
11935
11936
11937
11938
11939 GNULIB_MBRTOWC=1
11940
11941
11942
11943
11944
11945$as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
c971b7fa
PA
11958
11959 :
11960
11961
11962
11963
11964
c971b7fa 11965
8690e634
JK
11966 :
11967
11968
11969
c971b7fa 11970
c971b7fa 11971
8690e634 11972 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
c971b7fa 11973
8690e634
JK
11974
11975
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
11977$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
11978if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
11979 $as_echo_n "(cached) " >&6
11980else
11981
11982 case "$host_os" in
11983 # Guess no on AIX and OSF/1.
11984 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
11985 # Guess yes otherwise.
11986 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
11987 esac
11988 if test $LOCALE_JA != none; then
11989 if test "$cross_compiling" = yes; then :
11990 :
c971b7fa
PA
11991else
11992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11993/* end confdefs.h. */
11994
8690e634
JK
11995#include <locale.h>
11996#include <string.h>
11997/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11998 <wchar.h>.
11999 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12000 included before <wchar.h>. */
12001#include <stddef.h>
12002#include <stdio.h>
12003#include <time.h>
12004#include <wchar.h>
12005int main ()
c971b7fa 12006{
8690e634 12007 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
c971b7fa 12008 {
8690e634
JK
12009 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
12010 mbstate_t state;
12011 wchar_t wc;
12012
12013 memset (&state, '\0', sizeof (mbstate_t));
12014 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
12015 if (mbsinit (&state))
12016 return 1;
c971b7fa 12017 }
c971b7fa
PA
12018 return 0;
12019}
12020_ACEOF
12021if ac_fn_c_try_run "$LINENO"; then :
8690e634 12022 gl_cv_func_mbrtowc_incomplete_state=yes
c971b7fa 12023else
8690e634 12024 gl_cv_func_mbrtowc_incomplete_state=no
c971b7fa
PA
12025fi
12026rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12027 conftest.$ac_objext conftest.beam conftest.$ac_ext
12028fi
12029
8690e634 12030 fi
c971b7fa
PA
12031
12032fi
8690e634
JK
12033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
12034$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
c971b7fa
PA
12035
12036
c971b7fa
PA
12037
12038
8690e634
JK
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
12040$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
12041if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
c971b7fa
PA
12042 $as_echo_n "(cached) " >&6
12043else
8690e634
JK
12044
12045 case "$host_os" in
12046 # Guess no on Solaris 8.
12047 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
12048 # Guess yes otherwise.
12049 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
12050 esac
12051 if test $LOCALE_ZH_CN != none; then
12052 if test "$cross_compiling" = yes; then :
12053 :
12054else
c971b7fa
PA
12055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12056/* end confdefs.h. */
8690e634
JK
12057
12058#include <locale.h>
12059#include <stdlib.h>
12060#include <string.h>
12061/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12062 <wchar.h>.
12063 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12064 included before <wchar.h>. */
c971b7fa 12065#include <stddef.h>
8690e634
JK
12066#include <stdio.h>
12067#include <time.h>
12068#include <wchar.h>
12069int main ()
c971b7fa 12070{
8690e634
JK
12071 /* This fails on Solaris 8:
12072 mbrtowc returns 2, and sets wc to 0x00F0.
12073 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
12074 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
12075 {
12076 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
12077 mbstate_t state;
12078 wchar_t wc;
12079
12080 memset (&state, '\0', sizeof (mbstate_t));
12081 if (mbrtowc (&wc, input + 3, 6, &state) != 4
12082 && mbtowc (&wc, input + 3, 6) == 4)
12083 return 1;
12084 }
c971b7fa
PA
12085 return 0;
12086}
12087_ACEOF
8690e634
JK
12088if ac_fn_c_try_run "$LINENO"; then :
12089 gl_cv_func_mbrtowc_sanitycheck=yes
c971b7fa 12090else
8690e634 12091 gl_cv_func_mbrtowc_sanitycheck=no
c971b7fa 12092fi
8690e634
JK
12093rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12094 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 12095fi
c971b7fa 12096
8690e634
JK
12097 fi
12098
12099fi
12100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
12101$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
c971b7fa 12102
8690e634
JK
12103 REPLACE_MBSTATE_T=0
12104 case "$gl_cv_func_mbrtowc_incomplete_state" in
12105 *yes) ;;
12106 *) REPLACE_MBSTATE_T=1 ;;
12107 esac
12108 case "$gl_cv_func_mbrtowc_sanitycheck" in
12109 *yes) ;;
12110 *) REPLACE_MBSTATE_T=1 ;;
12111 esac
12112 else
12113 REPLACE_MBSTATE_T=1
c971b7fa
PA
12114 fi
12115
c971b7fa 12116
8690e634
JK
12117
12118 :
12119
12120
12121
12122
12123
12124 if test $ac_cv_func_mbsinit = no; then
12125 HAVE_MBSINIT=0
12126 ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
12127/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12128 <wchar.h>.
12129 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12130 included before <wchar.h>. */
12131#include <stddef.h>
12132#include <stdio.h>
12133#include <time.h>
12134#include <wchar.h>
12135
12136"
12137if test "x$ac_cv_have_decl_mbsinit" = x""yes; then :
12138 ac_have_decl=1
12139else
12140 ac_have_decl=0
c971b7fa 12141fi
c971b7fa 12142
8690e634
JK
12143cat >>confdefs.h <<_ACEOF
12144#define HAVE_DECL_MBSINIT $ac_have_decl
c971b7fa 12145_ACEOF
c971b7fa 12146
8690e634
JK
12147 if test $ac_cv_have_decl_mbsinit = yes; then
12148 REPLACE_MBSINIT=1
12149 fi
12150 else
12151 if test $REPLACE_MBSTATE_T = 1; then
12152 REPLACE_MBSINIT=1
12153 else
12154 case "$host_os" in
12155 mingw*) REPLACE_MBSINIT=1 ;;
12156 esac
12157 fi
12158 fi
c971b7fa 12159
a512b375 12160 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
c971b7fa
PA
12161
12162
12163
12164
12165
12166
12167
12168
8690e634 12169 gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
c971b7fa
PA
12170
12171
8690e634 12172 :
c971b7fa 12173
a512b375 12174 fi
c971b7fa 12175
c971b7fa 12176
c971b7fa 12177
c971b7fa
PA
12178
12179
8690e634 12180 GNULIB_MBSINIT=1
c971b7fa 12181
c971b7fa
PA
12182
12183
12184
12185
8690e634 12186$as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
c971b7fa
PA
12187
12188
c971b7fa 12189
c971b7fa 12190
c971b7fa
PA
12191
12192
12193
c971b7fa 12194
c971b7fa
PA
12195
12196
12197
12198
8690e634 12199 :
c971b7fa
PA
12200
12201
12202
12203
12204
c971b7fa 12205
8690e634
JK
12206 :
12207
12208
12209
12210
12211
12212 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
c971b7fa
PA
12213
12214
12215
8690e634
JK
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
12217$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
12218if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
12219 $as_echo_n "(cached) " >&6
12220else
c971b7fa 12221
8690e634
JK
12222 case "$host_os" in
12223 # Guess no on AIX and OSF/1.
12224 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
12225 # Guess yes otherwise.
12226 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
c971b7fa 12227 esac
8690e634
JK
12228 if test $LOCALE_JA != none; then
12229 if test "$cross_compiling" = yes; then :
12230 :
12231else
12232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c971b7fa 12233/* end confdefs.h. */
c971b7fa 12234
8690e634
JK
12235#include <locale.h>
12236#include <string.h>
12237/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12238 <wchar.h>.
12239 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12240 included before <wchar.h>. */
12241#include <stddef.h>
12242#include <stdio.h>
12243#include <time.h>
12244#include <wchar.h>
12245int main ()
12246{
12247 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
12248 {
12249 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
12250 mbstate_t state;
12251 wchar_t wc;
12252
12253 memset (&state, '\0', sizeof (mbstate_t));
12254 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
12255 if (mbsinit (&state))
12256 return 1;
12257 }
c971b7fa
PA
12258 return 0;
12259}
12260_ACEOF
8690e634
JK
12261if ac_fn_c_try_run "$LINENO"; then :
12262 gl_cv_func_mbrtowc_incomplete_state=yes
12263else
12264 gl_cv_func_mbrtowc_incomplete_state=no
12265fi
12266rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12267 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 12268fi
c971b7fa 12269
8690e634 12270 fi
c971b7fa 12271
8690e634
JK
12272fi
12273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
12274$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
c971b7fa 12275
8690e634
JK
12276
12277
12278
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
12280$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
12281if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
c971b7fa
PA
12282 $as_echo_n "(cached) " >&6
12283else
8690e634
JK
12284
12285 case "$host_os" in
12286 # Guess no on Solaris 8.
12287 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
12288 # Guess yes otherwise.
12289 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
12290 esac
12291 if test $LOCALE_ZH_CN != none; then
12292 if test "$cross_compiling" = yes; then :
12293 :
12294else
c971b7fa
PA
12295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12296/* end confdefs.h. */
c971b7fa 12297
8690e634
JK
12298#include <locale.h>
12299#include <stdlib.h>
12300#include <string.h>
12301/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12302 <wchar.h>.
12303 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12304 included before <wchar.h>. */
12305#include <stddef.h>
12306#include <stdio.h>
12307#include <time.h>
12308#include <wchar.h>
12309int main ()
c971b7fa 12310{
8690e634
JK
12311 /* This fails on Solaris 8:
12312 mbrtowc returns 2, and sets wc to 0x00F0.
12313 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
12314 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
12315 {
12316 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
12317 mbstate_t state;
12318 wchar_t wc;
12319
12320 memset (&state, '\0', sizeof (mbstate_t));
12321 if (mbrtowc (&wc, input + 3, 6, &state) != 4
12322 && mbtowc (&wc, input + 3, 6) == 4)
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_sanitycheck=yes
c971b7fa 12330else
8690e634 12331 gl_cv_func_mbrtowc_sanitycheck=no
c971b7fa 12332fi
8690e634
JK
12333rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12334 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 12335fi
8690e634
JK
12336
12337 fi
12338
12339fi
12340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
12341$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
12342
12343 REPLACE_MBSTATE_T=0
12344 case "$gl_cv_func_mbrtowc_incomplete_state" in
12345 *yes) ;;
12346 *) REPLACE_MBSTATE_T=1 ;;
12347 esac
12348 case "$gl_cv_func_mbrtowc_sanitycheck" in
12349 *yes) ;;
12350 *) REPLACE_MBSTATE_T=1 ;;
12351 esac
c971b7fa 12352 else
8690e634 12353 REPLACE_MBSTATE_T=1
c971b7fa
PA
12354 fi
12355
12356
c971b7fa 12357
8690e634 12358 :
c971b7fa 12359
c971b7fa 12360
c971b7fa 12361
c971b7fa 12362
8690e634
JK
12363
12364 if test $ac_cv_func_mbsrtowcs = no; then
12365 HAVE_MBSRTOWCS=0
12366 ac_fn_c_check_decl "$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
12367/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12368 <wchar.h>.
12369 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12370 included before <wchar.h>. */
12371#include <stddef.h>
12372#include <stdio.h>
12373#include <time.h>
12374#include <wchar.h>
12375
12376"
12377if test "x$ac_cv_have_decl_mbsrtowcs" = x""yes; then :
12378 ac_have_decl=1
c971b7fa 12379else
8690e634 12380 ac_have_decl=0
c971b7fa 12381fi
c971b7fa 12382
8690e634
JK
12383cat >>confdefs.h <<_ACEOF
12384#define HAVE_DECL_MBSRTOWCS $ac_have_decl
12385_ACEOF
c971b7fa 12386
8690e634
JK
12387 if test $ac_cv_have_decl_mbsrtowcs = yes; then
12388 REPLACE_MBSRTOWCS=1
12389 fi
c971b7fa 12390 else
8690e634
JK
12391 if test $REPLACE_MBSTATE_T = 1; then
12392 REPLACE_MBSRTOWCS=1
12393 else
c971b7fa 12394
8690e634
JK
12395
12396
12397
12398
12399
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
12401$as_echo_n "checking whether mbsrtowcs works... " >&6; }
12402if test "${gl_cv_func_mbsrtowcs_works+set}" = set; then :
c971b7fa
PA
12403 $as_echo_n "(cached) " >&6
12404else
8690e634
JK
12405
12406 case "$host_os" in
12407 # Guess no on HP-UX, Solaris, mingw.
12408 hpux* | solaris* | mingw*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
12409 # Guess yes otherwise.
12410 *) gl_cv_func_mbsrtowcs_works="guessing yes" ;;
12411 esac
12412 if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
12413 if test "$cross_compiling" = yes; then :
12414 :
12415else
c971b7fa
PA
12416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12417/* end confdefs.h. */
c971b7fa 12418
8690e634
JK
12419#include <locale.h>
12420#include <string.h>
12421/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12422 <wchar.h>.
12423 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12424 included before <wchar.h>. */
12425#include <stddef.h>
12426#include <stdio.h>
12427#include <time.h>
12428#include <wchar.h>
12429int main ()
c971b7fa 12430{
8690e634
JK
12431 int result = 0;
12432 /* Test whether the function supports a NULL destination argument.
12433 This fails on native Windows. */
12434 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
12435 {
12436 const char input[] = "\337er";
12437 const char *src = input;
12438 mbstate_t state;
c971b7fa 12439
8690e634
JK
12440 memset (&state, '\0', sizeof (mbstate_t));
12441 if (mbsrtowcs (NULL, &src, 1, &state) != 3
12442 || src != input)
12443 result |= 1;
12444 }
12445 /* Test whether the function works when started with a conversion state
12446 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
12447 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
12448 {
12449 const char input[] = "B\303\274\303\237er";
12450 mbstate_t state;
12451
12452 memset (&state, '\0', sizeof (mbstate_t));
12453 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
12454 if (!mbsinit (&state))
12455 {
12456 const char *src = input + 2;
12457 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
12458 result |= 2;
12459 }
12460 }
12461 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
12462 {
12463 const char input[] = "<\306\374\313\334\270\354>";
12464 mbstate_t state;
12465
12466 memset (&state, '\0', sizeof (mbstate_t));
12467 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
12468 if (!mbsinit (&state))
12469 {
12470 const char *src = input + 4;
12471 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
12472 result |= 4;
12473 }
12474 }
12475 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
12476 {
12477 const char input[] = "B\250\271\201\060\211\070er";
12478 mbstate_t state;
12479
12480 memset (&state, '\0', sizeof (mbstate_t));
12481 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
12482 if (!mbsinit (&state))
12483 {
12484 const char *src = input + 2;
12485 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
12486 result |= 8;
12487 }
12488 }
12489 return result;
c971b7fa
PA
12490}
12491_ACEOF
8690e634
JK
12492if ac_fn_c_try_run "$LINENO"; then :
12493 gl_cv_func_mbsrtowcs_works=yes
c971b7fa 12494else
8690e634 12495 gl_cv_func_mbsrtowcs_works=no
c971b7fa 12496fi
8690e634
JK
12497rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12498 conftest.$ac_objext conftest.beam conftest.$ac_ext
c971b7fa 12499fi
8690e634
JK
12500
12501 fi
12502
12503fi
12504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
12505$as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
12506
12507 case "$gl_cv_func_mbsrtowcs_works" in
12508 *yes) ;;
12509 *) REPLACE_MBSRTOWCS=1 ;;
12510 esac
12511 fi
c971b7fa
PA
12512 fi
12513
a512b375 12514 if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
c971b7fa 12515
c971b7fa 12516
c971b7fa 12517
c971b7fa 12518
c971b7fa 12519
c971b7fa 12520
c971b7fa
PA
12521
12522
8690e634
JK
12523 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext"
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
12534
12535
12536 :
12537
a512b375 12538 fi
8690e634
JK
12539
12540
12541
12542
12543
12544 GNULIB_MBSRTOWCS=1
12545
12546
12547
12548
12549
12550$as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
c971b7fa
PA
12551
12552
12553
12554
a512b375 12555 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
c971b7fa
PA
12556
12557
12558
12559
12560
12561
12562
12563
12564 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
12565
12566
12567 for ac_header in bp-sym.h
12568do :
12569 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
12570if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
12571 cat >>confdefs.h <<_ACEOF
12572#define HAVE_BP_SYM_H 1
12573_ACEOF
12574
12575fi
12576
12577done
12578
12579
a512b375 12580 fi
c971b7fa
PA
12581
12582
12583
12584
12585
12586 GNULIB_MEMCHR=1
12587
12588
12589
12590
12591
12592$as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
12593
12594
12595
12596
12597
12598 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
12600$as_echo_n "checking whether memmem works in linear time... " >&6; }
12601if test "${gl_cv_func_memmem_works_fast+set}" = set; then :
12602 $as_echo_n "(cached) " >&6
12603else
12604 if test "$cross_compiling" = yes; then :
12605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12606/* end confdefs.h. */
12607
12608#include <features.h>
12609#ifdef __GNU_LIBRARY__
12610 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
12611 && !defined __UCLIBC__
12612 Lucky user
12613 #endif
12614#endif
12615#ifdef __CYGWIN__
12616 #include <cygwin/version.h>
12617 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
12618 Lucky user
12619 #endif
12620#endif
12621
12622_ACEOF
12623if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12624 $EGREP "Lucky user" >/dev/null 2>&1; then :
40a73391 12625 gl_cv_func_memmem_works_fast="guessing yes"
c971b7fa
PA
12626else
12627 gl_cv_func_memmem_works_fast="guessing no"
12628fi
12629rm -f conftest*
12630
12631
12632else
12633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12634/* end confdefs.h. */
12635
12636#include <signal.h> /* for signal */
12637#include <string.h> /* for memmem */
12638#include <stdlib.h> /* for malloc */
12639#include <unistd.h> /* for alarm */
12640static void quit (int sig) { exit (sig + 128); }
12641
12642int
12643main ()
12644{
12645
12646 int result = 0;
12647 size_t m = 1000000;
12648 char *haystack = (char *) malloc (2 * m + 1);
12649 char *needle = (char *) malloc (m + 1);
12650 /* Failure to compile this test due to missing alarm is okay,
12651 since all such platforms (mingw) also lack memmem. */
12652 signal (SIGALRM, quit);
12653 alarm (5);
12654 /* Check for quadratic performance. */
12655 if (haystack && needle)
12656 {
12657 memset (haystack, 'A', 2 * m);
12658 haystack[2 * m] = 'B';
12659 memset (needle, 'A', m);
12660 needle[m] = 'B';
12661 if (!memmem (haystack, 2 * m + 1, needle, m + 1))
12662 result |= 1;
12663 }
12664 return result;
12665
12666 ;
12667 return 0;
12668}
12669_ACEOF
12670if ac_fn_c_try_run "$LINENO"; then :
12671 gl_cv_func_memmem_works_fast=yes
12672else
12673 gl_cv_func_memmem_works_fast=no
12674fi
12675rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12676 conftest.$ac_objext conftest.beam conftest.$ac_ext
12677fi
12678
12679
12680fi
12681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
12682$as_echo "$gl_cv_func_memmem_works_fast" >&6; }
40a73391
JK
12683 case "$gl_cv_func_memmem_works_fast" in
12684 *yes) ;;
12685 *)
12686 REPLACE_MEMMEM=1
12687 ;;
12688 esac
c971b7fa
PA
12689 fi
12690
a512b375 12691 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
c971b7fa
PA
12692
12693
12694
12695
12696
12697
12698
12699
12700 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
12701
a512b375 12702 fi
c971b7fa
PA
12703
12704
12705
12706
12707 for ac_func in memmem
12708do :
12709 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
12710if test "x$ac_cv_func_memmem" = x""yes; then :
12711 cat >>confdefs.h <<_ACEOF
12712#define HAVE_MEMMEM 1
12713_ACEOF
12714
12715fi
12716done
12717
12718 if test $ac_cv_func_memmem = yes; then
12719 HAVE_MEMMEM=1
12720 else
12721 HAVE_MEMMEM=0
12722 fi
12723
12724 :
12725
12726
12727
12728
12729
12730 if test $ac_cv_have_decl_memmem = no; then
12731 HAVE_DECL_MEMMEM=0
12732 else
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
12734$as_echo_n "checking whether memmem works... " >&6; }
12735if test "${gl_cv_func_memmem_works_always+set}" = set; then :
12736 $as_echo_n "(cached) " >&6
12737else
12738 if test "$cross_compiling" = yes; then :
12739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12740/* end confdefs.h. */
12741
12742#ifdef __GNU_LIBRARY__
12743 #include <features.h>
12744 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
12745 || __GLIBC_MINOR__ > 12)) \
12746 || (__GLIBC__ > 2)) \
12747 || defined __UCLIBC__
12748 Lucky user
12749 #endif
12750#elif defined __CYGWIN__
12751 #include <cygwin/version.h>
12752 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
12753 Lucky user
12754 #endif
12755#else
12756 Lucky user
12757#endif
12758
12759_ACEOF
12760if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12761 $EGREP "Lucky user" >/dev/null 2>&1; then :
40a73391 12762 gl_cv_func_memmem_works_always="guessing yes"
c971b7fa
PA
12763else
12764 gl_cv_func_memmem_works_always="guessing no"
12765fi
12766rm -f conftest*
12767
12768
12769else
12770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12771/* end confdefs.h. */
12772
12773#include <string.h> /* for memmem */
12774#define P "_EF_BF_BD"
12775#define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
12776#define NEEDLE P P P P P
12777
12778int
12779main ()
12780{
12781
12782 int result = 0;
12783 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
12784 result |= 1;
12785 /* Check for empty needle behavior. */
12786 {
12787 const char *haystack = "AAA";
12788 if (memmem (haystack, 3, NULL, 0) != haystack)
12789 result |= 2;
12790 }
12791 return result;
12792
12793 ;
12794 return 0;
12795}
12796_ACEOF
12797if ac_fn_c_try_run "$LINENO"; then :
12798 gl_cv_func_memmem_works_always=yes
12799else
12800 gl_cv_func_memmem_works_always=no
12801fi
12802rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12803 conftest.$ac_objext conftest.beam conftest.$ac_ext
12804fi
12805
12806
12807fi
12808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
12809$as_echo "$gl_cv_func_memmem_works_always" >&6; }
40a73391
JK
12810 case "$gl_cv_func_memmem_works_always" in
12811 *yes) ;;
12812 *)
12813 REPLACE_MEMMEM=1
12814 ;;
12815 esac
c971b7fa
PA
12816 fi
12817 :
12818
a512b375 12819 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
c971b7fa
PA
12820
12821
12822
12823
12824
12825
12826
12827
12828 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
12829
a512b375 12830 fi
c971b7fa
PA
12831
12832
12833
12834
12835
12836 GNULIB_MEMMEM=1
12837
12838
12839
12840
12841
8690e634
JK
12842$as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
12843
12844
12845
12846
12847
12848
12849
12850 # Define two additional variables used in the Makefile substitution.
12851
12852 if test "$ac_cv_header_stdbool_h" = yes; then
12853 STDBOOL_H=''
12854 else
12855 STDBOOL_H='stdbool.h'
12856 fi
12857
12858 if test -n "$STDBOOL_H"; then
12859 GL_GENERATE_STDBOOL_H_TRUE=
12860 GL_GENERATE_STDBOOL_H_FALSE='#'
12861else
12862 GL_GENERATE_STDBOOL_H_TRUE='#'
12863 GL_GENERATE_STDBOOL_H_FALSE=
12864fi
12865
12866
12867 if test "$ac_cv_type__Bool" = yes; then
12868 HAVE__BOOL=1
12869 else
12870 HAVE__BOOL=0
12871 fi
12872
12873
12874
12875
12876
12877 STDDEF_H=
12878 if test $gt_cv_c_wchar_t = no; then
12879 HAVE_WCHAR_T=0
12880 STDDEF_H=stddef.h
12881 fi
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
12883$as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
12884if test "${gl_cv_decl_null_works+set}" = set; then :
12885 $as_echo_n "(cached) " >&6
12886else
12887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12888/* end confdefs.h. */
12889#include <stddef.h>
12890 int test[2 * (sizeof NULL == sizeof (void *)) -1];
12891
12892int
12893main ()
12894{
12895
12896 ;
12897 return 0;
12898}
12899_ACEOF
12900if ac_fn_c_try_compile "$LINENO"; then :
12901 gl_cv_decl_null_works=yes
12902else
12903 gl_cv_decl_null_works=no
12904fi
12905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12906fi
12907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
12908$as_echo "$gl_cv_decl_null_works" >&6; }
12909 if test $gl_cv_decl_null_works = no; then
12910 REPLACE_NULL=1
12911 STDDEF_H=stddef.h
12912 fi
12913
12914 if test -n "$STDDEF_H"; then
12915 GL_GENERATE_STDDEF_H_TRUE=
12916 GL_GENERATE_STDDEF_H_FALSE='#'
12917else
12918 GL_GENERATE_STDDEF_H_TRUE='#'
12919 GL_GENERATE_STDDEF_H_FALSE=
12920fi
12921
12922 if test -n "$STDDEF_H"; then
12923
12924
12925
12926
12927
12928
12929
12930
12931 if test $gl_cv_have_include_next = yes; then
12932 gl_cv_next_stddef_h='<'stddef.h'>'
12933 else
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
12935$as_echo_n "checking absolute name of <stddef.h>... " >&6; }
12936if test "${gl_cv_next_stddef_h+set}" = set; then :
12937 $as_echo_n "(cached) " >&6
12938else
12939
12940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12941/* end confdefs.h. */
12942#include <stddef.h>
12943
12944_ACEOF
12945 case "$host_os" in
12946 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12947 *) gl_absname_cpp="$ac_cpp" ;;
12948 esac
12949
12950 case "$host_os" in
12951 mingw*)
12952 gl_dirsep_regex='[/\\]'
12953 ;;
12954 *)
12955 gl_dirsep_regex='\/'
12956 ;;
12957 esac
12958 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12959
12960 gl_header_literal_regex=`echo 'stddef.h' \
12961 | sed -e "$gl_make_literal_regex_sed"`
12962 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12963 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12964 s|^/[^/]|//&|
12965 p
12966 q
12967 }'
12968 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12969 sed -n "$gl_absolute_header_sed"`'"'
12970
12971
12972fi
12973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
12974$as_echo "$gl_cv_next_stddef_h" >&6; }
12975 fi
12976 NEXT_STDDEF_H=$gl_cv_next_stddef_h
12977
12978 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12979 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12980 gl_next_as_first_directive='<'stddef.h'>'
12981 else
12982 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12983 gl_next_as_first_directive=$gl_cv_next_stddef_h
12984 fi
12985 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
12986
12987
12988
12989
12990 fi
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005 :
13006
13007
13008
13009
13010
13011
13012
13013
13014 if test $gl_cv_have_include_next = yes; then
13015 gl_cv_next_wchar_h='<'wchar.h'>'
13016 else
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
13018$as_echo_n "checking absolute name of <wchar.h>... " >&6; }
13019if test "${gl_cv_next_wchar_h+set}" = set; then :
13020 $as_echo_n "(cached) " >&6
13021else
13022
13023 if test $ac_cv_header_wchar_h = yes; then
13024
13025
13026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13027/* end confdefs.h. */
13028#include <wchar.h>
13029
13030_ACEOF
13031 case "$host_os" in
13032 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13033 *) gl_absname_cpp="$ac_cpp" ;;
13034 esac
13035
13036 case "$host_os" in
13037 mingw*)
13038 gl_dirsep_regex='[/\\]'
13039 ;;
13040 *)
13041 gl_dirsep_regex='\/'
13042 ;;
13043 esac
13044 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
13045
13046 gl_header_literal_regex=`echo 'wchar.h' \
13047 | sed -e "$gl_make_literal_regex_sed"`
13048 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13049 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13050 s|^/[^/]|//&|
13051 p
13052 q
13053 }'
13054 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13055 sed -n "$gl_absolute_header_sed"`'"'
13056 else
13057 gl_cv_next_wchar_h='<'wchar.h'>'
13058 fi
13059
13060
13061fi
13062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
13063$as_echo "$gl_cv_next_wchar_h" >&6; }
13064 fi
13065 NEXT_WCHAR_H=$gl_cv_next_wchar_h
13066
13067 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13068 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13069 gl_next_as_first_directive='<'wchar.h'>'
13070 else
13071 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13072 gl_next_as_first_directive=$gl_cv_next_wchar_h
13073 fi
13074 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
13075
13076
13077
13078
13079 if test $ac_cv_header_wchar_h = yes; then
13080 HAVE_WCHAR_H=1
13081 else
13082 HAVE_WCHAR_H=0
13083 fi
13084
c971b7fa
PA
13085
13086
13087
13088
8690e634
JK
13089 if test $gt_cv_c_wint_t = yes; then
13090 HAVE_WINT_T=1
13091 else
13092 HAVE_WINT_T=0
13093 fi
c971b7fa
PA
13094
13095
13096
8690e634
JK
13097 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
13098 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
13100$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
13101if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
c971b7fa
PA
13102 $as_echo_n "(cached) " >&6
13103else
13104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13105/* end confdefs.h. */
8690e634
JK
13106
13107/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13108 <wchar.h>.
13109 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13110 included before <wchar.h>. */
13111#if !(defined __GLIBC__ && !defined __UCLIBC__)
13112# include <stddef.h>
13113# include <stdio.h>
13114# include <time.h>
13115#endif
13116#include <wchar.h>
c971b7fa
PA
13117
13118int
13119main ()
13120{
8690e634
JK
13121#undef $gl_func
13122 (void) $gl_func;
c971b7fa
PA
13123 ;
13124 return 0;
13125}
13126_ACEOF
13127if ac_fn_c_try_compile "$LINENO"; then :
8690e634 13128 eval "$as_gl_Symbol=yes"
c971b7fa 13129else
8690e634 13130 eval "$as_gl_Symbol=no"
c971b7fa
PA
13131fi
13132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13133fi
8690e634
JK
13134eval ac_res=\$$as_gl_Symbol
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13136$as_echo "$ac_res" >&6; }
13137 eval as_val=\$$as_gl_Symbol
13138 if test "x$as_val" = x""yes; then :
13139 cat >>confdefs.h <<_ACEOF
13140#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
13141_ACEOF
c971b7fa 13142
8690e634 13143 eval ac_cv_have_decl_$gl_func=yes
c971b7fa 13144fi
8690e634
JK
13145 done
13146
13147
13148
13149
13150
13151
13152
13153 :
13154
13155
13156
13157
13158
13159 if test $ac_cv_func_iswcntrl = yes; then
13160 HAVE_ISWCNTRL=1
13161 else
13162 HAVE_ISWCNTRL=0
13163 fi
13164
13165
13166
8690e634
JK
13167 if test $gt_cv_c_wint_t = yes; then
13168 HAVE_WINT_T=1
13169 else
13170 HAVE_WINT_T=0
13171 fi
13172
13173
13174
13175
13176
13177
c971b7fa 13178
8690e634
JK
13179
13180 :
c971b7fa
PA
13181
13182
13183
13184
13185
13186
13187
13188
13189 if test $gl_cv_have_include_next = yes; then
8690e634 13190 gl_cv_next_wctype_h='<'wctype.h'>'
c971b7fa 13191 else
8690e634
JK
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
13193$as_echo_n "checking absolute name of <wctype.h>... " >&6; }
13194if test "${gl_cv_next_wctype_h+set}" = set; then :
c971b7fa
PA
13195 $as_echo_n "(cached) " >&6
13196else
13197
8690e634
JK
13198 if test $ac_cv_header_wctype_h = yes; then
13199
13200
c971b7fa
PA
13201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13202/* end confdefs.h. */
8690e634 13203#include <wctype.h>
c971b7fa
PA
13204
13205_ACEOF
13206 case "$host_os" in
13207 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13208 *) gl_absname_cpp="$ac_cpp" ;;
13209 esac
13210
13211 case "$host_os" in
13212 mingw*)
13213 gl_dirsep_regex='[/\\]'
13214 ;;
13215 *)
13216 gl_dirsep_regex='\/'
13217 ;;
13218 esac
13219 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
13220
8690e634 13221 gl_header_literal_regex=`echo 'wctype.h' \
c971b7fa
PA
13222 | sed -e "$gl_make_literal_regex_sed"`
13223 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13224 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13225 s|^/[^/]|//&|
13226 p
13227 q
13228 }'
8690e634 13229 gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
c971b7fa 13230 sed -n "$gl_absolute_header_sed"`'"'
8690e634
JK
13231 else
13232 gl_cv_next_wctype_h='<'wctype.h'>'
13233 fi
c971b7fa
PA
13234
13235
13236fi
8690e634
JK
13237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
13238$as_echo "$gl_cv_next_wctype_h" >&6; }
c971b7fa 13239 fi
8690e634 13240 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
c971b7fa
PA
13241
13242 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13243 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8690e634 13244 gl_next_as_first_directive='<'wctype.h'>'
c971b7fa
PA
13245 else
13246 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8690e634 13247 gl_next_as_first_directive=$gl_cv_next_wctype_h
c971b7fa 13248 fi
8690e634
JK
13249 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
13250
13251
13252
13253
13254 if test $ac_cv_header_wctype_h = yes; then
13255 if test $ac_cv_func_iswcntrl = yes; then
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
13257$as_echo_n "checking whether iswcntrl works... " >&6; }
13258if test "${gl_cv_func_iswcntrl_works+set}" = set; then :
13259 $as_echo_n "(cached) " >&6
13260else
13261
13262 if test "$cross_compiling" = yes; then :
13263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13264/* end confdefs.h. */
13265#include <stdlib.h>
13266 #if __GNU_LIBRARY__ == 1
13267 Linux libc5 i18n is broken.
13268 #endif
13269int
13270main ()
13271{
13272
13273 ;
13274 return 0;
13275}
13276_ACEOF
13277if ac_fn_c_try_compile "$LINENO"; then :
13278 gl_cv_func_iswcntrl_works="guessing yes"
13279else
13280 gl_cv_func_iswcntrl_works="guessing no"
13281fi
13282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13283
13284else
13285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13286/* end confdefs.h. */
13287
13288 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
13289 included before <wchar.h>.
13290 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
13291 must be included before <wchar.h>. */
13292 #include <stddef.h>
13293 #include <stdio.h>
13294 #include <time.h>
13295 #include <wchar.h>
13296 #include <wctype.h>
13297 int main () { return iswprint ('x') == 0; }
13298
13299_ACEOF
13300if ac_fn_c_try_run "$LINENO"; then :
13301 gl_cv_func_iswcntrl_works=yes
13302else
13303 gl_cv_func_iswcntrl_works=no
13304fi
13305rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13306 conftest.$ac_objext conftest.beam conftest.$ac_ext
13307fi
13308
13309
13310fi
13311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
13312$as_echo "$gl_cv_func_iswcntrl_works" >&6; }
13313 fi
13314 HAVE_WCTYPE_H=1
13315 else
13316 HAVE_WCTYPE_H=0
13317 fi
13318
13319
13320 case "$gl_cv_func_iswcntrl_works" in
13321 *yes) REPLACE_ISWCNTRL=0 ;;
13322 *) REPLACE_ISWCNTRL=1 ;;
13323 esac
13324
13325
13326 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
13327 :
13328 fi
13329
13330 if test $REPLACE_ISWCNTRL = 1; then
13331 REPLACE_TOWLOWER=1
13332 else
13333 for ac_func in towlower
13334do :
13335 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
13336if test "x$ac_cv_func_towlower" = x""yes; then :
13337 cat >>confdefs.h <<_ACEOF
13338#define HAVE_TOWLOWER 1
13339_ACEOF
13340
13341fi
13342done
13343
13344 if test $ac_cv_func_towlower = yes; then
13345 REPLACE_TOWLOWER=0
13346 else
13347 ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
13348 included before <wchar.h>.
13349 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
13350 must be included before <wchar.h>. */
13351 #include <stddef.h>
13352 #include <stdio.h>
13353 #include <time.h>
13354 #include <wchar.h>
13355 #if HAVE_WCTYPE_H
13356 # include <wctype.h>
13357 #endif
13358
13359"
13360if test "x$ac_cv_have_decl_towlower" = x""yes; then :
13361 ac_have_decl=1
13362else
13363 ac_have_decl=0
13364fi
13365
13366cat >>confdefs.h <<_ACEOF
13367#define HAVE_DECL_TOWLOWER $ac_have_decl
13368_ACEOF
13369
13370 if test $ac_cv_have_decl_towlower = yes; then
13371 REPLACE_TOWLOWER=1
13372 else
13373 REPLACE_TOWLOWER=0
13374 fi
13375 fi
13376 fi
13377
13378
13379 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
13380 :
13381 fi
13382
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
13384$as_echo_n "checking for wctype_t... " >&6; }
13385if test "${gl_cv_type_wctype_t+set}" = set; then :
13386 $as_echo_n "(cached) " >&6
13387else
13388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13389/* end confdefs.h. */
13390/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
13391 included before <wchar.h>.
13392 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
13393 must be included before <wchar.h>. */
13394 #include <stddef.h>
13395 #include <stdio.h>
13396 #include <time.h>
13397 #include <wchar.h>
13398 #if HAVE_WCTYPE_H
13399 # include <wctype.h>
13400 #endif
13401 wctype_t a;
13402
13403int
13404main ()
13405{
13406
13407 ;
13408 return 0;
13409}
13410_ACEOF
13411if ac_fn_c_try_compile "$LINENO"; then :
13412 gl_cv_type_wctype_t=yes
13413else
13414 gl_cv_type_wctype_t=no
13415fi
13416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c971b7fa 13417
8690e634
JK
13418fi
13419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
13420$as_echo "$gl_cv_type_wctype_t" >&6; }
13421 if test $gl_cv_type_wctype_t = no; then
13422 HAVE_WCTYPE_T=0
13423 fi
13424
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
13426$as_echo_n "checking for wctrans_t... " >&6; }
13427if test "${gl_cv_type_wctrans_t+set}" = set; then :
13428 $as_echo_n "(cached) " >&6
13429else
13430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13431/* end confdefs.h. */
13432/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
13433 included before <wchar.h>.
13434 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
13435 must be included before <wchar.h>. */
13436 #include <stddef.h>
13437 #include <stdio.h>
13438 #include <time.h>
13439 #include <wchar.h>
13440 #include <wctype.h>
13441 wctrans_t a;
c971b7fa 13442
8690e634
JK
13443int
13444main ()
13445{
c971b7fa 13446
8690e634
JK
13447 ;
13448 return 0;
13449}
13450_ACEOF
13451if ac_fn_c_try_compile "$LINENO"; then :
13452 gl_cv_type_wctrans_t=yes
13453else
13454 gl_cv_type_wctrans_t=no
13455fi
13456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c971b7fa 13457
8690e634
JK
13458fi
13459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
13460$as_echo "$gl_cv_type_wctrans_t" >&6; }
13461 if test $gl_cv_type_wctrans_t = no; then
13462 HAVE_WCTRANS_T=0
c971b7fa
PA
13463 fi
13464
13465
8690e634
JK
13466 for gl_func in wctype iswctype wctrans towctrans ; do
13467 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
13469$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
13470if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
13471 $as_echo_n "(cached) " >&6
13472else
13473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13474/* end confdefs.h. */
13475
13476/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13477 <wchar.h>.
13478 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13479 included before <wchar.h>. */
13480#if !(defined __GLIBC__ && !defined __UCLIBC__)
13481# include <stddef.h>
13482# include <stdio.h>
13483# include <time.h>
13484# include <wchar.h>
13485#endif
13486#include <wctype.h>
13487
13488int
13489main ()
13490{
13491#undef $gl_func
13492 (void) $gl_func;
13493 ;
13494 return 0;
13495}
13496_ACEOF
13497if ac_fn_c_try_compile "$LINENO"; then :
13498 eval "$as_gl_Symbol=yes"
13499else
13500 eval "$as_gl_Symbol=no"
13501fi
13502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13503fi
13504eval ac_res=\$$as_gl_Symbol
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13506$as_echo "$ac_res" >&6; }
13507 eval as_val=\$$as_gl_Symbol
13508 if test "x$as_val" = x""yes; then :
13509 cat >>confdefs.h <<_ACEOF
13510#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
13511_ACEOF
c971b7fa 13512
8690e634
JK
13513 eval ac_cv_have_decl_$gl_func=yes
13514fi
13515 done
c971b7fa
PA
13516
13517
13518 # End of code from modules
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528 gltests_libdeps=
13529 gltests_ltlibdeps=
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539 gl_source_base='tests'
13540 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
13541
13542 gl_module_indicator_condition=$gltests_WITNESS
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552 LIBGNU_LIBDEPS="$gl_libdeps"
13553
13554 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
13555
13556
13557
13558# We don't use automake, but gnulib does. This line lets us generate
13559# its Makefile.in.
13560am__api_version='1.11'
13561
13562# Find a good install program. We prefer a C program (faster),
13563# so one script is as good as another. But avoid the broken or
13564# incompatible versions:
13565# SysV /etc/install, /usr/sbin/install
13566# SunOS /usr/etc/install
13567# IRIX /sbin/install
13568# AIX /bin/install
13569# AmigaOS /C/install, which installs bootblocks on floppy discs
13570# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
13571# AFS /usr/afsws/bin/install, which mishandles nonexistent args
13572# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
13573# OS/2's system install, which has a completely different semantic
13574# ./install, which can be erroneously created by make from ./install.sh.
13575# Reject install programs that cannot install multiple files.
13576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
13577$as_echo_n "checking for a BSD-compatible install... " >&6; }
13578if test -z "$INSTALL"; then
13579if test "${ac_cv_path_install+set}" = set; then :
13580 $as_echo_n "(cached) " >&6
13581else
13582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13583for as_dir in $PATH
13584do
13585 IFS=$as_save_IFS
13586 test -z "$as_dir" && as_dir=.
13587 # Account for people who put trailing slashes in PATH elements.
13588case $as_dir/ in #((
13589 ./ | .// | /[cC]/* | \
13590 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
13591 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
13592 /usr/ucb/* ) ;;
13593 *)
13594 # OSF1 and SCO ODT 3.0 have their own names for install.
13595 # Don't use installbsd from OSF since it installs stuff as root
13596 # by default.
13597 for ac_prog in ginstall scoinst install; do
13598 for ac_exec_ext in '' $ac_executable_extensions; do
13599 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
13600 if test $ac_prog = install &&
13601 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13602 # AIX install. It has an incompatible calling convention.
13603 :
13604 elif test $ac_prog = install &&
13605 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13606 # program-specific install script used by HP pwplus--don't use.
13607 :
13608 else
13609 rm -rf conftest.one conftest.two conftest.dir
13610 echo one > conftest.one
13611 echo two > conftest.two
13612 mkdir conftest.dir
13613 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
13614 test -s conftest.one && test -s conftest.two &&
13615 test -s conftest.dir/conftest.one &&
13616 test -s conftest.dir/conftest.two
13617 then
13618 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
13619 break 3
13620 fi
13621 fi
13622 fi
13623 done
13624 done
13625 ;;
13626esac
13627
13628 done
13629IFS=$as_save_IFS
13630
13631rm -rf conftest.one conftest.two conftest.dir
13632
13633fi
13634 if test "${ac_cv_path_install+set}" = set; then
13635 INSTALL=$ac_cv_path_install
13636 else
13637 # As a last resort, use the slow shell script. Don't cache a
13638 # value for INSTALL within a source directory, because that will
13639 # break other packages using the cache if that directory is
13640 # removed, or if the value is a relative name.
13641 INSTALL=$ac_install_sh
13642 fi
13643fi
13644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
13645$as_echo "$INSTALL" >&6; }
13646
13647# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13648# It thinks the first close brace ends the variable substitution.
13649test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
13650
13651test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
13652
13653test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
13654
13655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
13656$as_echo_n "checking whether build environment is sane... " >&6; }
13657# Just in case
13658sleep 1
13659echo timestamp > conftest.file
13660# Reject unsafe characters in $srcdir or the absolute working directory
13661# name. Accept space and tab only in the latter.
13662am_lf='
13663'
13664case `pwd` in
13665 *[\\\"\#\$\&\'\`$am_lf]*)
13666 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
13667esac
13668case $srcdir in
13669 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
13670 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
13671esac
13672
13673# Do `set' in a subshell so we don't clobber the current shell's
13674# arguments. Must try -L first in case configure is actually a
13675# symlink; some systems play weird games with the mod time of symlinks
13676# (eg FreeBSD returns the mod time of the symlink's containing
13677# directory).
13678if (
13679 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
13680 if test "$*" = "X"; then
13681 # -L didn't work.
13682 set X `ls -t "$srcdir/configure" conftest.file`
13683 fi
13684 rm -f conftest.file
13685 if test "$*" != "X $srcdir/configure conftest.file" \
13686 && test "$*" != "X conftest.file $srcdir/configure"; then
13687
13688 # If neither matched, then we have a broken ls. This can happen
13689 # if, for instance, CONFIG_SHELL is bash and it inherits a
13690 # broken ls alias from the environment. This has actually
13691 # happened. Such a system could not be considered "sane".
13692 as_fn_error "ls -t appears to fail. Make sure there is not a broken
13693alias in your environment" "$LINENO" 5
13694 fi
13695
13696 test "$2" = conftest.file
13697 )
13698then
13699 # Ok.
13700 :
13701else
13702 as_fn_error "newly created file is older than distributed files!
13703Check your system clock" "$LINENO" 5
13704fi
13705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13706$as_echo "yes" >&6; }
13707test "$program_prefix" != NONE &&
13708 program_transform_name="s&^&$program_prefix&;$program_transform_name"
13709# Use a double $ so make ignores it.
13710test "$program_suffix" != NONE &&
13711 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
13712# Double any \ or $.
13713# By default was `s,x,x', remove it if useless.
13714ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
13715program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
13716
13717# expand $ac_aux_dir to an absolute path
13718am_aux_dir=`cd $ac_aux_dir && pwd`
13719
13720if test x"${MISSING+set}" != xset; then
13721 case $am_aux_dir in
13722 *\ * | *\ *)
13723 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
13724 *)
13725 MISSING="\${SHELL} $am_aux_dir/missing" ;;
13726 esac
13727fi
13728# Use eval to expand $SHELL
13729if eval "$MISSING --run true"; then
13730 am_missing_run="$MISSING --run "
13731else
13732 am_missing_run=
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
13734$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
13735fi
13736
13737if test x"${install_sh}" != xset; then
13738 case $am_aux_dir in
13739 *\ * | *\ *)
13740 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
13741 *)
13742 install_sh="\${SHELL} $am_aux_dir/install-sh"
13743 esac
13744fi
13745
13746# Installed binaries are usually stripped using `strip' when the user
13747# run `make install-strip'. However `strip' might not be the right
13748# tool to use in cross-compilation environments, therefore Automake
13749# will honor the `STRIP' environment variable to overrule this program.
13750if test "$cross_compiling" != no; then
13751 if test -n "$ac_tool_prefix"; then
13752 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13753set dummy ${ac_tool_prefix}strip; ac_word=$2
13754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13755$as_echo_n "checking for $ac_word... " >&6; }
13756if test "${ac_cv_prog_STRIP+set}" = set; then :
13757 $as_echo_n "(cached) " >&6
13758else
13759 if test -n "$STRIP"; then
13760 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13761else
13762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13763for as_dir in $PATH
13764do
13765 IFS=$as_save_IFS
13766 test -z "$as_dir" && as_dir=.
13767 for ac_exec_ext in '' $ac_executable_extensions; do
13768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13769 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13771 break 2
13772 fi
13773done
13774 done
13775IFS=$as_save_IFS
13776
13777fi
13778fi
13779STRIP=$ac_cv_prog_STRIP
13780if test -n "$STRIP"; then
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13782$as_echo "$STRIP" >&6; }
13783else
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13785$as_echo "no" >&6; }
13786fi
13787
13788
13789fi
13790if test -z "$ac_cv_prog_STRIP"; then
13791 ac_ct_STRIP=$STRIP
13792 # Extract the first word of "strip", so it can be a program name with args.
13793set dummy strip; ac_word=$2
13794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13795$as_echo_n "checking for $ac_word... " >&6; }
13796if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13797 $as_echo_n "(cached) " >&6
13798else
13799 if test -n "$ac_ct_STRIP"; then
13800 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13801else
13802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13803for as_dir in $PATH
13804do
13805 IFS=$as_save_IFS
13806 test -z "$as_dir" && as_dir=.
13807 for ac_exec_ext in '' $ac_executable_extensions; do
13808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13809 ac_cv_prog_ac_ct_STRIP="strip"
13810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13811 break 2
13812 fi
13813done
13814 done
13815IFS=$as_save_IFS
13816
13817fi
13818fi
13819ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13820if test -n "$ac_ct_STRIP"; then
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13822$as_echo "$ac_ct_STRIP" >&6; }
13823else
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13825$as_echo "no" >&6; }
13826fi
13827
13828 if test "x$ac_ct_STRIP" = x; then
13829 STRIP=":"
13830 else
13831 case $cross_compiling:$ac_tool_warned in
13832yes:)
13833{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13834$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13835ac_tool_warned=yes ;;
13836esac
13837 STRIP=$ac_ct_STRIP
13838 fi
13839else
13840 STRIP="$ac_cv_prog_STRIP"
13841fi
13842
13843fi
13844INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
13845
13846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
13847$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
13848if test -z "$MKDIR_P"; then
13849 if test "${ac_cv_path_mkdir+set}" = set; then :
13850 $as_echo_n "(cached) " >&6
13851else
13852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13853for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
13854do
13855 IFS=$as_save_IFS
13856 test -z "$as_dir" && as_dir=.
13857 for ac_prog in mkdir gmkdir; do
13858 for ac_exec_ext in '' $ac_executable_extensions; do
13859 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
13860 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
13861 'mkdir (GNU coreutils) '* | \
13862 'mkdir (coreutils) '* | \
13863 'mkdir (fileutils) '4.1*)
13864 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
13865 break 3;;
13866 esac
13867 done
13868 done
13869 done
13870IFS=$as_save_IFS
13871
13872fi
13873
13874 if test "${ac_cv_path_mkdir+set}" = set; then
13875 MKDIR_P="$ac_cv_path_mkdir -p"
13876 else
13877 # As a last resort, use the slow shell script. Don't cache a
13878 # value for MKDIR_P within a source directory, because that will
13879 # break other packages using the cache if that directory is
13880 # removed, or if the value is a relative name.
13881 test -d ./--version && rmdir ./--version
13882 MKDIR_P="$ac_install_sh -d"
13883 fi
13884fi
13885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
13886$as_echo "$MKDIR_P" >&6; }
13887
13888
13889mkdir_p="$MKDIR_P"
13890case $mkdir_p in
13891 [\\/$]* | ?:[\\/]*) ;;
13892 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
13893esac
13894
13895for ac_prog in gawk mawk nawk awk
13896do
13897 # Extract the first word of "$ac_prog", so it can be a program name with args.
13898set dummy $ac_prog; ac_word=$2
13899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13900$as_echo_n "checking for $ac_word... " >&6; }
13901if test "${ac_cv_prog_AWK+set}" = set; then :
13902 $as_echo_n "(cached) " >&6
13903else
13904 if test -n "$AWK"; then
13905 ac_cv_prog_AWK="$AWK" # Let the user override the test.
13906else
13907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13908for as_dir in $PATH
13909do
13910 IFS=$as_save_IFS
13911 test -z "$as_dir" && as_dir=.
13912 for ac_exec_ext in '' $ac_executable_extensions; do
13913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13914 ac_cv_prog_AWK="$ac_prog"
13915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13916 break 2
13917 fi
13918done
13919 done
13920IFS=$as_save_IFS
13921
13922fi
13923fi
13924AWK=$ac_cv_prog_AWK
13925if test -n "$AWK"; then
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13927$as_echo "$AWK" >&6; }
13928else
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13930$as_echo "no" >&6; }
13931fi
13932
13933
13934 test -n "$AWK" && break
13935done
13936
13937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
13938$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
13939set x ${MAKE-make}
13940ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
13941if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
13942 $as_echo_n "(cached) " >&6
13943else
13944 cat >conftest.make <<\_ACEOF
13945SHELL = /bin/sh
13946all:
13947 @echo '@@@%%%=$(MAKE)=@@@%%%'
13948_ACEOF
13949# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13950case `${MAKE-make} -f conftest.make 2>/dev/null` in
13951 *@@@%%%=?*=@@@%%%*)
13952 eval ac_cv_prog_make_${ac_make}_set=yes;;
13953 *)
13954 eval ac_cv_prog_make_${ac_make}_set=no;;
13955esac
13956rm -f conftest.make
13957fi
13958if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13960$as_echo "yes" >&6; }
13961 SET_MAKE=
13962else
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13964$as_echo "no" >&6; }
13965 SET_MAKE="MAKE=${MAKE-make}"
13966fi
13967
13968rm -rf .tst 2>/dev/null
13969mkdir .tst 2>/dev/null
13970if test -d .tst; then
13971 am__leading_dot=.
13972else
13973 am__leading_dot=_
13974fi
13975rmdir .tst 2>/dev/null
13976
13977DEPDIR="${am__leading_dot}deps"
13978
13979ac_config_commands="$ac_config_commands depfiles"
13980
13981
13982am_make=${MAKE-make}
13983cat > confinc << 'END'
13984am__doit:
13985 @echo this is the am__doit target
13986.PHONY: am__doit
13987END
13988# If we don't find an include directive, just comment out the code.
13989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
13990$as_echo_n "checking for style of include used by $am_make... " >&6; }
13991am__include="#"
13992am__quote=
13993_am_result=none
13994# First try GNU make style include.
13995echo "include confinc" > confmf
13996# Ignore all kinds of additional output from `make'.
13997case `$am_make -s -f confmf 2> /dev/null` in #(
13998*the\ am__doit\ target*)
13999 am__include=include
14000 am__quote=
14001 _am_result=GNU
14002 ;;
14003esac
14004# Now try BSD make style include.
14005if test "$am__include" = "#"; then
14006 echo '.include "confinc"' > confmf
14007 case `$am_make -s -f confmf 2> /dev/null` in #(
14008 *the\ am__doit\ target*)
14009 am__include=.include
14010 am__quote="\""
14011 _am_result=BSD
14012 ;;
14013 esac
14014fi
14015
14016
14017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
14018$as_echo "$_am_result" >&6; }
14019rm -f confinc confmf
14020
14021# Check whether --enable-dependency-tracking was given.
14022if test "${enable_dependency_tracking+set}" = set; then :
14023 enableval=$enable_dependency_tracking;
14024fi
14025
14026if test "x$enable_dependency_tracking" != xno; then
14027 am_depcomp="$ac_aux_dir/depcomp"
14028 AMDEPBACKSLASH='\'
14029fi
14030 if test "x$enable_dependency_tracking" != xno; then
14031 AMDEP_TRUE=
14032 AMDEP_FALSE='#'
14033else
14034 AMDEP_TRUE='#'
14035 AMDEP_FALSE=
14036fi
14037
14038
14039if test "`cd $srcdir && pwd`" != "`pwd`"; then
14040 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
14041 # is not polluted with repeated "-I."
14042 am__isrc=' -I$(srcdir)'
14043 # test to see if srcdir already configured
14044 if test -f $srcdir/config.status; then
14045 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
14046 fi
14047fi
14048
14049# test whether we have cygpath
14050if test -z "$CYGPATH_W"; then
14051 if (cygpath --version) >/dev/null 2>/dev/null; then
14052 CYGPATH_W='cygpath -w'
14053 else
14054 CYGPATH_W=echo
14055 fi
14056fi
14057
14058
14059# Define the identity of the package.
14060 PACKAGE=libgnu
14061 VERSION=UNUSED-VERSION
14062
14063
14064# Some tools Automake needs.
14065
14066ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
14067
14068
14069AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
14070
14071
14072AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
14073
14074
14075AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
14076
14077
14078MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
14079
14080# We need awk for the "check" target. The system "awk" is bad on
14081# some platforms.
14082# Always define AMTAR for backward compatibility.
14083
14084AMTAR=${AMTAR-"${am_missing_run}tar"}
14085
14086am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
14087
14088
14089
14090
14091depcc="$CC" am_compiler_list=
14092
14093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14094$as_echo_n "checking dependency style of $depcc... " >&6; }
14095if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
14096 $as_echo_n "(cached) " >&6
14097else
14098 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14099 # We make a subdir and do the tests there. Otherwise we can end up
14100 # making bogus files that we don't know about and never remove. For
14101 # instance it was reported that on HP-UX the gcc test will end up
14102 # making a dummy file named `D' -- because `-MD' means `put the output
14103 # in D'.
14104 mkdir conftest.dir
14105 # Copy depcomp to subdir because otherwise we won't find it if we're
14106 # using a relative directory.
14107 cp "$am_depcomp" conftest.dir
14108 cd conftest.dir
14109 # We will build objects and dependencies in a subdirectory because
14110 # it helps to detect inapplicable dependency modes. For instance
14111 # both Tru64's cc and ICC support -MD to output dependencies as a
14112 # side effect of compilation, but ICC will put the dependencies in
14113 # the current directory while Tru64 will put them in the object
14114 # directory.
14115 mkdir sub
14116
14117 am_cv_CC_dependencies_compiler_type=none
14118 if test "$am_compiler_list" = ""; then
14119 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14120 fi
14121 am__universal=false
14122 case " $depcc " in #(
14123 *\ -arch\ *\ -arch\ *) am__universal=true ;;
14124 esac
14125
14126 for depmode in $am_compiler_list; do
14127 # Setup a source with many dependencies, because some compilers
14128 # like to wrap large dependency lists on column 80 (with \), and
14129 # we should not choose a depcomp mode which is confused by this.
14130 #
14131 # We need to recreate these files for each test, as the compiler may
14132 # overwrite some of them when testing with obscure command lines.
14133 # This happens at least with the AIX C compiler.
14134 : > sub/conftest.c
14135 for i in 1 2 3 4 5 6; do
14136 echo '#include "conftst'$i'.h"' >> sub/conftest.c
14137 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
14138 # Solaris 8's {/usr,}/bin/sh.
14139 touch sub/conftst$i.h
14140 done
14141 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14142
14143 # We check with `-c' and `-o' for the sake of the "dashmstdout"
14144 # mode. It turns out that the SunPro C++ compiler does not properly
14145 # handle `-M -o', and we need to detect this. Also, some Intel
14146 # versions had trouble with output in subdirs
14147 am__obj=sub/conftest.${OBJEXT-o}
14148 am__minus_obj="-o $am__obj"
14149 case $depmode in
14150 gcc)
14151 # This depmode causes a compiler race in universal mode.
14152 test "$am__universal" = false || continue
14153 ;;
14154 nosideeffect)
14155 # after this tag, mechanisms are not by side-effect, so they'll
14156 # only be used when explicitly requested
14157 if test "x$enable_dependency_tracking" = xyes; then
14158 continue
14159 else
14160 break
14161 fi
14162 ;;
14163 msvisualcpp | msvcmsys)
14164 # This compiler won't grok `-c -o', but also, the minuso test has
14165 # not run yet. These depmodes are late enough in the game, and
14166 # so weak that their functioning should not be impacted.
14167 am__obj=conftest.${OBJEXT-o}
14168 am__minus_obj=
14169 ;;
14170 none) break ;;
14171 esac
14172 if depmode=$depmode \
14173 source=sub/conftest.c object=$am__obj \
14174 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14175 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14176 >/dev/null 2>conftest.err &&
14177 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14178 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14179 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14180 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14181 # icc doesn't choke on unknown options, it will just issue warnings
14182 # or remarks (even with -Werror). So we grep stderr for any message
14183 # that says an option was ignored or not supported.
14184 # When given -MP, icc 7.0 and 7.1 complain thusly:
14185 # icc: Command line warning: ignoring option '-M'; no argument required
14186 # The diagnosis changed in icc 8.0:
14187 # icc: Command line remark: option '-MP' not supported
14188 if (grep 'ignoring option' conftest.err ||
14189 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14190 am_cv_CC_dependencies_compiler_type=$depmode
14191 break
14192 fi
14193 fi
14194 done
14195
14196 cd ..
14197 rm -rf conftest.dir
14198else
14199 am_cv_CC_dependencies_compiler_type=none
14200fi
14201
14202fi
14203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
14204$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
14205CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
14206
14207 if
14208 test "x$enable_dependency_tracking" != xno \
14209 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
14210 am__fastdepCC_TRUE=
14211 am__fastdepCC_FALSE='#'
14212else
14213 am__fastdepCC_TRUE='#'
14214 am__fastdepCC_FALSE=
14215fi
14216
14217
14218
14219
14220# --------------------- #
14221# Checks for programs. #
14222# --------------------- #
14223
14224
14225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
14226$as_echo_n "checking whether ln -s works... " >&6; }
14227LN_S=$as_ln_s
14228if test "$LN_S" = "ln -s"; then
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14230$as_echo "yes" >&6; }
14231else
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
14233$as_echo "no, using $LN_S" >&6; }
14234fi
14235
14236if test -n "$ac_tool_prefix"; then
14237 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14238set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14240$as_echo_n "checking for $ac_word... " >&6; }
14241if test "${ac_cv_prog_RANLIB+set}" = set; then :
14242 $as_echo_n "(cached) " >&6
14243else
14244 if test -n "$RANLIB"; then
14245 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14246else
14247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14248for as_dir in $PATH
14249do
14250 IFS=$as_save_IFS
14251 test -z "$as_dir" && as_dir=.
14252 for ac_exec_ext in '' $ac_executable_extensions; do
14253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14254 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14256 break 2
14257 fi
14258done
14259 done
14260IFS=$as_save_IFS
14261
14262fi
14263fi
14264RANLIB=$ac_cv_prog_RANLIB
14265if test -n "$RANLIB"; then
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
14267$as_echo "$RANLIB" >&6; }
14268else
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14270$as_echo "no" >&6; }
14271fi
14272
14273
14274fi
14275if test -z "$ac_cv_prog_RANLIB"; then
14276 ac_ct_RANLIB=$RANLIB
14277 # Extract the first word of "ranlib", so it can be a program name with args.
14278set dummy ranlib; ac_word=$2
14279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14280$as_echo_n "checking for $ac_word... " >&6; }
14281if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
14282 $as_echo_n "(cached) " >&6
14283else
14284 if test -n "$ac_ct_RANLIB"; then
14285 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14286else
14287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14288for as_dir in $PATH
14289do
14290 IFS=$as_save_IFS
14291 test -z "$as_dir" && as_dir=.
14292 for ac_exec_ext in '' $ac_executable_extensions; do
14293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14294 ac_cv_prog_ac_ct_RANLIB="ranlib"
14295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14296 break 2
14297 fi
14298done
14299 done
14300IFS=$as_save_IFS
14301
14302fi
14303fi
14304ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14305if test -n "$ac_ct_RANLIB"; then
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
14307$as_echo "$ac_ct_RANLIB" >&6; }
14308else
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14310$as_echo "no" >&6; }
14311fi
14312
14313 if test "x$ac_ct_RANLIB" = x; then
14314 RANLIB=":"
14315 else
14316 case $cross_compiling:$ac_tool_warned in
14317yes:)
14318{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14319$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14320ac_tool_warned=yes ;;
14321esac
14322 RANLIB=$ac_ct_RANLIB
14323 fi
14324else
14325 RANLIB="$ac_cv_prog_RANLIB"
14326fi
14327
14328
14329if test -n "$ac_tool_prefix"; then
14330 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14331set dummy ${ac_tool_prefix}ar; ac_word=$2
14332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14333$as_echo_n "checking for $ac_word... " >&6; }
14334if test "${ac_cv_prog_AR+set}" = set; then :
14335 $as_echo_n "(cached) " >&6
14336else
14337 if test -n "$AR"; then
14338 ac_cv_prog_AR="$AR" # Let the user override the test.
14339else
14340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14341for as_dir in $PATH
14342do
14343 IFS=$as_save_IFS
14344 test -z "$as_dir" && as_dir=.
14345 for ac_exec_ext in '' $ac_executable_extensions; do
14346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14347 ac_cv_prog_AR="${ac_tool_prefix}ar"
14348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14349 break 2
14350 fi
14351done
14352 done
14353IFS=$as_save_IFS
14354
14355fi
14356fi
14357AR=$ac_cv_prog_AR
14358if test -n "$AR"; then
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
14360$as_echo "$AR" >&6; }
14361else
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14363$as_echo "no" >&6; }
14364fi
14365
14366
14367fi
14368if test -z "$ac_cv_prog_AR"; then
14369 ac_ct_AR=$AR
14370 # Extract the first word of "ar", so it can be a program name with args.
14371set dummy ar; ac_word=$2
14372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14373$as_echo_n "checking for $ac_word... " >&6; }
14374if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
14375 $as_echo_n "(cached) " >&6
14376else
14377 if test -n "$ac_ct_AR"; then
14378 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14379else
14380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14381for as_dir in $PATH
14382do
14383 IFS=$as_save_IFS
14384 test -z "$as_dir" && as_dir=.
14385 for ac_exec_ext in '' $ac_executable_extensions; do
14386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14387 ac_cv_prog_ac_ct_AR="ar"
14388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14389 break 2
14390 fi
14391done
14392 done
14393IFS=$as_save_IFS
14394
14395fi
14396fi
14397ac_ct_AR=$ac_cv_prog_ac_ct_AR
14398if test -n "$ac_ct_AR"; then
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
14400$as_echo "$ac_ct_AR" >&6; }
14401else
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14403$as_echo "no" >&6; }
14404fi
14405
14406 if test "x$ac_ct_AR" = x; then
14407 AR=""
14408 else
14409 case $cross_compiling:$ac_tool_warned in
14410yes:)
14411{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14412$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14413ac_tool_warned=yes ;;
14414esac
14415 AR=$ac_ct_AR
14416 fi
14417else
14418 AR="$ac_cv_prog_AR"
14419fi
14420
14421
14422# ---------------------- #
14423# Checks for libraries. #
14424# ---------------------- #
14425
14426ac_config_files="$ac_config_files Makefile import/Makefile"
14427
14428ac_config_commands="$ac_config_commands default"
14429
14430cat >confcache <<\_ACEOF
14431# This file is a shell script that caches the results of configure
14432# tests run on this system so they can be shared between configure
14433# scripts and configure runs, see configure's option --config-cache.
14434# It is not useful on other systems. If it contains results you don't
14435# want to keep, you may remove or edit it.
14436#
14437# config.status only pays attention to the cache file if you give it
14438# the --recheck option to rerun configure.
14439#
14440# `ac_cv_env_foo' variables (set or unset) will be overridden when
14441# loading this file, other *unset* `ac_cv_foo' will be assigned the
14442# following values.
14443
14444_ACEOF
14445
14446# The following way of writing the cache mishandles newlines in values,
14447# but we know of no workaround that is simple, portable, and efficient.
14448# So, we kill variables containing newlines.
14449# Ultrix sh set writes to stderr and can't be redirected directly,
14450# and sets the high bit in the cache file unless we assign to the vars.
14451(
14452 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14453 eval ac_val=\$$ac_var
14454 case $ac_val in #(
14455 *${as_nl}*)
14456 case $ac_var in #(
14457 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14458$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14459 esac
14460 case $ac_var in #(
14461 _ | IFS | as_nl) ;; #(
14462 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14463 *) { eval $ac_var=; unset $ac_var;} ;;
14464 esac ;;
14465 esac
14466 done
14467
14468 (set) 2>&1 |
14469 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14470 *${as_nl}ac_space=\ *)
14471 # `set' does not quote correctly, so add quotes: double-quote
14472 # substitution turns \\\\ into \\, and sed turns \\ into \.
14473 sed -n \
14474 "s/'/'\\\\''/g;
14475 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14476 ;; #(
14477 *)
14478 # `set' quotes correctly as required by POSIX, so do not add quotes.
14479 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14480 ;;
14481 esac |
14482 sort
14483) |
14484 sed '
14485 /^ac_cv_env_/b end
14486 t clear
14487 :clear
14488 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14489 t end
14490 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14491 :end' >>confcache
14492if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14493 if test -w "$cache_file"; then
14494 test "x$cache_file" != "x/dev/null" &&
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14496$as_echo "$as_me: updating cache $cache_file" >&6;}
14497 cat confcache >$cache_file
14498 else
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14500$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14501 fi
14502fi
14503rm -f confcache
14504
14505test "x$prefix" = xNONE && prefix=$ac_default_prefix
14506# Let make expand exec_prefix.
14507test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14508
14509DEFS=-DHAVE_CONFIG_H
14510
14511ac_libobjs=
14512ac_ltlibobjs=
14513for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14514 # 1. Remove the extension, and $U if already installed.
14515 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14516 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14517 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14518 # will be set to the directory where LIBOBJS objects are built.
14519 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14520 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14521done
14522LIBOBJS=$ac_libobjs
14523
14524LTLIBOBJS=$ac_ltlibobjs
14525
14526
14527if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14528 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14529Usually this means the macro was only invoked conditionally." "$LINENO" 5
14530fi
14531if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
14532 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
14533Usually this means the macro was only invoked conditionally." "$LINENO" 5
14534fi
8690e634
JK
14535if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
14536 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
14537Usually this means the macro was only invoked conditionally." "$LINENO" 5
14538fi
88b48903
WN
14539if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
14540 as_fn_error "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
14541Usually this means the macro was only invoked conditionally." "$LINENO" 5
14542fi
8690e634
JK
14543if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
14544 as_fn_error "conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
14545Usually this means the macro was only invoked conditionally." "$LINENO" 5
14546fi
c971b7fa
PA
14547if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
14548 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
14549Usually this means the macro was only invoked conditionally." "$LINENO" 5
14550fi
88b48903
WN
14551
14552
8690e634
JK
14553if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
14554 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
14555Usually this means the macro was only invoked conditionally." "$LINENO" 5
14556fi
c971b7fa
PA
14557if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
14558 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
14559Usually this means the macro was only invoked conditionally." "$LINENO" 5
14560fi
14561
14562 gl_libobjs=
14563 gl_ltlibobjs=
14564 if test -n "$gl_LIBOBJS"; then
14565 # Remove the extension.
14566 sed_drop_objext='s/\.o$//;s/\.obj$//'
14567 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
14568 gl_libobjs="$gl_libobjs $i.$ac_objext"
14569 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
14570 done
14571 fi
14572 gl_LIBOBJS=$gl_libobjs
14573
14574 gl_LTLIBOBJS=$gl_ltlibobjs
14575
14576
14577
14578 gltests_libobjs=
14579 gltests_ltlibobjs=
14580 if test -n "$gltests_LIBOBJS"; then
14581 # Remove the extension.
14582 sed_drop_objext='s/\.o$//;s/\.obj$//'
14583 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
14584 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
14585 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
14586 done
14587 fi
14588 gltests_LIBOBJS=$gltests_libobjs
14589
14590 gltests_LTLIBOBJS=$gltests_ltlibobjs
14591
14592
14593if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14594 as_fn_error "conditional \"AMDEP\" was never defined.
14595Usually this means the macro was only invoked conditionally." "$LINENO" 5
14596fi
14597if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14598 as_fn_error "conditional \"am__fastdepCC\" was never defined.
14599Usually this means the macro was only invoked conditionally." "$LINENO" 5
14600fi
14601 if test -n "$EXEEXT"; then
14602 am__EXEEXT_TRUE=
14603 am__EXEEXT_FALSE='#'
14604else
14605 am__EXEEXT_TRUE='#'
14606 am__EXEEXT_FALSE=
14607fi
14608
14609
14610: ${CONFIG_STATUS=./config.status}
14611ac_write_fail=0
14612ac_clean_files_save=$ac_clean_files
14613ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14614{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14615$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14616as_write_fail=0
14617cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14618#! $SHELL
14619# Generated by $as_me.
14620# Run this file to recreate the current configuration.
14621# Compiler output produced by configure, useful for debugging
14622# configure, is in config.log if it exists.
14623
14624debug=false
14625ac_cs_recheck=false
14626ac_cs_silent=false
14627
14628SHELL=\${CONFIG_SHELL-$SHELL}
14629export SHELL
14630_ASEOF
14631cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14632## -------------------- ##
14633## M4sh Initialization. ##
14634## -------------------- ##
14635
14636# Be more Bourne compatible
14637DUALCASE=1; export DUALCASE # for MKS sh
14638if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14639 emulate sh
14640 NULLCMD=:
14641 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14642 # is contrary to our usage. Disable this feature.
14643 alias -g '${1+"$@"}'='"$@"'
14644 setopt NO_GLOB_SUBST
14645else
14646 case `(set -o) 2>/dev/null` in #(
14647 *posix*) :
14648 set -o posix ;; #(
14649 *) :
14650 ;;
14651esac
14652fi
14653
14654
14655as_nl='
14656'
14657export as_nl
14658# Printing a long string crashes Solaris 7 /usr/bin/printf.
14659as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14660as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14661as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14662# Prefer a ksh shell builtin over an external printf program on Solaris,
14663# but without wasting forks for bash or zsh.
14664if test -z "$BASH_VERSION$ZSH_VERSION" \
14665 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14666 as_echo='print -r --'
14667 as_echo_n='print -rn --'
14668elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14669 as_echo='printf %s\n'
14670 as_echo_n='printf %s'
14671else
14672 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14673 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14674 as_echo_n='/usr/ucb/echo -n'
14675 else
14676 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14677 as_echo_n_body='eval
14678 arg=$1;
14679 case $arg in #(
14680 *"$as_nl"*)
14681 expr "X$arg" : "X\\(.*\\)$as_nl";
14682 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14683 esac;
14684 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14685 '
14686 export as_echo_n_body
14687 as_echo_n='sh -c $as_echo_n_body as_echo'
14688 fi
14689 export as_echo_body
14690 as_echo='sh -c $as_echo_body as_echo'
14691fi
14692
14693# The user is always right.
14694if test "${PATH_SEPARATOR+set}" != set; then
14695 PATH_SEPARATOR=:
14696 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14697 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14698 PATH_SEPARATOR=';'
14699 }
14700fi
14701
14702
14703# IFS
14704# We need space, tab and new line, in precisely that order. Quoting is
14705# there to prevent editors from complaining about space-tab.
14706# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14707# splitting by setting IFS to empty value.)
14708IFS=" "" $as_nl"
14709
14710# Find who we are. Look in the path if we contain no directory separator.
14711case $0 in #((
14712 *[\\/]* ) as_myself=$0 ;;
14713 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14714for as_dir in $PATH
14715do
14716 IFS=$as_save_IFS
14717 test -z "$as_dir" && as_dir=.
14718 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14719 done
14720IFS=$as_save_IFS
14721
14722 ;;
14723esac
14724# We did not find ourselves, most probably we were run as `sh COMMAND'
14725# in which case we are not to be found in the path.
14726if test "x$as_myself" = x; then
14727 as_myself=$0
14728fi
14729if test ! -f "$as_myself"; then
14730 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14731 exit 1
14732fi
14733
14734# Unset variables that we do not need and which cause bugs (e.g. in
14735# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14736# suppresses any "Segmentation fault" message there. '((' could
14737# trigger a bug in pdksh 5.2.14.
14738for as_var in BASH_ENV ENV MAIL MAILPATH
14739do eval test x\${$as_var+set} = xset \
14740 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14741done
14742PS1='$ '
14743PS2='> '
14744PS4='+ '
14745
14746# NLS nuisances.
14747LC_ALL=C
14748export LC_ALL
14749LANGUAGE=C
14750export LANGUAGE
14751
14752# CDPATH.
14753(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14754
14755
14756# as_fn_error ERROR [LINENO LOG_FD]
14757# ---------------------------------
14758# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14759# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14760# script with status $?, using 1 if that was 0.
14761as_fn_error ()
14762{
14763 as_status=$?; test $as_status -eq 0 && as_status=1
14764 if test "$3"; then
14765 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14766 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14767 fi
14768 $as_echo "$as_me: error: $1" >&2
14769 as_fn_exit $as_status
14770} # as_fn_error
14771
14772
14773# as_fn_set_status STATUS
14774# -----------------------
14775# Set $? to STATUS, without forking.
14776as_fn_set_status ()
14777{
14778 return $1
14779} # as_fn_set_status
14780
14781# as_fn_exit STATUS
14782# -----------------
14783# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14784as_fn_exit ()
14785{
14786 set +e
14787 as_fn_set_status $1
14788 exit $1
14789} # as_fn_exit
14790
14791# as_fn_unset VAR
14792# ---------------
14793# Portably unset VAR.
14794as_fn_unset ()
14795{
14796 { eval $1=; unset $1;}
14797}
14798as_unset=as_fn_unset
14799# as_fn_append VAR VALUE
14800# ----------------------
14801# Append the text in VALUE to the end of the definition contained in VAR. Take
14802# advantage of any shell optimizations that allow amortized linear growth over
14803# repeated appends, instead of the typical quadratic growth present in naive
14804# implementations.
14805if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14806 eval 'as_fn_append ()
14807 {
14808 eval $1+=\$2
14809 }'
14810else
14811 as_fn_append ()
14812 {
14813 eval $1=\$$1\$2
14814 }
14815fi # as_fn_append
14816
14817# as_fn_arith ARG...
14818# ------------------
14819# Perform arithmetic evaluation on the ARGs, and store the result in the
14820# global $as_val. Take advantage of shells that can avoid forks. The arguments
14821# must be portable across $(()) and expr.
14822if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14823 eval 'as_fn_arith ()
14824 {
14825 as_val=$(( $* ))
14826 }'
14827else
14828 as_fn_arith ()
14829 {
14830 as_val=`expr "$@" || test $? -eq 1`
14831 }
14832fi # as_fn_arith
14833
14834
14835if expr a : '\(a\)' >/dev/null 2>&1 &&
14836 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14837 as_expr=expr
14838else
14839 as_expr=false
14840fi
14841
14842if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14843 as_basename=basename
14844else
14845 as_basename=false
14846fi
14847
14848if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14849 as_dirname=dirname
14850else
14851 as_dirname=false
14852fi
14853
14854as_me=`$as_basename -- "$0" ||
14855$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14856 X"$0" : 'X\(//\)$' \| \
14857 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14858$as_echo X/"$0" |
14859 sed '/^.*\/\([^/][^/]*\)\/*$/{
14860 s//\1/
14861 q
14862 }
14863 /^X\/\(\/\/\)$/{
14864 s//\1/
14865 q
14866 }
14867 /^X\/\(\/\).*/{
14868 s//\1/
14869 q
14870 }
14871 s/.*/./; q'`
14872
14873# Avoid depending upon Character Ranges.
14874as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14875as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14876as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14877as_cr_digits='0123456789'
14878as_cr_alnum=$as_cr_Letters$as_cr_digits
14879
14880ECHO_C= ECHO_N= ECHO_T=
14881case `echo -n x` in #(((((
14882-n*)
14883 case `echo 'xy\c'` in
14884 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14885 xy) ECHO_C='\c';;
14886 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14887 ECHO_T=' ';;
14888 esac;;
14889*)
14890 ECHO_N='-n';;
14891esac
14892
14893rm -f conf$$ conf$$.exe conf$$.file
14894if test -d conf$$.dir; then
14895 rm -f conf$$.dir/conf$$.file
14896else
14897 rm -f conf$$.dir
14898 mkdir conf$$.dir 2>/dev/null
14899fi
14900if (echo >conf$$.file) 2>/dev/null; then
14901 if ln -s conf$$.file conf$$ 2>/dev/null; then
14902 as_ln_s='ln -s'
14903 # ... but there are two gotchas:
14904 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14905 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14906 # In both cases, we have to default to `cp -p'.
14907 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14908 as_ln_s='cp -p'
14909 elif ln conf$$.file conf$$ 2>/dev/null; then
14910 as_ln_s=ln
14911 else
14912 as_ln_s='cp -p'
14913 fi
14914else
14915 as_ln_s='cp -p'
14916fi
14917rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14918rmdir conf$$.dir 2>/dev/null
14919
14920
14921# as_fn_mkdir_p
14922# -------------
14923# Create "$as_dir" as a directory, including parents if necessary.
14924as_fn_mkdir_p ()
14925{
14926
14927 case $as_dir in #(
14928 -*) as_dir=./$as_dir;;
14929 esac
14930 test -d "$as_dir" || eval $as_mkdir_p || {
14931 as_dirs=
14932 while :; do
14933 case $as_dir in #(
14934 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14935 *) as_qdir=$as_dir;;
14936 esac
14937 as_dirs="'$as_qdir' $as_dirs"
14938 as_dir=`$as_dirname -- "$as_dir" ||
14939$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14940 X"$as_dir" : 'X\(//\)[^/]' \| \
14941 X"$as_dir" : 'X\(//\)$' \| \
14942 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14943$as_echo X"$as_dir" |
14944 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14945 s//\1/
14946 q
14947 }
14948 /^X\(\/\/\)[^/].*/{
14949 s//\1/
14950 q
14951 }
14952 /^X\(\/\/\)$/{
14953 s//\1/
14954 q
14955 }
14956 /^X\(\/\).*/{
14957 s//\1/
14958 q
14959 }
14960 s/.*/./; q'`
14961 test -d "$as_dir" && break
14962 done
14963 test -z "$as_dirs" || eval "mkdir $as_dirs"
14964 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14965
14966
14967} # as_fn_mkdir_p
14968if mkdir -p . 2>/dev/null; then
14969 as_mkdir_p='mkdir -p "$as_dir"'
14970else
14971 test -d ./-p && rmdir ./-p
14972 as_mkdir_p=false
14973fi
14974
14975if test -x / >/dev/null 2>&1; then
14976 as_test_x='test -x'
14977else
14978 if ls -dL / >/dev/null 2>&1; then
14979 as_ls_L_option=L
14980 else
14981 as_ls_L_option=
14982 fi
14983 as_test_x='
14984 eval sh -c '\''
14985 if test -d "$1"; then
14986 test -d "$1/.";
14987 else
14988 case $1 in #(
14989 -*)set "./$1";;
14990 esac;
14991 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14992 ???[sx]*):;;*)false;;esac;fi
14993 '\'' sh
14994 '
14995fi
14996as_executable_p=$as_test_x
14997
14998# Sed expression to map a string onto a valid CPP name.
14999as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15000
15001# Sed expression to map a string onto a valid variable name.
15002as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15003
15004
15005exec 6>&1
15006## ----------------------------------- ##
15007## Main body of $CONFIG_STATUS script. ##
15008## ----------------------------------- ##
15009_ASEOF
15010test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15011
15012cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15013# Save the log message, to keep $0 and so on meaningful, and to
15014# report actual input values of CONFIG_FILES etc. instead of their
15015# values after options handling.
15016ac_log="
15017This file was extended by $as_me, which was
15018generated by GNU Autoconf 2.64. Invocation command line was
15019
15020 CONFIG_FILES = $CONFIG_FILES
15021 CONFIG_HEADERS = $CONFIG_HEADERS
15022 CONFIG_LINKS = $CONFIG_LINKS
15023 CONFIG_COMMANDS = $CONFIG_COMMANDS
15024 $ $0 $@
15025
15026on `(hostname || uname -n) 2>/dev/null | sed 1q`
15027"
15028
15029_ACEOF
15030
15031case $ac_config_files in *"
15032"*) set x $ac_config_files; shift; ac_config_files=$*;;
15033esac
15034
15035case $ac_config_headers in *"
15036"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15037esac
15038
15039
15040cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15041# Files that config.status was made for.
15042config_files="$ac_config_files"
15043config_headers="$ac_config_headers"
15044config_commands="$ac_config_commands"
15045
15046_ACEOF
15047
15048cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15049ac_cs_usage="\
15050\`$as_me' instantiates files and other configuration actions
15051from templates according to the current configuration. Unless the files
15052and actions are specified as TAGs, all are instantiated by default.
15053
15054Usage: $0 [OPTION]... [TAG]...
15055
15056 -h, --help print this help, then exit
15057 -V, --version print version number and configuration settings, then exit
15058 -q, --quiet, --silent
15059 do not print progress messages
15060 -d, --debug don't remove temporary files
15061 --recheck update $as_me by reconfiguring in the same conditions
15062 --file=FILE[:TEMPLATE]
15063 instantiate the configuration file FILE
15064 --header=FILE[:TEMPLATE]
15065 instantiate the configuration header FILE
15066
15067Configuration files:
15068$config_files
15069
15070Configuration headers:
15071$config_headers
15072
15073Configuration commands:
15074$config_commands
15075
15076Report bugs to the package provider."
15077
15078_ACEOF
15079cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15080ac_cs_version="\\
15081config.status
15082configured by $0, generated by GNU Autoconf 2.64,
15083 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15084
15085Copyright (C) 2009 Free Software Foundation, Inc.
15086This config.status script is free software; the Free Software Foundation
15087gives unlimited permission to copy, distribute and modify it."
15088
15089ac_pwd='$ac_pwd'
15090srcdir='$srcdir'
15091INSTALL='$INSTALL'
15092MKDIR_P='$MKDIR_P'
15093AWK='$AWK'
15094test -n "\$AWK" || AWK=awk
15095_ACEOF
15096
15097cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15098# The default lists apply if the user does not specify any file.
15099ac_need_defaults=:
15100while test $# != 0
15101do
15102 case $1 in
15103 --*=*)
15104 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15105 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15106 ac_shift=:
15107 ;;
15108 *)
15109 ac_option=$1
15110 ac_optarg=$2
15111 ac_shift=shift
15112 ;;
15113 esac
15114
15115 case $ac_option in
15116 # Handling of the options.
15117 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15118 ac_cs_recheck=: ;;
15119 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15120 $as_echo "$ac_cs_version"; exit ;;
15121 --debug | --debu | --deb | --de | --d | -d )
15122 debug=: ;;
15123 --file | --fil | --fi | --f )
15124 $ac_shift
15125 case $ac_optarg in
15126 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15127 esac
15128 as_fn_append CONFIG_FILES " '$ac_optarg'"
15129 ac_need_defaults=false;;
15130 --header | --heade | --head | --hea )
15131 $ac_shift
15132 case $ac_optarg in
15133 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15134 esac
15135 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15136 ac_need_defaults=false;;
15137 --he | --h)
15138 # Conflict between --help and --header
15139 as_fn_error "ambiguous option: \`$1'
15140Try \`$0 --help' for more information.";;
15141 --help | --hel | -h )
15142 $as_echo "$ac_cs_usage"; exit ;;
15143 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15144 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15145 ac_cs_silent=: ;;
15146
15147 # This is an error.
15148 -*) as_fn_error "unrecognized option: \`$1'
15149Try \`$0 --help' for more information." ;;
15150
15151 *) as_fn_append ac_config_targets " $1"
15152 ac_need_defaults=false ;;
15153
15154 esac
15155 shift
15156done
15157
15158ac_configure_extra_args=
15159
15160if $ac_cs_silent; then
15161 exec 6>/dev/null
15162 ac_configure_extra_args="$ac_configure_extra_args --silent"
15163fi
15164
15165_ACEOF
15166cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15167if \$ac_cs_recheck; then
15168 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15169 shift
15170 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15171 CONFIG_SHELL='$SHELL'
15172 export CONFIG_SHELL
15173 exec "\$@"
15174fi
15175
15176_ACEOF
15177cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15178exec 5>>config.log
15179{
15180 echo
15181 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15182## Running $as_me. ##
15183_ASBOX
15184 $as_echo "$ac_log"
15185} >&5
15186
15187_ACEOF
15188cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15189#
15190# INIT-COMMANDS
15191#
15192AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15193
15194_ACEOF
15195
15196cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15197
15198# Handling of arguments.
15199for ac_config_target in $ac_config_targets
15200do
15201 case $ac_config_target in
15202 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
15203 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15204 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15205 "import/Makefile") CONFIG_FILES="$CONFIG_FILES import/Makefile" ;;
15206 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15207
15208 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15209 esac
15210done
15211
15212
15213# If the user did not use the arguments to specify the items to instantiate,
15214# then the envvar interface is used. Set only those that are not.
15215# We use the long form for the default assignment because of an extremely
15216# bizarre bug on SunOS 4.1.3.
15217if $ac_need_defaults; then
15218 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15219 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15220 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15221fi
15222
15223# Have a temporary directory for convenience. Make it in the build tree
15224# simply because there is no reason against having it here, and in addition,
15225# creating and moving files from /tmp can sometimes cause problems.
15226# Hook for its removal unless debugging.
15227# Note that there is a small window in which the directory will not be cleaned:
15228# after its creation but before its name has been assigned to `$tmp'.
15229$debug ||
15230{
15231 tmp=
15232 trap 'exit_status=$?
15233 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15234' 0
15235 trap 'as_fn_exit 1' 1 2 13 15
15236}
15237# Create a (secure) tmp directory for tmp files.
15238
15239{
15240 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15241 test -n "$tmp" && test -d "$tmp"
15242} ||
15243{
15244 tmp=./conf$$-$RANDOM
15245 (umask 077 && mkdir "$tmp")
15246} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15247
15248# Set up the scripts for CONFIG_FILES section.
15249# No need to generate them if there are no CONFIG_FILES.
15250# This happens for instance with `./config.status config.h'.
15251if test -n "$CONFIG_FILES"; then
15252
15253
15254ac_cr=`echo X | tr X '\015'`
15255# On cygwin, bash can eat \r inside `` if the user requested igncr.
15256# But we know of no other shell where ac_cr would be empty at this
15257# point, so we can use a bashism as a fallback.
15258if test "x$ac_cr" = x; then
15259 eval ac_cr=\$\'\\r\'
15260fi
15261ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15262if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15263 ac_cs_awk_cr='\r'
15264else
15265 ac_cs_awk_cr=$ac_cr
15266fi
15267
15268echo 'BEGIN {' >"$tmp/subs1.awk" &&
15269_ACEOF
15270
15271
15272{
15273 echo "cat >conf$$subs.awk <<_ACEOF" &&
15274 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15275 echo "_ACEOF"
15276} >conf$$subs.sh ||
15277 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15278ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15279ac_delim='%!_!# '
15280for ac_last_try in false false false false false :; do
15281 . ./conf$$subs.sh ||
15282 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15283
15284 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15285 if test $ac_delim_n = $ac_delim_num; then
15286 break
15287 elif $ac_last_try; then
15288 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15289 else
15290 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15291 fi
15292done
15293rm -f conf$$subs.sh
15294
15295cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15296cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15297_ACEOF
15298sed -n '
15299h
15300s/^/S["/; s/!.*/"]=/
15301p
15302g
15303s/^[^!]*!//
15304:repl
15305t repl
15306s/'"$ac_delim"'$//
15307t delim
15308:nl
15309h
15310s/\(.\{148\}\).*/\1/
15311t more1
15312s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15313p
15314n
15315b repl
15316:more1
15317s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15318p
15319g
15320s/.\{148\}//
15321t nl
15322:delim
15323h
15324s/\(.\{148\}\).*/\1/
15325t more2
15326s/["\\]/\\&/g; s/^/"/; s/$/"/
15327p
15328b
15329:more2
15330s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15331p
15332g
15333s/.\{148\}//
15334t delim
15335' <conf$$subs.awk | sed '
15336/^[^""]/{
15337 N
15338 s/\n//
15339}
15340' >>$CONFIG_STATUS || ac_write_fail=1
15341rm -f conf$$subs.awk
15342cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15343_ACAWK
15344cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15345 for (key in S) S_is_set[key] = 1
15346 FS = "\a"
15347
15348}
15349{
15350 line = $ 0
15351 nfields = split(line, field, "@")
15352 substed = 0
15353 len = length(field[1])
15354 for (i = 2; i < nfields; i++) {
15355 key = field[i]
15356 keylen = length(key)
15357 if (S_is_set[key]) {
15358 value = S[key]
15359 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15360 len += length(value) + length(field[++i])
15361 substed = 1
15362 } else
15363 len += 1 + keylen
15364 }
15365
15366 print line
15367}
15368
15369_ACAWK
15370_ACEOF
15371cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15372if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15373 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15374else
15375 cat
15376fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15377 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15378_ACEOF
15379
15380# VPATH may cause trouble with some makes, so we remove $(srcdir),
15381# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15382# trailing colons and then remove the whole line if VPATH becomes empty
15383# (actually we leave an empty line to preserve line numbers).
15384if test "x$srcdir" = x.; then
15385 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15386s/:*\$(srcdir):*/:/
15387s/:*\${srcdir}:*/:/
15388s/:*@srcdir@:*/:/
15389s/^\([^=]*=[ ]*\):*/\1/
15390s/:*$//
15391s/^[^=]*=[ ]*$//
15392}'
15393fi
15394
15395cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15396fi # test -n "$CONFIG_FILES"
15397
15398# Set up the scripts for CONFIG_HEADERS section.
15399# No need to generate them if there are no CONFIG_HEADERS.
15400# This happens for instance with `./config.status Makefile'.
15401if test -n "$CONFIG_HEADERS"; then
15402cat >"$tmp/defines.awk" <<\_ACAWK ||
15403BEGIN {
15404_ACEOF
15405
15406# Transform confdefs.h into an awk script `defines.awk', embedded as
15407# here-document in config.status, that substitutes the proper values into
15408# config.h.in to produce config.h.
15409
15410# Create a delimiter string that does not exist in confdefs.h, to ease
15411# handling of long lines.
15412ac_delim='%!_!# '
15413for ac_last_try in false false :; do
15414 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15415 if test -z "$ac_t"; then
15416 break
15417 elif $ac_last_try; then
15418 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15419 else
15420 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15421 fi
15422done
15423
15424# For the awk script, D is an array of macro values keyed by name,
15425# likewise P contains macro parameters if any. Preserve backslash
15426# newline sequences.
15427
15428ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15429sed -n '
15430s/.\{148\}/&'"$ac_delim"'/g
15431t rset
15432:rset
15433s/^[ ]*#[ ]*define[ ][ ]*/ /
15434t def
15435d
15436:def
15437s/\\$//
15438t bsnl
15439s/["\\]/\\&/g
15440s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15441D["\1"]=" \3"/p
15442s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15443d
15444:bsnl
15445s/["\\]/\\&/g
15446s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15447D["\1"]=" \3\\\\\\n"\\/p
15448t cont
15449s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15450t cont
15451d
15452:cont
15453n
15454s/.\{148\}/&'"$ac_delim"'/g
15455t clear
15456:clear
15457s/\\$//
15458t bsnlc
15459s/["\\]/\\&/g; s/^/"/; s/$/"/p
15460d
15461:bsnlc
15462s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15463b cont
15464' <confdefs.h | sed '
15465s/'"$ac_delim"'/"\\\
15466"/g' >>$CONFIG_STATUS || ac_write_fail=1
15467
15468cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15469 for (key in D) D_is_set[key] = 1
15470 FS = "\a"
15471}
15472/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15473 line = \$ 0
15474 split(line, arg, " ")
15475 if (arg[1] == "#") {
15476 defundef = arg[2]
15477 mac1 = arg[3]
15478 } else {
15479 defundef = substr(arg[1], 2)
15480 mac1 = arg[2]
15481 }
15482 split(mac1, mac2, "(") #)
15483 macro = mac2[1]
15484 prefix = substr(line, 1, index(line, defundef) - 1)
15485 if (D_is_set[macro]) {
15486 # Preserve the white space surrounding the "#".
15487 print prefix "define", macro P[macro] D[macro]
15488 next
15489 } else {
15490 # Replace #undef with comments. This is necessary, for example,
15491 # in the case of _POSIX_SOURCE, which is predefined and required
15492 # on some systems where configure will not decide to define it.
15493 if (defundef == "undef") {
15494 print "/*", prefix defundef, macro, "*/"
15495 next
15496 }
15497 }
15498}
15499{ print }
15500_ACAWK
15501_ACEOF
15502cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15503 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15504fi # test -n "$CONFIG_HEADERS"
15505
15506
15507eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15508shift
15509for ac_tag
15510do
15511 case $ac_tag in
15512 :[FHLC]) ac_mode=$ac_tag; continue;;
15513 esac
15514 case $ac_mode$ac_tag in
15515 :[FHL]*:*);;
15516 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15517 :[FH]-) ac_tag=-:-;;
15518 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15519 esac
15520 ac_save_IFS=$IFS
15521 IFS=:
15522 set x $ac_tag
15523 IFS=$ac_save_IFS
15524 shift
15525 ac_file=$1
15526 shift
15527
15528 case $ac_mode in
15529 :L) ac_source=$1;;
15530 :[FH])
15531 ac_file_inputs=
15532 for ac_f
15533 do
15534 case $ac_f in
15535 -) ac_f="$tmp/stdin";;
15536 *) # Look for the file first in the build tree, then in the source tree
15537 # (if the path is not absolute). The absolute path cannot be DOS-style,
15538 # because $ac_f cannot contain `:'.
15539 test -f "$ac_f" ||
15540 case $ac_f in
15541 [\\/$]*) false;;
15542 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15543 esac ||
15544 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15545 esac
15546 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15547 as_fn_append ac_file_inputs " '$ac_f'"
15548 done
15549
15550 # Let's still pretend it is `configure' which instantiates (i.e., don't
15551 # use $as_me), people would be surprised to read:
15552 # /* config.h. Generated by config.status. */
15553 configure_input='Generated from '`
15554 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15555 `' by configure.'
15556 if test x"$ac_file" != x-; then
15557 configure_input="$ac_file. $configure_input"
15558 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15559$as_echo "$as_me: creating $ac_file" >&6;}
15560 fi
15561 # Neutralize special characters interpreted by sed in replacement strings.
15562 case $configure_input in #(
15563 *\&* | *\|* | *\\* )
15564 ac_sed_conf_input=`$as_echo "$configure_input" |
15565 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15566 *) ac_sed_conf_input=$configure_input;;
15567 esac
15568
15569 case $ac_tag in
15570 *:-:* | *:-) cat >"$tmp/stdin" \
15571 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15572 esac
15573 ;;
15574 esac
15575
15576 ac_dir=`$as_dirname -- "$ac_file" ||
15577$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15578 X"$ac_file" : 'X\(//\)[^/]' \| \
15579 X"$ac_file" : 'X\(//\)$' \| \
15580 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15581$as_echo X"$ac_file" |
15582 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15583 s//\1/
15584 q
15585 }
15586 /^X\(\/\/\)[^/].*/{
15587 s//\1/
15588 q
15589 }
15590 /^X\(\/\/\)$/{
15591 s//\1/
15592 q
15593 }
15594 /^X\(\/\).*/{
15595 s//\1/
15596 q
15597 }
15598 s/.*/./; q'`
15599 as_dir="$ac_dir"; as_fn_mkdir_p
15600 ac_builddir=.
15601
15602case "$ac_dir" in
15603.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15604*)
15605 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15606 # A ".." for each directory in $ac_dir_suffix.
15607 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15608 case $ac_top_builddir_sub in
15609 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15610 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15611 esac ;;
15612esac
15613ac_abs_top_builddir=$ac_pwd
15614ac_abs_builddir=$ac_pwd$ac_dir_suffix
15615# for backward compatibility:
15616ac_top_builddir=$ac_top_build_prefix
15617
15618case $srcdir in
15619 .) # We are building in place.
15620 ac_srcdir=.
15621 ac_top_srcdir=$ac_top_builddir_sub
15622 ac_abs_top_srcdir=$ac_pwd ;;
15623 [\\/]* | ?:[\\/]* ) # Absolute name.
15624 ac_srcdir=$srcdir$ac_dir_suffix;
15625 ac_top_srcdir=$srcdir
15626 ac_abs_top_srcdir=$srcdir ;;
15627 *) # Relative name.
15628 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15629 ac_top_srcdir=$ac_top_build_prefix$srcdir
15630 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15631esac
15632ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15633
15634
15635 case $ac_mode in
15636 :F)
15637 #
15638 # CONFIG_FILE
15639 #
15640
15641 case $INSTALL in
15642 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15643 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15644 esac
15645 ac_MKDIR_P=$MKDIR_P
15646 case $MKDIR_P in
15647 [\\/$]* | ?:[\\/]* ) ;;
15648 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15649 esac
15650_ACEOF
15651
15652cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15653# If the template does not know about datarootdir, expand it.
15654# FIXME: This hack should be removed a few years after 2.60.
15655ac_datarootdir_hack=; ac_datarootdir_seen=
15656ac_sed_dataroot='
15657/datarootdir/ {
15658 p
15659 q
15660}
15661/@datadir@/p
15662/@docdir@/p
15663/@infodir@/p
15664/@localedir@/p
15665/@mandir@/p'
15666case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15667*datarootdir*) ac_datarootdir_seen=yes;;
15668*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15670$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15671_ACEOF
15672cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15673 ac_datarootdir_hack='
15674 s&@datadir@&$datadir&g
15675 s&@docdir@&$docdir&g
15676 s&@infodir@&$infodir&g
15677 s&@localedir@&$localedir&g
15678 s&@mandir@&$mandir&g
15679 s&\\\${datarootdir}&$datarootdir&g' ;;
15680esac
15681_ACEOF
15682
15683# Neutralize VPATH when `$srcdir' = `.'.
15684# Shell code in configure.ac might set extrasub.
15685# FIXME: do we really want to maintain this feature?
15686cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15687ac_sed_extra="$ac_vpsub
15688$extrasub
15689_ACEOF
15690cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15691:t
15692/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15693s|@configure_input@|$ac_sed_conf_input|;t t
15694s&@top_builddir@&$ac_top_builddir_sub&;t t
15695s&@top_build_prefix@&$ac_top_build_prefix&;t t
15696s&@srcdir@&$ac_srcdir&;t t
15697s&@abs_srcdir@&$ac_abs_srcdir&;t t
15698s&@top_srcdir@&$ac_top_srcdir&;t t
15699s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15700s&@builddir@&$ac_builddir&;t t
15701s&@abs_builddir@&$ac_abs_builddir&;t t
15702s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15703s&@INSTALL@&$ac_INSTALL&;t t
15704s&@MKDIR_P@&$ac_MKDIR_P&;t t
15705$ac_datarootdir_hack
15706"
15707eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15708 || as_fn_error "could not create $ac_file" "$LINENO" 5
15709
15710test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15711 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15712 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15714which seems to be undefined. Please make sure it is defined." >&5
15715$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15716which seems to be undefined. Please make sure it is defined." >&2;}
15717
15718 rm -f "$tmp/stdin"
15719 case $ac_file in
15720 -) cat "$tmp/out" && rm -f "$tmp/out";;
15721 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15722 esac \
15723 || as_fn_error "could not create $ac_file" "$LINENO" 5
15724 ;;
15725 :H)
15726 #
15727 # CONFIG_HEADER
15728 #
15729 if test x"$ac_file" != x-; then
15730 {
15731 $as_echo "/* $configure_input */" \
15732 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15733 } >"$tmp/config.h" \
15734 || as_fn_error "could not create $ac_file" "$LINENO" 5
15735 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15736 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15737$as_echo "$as_me: $ac_file is unchanged" >&6;}
15738 else
15739 rm -f "$ac_file"
15740 mv "$tmp/config.h" "$ac_file" \
15741 || as_fn_error "could not create $ac_file" "$LINENO" 5
15742 fi
15743 else
15744 $as_echo "/* $configure_input */" \
15745 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15746 || as_fn_error "could not create -" "$LINENO" 5
15747 fi
15748# Compute "$ac_file"'s index in $config_headers.
15749_am_arg="$ac_file"
15750_am_stamp_count=1
15751for _am_header in $config_headers :; do
15752 case $_am_header in
15753 $_am_arg | $_am_arg:* )
15754 break ;;
15755 * )
15756 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15757 esac
15758done
15759echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15760$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15761 X"$_am_arg" : 'X\(//\)[^/]' \| \
15762 X"$_am_arg" : 'X\(//\)$' \| \
15763 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15764$as_echo X"$_am_arg" |
15765 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15766 s//\1/
15767 q
15768 }
15769 /^X\(\/\/\)[^/].*/{
15770 s//\1/
15771 q
15772 }
15773 /^X\(\/\/\)$/{
15774 s//\1/
15775 q
15776 }
15777 /^X\(\/\).*/{
15778 s//\1/
15779 q
15780 }
15781 s/.*/./; q'`/stamp-h$_am_stamp_count
15782 ;;
15783
15784 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15785$as_echo "$as_me: executing $ac_file commands" >&6;}
15786 ;;
15787 esac
15788
15789
15790 case $ac_file$ac_mode in
15791 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15792 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15793 # are listed without --file. Let's play safe and only enable the eval
15794 # if we detect the quoting.
15795 case $CONFIG_FILES in
15796 *\'*) eval set x "$CONFIG_FILES" ;;
15797 *) set x $CONFIG_FILES ;;
15798 esac
15799 shift
15800 for mf
15801 do
15802 # Strip MF so we end up with the name of the file.
15803 mf=`echo "$mf" | sed -e 's/:.*$//'`
15804 # Check whether this is an Automake generated Makefile or not.
15805 # We used to match only the files named `Makefile.in', but
15806 # some people rename them; so instead we look at the file content.
15807 # Grep'ing the first line is not enough: some people post-process
15808 # each Makefile.in and add a new line on top of each file to say so.
15809 # Grep'ing the whole file is not good either: AIX grep has a line
15810 # limit of 2048, but all sed's we know have understand at least 4000.
15811 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15812 dirpart=`$as_dirname -- "$mf" ||
15813$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15814 X"$mf" : 'X\(//\)[^/]' \| \
15815 X"$mf" : 'X\(//\)$' \| \
15816 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15817$as_echo X"$mf" |
15818 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15819 s//\1/
15820 q
15821 }
15822 /^X\(\/\/\)[^/].*/{
15823 s//\1/
15824 q
15825 }
15826 /^X\(\/\/\)$/{
15827 s//\1/
15828 q
15829 }
15830 /^X\(\/\).*/{
15831 s//\1/
15832 q
15833 }
15834 s/.*/./; q'`
15835 else
15836 continue
15837 fi
15838 # Extract the definition of DEPDIR, am__include, and am__quote
15839 # from the Makefile without running `make'.
15840 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15841 test -z "$DEPDIR" && continue
15842 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15843 test -z "am__include" && continue
15844 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15845 # When using ansi2knr, U may be empty or an underscore; expand it
15846 U=`sed -n 's/^U = //p' < "$mf"`
15847 # Find all dependency output files, they are included files with
15848 # $(DEPDIR) in their names. We invoke sed twice because it is the
15849 # simplest approach to changing $(DEPDIR) to its actual value in the
15850 # expansion.
15851 for file in `sed -n "
15852 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15853 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15854 # Make sure the directory exists.
15855 test -f "$dirpart/$file" && continue
15856 fdir=`$as_dirname -- "$file" ||
15857$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15858 X"$file" : 'X\(//\)[^/]' \| \
15859 X"$file" : 'X\(//\)$' \| \
15860 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15861$as_echo X"$file" |
15862 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15863 s//\1/
15864 q
15865 }
15866 /^X\(\/\/\)[^/].*/{
15867 s//\1/
15868 q
15869 }
15870 /^X\(\/\/\)$/{
15871 s//\1/
15872 q
15873 }
15874 /^X\(\/\).*/{
15875 s//\1/
15876 q
15877 }
15878 s/.*/./; q'`
15879 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15880 # echo "creating $dirpart/$file"
15881 echo '# dummy' > "$dirpart/$file"
15882 done
15883 done
15884}
15885 ;;
15886 "default":C)
15887case x$CONFIG_HEADERS in
15888xconfig.h:config.in)
15889echo > stamp-h ;;
15890esac
15891 ;;
15892
15893 esac
15894done # for ac_tag
15895
15896
15897as_fn_exit 0
15898_ACEOF
15899ac_clean_files=$ac_clean_files_save
15900
15901test $ac_write_fail = 0 ||
15902 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15903
15904
15905# configure is writing to config.log, and then calls config.status.
15906# config.status does its own redirection, appending to config.log.
15907# Unfortunately, on DOS this fails, as config.log is still kept open
15908# by configure, so config.status won't be able to write to it; its
15909# output is simply discarded. So we exec the FD to /dev/null,
15910# effectively closing config.log, so it can be properly (re)opened and
15911# appended to by config.status. When coming back to configure, we
15912# need to make the FD available again.
15913if test "$no_create" != yes; then
15914 ac_cs_success=:
15915 ac_config_status_args=
15916 test "$silent" = yes &&
15917 ac_config_status_args="$ac_config_status_args --quiet"
15918 exec 5>/dev/null
15919 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15920 exec 5>>config.log
15921 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15922 # would make configure fail if this is the last instruction.
15923 $ac_cs_success || as_fn_exit $?
15924fi
15925if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15927$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15928fi
15929
15930
15931exit 0
This page took 1.026579 seconds and 4 git commands to generate.